@harnessio/react-intelligence-service-client 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/intelligence-service/src/services/hooks/useCreateMemoryMutation.d.ts +20 -0
  2. package/dist/intelligence-service/src/services/hooks/useCreateMemoryMutation.js +14 -0
  3. package/dist/intelligence-service/src/services/hooks/useCreateRuleMutation.d.ts +40 -0
  4. package/dist/intelligence-service/src/services/hooks/useCreateRuleMutation.js +30 -0
  5. package/dist/intelligence-service/src/services/hooks/useDeleteMemoryMutation.d.ts +19 -0
  6. package/dist/intelligence-service/src/services/hooks/useDeleteMemoryMutation.js +14 -0
  7. package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.d.ts +30 -11
  8. package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.js +20 -4
  9. package/dist/intelligence-service/src/services/hooks/useGetMemoryQuery.d.ts +20 -0
  10. package/dist/intelligence-service/src/services/hooks/useGetMemoryQuery.js +14 -0
  11. package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.d.ts +30 -11
  12. package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.js +19 -5
  13. package/dist/intelligence-service/src/services/hooks/useGetUserSettingQuery.d.ts +20 -0
  14. package/dist/intelligence-service/src/services/hooks/useGetUserSettingQuery.js +14 -0
  15. package/dist/intelligence-service/src/services/hooks/useListMemoriesQuery.d.ts +25 -0
  16. package/dist/intelligence-service/src/services/hooks/useListMemoriesQuery.js +14 -0
  17. package/dist/intelligence-service/src/services/hooks/useListRulesQuery.d.ts +46 -12
  18. package/dist/intelligence-service/src/services/hooks/useListRulesQuery.js +20 -4
  19. package/dist/intelligence-service/src/services/hooks/useListUserSettingsQuery.d.ts +17 -0
  20. package/dist/intelligence-service/src/services/hooks/useListUserSettingsQuery.js +14 -0
  21. package/dist/intelligence-service/src/services/hooks/useUpdateMemoryMutation.d.ts +23 -0
  22. package/dist/intelligence-service/src/services/hooks/useUpdateMemoryMutation.js +14 -0
  23. package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.d.ts +33 -13
  24. package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.js +20 -4
  25. package/dist/intelligence-service/src/services/hooks/useUpdateUserSettingsMutation.d.ts +20 -0
  26. package/dist/intelligence-service/src/services/hooks/useUpdateUserSettingsMutation.js +14 -0
  27. package/dist/intelligence-service/src/services/index.d.ts +32 -26
  28. package/dist/intelligence-service/src/services/index.js +9 -11
  29. package/dist/intelligence-service/src/services/schemas/HandlerCreateMemoryRequest.d.ts +6 -0
  30. package/dist/intelligence-service/src/services/schemas/HandlerCreateMemoryRequest.js +4 -0
  31. package/dist/intelligence-service/src/services/schemas/HandlerGetMemoryResponse.d.ts +4 -0
  32. package/dist/intelligence-service/src/services/schemas/HandlerGetMemoryResponse.js +1 -0
  33. package/dist/intelligence-service/src/services/schemas/HandlerListMemoriesResponse.d.ts +6 -0
  34. package/dist/intelligence-service/src/services/schemas/HandlerListMemoriesResponse.js +1 -0
  35. package/dist/intelligence-service/src/services/schemas/HandlerUpdateMemoryRequest.d.ts +6 -0
  36. package/dist/intelligence-service/src/services/schemas/HandlerUpdateMemoryRequest.js +4 -0
  37. package/dist/intelligence-service/src/services/schemas/TypesMemory.d.ts +23 -0
  38. package/dist/intelligence-service/src/services/schemas/TypesMemory.js +1 -0
  39. package/dist/intelligence-service/src/services/schemas/TypesSettingValueResponse.d.ts +4 -0
  40. package/dist/intelligence-service/src/services/schemas/TypesSettingValueResponse.js +4 -0
  41. package/dist/intelligence-service/src/services/schemas/TypesType.d.ts +1 -0
  42. package/dist/intelligence-service/src/services/schemas/TypesType.js +4 -0
  43. package/dist/intelligence-service/src/services/schemas/TypesUserSettingRequest.d.ts +6 -0
  44. package/dist/intelligence-service/src/services/schemas/TypesUserSettingRequest.js +4 -0
  45. package/dist/intelligence-service/src/services/schemas/TypesUserSettingResponse.d.ts +8 -0
  46. package/dist/intelligence-service/src/services/schemas/TypesUserSettingResponse.js +4 -0
  47. package/dist/intelligence-service/src/services/schemas/TypesUserSettingUpdateResponse.d.ts +5 -0
  48. package/dist/intelligence-service/src/services/schemas/TypesUserSettingUpdateResponse.js +4 -0
  49. package/package.json +1 -1
  50. package/dist/intelligence-service/src/services/hooks/useCreateAccountRuleMutation.d.ts +0 -20
  51. package/dist/intelligence-service/src/services/hooks/useCreateAccountRuleMutation.js +0 -14
  52. package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.d.ts +0 -23
  53. package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.js +0 -14
  54. package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.d.ts +0 -24
  55. package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.js +0 -14
  56. package/dist/intelligence-service/src/services/hooks/useDeleteOrgRuleMutation.d.ts +0 -20
  57. package/dist/intelligence-service/src/services/hooks/useDeleteOrgRuleMutation.js +0 -14
  58. package/dist/intelligence-service/src/services/hooks/useDeleteProjectRuleMutation.d.ts +0 -21
  59. package/dist/intelligence-service/src/services/hooks/useDeleteProjectRuleMutation.js +0 -14
  60. package/dist/intelligence-service/src/services/hooks/useGetOrgRuleQuery.d.ts +0 -21
  61. package/dist/intelligence-service/src/services/hooks/useGetOrgRuleQuery.js +0 -14
  62. package/dist/intelligence-service/src/services/hooks/useGetProjectRuleQuery.d.ts +0 -22
  63. package/dist/intelligence-service/src/services/hooks/useGetProjectRuleQuery.js +0 -14
  64. package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.d.ts +0 -29
  65. package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.js +0 -14
  66. package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.d.ts +0 -30
  67. package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.js +0 -14
  68. package/dist/intelligence-service/src/services/hooks/useUpdateOrgRuleMutation.d.ts +0 -24
  69. package/dist/intelligence-service/src/services/hooks/useUpdateOrgRuleMutation.js +0 -14
  70. package/dist/intelligence-service/src/services/hooks/useUpdateProjectRuleMutation.d.ts +0 -25
  71. package/dist/intelligence-service/src/services/hooks/useUpdateProjectRuleMutation.js +0 -14
