The Otter project is a highly modular framework whose goal is to provide a common platform to accelerate and facilitate the development of runtime customizable Angular based Web Applications
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:
Context
In the current implementation, the package
@ama-sdk/core
contains the following items: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:@ama-sdk/core
The change should affect the following ApiClients: