@harnessio/react-integration-manager-client 0.5.4 → 0.5.6

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 (110) hide show
  1. package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigMutation.d.ts +1 -1
  2. package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigMutation.js +1 -1
  3. package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigOrgMutation.d.ts +1 -1
  4. package/dist/integration-manager/src/services/hooks/useCreateAirbyteIntegrationConfigOrgMutation.js +1 -1
  5. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.d.ts +1 -1
  6. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigMutation.js +1 -1
  7. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.d.ts +1 -1
  8. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigOrgMutation.js +1 -1
  9. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.d.ts +1 -1
  10. package/dist/integration-manager/src/services/hooks/useCreateIntegrationConfigProjectMutation.js +1 -1
  11. package/dist/integration-manager/src/services/hooks/useCreateMetricConfigMutation.d.ts +20 -0
  12. package/dist/integration-manager/src/services/hooks/useCreateMetricConfigMutation.js +14 -0
  13. package/dist/integration-manager/src/services/hooks/useCreateMetricConfigOrgMutation.d.ts +21 -0
  14. package/dist/integration-manager/src/services/hooks/useCreateMetricConfigOrgMutation.js +14 -0
  15. package/dist/integration-manager/src/services/hooks/useCreateMetricConfigProjectMutation.d.ts +22 -0
  16. package/dist/integration-manager/src/services/hooks/useCreateMetricConfigProjectMutation.js +14 -0
  17. package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigMutation.d.ts +1 -1
  18. package/dist/integration-manager/src/services/hooks/useDeleteIntegrationConfigMutation.js +1 -1
  19. package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigMutation.d.ts +17 -0
  20. package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigMutation.js +14 -0
  21. package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigOrgMutation.d.ts +18 -0
  22. package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigOrgMutation.js +14 -0
  23. package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigProjectMutation.d.ts +19 -0
  24. package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigProjectMutation.js +14 -0
  25. package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.d.ts +1 -1
  26. package/dist/integration-manager/src/services/hooks/useGetAirbyteIntegrationConfigQuery.js +1 -1
  27. package/dist/integration-manager/src/services/hooks/useGetMetricConfigOrgQuery.d.ts +19 -0
  28. package/dist/integration-manager/src/services/hooks/useGetMetricConfigOrgQuery.js +14 -0
  29. package/dist/integration-manager/src/services/hooks/useGetMetricConfigProjectQuery.d.ts +20 -0
  30. package/dist/integration-manager/src/services/hooks/useGetMetricConfigProjectQuery.js +20 -0
  31. package/dist/integration-manager/src/services/hooks/useGetMetricConfigQuery.d.ts +18 -0
  32. package/dist/integration-manager/src/services/hooks/useGetMetricConfigQuery.js +14 -0
  33. package/dist/integration-manager/src/services/hooks/useListMetricConfigsOrgQuery.d.ts +40 -0
  34. package/dist/integration-manager/src/services/hooks/useListMetricConfigsOrgQuery.js +14 -0
  35. package/dist/integration-manager/src/services/hooks/useListMetricConfigsProjectQuery.d.ts +41 -0
  36. package/dist/integration-manager/src/services/hooks/useListMetricConfigsProjectQuery.js +20 -0
  37. package/dist/integration-manager/src/services/hooks/useListMetricConfigsQuery.d.ts +40 -0
  38. package/dist/integration-manager/src/services/hooks/useListMetricConfigsQuery.js +14 -0
  39. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.d.ts +1 -1
  40. package/dist/integration-manager/src/services/hooks/useSyncNowMutation.js +1 -1
  41. package/dist/integration-manager/src/services/hooks/useTriggerSyncMutation.d.ts +1 -1
  42. package/dist/integration-manager/src/services/hooks/useTriggerSyncMutation.js +1 -1
  43. package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.d.ts +1 -1
  44. package/dist/integration-manager/src/services/hooks/useUpdateAirbyteIntegrationConfigMutation.js +1 -1
  45. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.d.ts +1 -1
  46. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigMutation.js +1 -1
  47. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.d.ts +1 -1
  48. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationConfigOrgMutation.js +1 -1
  49. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusMutation.d.ts +1 -1
  50. package/dist/integration-manager/src/services/hooks/useUpdateIntegrationStatusMutation.js +1 -1
  51. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigMutation.d.ts +21 -0
  52. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigMutation.js +14 -0
  53. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigOrgMutation.d.ts +22 -0
  54. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigOrgMutation.js +14 -0
  55. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigProjectMutation.d.ts +23 -0
  56. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigProjectMutation.js +14 -0
  57. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusMutation.d.ts +25 -0
  58. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusMutation.js +14 -0
  59. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusOrgMutation.d.ts +26 -0
  60. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusOrgMutation.js +14 -0
  61. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusProjectMutation.d.ts +27 -0
  62. package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusProjectMutation.js +14 -0
  63. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.d.ts +1 -1
  64. package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.js +1 -1
  65. package/dist/integration-manager/src/services/index.d.ts +47 -0
  66. package/dist/integration-manager/src/services/index.js +18 -0
  67. package/dist/integration-manager/src/services/schemas/EnumIntegrationMode.d.ts +1 -1
  68. package/dist/integration-manager/src/services/schemas/EnumIntegrationType.d.ts +1 -1
  69. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigOrgRequest.d.ts +3 -4
  70. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigProjectRequest.d.ts +3 -4
  71. package/dist/integration-manager/src/services/schemas/OpenapiCreateAirbyteIntegrationConfigRequest.d.ts +3 -4
  72. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigOrgRequest.d.ts +8 -1
  73. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigProjectRequest.d.ts +8 -1
  74. package/dist/integration-manager/src/services/schemas/OpenapiCreateIntegrationConfigRequest.d.ts +8 -1
  75. package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigOrgRequest.d.ts +8 -0
  76. package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigOrgRequest.js +1 -0
  77. package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigProjectRequest.d.ts +8 -0
  78. package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigProjectRequest.js +1 -0
  79. package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigRequest.d.ts +8 -0
  80. package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigRequest.js +1 -0
  81. package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigOrgRequest.d.ts +0 -4
  82. package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigProjectRequest.d.ts +0 -4
  83. package/dist/integration-manager/src/services/schemas/OpenapiUpdateAirbyteIntegrationConfigRequest.d.ts +0 -4
  84. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigOrgRequest.d.ts +3 -1
  85. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigProjectRequest.d.ts +3 -1
  86. package/dist/integration-manager/src/services/schemas/OpenapiUpdateIntegrationConfigRequest.d.ts +3 -1
  87. package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigOrgRequest.d.ts +7 -0
  88. package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigOrgRequest.js +1 -0
  89. package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigProjectRequest.d.ts +7 -0
  90. package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigProjectRequest.js +1 -0
  91. package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigRequest.d.ts +7 -0
  92. package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigRequest.js +1 -0
  93. package/dist/integration-manager/src/services/schemas/TimeDuration.d.ts +1 -0
  94. package/dist/integration-manager/src/services/schemas/TimeDuration.js +4 -0
  95. package/dist/integration-manager/src/services/schemas/TypesCorrelationMapping.d.ts +6 -0
  96. package/dist/integration-manager/src/services/schemas/TypesDefaultKind.d.ts +3 -1
  97. package/dist/integration-manager/src/services/schemas/TypesEntity.d.ts +4 -0
  98. package/dist/integration-manager/src/services/schemas/TypesEntitySchema.d.ts +2 -0
  99. package/dist/integration-manager/src/services/schemas/TypesHarnessAirbyteConfig.d.ts +7 -0
  100. package/dist/integration-manager/src/services/schemas/TypesIntegrationConfig.d.ts +1 -1
  101. package/dist/integration-manager/src/services/schemas/TypesMappingConfig.d.ts +0 -1
  102. package/dist/integration-manager/src/services/schemas/TypesMetricConfig.d.ts +25 -0
  103. package/dist/integration-manager/src/services/schemas/TypesMetricConfig.js +1 -0
  104. package/dist/integration-manager/src/services/schemas/TypesMetricConfiguration.d.ts +4 -0
  105. package/dist/integration-manager/src/services/schemas/TypesMetricConfiguration.js +1 -0
  106. package/dist/integration-manager/src/services/schemas/TypesMetricErrors.d.ts +3 -0
  107. package/dist/integration-manager/src/services/schemas/TypesMetricErrors.js +4 -0
  108. package/dist/integration-manager/src/services/schemas/TypesReevalState.d.ts +9 -0
  109. package/dist/integration-manager/src/services/schemas/TypesReevalState.js +4 -0
  110. package/package.json +1 -1
