@harnessio/react-idp-service-client 0.94.0 → 0.95.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 (39) hide show
  1. package/dist/idp-service/src/services/hooks/useCreateKindMutation.d.ts +19 -0
  2. package/dist/idp-service/src/services/hooks/useCreateKindMutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useDeleteKindMutation.d.ts +18 -0
  4. package/dist/idp-service/src/services/hooks/useDeleteKindMutation.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useGetKindQuery.d.ts +19 -0
  6. package/dist/idp-service/src/services/hooks/useGetKindQuery.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useGetKindsQuery.d.ts +26 -0
  8. package/dist/idp-service/src/services/hooks/useGetKindsQuery.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useGetWorkflowExecutionHistoryMutation.d.ts +27 -0
  10. package/dist/idp-service/src/services/hooks/useGetWorkflowExecutionHistoryMutation.js +14 -0
  11. package/dist/idp-service/src/services/hooks/useKindSchemaValidateMutation.d.ts +18 -0
  12. package/dist/idp-service/src/services/hooks/useKindSchemaValidateMutation.js +14 -0
  13. package/dist/idp-service/src/services/hooks/useUpdateKindMutation.d.ts +22 -0
  14. package/dist/idp-service/src/services/hooks/useUpdateKindMutation.js +14 -0
  15. package/dist/idp-service/src/services/index.d.ts +25 -0
  16. package/dist/idp-service/src/services/index.js +7 -0
  17. package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.d.ts +1 -0
  18. package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.js +1 -0
  19. package/dist/idp-service/src/services/requestBodies/KindSchemaValidateRequestBodyRequestBody.d.ts +2 -0
  20. package/dist/idp-service/src/services/requestBodies/KindSchemaValidateRequestBodyRequestBody.js +1 -0
  21. package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.d.ts +1 -0
  22. package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.js +1 -0
  23. package/dist/idp-service/src/services/requestBodies/WorkflowExecutionHistoryRequestRequestBody.d.ts +2 -0
  24. package/dist/idp-service/src/services/requestBodies/WorkflowExecutionHistoryRequestRequestBody.js +1 -0
  25. package/dist/idp-service/src/services/responses/KindResponseBodyListResponse.d.ts +2 -0
  26. package/dist/idp-service/src/services/responses/KindResponseBodyListResponse.js +1 -0
  27. package/dist/idp-service/src/services/responses/KindResponseBodyResponse.d.ts +2 -0
  28. package/dist/idp-service/src/services/responses/KindResponseBodyResponse.js +1 -0
  29. package/dist/idp-service/src/services/responses/WorkflowExecutionHistoryResponseBodyListResponse.d.ts +2 -0
  30. package/dist/idp-service/src/services/responses/WorkflowExecutionHistoryResponseBodyListResponse.js +1 -0
  31. package/dist/idp-service/src/services/schemas/KindResponseBody.d.ts +10 -0
  32. package/dist/idp-service/src/services/schemas/KindResponseBody.js +4 -0
  33. package/dist/idp-service/src/services/schemas/KindSchemaValidateRequest.d.ts +9 -0
  34. package/dist/idp-service/src/services/schemas/KindSchemaValidateRequest.js +4 -0
  35. package/dist/idp-service/src/services/schemas/WorkflowExecutionHistoryRequest.d.ts +12 -0
  36. package/dist/idp-service/src/services/schemas/WorkflowExecutionHistoryRequest.js +4 -0
  37. package/dist/idp-service/src/services/schemas/WorkflowExecutionHistoryResponse.d.ts +13 -0
  38. package/dist/idp-service/src/services/schemas/WorkflowExecutionHistoryResponse.js +4 -0
  39. package/package.json +1 -1
@@ -0,0 +1,19 @@
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>;
@@ -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 '../../../../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
+ }
@@ -0,0 +1,18 @@
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>;
@@ -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 '../../../../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
+ }
@@ -0,0 +1,19 @@
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>;
@@ -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 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
+ }
@@ -0,0 +1,26 @@
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>;
@@ -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 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
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { WorkflowExecutionHistoryResponseBodyListResponse } from '../responses/WorkflowExecutionHistoryResponseBodyListResponse';
3
+ import type { WorkflowExecutionHistoryRequestRequestBody } from '../requestBodies/WorkflowExecutionHistoryRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface GetWorkflowExecutionHistoryMutationQueryParams {
7
+ page?: number;
8
+ limit?: number;
9
+ sort?: string;
10
+ search_term?: string;
11
+ my_executions?: boolean;
12
+ }
13
+ export interface GetWorkflowExecutionHistoryMutationHeaderParams {
14
+ 'Harness-Account'?: string;
15
+ }
16
+ export type GetWorkflowExecutionHistoryRequestBody = WorkflowExecutionHistoryRequestRequestBody;
17
+ export type GetWorkflowExecutionHistoryOkResponse = ResponseWithPagination<WorkflowExecutionHistoryResponseBodyListResponse>;
18
+ export type GetWorkflowExecutionHistoryErrorResponse = unknown;
19
+ export interface GetWorkflowExecutionHistoryProps extends Omit<FetcherOptions<GetWorkflowExecutionHistoryMutationQueryParams, GetWorkflowExecutionHistoryRequestBody, GetWorkflowExecutionHistoryMutationHeaderParams>, 'url'> {
20
+ queryParams: GetWorkflowExecutionHistoryMutationQueryParams;
21
+ body: GetWorkflowExecutionHistoryRequestBody;
22
+ }
23
+ export declare function getWorkflowExecutionHistory(props: GetWorkflowExecutionHistoryProps): Promise<GetWorkflowExecutionHistoryOkResponse>;
24
+ /**
25
+ * Returns paginated, filtered and sorted workflow execution history for the given account.
26
+ */
27
+ export declare function useGetWorkflowExecutionHistoryMutation(options?: Omit<UseMutationOptions<GetWorkflowExecutionHistoryOkResponse, GetWorkflowExecutionHistoryErrorResponse, GetWorkflowExecutionHistoryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetWorkflowExecutionHistoryOkResponse, unknown, GetWorkflowExecutionHistoryProps, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function getWorkflowExecutionHistory(props) {
7
+ return fetcher(Object.assign({ url: `/v1/workflow-executions/history`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns paginated, filtered and sorted workflow execution history for the given account.
11
+ */
12
+ export function useGetWorkflowExecutionHistoryMutation(options) {
13
+ return useMutation((mutateProps) => getWorkflowExecutionHistory(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { KindSchemaValidateRequestBodyRequestBody } from '../requestBodies/KindSchemaValidateRequestBodyRequestBody';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface KindSchemaValidateMutationHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type KindSchemaValidateRequestBody = KindSchemaValidateRequestBodyRequestBody;
9
+ export type KindSchemaValidateOkResponse = ResponseWithPagination<unknown>;
10
+ export type KindSchemaValidateErrorResponse = unknown;
11
+ export interface KindSchemaValidateProps extends Omit<FetcherOptions<unknown, KindSchemaValidateRequestBody, KindSchemaValidateMutationHeaderParams>, 'url'> {
12
+ body: KindSchemaValidateRequestBody;
13
+ }
14
+ export declare function kindSchemaValidate(props: KindSchemaValidateProps): Promise<KindSchemaValidateOkResponse>;
15
+ /**
16
+ * Validate kind schema.
17
+ */
18
+ export declare function useKindSchemaValidateMutation(options?: Omit<UseMutationOptions<KindSchemaValidateOkResponse, KindSchemaValidateErrorResponse, KindSchemaValidateProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<KindSchemaValidateOkResponse, unknown, KindSchemaValidateProps, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function kindSchemaValidate(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds/schema/validate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Validate kind schema.
11
+ */
12
+ export function useKindSchemaValidateMutation(options) {
13
+ return useMutation((mutateProps) => kindSchemaValidate(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
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>;
@@ -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 '../../../../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
+ }
@@ -23,6 +23,8 @@ 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';
26
28
  export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
27
29
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
28
30
  export type { CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableProps, CreateOrUpdateEntityTableRequestBody, } from './hooks/useCreateOrUpdateEntityTableMutation';
@@ -53,6 +55,8 @@ export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksI
53
55
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
54
56
  export type { DeleteHomePageLayoutCardsIconErrorResponse, DeleteHomePageLayoutCardsIconMutationPathParams, DeleteHomePageLayoutCardsIconOkResponse, DeleteHomePageLayoutCardsIconProps, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
55
57
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
58
+ export type { DeleteKindErrorResponse, DeleteKindMutationPathParams, DeleteKindOkResponse, DeleteKindProps, } from './hooks/useDeleteKindMutation';
59
+ export { deleteKind, useDeleteKindMutation } from './hooks/useDeleteKindMutation';
56
60
  export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
57
61
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
58
62
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
@@ -149,6 +153,10 @@ export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegr
149
153
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
150
154
  export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchemaProps, GetJsonSchemaQueryQueryParams, } from './hooks/useGetJsonSchemaQuery';
151
155
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
156
+ export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, } from './hooks/useGetKindQuery';
157
+ export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
158
+ export type { GetKindsErrorResponse, GetKindsOkResponse, GetKindsProps, GetKindsQueryQueryParams, } from './hooks/useGetKindsQuery';
159
+ export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
152
160
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
153
161
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
154
162
  export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkResponse, GetMergedPluginsConfigProps, } from './hooks/useGetMergedPluginsConfigQuery';
@@ -171,6 +179,8 @@ export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, G
171
179
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
172
180
  export type { GetStatusInfoTypeV2ErrorResponse, GetStatusInfoTypeV2OkResponse, GetStatusInfoTypeV2Props, GetStatusInfoTypeV2QueryPathParams, } from './hooks/useGetStatusInfoTypeV2Query';
173
181
  export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
182
+ export type { GetWorkflowExecutionHistoryErrorResponse, GetWorkflowExecutionHistoryMutationQueryParams, GetWorkflowExecutionHistoryOkResponse, GetWorkflowExecutionHistoryProps, GetWorkflowExecutionHistoryRequestBody, } from './hooks/useGetWorkflowExecutionHistoryMutation';
183
+ export { getWorkflowExecutionHistory, useGetWorkflowExecutionHistoryMutation, } from './hooks/useGetWorkflowExecutionHistoryMutation';
174
184
  export type { GetWorkflowsForAccountErrorResponse, GetWorkflowsForAccountOkResponse, GetWorkflowsForAccountProps, GetWorkflowsForAccountQueryQueryParams, } from './hooks/useGetWorkflowsForAccountQuery';
175
185
  export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
176
186
  export type { ImportCdEntitiesErrorResponse, ImportCdEntitiesOkResponse, ImportCdEntitiesProps, ImportCdEntitiesRequestBody, } from './hooks/useImportCdEntitiesMutation';
@@ -179,6 +189,8 @@ export type { ImportEntityErrorResponse, ImportEntityMutationQueryParams, Import
179
189
  export { importEntity, useImportEntityMutation } from './hooks/useImportEntityMutation';
180
190
  export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
181
191
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
192
+ export type { KindSchemaValidateErrorResponse, KindSchemaValidateOkResponse, KindSchemaValidateProps, KindSchemaValidateRequestBody, } from './hooks/useKindSchemaValidateMutation';
193
+ export { kindSchemaValidate, useKindSchemaValidateMutation, } from './hooks/useKindSchemaValidateMutation';
182
194
  export type { LayoutIngestErrorResponse, LayoutIngestOkResponse, LayoutIngestProps, LayoutIngestRequestBody, } from './hooks/useLayoutIngestMutation';
183
195
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
184
196
  export type { MoveEntityErrorResponse, MoveEntityMutationPathParams, MoveEntityMutationQueryParams, MoveEntityOkResponse, MoveEntityProps, MoveEntityRequestBody, } from './hooks/useMoveEntityMutation';
@@ -237,6 +249,8 @@ export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, Update
237
249
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
238
250
  export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
239
251
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
252
+ export type { UpdateKindErrorResponse, UpdateKindMutationPathParams, UpdateKindOkResponse, UpdateKindProps, UpdateKindRequestBody, } from './hooks/useUpdateKindMutation';
253
+ export { updateKind, useUpdateKindMutation } from './hooks/useUpdateKindMutation';
240
254
  export type { UpdatePluginRequestV2ErrorResponse, UpdatePluginRequestV2MutationPathParams, UpdatePluginRequestV2OkResponse, UpdatePluginRequestV2Props, UpdatePluginRequestV2RequestBody, } from './hooks/useUpdatePluginRequestV2Mutation';
241
255
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
242
256
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
@@ -270,6 +284,9 @@ export type { GroupRequestRequestBody } from './requestBodies/GroupRequestReques
270
284
  export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
271
285
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
272
286
  export type { IntegrationRequestRequestBody } from './requestBodies/IntegrationRequestRequestBody';
287
+ export type { KindCreateRequestBodyRequestBody } from './requestBodies/KindCreateRequestBodyRequestBody';
288
+ export type { KindSchemaValidateRequestBodyRequestBody } from './requestBodies/KindSchemaValidateRequestBodyRequestBody';
289
+ export type { KindUpdateRequestBodyRequestBody } from './requestBodies/KindUpdateRequestBodyRequestBody';
273
290
  export type { OnboardingCdEntitiesFetchRequestRequestBody } from './requestBodies/OnboardingCdEntitiesFetchRequestRequestBody';
274
291
  export type { OnboardingGenerateYamlDefRequestRequestBody } from './requestBodies/OnboardingGenerateYamlDefRequestRequestBody';
275
292
  export type { OnboardingImportCdEntitiesRequestRequestBody } from './requestBodies/OnboardingImportCdEntitiesRequestRequestBody';
@@ -281,6 +298,7 @@ export type { SaveDiscoverEntitiesRequestRequestBody } from './requestBodies/Sav
281
298
  export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
282
299
  export type { UnlinkIntegrationEntitiesRequestRequestBody } from './requestBodies/UnlinkIntegrationEntitiesRequestRequestBody';
283
300
  export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
301
+ export type { WorkflowExecutionHistoryRequestRequestBody } from './requestBodies/WorkflowExecutionHistoryRequestRequestBody';
284
302
  export type { AggregationRuleDetailsResponseResponse } from './responses/AggregationRuleDetailsResponseResponse';
285
303
  export type { AggregationRuleResponseListResponse } from './responses/AggregationRuleResponseListResponse';
286
304
  export type { AggregationSelectionReviewResponseResponse } from './responses/AggregationSelectionReviewResponseResponse';
@@ -328,6 +346,8 @@ export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesR
328
346
  export type { ImportedEntitiesResponseListResponse } from './responses/ImportedEntitiesResponseListResponse';
329
347
  export type { IntegrationResponseListResponse } from './responses/IntegrationResponseListResponse';
330
348
  export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
349
+ export type { KindResponseBodyListResponse } from './responses/KindResponseBodyListResponse';
350
+ export type { KindResponseBodyResponse } from './responses/KindResponseBodyResponse';
331
351
  export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
332
352
  export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
333
353
  export type { OnboardingCdEntitiesCountResponseResponse } from './responses/OnboardingCdEntitiesCountResponseResponse';
@@ -348,6 +368,7 @@ export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseR
348
368
  export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
349
369
  export type { UnlinkIntegrationEntitiesResponseResponse } from './responses/UnlinkIntegrationEntitiesResponseResponse';
350
370
  export type { ValidateComplexCheckResponseResponse } from './responses/ValidateComplexCheckResponseResponse';
371
+ export type { WorkflowExecutionHistoryResponseBodyListResponse } from './responses/WorkflowExecutionHistoryResponseBodyListResponse';
351
372
  export type { WorkflowsInfoResponseResponse } from './responses/WorkflowsInfoResponseResponse';
352
373
  export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
353
374
  export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
@@ -472,6 +493,8 @@ export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
472
493
  export type { ImportedEntityResponse } from './schemas/ImportedEntityResponse';
473
494
  export type { InputDetails } from './schemas/InputDetails';
474
495
  export type { InputValue } from './schemas/InputValue';
496
+ export type { KindResponseBody } from './schemas/KindResponseBody';
497
+ export type { KindSchemaValidateRequest } from './schemas/KindSchemaValidateRequest';
475
498
  export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
476
499
  export type { LayoutRequest } from './schemas/LayoutRequest';
477
500
  export type { LayoutResponse } from './schemas/LayoutResponse';
@@ -528,6 +551,8 @@ export type { UploadInfo } from './schemas/UploadInfo';
528
551
  export type { User } from './schemas/User';
529
552
  export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
530
553
  export type { ValidateComplexCheckResponse } from './schemas/ValidateComplexCheckResponse';
554
+ export type { WorkflowExecutionHistoryRequest } from './schemas/WorkflowExecutionHistoryRequest';
555
+ export type { WorkflowExecutionHistoryResponse } from './schemas/WorkflowExecutionHistoryResponse';
531
556
  export type { WorkflowsInfo } from './schemas/WorkflowsInfo';
532
557
  export type { WorkflowsInfoResponse } from './schemas/WorkflowsInfoResponse';
533
558
  export type { WriteValidationDetails } from './schemas/WriteValidationDetails';
@@ -10,6 +10,7 @@ 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';
13
14
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
14
15
  export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
15
16
  export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
@@ -25,6 +26,7 @@ export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/us
25
26
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
26
27
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
27
28
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
29
+ export { deleteKind, useDeleteKindMutation } from './hooks/useDeleteKindMutation';
28
30
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
29
31
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
30
32
  export { discoverEntities, useDiscoverEntitiesQuery } from './hooks/useDiscoverEntitiesQuery';
@@ -73,6 +75,8 @@ export { getImportedEntities, useGetImportedEntitiesQuery, } from './hooks/useGe
73
75
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
74
76
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
75
77
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
78
+ export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
79
+ export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
76
80
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
77
81
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
78
82
  export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
@@ -84,10 +88,12 @@ export { getScorecardStats, useGetScorecardStatsQuery } from './hooks/useGetScor
84
88
  export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
85
89
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
86
90
  export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
91
+ export { getWorkflowExecutionHistory, useGetWorkflowExecutionHistoryMutation, } from './hooks/useGetWorkflowExecutionHistoryMutation';
87
92
  export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
88
93
  export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
89
94
  export { importEntity, useImportEntityMutation } from './hooks/useImportEntityMutation';
90
95
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
96
+ export { kindSchemaValidate, useKindSchemaValidateMutation, } from './hooks/useKindSchemaValidateMutation';
91
97
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
92
98
  export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation';
93
99
  export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
@@ -117,6 +123,7 @@ export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/us
117
123
  export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
118
124
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
119
125
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
126
+ export { updateKind, useUpdateKindMutation } from './hooks/useUpdateKindMutation';
120
127
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
121
128
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
122
129
  export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
@@ -0,0 +1 @@
1
+ export type KindCreateRequestBodyRequestBody = unknown;
@@ -0,0 +1,2 @@
1
+ import type { KindSchemaValidateRequest } from '../schemas/KindSchemaValidateRequest';
2
+ export type KindSchemaValidateRequestBodyRequestBody = KindSchemaValidateRequest;
@@ -0,0 +1 @@
1
+ export type KindUpdateRequestBodyRequestBody = unknown;
@@ -0,0 +1,2 @@
1
+ import type { WorkflowExecutionHistoryRequest } from '../schemas/WorkflowExecutionHistoryRequest';
2
+ export type WorkflowExecutionHistoryRequestRequestBody = WorkflowExecutionHistoryRequest;
@@ -0,0 +1,2 @@
1
+ import type { KindResponseBody } from '../schemas/KindResponseBody';
2
+ export type KindResponseBodyListResponse = KindResponseBody[];
@@ -0,0 +1,2 @@
1
+ import type { KindResponseBody } from '../schemas/KindResponseBody';
2
+ export type KindResponseBodyResponse = KindResponseBody;
@@ -0,0 +1,2 @@
1
+ import type { WorkflowExecutionHistoryResponse } from '../schemas/WorkflowExecutionHistoryResponse';
2
+ export type WorkflowExecutionHistoryResponseBodyListResponse = WorkflowExecutionHistoryResponse[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Kind Response Body
3
+ */
4
+ export interface KindResponseBody {
5
+ description?: string;
6
+ icon?: string;
7
+ identifier: string;
8
+ name: string;
9
+ schema: string;
10
+ }
@@ -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,9 @@
1
+ /**
2
+ * Kind Schema Validate Request Body
3
+ */
4
+ export interface KindSchemaValidateRequest {
5
+ /**
6
+ * Schema of the kind.
7
+ */
8
+ schema: string;
9
+ }
@@ -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,12 @@
1
+ export interface WorkflowExecutionHistoryRequest {
2
+ /**
3
+ * @format int64
4
+ */
5
+ end?: number;
6
+ entity_refs?: string[];
7
+ /**
8
+ * @format int64
9
+ */
10
+ start?: number;
11
+ status?: string[];
12
+ }
@@ -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,13 @@
1
+ export interface WorkflowExecutionHistoryResponse {
2
+ branch_name?: string;
3
+ /**
4
+ * @format int64
5
+ */
6
+ executed_at?: number;
7
+ executed_by?: string;
8
+ execution_id?: string;
9
+ scope?: string;
10
+ source?: string;
11
+ status?: string;
12
+ workflow_name?: string;
13
+ }
@@ -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-idp-service-client",
3
- "version": "0.94.0",
3
+ "version": "0.95.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",