Description: When inter-service HTTP calls are implemented, each service will need HTTP client configuration. A shared type would ensure consistency.
Requirements:
- Define
ServiceClientConfig type: { baseUrl: string; timeout: number; retries: number; authToken?: string }
- Define
ServiceName as a union of service names
- Export for use in api-gateway when calling other services
Suggested execution steps:
- Add types to
shared/types/index.ts
- Export
ServiceName = 'api-gateway' | 'fx-engine' | 'settlement-engine' | 'indexer'
- Export
ServiceClientConfig
- Rebuild
Example commit message:
feat(types): add inter-service HTTP client configuration types
Description: When inter-service HTTP calls are implemented, each service will need HTTP client configuration. A shared type would ensure consistency.
Requirements:
ServiceClientConfigtype:{ baseUrl: string; timeout: number; retries: number; authToken?: string }ServiceNameas a union of service namesSuggested execution steps:
shared/types/index.tsServiceName = 'api-gateway' | 'fx-engine' | 'settlement-engine' | 'indexer'ServiceClientConfigExample commit message: