@harnessio/react-idp-service-client 0.68.0 → 0.69.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/index.d.ts +12 -0
- package/dist/idp-service/src/services/index.js +1 -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/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/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'> {
|
|
@@ -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';
|
|
@@ -182,8 +184,11 @@ export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/Co
|
|
|
182
184
|
export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
|
|
183
185
|
export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
|
|
184
186
|
export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
|
|
187
|
+
export type { EntityCreateRequestBodyRequestBody } from './requestBodies/EntityCreateRequestBodyRequestBody';
|
|
185
188
|
export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
|
|
189
|
+
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
186
190
|
export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
|
|
191
|
+
export type { GitImportRequestBodyRequestBody } from './requestBodies/GitImportRequestBodyRequestBody';
|
|
187
192
|
export type { GroupRequestListRequestBody } from './requestBodies/GroupRequestListRequestBody';
|
|
188
193
|
export type { GroupRequestRequestBody } from './requestBodies/GroupRequestRequestBody';
|
|
189
194
|
export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
|
|
@@ -270,6 +275,7 @@ export type { BackstagePermissionsResponse } from './schemas/BackstagePermission
|
|
|
270
275
|
export type { BannerInfo } from './schemas/BannerInfo';
|
|
271
276
|
export type { BaseIntegrationRequest } from './schemas/BaseIntegrationRequest';
|
|
272
277
|
export type { BaseIntegrationResponse } from './schemas/BaseIntegrationResponse';
|
|
278
|
+
export type { CacheResponseData } from './schemas/CacheResponseData';
|
|
273
279
|
export type { Card } from './schemas/Card';
|
|
274
280
|
export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
|
|
275
281
|
export type { CdEntityAsIdpEntity } from './schemas/CdEntityAsIdpEntity';
|
|
@@ -303,17 +309,23 @@ export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
|
303
309
|
export type { EntitiesGroups } from './schemas/EntitiesGroups';
|
|
304
310
|
export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
|
|
305
311
|
export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
|
|
312
|
+
export type { EntityCreateRequest } from './schemas/EntityCreateRequest';
|
|
306
313
|
export type { EntityFiltersResponse } from './schemas/EntityFiltersResponse';
|
|
307
314
|
export type { EntityJsonSchemaResponse } from './schemas/EntityJsonSchemaResponse';
|
|
308
315
|
export type { EntityKindsResponse } from './schemas/EntityKindsResponse';
|
|
309
316
|
export type { EntityRefs } from './schemas/EntityRefs';
|
|
310
317
|
export type { EntityRequest } from './schemas/EntityRequest';
|
|
311
318
|
export type { EntityResponse } from './schemas/EntityResponse';
|
|
319
|
+
export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
312
320
|
export type { ExportDetails } from './schemas/ExportDetails';
|
|
313
321
|
export type { Exports } from './schemas/Exports';
|
|
314
322
|
export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
|
|
315
323
|
export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
|
|
324
|
+
export type { GitCreateDetails } from './schemas/GitCreateDetails';
|
|
325
|
+
export type { GitDetails } from './schemas/GitDetails';
|
|
326
|
+
export type { GitImportDetails } from './schemas/GitImportDetails';
|
|
316
327
|
export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
|
|
328
|
+
export type { GitUpdateDetails } from './schemas/GitUpdateDetails';
|
|
317
329
|
export type { Group } from './schemas/Group';
|
|
318
330
|
export type { GroupRequest } from './schemas/GroupRequest';
|
|
319
331
|
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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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
|
+
}
|