@@ -15,6 +15,6 @@ export interface CreateAirbyteIntegrationConfigProps extends CreateAirbyteIntegr
15
15
  }
16
16
  export declare function createAirbyteIntegrationConfig(props: CreateAirbyteIntegrationConfigProps): Promise<CreateAirbyteIntegrationConfigOkResponse>;
17
17
  /**
18
- * Creates an Airbyte integration with connector catalog information. This endpoint creates the integration config, entity schemas, entity mappings, and airbyte connector with catalog information within a single transaction. Returns the created integration config along with the associated airbyte connector, entity schemas, and entity mappings. The optional secondary_kinds field controls which configurable secondary kinds are included: when omitted (nil), all secondary kinds are included for backward compatibility; when an empty array, only required (non-configurable) secondary kinds are included; when populated, the specified configurable secondary kinds are included along with all required ones.
18
+ * Creates an Airbyte integration atomically with connector catalog information.
19
19
  */
20
20
  export declare function useCreateAirbyteIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateAirbyteIntegrationConfigOkResponse, CreateAirbyteIntegrationConfigErrorResponse, CreateAirbyteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAirbyteIntegrationConfigOkResponse, ApierrorsErrorResponse, CreateAirbyteIntegrationConfigProps, unknown>;
@@ -7,7 +7,7 @@ export function createAirbyteIntegrationConfig(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/airbyte`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Creates an Airbyte integration with connector catalog information. This endpoint creates the integration config, entity schemas, entity mappings, and airbyte connector with catalog information within a single transaction. Returns the created integration config along with the associated airbyte connector, entity schemas, and entity mappings. The optional secondary_kinds field controls which configurable secondary kinds are included: when omitted (nil), all secondary kinds are included for backward compatibility; when an empty array, only required (non-configurable) secondary kinds are included; when populated, the specified configurable secondary kinds are included along with all required ones.
10
+ * Creates an Airbyte integration atomically with connector catalog information.
11
11
  */
12
12
  export function useCreateAirbyteIntegrationConfigMutation(options) {
13
13
  return useMutation((mutateProps) => createAirbyteIntegrationConfig(mutateProps), options);
@@ -16,6 +16,6 @@ export interface CreateAirbyteIntegrationConfigOrgProps extends CreateAirbyteInt
16
16
  }
17
17
  export declare function createAirbyteIntegrationConfigOrg(props: CreateAirbyteIntegrationConfigOrgProps): Promise<CreateAirbyteIntegrationConfigOrgOkResponse>;
18
18
  /**
19
- * Creates an Airbyte integration at organization level with connector catalog information. This endpoint creates the integration config, entity schemas, entity mappings, and airbyte connector with catalog information within a single transaction. Returns the created integration config along with the associated airbyte connector, entity schemas, and entity mappings. The optional secondary_kinds field controls which configurable secondary kinds are included: when omitted (nil), all secondary kinds are included for backward compatibility; when an empty array, only required (non-configurable) secondary kinds are included; when populated, the specified configurable secondary kinds are included along with all required ones.
19
+ * Creates an Airbyte integration atomically at organization level.
20
20
  */
21
21
  export declare function useCreateAirbyteIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<CreateAirbyteIntegrationConfigOrgOkResponse, CreateAirbyteIntegrationConfigOrgErrorResponse, CreateAirbyteIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAirbyteIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, CreateAirbyteIntegrationConfigOrgProps, unknown>;
@@ -7,7 +7,7 @@ export function createAirbyteIntegrationConfigOrg(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs/airbyte`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Creates an Airbyte integration at organization level with connector catalog information. This endpoint creates the integration config, entity schemas, entity mappings, and airbyte connector with catalog information within a single transaction. Returns the created integration config along with the associated airbyte connector, entity schemas, and entity mappings. The optional secondary_kinds field controls which configurable secondary kinds are included: when omitted (nil), all secondary kinds are included for backward compatibility; when an empty array, only required (non-configurable) secondary kinds are included; when populated, the specified configurable secondary kinds are included along with all required ones.
10
+ * Creates an Airbyte integration atomically at organization level.
11
11
  */
12
12
  export function useCreateAirbyteIntegrationConfigOrgMutation(options) {
13
13
  return useMutation((mutateProps) => createAirbyteIntegrationConfigOrg(mutateProps), options);
@@ -15,6 +15,6 @@ export interface CreateIntegrationConfigProps extends CreateIntegrationConfigMut
15
15
  }
16
16
  export declare function createIntegrationConfig(props: CreateIntegrationConfigProps): Promise<CreateIntegrationConfigOkResponse>;
17
17
  /**
18
- * Create integration configuration
18
+ * Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'.
19
19
  */
20
20
  export declare function useCreateIntegrationConfigMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOkResponse, CreateIntegrationConfigErrorResponse, CreateIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProps, unknown>;
@@ -7,7 +7,7 @@ export function createIntegrationConfig(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Create integration configuration
10
+ * Creates a new integration configuration. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'.
11
11
  */
12
12
  export function useCreateIntegrationConfigMutation(options) {
13
13
  return useMutation((mutateProps) => createIntegrationConfig(mutateProps), options);
@@ -16,6 +16,6 @@ export interface CreateIntegrationConfigOrgProps extends CreateIntegrationConfig
16
16
  }
17
17
  export declare function createIntegrationConfigOrg(props: CreateIntegrationConfigOrgProps): Promise<CreateIntegrationConfigOrgOkResponse>;
18
18
  /**
19
- * Create integration configuration at organization level
19
+ * Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'.
20
20
  */
21
21
  export declare function useCreateIntegrationConfigOrgMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigOrgOkResponse, CreateIntegrationConfigOrgErrorResponse, CreateIntegrationConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigOrgOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigOrgProps, unknown>;
@@ -7,7 +7,7 @@ export function createIntegrationConfigOrg(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/integration-configs`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Create integration configuration at organization level
10
+ * Creates a new integration configuration at organization level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'.
11
11
  */
12
12
  export function useCreateIntegrationConfigOrgMutation(options) {
13
13
  return useMutation((mutateProps) => createIntegrationConfigOrg(mutateProps), options);
@@ -17,6 +17,6 @@ export interface CreateIntegrationConfigProjectProps extends CreateIntegrationCo
17
17
  }
18
18
  export declare function createIntegrationConfigProject(props: CreateIntegrationConfigProjectProps): Promise<CreateIntegrationConfigProjectOkResponse>;
19
19
  /**
20
- * Create integration configuration at project level
20
+ * Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'.
21
21
  */
22
22
  export declare function useCreateIntegrationConfigProjectMutation(options?: Omit<UseMutationOptions<CreateIntegrationConfigProjectOkResponse, CreateIntegrationConfigProjectErrorResponse, CreateIntegrationConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateIntegrationConfigProjectOkResponse, ApierrorsErrorResponse, CreateIntegrationConfigProjectProps, unknown>;
@@ -7,7 +7,7 @@ export function createIntegrationConfigProject(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/integration-configs`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Create integration configuration at project level
10
+ * Creates a new integration configuration at project level. If correlation_mapping is provided, source_path must be non-empty and operator must be 'eq'.
11
11
  */
12
12
  export function useCreateIntegrationConfigProjectMutation(options) {
13
13
  return useMutation((mutateProps) => createIntegrationConfigProject(mutateProps), options);
@@ -0,0 +1,20 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiCreateMetricConfigRequest } from '../schemas/OpenapiCreateMetricConfigRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateMetricConfigMutationPathParams {
8
+ accountIdentifier: string;
9
+ }
10
+ export type CreateMetricConfigRequestBody = OpenapiCreateMetricConfigRequest;
11
+ export type CreateMetricConfigOkResponse = ResponseWithPagination<TypesMetricConfig>;
12
+ export type CreateMetricConfigErrorResponse = ApierrorsErrorResponse;
13
+ export interface CreateMetricConfigProps extends CreateMetricConfigMutationPathParams, Omit<FetcherOptions<unknown, CreateMetricConfigRequestBody>, 'url'> {
14
+ body: CreateMetricConfigRequestBody;
15
+ }
16
+ export declare function createMetricConfig(props: CreateMetricConfigProps): Promise<CreateMetricConfigOkResponse>;
17
+ /**
18
+ * Creates a new metric configuration.
19
+ */
20
+ export declare function useCreateMetricConfigMutation(options?: Omit<UseMutationOptions<CreateMetricConfigOkResponse, CreateMetricConfigErrorResponse, CreateMetricConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMetricConfigOkResponse, ApierrorsErrorResponse, CreateMetricConfigProps, unknown>;
@@ -0,0 +1,14 @@
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 createMetricConfig(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates a new metric configuration.
11
+ */
12
+ export function useCreateMetricConfigMutation(options) {
13
+ return useMutation((mutateProps) => createMetricConfig(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiCreateMetricConfigOrgRequest } from '../schemas/OpenapiCreateMetricConfigOrgRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateMetricConfigOrgMutationPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ }
11
+ export type CreateMetricConfigOrgRequestBody = OpenapiCreateMetricConfigOrgRequest;
12
+ export type CreateMetricConfigOrgOkResponse = ResponseWithPagination<TypesMetricConfig>;
13
+ export type CreateMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
14
+ export interface CreateMetricConfigOrgProps extends CreateMetricConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, CreateMetricConfigOrgRequestBody>, 'url'> {
15
+ body: CreateMetricConfigOrgRequestBody;
16
+ }
17
+ export declare function createMetricConfigOrg(props: CreateMetricConfigOrgProps): Promise<CreateMetricConfigOrgOkResponse>;
18
+ /**
19
+ * Create metric configuration at organization level
20
+ */
21
+ export declare function useCreateMetricConfigOrgMutation(options?: Omit<UseMutationOptions<CreateMetricConfigOrgOkResponse, CreateMetricConfigOrgErrorResponse, CreateMetricConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMetricConfigOrgOkResponse, ApierrorsErrorResponse, CreateMetricConfigOrgProps, unknown>;
@@ -0,0 +1,14 @@
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 createMetricConfigOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create metric configuration at organization level
11
+ */
12
+ export function useCreateMetricConfigOrgMutation(options) {
13
+ return useMutation((mutateProps) => createMetricConfigOrg(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { OpenapiCreateMetricConfigProjectRequest } from '../schemas/OpenapiCreateMetricConfigProjectRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CreateMetricConfigProjectMutationPathParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type CreateMetricConfigProjectRequestBody = OpenapiCreateMetricConfigProjectRequest;
13
+ export type CreateMetricConfigProjectOkResponse = ResponseWithPagination<TypesMetricConfig>;
14
+ export type CreateMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
15
+ export interface CreateMetricConfigProjectProps extends CreateMetricConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, CreateMetricConfigProjectRequestBody>, 'url'> {
16
+ body: CreateMetricConfigProjectRequestBody;
17
+ }
18
+ export declare function createMetricConfigProject(props: CreateMetricConfigProjectProps): Promise<CreateMetricConfigProjectOkResponse>;
19
+ /**
20
+ * Create metric configuration at project level
21
+ */
22
+ export declare function useCreateMetricConfigProjectMutation(options?: Omit<UseMutationOptions<CreateMetricConfigProjectOkResponse, CreateMetricConfigProjectErrorResponse, CreateMetricConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMetricConfigProjectOkResponse, ApierrorsErrorResponse, CreateMetricConfigProjectProps, unknown>;
@@ -0,0 +1,14 @@
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 createMetricConfigProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create metric configuration at project level
11
+ */
12
+ export function useCreateMetricConfigProjectMutation(options) {
13
+ return useMutation((mutateProps) => createMetricConfigProject(mutateProps), options);
14
+ }
@@ -12,6 +12,6 @@ export interface DeleteIntegrationConfigProps extends DeleteIntegrationConfigMut
12
12
  }
13
13
  export declare function deleteIntegrationConfig(props: DeleteIntegrationConfigProps): Promise<DeleteIntegrationConfigOkResponse>;
14
14
  /**
15
- * Removes entity mappings, schemas, deletes the airbyte connector document (including stream state), then marks the integration as deleted. On success the response is 200 with an empty body. If the integration was already soft-deleted or removed by a concurrent DELETE, the response is 410 Gone with code INTEGRATION_DELETED.
15
+ * Soft-deletes the integration and its associated resources. Returns 410 Gone if already deleted.
16
16
  */
17
17
  export declare function useDeleteIntegrationConfigMutation(options?: Omit<UseMutationOptions<DeleteIntegrationConfigOkResponse, DeleteIntegrationConfigErrorResponse, DeleteIntegrationConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteIntegrationConfigOkResponse, ApierrorsErrorResponse, DeleteIntegrationConfigProps, unknown>;
@@ -7,7 +7,7 @@ export function deleteIntegrationConfig(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/${props.integrationconfig_identifier}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
- * Removes entity mappings, schemas, deletes the airbyte connector document (including stream state), then marks the integration as deleted. On success the response is 200 with an empty body. If the integration was already soft-deleted or removed by a concurrent DELETE, the response is 410 Gone with code INTEGRATION_DELETED.
10
+ * Soft-deletes the integration and its associated resources. Returns 410 Gone if already deleted.
11
11
  */
12
12
  export function useDeleteIntegrationConfigMutation(options) {
13
13
  return useMutation((mutateProps) => deleteIntegrationConfig(mutateProps), options);
@@ -0,0 +1,17 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteMetricConfigMutationPathParams {
6
+ accountIdentifier: string;
7
+ metric_config_id: string;
8
+ }
9
+ export type DeleteMetricConfigOkResponse = ResponseWithPagination<unknown>;
10
+ export type DeleteMetricConfigErrorResponse = ApierrorsErrorResponse;
11
+ export interface DeleteMetricConfigProps extends DeleteMetricConfigMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
12
+ }
13
+ export declare function deleteMetricConfig(props: DeleteMetricConfigProps): Promise<DeleteMetricConfigOkResponse>;
14
+ /**
15
+ * Soft-deletes a metric configuration.
16
+ */
17
+ export declare function useDeleteMetricConfigMutation(options?: Omit<UseMutationOptions<DeleteMetricConfigOkResponse, DeleteMetricConfigErrorResponse, DeleteMetricConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetricConfigOkResponse, ApierrorsErrorResponse, DeleteMetricConfigProps, unknown>;
@@ -0,0 +1,14 @@
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 deleteMetricConfig(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Soft-deletes a metric configuration.
11
+ */
12
+ export function useDeleteMetricConfigMutation(options) {
13
+ return useMutation((mutateProps) => deleteMetricConfig(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteMetricConfigOrgMutationPathParams {
6
+ accountIdentifier: string;
7
+ orgIdentifier: string;
8
+ metric_config_id: string;
9
+ }
10
+ export type DeleteMetricConfigOrgOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
12
+ export interface DeleteMetricConfigOrgProps extends DeleteMetricConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
+ }
14
+ export declare function deleteMetricConfigOrg(props: DeleteMetricConfigOrgProps): Promise<DeleteMetricConfigOrgOkResponse>;
15
+ /**
16
+ * Delete metric configuration at organization level
17
+ */
18
+ export declare function useDeleteMetricConfigOrgMutation(options?: Omit<UseMutationOptions<DeleteMetricConfigOrgOkResponse, DeleteMetricConfigOrgErrorResponse, DeleteMetricConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetricConfigOrgOkResponse, ApierrorsErrorResponse, DeleteMetricConfigOrgProps, unknown>;
@@ -0,0 +1,14 @@
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 deleteMetricConfigOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete metric configuration at organization level
11
+ */
12
+ export function useDeleteMetricConfigOrgMutation(options) {
13
+ return useMutation((mutateProps) => deleteMetricConfigOrg(mutateProps), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DeleteMetricConfigProjectMutationPathParams {
6
+ accountIdentifier: string;
7
+ orgIdentifier: string;
8
+ projectIdentifier: string;
9
+ metric_config_id: string;
10
+ }
11
+ export type DeleteMetricConfigProjectOkResponse = ResponseWithPagination<unknown>;
12
+ export type DeleteMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
13
+ export interface DeleteMetricConfigProjectProps extends DeleteMetricConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
14
+ }
15
+ export declare function deleteMetricConfigProject(props: DeleteMetricConfigProjectProps): Promise<DeleteMetricConfigProjectOkResponse>;
16
+ /**
17
+ * Delete metric configuration at project level
18
+ */
19
+ export declare function useDeleteMetricConfigProjectMutation(options?: Omit<UseMutationOptions<DeleteMetricConfigProjectOkResponse, DeleteMetricConfigProjectErrorResponse, DeleteMetricConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetricConfigProjectOkResponse, ApierrorsErrorResponse, DeleteMetricConfigProjectProps, unknown>;
@@ -0,0 +1,14 @@
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 deleteMetricConfigProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete metric configuration at project level
11
+ */
12
+ export function useDeleteMetricConfigProjectMutation(options) {
13
+ return useMutation((mutateProps) => deleteMetricConfigProject(mutateProps), options);
14
+ }
@@ -13,6 +13,6 @@ export interface GetAirbyteIntegrationConfigProps extends GetAirbyteIntegrationC
13
13
  }
14
14
  export declare function getAirbyteIntegrationConfig(props: GetAirbyteIntegrationConfigProps): Promise<GetAirbyteIntegrationConfigOkResponse>;
15
15
  /**
16
- * Retrieves complete Airbyte integration details including the integration config, airbyte connector, entity schemas, and entity mappings. Returns the same response structure as CreateAirbyteIntegrationConfig for consistency.
16
+ * Retrieves complete Airbyte integration details.
17
17
  */
18
18
  export declare function useGetAirbyteIntegrationConfigQuery(props: GetAirbyteIntegrationConfigProps, options?: Omit<UseQueryOptions<GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAirbyteIntegrationConfigOkResponse, ApierrorsErrorResponse>;
@@ -7,7 +7,7 @@ export function getAirbyteIntegrationConfig(props) {
7
7
  return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/airbyte/${props.integrationconfig_identifier}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Retrieves complete Airbyte integration details including the integration config, airbyte connector, entity schemas, and entity mappings. Returns the same response structure as CreateAirbyteIntegrationConfig for consistency.
10
+ * Retrieves complete Airbyte integration details.
11
11
  */
12
12
  export function useGetAirbyteIntegrationConfigQuery(props, options) {
13
13
  return useQuery(['getAirbyteIntegrationConfig', props.accountIdentifier, props.integrationconfig_identifier], ({ signal }) => getAirbyteIntegrationConfig(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetMetricConfigOrgQueryPathParams {
7
+ accountIdentifier: string;
8
+ orgIdentifier: string;
9
+ metric_config_id: string;
10
+ }
11
+ export type GetMetricConfigOrgOkResponse = ResponseWithPagination<TypesMetricConfig>;
12
+ export type GetMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
13
+ export interface GetMetricConfigOrgProps extends GetMetricConfigOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
14
+ }
15
+ export declare function getMetricConfigOrg(props: GetMetricConfigOrgProps): Promise<GetMetricConfigOrgOkResponse>;
16
+ /**
17
+ * Get metric configuration at organization level
18
+ */
19
+ export declare function useGetMetricConfigOrgQuery(props: GetMetricConfigOrgProps, options?: Omit<UseQueryOptions<GetMetricConfigOrgOkResponse, GetMetricConfigOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricConfigOrgOkResponse, ApierrorsErrorResponse>;
@@ -0,0 +1,14 @@
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 getMetricConfigOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get metric configuration at organization level
11
+ */
12
+ export function useGetMetricConfigOrgQuery(props, options) {
13
+ return useQuery(['getMetricConfigOrg', props.accountIdentifier, props.orgIdentifier, props.metric_config_id], ({ signal }) => getMetricConfigOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetMetricConfigProjectQueryPathParams {
7
+ accountIdentifier: string;
8
+ orgIdentifier: string;
9
+ projectIdentifier: string;
10
+ metric_config_id: string;
11
+ }
12
+ export type GetMetricConfigProjectOkResponse = ResponseWithPagination<TypesMetricConfig>;
13
+ export type GetMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
14
+ export interface GetMetricConfigProjectProps extends GetMetricConfigProjectQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
15
+ }
16
+ export declare function getMetricConfigProject(props: GetMetricConfigProjectProps): Promise<GetMetricConfigProjectOkResponse>;
17
+ /**
18
+ * Get metric configuration at project level
19
+ */
20
+ export declare function useGetMetricConfigProjectQuery(props: GetMetricConfigProjectProps, options?: Omit<UseQueryOptions<GetMetricConfigProjectOkResponse, GetMetricConfigProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricConfigProjectOkResponse, ApierrorsErrorResponse>;
@@ -0,0 +1,20 @@
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 getMetricConfigProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get metric configuration at project level
11
+ */
12
+ export function useGetMetricConfigProjectQuery(props, options) {
13
+ return useQuery([
14
+ 'getMetricConfigProject',
15
+ props.accountIdentifier,
16
+ props.orgIdentifier,
17
+ props.projectIdentifier,
18
+ props.metric_config_id,
19
+ ], ({ signal }) => getMetricConfigProject(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,18 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetMetricConfigQueryPathParams {
7
+ accountIdentifier: string;
8
+ metric_config_id: string;
9
+ }
10
+ export type GetMetricConfigOkResponse = ResponseWithPagination<TypesMetricConfig>;
11
+ export type GetMetricConfigErrorResponse = ApierrorsErrorResponse;
12
+ export interface GetMetricConfigProps extends GetMetricConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
13
+ }
14
+ export declare function getMetricConfig(props: GetMetricConfigProps): Promise<GetMetricConfigOkResponse>;
15
+ /**
16
+ * Retrieves a metric configuration by ID.
17
+ */
18
+ export declare function useGetMetricConfigQuery(props: GetMetricConfigProps, options?: Omit<UseQueryOptions<GetMetricConfigOkResponse, GetMetricConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricConfigOkResponse, ApierrorsErrorResponse>;
@@ -0,0 +1,14 @@
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 getMetricConfig(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieves a metric configuration by ID.
11
+ */
12
+ export function useGetMetricConfigQuery(props, options) {
13
+ return useQuery(['getMetricConfig', props.accountIdentifier, props.metric_config_id], ({ signal }) => getMetricConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,40 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListMetricConfigsOrgQueryPathParams {
6
+ accountIdentifier: string;
7
+ orgIdentifier: string;
8
+ }
9
+ export interface ListMetricConfigsOrgQueryQueryParams {
10
+ /**
11
+ * Search term to filter metric configs by name
12
+ */
13
+ searchterm?: string;
14
+ /**
15
+ * Maximum number of results to return (default 100)
16
+ */
17
+ limit?: number;
18
+ /**
19
+ * Number of results to skip for pagination
20
+ */
21
+ offset?: number;
22
+ /**
23
+ * Field to sort by
24
+ */
25
+ sort?: string;
26
+ /**
27
+ * Sort order: asc or desc
28
+ */
29
+ order?: string;
30
+ }
31
+ export type ListMetricConfigsOrgOkResponse = ResponseWithPagination<TypesMetricConfig[]>;
32
+ export type ListMetricConfigsOrgErrorResponse = unknown;
33
+ export interface ListMetricConfigsOrgProps extends ListMetricConfigsOrgQueryPathParams, Omit<FetcherOptions<ListMetricConfigsOrgQueryQueryParams, unknown>, 'url'> {
34
+ queryParams: ListMetricConfigsOrgQueryQueryParams;
35
+ }
36
+ export declare function listMetricConfigsOrg(props: ListMetricConfigsOrgProps): Promise<ListMetricConfigsOrgOkResponse>;
37
+ /**
38
+ * List metric configurations at organization level
39
+ */
40
+ export declare function useListMetricConfigsOrgQuery(props: ListMetricConfigsOrgProps, options?: Omit<UseQueryOptions<ListMetricConfigsOrgOkResponse, ListMetricConfigsOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMetricConfigsOrgOkResponse, unknown>;
@@ -0,0 +1,14 @@
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 listMetricConfigsOrg(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List metric configurations at organization level
11
+ */
12
+ export function useListMetricConfigsOrgQuery(props, options) {
13
+ return useQuery(['listMetricConfigsOrg', props.accountIdentifier, props.orgIdentifier, props.queryParams], ({ signal }) => listMetricConfigsOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,41 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListMetricConfigsProjectQueryPathParams {
6
+ accountIdentifier: string;
7
+ orgIdentifier: string;
8
+ projectIdentifier: string;
9
+ }
10
+ export interface ListMetricConfigsProjectQueryQueryParams {
11
+ /**
12
+ * Search term to filter metric configs by name
13
+ */
14
+ searchterm?: string;
15
+ /**
16
+ * Maximum number of results to return (default 100)
17
+ */
18
+ limit?: number;
19
+ /**
20
+ * Number of results to skip for pagination
21
+ */
22
+ offset?: number;
23
+ /**
24
+ * Field to sort by
25
+ */
26
+ sort?: string;
27
+ /**
28
+ * Sort order: asc or desc
29
+ */
30
+ order?: string;
31
+ }
32
+ export type ListMetricConfigsProjectOkResponse = ResponseWithPagination<TypesMetricConfig[]>;
33
+ export type ListMetricConfigsProjectErrorResponse = unknown;
34
+ export interface ListMetricConfigsProjectProps extends ListMetricConfigsProjectQueryPathParams, Omit<FetcherOptions<ListMetricConfigsProjectQueryQueryParams, unknown>, 'url'> {
35
+ queryParams: ListMetricConfigsProjectQueryQueryParams;
36
+ }
37
+ export declare function listMetricConfigsProject(props: ListMetricConfigsProjectProps): Promise<ListMetricConfigsProjectOkResponse>;
38
+ /**
39
+ * List metric configurations at project level
40
+ */
41
+ export declare function useListMetricConfigsProjectQuery(props: ListMetricConfigsProjectProps, options?: Omit<UseQueryOptions<ListMetricConfigsProjectOkResponse, ListMetricConfigsProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMetricConfigsProjectOkResponse, unknown>;
@@ -0,0 +1,20 @@
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 listMetricConfigsProject(props) {
7
+ return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List metric configurations at project level
11
+ */
12
+ export function useListMetricConfigsProjectQuery(props, options) {
13
+ return useQuery([
14
+ 'listMetricConfigsProject',
15
+ props.accountIdentifier,
16
+ props.orgIdentifier,
17
+ props.projectIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => listMetricConfigsProject(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }