@harnessio/react-chaos-manager-client 1.91.7-beta.0 → 1.91.7-beta.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.
Files changed (80) hide show
  1. package/dist/chaos-manager/src/services/hooks/useDeleteExperimentTemplateMutation.d.ts +2 -1
  2. package/dist/chaos-manager/src/services/hooks/useDeleteExperimentTemplateMutation.js +1 -1
  3. package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +1 -0
  4. package/dist/chaos-manager/src/services/hooks/useImportExperimentTemplateV3Mutation.d.ts +35 -0
  5. package/dist/chaos-manager/src/services/hooks/useImportExperimentTemplateV3Mutation.js +14 -0
  6. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.d.ts +34 -0
  7. package/dist/chaos-manager/src/services/hooks/{useImportProbeTemplateMutation.js → useImportProbeTemplateV3Mutation.js} +4 -4
  8. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +2 -0
  9. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +1 -0
  10. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
  11. package/dist/chaos-manager/src/services/hooks/useListProbeTemplateRevisionsQuery.d.ts +35 -0
  12. package/dist/chaos-manager/src/services/hooks/useListProbeTemplateRevisionsQuery.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
  14. package/dist/chaos-manager/src/services/hooks/useListRiskScanRisksQuery.d.ts +1 -1
  15. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +1 -0
  16. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +1 -0
  17. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +7 -1
  18. package/dist/chaos-manager/src/services/hooks/useMoveExperimentTemplateConfigV3Mutation.d.ts +40 -0
  19. package/dist/chaos-manager/src/services/hooks/useMoveExperimentTemplateConfigV3Mutation.js +14 -0
  20. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.d.ts +40 -0
  21. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.js +14 -0
  22. package/dist/chaos-manager/src/services/hooks/useRefreshExperimentTemplateV3Mutation.d.ts +32 -0
  23. package/dist/chaos-manager/src/services/hooks/useRefreshExperimentTemplateV3Mutation.js +14 -0
  24. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.d.ts +32 -0
  25. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.js +14 -0
  26. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.d.ts +39 -0
  27. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.js +14 -0
  28. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.d.ts +31 -0
  29. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.js +14 -0
  30. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.d.ts +31 -0
  31. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.js +14 -0
  32. package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.d.ts +26 -0
  33. package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.js +14 -0
  34. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +1 -1
  35. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +1 -1
  36. package/dist/chaos-manager/src/services/hooks/useUpdateExperimentTemplateGitMetadataV3Mutation.d.ts +36 -0
  37. package/dist/chaos-manager/src/services/hooks/useUpdateExperimentTemplateGitMetadataV3Mutation.js +14 -0
  38. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.d.ts +36 -0
  39. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.js +14 -0
  40. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.d.ts +32 -0
  41. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.js +14 -0
  42. package/dist/chaos-manager/src/services/index.d.ts +35 -10
  43. package/dist/chaos-manager/src/services/index.js +14 -5
  44. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesExecutionOutput.d.ts +6 -0
  45. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateChaosExperimentTemplate.d.ts +14 -0
  46. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateCreateExperimentTemplateResponse.d.ts +27 -0
  47. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateGetExperimentTemplateResponse.d.ts +27 -0
  48. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateUpdateExperimentTemplateResponse.d.ts +27 -0
  49. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +3 -1
  50. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +12 -1
  51. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +7 -0
  52. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.d.ts +5 -0
  53. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.js +4 -0
  54. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.d.ts +11 -0
  55. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.js +1 -0
  56. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.d.ts +5 -0
  57. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.js +4 -0
  58. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +9 -0
  59. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
  60. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -1
  61. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.d.ts +11 -0
  62. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.js +1 -0
  63. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +6 -0
  64. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +4 -0
  65. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.d.ts +9 -0
  66. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.js +1 -0
  67. package/dist/chaos-manager/src/services/schemas/V3ImportRequest.d.ts +12 -0
  68. package/dist/chaos-manager/src/services/schemas/V3ImportRequest.js +4 -0
  69. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.d.ts +39 -0
  70. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.js +1 -0
  71. package/package.json +1 -1
  72. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.d.ts +0 -32
  73. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.d.ts +0 -35
  74. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.js +0 -14
  75. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.d.ts +0 -29
  76. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.js +0 -14
  77. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.d.ts +0 -34
  78. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.js +0 -14
  79. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.d.ts +0 -36
  80. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.js +0 -14
