Skip to content

[Feature]: Split SDK API Client to dedicated packages #2128

@kpanot

Description

@kpanot

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions