@harnessio/react-rmg-service-client 0.65.1-beta.4 → 0.67.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 (28) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityQuery.d.ts +1 -0
  2. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery.d.ts +1 -1
  3. package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessExecutionsQuery.d.ts +1 -1
  4. package/dist/rmg-service/src/services/hooks/useGetOrchestrationProcessSummaryQuery.d.ts +1 -0
  5. package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceMappingsQuery.d.ts +1 -0
  6. package/dist/rmg-service/src/services/index.d.ts +2 -0
  7. package/dist/rmg-service/src/services/requestBodies/CreateOrchestrationActivityRequestRequestBody.d.ts +2 -0
  8. package/dist/rmg-service/src/services/requestBodies/CreateOrchestrationActivityRequestRequestBody.js +0 -3
  9. package/dist/rmg-service/src/services/requestBodies/UpdateOrchestrationActivityRequestRequestBody.d.ts +2 -0
  10. package/dist/rmg-service/src/services/requestBodies/UpdateOrchestrationActivityRequestRequestBody.js +0 -3
  11. package/dist/rmg-service/src/services/responses/GetOrchestrationActivityResponseResponse.d.ts +2 -0
  12. package/dist/rmg-service/src/services/responses/GetOrchestrationActivityResponseResponse.js +0 -3
  13. package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMapping.d.ts +1 -1
  14. package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettings.d.ts +4 -0
  15. package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.d.ts +5 -2
  16. package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerSettingsRequest.d.ts +5 -1
  17. package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.d.ts +2 -0
  18. package/dist/rmg-service/src/services/schemas/GitDetails.d.ts +49 -0
  19. package/dist/rmg-service/src/services/schemas/GitDetails.js +4 -0
  20. package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +2 -0
  21. package/dist/rmg-service/src/services/schemas/ManualTaskYaml.js +0 -3
  22. package/dist/rmg-service/src/services/schemas/OrchestrationActivitySummaryDto.d.ts +12 -0
  23. package/dist/rmg-service/src/services/schemas/OrchestrationStatus.d.ts +1 -1
  24. package/dist/rmg-service/src/services/schemas/TaskExecuteConfig.d.ts +10 -0
  25. package/dist/rmg-service/src/services/schemas/TaskExecuteConfig.js +4 -0
  26. package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts +7 -1
  27. package/dist/rmg-service/src/services/schemas/UpsertArtifactTrackerSettingsRequest.d.ts +5 -1
  28. package/package.json +1 -1
