@harnessio/react-rmg-service-client 0.69.0-beta.2 → 0.69.0-beta.3

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.
@@ -10,5 +10,5 @@ export interface ActivityInputYaml {
10
10
  input?: string;
11
11
  with?: {
12
12
  [key: string]: string;
13
- } & ReleaseInputYaml;
13
+ } | ReleaseInputYaml;
14
14
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Flexible type that accepts any JSON value (string, number, boolean, object, or array)
3
3
  */
4
- export type AnyValue = string & number & boolean & {
4
+ export type AnyValue = string | number | boolean | {
5
5
  [key: string]: any;
6
- } & Array<{
6
+ } | Array<{
7
7
  [key: string]: any;
8
8
  }>;
@@ -12,4 +12,6 @@ import type { CustomArtifactMetadata } from '../schemas/CustomArtifactMetadata';
12
12
  * Use the discriminated schemas below to determine which fields are needed per type.
13
13
  *
14
14
  */
15
- export type ArtifactTagMetadata = DockerRegistryArtifactMetadata & EcrArtifactMetadata & GcrArtifactMetadata & AcrArtifactMetadata & GoogleArtifactRegistryMetadata & Nexus3RegistryArtifactMetadata & ArtifactoryRegistryMetadata & GithubPackageRegistryMetadata & CustomArtifactMetadata;
15
+ export type ArtifactTagMetadata = (DockerRegistryArtifactMetadata | EcrArtifactMetadata | GcrArtifactMetadata | AcrArtifactMetadata | GoogleArtifactRegistryMetadata | Nexus3RegistryArtifactMetadata | ArtifactoryRegistryMetadata | GithubPackageRegistryMetadata | CustomArtifactMetadata) & {
16
+ [key: string]: any;
17
+ };
@@ -7,4 +7,6 @@ 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
- export type InputVariable = PrimitiveInputVariable & ServiceInputVariable & MultiServiceInputVariable & EnvironmentInputVariable & MultiEnvironmentInputVariable & InfrastructureInputVariable & MultiInfrastructureInputVariable & ConnectorInputVariable & ArtifactTagInputVariable;
10
+ export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable | ArtifactTagInputVariable) & {
11
+ [key: string]: any;
12
+ };
@@ -23,13 +23,13 @@ export interface ManualTaskYaml {
23
23
  /**
24
24
  * Whether this task is required, it can be boolean or string as we support expressions
25
25
  */
26
- required: boolean & string;
26
+ required: boolean | string;
27
27
  /**
28
28
  * List of user groups or references, it can be string or array of strings as we support expressions
29
29
  */
30
- userGroups: string & string[];
30
+ userGroups: string | string[];
31
31
  /**
32
32
  * List of user emails or references, it can be string or array of strings as we support expressions
33
33
  */
34
- users: string & string[];
34
+ users: string | string[];
35
35
  }
@@ -41,6 +41,6 @@ export interface OrchestrationActivityWebhookYaml {
41
41
  /**
42
42
  * User groups that can approve queued signals
43
43
  */
44
- userGroups?: string & string[];
44
+ userGroups?: string | string[];
45
45
  };
46
46
  }
@@ -2,7 +2,7 @@
2
2
  * Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and an optional `description` (new format).
3
3
  *
4
4
  */
5
- export type OutputVariable = string & {
5
+ export type OutputVariable = string | {
6
6
  /**
7
7
  * Human-readable description of the output variable.
8
8
  */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Flexible type that accepts either a boolean or a string
3
3
  */
4
- export type StringOrBool = boolean & string;
4
+ export type StringOrBool = boolean | string;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Flexible type that accepts either a single string or an array of strings for user references
3
3
  */
4
- export type StringOrStringArray = string & string[];
4
+ export type StringOrStringArray = string | string[];
@@ -6,5 +6,5 @@ export interface TaskExecuteConfig {
6
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
7
  *
8
8
  */
9
- processes: 'all' | ('none' & string[]);
9
+ processes: 'all' | 'none' | string[];
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.69.0-beta.2",
3
+ "version": "0.69.0-beta.3",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -27,5 +27,8 @@
27
27
  "build": "yarn generate && tsc",
28
28
  "generate": "oats import --config='./oats.config.ts'",
29
29
  "fmt": "prettier --write ./index.ts"
30
+ },
31
+ "dependencies": {
32
+ "@harnessio/oats-cli": "^3.0.0"
30
33
  }
31
34
  }