@harnessio/react-intelligence-service-client 0.14.0 → 0.15.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 (49) hide show
  1. package/dist/intelligence-service/src/services/hooks/useCreateRuleMutation.d.ts +40 -0
  2. package/dist/intelligence-service/src/services/hooks/useCreateRuleMutation.js +30 -0
  3. package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.d.ts +30 -11
  4. package/dist/intelligence-service/src/services/hooks/useDeleteRuleMutation.js +20 -4
  5. package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.d.ts +30 -11
  6. package/dist/intelligence-service/src/services/hooks/useGetRuleQuery.js +19 -5
  7. package/dist/intelligence-service/src/services/hooks/useGetUserSettingQuery.d.ts +20 -0
  8. package/dist/intelligence-service/src/services/hooks/useGetUserSettingQuery.js +14 -0
  9. package/dist/intelligence-service/src/services/hooks/useListRulesQuery.d.ts +46 -12
  10. package/dist/intelligence-service/src/services/hooks/useListRulesQuery.js +20 -4
  11. package/dist/intelligence-service/src/services/hooks/useListUserSettingsQuery.d.ts +17 -0
  12. package/dist/intelligence-service/src/services/hooks/useListUserSettingsQuery.js +14 -0
  13. package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.d.ts +33 -13
  14. package/dist/intelligence-service/src/services/hooks/useUpdateRuleMutation.js +20 -4
  15. package/dist/intelligence-service/src/services/hooks/useUpdateUserSettingsMutation.d.ts +20 -0
  16. package/dist/intelligence-service/src/services/hooks/useUpdateUserSettingsMutation.js +14 -0
  17. package/dist/intelligence-service/src/services/index.d.ts +16 -26
  18. package/dist/intelligence-service/src/services/index.js +4 -11
  19. package/dist/intelligence-service/src/services/schemas/TypesSettingValueResponse.d.ts +4 -0
  20. package/dist/intelligence-service/src/services/schemas/TypesSettingValueResponse.js +4 -0
  21. package/dist/intelligence-service/src/services/schemas/TypesUserSettingRequest.d.ts +6 -0
  22. package/dist/intelligence-service/src/services/schemas/TypesUserSettingRequest.js +4 -0
  23. package/dist/intelligence-service/src/services/schemas/TypesUserSettingResponse.d.ts +8 -0
  24. package/dist/intelligence-service/src/services/schemas/TypesUserSettingResponse.js +4 -0
  25. package/dist/intelligence-service/src/services/schemas/TypesUserSettingUpdateResponse.d.ts +5 -0
  26. package/dist/intelligence-service/src/services/schemas/TypesUserSettingUpdateResponse.js +4 -0
  27. package/package.json +1 -1
  28. package/dist/intelligence-service/src/services/hooks/useCreateAccountRuleMutation.d.ts +0 -20
  29. package/dist/intelligence-service/src/services/hooks/useCreateAccountRuleMutation.js +0 -14
  30. package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.d.ts +0 -23
  31. package/dist/intelligence-service/src/services/hooks/useCreateOrgRuleMutation.js +0 -14
  32. package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.d.ts +0 -24
  33. package/dist/intelligence-service/src/services/hooks/useCreateProjectRuleMutation.js +0 -14
  34. package/dist/intelligence-service/src/services/hooks/useDeleteOrgRuleMutation.d.ts +0 -20
  35. package/dist/intelligence-service/src/services/hooks/useDeleteOrgRuleMutation.js +0 -14
  36. package/dist/intelligence-service/src/services/hooks/useDeleteProjectRuleMutation.d.ts +0 -21
  37. package/dist/intelligence-service/src/services/hooks/useDeleteProjectRuleMutation.js +0 -14
  38. package/dist/intelligence-service/src/services/hooks/useGetOrgRuleQuery.d.ts +0 -21
  39. package/dist/intelligence-service/src/services/hooks/useGetOrgRuleQuery.js +0 -14
  40. package/dist/intelligence-service/src/services/hooks/useGetProjectRuleQuery.d.ts +0 -22
  41. package/dist/intelligence-service/src/services/hooks/useGetProjectRuleQuery.js +0 -14
  42. package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.d.ts +0 -29
  43. package/dist/intelligence-service/src/services/hooks/useListOrgRulesQuery.js +0 -14
  44. package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.d.ts +0 -30
  45. package/dist/intelligence-service/src/services/hooks/useListProjectRulesQuery.js +0 -14
  46. package/dist/intelligence-service/src/services/hooks/useUpdateOrgRuleMutation.d.ts +0 -24
  47. package/dist/intelligence-service/src/services/hooks/useUpdateOrgRuleMutation.js +0 -14
  48. package/dist/intelligence-service/src/services/hooks/useUpdateProjectRuleMutation.d.ts +0 -25
  49. package/dist/intelligence-service/src/services/hooks/useUpdateProjectRuleMutation.js +0 -14
