-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
Description
Context
In the current implementation, the package @ama-sdk/core contains the following items:
- Api helpers function (generating the final request parameters)
- Fetch Api Client
- Angular Api Client
- Beacon Api Client
- Reply and Request Plugins
- Fetch Plugins
- (Angular Plugins)
- Mock mechanism
To be able to expose all the items without forcing non mandatory dependencies, several entrypoints are exported from @ama-sdk/core. (example: Angular dependencies, several plugins, etc...).
The future integration of Tanstack Query will lead potentially to several plugins and Api Client requiring additional entrypoints.
Proposal
Move the Client API to dedicated @ama-sdk/client-* packages.
This proposal comes with the following acceptance criteria:
- Move the plugins dedicated to the ApiClient to the new package
- Deprecate the usage of ApiClient and its plugins from
@ama-sdk/core - Provide schematics to support the migration
The change should affect the following ApiClients:
- FetchApiClient #2129
- BeaconApiClient
- AngularApiClient