@@ -9,6 +9,7 @@ export interface GetOrchestrationActivityQueryPathParams {
9
9
  export interface GetOrchestrationActivityQueryQueryParams {
10
10
  orgIdentifier?: string;
11
11
  projectIdentifier?: string;
12
+ git_branch?: string;
12
13
  }
13
14
  export interface GetOrchestrationActivityQueryHeaderParams {
14
15
  'Harness-Account': string;
@@ -12,7 +12,7 @@ export interface GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams {
12
12
  page?: number;
13
13
  size?: number;
14
14
  sort?: string[];
15
- status?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
15
+ status?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
16
16
  type?: Array<'MANUAL' | 'PIPELINE' | 'SUBPROCESS'>;
17
17
  phaseIdentifier?: string;
18
18
  /**
@@ -13,7 +13,7 @@ export interface GetOrchestrationProcessExecutionsQueryQueryParams {
13
13
  size?: number;
14
14
  sort?: string[];
15
15
  executionType?: 'PROCESS' | 'RELEASE';
16
- statuses?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
16
+ statuses?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
17
17
  /**
18
18
  * @format int64
19
19
  */
@@ -10,6 +10,7 @@ export interface GetOrchestrationProcessSummaryQueryQueryParams {
10
10
  page?: number;
11
11
  size?: number;
12
12
  sort?: string[];
13
+ processIdentifiers?: string[];
13
14
  }
14
15
  export interface GetOrchestrationProcessSummaryQueryHeaderParams {
15
16
  'Harness-Account': string;
@@ -14,6 +14,7 @@ export interface ListArtifactTrackerServiceMappingsQueryQueryParams {
14
14
  * @default 20
15
15
  */
16
16
  size?: number;
17
+ settingsIdentifier?: string;
17
18
  }
18
19
  export interface ListArtifactTrackerServiceMappingsQueryHeaderParams {
19
20
  'Harness-Account': string;
@@ -330,6 +330,7 @@ export type { FreezeListResponseDto } from './schemas/FreezeListResponseDto';
330
330
  export type { Freq } from './schemas/Freq';
331
331
  export type { GcrArtifactMetadata } from './schemas/GcrArtifactMetadata';
332
332
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
333
+ export type { GitDetails } from './schemas/GitDetails';
333
334
  export type { GithubPackageRegistryMetadata } from './schemas/GithubPackageRegistryMetadata';
334
335
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
335
336
  export type { GoogleArtifactRegistryMetadata } from './schemas/GoogleArtifactRegistryMetadata';
@@ -426,6 +427,7 @@ export type { SubprocessTriggerRequest } from './schemas/SubprocessTriggerReques
426
427
  export type { SubprocessTriggerResponse } from './schemas/SubprocessTriggerResponse';
427
428
  export type { TaskCommentDto } from './schemas/TaskCommentDto';
428
429
  export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
430
+ export type { TaskExecuteConfig } from './schemas/TaskExecuteConfig';
429
431
  export type { TemplateReferenceSummary } from './schemas/TemplateReferenceSummary';
430
432
  export type { TimeRangeDto } from './schemas/TimeRangeDto';
431
433
  export type { TriggerType } from './schemas/TriggerType';
@@ -1,3 +1,5 @@
1
+ import type { GitDetails } from '../schemas/GitDetails';
1
2
  export interface CreateOrchestrationActivityRequestRequestBody {
3
+ git_details?: GitDetails;
2
4
  yaml: string;
3
5
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,3 +1,5 @@
1
+ import type { GitDetails } from '../schemas/GitDetails';
1
2
  export interface UpdateOrchestrationActivityRequestRequestBody {
3
+ git_details?: GitDetails;
2
4
  yaml: string;
3
5
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,4 +1,6 @@
1
+ import type { GitDetails } from '../schemas/GitDetails';
1
2
  export interface GetOrchestrationActivityResponseResponse {
3
+ git_details?: GitDetails;
2
4
  /**
3
5
  * Identifier of the orchestration activity
4
6
  */
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -14,7 +14,7 @@ export interface ArtifactTrackerServiceMapping {
14
14
  */
15
15
  lastUpdatedAt?: number;
16
16
  serviceRef?: string;
17
- settingsIdentifier?: string;
17
+ settingsIdentifier: string;
18
18
  ticketConnectorRefOverride?: string;
19
19
  ticketRegexOverride?: string;
20
20
  }
@@ -13,4 +13,8 @@ export interface ArtifactTrackerSettings {
13
13
  * @format int64
14
14
  */
15
15
  lastUpdatedAt?: number;
16
+ /**
17
+ * Human-readable name for the settings.
18
+ */
19
+ name: string;
16
20
  }
@@ -1,6 +1,9 @@
1
1
  export interface CreateArtifactTrackerServiceMappingRequest {
2
2
  artifactPath: string;
3
3
  artifactRegistry?: string;
4
+ /**
5
+ * Optional override for the linked settings' default git connector. Required only when the linked settings has no defaultGitConnectorRef.
6
+ */
4
7
  gitConnectorRefOverride?: string;
5
8
  /**
6
9
  * Optional human-readable identifier. Auto-generated from serviceRef, registry, and artifactPath if omitted.
@@ -10,9 +13,9 @@ export interface CreateArtifactTrackerServiceMappingRequest {
10
13
  k8sNamespaceOverride?: string;
11
14
  serviceRef?: string;
12
15
  /**
13
- * Identifier of the settings to link. Auto-resolved if omitted and exactly one settings exists in scope.
16
+ * Identifier of the settings to link. Required.
14
17
  */
15
- settingsIdentifier?: string;
18
+ settingsIdentifier: string;
16
19
  ticketConnectorRefOverride?: string;
17
20
  ticketRegexOverride?: string;
18
21
  }
@@ -1,8 +1,12 @@
1
1
  export interface CreateArtifactTrackerSettingsRequest {
2
- defaultGitConnectorRef: string;
2
+ defaultGitConnectorRef?: string;
3
3
  defaultK8sConnectorRef?: string;
4
4
  defaultK8sNamespace?: string;
5
5
  defaultTicketConnectorRef?: string;
6
6
  defaultTicketRegex?: string;
7
7
  identifier: string;
8
+ /**
9
+ * Human-readable name for the settings.
10
+ */
11
+ name: string;
8
12
  }
@@ -1,3 +1,4 @@
1
+ import type { TaskExecuteConfig } from '../schemas/TaskExecuteConfig';
1
2
  import type { FailureInfo } from '../schemas/FailureInfo';
2
3
  import type { StringOrBool } from '../schemas/StringOrBool';
3
4
  import type { ExecutionTaskStatus } from '../schemas/ExecutionTaskStatus';
@@ -19,6 +20,7 @@ export interface ExecutionTaskDto {
19
20
  * Description of the task
20
21
  */
21
22
  description?: string;
23
+ execute?: TaskExecuteConfig;
22
24
  /**
23
25
  * Expected duration for the task (e.g., "1d 12h")
24
26
  */
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Git metadata associated with an orchestration activity stored in a remote git repository
3
+ */
4
+ export interface GitDetails {
5
+ /**
6
+ * Base branch to create the new branch from
7
+ */
8
+ base_branch?: string;
9
+ /**
10
+ * Git branch where the activity YAML resides
11
+ */
12
+ branch?: string;
13
+ /**
14
+ * Commit message to use when saving to git
15
+ */
16
+ commit_msg?: string;
17
+ /**
18
+ * Connector reference for the git provider
19
+ */
20
+ connector_ref?: string;
21
+ /**
22
+ * Default branch of the git repository
23
+ */
24
+ default_branch?: string;
25
+ /**
26
+ * Commit SHA of the latest commit on the default branch
27
+ */
28
+ default_branch_commit_sha?: string;
29
+ /**
30
+ * URL to the file on the default branch
31
+ */
32
+ default_branch_file_url?: string;
33
+ /**
34
+ * Whether to create a new branch when saving
35
+ */
36
+ is_new_branch?: boolean;
37
+ /**
38
+ * File path within the git repository
39
+ */
40
+ path?: string;
41
+ /**
42
+ * Git repository URL where the activity YAML is stored
43
+ */
44
+ repo?: string;
45
+ /**
46
+ * Storage type of the activity (e.g. INLINE, REMOTE)
47
+ */
48
+ store_type?: string;
49
+ }
@@ -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 {};
@@ -1,3 +1,4 @@
1
+ import type { TaskExecuteConfig } from '../schemas/TaskExecuteConfig';
1
2
  /**
2
3
  * Manual task configuration
3
4
  */
@@ -10,6 +11,7 @@ export interface ManualTaskYaml {
10
11
  * Expected duration for the task (e.g., "1w", "1d", "2h", "1d 12h")
11
12
  */
12
13
  duration: string;
14
+ execute?: TaskExecuteConfig;
13
15
  /**
14
16
  * Unique identifier for the manual task
15
17
  */
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -26,5 +26,17 @@ export interface OrchestrationActivitySummaryDto {
26
26
  * Name of the orchestration activity
27
27
  */
28
28
  name: string;
29
+ /**
30
+ * File path within the git repository
31
+ */
32
+ path?: string;
33
+ /**
34
+ * Git repository URL where the activity YAML is stored
35
+ */
36
+ repo?: string;
37
+ /**
38
+ * Storage type of the activity (e.g. INLINE, REMOTE)
39
+ */
40
+ store_type?: string;
29
41
  type: CreateOrchestrationActivityRequestType;
30
42
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Status of orchestration execution activities
3
3
  */
4
- export type OrchestrationStatus = 'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED';
4
+ export type OrchestrationStatus = 'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'PIPELINE_WAITING_FOR_USER_ACTION' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Configuration for subprocess execution from a manual task
3
+ */
4
+ export interface TaskExecuteConfig {
5
+ /**
6
+ * Either the literal string "all" (any process can be triggered), the literal string "none" (no process can be triggered), or an array of whitelisted process identifiers.
7
+ *
8
+ */
9
+ processes: 'all' | 'none' | string[];
10
+ }
@@ -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 {};
@@ -1,11 +1,17 @@
1
1
  export interface UpdateArtifactTrackerServiceMappingRequest {
2
2
  artifactPath?: string;
3
3
  artifactRegistry?: string;
4
+ /**
5
+ * Optional override for the linked settings' default git connector. Required only when the linked settings has no defaultGitConnectorRef.
6
+ */
4
7
  gitConnectorRefOverride?: string;
5
8
  k8sConnectorRefOverride?: string;
6
9
  k8sNamespaceOverride?: string;
7
10
  serviceRef?: string;
8
- settingsIdentifier?: string;
11
+ /**
12
+ * Identifier of the settings to link. Required.
13
+ */
14
+ settingsIdentifier: string;
9
15
  ticketConnectorRefOverride?: string;
10
16
  ticketRegexOverride?: string;
11
17
  }
@@ -1,7 +1,11 @@
1
1
  export interface UpsertArtifactTrackerSettingsRequest {
2
- defaultGitConnectorRef: string;
2
+ defaultGitConnectorRef?: string;
3
3
  defaultK8sConnectorRef?: string;
4
4
  defaultK8sNamespace?: string;
5
5
  defaultTicketConnectorRef?: string;
6
6
  defaultTicketRegex?: string;
7
+ /**
8
+ * Human-readable name for the settings.
9
+ */
10
+ name: string;
7
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.65.1-beta.4",
3
+ "version": "0.67.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",