@harnessio/react-chaos-manager-client 0.16.0 → 0.16.2

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.
@@ -485,6 +485,7 @@ export type { K8sfaultHostPathVolume } from './schemas/K8sfaultHostPathVolume';
485
485
  export type { K8sfaultK8SFault } from './schemas/K8sfaultK8SFault';
486
486
  export type { K8sfaultK8SFaultSpec } from './schemas/K8sfaultK8SFaultSpec';
487
487
  export type { K8sfaultK8STarget } from './schemas/K8sfaultK8STarget';
488
+ export type { K8sfaultResourceRequirements } from './schemas/K8sfaultResourceRequirements';
488
489
  export type { K8sfaultSecretVolume } from './schemas/K8sfaultSecretVolume';
489
490
  export type { K8sfaultTarget } from './schemas/K8sfaultTarget';
490
491
  export type { K8sinfraGetInfraTokenResponse } from './schemas/K8sinfraGetInfraTokenResponse';
@@ -3,6 +3,6 @@ import type { ChaoshubresourcesChaosHubResource } from '../schemas/Chaoshubresou
3
3
  import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
4
4
  export interface ChaoshubListFaultsResponse {
5
5
  categoryCount?: ChaoshubFaultCategoryCount[];
6
- faults?: ChaoshubresourcesChaosHubResource[];
6
+ data?: ChaoshubresourcesChaosHubResource[];
7
7
  pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
8
8
  }
@@ -92,6 +92,10 @@ export interface ChaoshubresourcesChaosHubResource {
92
92
  * Type: fault or experiment or probes
93
93
  */
94
94
  resourceType?: string;
95
+ /**
96
+ * tags for the resource
97
+ */
98
+ tags?: string[];
95
99
  /**
96
100
  * template yaml in encoded form (template.yaml)
97
101
  */
@@ -5,7 +5,7 @@ import type { K8sfaultHostPathVolume } from '../schemas/K8sfaultHostPathVolume';
5
5
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
6
6
  import type { K8sfaultChaosParameter } from '../schemas/K8sfaultChaosParameter';
7
7
  import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
8
- import type { V1ResourceRequirements } from '../schemas/V1ResourceRequirements';
8
+ import type { K8sfaultResourceRequirements } from '../schemas/K8sfaultResourceRequirements';
9
9
  import type { K8sfaultSecretVolume } from '../schemas/K8sfaultSecretVolume';
10
10
  import type { V1Toleration } from '../schemas/V1Toleration';
11
11
  export interface K8sfaultChaosSpec {
@@ -33,7 +33,7 @@ export interface K8sfaultChaosSpec {
33
33
  };
34
34
  params?: K8sfaultChaosParameter[];
35
35
  podSecurityContext?: V1PodSecurityContext;
36
- resourceRequirements?: V1ResourceRequirements;
36
+ resourceRequirements?: K8sfaultResourceRequirements;
37
37
  secretVolume?: K8sfaultSecretVolume[];
38
38
  toleration?: V1Toleration;
39
39
  }
@@ -0,0 +1,8 @@
1
+ export interface K8sfaultResourceRequirements {
2
+ limits?: {
3
+ [key: string]: string;
4
+ };
5
+ requests?: {
6
+ [key: string]: string;
7
+ };
8
+ }
@@ -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,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
2
+ Format?: string;
3
3
  }
@@ -9,6 +9,7 @@ export interface TypesGetProbeResponse {
9
9
  createdAt?: number;
10
10
  createdBy?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
11
11
  description?: string;
12
+ identity?: string;
12
13
  infrastructureType?: TypesInfrastructureType;
13
14
  isEnabled?: boolean;
14
15
  name?: string;
@@ -1,7 +1,7 @@
1
- import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
2
1
  import type { TypesGetProbeResponse } from '../schemas/TypesGetProbeResponse';
2
+ import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
3
3
  export interface TypesListProbeResponse {
4
+ data?: TypesGetProbeResponse[];
4
5
  pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
5
- probes?: TypesGetProbeResponse[];
6
6
  totalNoOfProbes?: number;
7
7
  }
@@ -6,6 +6,7 @@ import type { TypesProbeType } from '../schemas/TypesProbeType';
6
6
  import type { TemplateVariable } from '../schemas/TemplateVariable';
7
7
  export interface TypesProbeRequest {
8
8
  description?: string;
9
+ identity?: string;
9
10
  infrastructureType?: TypesInfrastructureType;
10
11
  isEnabled?: boolean;
11
12
  name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "keywords": [],
25
25
  "scripts": {
26
26
  "prebuild": "rimraf dist",
27
- "build": "yarn generate && tsc",
27
+ "build": "rm -rf src/services && yarn generate && tsc",
28
28
  "generate": "oats import --config='./oats.config.ts'",
29
29
  "fmt": "prettier --write ./index.ts"
30
30
  }