@harnessio/react-idp-service-client 0.95.0 → 0.96.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 (22) hide show
  1. package/dist/idp-service/src/services/hooks/useDiscoverEntitiesQuery.d.ts +1 -0
  2. package/dist/idp-service/src/services/hooks/useGetEntityAssociationsQuery.d.ts +1 -1
  3. package/dist/idp-service/src/services/hooks/useGetImportedEntitiesQuery.d.ts +1 -0
  4. package/dist/idp-service/src/services/hooks/useGetKindSchemaQuery.d.ts +16 -0
  5. package/dist/idp-service/src/services/hooks/useGetKindSchemaQuery.js +14 -0
  6. package/dist/idp-service/src/services/index.d.ts +7 -0
  7. package/dist/idp-service/src/services/index.js +1 -0
  8. package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.d.ts +2 -1
  9. package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.d.ts +2 -1
  10. package/dist/idp-service/src/services/responses/DiscoverEntitiesResponseListResponse.d.ts +2 -2
  11. package/dist/idp-service/src/services/responses/KindSchemaResponseBodyResponse.d.ts +2 -0
  12. package/dist/idp-service/src/services/responses/KindSchemaResponseBodyResponse.js +1 -0
  13. package/dist/idp-service/src/services/schemas/DiscoverEntitiesResponse.d.ts +4 -0
  14. package/dist/idp-service/src/services/schemas/DiscoverEntitiesResponseBody.d.ts +8 -0
  15. package/dist/idp-service/src/services/schemas/DiscoverEntitiesResponseBody.js +1 -0
  16. package/dist/idp-service/src/services/schemas/KindCreateRequest.d.ts +25 -0
  17. package/dist/idp-service/src/services/schemas/KindCreateRequest.js +4 -0
  18. package/dist/idp-service/src/services/schemas/KindSchemaResponseBody.d.ts +6 -0
  19. package/dist/idp-service/src/services/schemas/KindSchemaResponseBody.js +4 -0
  20. package/dist/idp-service/src/services/schemas/KindUpdateRequest.d.ts +21 -0
  21. package/dist/idp-service/src/services/schemas/KindUpdateRequest.js +4 -0
  22. package/package.json +1 -1
@@ -12,6 +12,7 @@ export interface DiscoverEntitiesQueryQueryParams {
12
12
  limit?: number;
13
13
  sort?: string;
14
14
  search_term?: string;
15
+ kinds?: string;
15
16
  }
