@harnessio/react-template-service-client 0.3.0 → 0.4.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/template-service/src/services/hooks/useCreateTemplatesAccMutation.d.ts +5 -1
- package/dist/template-service/src/services/hooks/useDeleteTemplateAccMutation.d.ts +1 -0
- package/dist/template-service/src/services/hooks/useGetTemplateAccQuery.d.ts +1 -0
- package/dist/template-service/src/services/hooks/useGetTemplateSchemaQuery.d.ts +1 -1
- package/dist/template-service/src/services/hooks/useGetTemplateStableAccQuery.d.ts +1 -0
- package/dist/template-service/src/services/hooks/useGetTemplatesListAccQuery.d.ts +2 -1
- package/dist/template-service/src/services/hooks/useGetTemplatesListOrgQuery.d.ts +1 -1
- package/dist/template-service/src/services/hooks/useGetTemplatesListProjectQuery.d.ts +1 -1
- package/dist/template-service/src/services/hooks/useUpdateTemplateAccMutation.d.ts +5 -1
- package/dist/template-service/src/services/hooks/useUpdateTemplateStableAccMutation.d.ts +5 -1
- package/dist/template-service/src/services/index.d.ts +3 -3
- package/dist/template-service/src/services/schemas/FixedValueFieldDependencyDetailsDto.d.ts +1 -1
- package/dist/template-service/src/services/schemas/TemplateCreateRequestBody.d.ts +4 -0
- package/dist/template-service/src/services/schemas/TemplateImportRequestDto.d.ts +4 -0
- package/dist/template-service/src/services/schemas/TemplateMetadataSummaryResponse.d.ts +2 -2
- package/dist/template-service/src/services/schemas/TemplateResponse.d.ts +2 -2
- package/dist/template-service/src/services/schemas/TemplateUpdateRequestBody.d.ts +4 -0
- package/package.json +1 -4
|
@@ -3,13 +3,17 @@ import type { TemplateResponseResponse } from '../responses/TemplateResponseResp
|
|
|
3
3
|
import type { TemplateCreateBodyRequestBody } from '../requestBodies/TemplateCreateBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateTemplatesAccMutationQueryParams {
|
|
7
|
+
global_template?: boolean;
|
|
8
|
+
}
|
|
6
9
|
export interface CreateTemplatesAccMutationHeaderParams {
|
|
7
10
|
'Harness-Account'?: string;
|
|
8
11
|
}
|
|
9
12
|
export type CreateTemplatesAccRequestBody = TemplateCreateBodyRequestBody;
|
|
10
13
|
export type CreateTemplatesAccOkResponse = ResponseWithPagination<TemplateResponseResponse>;
|
|
11
14
|
export type CreateTemplatesAccErrorResponse = unknown;
|
|
12
|
-
export interface CreateTemplatesAccProps extends Omit<FetcherOptions<
|
|
15
|
+
export interface CreateTemplatesAccProps extends Omit<FetcherOptions<CreateTemplatesAccMutationQueryParams, CreateTemplatesAccRequestBody, CreateTemplatesAccMutationHeaderParams>, 'url'> {
|
|
16
|
+
queryParams: CreateTemplatesAccMutationQueryParams;
|
|
13
17
|
body: CreateTemplatesAccRequestBody;
|
|
14
18
|
}
|
|
15
19
|
export declare function createTemplatesAcc(props: CreateTemplatesAccProps): Promise<CreateTemplatesAccOkResponse>;
|
|
@@ -8,6 +8,7 @@ export interface DeleteTemplateAccMutationPathParams {
|
|
|
8
8
|
export interface DeleteTemplateAccMutationQueryParams {
|
|
9
9
|
comments?: string;
|
|
10
10
|
forceDelete?: boolean;
|
|
11
|
+
global_template?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export interface DeleteTemplateAccMutationHeaderParams {
|
|
13
14
|
'Harness-Account'?: string;
|
|
@@ -14,6 +14,7 @@ export interface GetTemplateAccQueryQueryParams {
|
|
|
14
14
|
parent_entity_account_id?: string;
|
|
15
15
|
parent_entity_org_id?: string;
|
|
16
16
|
parent_entity_project_id?: string;
|
|
17
|
+
global_template?: boolean;
|
|
17
18
|
}
|
|
18
19
|
export interface GetTemplateAccQueryHeaderParams {
|
|
19
20
|
'Harness-Account'?: string;
|
|
@@ -3,7 +3,7 @@ import type { TemplateSchemaResponseResponse } from '../responses/TemplateSchema
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetTemplateSchemaQueryQueryParams {
|
|
6
|
-
node_group?: 'artifactsource' | 'artifactsourcetemplate' | 'customdeployment' | 'group' | 'monitoredservice' | 'pipeline' | 'secretmanager' | 'stage' | 'step' | 'stepgroup' | 'template';
|
|
6
|
+
node_group?: 'artifactsource' | 'artifactsourcetemplate' | 'customdeployment' | 'group' | 'monitoredservice' | 'pipeline' | 'secretmanager' | 'stage' | 'step' | 'stepgroup' | 'template' | 'workspace';
|
|
7
7
|
node_type?: string;
|
|
8
8
|
/**
|
|
9
9
|
* @default "v0"
|
|
@@ -13,6 +13,7 @@ export interface GetTemplateStableAccQueryQueryParams {
|
|
|
13
13
|
parent_entity_account_id?: string;
|
|
14
14
|
parent_entity_org_id?: string;
|
|
15
15
|
parent_entity_project_id?: string;
|
|
16
|
+
global_template?: boolean;
|
|
16
17
|
}
|
|
17
18
|
export interface GetTemplateStableAccQueryHeaderParams {
|
|
18
19
|
'Harness-Account'?: string;
|
|
@@ -19,8 +19,9 @@ export interface GetTemplatesListAccQueryQueryParams {
|
|
|
19
19
|
names?: string[];
|
|
20
20
|
identifiers?: string[];
|
|
21
21
|
description?: string;
|
|
22
|
-
entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step'>;
|
|
22
|
+
entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
|
|
23
23
|
child_types?: string[];
|
|
24
|
+
global_template?: boolean;
|
|
24
25
|
}
|
|
25
26
|
export interface GetTemplatesListAccQueryHeaderParams {
|
|
26
27
|
'Harness-Account'?: string;
|
|
@@ -22,7 +22,7 @@ export interface GetTemplatesListOrgQueryQueryParams {
|
|
|
22
22
|
names?: string[];
|
|
23
23
|
identifiers?: string[];
|
|
24
24
|
description?: string;
|
|
25
|
-
entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step'>;
|
|
25
|
+
entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
|
|
26
26
|
child_types?: string[];
|
|
27
27
|
}
|
|
28
28
|
export interface GetTemplatesListOrgQueryHeaderParams {
|
|
@@ -23,7 +23,7 @@ export interface GetTemplatesListProjectQueryQueryParams {
|
|
|
23
23
|
names?: string[];
|
|
24
24
|
identifiers?: string[];
|
|
25
25
|
description?: string;
|
|
26
|
-
entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step'>;
|
|
26
|
+
entity_types?: Array<'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup'>;
|
|
27
27
|
child_types?: string[];
|
|
28
28
|
}
|
|
29
29
|
export interface GetTemplatesListProjectQueryHeaderParams {
|
|
@@ -7,13 +7,17 @@ export interface UpdateTemplateAccMutationPathParams {
|
|
|
7
7
|
template: string;
|
|
8
8
|
version: string;
|
|
9
9
|
}
|
|
10
|
+
export interface UpdateTemplateAccMutationQueryParams {
|
|
11
|
+
global_template?: boolean;
|
|
12
|
+
}
|
|
10
13
|
export interface UpdateTemplateAccMutationHeaderParams {
|
|
11
14
|
'Harness-Account'?: string;
|
|
12
15
|
}
|
|
13
16
|
export type UpdateTemplateAccRequestBody = TemplateUpdateBodyRequestBody;
|
|
14
17
|
export type UpdateTemplateAccOkResponse = ResponseWithPagination<TemplateResponseResponse>;
|
|
15
18
|
export type UpdateTemplateAccErrorResponse = unknown;
|
|
16
|
-
export interface UpdateTemplateAccProps extends UpdateTemplateAccMutationPathParams, Omit<FetcherOptions<
|
|
19
|
+
export interface UpdateTemplateAccProps extends UpdateTemplateAccMutationPathParams, Omit<FetcherOptions<UpdateTemplateAccMutationQueryParams, UpdateTemplateAccRequestBody, UpdateTemplateAccMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: UpdateTemplateAccMutationQueryParams;
|
|
17
21
|
body: UpdateTemplateAccRequestBody;
|
|
18
22
|
}
|
|
19
23
|
export declare function updateTemplateAcc(props: UpdateTemplateAccProps): Promise<UpdateTemplateAccOkResponse>;
|
|
@@ -7,13 +7,17 @@ export interface UpdateTemplateStableAccMutationPathParams {
|
|
|
7
7
|
template: string;
|
|
8
8
|
version: string;
|
|
9
9
|
}
|
|
10
|
+
export interface UpdateTemplateStableAccMutationQueryParams {
|
|
11
|
+
global_template?: boolean;
|
|
12
|
+
}
|
|
10
13
|
export interface UpdateTemplateStableAccMutationHeaderParams {
|
|
11
14
|
'Harness-Account'?: string;
|
|
12
15
|
}
|
|
13
16
|
export type UpdateTemplateStableAccRequestBody = TemplateFetchBodyRequestBody;
|
|
14
17
|
export type UpdateTemplateStableAccOkResponse = ResponseWithPagination<TemplateUpdateStableResponseResponse>;
|
|
15
18
|
export type UpdateTemplateStableAccErrorResponse = unknown;
|
|
16
|
-
export interface UpdateTemplateStableAccProps extends UpdateTemplateStableAccMutationPathParams, Omit<FetcherOptions<
|
|
19
|
+
export interface UpdateTemplateStableAccProps extends UpdateTemplateStableAccMutationPathParams, Omit<FetcherOptions<UpdateTemplateStableAccMutationQueryParams, UpdateTemplateStableAccRequestBody, UpdateTemplateStableAccMutationHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: UpdateTemplateStableAccMutationQueryParams;
|
|
17
21
|
body: UpdateTemplateStableAccRequestBody;
|
|
18
22
|
}
|
|
19
23
|
export declare function updateTemplateStableAcc(props: UpdateTemplateStableAccProps): Promise<UpdateTemplateStableAccOkResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
-
export type { CreateTemplatesAccErrorResponse, CreateTemplatesAccOkResponse, CreateTemplatesAccProps, CreateTemplatesAccRequestBody, } from './hooks/useCreateTemplatesAccMutation';
|
|
2
|
+
export type { CreateTemplatesAccErrorResponse, CreateTemplatesAccMutationQueryParams, CreateTemplatesAccOkResponse, CreateTemplatesAccProps, CreateTemplatesAccRequestBody, } from './hooks/useCreateTemplatesAccMutation';
|
|
3
3
|
export { createTemplatesAcc, useCreateTemplatesAccMutation, } from './hooks/useCreateTemplatesAccMutation';
|
|
4
4
|
export type { CreateTemplatesOrgErrorResponse, CreateTemplatesOrgMutationPathParams, CreateTemplatesOrgOkResponse, CreateTemplatesOrgProps, CreateTemplatesOrgRequestBody, } from './hooks/useCreateTemplatesOrgMutation';
|
|
5
5
|
export { createTemplatesOrg, useCreateTemplatesOrgMutation, } from './hooks/useCreateTemplatesOrgMutation';
|
|
@@ -51,13 +51,13 @@ export type { UpdateGitMetadataDetailsOrgErrorResponse, UpdateGitMetadataDetails
|
|
|
51
51
|
export { updateGitMetadataDetailsOrg, useUpdateGitMetadataDetailsOrgMutation, } from './hooks/useUpdateGitMetadataDetailsOrgMutation';
|
|
52
52
|
export type { UpdateGitMetadataDetailsProjectErrorResponse, UpdateGitMetadataDetailsProjectMutationPathParams, UpdateGitMetadataDetailsProjectOkResponse, UpdateGitMetadataDetailsProjectProps, UpdateGitMetadataDetailsProjectRequestBody, } from './hooks/useUpdateGitMetadataDetailsProjectMutation';
|
|
53
53
|
export { updateGitMetadataDetailsProject, useUpdateGitMetadataDetailsProjectMutation, } from './hooks/useUpdateGitMetadataDetailsProjectMutation';
|
|
54
|
-
export type { UpdateTemplateAccErrorResponse, UpdateTemplateAccMutationPathParams, UpdateTemplateAccOkResponse, UpdateTemplateAccProps, UpdateTemplateAccRequestBody, } from './hooks/useUpdateTemplateAccMutation';
|
|
54
|
+
export type { UpdateTemplateAccErrorResponse, UpdateTemplateAccMutationPathParams, UpdateTemplateAccMutationQueryParams, UpdateTemplateAccOkResponse, UpdateTemplateAccProps, UpdateTemplateAccRequestBody, } from './hooks/useUpdateTemplateAccMutation';
|
|
55
55
|
export { updateTemplateAcc, useUpdateTemplateAccMutation, } from './hooks/useUpdateTemplateAccMutation';
|
|
56
56
|
export type { UpdateTemplateOrgErrorResponse, UpdateTemplateOrgMutationPathParams, UpdateTemplateOrgOkResponse, UpdateTemplateOrgProps, UpdateTemplateOrgRequestBody, } from './hooks/useUpdateTemplateOrgMutation';
|
|
57
57
|
export { updateTemplateOrg, useUpdateTemplateOrgMutation, } from './hooks/useUpdateTemplateOrgMutation';
|
|
58
58
|
export type { UpdateTemplateProjectErrorResponse, UpdateTemplateProjectMutationPathParams, UpdateTemplateProjectOkResponse, UpdateTemplateProjectProps, UpdateTemplateProjectRequestBody, } from './hooks/useUpdateTemplateProjectMutation';
|
|
59
59
|
export { updateTemplateProject, useUpdateTemplateProjectMutation, } from './hooks/useUpdateTemplateProjectMutation';
|
|
60
|
-
export type { UpdateTemplateStableAccErrorResponse, UpdateTemplateStableAccMutationPathParams, UpdateTemplateStableAccOkResponse, UpdateTemplateStableAccProps, UpdateTemplateStableAccRequestBody, } from './hooks/useUpdateTemplateStableAccMutation';
|
|
60
|
+
export type { UpdateTemplateStableAccErrorResponse, UpdateTemplateStableAccMutationPathParams, UpdateTemplateStableAccMutationQueryParams, UpdateTemplateStableAccOkResponse, UpdateTemplateStableAccProps, UpdateTemplateStableAccRequestBody, } from './hooks/useUpdateTemplateStableAccMutation';
|
|
61
61
|
export { updateTemplateStableAcc, useUpdateTemplateStableAccMutation, } from './hooks/useUpdateTemplateStableAccMutation';
|
|
62
62
|
export type { UpdateTemplateStableOrgErrorResponse, UpdateTemplateStableOrgMutationPathParams, UpdateTemplateStableOrgOkResponse, UpdateTemplateStableOrgProps, UpdateTemplateStableOrgRequestBody, } from './hooks/useUpdateTemplateStableOrgMutation';
|
|
63
63
|
export { updateTemplateStableOrg, useUpdateTemplateStableOrgMutation, } from './hooks/useUpdateTemplateStableOrgMutation';
|
|
@@ -23,7 +23,7 @@ export interface TemplateMetadataSummaryResponse {
|
|
|
23
23
|
* Type of Template
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step';
|
|
26
|
+
entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup';
|
|
27
27
|
git_details?: EntityGitDetails;
|
|
28
28
|
/**
|
|
29
29
|
* Template identifier
|
|
@@ -75,7 +75,7 @@ export interface TemplateMetadataSummaryResponse {
|
|
|
75
75
|
*/
|
|
76
76
|
version_label?: string;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Template yaml version, should be one of '0' or '1'
|
|
79
79
|
*/
|
|
80
80
|
yaml_version?: string;
|
|
81
81
|
}
|
|
@@ -23,7 +23,7 @@ export interface TemplateResponse {
|
|
|
23
23
|
* Type of Template
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step';
|
|
26
|
+
entity_type?: 'CustomDeployment' | 'MonitoredService' | 'Pipeline' | 'SecretManager' | 'Stage' | 'Step' | 'StepGroup';
|
|
27
27
|
git_details?: EntityGitDetails;
|
|
28
28
|
/**
|
|
29
29
|
* Template identifier
|
|
@@ -79,7 +79,7 @@ export interface TemplateResponse {
|
|
|
79
79
|
*/
|
|
80
80
|
yaml: string;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Template yaml version, should be one of '0' or '1'
|
|
83
83
|
*/
|
|
84
84
|
yaml_version?: string;
|
|
85
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-template-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Harness React template service client - Template APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,8 +27,5 @@
|
|
|
27
27
|
"build": "yarn generate && tsc",
|
|
28
28
|
"generate": "oats import --config='./oats.config.ts'",
|
|
29
29
|
"fmt": "prettier --write ./index.ts"
|
|
30
|
-
},
|
|
31
|
-
"engines": {
|
|
32
|
-
"node": "^16"
|
|
33
30
|
}
|
|
34
31
|
}
|