@harnessio/react-idp-service-client 0.92.0 → 0.93.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.
- package/dist/idp-service/src/services/hooks/useGetEntityAssociationsQuery.d.ts +33 -0
- package/dist/idp-service/src/services/hooks/useGetEntityAssociationsQuery.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +2 -15
- package/dist/idp-service/src/services/index.js +1 -5
- package/dist/idp-service/src/services/schemas/ImportedEntityResponse.d.ts +2 -2
- package/package.json +1 -1
- package/dist/idp-service/src/services/hooks/useCreateKindMutation.d.ts +0 -19
- package/dist/idp-service/src/services/hooks/useCreateKindMutation.js +0 -14
- package/dist/idp-service/src/services/hooks/useDeleteKindMutation.d.ts +0 -18
- package/dist/idp-service/src/services/hooks/useDeleteKindMutation.js +0 -14
- package/dist/idp-service/src/services/hooks/useGetKindQuery.d.ts +0 -19
- package/dist/idp-service/src/services/hooks/useGetKindQuery.js +0 -14
- package/dist/idp-service/src/services/hooks/useGetKindsQuery.d.ts +0 -26
- package/dist/idp-service/src/services/hooks/useGetKindsQuery.js +0 -14
- package/dist/idp-service/src/services/hooks/useUpdateKindMutation.d.ts +0 -22
- package/dist/idp-service/src/services/hooks/useUpdateKindMutation.js +0 -14
- package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.d.ts +0 -1
- package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.js +0 -1
- package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.d.ts +0 -1
- package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.js +0 -1
- package/dist/idp-service/src/services/responses/KindResponseBodyListResponse.d.ts +0 -2
- package/dist/idp-service/src/services/responses/KindResponseBodyListResponse.js +0 -1
- package/dist/idp-service/src/services/responses/KindResponseBodyResponse.d.ts +0 -2
- package/dist/idp-service/src/services/responses/KindResponseBodyResponse.js +0 -1
- package/dist/idp-service/src/services/schemas/KindResponseBody.d.ts +0 -10
- package/dist/idp-service/src/services/schemas/KindResponseBody.js +0 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyListResponse } from '../responses/EntityResponseBodyListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
+
export interface GetEntityAssociationsQueryPathParams {
|
|
6
|
+
kind: string;
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetEntityAssociationsQueryQueryParams {
|
|
10
|
+
relations?: string;
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default 10
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
sort?: string;
|
|
19
|
+
search_term?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetEntityAssociationsQueryHeaderParams {
|
|
22
|
+
'Harness-Account'?: string;
|
|
23
|
+
}
|
|
24
|
+
export type GetEntityAssociationsOkResponse = ResponseWithPagination<EntityResponseBodyListResponse>;
|
|
25
|
+
export type GetEntityAssociationsErrorResponse = unknown;
|
|
26
|
+
export interface GetEntityAssociationsProps extends GetEntityAssociationsQueryPathParams, Omit<FetcherOptions<GetEntityAssociationsQueryQueryParams, unknown, GetEntityAssociationsQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: GetEntityAssociationsQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function getEntityAssociations(props: GetEntityAssociationsProps): Promise<GetEntityAssociationsOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a paginated list of entities that are associated with the specified entity via the given relation types
|
|
32
|
+
*/
|
|
33
|
+
export declare function useGetEntityAssociationsQuery(props: GetEntityAssociationsProps, options?: Omit<UseQueryOptions<GetEntityAssociationsOkResponse, GetEntityAssociationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityAssociationsOkResponse, 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 '../../../../custom-idp-fetcher/index.js';
|
|
6
|
+
export function getEntityAssociations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/${props.kind}/${props.identifier}/associations`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of entities that are associated with the specified entity via the given relation types
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityAssociationsQuery(props, options) {
|
|
13
|
+
return useQuery(['get-entity-associations', props.kind, props.identifier, props.queryParams], ({ signal }) => getEntityAssociations(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -23,8 +23,6 @@ export type { CreateEntityVersionErrorResponse, CreateEntityVersionMutationQuery
|
|
|
23
23
|
export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
|
|
24
24
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationMutationQueryParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
25
25
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
26
|
-
export type { CreateKindErrorResponse, CreateKindOkResponse, CreateKindProps, CreateKindRequestBody, } from './hooks/useCreateKindMutation';
|
|
27
|
-
export { createKind, useCreateKindMutation } from './hooks/useCreateKindMutation';
|
|
28
26
|
export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
|
|
29
27
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
30
28
|
export type { CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableProps, CreateOrUpdateEntityTableRequestBody, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
@@ -55,8 +53,6 @@ export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksI
|
|
|
55
53
|
export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
|
|
56
54
|
export type { DeleteHomePageLayoutCardsIconErrorResponse, DeleteHomePageLayoutCardsIconMutationPathParams, DeleteHomePageLayoutCardsIconOkResponse, DeleteHomePageLayoutCardsIconProps, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
|
|
57
55
|
export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
|
|
58
|
-
export type { DeleteKindErrorResponse, DeleteKindMutationPathParams, DeleteKindOkResponse, DeleteKindProps, } from './hooks/useDeleteKindMutation';
|
|
59
|
-
export { deleteKind, useDeleteKindMutation } from './hooks/useDeleteKindMutation';
|
|
60
56
|
export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
|
|
61
57
|
export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
|
|
62
58
|
export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
|
|
@@ -121,6 +117,8 @@ export type { GetEntitiesKindsErrorResponse, GetEntitiesKindsOkResponse, GetEnti
|
|
|
121
117
|
export { getEntitiesKinds, useGetEntitiesKindsQuery } from './hooks/useGetEntitiesKindsQuery';
|
|
122
118
|
export type { GetEntitiesErrorResponse, GetEntitiesOkResponse, GetEntitiesProps, GetEntitiesQueryQueryParams, } from './hooks/useGetEntitiesQuery';
|
|
123
119
|
export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
120
|
+
export type { GetEntityAssociationsErrorResponse, GetEntityAssociationsOkResponse, GetEntityAssociationsProps, GetEntityAssociationsQueryPathParams, GetEntityAssociationsQueryQueryParams, } from './hooks/useGetEntityAssociationsQuery';
|
|
121
|
+
export { getEntityAssociations, useGetEntityAssociationsQuery, } from './hooks/useGetEntityAssociationsQuery';
|
|
124
122
|
export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
|
|
125
123
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
126
124
|
export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEntityQueryPathParams, GetEntityQueryQueryParams, } from './hooks/useGetEntityQuery';
|
|
@@ -151,10 +149,6 @@ export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegr
|
|
|
151
149
|
export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
|
|
152
150
|
export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchemaProps, GetJsonSchemaQueryQueryParams, } from './hooks/useGetJsonSchemaQuery';
|
|
153
151
|
export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
|
|
154
|
-
export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, } from './hooks/useGetKindQuery';
|
|
155
|
-
export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
|
|
156
|
-
export type { GetKindsErrorResponse, GetKindsOkResponse, GetKindsProps, GetKindsQueryQueryParams, } from './hooks/useGetKindsQuery';
|
|
157
|
-
export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
|
|
158
152
|
export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
|
|
159
153
|
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
160
154
|
export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkResponse, GetMergedPluginsConfigProps, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
@@ -243,8 +237,6 @@ export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, Update
|
|
|
243
237
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
244
238
|
export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
|
|
245
239
|
export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
|
|
246
|
-
export type { UpdateKindErrorResponse, UpdateKindMutationPathParams, UpdateKindOkResponse, UpdateKindProps, UpdateKindRequestBody, } from './hooks/useUpdateKindMutation';
|
|
247
|
-
export { updateKind, useUpdateKindMutation } from './hooks/useUpdateKindMutation';
|
|
248
240
|
export type { UpdatePluginRequestV2ErrorResponse, UpdatePluginRequestV2MutationPathParams, UpdatePluginRequestV2OkResponse, UpdatePluginRequestV2Props, UpdatePluginRequestV2RequestBody, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
249
241
|
export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
250
242
|
export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
|
|
@@ -278,8 +270,6 @@ export type { GroupRequestRequestBody } from './requestBodies/GroupRequestReques
|
|
|
278
270
|
export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
|
|
279
271
|
export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
280
272
|
export type { IntegrationRequestRequestBody } from './requestBodies/IntegrationRequestRequestBody';
|
|
281
|
-
export type { KindCreateRequestBodyRequestBody } from './requestBodies/KindCreateRequestBodyRequestBody';
|
|
282
|
-
export type { KindUpdateRequestBodyRequestBody } from './requestBodies/KindUpdateRequestBodyRequestBody';
|
|
283
273
|
export type { OnboardingCdEntitiesFetchRequestRequestBody } from './requestBodies/OnboardingCdEntitiesFetchRequestRequestBody';
|
|
284
274
|
export type { OnboardingGenerateYamlDefRequestRequestBody } from './requestBodies/OnboardingGenerateYamlDefRequestRequestBody';
|
|
285
275
|
export type { OnboardingImportCdEntitiesRequestRequestBody } from './requestBodies/OnboardingImportCdEntitiesRequestRequestBody';
|
|
@@ -338,8 +328,6 @@ export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesR
|
|
|
338
328
|
export type { ImportedEntitiesResponseListResponse } from './responses/ImportedEntitiesResponseListResponse';
|
|
339
329
|
export type { IntegrationResponseListResponse } from './responses/IntegrationResponseListResponse';
|
|
340
330
|
export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
|
|
341
|
-
export type { KindResponseBodyListResponse } from './responses/KindResponseBodyListResponse';
|
|
342
|
-
export type { KindResponseBodyResponse } from './responses/KindResponseBodyResponse';
|
|
343
331
|
export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
|
|
344
332
|
export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
|
|
345
333
|
export type { OnboardingCdEntitiesCountResponseResponse } from './responses/OnboardingCdEntitiesCountResponseResponse';
|
|
@@ -484,7 +472,6 @@ export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
|
484
472
|
export type { ImportedEntityResponse } from './schemas/ImportedEntityResponse';
|
|
485
473
|
export type { InputDetails } from './schemas/InputDetails';
|
|
486
474
|
export type { InputValue } from './schemas/InputValue';
|
|
487
|
-
export type { KindResponseBody } from './schemas/KindResponseBody';
|
|
488
475
|
export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
|
|
489
476
|
export type { LayoutRequest } from './schemas/LayoutRequest';
|
|
490
477
|
export type { LayoutResponse } from './schemas/LayoutResponse';
|
|
@@ -10,7 +10,6 @@ export { createCustomPluginsV2, useCreateCustomPluginsV2Mutation, } from './hook
|
|
|
10
10
|
export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
|
|
11
11
|
export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
|
|
12
12
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
13
|
-
export { createKind, useCreateKindMutation } from './hooks/useCreateKindMutation';
|
|
14
13
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
15
14
|
export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
16
15
|
export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
@@ -26,7 +25,6 @@ export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/us
|
|
|
26
25
|
export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
|
|
27
26
|
export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
|
|
28
27
|
export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
|
|
29
|
-
export { deleteKind, useDeleteKindMutation } from './hooks/useDeleteKindMutation';
|
|
30
28
|
export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
|
|
31
29
|
export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
|
|
32
30
|
export { discoverEntities, useDiscoverEntitiesQuery } from './hooks/useDiscoverEntitiesQuery';
|
|
@@ -59,6 +57,7 @@ export { getEntitiesFilters, useGetEntitiesFiltersQuery } from './hooks/useGetEn
|
|
|
59
57
|
export { getEntitiesGroups, useGetEntitiesGroupsQuery } from './hooks/useGetEntitiesGroupsQuery';
|
|
60
58
|
export { getEntitiesKinds, useGetEntitiesKindsQuery } from './hooks/useGetEntitiesKindsQuery';
|
|
61
59
|
export { getEntities, useGetEntitiesQuery } from './hooks/useGetEntitiesQuery';
|
|
60
|
+
export { getEntityAssociations, useGetEntityAssociationsQuery, } from './hooks/useGetEntityAssociationsQuery';
|
|
62
61
|
export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
|
|
63
62
|
export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
|
|
64
63
|
export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
|
|
@@ -74,8 +73,6 @@ export { getImportedEntities, useGetImportedEntitiesQuery, } from './hooks/useGe
|
|
|
74
73
|
export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
|
|
75
74
|
export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
|
|
76
75
|
export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
|
|
77
|
-
export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
|
|
78
|
-
export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
|
|
79
76
|
export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
|
|
80
77
|
export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
|
|
81
78
|
export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
|
|
@@ -120,7 +117,6 @@ export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/us
|
|
|
120
117
|
export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
|
|
121
118
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
122
119
|
export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
|
|
123
|
-
export { updateKind, useUpdateKindMutation } from './hooks/useUpdateKindMutation';
|
|
124
120
|
export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
125
121
|
export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
|
|
126
122
|
export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
|
|
@@ -3,9 +3,9 @@ export interface ImportedEntityResponse {
|
|
|
3
3
|
entity?: EntityResponse;
|
|
4
4
|
raw_entity_details?: {
|
|
5
5
|
/**
|
|
6
|
-
* The action that was performed during import
|
|
6
|
+
* The action that was performed during import
|
|
7
7
|
*/
|
|
8
|
-
action_performed?:
|
|
8
|
+
action_performed?: 'MERGE' | 'REGISTER';
|
|
9
9
|
identifier?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Timestamp (epoch millis) when the entity was imported
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { KindResponseBodyResponse } from '../responses/KindResponseBodyResponse';
|
|
3
|
-
import type { KindCreateRequestBodyRequestBody } from '../requestBodies/KindCreateRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export interface CreateKindMutationHeaderParams {
|
|
7
|
-
'Harness-Account'?: string;
|
|
8
|
-
}
|
|
9
|
-
export type CreateKindRequestBody = KindCreateRequestBodyRequestBody;
|
|
10
|
-
export type CreateKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
|
|
11
|
-
export type CreateKindErrorResponse = unknown;
|
|
12
|
-
export interface CreateKindProps extends Omit<FetcherOptions<unknown, CreateKindRequestBody, CreateKindMutationHeaderParams>, 'url'> {
|
|
13
|
-
body: CreateKindRequestBody;
|
|
14
|
-
}
|
|
15
|
-
export declare function createKind(props: CreateKindProps): Promise<CreateKindOkResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Create a Kind.
|
|
18
|
-
*/
|
|
19
|
-
export declare function useCreateKindMutation(options?: Omit<UseMutationOptions<CreateKindOkResponse, CreateKindErrorResponse, CreateKindProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateKindOkResponse, unknown, CreateKindProps, 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 '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export function createKind(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/kinds`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create a Kind.
|
|
11
|
-
*/
|
|
12
|
-
export function useCreateKindMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => createKind(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
3
|
-
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
4
|
-
export interface DeleteKindMutationPathParams {
|
|
5
|
-
identifier: string;
|
|
6
|
-
}
|
|
7
|
-
export interface DeleteKindMutationHeaderParams {
|
|
8
|
-
'Harness-Account'?: string;
|
|
9
|
-
}
|
|
10
|
-
export type DeleteKindOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
-
export type DeleteKindErrorResponse = unknown;
|
|
12
|
-
export interface DeleteKindProps extends DeleteKindMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteKindMutationHeaderParams>, 'url'> {
|
|
13
|
-
}
|
|
14
|
-
export declare function deleteKind(props: DeleteKindProps): Promise<DeleteKindOkResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Delete a Kind.
|
|
17
|
-
*/
|
|
18
|
-
export declare function useDeleteKindMutation(options?: Omit<UseMutationOptions<DeleteKindOkResponse, DeleteKindErrorResponse, DeleteKindProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteKindOkResponse, unknown, DeleteKindProps, 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 '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export function deleteKind(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/kinds/${props.identifier}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete a Kind.
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteKindMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteKind(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { KindResponseBodyResponse } from '../responses/KindResponseBodyResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
-
export interface GetKindQueryPathParams {
|
|
6
|
-
identifier: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetKindQueryHeaderParams {
|
|
9
|
-
'Harness-Account'?: string;
|
|
10
|
-
}
|
|
11
|
-
export type GetKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
|
|
12
|
-
export type GetKindErrorResponse = unknown;
|
|
13
|
-
export interface GetKindProps extends GetKindQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetKindQueryHeaderParams>, 'url'> {
|
|
14
|
-
}
|
|
15
|
-
export declare function getKind(props: GetKindProps): Promise<GetKindOkResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Get Kind.
|
|
18
|
-
*/
|
|
19
|
-
export declare function useGetKindQuery(props: GetKindProps, options?: Omit<UseQueryOptions<GetKindOkResponse, GetKindErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetKindOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export function getKind(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/kinds/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Kind.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetKindQuery(props, options) {
|
|
13
|
-
return useQuery(['get-kind', props.identifier], ({ signal }) => getKind(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { KindResponseBodyListResponse } from '../responses/KindResponseBodyListResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
5
|
-
export interface GetKindsQueryQueryParams {
|
|
6
|
-
page?: number;
|
|
7
|
-
/**
|
|
8
|
-
* @default 10
|
|
9
|
-
*/
|
|
10
|
-
limit?: number;
|
|
11
|
-
sort?: string;
|
|
12
|
-
search_term?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface GetKindsQueryHeaderParams {
|
|
15
|
-
'Harness-Account'?: string;
|
|
16
|
-
}
|
|
17
|
-
export type GetKindsOkResponse = ResponseWithPagination<KindResponseBodyListResponse>;
|
|
18
|
-
export type GetKindsErrorResponse = unknown;
|
|
19
|
-
export interface GetKindsProps extends Omit<FetcherOptions<GetKindsQueryQueryParams, unknown, GetKindsQueryHeaderParams>, 'url'> {
|
|
20
|
-
queryParams: GetKindsQueryQueryParams;
|
|
21
|
-
}
|
|
22
|
-
export declare function getKinds(props: GetKindsProps): Promise<GetKindsOkResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Get Kinds.
|
|
25
|
-
*/
|
|
26
|
-
export declare function useGetKindsQuery(props: GetKindsProps, options?: Omit<UseQueryOptions<GetKindsOkResponse, GetKindsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetKindsOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export function getKinds(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/kinds`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Kinds.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetKindsQuery(props, options) {
|
|
13
|
-
return useQuery(['get-kinds', props.queryParams], ({ signal }) => getKinds(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { KindResponseBodyResponse } from '../responses/KindResponseBodyResponse';
|
|
3
|
-
import type { KindUpdateRequestBodyRequestBody } from '../requestBodies/KindUpdateRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export interface UpdateKindMutationPathParams {
|
|
7
|
-
identifier: string;
|
|
8
|
-
}
|
|
9
|
-
export interface UpdateKindMutationHeaderParams {
|
|
10
|
-
'Harness-Account'?: string;
|
|
11
|
-
}
|
|
12
|
-
export type UpdateKindRequestBody = KindUpdateRequestBodyRequestBody;
|
|
13
|
-
export type UpdateKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
|
|
14
|
-
export type UpdateKindErrorResponse = unknown;
|
|
15
|
-
export interface UpdateKindProps extends UpdateKindMutationPathParams, Omit<FetcherOptions<unknown, UpdateKindRequestBody, UpdateKindMutationHeaderParams>, 'url'> {
|
|
16
|
-
body: UpdateKindRequestBody;
|
|
17
|
-
}
|
|
18
|
-
export declare function updateKind(props: UpdateKindProps): Promise<UpdateKindOkResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Update a Kind.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useUpdateKindMutation(options?: Omit<UseMutationOptions<UpdateKindOkResponse, UpdateKindErrorResponse, UpdateKindProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateKindOkResponse, unknown, UpdateKindProps, 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 '../../../../custom-idp-fetcher/index.js';
|
|
6
|
-
export function updateKind(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/kinds/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Update a Kind.
|
|
11
|
-
*/
|
|
12
|
-
export function useUpdateKindMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => updateKind(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type KindCreateRequestBodyRequestBody = unknown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type KindUpdateRequestBodyRequestBody = unknown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|