@@ -5,25 +5,17 @@ export type { ChatV2ErrorResponse, ChatV2MutationQueryParams, ChatV2OkResponse,
5
5
  export { chatV2, useChatV2Mutation } from './hooks/useChatV2Mutation';
6
6
  export type { CompleteAttachmentErrorResponse, CompleteAttachmentMutationPathParams, CompleteAttachmentOkResponse, CompleteAttachmentProps, CompleteAttachmentRequestBody, } from './hooks/useCompleteAttachmentMutation';
7
7
  export { completeAttachment, useCompleteAttachmentMutation, } from './hooks/useCompleteAttachmentMutation';
8
- export type { CreateAccountRuleErrorResponse, CreateAccountRuleOkResponse, CreateAccountRuleProps, CreateAccountRuleRequestBody, } from './hooks/useCreateAccountRuleMutation';
9
- export { createAccountRule, useCreateAccountRuleMutation, } from './hooks/useCreateAccountRuleMutation';
10
8
  export type { CreateChatFeedbackErrorResponse, CreateChatFeedbackMutationQueryParams, CreateChatFeedbackOkResponse, CreateChatFeedbackProps, CreateChatFeedbackRequestBody, } from './hooks/useCreateChatFeedbackMutation';
11
9
  export { createChatFeedback, useCreateChatFeedbackMutation, } from './hooks/useCreateChatFeedbackMutation';
12
10
  export type { CreateEntityErrorResponse, CreateEntityOkResponse, CreateEntityProps, CreateEntityRequestBody, } from './hooks/useCreateEntityMutation';
13
11
  export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
14
- export type { CreateOrgRuleErrorResponse, CreateOrgRuleMutationPathParams, CreateOrgRuleOkResponse, CreateOrgRuleProps, CreateOrgRuleRequestBody, } from './hooks/useCreateOrgRuleMutation';
15
- export { createOrgRule, useCreateOrgRuleMutation } from './hooks/useCreateOrgRuleMutation';
16
- export type { CreateProjectRuleErrorResponse, CreateProjectRuleMutationPathParams, CreateProjectRuleOkResponse, CreateProjectRuleProps, CreateProjectRuleRequestBody, } from './hooks/useCreateProjectRuleMutation';
17
- export { createProjectRule, useCreateProjectRuleMutation, } from './hooks/useCreateProjectRuleMutation';
12
+ export type { CreateRuleAccountErrorResponse, CreateRuleAccountOKResponse, CreateRuleAccountRequestBody, CreateRuleOrgErrorResponse, CreateRuleOrgOKResponse, CreateRuleOrgPathParams, CreateRuleOrgRequestBody, CreateRuleProjectErrorResponse, CreateRuleProjectOKResponse, CreateRuleProjectPathParams, CreateRuleProjectRequestBody, CreateRuleProps, } from './hooks/useCreateRuleMutation';
13
+ export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
18
14
  export type { CreateUserRuleErrorResponse, CreateUserRuleOkResponse, CreateUserRuleProps, CreateUserRuleRequestBody, } from './hooks/useCreateUserRuleMutation';
19
15
  export { createUserRule, useCreateUserRuleMutation } from './hooks/useCreateUserRuleMutation';
20
16
  export type { DeleteChatSessionErrorResponse, DeleteChatSessionMutationPathParams, DeleteChatSessionOkResponse, DeleteChatSessionProps, } from './hooks/useDeleteChatSessionMutation';
21
17
  export { deleteChatSession, useDeleteChatSessionMutation, } from './hooks/useDeleteChatSessionMutation';
22
- export type { DeleteOrgRuleErrorResponse, DeleteOrgRuleMutationPathParams, DeleteOrgRuleOkResponse, DeleteOrgRuleProps, } from './hooks/useDeleteOrgRuleMutation';
23
- export { deleteOrgRule, useDeleteOrgRuleMutation } from './hooks/useDeleteOrgRuleMutation';
24
- export type { DeleteProjectRuleErrorResponse, DeleteProjectRuleMutationPathParams, DeleteProjectRuleOkResponse, DeleteProjectRuleProps, } from './hooks/useDeleteProjectRuleMutation';
25
- export { deleteProjectRule, useDeleteProjectRuleMutation, } from './hooks/useDeleteProjectRuleMutation';
26
- export type { DeleteRuleErrorResponse, DeleteRuleMutationPathParams, DeleteRuleOkResponse, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
18
+ export type { DeleteRuleAccountErrorResponse, DeleteRuleAccountOKResponse, DeleteRuleAccountPathParams, DeleteRuleOrgErrorResponse, DeleteRuleOrgOKResponse, DeleteRuleOrgPathParams, DeleteRuleProjectErrorResponse, DeleteRuleProjectOKResponse, DeleteRuleProjectPathParams, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
27
19
  export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
28
20
  export type { DeleteUserRuleErrorResponse, DeleteUserRuleMutationPathParams, DeleteUserRuleOkResponse, DeleteUserRuleProps, } from './hooks/useDeleteUserRuleMutation';
29
21
  export { deleteUserRule, useDeleteUserRuleMutation } from './hooks/useDeleteUserRuleMutation';
@@ -33,40 +25,34 @@ export type { GetChatSessionMessagesV2ErrorResponse, GetChatSessionMessagesV2OkR
33
25
  export { getChatSessionMessagesV2, useGetChatSessionMessagesV2Query, } from './hooks/useGetChatSessionMessagesV2Query';
34
26
  export type { GetChatSessionErrorResponse, GetChatSessionOkResponse, GetChatSessionProps, GetChatSessionQueryPathParams, GetChatSessionQueryQueryParams, } from './hooks/useGetChatSessionQuery';
35
27
  export { getChatSession, useGetChatSessionQuery } from './hooks/useGetChatSessionQuery';
36
- export type { GetOrgRuleErrorResponse, GetOrgRuleOkResponse, GetOrgRuleProps, GetOrgRuleQueryPathParams, } from './hooks/useGetOrgRuleQuery';
37
- export { getOrgRule, useGetOrgRuleQuery } from './hooks/useGetOrgRuleQuery';
38
- export type { GetProjectRuleErrorResponse, GetProjectRuleOkResponse, GetProjectRuleProps, GetProjectRuleQueryPathParams, } from './hooks/useGetProjectRuleQuery';
39
- export { getProjectRule, useGetProjectRuleQuery } from './hooks/useGetProjectRuleQuery';
40
28
  export type { GetReadyAttachmentErrorResponse, GetReadyAttachmentOkResponse, GetReadyAttachmentProps, GetReadyAttachmentQueryPathParams, GetReadyAttachmentQueryQueryParams, } from './hooks/useGetReadyAttachmentQuery';
41
29
  export { getReadyAttachment, useGetReadyAttachmentQuery } from './hooks/useGetReadyAttachmentQuery';
42
30
  export type { GetRuleCategoriesErrorResponse, GetRuleCategoriesOkResponse, GetRuleCategoriesProps, } from './hooks/useGetRuleCategoriesQuery';
43
31
  export { getRuleCategories, useGetRuleCategoriesQuery } from './hooks/useGetRuleCategoriesQuery';
44
- export type { GetRuleErrorResponse, GetRuleOkResponse, GetRuleProps, GetRuleQueryPathParams, } from './hooks/useGetRuleQuery';
32
+ export type { GetRuleAccountErrorResponse, GetRuleAccountOKResponse, GetRuleAccountPathParams, GetRuleOrgErrorResponse, GetRuleOrgOKResponse, GetRuleOrgPathParams, GetRuleProjectErrorResponse, GetRuleProjectOKResponse, GetRuleProjectPathParams, GetRuleProps, } from './hooks/useGetRuleQuery';
45
33
  export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
46
34
  export type { GetUserRuleErrorResponse, GetUserRuleOkResponse, GetUserRuleProps, GetUserRuleQueryPathParams, } from './hooks/useGetUserRuleQuery';
47
35
  export { getUserRule, useGetUserRuleQuery } from './hooks/useGetUserRuleQuery';
36
+ export type { GetUserSettingErrorResponse, GetUserSettingOkResponse, GetUserSettingProps, GetUserSettingQueryPathParams, } from './hooks/useGetUserSettingQuery';
37
+ export { getUserSetting, useGetUserSettingQuery } from './hooks/useGetUserSettingQuery';
48
38
  export type { InitializeAttachmentErrorResponse, InitializeAttachmentMutationQueryParams, InitializeAttachmentOkResponse, InitializeAttachmentProps, InitializeAttachmentRequestBody, } from './hooks/useInitializeAttachmentMutation';
49
39
  export { initializeAttachment, useInitializeAttachmentMutation, } from './hooks/useInitializeAttachmentMutation';
50
40
  export type { ListChatSessionsErrorResponse, ListChatSessionsOkResponse, ListChatSessionsProps, ListChatSessionsQueryQueryParams, } from './hooks/useListChatSessionsQuery';
51
41
  export { listChatSessions, useListChatSessionsQuery } from './hooks/useListChatSessionsQuery';
52
- export type { ListOrgRulesErrorResponse, ListOrgRulesOkResponse, ListOrgRulesProps, ListOrgRulesQueryPathParams, ListOrgRulesQueryQueryParams, } from './hooks/useListOrgRulesQuery';
53
- export { listOrgRules, useListOrgRulesQuery } from './hooks/useListOrgRulesQuery';
54
- export type { ListProjectRulesErrorResponse, ListProjectRulesOkResponse, ListProjectRulesProps, ListProjectRulesQueryPathParams, ListProjectRulesQueryQueryParams, } from './hooks/useListProjectRulesQuery';
55
- export { listProjectRules, useListProjectRulesQuery } from './hooks/useListProjectRulesQuery';
56
- export type { ListRulesErrorResponse, ListRulesOkResponse, ListRulesProps, ListRulesQueryQueryParams, } from './hooks/useListRulesQuery';
42
+ export type { ListRulesAccountErrorResponse, ListRulesAccountOKResponse, ListRulesAccountQueryParams, ListRulesOrgErrorResponse, ListRulesOrgOKResponse, ListRulesOrgPathParams, ListRulesOrgQueryParams, ListRulesProjectErrorResponse, ListRulesProjectOKResponse, ListRulesProjectPathParams, ListRulesProjectQueryParams, ListRulesProps, } from './hooks/useListRulesQuery';
57
43
  export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
58
44
  export type { ListUserRulesErrorResponse, ListUserRulesOkResponse, ListUserRulesProps, ListUserRulesQueryQueryParams, } from './hooks/useListUserRulesQuery';
59
45
  export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
46
+ export type { ListUserSettingsErrorResponse, ListUserSettingsOkResponse, ListUserSettingsProps, } from './hooks/useListUserSettingsQuery';
47
+ export { listUserSettings, useListUserSettingsQuery } from './hooks/useListUserSettingsQuery';
60
48
  export type { UpdateChatSessionErrorResponse, UpdateChatSessionMutationPathParams, UpdateChatSessionOkResponse, UpdateChatSessionProps, UpdateChatSessionRequestBody, } from './hooks/useUpdateChatSessionMutation';
61
49
  export { updateChatSession, useUpdateChatSessionMutation, } from './hooks/useUpdateChatSessionMutation';
62
- export type { UpdateOrgRuleErrorResponse, UpdateOrgRuleMutationPathParams, UpdateOrgRuleOkResponse, UpdateOrgRuleProps, UpdateOrgRuleRequestBody, } from './hooks/useUpdateOrgRuleMutation';
63
- export { updateOrgRule, useUpdateOrgRuleMutation } from './hooks/useUpdateOrgRuleMutation';
64
- export type { UpdateProjectRuleErrorResponse, UpdateProjectRuleMutationPathParams, UpdateProjectRuleOkResponse, UpdateProjectRuleProps, UpdateProjectRuleRequestBody, } from './hooks/useUpdateProjectRuleMutation';
65
- export { updateProjectRule, useUpdateProjectRuleMutation, } from './hooks/useUpdateProjectRuleMutation';
66
- export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleOkResponse, UpdateRuleProps, UpdateRuleRequestBody, } from './hooks/useUpdateRuleMutation';
50
+ export type { UpdateRuleAccountErrorResponse, UpdateRuleAccountOKResponse, UpdateRuleAccountPathParams, UpdateRuleAccountRequestBody, UpdateRuleOrgErrorResponse, UpdateRuleOrgOKResponse, UpdateRuleOrgPathParams, UpdateRuleOrgRequestBody, UpdateRuleProjectErrorResponse, UpdateRuleProjectOKResponse, UpdateRuleProjectPathParams, UpdateRuleProjectRequestBody, UpdateRuleProps, } from './hooks/useUpdateRuleMutation';
67
51
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
68
52
  export type { UpdateUserRuleErrorResponse, UpdateUserRuleMutationPathParams, UpdateUserRuleOkResponse, UpdateUserRuleProps, UpdateUserRuleRequestBody, } from './hooks/useUpdateUserRuleMutation';
69
53
  export { updateUserRule, useUpdateUserRuleMutation } from './hooks/useUpdateUserRuleMutation';
54
+ export type { UpdateUserSettingsErrorResponse, UpdateUserSettingsOkResponse, UpdateUserSettingsProps, UpdateUserSettingsRequestBody, } from './hooks/useUpdateUserSettingsMutation';
55
+ export { updateUserSettings, useUpdateUserSettingsMutation, } from './hooks/useUpdateUserSettingsMutation';
70
56
  export type { ControllerCreateRuleInput } from './schemas/ControllerCreateRuleInput';
71
57
  export type { ControllerRuleInput } from './schemas/ControllerRuleInput';
72
58
  export type { EnumAction } from './schemas/EnumAction';
@@ -106,5 +92,9 @@ export type { TypesRuleCategory } from './schemas/TypesRuleCategory';
106
92
  export type { TypesRuleScope } from './schemas/TypesRuleScope';
107
93
  export type { TypesRuleSource } from './schemas/TypesRuleSource';
108
94
  export type { TypesRuleStatus } from './schemas/TypesRuleStatus';
95
+ export type { TypesSettingValueResponse } from './schemas/TypesSettingValueResponse';
96
+ export type { TypesUserSettingRequest } from './schemas/TypesUserSettingRequest';
97
+ export type { TypesUserSettingResponse } from './schemas/TypesUserSettingResponse';
98
+ export type { TypesUserSettingUpdateResponse } from './schemas/TypesUserSettingUpdateResponse';
109
99
  export type { UsererrorError } from './schemas/UsererrorError';
110
100
  export type { UuidUuid } from './schemas/UuidUuid';
@@ -1,34 +1,27 @@
1
1
  export { chat, useChatMutation } from './hooks/useChatMutation';
2
2
  export { chatV2, useChatV2Mutation } from './hooks/useChatV2Mutation';
3
3
  export { completeAttachment, useCompleteAttachmentMutation, } from './hooks/useCompleteAttachmentMutation';
4
- export { createAccountRule, useCreateAccountRuleMutation, } from './hooks/useCreateAccountRuleMutation';
5
4
  export { createChatFeedback, useCreateChatFeedbackMutation, } from './hooks/useCreateChatFeedbackMutation';
6
5
  export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
7
- export { createOrgRule, useCreateOrgRuleMutation } from './hooks/useCreateOrgRuleMutation';
8
- export { createProjectRule, useCreateProjectRuleMutation, } from './hooks/useCreateProjectRuleMutation';
6
+ export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
9
7
  export { createUserRule, useCreateUserRuleMutation } from './hooks/useCreateUserRuleMutation';
10
8
  export { deleteChatSession, useDeleteChatSessionMutation, } from './hooks/useDeleteChatSessionMutation';
11
- export { deleteOrgRule, useDeleteOrgRuleMutation } from './hooks/useDeleteOrgRuleMutation';
12
- export { deleteProjectRule, useDeleteProjectRuleMutation, } from './hooks/useDeleteProjectRuleMutation';
13
9
  export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
14
10
  export { deleteUserRule, useDeleteUserRuleMutation } from './hooks/useDeleteUserRuleMutation';
15
11
  export { getChatSessionMessages, useGetChatSessionMessagesQuery, } from './hooks/useGetChatSessionMessagesQuery';
16
12
  export { getChatSessionMessagesV2, useGetChatSessionMessagesV2Query, } from './hooks/useGetChatSessionMessagesV2Query';
17
13
  export { getChatSession, useGetChatSessionQuery } from './hooks/useGetChatSessionQuery';
18
- export { getOrgRule, useGetOrgRuleQuery } from './hooks/useGetOrgRuleQuery';
19
- export { getProjectRule, useGetProjectRuleQuery } from './hooks/useGetProjectRuleQuery';
20
14
  export { getReadyAttachment, useGetReadyAttachmentQuery } from './hooks/useGetReadyAttachmentQuery';
21
15
  export { getRuleCategories, useGetRuleCategoriesQuery } from './hooks/useGetRuleCategoriesQuery';
22
16
  export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
23
17
  export { getUserRule, useGetUserRuleQuery } from './hooks/useGetUserRuleQuery';
18
+ export { getUserSetting, useGetUserSettingQuery } from './hooks/useGetUserSettingQuery';
24
19
  export { initializeAttachment, useInitializeAttachmentMutation, } from './hooks/useInitializeAttachmentMutation';
25
20
  export { listChatSessions, useListChatSessionsQuery } from './hooks/useListChatSessionsQuery';
26
- export { listOrgRules, useListOrgRulesQuery } from './hooks/useListOrgRulesQuery';
27
- export { listProjectRules, useListProjectRulesQuery } from './hooks/useListProjectRulesQuery';
28
21
  export { listRules, useListRulesQuery } from './hooks/useListRulesQuery';
29
22
  export { listUserRules, useListUserRulesQuery } from './hooks/useListUserRulesQuery';
23
+ export { listUserSettings, useListUserSettingsQuery } from './hooks/useListUserSettingsQuery';
30
24
  export { updateChatSession, useUpdateChatSessionMutation, } from './hooks/useUpdateChatSessionMutation';
31
- export { updateOrgRule, useUpdateOrgRuleMutation } from './hooks/useUpdateOrgRuleMutation';
32
- export { updateProjectRule, useUpdateProjectRuleMutation, } from './hooks/useUpdateProjectRuleMutation';
33
25
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
34
26
  export { updateUserRule, useUpdateUserRuleMutation } from './hooks/useUpdateUserRuleMutation';
27
+ export { updateUserSettings, useUpdateUserSettingsMutation, } from './hooks/useUpdateUserSettingsMutation';
@@ -0,0 +1,4 @@
1
+ export interface TypesSettingValueResponse {
2
+ value?: string;
3
+ value_type?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface TypesUserSettingRequest {
2
+ enable_across_accounts?: boolean;
3
+ identifier?: string;
4
+ update_type?: string;
5
+ value?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface TypesUserSettingResponse {
2
+ category?: string;
3
+ default_value?: string;
4
+ identifier?: string;
5
+ name?: string;
6
+ value?: string;
7
+ value_type?: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface TypesUserSettingUpdateResponse {
2
+ identifier?: string;
3
+ message?: string;
4
+ success?: boolean;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-intelligence-service-client",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Harness React Intelligence service client - Intelligence APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,20 +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 { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface CreateAccountRuleMutationHeaderParams {
8
- 'harness-account': string;
9
- }
10
- export type CreateAccountRuleRequestBody = ControllerCreateRuleInput;
11
- export type CreateAccountRuleOkResponse = ResponseWithPagination<TypesRule>;
12
- export type CreateAccountRuleErrorResponse = UsererrorError;
13
- export interface CreateAccountRuleProps extends Omit<FetcherOptions<unknown, CreateAccountRuleRequestBody, CreateAccountRuleMutationHeaderParams>, 'url'> {
14
- body: CreateAccountRuleRequestBody;
15
- }
16
- export declare function createAccountRule(props: CreateAccountRuleProps): Promise<CreateAccountRuleOkResponse>;
17
- /**
18
- * Create a new account-level rule
19
- */
20
- export declare function useCreateAccountRuleMutation(options?: Omit<UseMutationOptions<CreateAccountRuleOkResponse, CreateAccountRuleErrorResponse, CreateAccountRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAccountRuleOkResponse, UsererrorError, CreateAccountRuleProps, 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 createAccountRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/rules`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Create a new account-level rule
11
- */
12
- export function useCreateAccountRuleMutation(options) {
13
- return useMutation((mutateProps) => createAccountRule(mutateProps), options);
14
- }
@@ -1,23 +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 { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface CreateOrgRuleMutationPathParams {
8
- org_id: string;
9
- }
10
- export interface CreateOrgRuleMutationHeaderParams {
11
- 'harness-account': string;
12
- }
13
- export type CreateOrgRuleRequestBody = ControllerCreateRuleInput;
14
- export type CreateOrgRuleOkResponse = ResponseWithPagination<TypesRule>;
15
- export type CreateOrgRuleErrorResponse = UsererrorError;
16
- export interface CreateOrgRuleProps extends CreateOrgRuleMutationPathParams, Omit<FetcherOptions<unknown, CreateOrgRuleRequestBody, CreateOrgRuleMutationHeaderParams>, 'url'> {
17
- body: CreateOrgRuleRequestBody;
18
- }
19
- export declare function createOrgRule(props: CreateOrgRuleProps): Promise<CreateOrgRuleOkResponse>;
20
- /**
21
- * Create a new organization-level rule
22
- */
23
- export declare function useCreateOrgRuleMutation(options?: Omit<UseMutationOptions<CreateOrgRuleOkResponse, CreateOrgRuleErrorResponse, CreateOrgRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateOrgRuleOkResponse, UsererrorError, CreateOrgRuleProps, 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 createOrgRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Create a new organization-level rule
11
- */
12
- export function useCreateOrgRuleMutation(options) {
13
- return useMutation((mutateProps) => createOrgRule(mutateProps), 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 { ControllerCreateRuleInput } from '../schemas/ControllerCreateRuleInput';
5
- import type { ResponseWithPagination } from '../helpers';
6
- import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface CreateProjectRuleMutationPathParams {
8
- org_id: string;
9
- project_id: string;
10
- }
11
- export interface CreateProjectRuleMutationHeaderParams {
12
- 'harness-account': string;
13
- }
14
- export type CreateProjectRuleRequestBody = ControllerCreateRuleInput;
15
- export type CreateProjectRuleOkResponse = ResponseWithPagination<TypesRule>;
16
- export type CreateProjectRuleErrorResponse = UsererrorError;
17
- export interface CreateProjectRuleProps extends CreateProjectRuleMutationPathParams, Omit<FetcherOptions<unknown, CreateProjectRuleRequestBody, CreateProjectRuleMutationHeaderParams>, 'url'> {
18
- body: CreateProjectRuleRequestBody;
19
- }
20
- export declare function createProjectRule(props: CreateProjectRuleProps): Promise<CreateProjectRuleOkResponse>;
21
- /**
22
- * Create a new project-level rule
23
- */
24
- export declare function useCreateProjectRuleMutation(options?: Omit<UseMutationOptions<CreateProjectRuleOkResponse, CreateProjectRuleErrorResponse, CreateProjectRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateProjectRuleOkResponse, UsererrorError, CreateProjectRuleProps, 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 createProjectRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/projects/${props.project_id}/rules`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Create a new project-level rule
11
- */
12
- export function useCreateProjectRuleMutation(options) {
13
- return useMutation((mutateProps) => createProjectRule(mutateProps), options);
14
- }
@@ -1,20 +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 DeleteOrgRuleMutationPathParams {
6
- org_id: string;
7
- rule_id: string;
8
- }
9
- export interface DeleteOrgRuleMutationHeaderParams {
10
- 'harness-account': string;
11
- }
12
- export type DeleteOrgRuleOkResponse = ResponseWithPagination<unknown>;
13
- export type DeleteOrgRuleErrorResponse = UsererrorError;
14
- export interface DeleteOrgRuleProps extends DeleteOrgRuleMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteOrgRuleMutationHeaderParams>, 'url'> {
15
- }
16
- export declare function deleteOrgRule(props: DeleteOrgRuleProps): Promise<DeleteOrgRuleOkResponse>;
17
- /**
18
- * Delete an organization-level rule
19
- */
20
- export declare function useDeleteOrgRuleMutation(options?: Omit<UseMutationOptions<DeleteOrgRuleOkResponse, DeleteOrgRuleErrorResponse, DeleteOrgRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteOrgRuleOkResponse, UsererrorError, DeleteOrgRuleProps, 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 deleteOrgRule(props) {
7
- return fetcher(Object.assign({ url: `/api/v1/orgs/${props.org_id}/rules/${props.rule_id}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete an organization-level rule
11
- */
12
- export function useDeleteOrgRuleMutation(options) {
13
- return useMutation((mutateProps) => deleteOrgRule(mutateProps), options);
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
- }