@harnessio/react-idp-service-client 0.68.0 → 0.70.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/useCreateEntityMutation.d.ts +2 -2
- package/dist/idp-service/src/services/hooks/useGetEntityQuery.d.ts +8 -0
- package/dist/idp-service/src/services/hooks/useImportEntityMutation.d.ts +24 -0
- package/dist/idp-service/src/services/hooks/useImportEntityMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useUpdateEntityMutation.d.ts +2 -2
- package/dist/idp-service/src/services/hooks/useUpdateGitMetadataMutation.d.ts +29 -0
- package/dist/idp-service/src/services/hooks/useUpdateGitMetadataMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +16 -0
- package/dist/idp-service/src/services/index.js +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityCreateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityCreateRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/requestBodies/EntityUpdateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityUpdateRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/requestBodies/GitImportRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/GitImportRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/requestBodies/GitMetadataUpdateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/GitMetadataUpdateRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/schemas/CacheResponseData.d.ts +17 -0
- package/dist/idp-service/src/services/schemas/CacheResponseData.js +4 -0
- package/dist/idp-service/src/services/schemas/EntityCreateRequest.d.ts +11 -0
- package/dist/idp-service/src/services/schemas/EntityCreateRequest.js +1 -0
- package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/EntityResponse.js +0 -3
- package/dist/idp-service/src/services/schemas/EntityUpdateRequest.d.ts +11 -0
- package/dist/idp-service/src/services/schemas/EntityUpdateRequest.js +1 -0
- package/dist/idp-service/src/services/schemas/GitCreateDetails.d.ts +37 -0
- package/dist/idp-service/src/services/schemas/GitCreateDetails.js +4 -0
- package/dist/idp-service/src/services/schemas/GitDetails.d.ts +53 -0
- package/dist/idp-service/src/services/schemas/GitDetails.js +4 -0
- package/dist/idp-service/src/services/schemas/GitImportDetails.d.ts +11 -0
- package/dist/idp-service/src/services/schemas/GitImportDetails.js +4 -0
- package/dist/idp-service/src/services/schemas/GitMetadataUpdateRequest.d.ts +18 -0
- package/dist/idp-service/src/services/schemas/GitMetadataUpdateRequest.js +4 -0
- package/dist/idp-service/src/services/schemas/GitUpdateDetails.d.ts +42 -0
- package/dist/idp-service/src/services/schemas/GitUpdateDetails.js +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { EntityResponseBodyResponse } from '../responses/EntityResponseBodyResponse';
|
|
3
|
-
import type {
|
|
3
|
+
import type { EntityCreateRequestBodyRequestBody } from '../requestBodies/EntityCreateRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CreateEntityMutationQueryParams {
|
|
@@ -12,7 +12,7 @@ export interface CreateEntityMutationQueryParams {
|
|
|
12
12
|
export interface CreateEntityMutationHeaderParams {
|
|
13
13
|
'Harness-Account'?: string;
|
|
14
14
|
}
|
|
15
|
-
export type CreateEntityRequestBody =
|
|
15
|
+
export type CreateEntityRequestBody = EntityCreateRequestBodyRequestBody;
|
|
16
16
|
export type CreateEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
17
17
|
export type CreateEntityErrorResponse = unknown;
|
|
18
18
|
export interface CreateEntityProps extends Omit<FetcherOptions<CreateEntityMutationQueryParams, CreateEntityRequestBody, CreateEntityMutationHeaderParams>, 'url'> {
|
|
@@ -10,9 +10,17 @@ export interface GetEntityQueryPathParams {
|
|
|
10
10
|
export interface GetEntityQueryQueryParams {
|
|
11
11
|
orgIdentifier?: string;
|
|
12
12
|
projectIdentifier?: string;
|
|
13
|
+
branch_name?: string;
|
|
14
|
+
connector_ref?: string;
|
|
15
|
+
repo_name?: string;
|
|
16
|
+
load_from_fallback_branch?: boolean;
|
|
13
17
|
}
|
|
14
18
|
export interface GetEntityQueryHeaderParams {
|
|
15
19
|
'Harness-Account'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @default "false"
|
|
22
|
+
*/
|
|
23
|
+
'Load-From-Cache'?: string;
|
|
16
24
|
}
|
|
17
25
|
export type GetEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
18
26
|
export type GetEntityErrorResponse = unknown;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityResponseBodyResponse } from '../responses/EntityResponseBodyResponse';
|
|
3
|
+
import type { GitImportRequestBodyRequestBody } from '../requestBodies/GitImportRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ImportEntityMutationQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ImportEntityMutationHeaderParams {
|
|
11
|
+
'Harness-Account'?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ImportEntityRequestBody = GitImportRequestBodyRequestBody;
|
|
14
|
+
export type ImportEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
15
|
+
export type ImportEntityErrorResponse = unknown;
|
|
16
|
+
export interface ImportEntityProps extends Omit<FetcherOptions<ImportEntityMutationQueryParams, ImportEntityRequestBody, ImportEntityMutationHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: ImportEntityMutationQueryParams;
|
|
18
|
+
body: ImportEntityRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function importEntity(props: ImportEntityProps): Promise<ImportEntityOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Import an Entity.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useImportEntityMutation(options?: Omit<UseMutationOptions<ImportEntityOkResponse, ImportEntityErrorResponse, ImportEntityProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportEntityOkResponse, unknown, ImportEntityProps, 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 importEntity(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/import`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Import an Entity.
|
|
11
|
+
*/
|
|
12
|
+
export function useImportEntityMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => importEntity(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { EntityResponseBodyResponse } from '../responses/EntityResponseBodyResponse';
|
|
3
|
-
import type {
|
|
3
|
+
import type { EntityUpdateRequestBodyRequestBody } from '../requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface UpdateEntityMutationPathParams {
|
|
@@ -15,7 +15,7 @@ export interface UpdateEntityMutationQueryParams {
|
|
|
15
15
|
export interface UpdateEntityMutationHeaderParams {
|
|
16
16
|
'Harness-Account'?: string;
|
|
17
17
|
}
|
|
18
|
-
export type UpdateEntityRequestBody =
|
|
18
|
+
export type UpdateEntityRequestBody = EntityUpdateRequestBodyRequestBody;
|
|
19
19
|
export type UpdateEntityOkResponse = ResponseWithPagination<EntityResponseBodyResponse>;
|
|
20
20
|
export type UpdateEntityErrorResponse = unknown;
|
|
21
21
|
export interface UpdateEntityProps extends UpdateEntityMutationPathParams, Omit<FetcherOptions<UpdateEntityMutationQueryParams, UpdateEntityRequestBody, UpdateEntityMutationHeaderParams>, 'url'> {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
|
|
3
|
+
import type { GitMetadataUpdateRequestBodyRequestBody } from '../requestBodies/GitMetadataUpdateRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateGitMetadataMutationPathParams {
|
|
7
|
+
scope: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateGitMetadataMutationQueryParams {
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface UpdateGitMetadataMutationHeaderParams {
|
|
16
|
+
'Harness-Account'?: string;
|
|
17
|
+
}
|
|
18
|
+
export type UpdateGitMetadataRequestBody = GitMetadataUpdateRequestBodyRequestBody;
|
|
19
|
+
export type UpdateGitMetadataOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
|
|
20
|
+
export type UpdateGitMetadataErrorResponse = unknown;
|
|
21
|
+
export interface UpdateGitMetadataProps extends UpdateGitMetadataMutationPathParams, Omit<FetcherOptions<UpdateGitMetadataMutationQueryParams, UpdateGitMetadataRequestBody, UpdateGitMetadataMutationHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: UpdateGitMetadataMutationQueryParams;
|
|
23
|
+
body: UpdateGitMetadataRequestBody;
|
|
24
|
+
}
|
|
25
|
+
export declare function updateGitMetadata(props: UpdateGitMetadataProps): Promise<UpdateGitMetadataOkResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Update GitMetadata for Remote Entities
|
|
28
|
+
*/
|
|
29
|
+
export declare function useUpdateGitMetadataMutation(options?: Omit<UseMutationOptions<UpdateGitMetadataOkResponse, UpdateGitMetadataErrorResponse, UpdateGitMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGitMetadataOkResponse, unknown, UpdateGitMetadataProps, 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 updateGitMetadata(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/git-metadata/${props.scope}/${props.kind}/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update GitMetadata for Remote Entities
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateGitMetadataMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateGitMetadata(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -129,6 +129,8 @@ export type { GetWorkflowsForAccountErrorResponse, GetWorkflowsForAccountOkRespo
|
|
|
129
129
|
export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
|
|
130
130
|
export type { ImportCdEntitiesErrorResponse, ImportCdEntitiesOkResponse, ImportCdEntitiesProps, ImportCdEntitiesRequestBody, } from './hooks/useImportCdEntitiesMutation';
|
|
131
131
|
export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
|
|
132
|
+
export type { ImportEntityErrorResponse, ImportEntityMutationQueryParams, ImportEntityOkResponse, ImportEntityProps, ImportEntityRequestBody, } from './hooks/useImportEntityMutation';
|
|
133
|
+
export { importEntity, useImportEntityMutation } from './hooks/useImportEntityMutation';
|
|
132
134
|
export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
|
|
133
135
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
134
136
|
export type { LayoutIngestErrorResponse, LayoutIngestOkResponse, LayoutIngestProps, LayoutIngestRequestBody, } from './hooks/useLayoutIngestMutation';
|
|
@@ -167,6 +169,8 @@ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutat
|
|
|
167
169
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
168
170
|
export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
|
|
169
171
|
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
172
|
+
export type { UpdateGitMetadataErrorResponse, UpdateGitMetadataMutationPathParams, UpdateGitMetadataMutationQueryParams, UpdateGitMetadataOkResponse, UpdateGitMetadataProps, UpdateGitMetadataRequestBody, } from './hooks/useUpdateGitMetadataMutation';
|
|
173
|
+
export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
|
|
170
174
|
export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
|
|
171
175
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
172
176
|
export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
|
|
@@ -182,8 +186,12 @@ export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/Co
|
|
|
182
186
|
export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
|
|
183
187
|
export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
|
|
184
188
|
export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
|
|
189
|
+
export type { EntityCreateRequestBodyRequestBody } from './requestBodies/EntityCreateRequestBodyRequestBody';
|
|
185
190
|
export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
|
|
191
|
+
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
186
192
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
193
|
+
export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
|
|
194
|
+
export type { GitMetadataUpdateRequestBodyRequestBody } from './requestBodies/GitMetadataUpdateRequestBodyRequestBody';
|
|
187
195
|
export type { GroupRequestListRequestBody } from './requestBodies/GroupRequestListRequestBody';
|
|
188
196
|
export type { GroupRequestRequestBody } from './requestBodies/GroupRequestRequestBody';
|
|
189
197
|
export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
|
|
@@ -270,6 +278,7 @@ export type { BackstagePermissionsResponse } from './schemas/BackstagePermission
|
|
|
270
278
|
export type { BannerInfo } from './schemas/BannerInfo';
|
|
271
279
|
export type { BaseIntegrationRequest } from './schemas/BaseIntegrationRequest';
|
|
272
280
|
export type { BaseIntegrationResponse } from './schemas/BaseIntegrationResponse';
|
|
281
|
+
export type { CacheResponseData } from './schemas/CacheResponseData';
|
|
273
282
|
export type { Card } from './schemas/Card';
|
|
274
283
|
export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
|
|
275
284
|
export type { CdEntityAsIdpEntity } from './schemas/CdEntityAsIdpEntity';
|
|
@@ -303,17 +312,24 @@ export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
|
303
312
|
export type { EntitiesGroups } from './schemas/EntitiesGroups';
|
|
304
313
|
export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
|
|
305
314
|
export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
|
|
315
|
+
export type { EntityCreateRequest } from './schemas/EntityCreateRequest';
|
|
306
316
|
export type { EntityFiltersResponse } from './schemas/EntityFiltersResponse';
|
|
307
317
|
export type { EntityJsonSchemaResponse } from './schemas/EntityJsonSchemaResponse';
|
|
308
318
|
export type { EntityKindsResponse } from './schemas/EntityKindsResponse';
|
|
309
319
|
export type { EntityRefs } from './schemas/EntityRefs';
|
|
310
320
|
export type { EntityRequest } from './schemas/EntityRequest';
|
|
311
321
|
export type { EntityResponse } from './schemas/EntityResponse';
|
|
322
|
+
export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
312
323
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
313
324
|
export type { Exports } from './schemas/Exports';
|
|
314
325
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
315
326
|
export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
|
|
327
|
+
export type { GitCreateDetails } from './schemas/GitCreateDetails';
|
|
328
|
+
export type { GitDetails } from './schemas/GitDetails';
|
|
329
|
+
export type { GitImportDetails } from './schemas/GitImportDetails';
|
|
316
330
|
export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
|
|
331
|
+
export type { GitMetadataUpdateRequest } from './schemas/GitMetadataUpdateRequest';
|
|
332
|
+
export type { GitUpdateDetails } from './schemas/GitUpdateDetails';
|
|
317
333
|
export type { Group } from './schemas/Group';
|
|
318
334
|
export type { GroupRequest } from './schemas/GroupRequest';
|
|
319
335
|
export type { GroupResponse } from './schemas/GroupResponse';
|
|
@@ -63,6 +63,7 @@ export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGe
|
|
|
63
63
|
export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
|
|
64
64
|
export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
|
|
65
65
|
export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
|
|
66
|
+
export { importEntity, useImportEntityMutation } from './hooks/useImportEntityMutation';
|
|
66
67
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
67
68
|
export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
|
|
68
69
|
export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
|
|
@@ -82,6 +83,7 @@ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutat
|
|
|
82
83
|
export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
|
|
83
84
|
export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
|
|
84
85
|
export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
|
|
86
|
+
export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
|
|
85
87
|
export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
|
|
86
88
|
export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
|
|
87
89
|
export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/idp-service/src/services/requestBodies/GitMetadataUpdateRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface CacheResponseData {
|
|
2
|
+
/**
|
|
3
|
+
* Tells the state of cache.
|
|
4
|
+
*/
|
|
5
|
+
cache_state?: 'STALE_CACHE' | 'UNKNOWN' | 'VALID_CACHE';
|
|
6
|
+
is_sync_enabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Time when the cache was last updated at.
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
last_updated_at?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Time left till cache expriry.
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
ttl_left?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GitCreateDetails } from '../schemas/GitCreateDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Entity Create Request Body
|
|
4
|
+
*/
|
|
5
|
+
export interface EntityCreateRequest {
|
|
6
|
+
git_details?: GitCreateDetails;
|
|
7
|
+
/**
|
|
8
|
+
* Entity YAML (to be passed as a String).
|
|
9
|
+
*/
|
|
10
|
+
yaml: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type { CacheResponseData } from '../schemas/CacheResponseData';
|
|
2
|
+
import type { GitDetails } from '../schemas/GitDetails';
|
|
1
3
|
/**
|
|
2
4
|
* Entity Response Body
|
|
3
5
|
*/
|
|
4
6
|
export interface EntityResponse {
|
|
7
|
+
cache_response_data?: CacheResponseData;
|
|
5
8
|
description?: string;
|
|
6
9
|
entity_ref: string;
|
|
10
|
+
git_details?: GitDetails;
|
|
7
11
|
groups?: Array<{
|
|
8
12
|
group_description?: string;
|
|
9
13
|
group_icon?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GitUpdateDetails } from '../schemas/GitUpdateDetails';
|
|
2
|
+
/**
|
|
3
|
+
* Entity Update Request Body
|
|
4
|
+
*/
|
|
5
|
+
export interface EntityUpdateRequest {
|
|
6
|
+
git_details?: GitUpdateDetails;
|
|
7
|
+
/**
|
|
8
|
+
* Entity YAML (to be passed as a String).
|
|
9
|
+
*/
|
|
10
|
+
yaml: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains parameters related to creating an Entity for Git Experience.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitCreateDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the default branch (this checks out a new branch titled by branch_name).
|
|
7
|
+
*/
|
|
8
|
+
base_branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the branch.
|
|
11
|
+
*/
|
|
12
|
+
branch_name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Commit message used for the merge commit.
|
|
15
|
+
*/
|
|
16
|
+
commit_message?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier of the Harness Connector used for CRUD operations on the Entity.
|
|
19
|
+
*/
|
|
20
|
+
connector_ref?: string;
|
|
21
|
+
/**
|
|
22
|
+
* File path of the Entity in the repository.
|
|
23
|
+
*/
|
|
24
|
+
file_path?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Is Git Experience repo harness code.
|
|
27
|
+
*/
|
|
28
|
+
is_harness_code_repo?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the repository.
|
|
31
|
+
*/
|
|
32
|
+
repo_name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies whether the Entity is to be stored in Git or not.
|
|
35
|
+
*/
|
|
36
|
+
store_type?: 'INLINE' | 'REMOTE';
|
|
37
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git Experience related details of the Entity.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the default branch (this checks out a new branch titled by branch_name).
|
|
7
|
+
*/
|
|
8
|
+
base_branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the branch.
|
|
11
|
+
*/
|
|
12
|
+
branch_name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Commit identifier.
|
|
15
|
+
*/
|
|
16
|
+
commit_id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Commit message used for the merge commit.
|
|
19
|
+
*/
|
|
20
|
+
commit_message?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Identifier of the Harness Connector used for CRUD operations on the Entity.
|
|
23
|
+
*/
|
|
24
|
+
connector_ref?: string;
|
|
25
|
+
/**
|
|
26
|
+
* File path of the Entity in the repository.
|
|
27
|
+
*/
|
|
28
|
+
file_path?: string;
|
|
29
|
+
/**
|
|
30
|
+
* File URL of the Entity.
|
|
31
|
+
*/
|
|
32
|
+
file_url?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Is Git Experience repo harness code.
|
|
35
|
+
*/
|
|
36
|
+
is_harness_code_repo?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Object identifier (for Github only).
|
|
39
|
+
*/
|
|
40
|
+
object_id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Name of the repository.
|
|
43
|
+
*/
|
|
44
|
+
repo_name?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Repository URL of the Entity.
|
|
47
|
+
*/
|
|
48
|
+
repo_url?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies whether the Entity is to be stored in Git or not.
|
|
51
|
+
*/
|
|
52
|
+
store_type?: 'INLINE' | 'REMOTE';
|
|
53
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parameters related to importing an entity for Git.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitImportDetails {
|
|
5
|
+
branch_name?: string;
|
|
6
|
+
connector_ref?: string;
|
|
7
|
+
file_path?: string;
|
|
8
|
+
is_force_import?: boolean;
|
|
9
|
+
is_harness_code_repo?: boolean;
|
|
10
|
+
repo_name?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface GitMetadataUpdateRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the branch.
|
|
4
|
+
*/
|
|
5
|
+
branch_name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Harness connector id used for entity CRUD operations
|
|
8
|
+
*/
|
|
9
|
+
connector_ref?: string;
|
|
10
|
+
/**
|
|
11
|
+
* File path of the entity in the repository.
|
|
12
|
+
*/
|
|
13
|
+
file_path?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the repository.
|
|
16
|
+
*/
|
|
17
|
+
repo_name?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contains parameters related to updating an Entity for Git Experience.
|
|
3
|
+
*/
|
|
4
|
+
export interface GitUpdateDetails {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the default branch (this checks out a new branch titled by branch_name).
|
|
7
|
+
*/
|
|
8
|
+
base_branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the branch.
|
|
11
|
+
*/
|
|
12
|
+
branch_name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Commit message used for the merge commit.
|
|
15
|
+
*/
|
|
16
|
+
commit_message?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Identifier of the Harness Connector used for CRUD operations on the Entity.
|
|
19
|
+
*/
|
|
20
|
+
connector_ref?: string;
|
|
21
|
+
file_path?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Is Git Experience repo harness code.
|
|
24
|
+
*/
|
|
25
|
+
is_harness_code_repo?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Last commit identifier.
|
|
28
|
+
*/
|
|
29
|
+
last_commit_id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last object identifier (for Github only).
|
|
32
|
+
*/
|
|
33
|
+
last_object_id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Name of the repository.
|
|
36
|
+
*/
|
|
37
|
+
repo_name?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies whether the Entity is to be stored in Git or not.
|
|
40
|
+
*/
|
|
41
|
+
store_type?: 'INLINE' | 'REMOTE';
|
|
42
|
+
}
|