@@ -1,18 +1,45 @@
1
+ import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
2
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
3
+ import type { EntityDetails } from '../schemas/EntityDetails';
1
4
  import type { TemplateInput } from '../schemas/TemplateInput';
2
5
  import type { ExperimenttemplateSpec } from '../schemas/ExperimenttemplateSpec';
6
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
3
7
  import type { TemplateVariable } from '../schemas/TemplateVariable';
4
8
  export interface ChaosexperimenttemplateGetExperimentTemplateResponse {
5
9
  apiVersion?: string;
10
+ cacheResponse?: ScmCacheInfo;
11
+ connectorRef?: string;
6
12
  correlationID?: string;
7
13
  description?: string;
14
+ /**
15
+ * EntityValidityDetails is set on GET of a REMOTE revision; a file that
16
+ * fails validation is still returned, flagged invalid with the raw file.
17
+ */
18
+ entityValidityDetails?: EntityValidityDetails;
19
+ fallbackBranch?: string;
20
+ filePath?: string;
21
+ /**
22
+ * GitDetails / CacheResponse: platform EntityGitDetails,
23
+ * CacheResponseMetadataDTO.
24
+ */
25
+ gitDetails?: EntityDetails;
26
+ /**
27
+ * GitYAML is the canonical Git file of a REMOTE revision, for the UI's
28
+ * YAML view.
29
+ */
30
+ gitYaml?: string;
8
31
  hubIdentity?: string;
9
32
  identity: string;
10
33
  inputs?: TemplateInput[];
11
34
  isDefault: boolean;
35
+ isHarnessCodeRepo?: boolean;
12
36
  kind?: string;
13
37
  name: string;
38
+ repoName?: string;
39
+ repoUrl?: string;
14
40
  revision: string;
15
41
  spec: ExperimenttemplateSpec;
42
+ storeType?: EntityStoreType;
16
43
  tags?: string[];
17
44
  variables?: TemplateVariable[];
18
45
  }
@@ -1,16 +1,43 @@
1
+ import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
2
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
3
+ import type { EntityDetails } from '../schemas/EntityDetails';
1
4
  import type { ExperimenttemplateSpec } from '../schemas/ExperimenttemplateSpec';
5
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
2
6
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
7
  export interface ChaosexperimenttemplateUpdateExperimentTemplateResponse {
4
8
  apiVersion?: string;
9
+ cacheResponse?: ScmCacheInfo;
10
+ connectorRef?: string;
5
11
  correlationID?: string;
6
12
  description?: string;
13
+ /**
14
+ * EntityValidityDetails is set on GET of a REMOTE revision; a file that
15
+ * fails validation is still returned, flagged invalid with the raw file.
16
+ */
17
+ entityValidityDetails?: EntityValidityDetails;
18
+ fallbackBranch?: string;
19
+ filePath?: string;
20
+ /**
21
+ * GitDetails / CacheResponse: platform EntityGitDetails,
22
+ * CacheResponseMetadataDTO.
23
+ */
24
+ gitDetails?: EntityDetails;
25
+ /**
26
+ * GitYAML is the canonical Git file of a REMOTE revision, for the UI's
27
+ * YAML view.
28
+ */
29
+ gitYaml?: string;
7
30
  hubIdentity?: string;
8
31
  identity: string;
9
32
  isDefault: boolean;
33
+ isHarnessCodeRepo?: boolean;
10
34
  kind?: string;
11
35
  name: string;
36
+ repoName?: string;
37
+ repoUrl?: string;
12
38
  revision: string;
13
39
  spec: ExperimenttemplateSpec;
40
+ storeType?: EntityStoreType;
14
41
  tags?: string[];
15
42
  variables?: TemplateVariable[];
16
43
  }