@@ -1,21 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { UsererrorError } from '../schemas/UsererrorError';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface DeleteProjectRuleMutationPathParams {
6
- org_id: string;
7
- project_id: string;
8
- rule_id: string;
9
- }
10
- export interface DeleteProjectRuleMutationHeaderParams {
11
- 'harness-account': string;
12
- }
13
- export type DeleteProjectRuleOkResponse = ResponseWithPagination<unknown>;
14
- export type DeleteProjectRuleErrorResponse = UsererrorError;
15
- export interface DeleteProjectRuleProps extends DeleteProjectRuleMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteProjectRuleMutationHeaderParams>, 'url'> {
16
- }
17
- export declare function deleteProjectRule(props: DeleteProjectRuleProps): Promise<DeleteProjectRuleOkResponse>;
18
- /**
19
- * Delete a project-level rule
20
- */
21
- export declare function useDeleteProjectRuleMutation(options?: Omit<UseMutationOptions<DeleteProjectRuleOkResponse, DeleteProjectRuleErrorResponse, DeleteProjectRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteProjectRuleOkResponse, UsererrorError, DeleteProjectRuleProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteProjectRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules/${props.rule_id}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete a project-level rule
11
- */
12
- export function useDeleteProjectRuleMutation(options) {
13
- return useMutation((mutateProps) => deleteProjectRule(mutateProps), options);
14
- }
@@ -1,21 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesRule } from '../schemas/TypesRule';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface GetOrgRuleQueryPathParams {
7
- org_id: string;
8
- rule_id: string;
9
- }
10
- export interface GetOrgRuleQueryHeaderParams {
11
- 'harness-account': string;
12
- }
13
- export type GetOrgRuleOkResponse = ResponseWithPagination<TypesRule>;
14
- export type GetOrgRuleErrorResponse = UsererrorError;
15
- export interface GetOrgRuleProps extends GetOrgRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetOrgRuleQueryHeaderParams>, 'url'> {
16
- }
17
- export declare function getOrgRule(props: GetOrgRuleProps): Promise<GetOrgRuleOkResponse>;
18
- /**
19
- * Get an organization-level rule by ID
20
- */
21
- export declare function useGetOrgRuleQuery(props: GetOrgRuleProps, options?: Omit<UseQueryOptions<GetOrgRuleOkResponse, GetOrgRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrgRuleOkResponse, UsererrorError>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getOrgRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules/${props.rule_id}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get an organization-level rule by ID
11
- */
12
- export function useGetOrgRuleQuery(props, options) {
13
- return useQuery(['getOrgRule', props.org_id, props.rule_id], ({ signal }) => getOrgRule(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,22 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesRule } from '../schemas/TypesRule';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface GetProjectRuleQueryPathParams {
7
- org_id: string;
8
- project_id: string;
9
- rule_id: string;
10
- }
11
- export interface GetProjectRuleQueryHeaderParams {
12
- 'harness-account': string;
13
- }
14
- export type GetProjectRuleOkResponse = ResponseWithPagination<TypesRule>;
15
- export type GetProjectRuleErrorResponse = UsererrorError;
16
- export interface GetProjectRuleProps extends GetProjectRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetProjectRuleQueryHeaderParams>, 'url'> {
17
- }
18
- export declare function getProjectRule(props: GetProjectRuleProps): Promise<GetProjectRuleOkResponse>;
19
- /**
20
- * Get a project-level rule by ID
21
- */
22
- export declare function useGetProjectRuleQuery(props: GetProjectRuleProps, options?: Omit<UseQueryOptions<GetProjectRuleOkResponse, GetProjectRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProjectRuleOkResponse, UsererrorError>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getProjectRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules/${props.rule_id}`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get a project-level rule by ID
11
- */
12
- export function useGetProjectRuleQuery(props, options) {
13
- return useQuery(['getProjectRule', props.org_id, props.project_id, props.rule_id], ({ signal }) => getProjectRule(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,29 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesRule } from '../schemas/TypesRule';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface ListOrgRulesQueryPathParams {
7
- org_id: string;
8
- }
9
- export interface ListOrgRulesQueryQueryParams {
10
- category?: string;
11
- scope?: string;
12
- status?: string;
13
- source?: string;
14
- page?: string;
15
- limit?: string;
16
- }
17
- export interface ListOrgRulesQueryHeaderParams {
18
- 'harness-account': string;
19
- }
20
- export type ListOrgRulesOkResponse = ResponseWithPagination<TypesRule[]>;
21
- export type ListOrgRulesErrorResponse = UsererrorError;
22
- export interface ListOrgRulesProps extends ListOrgRulesQueryPathParams, Omit<FetcherOptions<ListOrgRulesQueryQueryParams, unknown, ListOrgRulesQueryHeaderParams>, 'url'> {
23
- queryParams: ListOrgRulesQueryQueryParams;
24
- }
25
- export declare function listOrgRules(props: ListOrgRulesProps): Promise<ListOrgRulesOkResponse>;
26
- /**
27
- * List organization-level rules
28
- */
29
- export declare function useListOrgRulesQuery(props: ListOrgRulesProps, options?: Omit<UseQueryOptions<ListOrgRulesOkResponse, ListOrgRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListOrgRulesOkResponse, UsererrorError>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function listOrgRules(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules`, method: 'GET' }, props));
8
- }
9
- /**
10
- * List organization-level rules
11
- */
12
- export function useListOrgRulesQuery(props, options) {
13
- return useQuery(['listOrgRules', props.org_id, props.queryParams], ({ signal }) => listOrgRules(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,30 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TypesRule } from '../schemas/TypesRule';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface ListProjectRulesQueryPathParams {
7
- org_id: string;
8
- project_id: string;
9
- }
10
- export interface ListProjectRulesQueryQueryParams {
11
- category?: string;
12
- scope?: string;
13
- status?: string;
14
- source?: string;
15
- page?: string;
16
- limit?: string;
17
- }
18
- export interface ListProjectRulesQueryHeaderParams {
19
- 'harness-account': string;
20
- }
21
- export type ListProjectRulesOkResponse = ResponseWithPagination<TypesRule[]>;
22
- export type ListProjectRulesErrorResponse = UsererrorError;
23
- export interface ListProjectRulesProps extends ListProjectRulesQueryPathParams, Omit<FetcherOptions<ListProjectRulesQueryQueryParams, unknown, ListProjectRulesQueryHeaderParams>, 'url'> {
24
- queryParams: ListProjectRulesQueryQueryParams;
25
- }
26
- export declare function listProjectRules(props: ListProjectRulesProps): Promise<ListProjectRulesOkResponse>;
27
- /**
28
- * List project-level rules
29
- */
30
- export declare function useListProjectRulesQuery(props: ListProjectRulesProps, options?: Omit<UseQueryOptions<ListProjectRulesOkResponse, ListProjectRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProjectRulesOkResponse, UsererrorError>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function listProjectRules(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules`, method: 'GET' }, props));
8
- }
9
- /**
10
- * List project-level rules
11
- */
12
- export function useListProjectRulesQuery(props, options) {
13
- return useQuery(['listProjectRules', props.org_id, props.project_id, props.queryParams], ({ signal }) => listProjectRules(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,24 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesRule } from '../schemas/TypesRule';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface UpdateOrgRuleMutationPathParams {
8
- org_id: string;
9
- rule_id: string;
10
- }
11
- export interface UpdateOrgRuleMutationHeaderParams {
12
- 'harness-account': string;
13
- }
14
- export type UpdateOrgRuleRequestBody = ControllerRuleInput;
15
- export type UpdateOrgRuleOkResponse = ResponseWithPagination<TypesRule>;
16
- export type UpdateOrgRuleErrorResponse = UsererrorError;
17
- export interface UpdateOrgRuleProps extends UpdateOrgRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateOrgRuleRequestBody, UpdateOrgRuleMutationHeaderParams>, 'url'> {
18
- body: UpdateOrgRuleRequestBody;
19
- }
20
- export declare function updateOrgRule(props: UpdateOrgRuleProps): Promise<UpdateOrgRuleOkResponse>;
21
- /**
22
- * Update an organization-level rule
23
- */
24
- export declare function useUpdateOrgRuleMutation(options?: Omit<UseMutationOptions<UpdateOrgRuleOkResponse, UpdateOrgRuleErrorResponse, UpdateOrgRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateOrgRuleOkResponse, UsererrorError, UpdateOrgRuleProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function updateOrgRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules/${props.rule_id}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Update an organization-level rule
11
- */
12
- export function useUpdateOrgRuleMutation(options) {
13
- return useMutation((mutateProps) => updateOrgRule(mutateProps), options);
14
- }
@@ -1,25 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { TypesRule } from '../schemas/TypesRule';
3
- import type { UsererrorError } from '../schemas/UsererrorError';
4
- import type { ControllerRuleInput } from '../schemas/ControllerRuleInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface UpdateProjectRuleMutationPathParams {
8
- org_id: string;
9
- project_id: string;
10
- rule_id: string;
11
- }
12
- export interface UpdateProjectRuleMutationHeaderParams {
13
- 'harness-account': string;
14
- }
15
- export type UpdateProjectRuleRequestBody = ControllerRuleInput;
16
- export type UpdateProjectRuleOkResponse = ResponseWithPagination<TypesRule>;
17
- export type UpdateProjectRuleErrorResponse = UsererrorError;
18
- export interface UpdateProjectRuleProps extends UpdateProjectRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateProjectRuleRequestBody, UpdateProjectRuleMutationHeaderParams>, 'url'> {
19
- body: UpdateProjectRuleRequestBody;
20
- }
21
- export declare function updateProjectRule(props: UpdateProjectRuleProps): Promise<UpdateProjectRuleOkResponse>;
22
- /**
23
- * Update a project-level rule
24
- */
25
- export declare function useUpdateProjectRuleMutation(options?: Omit<UseMutationOptions<UpdateProjectRuleOkResponse, UpdateProjectRuleErrorResponse, UpdateProjectRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProjectRuleOkResponse, UsererrorError, UpdateProjectRuleProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function updateProjectRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules/${props.rule_id}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Update a project-level rule
11
- */
12
- export function useUpdateProjectRuleMutation(options) {
13
- return useMutation((mutateProps) => updateProjectRule(mutateProps), options);
14
- }