16
17
  export interface DiscoverEntitiesQueryHeaderParams {
17
18
  'Harness-Account'?: string;
@@ -18,7 +18,7 @@ export interface GetEntityAssociationsQueryQueryParams {
18
18
  sort?: string;
19
19
  search_term?: string;
20
20
  owned_by_me?: boolean;
21
- scopes?: string;
21
+ favorites?: boolean;
22
22
  association_kind?: string;
23
23
  type?: string;
24
24
  owner?: string;
@@ -12,6 +12,7 @@ export interface GetImportedEntitiesQueryQueryParams {
12
12
  limit?: number;
13
13
  sort?: string;
14
14
  search_term?: string;
15
+ kinds?: string;
15
16
  }
16
17
  export interface GetImportedEntitiesQueryHeaderParams {
17
18
  'Harness-Account'?: string;
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { KindSchemaResponseBodyResponse } from '../responses/KindSchemaResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetKindSchemaQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetKindSchemaOkResponse = ResponseWithPagination<KindSchemaResponseBodyResponse>;
9
+ export type GetKindSchemaErrorResponse = unknown;
10
+ export interface GetKindSchemaProps extends Omit<FetcherOptions<unknown, unknown, GetKindSchemaQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getKindSchema(props: GetKindSchemaProps): Promise<GetKindSchemaOkResponse>;
13
+ /**
14
+ * Get Kind Schema.
15
+ */
16
+ export declare function useGetKindSchemaQuery(props: GetKindSchemaProps, options?: Omit<UseQueryOptions<GetKindSchemaOkResponse, GetKindSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetKindSchemaOkResponse, 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 getKindSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds/schema`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Kind Schema.
11
+ */
12
+ export function useGetKindSchemaQuery(props, options) {
13
+ return useQuery(['get-kind-schema'], ({ signal }) => getKindSchema(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -155,6 +155,8 @@ export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchema
155
155
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
156
156
  export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, } from './hooks/useGetKindQuery';
157
157
  export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
158
+ export type { GetKindSchemaErrorResponse, GetKindSchemaOkResponse, GetKindSchemaProps, } from './hooks/useGetKindSchemaQuery';
159
+ export { getKindSchema, useGetKindSchemaQuery } from './hooks/useGetKindSchemaQuery';
158
160
  export type { GetKindsErrorResponse, GetKindsOkResponse, GetKindsProps, GetKindsQueryQueryParams, } from './hooks/useGetKindsQuery';
159
161
  export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
160
162
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
@@ -348,6 +350,7 @@ export type { IntegrationResponseListResponse } from './responses/IntegrationRes
348
350
  export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
349
351
  export type { KindResponseBodyListResponse } from './responses/KindResponseBodyListResponse';
350
352
  export type { KindResponseBodyResponse } from './responses/KindResponseBodyResponse';
353
+ export type { KindSchemaResponseBodyResponse } from './responses/KindSchemaResponseBodyResponse';
351
354
  export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
352
355
  export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
353
356
  export type { OnboardingCdEntitiesCountResponseResponse } from './responses/OnboardingCdEntitiesCountResponseResponse';
@@ -439,6 +442,7 @@ export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPo
439
442
  export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
440
443
  export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
441
444
  export type { DiscoverEntitiesResponse } from './schemas/DiscoverEntitiesResponse';
445
+ export type { DiscoverEntitiesResponseBody } from './schemas/DiscoverEntitiesResponseBody';
442
446
  export type { EntitiesByRefsRequest } from './schemas/EntitiesByRefsRequest';
443
447
  export type { EntitiesForImport } from './schemas/EntitiesForImport';
444
448
  export type { EntitiesGroups } from './schemas/EntitiesGroups';
@@ -493,8 +497,11 @@ export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
493
497
  export type { ImportedEntityResponse } from './schemas/ImportedEntityResponse';
494
498
  export type { InputDetails } from './schemas/InputDetails';
495
499
  export type { InputValue } from './schemas/InputValue';
500
+ export type { KindCreateRequest } from './schemas/KindCreateRequest';
496
501
  export type { KindResponseBody } from './schemas/KindResponseBody';
502
+ export type { KindSchemaResponseBody } from './schemas/KindSchemaResponseBody';
497
503
  export type { KindSchemaValidateRequest } from './schemas/KindSchemaValidateRequest';
504
+ export type { KindUpdateRequest } from './schemas/KindUpdateRequest';
498
505
  export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
499
506
  export type { LayoutRequest } from './schemas/LayoutRequest';
500
507
  export type { LayoutResponse } from './schemas/LayoutResponse';
@@ -76,6 +76,7 @@ export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegratio
76
76
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
77
77
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
78
78
  export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
79
+ export { getKindSchema, useGetKindSchemaQuery } from './hooks/useGetKindSchemaQuery';
79
80
  export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
80
81
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
81
82
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
@@ -1 +1,2 @@
1
- export type KindCreateRequestBodyRequestBody = unknown;
1
+ import type { KindCreateRequest } from '../schemas/KindCreateRequest';
2
+ export type KindCreateRequestBodyRequestBody = KindCreateRequest;
@@ -1 +1,2 @@
1
- export type KindUpdateRequestBodyRequestBody = unknown;
1
+ import type { KindUpdateRequest } from '../schemas/KindUpdateRequest';
2
+ export type KindUpdateRequestBodyRequestBody = KindUpdateRequest;
@@ -1,2 +1,2 @@
1
- import type { DiscoverEntitiesResponse } from '../schemas/DiscoverEntitiesResponse';
2
- export type DiscoverEntitiesResponseListResponse = DiscoverEntitiesResponse[];
1
+ import type { DiscoverEntitiesResponseBody } from '../schemas/DiscoverEntitiesResponseBody';
2
+ export type DiscoverEntitiesResponseListResponse = DiscoverEntitiesResponseBody;
@@ -0,0 +1,2 @@
1
+ import type { KindSchemaResponseBody } from '../schemas/KindSchemaResponseBody';
2
+ export type KindSchemaResponseBodyResponse = KindSchemaResponseBody;
@@ -5,6 +5,10 @@ export interface DiscoverEntitiesResponse {
5
5
  entity_ref?: string;
6
6
  name?: string;
7
7
  }>;
8
+ merge_suggestions?: Array<{
9
+ entity_ref?: string;
10
+ name?: string;
11
+ }>;
8
12
  register?: {
9
13
  name?: string;
10
14
  };
@@ -0,0 +1,8 @@
1
+ import type { DiscoverEntitiesResponse } from '../schemas/DiscoverEntitiesResponse';
2
+ export interface DiscoverEntitiesResponseBody {
3
+ entities?: DiscoverEntitiesResponse[];
4
+ merge_suggestions?: Array<{
5
+ entity_ref?: string;
6
+ name?: string;
7
+ }>;
8
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Kind Create Request Body
3
+ */
4
+ export interface KindCreateRequest {
5
+ /**
6
+ * Description of the kind.
7
+ */
8
+ description: string;
9
+ /**
10
+ * Icon of the kind.
11
+ */
12
+ icon?: string;
13
+ /**
14
+ * Identifier of the kind.
15
+ */
16
+ identifier: string;
17
+ /**
18
+ * Name of the kind.
19
+ */
20
+ name?: string;
21
+ /**
22
+ * Schema of the kind.
23
+ */
24
+ schema: string;
25
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Kind Schema Response Body
3
+ */
4
+ export interface KindSchemaResponseBody {
5
+ schema: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Kind Update Request Body
3
+ */
4
+ export interface KindUpdateRequest {
5
+ /**
6
+ * Description of the kind.
7
+ */
8
+ description?: string;
9
+ /**
10
+ * Icon of the kind.
11
+ */
12
+ icon?: string;
13
+ /**
14
+ * Name of the kind.
15
+ */
16
+ name?: string;
17
+ /**
18
+ * Schema of the kind.
19
+ */
20
+ schema: string;
21
+ }
@@ -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.95.0",
3
+ "version": "0.96.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",