@@ -3,7 +3,9 @@ export interface Chaoshubv2CreateHubRequest {
3
3
  connectorRef?: string;
4
4
  description?: string;
5
5
  /**
6
- * GitDefaults sets the hub's Git Experience defaults. Optional.
6
+ * GitDefaults sets the hub's Git Experience defaults. Optional. They only
7
+ * prefill the Git location of a new template; templates may use any
8
+ * repository, and changing them later moves no existing file.
7
9
  */
8
10
  gitDefaults?: ChaosHubGitDefaults;
9
11
  identity: string;
@@ -7,7 +7,18 @@ export interface ChaosprobetemplateImportProbeTemplateRequest {
7
7
  */
8
8
  isDefault?: boolean;
9
9
  /**
10
- * Revision of the file; 0 means "take it from the file".
10
+ * Name is optional, but when present protects the caller from importing
11
+ * a different file than the one selected in the UI.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Revision is the internal revision number to import as; 0 assigns one
16
+ * (see importRevision).
11
17
  */
12
18
  revision?: number;
19
+ /**
20
+ * VersionLabel identifies the exact version to import and must equal the
21
+ * file's versionLabel (platform requires templateVersion for import).
22
+ */
23
+ versionLabel?: string;
13
24
  }
@@ -29,4 +29,11 @@ export interface ChaosprobetemplateProbeTemplate {
29
29
  tags?: string[];
30
30
  type?: ProbeProbeType;
31
31
  variables?: TemplateVariable[];
32
+ /**
33
+ * VersionLabel names the revision (platform versionLabel). Optional on
34
+ * create and save-as-new-revision (defaults to the revision number),
35
+ * immutable afterwards. Kept out of the stored `template` YAML so an
36
+ * edited manifest cannot carry an old label into a new revision.
37
+ */
38
+ versionLabel?: string;
32
39
  }
@@ -0,0 +1,5 @@
1
+ export interface ExperimentrunsStopAllExperimentFailure {
2
+ experimentId?: string;
3
+ experimentRunId?: string;
4
+ message?: string;
5
+ }
@@ -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 {};
@@ -0,0 +1,11 @@
1
+ import type { ExperimentrunsStopAllExperimentFailure } from '../schemas/ExperimentrunsStopAllExperimentFailure';
2
+ import type { ExperimentrunsStoppedExperimentRun } from '../schemas/ExperimentrunsStoppedExperimentRun';
3
+ export interface ExperimentrunsStopAllExperimentsResponse {
4
+ /**
5
+ * correlation id is used to debug micro svc communication
6
+ */
7
+ correlationID?: string;
8
+ failed?: ExperimentrunsStopAllExperimentFailure[];
9
+ stopped?: ExperimentrunsStoppedExperimentRun[];
10
+ stoppedCount?: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ export interface ExperimentrunsStoppedExperimentRun {
2
+ experimentId?: string;
3
+ experimentName?: string;
4
+ experimentRunId?: string;
5
+ }
@@ -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 {};
@@ -74,4 +74,13 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprob
74
74
  updatedBy?: string;
75
75
  updatedByUserDetails?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
76
76
  variables?: TemplateVariable[];
77
+ /**
78
+ * VersionLabel is the user-facing name of this revision (platform
79
+ * versionLabel): "v1.1.0", or the revision number when the author gave
80
+ * none. Immutable. Revisions created before the field existed have none
81
+ * stored; EffectiveVersionLabel derives it, so no backfill is needed.
82
+ * Revision stays the internal key (indexes, internal_identity_with_revision,
83
+ * existing references); a REMOTE revision's file is named after the label.
84
+ */
85
+ versionLabel?: string;
77
86
  }
@@ -6,6 +6,13 @@ export interface RiskRiskRuleSpec {
6
6
  * Faults lists the chaos faults that can prove a risk raised by this rule.
7
7
  */
8
8
  faults?: string[];
9
+ /**
10
+ * IncludeInPassiveScan opts a custom rule into passive scans. The internal
11
+ * risk-rule list and the code-repository scan both skip a custom rule when
12
+ * this is missing or false. System rules stay eligible for their data
13
+ * source and ignore this flag.
14
+ */
15
+ includeInPassiveScan?: boolean;
9
16
  isSystem?: boolean;
10
17
  prompt?: RiskRiskRulePrompt;
11
18
  }
@@ -1 +1 @@
1
- export type ScannedrisksRiskStatus = 'Ignored' | 'InProgress' | 'Open' | 'Resolved';
1
+ export type ScannedrisksRiskStatus = 'Ignored' | 'InProgress' | 'Invalid' | 'Open' | 'Resolved';
@@ -0,0 +1,11 @@
1
+ import type { ScannedrisksRiskStatus } from '../schemas/ScannedrisksRiskStatus';
2
+ export interface ScannedrisksRiskStatusDetails {
3
+ /**
4
+ * Mitigated is the user's confirmation, required to resolve a risk.
5
+ */
6
+ mitigated?: boolean;
7
+ note?: string;
8
+ previousStatus?: ScannedrisksRiskStatus;
9
+ updatedAt?: number;
10
+ updatedBy?: string;
11
+ }
@@ -2,6 +2,7 @@ import type { RiskCategory } from '../schemas/RiskCategory';
2
2
  import type { RiskSeverity } from '../schemas/RiskSeverity';
3
3
  import type { RiskScanType } from '../schemas/RiskScanType';
4
4
  import type { ScannedrisksRiskStatus } from '../schemas/ScannedrisksRiskStatus';
5
+ import type { ScannedrisksRiskStatusDetails } from '../schemas/ScannedrisksRiskStatusDetails';
5
6
  import type { RiskTargetService } from '../schemas/RiskTargetService';
6
7
  import type { ScannedrisksValidationType } from '../schemas/ScannedrisksValidationType';
7
8
  export interface ScannedrisksScannedRiskSpec {
@@ -39,6 +40,11 @@ export interface ScannedrisksScannedRiskSpec {
39
40
  */
40
41
  sources?: RiskScanType[];
41
42
  status?: ScannedrisksRiskStatus;
43
+ /**
44
+ * StatusDetails is set by the last user status change. A later detection
45
+ * that reopens the risk keeps it and records the status it reopened from.
46
+ */
47
+ statusDetails?: ScannedrisksRiskStatusDetails;
42
48
  targetService?: RiskTargetService;
43
49
  /**
44
50
  * ValidationType reflects only the most recently written occurrence's
@@ -46,6 +46,10 @@ export interface ScannedrisksServiceRiskSummaryQuery {
46
46
  * project id to access the resource
47
47
  */
48
48
  projectIdentifier?: string;
49
+ /**
50
+ * Search is a case-insensitive substring match on the target service name.
51
+ */
52
+ search?: string;
49
53
  /**
50
54
  * Service type filter
51
55
  */
@@ -0,0 +1,9 @@
1
+ import type { ScannedrisksRiskStatus } from '../schemas/ScannedrisksRiskStatus';
2
+ export interface ScannedrisksUpdateStatusRequest {
3
+ /**
4
+ * Mitigated confirms the risk is mitigated. Required to be true for Resolved.
5
+ */
6
+ mitigated?: boolean;
7
+ note?: string;
8
+ status: ScannedrisksRiskStatus;
9
+ }
@@ -0,0 +1,12 @@
1
+ export interface V3ImportRequest {
2
+ identity?: string;
3
+ /**
4
+ * Name is optional. When supplied, it must match the Git file.
5
+ */
6
+ name?: string;
7
+ /**
8
+ * VersionLabel identifies the exact version to import and must equal the
9
+ * file's versionLabel (platform requires templateVersion for import).
10
+ */
11
+ versionLabel?: string;
12
+ }
@@ -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 {};
@@ -0,0 +1,39 @@
1
+ import type { EntityDetails } from '../schemas/EntityDetails';
2
+ import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
3
+ import type { TemplateInput } from '../schemas/TemplateInput';
4
+ import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
5
+ import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
6
+ import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
7
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
8
+ import type { ProbeProbeType } from '../schemas/ProbeProbeType';
9
+ import type { TemplateVariable } from '../schemas/TemplateVariable';
10
+ export interface V3SaveRevisionRequest {
11
+ description?: string;
12
+ gitDetails?: EntityDetails;
13
+ hubRef?: string;
14
+ identity?: string;
15
+ infrastructureType?: ProbeInfrastructureType;
16
+ inputs?: TemplateInput[];
17
+ isDefault?: boolean;
18
+ isRemoved?: boolean;
19
+ name: string;
20
+ probeProperties?: ProbeProbeTemplateProperties;
21
+ revision?: number;
22
+ ruleDetails?: ProbeRuleDetails;
23
+ runProperties?: ProbeProbeTemplateRunProperties;
24
+ /**
25
+ * Response-only Git Experience fields; never part of the internal YAML
26
+ * encoding or the Git file.
27
+ */
28
+ storeType?: EntityStoreType;
29
+ tags?: string[];
30
+ type?: ProbeProbeType;
31
+ variables?: TemplateVariable[];
32
+ /**
33
+ * VersionLabel names the revision (platform versionLabel). Optional on
34
+ * create and save-as-new-revision (defaults to the revision number),
35
+ * immutable afterwards. Kept out of the stored `template` YAML so an
36
+ * edited manifest cannot carry an old label into a new revision.
37
+ */
38
+ versionLabel?: string;
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.91.7-beta.0",
3
+ "version": "1.91.7-beta.2",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,32 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import type { ChaosprobetemplateImportProbeTemplateRequest } from '../schemas/ChaosprobetemplateImportProbeTemplateRequest';
5
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
- export interface ImportProbeTemplateMutationQueryParams {
7
- accountIdentifier: string;
8
- organizationIdentifier: string;
9
- projectIdentifier: string;
10
- connectorRef?: string;
11
- repoName?: string;
12
- isHarnessCodeRepo?: boolean;
13
- branch?: string;
14
- filePath: string;
15
- }
16
- export type ImportProbeTemplateRequestBody = ChaosprobetemplateImportProbeTemplateRequest;
17
- export type ImportProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
18
- export type ImportProbeTemplateErrorResponse = ApiRestError;
19
- export interface ImportProbeTemplateProps extends Omit<FetcherOptions<ImportProbeTemplateMutationQueryParams, ImportProbeTemplateRequestBody>, 'url'> {
20
- queryParams: ImportProbeTemplateMutationQueryParams;
21
- body: ImportProbeTemplateRequestBody;
22
- }
23
- export interface ImportProbeTemplateResponseContainer {
24
- body: ImportProbeTemplateOkResponse;
25
- headers: Headers;
26
- }
27
- export declare function importProbeTemplate(props: ImportProbeTemplateProps): Promise<ImportProbeTemplateResponseContainer>;
28
- export type ImportProbeTemplateMutationProps<T extends keyof ImportProbeTemplateProps> = Omit<ImportProbeTemplateProps, T> & Partial<Pick<ImportProbeTemplateProps, T>>;
29
- /**
30
- * Creates a probe template revision from an existing file in Git. Nothing is committed.
31
- */
32
- export declare function useImportProbeTemplateMutation<T extends keyof ImportProbeTemplateProps>(props: Pick<Partial<ImportProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<ImportProbeTemplateResponseContainer, ImportProbeTemplateErrorResponse, ImportProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeTemplateResponseContainer, ApiRestError, ImportProbeTemplateMutationProps<T>, unknown>;
@@ -1,35 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface MoveProbeTemplateConfigMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface MoveProbeTemplateConfigMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- hubIdentity: string;
14
- moveConfigType: string;
15
- connectorRef?: string;
16
- repoName?: string;
17
- branch?: string;
18
- filePath?: string;
19
- commitMsg?: string;
20
- }
21
- export type MoveProbeTemplateConfigOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
22
- export type MoveProbeTemplateConfigErrorResponse = ApiRestError;
23
- export interface MoveProbeTemplateConfigProps extends MoveProbeTemplateConfigMutationPathParams, Omit<FetcherOptions<MoveProbeTemplateConfigMutationQueryParams, unknown>, 'url'> {
24
- queryParams: MoveProbeTemplateConfigMutationQueryParams;
25
- }
26
- export interface MoveProbeTemplateConfigResponseContainer {
27
- body: MoveProbeTemplateConfigOkResponse;
28
- headers: Headers;
29
- }
30
- export declare function moveProbeTemplateConfig(props: MoveProbeTemplateConfigProps): Promise<MoveProbeTemplateConfigResponseContainer>;
31
- export type MoveProbeTemplateConfigMutationProps<T extends keyof MoveProbeTemplateConfigProps> = Omit<MoveProbeTemplateConfigProps, T> & Partial<Pick<MoveProbeTemplateConfigProps, T>>;
32
- /**
33
- * Moves a probe template revision between Harness and Git
34
- */
35
- export declare function useMoveProbeTemplateConfigMutation<T extends keyof MoveProbeTemplateConfigProps>(props: Pick<Partial<MoveProbeTemplateConfigProps>, T>, options?: Omit<UseMutationOptions<MoveProbeTemplateConfigResponseContainer, MoveProbeTemplateConfigErrorResponse, MoveProbeTemplateConfigMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProbeTemplateConfigResponseContainer, ApiRestError, MoveProbeTemplateConfigMutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function moveProbeTemplateConfig(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/move-config`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Moves a probe template revision between Harness and Git
11
- */
12
- export function useMoveProbeTemplateConfigMutation(props, options) {
13
- return useMutation((mutateProps) => moveProbeTemplateConfig(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,29 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface RefreshProbeTemplateMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface RefreshProbeTemplateMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- hubIdentity: string;
14
- }
15
- export type RefreshProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
16
- export type RefreshProbeTemplateErrorResponse = ApiRestError;
17
- export interface RefreshProbeTemplateProps extends RefreshProbeTemplateMutationPathParams, Omit<FetcherOptions<RefreshProbeTemplateMutationQueryParams, unknown>, 'url'> {
18
- queryParams: RefreshProbeTemplateMutationQueryParams;
19
- }
20
- export interface RefreshProbeTemplateResponseContainer {
21
- body: RefreshProbeTemplateOkResponse;
22
- headers: Headers;
23
- }
24
- export declare function refreshProbeTemplate(props: RefreshProbeTemplateProps): Promise<RefreshProbeTemplateResponseContainer>;
25
- export type RefreshProbeTemplateMutationProps<T extends keyof RefreshProbeTemplateProps> = Omit<RefreshProbeTemplateProps, T> & Partial<Pick<RefreshProbeTemplateProps, T>>;
26
- /**
27
- * Reads the revision from the Git provider bypassing git-sync's cache, updates Harness's copy and returns it.
28
- */
29
- export declare function useRefreshProbeTemplateMutation<T extends keyof RefreshProbeTemplateProps>(props: Pick<Partial<RefreshProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<RefreshProbeTemplateResponseContainer, RefreshProbeTemplateErrorResponse, RefreshProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshProbeTemplateResponseContainer, ApiRestError, RefreshProbeTemplateMutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function refreshProbeTemplate(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Reads the revision from the Git provider bypassing git-sync's cache, updates Harness's copy and returns it.
11
- */
12
- export function useRefreshProbeTemplateMutation(props, options) {
13
- return useMutation((mutateProps) => refreshProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,34 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface UpdateProbeTemplateGitMetadataMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface UpdateProbeTemplateGitMetadataMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- hubIdentity: string;
14
- connectorRef?: string;
15
- repoName?: string;
16
- isHarnessCodeRepo?: boolean;
17
- filePath?: string;
18
- branch?: string;
19
- }
20
- export type UpdateProbeTemplateGitMetadataOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
21
- export type UpdateProbeTemplateGitMetadataErrorResponse = ApiRestError;
22
- export interface UpdateProbeTemplateGitMetadataProps extends UpdateProbeTemplateGitMetadataMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateGitMetadataMutationQueryParams, unknown>, 'url'> {
23
- queryParams: UpdateProbeTemplateGitMetadataMutationQueryParams;
24
- }
25
- export interface UpdateProbeTemplateGitMetadataResponseContainer {
26
- body: UpdateProbeTemplateGitMetadataOkResponse;
27
- headers: Headers;
28
- }
29
- export declare function updateProbeTemplateGitMetadata(props: UpdateProbeTemplateGitMetadataProps): Promise<UpdateProbeTemplateGitMetadataResponseContainer>;
30
- export type UpdateProbeTemplateGitMetadataMutationProps<T extends keyof UpdateProbeTemplateGitMetadataProps> = Omit<UpdateProbeTemplateGitMetadataProps, T> & Partial<Pick<UpdateProbeTemplateGitMetadataProps, T>>;
31
- /**
32
- * Points a REMOTE revision at another connector, repository or file path. The file must already exist there and describe this revision.
33
- */
34
- export declare function useUpdateProbeTemplateGitMetadataMutation<T extends keyof UpdateProbeTemplateGitMetadataProps>(props: Pick<Partial<UpdateProbeTemplateGitMetadataProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateGitMetadataResponseContainer, UpdateProbeTemplateGitMetadataErrorResponse, UpdateProbeTemplateGitMetadataMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateGitMetadataResponseContainer, ApiRestError, UpdateProbeTemplateGitMetadataMutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function updateProbeTemplateGitMetadata(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/git-metadata`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Points a REMOTE revision at another connector, repository or file path. The file must already exist there and describe this revision.
11
- */
12
- export function useUpdateProbeTemplateGitMetadataMutation(props, options) {
13
- return useMutation((mutateProps) => updateProbeTemplateGitMetadata(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,36 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
- import type { ApiRestError } from '../schemas/ApiRestError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface UpdateProbeTemplateRevisionMutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface UpdateProbeTemplateRevisionMutationQueryParams {
10
- accountIdentifier: string;
11
- organizationIdentifier: string;
12
- projectIdentifier: string;
13
- branch?: string;
14
- commitMsg?: string;
15
- isNewBranch?: boolean;
16
- baseBranch?: string;
17
- lastObjectId?: string;
18
- lastCommitId?: string;
19
- }
20
- export type UpdateProbeTemplateRevisionRequestBody = ChaosprobetemplateProbeTemplate;
21
- export type UpdateProbeTemplateRevisionOkResponse = ChaosprobetemplateProbeTemplate;
22
- export type UpdateProbeTemplateRevisionErrorResponse = ApiRestError;
23
- export interface UpdateProbeTemplateRevisionProps extends UpdateProbeTemplateRevisionMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateRevisionMutationQueryParams, UpdateProbeTemplateRevisionRequestBody>, 'url'> {
24
- queryParams: UpdateProbeTemplateRevisionMutationQueryParams;
25
- body: UpdateProbeTemplateRevisionRequestBody;
26
- }
27
- export interface UpdateProbeTemplateRevisionResponseContainer {
28
- body: UpdateProbeTemplateRevisionOkResponse;
29
- headers: Headers;
30
- }
31
- export declare function updateProbeTemplateRevision(props: UpdateProbeTemplateRevisionProps): Promise<UpdateProbeTemplateRevisionResponseContainer>;
32
- export type UpdateProbeTemplateRevisionMutationProps<T extends keyof UpdateProbeTemplateRevisionProps> = Omit<UpdateProbeTemplateRevisionProps, T> & Partial<Pick<UpdateProbeTemplateRevisionProps, T>>;
33
- /**
34
- * Saves changes to an existing revision. For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required; a newer version in Git returns 409.
35
- */
36
- export declare function useUpdateProbeTemplateRevisionMutation<T extends keyof UpdateProbeTemplateRevisionProps>(props: Pick<Partial<UpdateProbeTemplateRevisionProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateRevisionResponseContainer, UpdateProbeTemplateRevisionErrorResponse, UpdateProbeTemplateRevisionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateRevisionResponseContainer, ApiRestError, UpdateProbeTemplateRevisionMutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function updateProbeTemplateRevision(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Saves changes to an existing revision. For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required; a newer version in Git returns 409.
11
- */
12
- export function useUpdateProbeTemplateRevisionMutation(props, options) {
13
- return useMutation((mutateProps) => updateProbeTemplateRevision(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }