@harnessio/react-rmg-service-client 0.66.0 → 0.67.1-beta.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 (85) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetIntegrationExecutionQuery.d.ts +25 -0
  2. package/dist/rmg-service/src/services/hooks/useGetIntegrationExecutionQuery.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityQuery.d.ts +1 -0
  4. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivityOutputsV2Query.d.ts +28 -0
  5. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivityOutputsV2Query.js +20 -0
  6. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseOutputsV2Query.d.ts +27 -0
  7. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseOutputsV2Query.js +19 -0
  8. package/dist/rmg-service/src/services/hooks/useGetReleaseChangesetFacetsQuery.d.ts +29 -0
  9. package/dist/rmg-service/src/services/hooks/useGetReleaseChangesetFacetsQuery.js +14 -0
  10. package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceMappingsQuery.d.ts +1 -0
  11. package/dist/rmg-service/src/services/hooks/useListIntegrationExecutionsQuery.d.ts +31 -0
  12. package/dist/rmg-service/src/services/hooks/useListIntegrationExecutionsQuery.js +14 -0
  13. package/dist/rmg-service/src/services/hooks/useListReleaseChangesetCommitsQuery.d.ts +34 -0
  14. package/dist/rmg-service/src/services/hooks/useListReleaseChangesetCommitsQuery.js +14 -0
  15. package/dist/rmg-service/src/services/hooks/useListReleaseChangesetsQuery.d.ts +39 -0
  16. package/dist/rmg-service/src/services/hooks/useListReleaseChangesetsQuery.js +14 -0
  17. package/dist/rmg-service/src/services/hooks/usePostWebhookQueueActionMutation.d.ts +28 -0
  18. package/dist/rmg-service/src/services/hooks/usePostWebhookQueueActionMutation.js +14 -0
  19. package/dist/rmg-service/src/services/hooks/useRetryReleaseChangesetMutation.d.ts +26 -0
  20. package/dist/rmg-service/src/services/hooks/useRetryReleaseChangesetMutation.js +14 -0
  21. package/dist/rmg-service/src/services/hooks/useTriggerIntegrationExecutionMutation.d.ts +25 -0
  22. package/dist/rmg-service/src/services/hooks/useTriggerIntegrationExecutionMutation.js +14 -0
  23. package/dist/rmg-service/src/services/hooks/useUpdateReleaseChangesetTagsMutation.d.ts +29 -0
  24. package/dist/rmg-service/src/services/hooks/useUpdateReleaseChangesetTagsMutation.js +14 -0
  25. package/dist/rmg-service/src/services/index.d.ts +43 -0
  26. package/dist/rmg-service/src/services/index.js +11 -0
  27. package/dist/rmg-service/src/services/requestBodies/CreateOrchestrationActivityRequestRequestBody.d.ts +2 -0
  28. package/dist/rmg-service/src/services/requestBodies/CreateOrchestrationActivityRequestRequestBody.js +0 -3
  29. package/dist/rmg-service/src/services/requestBodies/UpdateOrchestrationActivityRequestRequestBody.d.ts +2 -0
  30. package/dist/rmg-service/src/services/requestBodies/UpdateOrchestrationActivityRequestRequestBody.js +0 -3
  31. package/dist/rmg-service/src/services/requestBodies/WebhookQueueActionRequestRequestBody.d.ts +2 -0
  32. package/dist/rmg-service/src/services/requestBodies/WebhookQueueActionRequestRequestBody.js +1 -0
  33. package/dist/rmg-service/src/services/responses/ExecutionOutputsV2ResponseResponse.d.ts +7 -0
  34. package/dist/rmg-service/src/services/responses/ExecutionOutputsV2ResponseResponse.js +1 -0
  35. package/dist/rmg-service/src/services/responses/GetOrchestrationActivityResponseResponse.d.ts +2 -0
  36. package/dist/rmg-service/src/services/responses/GetOrchestrationActivityResponseResponse.js +0 -3
  37. package/dist/rmg-service/src/services/responses/WebhookQueueActionResponseResponse.d.ts +2 -0
  38. package/dist/rmg-service/src/services/responses/WebhookQueueActionResponseResponse.js +1 -0
  39. package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMapping.d.ts +5 -1
  40. package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettings.d.ts +8 -0
  41. package/dist/rmg-service/src/services/schemas/Changeset.d.ts +21 -0
  42. package/dist/rmg-service/src/services/schemas/Changeset.js +4 -0
  43. package/dist/rmg-service/src/services/schemas/ChangesetCommit.d.ts +22 -0
  44. package/dist/rmg-service/src/services/schemas/ChangesetCommit.js +1 -0
  45. package/dist/rmg-service/src/services/schemas/ChangesetCommitList.d.ts +8 -0
  46. package/dist/rmg-service/src/services/schemas/ChangesetCommitList.js +1 -0
  47. package/dist/rmg-service/src/services/schemas/ChangesetCommitTicket.d.ts +7 -0
  48. package/dist/rmg-service/src/services/schemas/ChangesetCommitTicket.js +4 -0
  49. package/dist/rmg-service/src/services/schemas/ChangesetFacets.d.ts +6 -0
  50. package/dist/rmg-service/src/services/schemas/ChangesetFacets.js +4 -0
  51. package/dist/rmg-service/src/services/schemas/ChangesetList.d.ts +8 -0
  52. package/dist/rmg-service/src/services/schemas/ChangesetList.js +1 -0
  53. package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.d.ts +9 -2
  54. package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerSettingsRequest.d.ts +9 -1
  55. package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityRequestType.d.ts +1 -1
  56. package/dist/rmg-service/src/services/schemas/ExecutionOutputGroupDto.d.ts +10 -0
  57. package/dist/rmg-service/src/services/schemas/ExecutionOutputGroupDto.js +1 -0
  58. package/dist/rmg-service/src/services/schemas/ExecutionOutputV2Dto.d.ts +13 -0
  59. package/dist/rmg-service/src/services/schemas/ExecutionOutputV2Dto.js +4 -0
  60. package/dist/rmg-service/src/services/schemas/GitDetails.d.ts +49 -0
  61. package/dist/rmg-service/src/services/schemas/GitDetails.js +4 -0
  62. package/dist/rmg-service/src/services/schemas/IntegrationExecution.d.ts +20 -0
  63. package/dist/rmg-service/src/services/schemas/IntegrationExecution.js +4 -0
  64. package/dist/rmg-service/src/services/schemas/IntegrationExecutionList.d.ts +11 -0
  65. package/dist/rmg-service/src/services/schemas/IntegrationExecutionList.js +1 -0
  66. package/dist/rmg-service/src/services/schemas/MatchedSignalExecutionSummaryDto.d.ts +4 -0
  67. package/dist/rmg-service/src/services/schemas/OrchestrationActivitySummaryDto.d.ts +12 -0
  68. package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionRequest.d.ts +8 -0
  69. package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionRequest.js +4 -0
  70. package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionResponse.d.ts +3 -0
  71. package/dist/rmg-service/src/services/schemas/TriggerIntegrationExecutionResponse.js +4 -0
  72. package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts +11 -1
  73. package/dist/rmg-service/src/services/schemas/UpdateChangesetTagsRequest.d.ts +4 -0
  74. package/dist/rmg-service/src/services/schemas/UpdateChangesetTagsRequest.js +4 -0
  75. package/dist/rmg-service/src/services/schemas/UpsertArtifactTrackerSettingsRequest.d.ts +9 -1
  76. package/dist/rmg-service/src/services/schemas/WebhookQueueActionRequest.d.ts +18 -0
  77. package/dist/rmg-service/src/services/schemas/WebhookQueueActionRequest.js +4 -0
  78. package/dist/rmg-service/src/services/schemas/WebhookQueueActionResponse.d.ts +10 -0
  79. package/dist/rmg-service/src/services/schemas/WebhookQueueActionResponse.js +4 -0
  80. package/dist/rmg-service/src/services/schemas/WebhookSignalArtifacts.d.ts +16 -0
  81. package/dist/rmg-service/src/services/schemas/WebhookSignalArtifacts.js +1 -0
  82. package/dist/rmg-service/src/services/schemas/WebhookSignalImage.d.ts +9 -0
  83. package/dist/rmg-service/src/services/schemas/WebhookSignalImage.js +4 -0
  84. package/dist/rmg-service/src/services/schemas/WebhookSignalRequest.d.ts +2 -0
  85. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationExecution } from '../schemas/IntegrationExecution';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetIntegrationExecutionQueryPathParams {
7
+ executionId: string;
8
+ }
9
+ export interface GetIntegrationExecutionQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface GetIntegrationExecutionQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetIntegrationExecutionOkResponse = ResponseWithPagination<IntegrationExecution>;
17
+ export type GetIntegrationExecutionErrorResponse = ErrorResponseResponse;
18
+ export interface GetIntegrationExecutionProps extends GetIntegrationExecutionQueryPathParams, Omit<FetcherOptions<GetIntegrationExecutionQueryQueryParams, unknown, GetIntegrationExecutionQueryHeaderParams>, 'url'> {
19
+ queryParams: GetIntegrationExecutionQueryQueryParams;
20
+ }
21
+ export declare function getIntegrationExecution(props: GetIntegrationExecutionProps): Promise<GetIntegrationExecutionOkResponse>;
22
+ /**
23
+ * Get a single integration execution
24
+ */
25
+ export declare function useGetIntegrationExecutionQuery(props: GetIntegrationExecutionProps, options?: Omit<UseQueryOptions<GetIntegrationExecutionOkResponse, GetIntegrationExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationExecutionOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
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 getIntegrationExecution(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integration/executions/${props.executionId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a single integration execution
11
+ */
12
+ export function useGetIntegrationExecutionQuery(props, options) {
13
+ return useQuery(['getIntegrationExecution', props.executionId, props.queryParams], ({ signal }) => getIntegrationExecution(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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;
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionOutputsV2ResponseResponse } from '../responses/ExecutionOutputsV2ResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionActivityOutputsV2QueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ activityIdentifier: string;
10
+ }
11
+ export interface GetOrchestrationExecutionActivityOutputsV2QueryQueryParams {
12
+ activityExecutionId?: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export interface GetOrchestrationExecutionActivityOutputsV2QueryHeaderParams {
17
+ 'Harness-Account': string;
18
+ }
19
+ export type GetOrchestrationExecutionActivityOutputsV2OkResponse = ResponseWithPagination<ExecutionOutputsV2ResponseResponse>;
20
+ export type GetOrchestrationExecutionActivityOutputsV2ErrorResponse = ErrorResponseResponse;
21
+ export interface GetOrchestrationExecutionActivityOutputsV2Props extends GetOrchestrationExecutionActivityOutputsV2QueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivityOutputsV2QueryQueryParams, unknown, GetOrchestrationExecutionActivityOutputsV2QueryHeaderParams>, 'url'> {
22
+ queryParams: GetOrchestrationExecutionActivityOutputsV2QueryQueryParams;
23
+ }
24
+ export declare function getOrchestrationExecutionActivityOutputsV2(props: GetOrchestrationExecutionActivityOutputsV2Props): Promise<GetOrchestrationExecutionActivityOutputsV2OkResponse>;
25
+ /**
26
+ * Retrieve grouped output values for a specific activity execution (v2 format)
27
+ */
28
+ export declare function useGetOrchestrationExecutionActivityOutputsV2Query(props: GetOrchestrationExecutionActivityOutputsV2Props, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivityOutputsV2OkResponse, GetOrchestrationExecutionActivityOutputsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivityOutputsV2OkResponse, import("..").Error>;
@@ -0,0 +1,20 @@
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 getOrchestrationExecutionActivityOutputsV2(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/activity/${props.activityIdentifier}/output/v2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve grouped output values for a specific activity execution (v2 format)
11
+ */
12
+ export function useGetOrchestrationExecutionActivityOutputsV2Query(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-activity-outputs-v2',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.activityIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => getOrchestrationExecutionActivityOutputsV2(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ExecutionOutputsV2ResponseResponse } from '../responses/ExecutionOutputsV2ResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionPhaseOutputsV2QueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ }
10
+ export interface GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams {
11
+ phaseExecutionId?: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export interface GetOrchestrationExecutionPhaseOutputsV2QueryHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type GetOrchestrationExecutionPhaseOutputsV2OkResponse = ResponseWithPagination<ExecutionOutputsV2ResponseResponse>;
19
+ export type GetOrchestrationExecutionPhaseOutputsV2ErrorResponse = ErrorResponseResponse;
20
+ export interface GetOrchestrationExecutionPhaseOutputsV2Props extends GetOrchestrationExecutionPhaseOutputsV2QueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams, unknown, GetOrchestrationExecutionPhaseOutputsV2QueryHeaderParams>, 'url'> {
21
+ queryParams: GetOrchestrationExecutionPhaseOutputsV2QueryQueryParams;
22
+ }
23
+ export declare function getOrchestrationExecutionPhaseOutputsV2(props: GetOrchestrationExecutionPhaseOutputsV2Props): Promise<GetOrchestrationExecutionPhaseOutputsV2OkResponse>;
24
+ /**
25
+ * Retrieve grouped output values for a specific phase execution (v2 format)
26
+ */
27
+ export declare function useGetOrchestrationExecutionPhaseOutputsV2Query(props: GetOrchestrationExecutionPhaseOutputsV2Props, options?: Omit<UseQueryOptions<GetOrchestrationExecutionPhaseOutputsV2OkResponse, GetOrchestrationExecutionPhaseOutputsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionPhaseOutputsV2OkResponse, import("..").Error>;
@@ -0,0 +1,19 @@
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 getOrchestrationExecutionPhaseOutputsV2(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/release/${props.releaseId}/phase/${props.phaseIdentifier}/output/v2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve grouped output values for a specific phase execution (v2 format)
11
+ */
12
+ export function useGetOrchestrationExecutionPhaseOutputsV2Query(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-phase-outputs-v2',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.queryParams,
18
+ ], ({ signal }) => getOrchestrationExecutionPhaseOutputsV2(Object.assign(Object.assign({}, props), { signal })), options);
19
+ }
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChangesetFacets } from '../schemas/ChangesetFacets';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetReleaseChangesetFacetsQueryPathParams {
7
+ releaseId: string;
8
+ }
9
+ export interface GetReleaseChangesetFacetsQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ service?: string;
13
+ tag?: string;
14
+ artifactPath?: string;
15
+ artifactRegistry?: string;
16
+ }
17
+ export interface GetReleaseChangesetFacetsQueryHeaderParams {
18
+ 'Harness-Account': string;
19
+ }
20
+ export type GetReleaseChangesetFacetsOkResponse = ResponseWithPagination<ChangesetFacets>;
21
+ export type GetReleaseChangesetFacetsErrorResponse = ErrorResponseResponse;
22
+ export interface GetReleaseChangesetFacetsProps extends GetReleaseChangesetFacetsQueryPathParams, Omit<FetcherOptions<GetReleaseChangesetFacetsQueryQueryParams, unknown, GetReleaseChangesetFacetsQueryHeaderParams>, 'url'> {
23
+ queryParams: GetReleaseChangesetFacetsQueryQueryParams;
24
+ }
25
+ export declare function getReleaseChangesetFacets(props: GetReleaseChangesetFacetsProps): Promise<GetReleaseChangesetFacetsOkResponse>;
26
+ /**
27
+ * Distinct filter options (facets) for a release's changesets
28
+ */
29
+ export declare function useGetReleaseChangesetFacetsQuery(props: GetReleaseChangesetFacetsProps, options?: Omit<UseQueryOptions<GetReleaseChangesetFacetsOkResponse, GetReleaseChangesetFacetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReleaseChangesetFacetsOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
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 getReleaseChangesetFacets(props) {
7
+ return fetcher(Object.assign({ url: `/v1/releases/${props.releaseId}/changesets/facets`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Distinct filter options (facets) for a release's changesets
11
+ */
12
+ export function useGetReleaseChangesetFacetsQuery(props, options) {
13
+ return useQuery(['getReleaseChangesetFacets', props.releaseId, props.queryParams], ({ signal }) => getReleaseChangesetFacets(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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;
@@ -0,0 +1,31 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { IntegrationExecutionList } from '../schemas/IntegrationExecutionList';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListIntegrationExecutionsQueryQueryParams {
7
+ orgIdentifier?: string;
8
+ projectIdentifier?: string;
9
+ reference_id: string;
10
+ /**
11
+ * @default 0
12
+ */
13
+ page?: number;
14
+ /**
15
+ * @default 20
16
+ */
17
+ size?: number;
18
+ }
19
+ export interface ListIntegrationExecutionsQueryHeaderParams {
20
+ 'Harness-Account': string;
21
+ }
22
+ export type ListIntegrationExecutionsOkResponse = ResponseWithPagination<IntegrationExecutionList>;
23
+ export type ListIntegrationExecutionsErrorResponse = ErrorResponseResponse;
24
+ export interface ListIntegrationExecutionsProps extends Omit<FetcherOptions<ListIntegrationExecutionsQueryQueryParams, unknown, ListIntegrationExecutionsQueryHeaderParams>, 'url'> {
25
+ queryParams: ListIntegrationExecutionsQueryQueryParams;
26
+ }
27
+ export declare function listIntegrationExecutions(props: ListIntegrationExecutionsProps): Promise<ListIntegrationExecutionsOkResponse>;
28
+ /**
29
+ * List integration plugin executions for a reference
30
+ */
31
+ export declare function useListIntegrationExecutionsQuery(props: ListIntegrationExecutionsProps, options?: Omit<UseQueryOptions<ListIntegrationExecutionsOkResponse, ListIntegrationExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListIntegrationExecutionsOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
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 listIntegrationExecutions(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integration/executions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List integration plugin executions for a reference
11
+ */
12
+ export function useListIntegrationExecutionsQuery(props, options) {
13
+ return useQuery(['listIntegrationExecutions', props.queryParams], ({ signal }) => listIntegrationExecutions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,34 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChangesetCommitList } from '../schemas/ChangesetCommitList';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListReleaseChangesetCommitsQueryPathParams {
7
+ releaseId: string;
8
+ changesetId: string;
9
+ }
10
+ export interface ListReleaseChangesetCommitsQueryQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ /**
18
+ * @default 20
19
+ */
20
+ size?: number;
21
+ }
22
+ export interface ListReleaseChangesetCommitsQueryHeaderParams {
23
+ 'Harness-Account': string;
24
+ }
25
+ export type ListReleaseChangesetCommitsOkResponse = ResponseWithPagination<ChangesetCommitList>;
26
+ export type ListReleaseChangesetCommitsErrorResponse = ErrorResponseResponse;
27
+ export interface ListReleaseChangesetCommitsProps extends ListReleaseChangesetCommitsQueryPathParams, Omit<FetcherOptions<ListReleaseChangesetCommitsQueryQueryParams, unknown, ListReleaseChangesetCommitsQueryHeaderParams>, 'url'> {
28
+ queryParams: ListReleaseChangesetCommitsQueryQueryParams;
29
+ }
30
+ export declare function listReleaseChangesetCommits(props: ListReleaseChangesetCommitsProps): Promise<ListReleaseChangesetCommitsOkResponse>;
31
+ /**
32
+ * List commits (with tickets) for a changeset
33
+ */
34
+ export declare function useListReleaseChangesetCommitsQuery(props: ListReleaseChangesetCommitsProps, options?: Omit<UseQueryOptions<ListReleaseChangesetCommitsOkResponse, ListReleaseChangesetCommitsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListReleaseChangesetCommitsOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
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 listReleaseChangesetCommits(props) {
7
+ return fetcher(Object.assign({ url: `/v1/releases/${props.releaseId}/changesets/${props.changesetId}/commits`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List commits (with tickets) for a changeset
11
+ */
12
+ export function useListReleaseChangesetCommitsQuery(props, options) {
13
+ return useQuery(['listReleaseChangesetCommits', props.releaseId, props.changesetId, props.queryParams], ({ signal }) => listReleaseChangesetCommits(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChangesetList } from '../schemas/ChangesetList';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ListReleaseChangesetsQueryPathParams {
7
+ releaseId: string;
8
+ }
9
+ export interface ListReleaseChangesetsQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ /**
13
+ * @default 0
14
+ */
15
+ page?: number;
16
+ /**
17
+ * @default 20
18
+ */
19
+ size?: number;
20
+ artifactPath?: string;
21
+ artifactRegistry?: string;
22
+ sha?: string;
23
+ ticketKey?: string;
24
+ service?: string;
25
+ tag?: string;
26
+ }
27
+ export interface ListReleaseChangesetsQueryHeaderParams {
28
+ 'Harness-Account': string;
29
+ }
30
+ export type ListReleaseChangesetsOkResponse = ResponseWithPagination<ChangesetList>;
31
+ export type ListReleaseChangesetsErrorResponse = ErrorResponseResponse;
32
+ export interface ListReleaseChangesetsProps extends ListReleaseChangesetsQueryPathParams, Omit<FetcherOptions<ListReleaseChangesetsQueryQueryParams, unknown, ListReleaseChangesetsQueryHeaderParams>, 'url'> {
33
+ queryParams: ListReleaseChangesetsQueryQueryParams;
34
+ }
35
+ export declare function listReleaseChangesets(props: ListReleaseChangesetsProps): Promise<ListReleaseChangesetsOkResponse>;
36
+ /**
37
+ * List changesets for a release
38
+ */
39
+ export declare function useListReleaseChangesetsQuery(props: ListReleaseChangesetsProps, options?: Omit<UseQueryOptions<ListReleaseChangesetsOkResponse, ListReleaseChangesetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListReleaseChangesetsOkResponse, import("..").Error>;
@@ -0,0 +1,14 @@
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 listReleaseChangesets(props) {
7
+ return fetcher(Object.assign({ url: `/v1/releases/${props.releaseId}/changesets`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List changesets for a release
11
+ */
12
+ export function useListReleaseChangesetsQuery(props, options) {
13
+ return useQuery(['listReleaseChangesets', props.releaseId, props.queryParams], ({ signal }) => listReleaseChangesets(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { WebhookQueueActionResponseResponse } from '../responses/WebhookQueueActionResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { WebhookQueueActionRequestRequestBody } from '../requestBodies/WebhookQueueActionRequestRequestBody';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PostWebhookQueueActionMutationPathParams {
8
+ activityExecutionId: string;
9
+ }
10
+ export interface PostWebhookQueueActionMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface PostWebhookQueueActionMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type PostWebhookQueueActionRequestBody = WebhookQueueActionRequestRequestBody;
18
+ export type PostWebhookQueueActionOkResponse = ResponseWithPagination<WebhookQueueActionResponseResponse>;
19
+ export type PostWebhookQueueActionErrorResponse = ErrorResponseResponse;
20
+ export interface PostWebhookQueueActionProps extends PostWebhookQueueActionMutationPathParams, Omit<FetcherOptions<PostWebhookQueueActionMutationQueryParams, PostWebhookQueueActionRequestBody, PostWebhookQueueActionMutationHeaderParams>, 'url'> {
21
+ queryParams: PostWebhookQueueActionMutationQueryParams;
22
+ body: PostWebhookQueueActionRequestBody;
23
+ }
24
+ export declare function postWebhookQueueAction(props: PostWebhookQueueActionProps): Promise<PostWebhookQueueActionOkResponse>;
25
+ /**
26
+ * Publishes an APPROVE action for the webhook activity queue. Processing is async via Kafka.
27
+ */
28
+ export declare function usePostWebhookQueueActionMutation(options?: Omit<UseMutationOptions<PostWebhookQueueActionOkResponse, PostWebhookQueueActionErrorResponse, PostWebhookQueueActionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostWebhookQueueActionOkResponse, import("..").Error, PostWebhookQueueActionProps, unknown>;
@@ -0,0 +1,14 @@
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 '../../../../fetcher/index.js';
6
+ export function postWebhookQueueAction(props) {
7
+ return fetcher(Object.assign({ url: `/v1/webhook/${props.activityExecutionId}/queue/action`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Publishes an APPROVE action for the webhook activity queue. Processing is async via Kafka.
11
+ */
12
+ export function usePostWebhookQueueActionMutation(options) {
13
+ return useMutation((mutateProps) => postWebhookQueueAction(mutateProps), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { Changeset } from '../schemas/Changeset';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface RetryReleaseChangesetMutationPathParams {
7
+ releaseId: string;
8
+ changesetId: string;
9
+ }
10
+ export interface RetryReleaseChangesetMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface RetryReleaseChangesetMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type RetryReleaseChangesetOkResponse = ResponseWithPagination<Changeset>;
18
+ export type RetryReleaseChangesetErrorResponse = ErrorResponseResponse;
19
+ export interface RetryReleaseChangesetProps extends RetryReleaseChangesetMutationPathParams, Omit<FetcherOptions<RetryReleaseChangesetMutationQueryParams, unknown, RetryReleaseChangesetMutationHeaderParams>, 'url'> {
20
+ queryParams: RetryReleaseChangesetMutationQueryParams;
21
+ }
22
+ export declare function retryReleaseChangeset(props: RetryReleaseChangesetProps): Promise<RetryReleaseChangesetOkResponse>;
23
+ /**
24
+ * Retry a changeset's pipeline
25
+ */
26
+ export declare function useRetryReleaseChangesetMutation(options?: Omit<UseMutationOptions<RetryReleaseChangesetOkResponse, RetryReleaseChangesetErrorResponse, RetryReleaseChangesetProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RetryReleaseChangesetOkResponse, import("..").Error, RetryReleaseChangesetProps, unknown>;
@@ -0,0 +1,14 @@
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 '../../../../fetcher/index.js';
6
+ export function retryReleaseChangeset(props) {
7
+ return fetcher(Object.assign({ url: `/v1/releases/${props.releaseId}/changesets/${props.changesetId}/retry`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Retry a changeset's pipeline
11
+ */
12
+ export function useRetryReleaseChangesetMutation(options) {
13
+ return useMutation((mutateProps) => retryReleaseChangeset(mutateProps), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { TriggerIntegrationExecutionResponse } from '../schemas/TriggerIntegrationExecutionResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { TriggerIntegrationExecutionRequest } from '../schemas/TriggerIntegrationExecutionRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface TriggerIntegrationExecutionMutationQueryParams {
8
+ orgIdentifier?: string;
9
+ projectIdentifier?: string;
10
+ }
11
+ export interface TriggerIntegrationExecutionMutationHeaderParams {
12
+ 'Harness-Account': string;
13
+ }
14
+ export type TriggerIntegrationExecutionRequestBody = TriggerIntegrationExecutionRequest;
15
+ export type TriggerIntegrationExecutionOkResponse = ResponseWithPagination<TriggerIntegrationExecutionResponse>;
16
+ export type TriggerIntegrationExecutionErrorResponse = ErrorResponseResponse;
17
+ export interface TriggerIntegrationExecutionProps extends Omit<FetcherOptions<TriggerIntegrationExecutionMutationQueryParams, TriggerIntegrationExecutionRequestBody, TriggerIntegrationExecutionMutationHeaderParams>, 'url'> {
18
+ queryParams: TriggerIntegrationExecutionMutationQueryParams;
19
+ body: TriggerIntegrationExecutionRequestBody;
20
+ }
21
+ export declare function triggerIntegrationExecution(props: TriggerIntegrationExecutionProps): Promise<TriggerIntegrationExecutionOkResponse>;
22
+ /**
23
+ * Trigger an integration plugin execution
24
+ */
25
+ export declare function useTriggerIntegrationExecutionMutation(options?: Omit<UseMutationOptions<TriggerIntegrationExecutionOkResponse, TriggerIntegrationExecutionErrorResponse, TriggerIntegrationExecutionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerIntegrationExecutionOkResponse, import("..").Error, TriggerIntegrationExecutionProps, unknown>;
@@ -0,0 +1,14 @@
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 '../../../../fetcher/index.js';
6
+ export function triggerIntegrationExecution(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integration/executions`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger an integration plugin execution
11
+ */
12
+ export function useTriggerIntegrationExecutionMutation(options) {
13
+ return useMutation((mutateProps) => triggerIntegrationExecution(mutateProps), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { Changeset } from '../schemas/Changeset';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { UpdateChangesetTagsRequest } from '../schemas/UpdateChangesetTagsRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface UpdateReleaseChangesetTagsMutationPathParams {
8
+ releaseId: string;
9
+ changesetId: string;
10
+ }
11
+ export interface UpdateReleaseChangesetTagsMutationQueryParams {
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export interface UpdateReleaseChangesetTagsMutationHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type UpdateReleaseChangesetTagsRequestBody = UpdateChangesetTagsRequest;
19
+ export type UpdateReleaseChangesetTagsOkResponse = ResponseWithPagination<Changeset>;
20
+ export type UpdateReleaseChangesetTagsErrorResponse = ErrorResponseResponse;
21
+ export interface UpdateReleaseChangesetTagsProps extends UpdateReleaseChangesetTagsMutationPathParams, Omit<FetcherOptions<UpdateReleaseChangesetTagsMutationQueryParams, UpdateReleaseChangesetTagsRequestBody, UpdateReleaseChangesetTagsMutationHeaderParams>, 'url'> {
22
+ queryParams: UpdateReleaseChangesetTagsMutationQueryParams;
23
+ body: UpdateReleaseChangesetTagsRequestBody;
24
+ }
25
+ export declare function updateReleaseChangesetTags(props: UpdateReleaseChangesetTagsProps): Promise<UpdateReleaseChangesetTagsOkResponse>;
26
+ /**
27
+ * Edit a changeset's from/to tags
28
+ */
29
+ export declare function useUpdateReleaseChangesetTagsMutation(options?: Omit<UseMutationOptions<UpdateReleaseChangesetTagsOkResponse, UpdateReleaseChangesetTagsErrorResponse, UpdateReleaseChangesetTagsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateReleaseChangesetTagsOkResponse, import("..").Error, UpdateReleaseChangesetTagsProps, unknown>;
@@ -0,0 +1,14 @@
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 '../../../../fetcher/index.js';
6
+ export function updateReleaseChangesetTags(props) {
7
+ return fetcher(Object.assign({ url: `/v1/releases/${props.releaseId}/changesets/${props.changesetId}`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Edit a changeset's from/to tags
11
+ */
12
+ export function useUpdateReleaseChangesetTagsMutation(options) {
13
+ return useMutation((mutateProps) => updateReleaseChangesetTags(mutateProps), options);
14
+ }