Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResponseOps][Cases] Move hooks and APIs to a package #216175

Open
cnasikas opened this issue Mar 27, 2025 · 2 comments
Open

[ResponseOps][Cases] Move hooks and APIs to a package #216175

cnasikas opened this issue Mar 27, 2025 · 2 comments
Labels
Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@cnasikas
Copy link
Member

To empower solutions to build their UIs on top of Cases, we need to expose tools for making API calls in the case's backend. The cases plugin already has a rich set of API functions and react query hooks. We should move them to a package where solutions can import them.

DoD

  • Create a package called @kbn/cases-apis.
  • The package should be under the src/platform/packages/shared/response-ops folder.
  • The folder should be named cases-apis.
  • The type of the package should be shared-browser.
  • The package contains have two folders: one called apis where all API functions will be and one called hooks where all React query hooks will be.
  • A file called query_keys.ts will contain the react query keys and a file called mutation_keys.ts will contain the mutation keys.
  • The package can import types and schemas from the cases plugin.
@cnasikas cnasikas added Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Mar 27, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
Development

No branches or pull requests

2 participants