@harnessio/react-rmg-service-client 0.72.0 → 0.73.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/rmg-service/src/services/hooks/useListArtifactTrackerServiceRefsQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceRefsQuery.js +15 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.d.ts +34 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.js +15 -0
- package/dist/rmg-service/src/services/index.d.ts +11 -0
- package/dist/rmg-service/src/services/index.js +2 -0
- package/dist/rmg-service/src/services/schemas/ActivityExecutionInputDto.d.ts +7 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTag.d.ts +14 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTag.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagList.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRef.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRef.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRefList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRefList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.d.ts +12 -1
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +2 -1
- package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OutputDataType.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/OutputDataType.js +4 -0
- package/dist/rmg-service/src/services/schemas/OutputVariable.d.ts +20 -3
- package/dist/rmg-service/src/services/schemas/OutputVariable.js +0 -3
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactInputVariable.d.ts +25 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactInputVariable.js +1 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactValue.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactValue.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerServiceRefList } from '../schemas/ArtifactTrackerServiceRefList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactTrackerServiceRefsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ListArtifactTrackerServiceRefsQueryHeaderParams {
|
|
19
|
+
'Harness-Account': string;
|
|
20
|
+
}
|
|
21
|
+
export type ListArtifactTrackerServiceRefsOkResponse = ResponseWithPagination<ArtifactTrackerServiceRefList>;
|
|
22
|
+
export type ListArtifactTrackerServiceRefsErrorResponse = ErrorResponseResponse;
|
|
23
|
+
export interface ListArtifactTrackerServiceRefsProps extends Omit<FetcherOptions<ListArtifactTrackerServiceRefsQueryQueryParams, unknown, ListArtifactTrackerServiceRefsQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: ListArtifactTrackerServiceRefsQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function listArtifactTrackerServiceRefs(props: ListArtifactTrackerServiceRefsProps): Promise<ListArtifactTrackerServiceRefsOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a paginated list of `{id, serviceRef}` pairs — one per service mapping under the requested scope. Consumers pick a `serviceRef` from the list and use the corresponding `id` to fetch tags via `/v1/artifact-tracker/service-mappings/{identifier}/tags`.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare function useListArtifactTrackerServiceRefsQuery(props: ListArtifactTrackerServiceRefsProps, options?: Omit<UseQueryOptions<ListArtifactTrackerServiceRefsOkResponse, ListArtifactTrackerServiceRefsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactTrackerServiceRefsOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 '../../../../fetcher/index.js';
|
|
6
|
+
export function listArtifactTrackerServiceRefs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-refs`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of `{id, serviceRef}` pairs — one per service mapping under the requested scope. Consumers pick a `serviceRef` from the list and use the corresponding `id` to fetch tags via `/v1/artifact-tracker/service-mappings/{identifier}/tags`.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useListArtifactTrackerServiceRefsQuery(props, options) {
|
|
14
|
+
return useQuery(['listArtifactTrackerServiceRefs', props.queryParams], ({ signal }) => listArtifactTrackerServiceRefs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTagList } from '../schemas/ArtifactTagList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactTrackerTagsByServiceMappingQueryPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListArtifactTrackerTagsByServiceMappingQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @default 0
|
|
14
|
+
*/
|
|
15
|
+
page?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 20
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ListArtifactTrackerTagsByServiceMappingQueryHeaderParams {
|
|
22
|
+
'Harness-Account': string;
|
|
23
|
+
}
|
|
24
|
+
export type ListArtifactTrackerTagsByServiceMappingOkResponse = ResponseWithPagination<ArtifactTagList>;
|
|
25
|
+
export type ListArtifactTrackerTagsByServiceMappingErrorResponse = ErrorResponseResponse;
|
|
26
|
+
export interface ListArtifactTrackerTagsByServiceMappingProps extends ListArtifactTrackerTagsByServiceMappingQueryPathParams, Omit<FetcherOptions<ListArtifactTrackerTagsByServiceMappingQueryQueryParams, unknown, ListArtifactTrackerTagsByServiceMappingQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: ListArtifactTrackerTagsByServiceMappingQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function listArtifactTrackerTagsByServiceMapping(props: ListArtifactTrackerTagsByServiceMappingProps): Promise<ListArtifactTrackerTagsByServiceMappingOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Returns a paginated list of artifact tags (strings) linked to the given service mapping, ordered newest first. Empty list if no artifacts have been ingested for this mapping yet.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListArtifactTrackerTagsByServiceMappingQuery(props: ListArtifactTrackerTagsByServiceMappingProps, options?: Omit<UseQueryOptions<ListArtifactTrackerTagsByServiceMappingOkResponse, ListArtifactTrackerTagsByServiceMappingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactTrackerTagsByServiceMappingOkResponse, import("..").Error>;
|
package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 '../../../../fetcher/index.js';
|
|
6
|
+
export function listArtifactTrackerTagsByServiceMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings/${props.identifier}/tags`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of artifact tags (strings) linked to the given service mapping, ordered newest first. Empty list if no artifacts have been ingested for this mapping yet.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useListArtifactTrackerTagsByServiceMappingQuery(props, options) {
|
|
14
|
+
return useQuery(['listArtifactTrackerTagsByServiceMapping', props.identifier, props.queryParams], ({ signal }) => listArtifactTrackerTagsByServiceMapping(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -135,8 +135,12 @@ export type { IngestWebhookSignalErrorResponse, IngestWebhookSignalOkResponse, I
|
|
|
135
135
|
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
136
136
|
export type { ListArtifactTrackerServiceMappingsErrorResponse, ListArtifactTrackerServiceMappingsOkResponse, ListArtifactTrackerServiceMappingsProps, ListArtifactTrackerServiceMappingsQueryQueryParams, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
137
137
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
138
|
+
export type { ListArtifactTrackerServiceRefsErrorResponse, ListArtifactTrackerServiceRefsOkResponse, ListArtifactTrackerServiceRefsProps, ListArtifactTrackerServiceRefsQueryQueryParams, } from './hooks/useListArtifactTrackerServiceRefsQuery';
|
|
139
|
+
export { listArtifactTrackerServiceRefs, useListArtifactTrackerServiceRefsQuery, } from './hooks/useListArtifactTrackerServiceRefsQuery';
|
|
138
140
|
export type { ListArtifactTrackerSettingsErrorResponse, ListArtifactTrackerSettingsOkResponse, ListArtifactTrackerSettingsProps, ListArtifactTrackerSettingsQueryQueryParams, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
139
141
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
142
|
+
export type { ListArtifactTrackerTagsByServiceMappingErrorResponse, ListArtifactTrackerTagsByServiceMappingOkResponse, ListArtifactTrackerTagsByServiceMappingProps, ListArtifactTrackerTagsByServiceMappingQueryPathParams, ListArtifactTrackerTagsByServiceMappingQueryQueryParams, } from './hooks/useListArtifactTrackerTagsByServiceMappingQuery';
|
|
143
|
+
export { listArtifactTrackerTagsByServiceMapping, useListArtifactTrackerTagsByServiceMappingQuery, } from './hooks/useListArtifactTrackerTagsByServiceMappingQuery';
|
|
140
144
|
export type { ListArtifactsByServiceErrorResponse, ListArtifactsByServiceOkResponse, ListArtifactsByServiceProps, ListArtifactsByServiceQueryQueryParams, } from './hooks/useListArtifactsByServiceQuery';
|
|
141
145
|
export { listArtifactsByService, useListArtifactsByServiceQuery, } from './hooks/useListArtifactsByServiceQuery';
|
|
142
146
|
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryQueryParams, } from './hooks/useListArtifactsQuery';
|
|
@@ -318,10 +322,14 @@ export type { ArtifactBuildPipeline } from './schemas/ArtifactBuildPipeline';
|
|
|
318
322
|
export type { ArtifactFacets } from './schemas/ArtifactFacets';
|
|
319
323
|
export type { ArtifactServiceGroupList } from './schemas/ArtifactServiceGroupList';
|
|
320
324
|
export type { ArtifactServiceItem } from './schemas/ArtifactServiceItem';
|
|
325
|
+
export type { ArtifactTag } from './schemas/ArtifactTag';
|
|
321
326
|
export type { ArtifactTagInputVariable } from './schemas/ArtifactTagInputVariable';
|
|
327
|
+
export type { ArtifactTagList } from './schemas/ArtifactTagList';
|
|
322
328
|
export type { ArtifactTagMetadata } from './schemas/ArtifactTagMetadata';
|
|
323
329
|
export type { ArtifactTrackerServiceMapping } from './schemas/ArtifactTrackerServiceMapping';
|
|
324
330
|
export type { ArtifactTrackerServiceMappingList } from './schemas/ArtifactTrackerServiceMappingList';
|
|
331
|
+
export type { ArtifactTrackerServiceRef } from './schemas/ArtifactTrackerServiceRef';
|
|
332
|
+
export type { ArtifactTrackerServiceRefList } from './schemas/ArtifactTrackerServiceRefList';
|
|
325
333
|
export type { ArtifactTrackerSettings } from './schemas/ArtifactTrackerSettings';
|
|
326
334
|
export type { ArtifactTrackerSettingsList } from './schemas/ArtifactTrackerSettingsList';
|
|
327
335
|
export type { ArtifactVersion } from './schemas/ArtifactVersion';
|
|
@@ -426,6 +434,7 @@ export type { OrchestrationProcessInputYaml } from './schemas/OrchestrationProce
|
|
|
426
434
|
export type { OrchestrationProcessMetadataDto } from './schemas/OrchestrationProcessMetadataDto';
|
|
427
435
|
export type { OrchestrationReleaseProcessYaml } from './schemas/OrchestrationReleaseProcessYaml';
|
|
428
436
|
export type { OrchestrationStatus } from './schemas/OrchestrationStatus';
|
|
437
|
+
export type { OutputDataType } from './schemas/OutputDataType';
|
|
429
438
|
export type { OutputVariable } from './schemas/OutputVariable';
|
|
430
439
|
export type { Pageable } from './schemas/Pageable';
|
|
431
440
|
export type { PageableSort } from './schemas/PageableSort';
|
|
@@ -449,6 +458,8 @@ export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
|
|
|
449
458
|
export type { ReleaseActivity } from './schemas/ReleaseActivity';
|
|
450
459
|
export type { ReleaseApprovalDto } from './schemas/ReleaseApprovalDto';
|
|
451
460
|
export type { ReleaseApprovalType } from './schemas/ReleaseApprovalType';
|
|
461
|
+
export type { ReleaseArtifactInputVariable } from './schemas/ReleaseArtifactInputVariable';
|
|
462
|
+
export type { ReleaseArtifactValue } from './schemas/ReleaseArtifactValue';
|
|
452
463
|
export type { ReleaseCadence } from './schemas/ReleaseCadence';
|
|
453
464
|
export type { ReleaseComponent } from './schemas/ReleaseComponent';
|
|
454
465
|
export type { ReleaseConflictInfo } from './schemas/ReleaseConflictInfo';
|
|
@@ -66,7 +66,9 @@ export { getWebhookMetadata, useGetWebhookMetadataQuery } from './hooks/useGetWe
|
|
|
66
66
|
export { getYamlSchema, useGetYamlSchemaQuery } from './hooks/useGetYamlSchemaQuery';
|
|
67
67
|
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
68
68
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
69
|
+
export { listArtifactTrackerServiceRefs, useListArtifactTrackerServiceRefsQuery, } from './hooks/useListArtifactTrackerServiceRefsQuery';
|
|
69
70
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
71
|
+
export { listArtifactTrackerTagsByServiceMapping, useListArtifactTrackerTagsByServiceMappingQuery, } from './hooks/useListArtifactTrackerTagsByServiceMappingQuery';
|
|
70
72
|
export { listArtifactsByService, useListArtifactsByServiceQuery, } from './hooks/useListArtifactsByServiceQuery';
|
|
71
73
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
72
74
|
export { listChangesetCommits, useListChangesetCommitsQuery, } from './hooks/useListChangesetCommitsQuery';
|
|
@@ -4,6 +4,13 @@ import type { AnyValue } from '../schemas/AnyValue';
|
|
|
4
4
|
* Input value for an activity execution
|
|
5
5
|
*/
|
|
6
6
|
export interface ActivityExecutionInputDto {
|
|
7
|
+
/**
|
|
8
|
+
* Free-form metadata bag persisted alongside the input value. release-artifact inputs use it to carry commitSha/repoName/branch/registry/artifactPath so the execution view can render them without a second lookup.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
metadata?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
7
14
|
/**
|
|
8
15
|
* Name of the input parameter
|
|
9
16
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A distinct artifact tag with context from the newest artifact row
|
|
3
|
+
* produced under that tag. commit_sha / repo_name / branch may be empty
|
|
4
|
+
* if the ingest event didn't carry git info.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export interface ArtifactTag {
|
|
8
|
+
artifactPath: string;
|
|
9
|
+
branch?: string;
|
|
10
|
+
commitSha?: string;
|
|
11
|
+
registry: string;
|
|
12
|
+
repoName?: string;
|
|
13
|
+
tag: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ArtifactTag } from '../schemas/ArtifactTag';
|
|
2
|
+
/**
|
|
3
|
+
* Paginated list of distinct artifact tags for a service mapping, ordered newest first.
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactTagList {
|
|
6
|
+
content?: ArtifactTag[];
|
|
7
|
+
pageNumber?: number;
|
|
8
|
+
pageSize?: number;
|
|
9
|
+
totalElements?: number;
|
|
10
|
+
totalPages?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A service ref entry from a service mapping, keyed by mapping id.
|
|
3
|
+
*/
|
|
4
|
+
export interface ArtifactTrackerServiceRef {
|
|
5
|
+
/**
|
|
6
|
+
* Service mapping UUID. Use this to fetch tags via `/service-mappings/{identifier}/tags` (identifier resolved separately) or as an opaque key.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Service mapping identifier (user-facing name).
|
|
11
|
+
*/
|
|
12
|
+
identifier?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The service ref stored on the service mapping.
|
|
15
|
+
*/
|
|
16
|
+
serviceRef: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ArtifactTrackerServiceRef } from '../schemas/ArtifactTrackerServiceRef';
|
|
2
|
+
export interface ArtifactTrackerServiceRefList {
|
|
3
|
+
content?: ArtifactTrackerServiceRef[];
|
|
4
|
+
pageNumber?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
totalElements?: number;
|
|
7
|
+
totalPages?: number;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { OutputDataType } from '../schemas/OutputDataType';
|
|
1
2
|
import type { AnyValue } from '../schemas/AnyValue';
|
|
2
3
|
/**
|
|
3
4
|
* Output value for a phase execution
|
|
@@ -7,12 +8,22 @@ export interface ExecutionOutputDto {
|
|
|
7
8
|
* Description of the output parameter
|
|
8
9
|
*/
|
|
9
10
|
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Element type when type is 'list'. Absent for non-list outputs.
|
|
13
|
+
*/
|
|
14
|
+
items?: OutputDataType;
|
|
10
15
|
/**
|
|
11
16
|
* Name of the output parameter
|
|
12
17
|
*/
|
|
13
18
|
name: string;
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
20
|
+
* Declared type of the output. Absent for legacy outputs (implicit string).
|
|
21
|
+
*/
|
|
22
|
+
type?: OutputDataType;
|
|
23
|
+
/**
|
|
24
|
+
* Value of the output parameter (can be string, number, boolean, object, array, etc.).
|
|
25
|
+
* The accepted shape depends on `type`; for `release-artifact` see ReleaseArtifactValue.
|
|
26
|
+
*
|
|
16
27
|
*/
|
|
17
28
|
value: AnyValue;
|
|
18
29
|
}
|
|
@@ -7,6 +7,7 @@ import type { InfrastructureInputVariable } from '../schemas/InfrastructureInput
|
|
|
7
7
|
import type { MultiInfrastructureInputVariable } from '../schemas/MultiInfrastructureInputVariable';
|
|
8
8
|
import type { ConnectorInputVariable } from '../schemas/ConnectorInputVariable';
|
|
9
9
|
import type { ArtifactTagInputVariable } from '../schemas/ArtifactTagInputVariable';
|
|
10
|
-
|
|
10
|
+
import type { ReleaseArtifactInputVariable } from '../schemas/ReleaseArtifactInputVariable';
|
|
11
|
+
export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable | ArtifactTagInputVariable | ReleaseArtifactInputVariable) & {
|
|
11
12
|
[key: string]: any;
|
|
12
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of an input variable for parameters and process inputs.
|
|
3
3
|
*/
|
|
4
|
-
export type InputVariableType = 'artifactTag' | 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
|
|
4
|
+
export type InputVariableType = 'artifactTag' | 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'release-artifact' | 'service' | 'string';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { OutputDataType } from '../schemas/OutputDataType';
|
|
2
|
+
import type { AnyValue } from '../schemas/AnyValue';
|
|
1
3
|
/**
|
|
2
|
-
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and
|
|
4
|
+
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and optional `type`, `items`, `description`, and `metadata`.
|
|
3
5
|
*
|
|
4
6
|
*/
|
|
5
7
|
export type OutputVariable = string | {
|
|
@@ -8,7 +10,22 @@ export type OutputVariable = string | {
|
|
|
8
10
|
*/
|
|
9
11
|
description?: string;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Element type when type is 'list'. Absent for non-list outputs.
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
items?: OutputDataType;
|
|
16
|
+
/**
|
|
17
|
+
* Additional metadata for the output variable.
|
|
18
|
+
*/
|
|
19
|
+
metadata?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Declared type of the output. Absent (empty) means the output has no declared type and is treated as 'string' for backward compatibility.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
type?: OutputDataType;
|
|
27
|
+
/**
|
|
28
|
+
* The output value or expression. Shape depends on the declared type.
|
|
29
|
+
*/
|
|
30
|
+
value: AnyValue;
|
|
14
31
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReleaseArtifactValue } from '../schemas/ReleaseArtifactValue';
|
|
2
|
+
/**
|
|
3
|
+
* Input variable for a release-artifact reference. The value is an object pointing to a specific artifact-tracker service mapping + tag. Populated by the UI via a cascade over the service-refs + tags APIs.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface ReleaseArtifactInputVariable {
|
|
7
|
+
/**
|
|
8
|
+
* Default reference (service mapping identifier + tag).
|
|
9
|
+
*/
|
|
10
|
+
default?: ReleaseArtifactValue;
|
|
11
|
+
/**
|
|
12
|
+
* Description of the variable
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional metadata bag. Reserved for future use; not validated in v1.
|
|
17
|
+
*/
|
|
18
|
+
metadata?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Type of the input variable
|
|
23
|
+
*/
|
|
24
|
+
type: 'release-artifact';
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Free-form object stored under a release-artifact input's value/default. Pass-through server-side — mirrors output-artifact's contract. Fields listed below are conventional but none are required, and `tag` can be a runtime expression (e.g. `<+input>`) rather than a literal string.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export interface ReleaseArtifactValue {
|
|
6
|
+
/**
|
|
7
|
+
* Optional — carried through for display; not validated server-side.
|
|
8
|
+
*/
|
|
9
|
+
artifactPath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The service mapping identifier (from /v1/artifact-tracker/service-refs).
|
|
12
|
+
*/
|
|
13
|
+
serviceMapping?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The artifact tag, or a runtime expression that resolves to one.
|
|
16
|
+
*/
|
|
17
|
+
tag?: string;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|