@harnessio/react-rmg-service-client 0.63.0 → 0.65.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.
- package/dist/rmg-service/src/services/hooks/useCreateArtifactTrackerServiceMappingMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useCreateArtifactTrackerServiceMappingMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useCreateArtifactTrackerSettingsMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useCreateArtifactTrackerSettingsMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useDeleteArtifactTrackerServiceMappingMutation.d.ts +24 -0
- package/dist/rmg-service/src/services/hooks/useDeleteArtifactTrackerServiceMappingMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useDeleteArtifactTrackerSettingsMutation.d.ts +24 -0
- package/dist/rmg-service/src/services/hooks/useDeleteArtifactTrackerSettingsMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetArtifactTrackerServiceMappingQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetArtifactTrackerServiceMappingQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetArtifactTrackerSettingsQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetArtifactTrackerSettingsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetWebhookMatchedSignalExecutionSummariesQuery.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useGetWebhookMatchedSignalExecutionSummariesQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetWebhookMetadataQuery.d.ts +19 -0
- package/dist/rmg-service/src/services/hooks/useGetWebhookMetadataQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceMappingsQuery.d.ts +30 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceMappingsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerSettingsQuery.d.ts +30 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerSettingsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpdateArtifactTrackerServiceMappingMutation.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/useUpdateArtifactTrackerServiceMappingMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpsertArtifactTrackerSettingsMutation.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/useUpsertArtifactTrackerSettingsMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +55 -0
- package/dist/rmg-service/src/services/index.js +12 -0
- package/dist/rmg-service/src/services/responses/WebhookMatchedSignalExecutionSummaryListResponseResponse.d.ts +13 -0
- package/dist/rmg-service/src/services/responses/WebhookMatchedSignalExecutionSummaryListResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/AbortedBy.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/AbortedBy.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMapping.d.ts +20 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMapping.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMappingList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMappingList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettings.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettings.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettingsList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettingsList.js +1 -0
- package/dist/rmg-service/src/services/schemas/BuildInfo.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/BuildInfo.js +4 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.d.ts +18 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerSettingsRequest.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerSettingsRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/EdgeLayoutList.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/EdgeLayoutList.js +4 -0
- package/dist/rmg-service/src/services/schemas/EntityGitDetails.d.ts +14 -0
- package/dist/rmg-service/src/services/schemas/EntityGitDetails.js +4 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTriggerInfo.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/ExecutionTriggerInfo.js +1 -0
- package/dist/rmg-service/src/services/schemas/FailureInfoDto.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/FailureInfoDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/GovernanceMetadata.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/GovernanceMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/GraphLayoutNodeDto.d.ts +23 -0
- package/dist/rmg-service/src/services/schemas/GraphLayoutNodeDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/MatchedSignalExecutionSummaryDto.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/MatchedSignalExecutionSummaryDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/NgLabel.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/NgLabel.js +4 -0
- package/dist/rmg-service/src/services/schemas/NgTag.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/NgTag.js +4 -0
- package/dist/rmg-service/src/services/schemas/PipelineExecutionSummaryDto.d.ts +94 -0
- package/dist/rmg-service/src/services/schemas/PipelineExecutionSummaryDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/PipelineStageInfo.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/PipelineStageInfo.js +4 -0
- package/dist/rmg-service/src/services/schemas/PolicyMetadata.d.ts +20 -0
- package/dist/rmg-service/src/services/schemas/PolicyMetadata.js +4 -0
- package/dist/rmg-service/src/services/schemas/PolicySetMetadata.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/PolicySetMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/ReleaseApprovalDto.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/RerunInfo.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/RerunInfo.js +4 -0
- package/dist/rmg-service/src/services/schemas/ResponseMessage.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ResponseMessage.js +4 -0
- package/dist/rmg-service/src/services/schemas/RetryExecutionMetadata.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/RetryExecutionMetadata.js +4 -0
- package/dist/rmg-service/src/services/schemas/TemplateReferenceSummary.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/TemplateReferenceSummary.js +4 -0
- package/dist/rmg-service/src/services/schemas/TriggeredBy.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/TriggeredBy.js +4 -0
- package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/UpsertArtifactTrackerSettingsRequest.d.ts +7 -0
- package/dist/rmg-service/src/services/schemas/UpsertArtifactTrackerSettingsRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookMetadataResponse.d.ts +12 -0
- package/dist/rmg-service/src/services/schemas/WebhookMetadataResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalPipeline.d.ts +18 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalPipeline.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalRequest.d.ts +4 -2
- package/package.json +1 -1
package/dist/rmg-service/src/services/hooks/useCreateArtifactTrackerServiceMappingMutation.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerServiceMapping } from '../schemas/ArtifactTrackerServiceMapping';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { CreateArtifactTrackerServiceMappingRequest } from '../schemas/CreateArtifactTrackerServiceMappingRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateArtifactTrackerServiceMappingMutationQueryParams {
|
|
8
|
+
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateArtifactTrackerServiceMappingMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type CreateArtifactTrackerServiceMappingRequestBody = CreateArtifactTrackerServiceMappingRequest;
|
|
15
|
+
export type CreateArtifactTrackerServiceMappingOkResponse = ResponseWithPagination<ArtifactTrackerServiceMapping>;
|
|
16
|
+
export type CreateArtifactTrackerServiceMappingErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface CreateArtifactTrackerServiceMappingProps extends Omit<FetcherOptions<CreateArtifactTrackerServiceMappingMutationQueryParams, CreateArtifactTrackerServiceMappingRequestBody, CreateArtifactTrackerServiceMappingMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: CreateArtifactTrackerServiceMappingMutationQueryParams;
|
|
19
|
+
body: CreateArtifactTrackerServiceMappingRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function createArtifactTrackerServiceMapping(props: CreateArtifactTrackerServiceMappingProps): Promise<CreateArtifactTrackerServiceMappingOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a service mapping
|
|
24
|
+
*/
|
|
25
|
+
export declare function useCreateArtifactTrackerServiceMappingMutation(options?: Omit<UseMutationOptions<CreateArtifactTrackerServiceMappingOkResponse, CreateArtifactTrackerServiceMappingErrorResponse, CreateArtifactTrackerServiceMappingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateArtifactTrackerServiceMappingOkResponse, import("..").Error, CreateArtifactTrackerServiceMappingProps, 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 createArtifactTrackerServiceMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a service mapping
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateArtifactTrackerServiceMappingMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createArtifactTrackerServiceMapping(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerSettings } from '../schemas/ArtifactTrackerSettings';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { CreateArtifactTrackerSettingsRequest } from '../schemas/CreateArtifactTrackerSettingsRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateArtifactTrackerSettingsMutationQueryParams {
|
|
8
|
+
orgIdentifier?: string;
|
|
9
|
+
projectIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateArtifactTrackerSettingsMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type CreateArtifactTrackerSettingsRequestBody = CreateArtifactTrackerSettingsRequest;
|
|
15
|
+
export type CreateArtifactTrackerSettingsOkResponse = ResponseWithPagination<ArtifactTrackerSettings>;
|
|
16
|
+
export type CreateArtifactTrackerSettingsErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface CreateArtifactTrackerSettingsProps extends Omit<FetcherOptions<CreateArtifactTrackerSettingsMutationQueryParams, CreateArtifactTrackerSettingsRequestBody, CreateArtifactTrackerSettingsMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: CreateArtifactTrackerSettingsMutationQueryParams;
|
|
19
|
+
body: CreateArtifactTrackerSettingsRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function createArtifactTrackerSettings(props: CreateArtifactTrackerSettingsProps): Promise<CreateArtifactTrackerSettingsOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create artifact tracker settings
|
|
24
|
+
*/
|
|
25
|
+
export declare function useCreateArtifactTrackerSettingsMutation(options?: Omit<UseMutationOptions<CreateArtifactTrackerSettingsOkResponse, CreateArtifactTrackerSettingsErrorResponse, CreateArtifactTrackerSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateArtifactTrackerSettingsOkResponse, import("..").Error, CreateArtifactTrackerSettingsProps, 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 createArtifactTrackerSettings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/settings`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create artifact tracker settings
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateArtifactTrackerSettingsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createArtifactTrackerSettings(mutateProps), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/useDeleteArtifactTrackerServiceMappingMutation.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteArtifactTrackerServiceMappingMutationPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteArtifactTrackerServiceMappingMutationQueryParams {
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DeleteArtifactTrackerServiceMappingMutationHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type DeleteArtifactTrackerServiceMappingOkResponse = ResponseWithPagination<unknown>;
|
|
16
|
+
export type DeleteArtifactTrackerServiceMappingErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface DeleteArtifactTrackerServiceMappingProps extends DeleteArtifactTrackerServiceMappingMutationPathParams, Omit<FetcherOptions<DeleteArtifactTrackerServiceMappingMutationQueryParams, unknown, DeleteArtifactTrackerServiceMappingMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: DeleteArtifactTrackerServiceMappingMutationQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function deleteArtifactTrackerServiceMapping(props: DeleteArtifactTrackerServiceMappingProps): Promise<DeleteArtifactTrackerServiceMappingOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete a service mapping
|
|
23
|
+
*/
|
|
24
|
+
export declare function useDeleteArtifactTrackerServiceMappingMutation(options?: Omit<UseMutationOptions<DeleteArtifactTrackerServiceMappingOkResponse, DeleteArtifactTrackerServiceMappingErrorResponse, DeleteArtifactTrackerServiceMappingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteArtifactTrackerServiceMappingOkResponse, import("..").Error, DeleteArtifactTrackerServiceMappingProps, 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 deleteArtifactTrackerServiceMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings/${props.identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a service mapping
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteArtifactTrackerServiceMappingMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteArtifactTrackerServiceMapping(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteArtifactTrackerSettingsMutationPathParams {
|
|
6
|
+
identifier: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteArtifactTrackerSettingsMutationQueryParams {
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DeleteArtifactTrackerSettingsMutationHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type DeleteArtifactTrackerSettingsOkResponse = ResponseWithPagination<unknown>;
|
|
16
|
+
export type DeleteArtifactTrackerSettingsErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface DeleteArtifactTrackerSettingsProps extends DeleteArtifactTrackerSettingsMutationPathParams, Omit<FetcherOptions<DeleteArtifactTrackerSettingsMutationQueryParams, unknown, DeleteArtifactTrackerSettingsMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: DeleteArtifactTrackerSettingsMutationQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function deleteArtifactTrackerSettings(props: DeleteArtifactTrackerSettingsProps): Promise<DeleteArtifactTrackerSettingsOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete artifact tracker settings
|
|
23
|
+
*/
|
|
24
|
+
export declare function useDeleteArtifactTrackerSettingsMutation(options?: Omit<UseMutationOptions<DeleteArtifactTrackerSettingsOkResponse, DeleteArtifactTrackerSettingsErrorResponse, DeleteArtifactTrackerSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteArtifactTrackerSettingsOkResponse, import("..").Error, DeleteArtifactTrackerSettingsProps, 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 deleteArtifactTrackerSettings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/settings/${props.identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete artifact tracker settings
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteArtifactTrackerSettingsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteArtifactTrackerSettings(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerServiceMapping } from '../schemas/ArtifactTrackerServiceMapping';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetArtifactTrackerServiceMappingQueryPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetArtifactTrackerServiceMappingQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetArtifactTrackerServiceMappingQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetArtifactTrackerServiceMappingOkResponse = ResponseWithPagination<ArtifactTrackerServiceMapping>;
|
|
17
|
+
export type GetArtifactTrackerServiceMappingErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetArtifactTrackerServiceMappingProps extends GetArtifactTrackerServiceMappingQueryPathParams, Omit<FetcherOptions<GetArtifactTrackerServiceMappingQueryQueryParams, unknown, GetArtifactTrackerServiceMappingQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactTrackerServiceMappingQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getArtifactTrackerServiceMapping(props: GetArtifactTrackerServiceMappingProps): Promise<GetArtifactTrackerServiceMappingOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a service mapping by identifier
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetArtifactTrackerServiceMappingQuery(props: GetArtifactTrackerServiceMappingProps, options?: Omit<UseQueryOptions<GetArtifactTrackerServiceMappingOkResponse, GetArtifactTrackerServiceMappingErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactTrackerServiceMappingOkResponse, 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 getArtifactTrackerServiceMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get a service mapping by identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactTrackerServiceMappingQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactTrackerServiceMapping', props.identifier, props.queryParams], ({ signal }) => getArtifactTrackerServiceMapping(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerSettings } from '../schemas/ArtifactTrackerSettings';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetArtifactTrackerSettingsQueryPathParams {
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetArtifactTrackerSettingsQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetArtifactTrackerSettingsQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetArtifactTrackerSettingsOkResponse = ResponseWithPagination<ArtifactTrackerSettings>;
|
|
17
|
+
export type GetArtifactTrackerSettingsErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface GetArtifactTrackerSettingsProps extends GetArtifactTrackerSettingsQueryPathParams, Omit<FetcherOptions<GetArtifactTrackerSettingsQueryQueryParams, unknown, GetArtifactTrackerSettingsQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactTrackerSettingsQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getArtifactTrackerSettings(props: GetArtifactTrackerSettingsProps): Promise<GetArtifactTrackerSettingsOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get artifact tracker settings by identifier
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetArtifactTrackerSettingsQuery(props: GetArtifactTrackerSettingsProps, options?: Omit<UseQueryOptions<GetArtifactTrackerSettingsOkResponse, GetArtifactTrackerSettingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactTrackerSettingsOkResponse, 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 getArtifactTrackerSettings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/settings/${props.identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifact tracker settings by identifier
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactTrackerSettingsQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactTrackerSettings', props.identifier, props.queryParams], ({ signal }) => getArtifactTrackerSettings(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/useGetWebhookMatchedSignalExecutionSummariesQuery.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookMatchedSignalExecutionSummaryListResponseResponse } from '../responses/WebhookMatchedSignalExecutionSummaryListResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetWebhookMatchedSignalExecutionSummariesQueryPathParams {
|
|
6
|
+
activityExecutionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetWebhookMatchedSignalExecutionSummariesQueryQueryParams {
|
|
9
|
+
page?: number;
|
|
10
|
+
size?: number;
|
|
11
|
+
sort?: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface GetWebhookMatchedSignalExecutionSummariesQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetWebhookMatchedSignalExecutionSummariesOkResponse = ResponseWithPagination<WebhookMatchedSignalExecutionSummaryListResponseResponse>;
|
|
17
|
+
export type GetWebhookMatchedSignalExecutionSummariesErrorResponse = unknown;
|
|
18
|
+
export interface GetWebhookMatchedSignalExecutionSummariesProps extends GetWebhookMatchedSignalExecutionSummariesQueryPathParams, Omit<FetcherOptions<GetWebhookMatchedSignalExecutionSummariesQueryQueryParams, unknown, GetWebhookMatchedSignalExecutionSummariesQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetWebhookMatchedSignalExecutionSummariesQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getWebhookMatchedSignalExecutionSummaries(props: GetWebhookMatchedSignalExecutionSummariesProps): Promise<GetWebhookMatchedSignalExecutionSummariesOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns paginated list of matched webhook signals with their pipeline execution summaries for a given activity execution.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetWebhookMatchedSignalExecutionSummariesQuery(props: GetWebhookMatchedSignalExecutionSummariesProps, options?: Omit<UseQueryOptions<GetWebhookMatchedSignalExecutionSummariesOkResponse, GetWebhookMatchedSignalExecutionSummariesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetWebhookMatchedSignalExecutionSummariesOkResponse, unknown>;
|
package/dist/rmg-service/src/services/hooks/useGetWebhookMatchedSignalExecutionSummariesQuery.js
ADDED
|
@@ -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 getWebhookMatchedSignalExecutionSummaries(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/webhook/${props.activityExecutionId}/execution-summary`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns paginated list of matched webhook signals with their pipeline execution summaries for a given activity execution.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetWebhookMatchedSignalExecutionSummariesQuery(props, options) {
|
|
13
|
+
return useQuery(['getWebhookMatchedSignalExecutionSummaries', props.activityExecutionId, props.queryParams], ({ signal }) => getWebhookMatchedSignalExecutionSummaries(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookMetadataResponse } from '../schemas/WebhookMetadataResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetWebhookMetadataQueryPathParams {
|
|
6
|
+
webhookId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetWebhookMetadataQueryHeaderParams {
|
|
9
|
+
'Harness-Account': string;
|
|
10
|
+
}
|
|
11
|
+
export type GetWebhookMetadataOkResponse = ResponseWithPagination<WebhookMetadataResponse>;
|
|
12
|
+
export type GetWebhookMetadataErrorResponse = unknown;
|
|
13
|
+
export interface GetWebhookMetadataProps extends GetWebhookMetadataQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetWebhookMetadataQueryHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getWebhookMetadata(props: GetWebhookMetadataProps): Promise<GetWebhookMetadataOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the signal metadata for a webhook identified by its webhook ID.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetWebhookMetadataQuery(props: GetWebhookMetadataProps, options?: Omit<UseQueryOptions<GetWebhookMetadataOkResponse, GetWebhookMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetWebhookMetadataOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getWebhookMetadata(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/webhook/${props.webhookId}/metadata`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the signal metadata for a webhook identified by its webhook ID.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetWebhookMetadataQuery(props, options) {
|
|
13
|
+
return useQuery(['getWebhookMetadata', props.webhookId], ({ signal }) => getWebhookMetadata(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerServiceMappingList } from '../schemas/ArtifactTrackerServiceMappingList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactTrackerServiceMappingsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ListArtifactTrackerServiceMappingsQueryHeaderParams {
|
|
19
|
+
'Harness-Account': string;
|
|
20
|
+
}
|
|
21
|
+
export type ListArtifactTrackerServiceMappingsOkResponse = ResponseWithPagination<ArtifactTrackerServiceMappingList>;
|
|
22
|
+
export type ListArtifactTrackerServiceMappingsErrorResponse = ErrorResponseResponse;
|
|
23
|
+
export interface ListArtifactTrackerServiceMappingsProps extends Omit<FetcherOptions<ListArtifactTrackerServiceMappingsQueryQueryParams, unknown, ListArtifactTrackerServiceMappingsQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: ListArtifactTrackerServiceMappingsQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function listArtifactTrackerServiceMappings(props: ListArtifactTrackerServiceMappingsProps): Promise<ListArtifactTrackerServiceMappingsOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* List service mappings
|
|
29
|
+
*/
|
|
30
|
+
export declare function useListArtifactTrackerServiceMappingsQuery(props: ListArtifactTrackerServiceMappingsProps, options?: Omit<UseQueryOptions<ListArtifactTrackerServiceMappingsOkResponse, ListArtifactTrackerServiceMappingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactTrackerServiceMappingsOkResponse, 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 listArtifactTrackerServiceMappings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List service mappings
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactTrackerServiceMappingsQuery(props, options) {
|
|
13
|
+
return useQuery(['listArtifactTrackerServiceMappings', props.queryParams], ({ signal }) => listArtifactTrackerServiceMappings(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerSettingsList } from '../schemas/ArtifactTrackerSettingsList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactTrackerSettingsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ListArtifactTrackerSettingsQueryHeaderParams {
|
|
19
|
+
'Harness-Account': string;
|
|
20
|
+
}
|
|
21
|
+
export type ListArtifactTrackerSettingsOkResponse = ResponseWithPagination<ArtifactTrackerSettingsList>;
|
|
22
|
+
export type ListArtifactTrackerSettingsErrorResponse = ErrorResponseResponse;
|
|
23
|
+
export interface ListArtifactTrackerSettingsProps extends Omit<FetcherOptions<ListArtifactTrackerSettingsQueryQueryParams, unknown, ListArtifactTrackerSettingsQueryHeaderParams>, 'url'> {
|
|
24
|
+
queryParams: ListArtifactTrackerSettingsQueryQueryParams;
|
|
25
|
+
}
|
|
26
|
+
export declare function listArtifactTrackerSettings(props: ListArtifactTrackerSettingsProps): Promise<ListArtifactTrackerSettingsOkResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* List artifact tracker settings for scope
|
|
29
|
+
*/
|
|
30
|
+
export declare function useListArtifactTrackerSettingsQuery(props: ListArtifactTrackerSettingsProps, options?: Omit<UseQueryOptions<ListArtifactTrackerSettingsOkResponse, ListArtifactTrackerSettingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactTrackerSettingsOkResponse, 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 listArtifactTrackerSettings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/settings`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List artifact tracker settings for scope
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactTrackerSettingsQuery(props, options) {
|
|
13
|
+
return useQuery(['listArtifactTrackerSettings', props.queryParams], ({ signal }) => listArtifactTrackerSettings(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/rmg-service/src/services/hooks/useUpdateArtifactTrackerServiceMappingMutation.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerServiceMapping } from '../schemas/ArtifactTrackerServiceMapping';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { UpdateArtifactTrackerServiceMappingRequest } from '../schemas/UpdateArtifactTrackerServiceMappingRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateArtifactTrackerServiceMappingMutationPathParams {
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateArtifactTrackerServiceMappingMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UpdateArtifactTrackerServiceMappingMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type UpdateArtifactTrackerServiceMappingRequestBody = UpdateArtifactTrackerServiceMappingRequest;
|
|
18
|
+
export type UpdateArtifactTrackerServiceMappingOkResponse = ResponseWithPagination<ArtifactTrackerServiceMapping>;
|
|
19
|
+
export type UpdateArtifactTrackerServiceMappingErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface UpdateArtifactTrackerServiceMappingProps extends UpdateArtifactTrackerServiceMappingMutationPathParams, Omit<FetcherOptions<UpdateArtifactTrackerServiceMappingMutationQueryParams, UpdateArtifactTrackerServiceMappingRequestBody, UpdateArtifactTrackerServiceMappingMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: UpdateArtifactTrackerServiceMappingMutationQueryParams;
|
|
22
|
+
body: UpdateArtifactTrackerServiceMappingRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateArtifactTrackerServiceMapping(props: UpdateArtifactTrackerServiceMappingProps): Promise<UpdateArtifactTrackerServiceMappingOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Update a service mapping
|
|
27
|
+
*/
|
|
28
|
+
export declare function useUpdateArtifactTrackerServiceMappingMutation(options?: Omit<UseMutationOptions<UpdateArtifactTrackerServiceMappingOkResponse, UpdateArtifactTrackerServiceMappingErrorResponse, UpdateArtifactTrackerServiceMappingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateArtifactTrackerServiceMappingOkResponse, import("..").Error, UpdateArtifactTrackerServiceMappingProps, 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 updateArtifactTrackerServiceMapping(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/service-mappings/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a service mapping
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateArtifactTrackerServiceMappingMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateArtifactTrackerServiceMapping(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactTrackerSettings } from '../schemas/ArtifactTrackerSettings';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { UpsertArtifactTrackerSettingsRequest } from '../schemas/UpsertArtifactTrackerSettingsRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpsertArtifactTrackerSettingsMutationPathParams {
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpsertArtifactTrackerSettingsMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UpsertArtifactTrackerSettingsMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type UpsertArtifactTrackerSettingsRequestBody = UpsertArtifactTrackerSettingsRequest;
|
|
18
|
+
export type UpsertArtifactTrackerSettingsOkResponse = ResponseWithPagination<ArtifactTrackerSettings>;
|
|
19
|
+
export type UpsertArtifactTrackerSettingsErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface UpsertArtifactTrackerSettingsProps extends UpsertArtifactTrackerSettingsMutationPathParams, Omit<FetcherOptions<UpsertArtifactTrackerSettingsMutationQueryParams, UpsertArtifactTrackerSettingsRequestBody, UpsertArtifactTrackerSettingsMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: UpsertArtifactTrackerSettingsMutationQueryParams;
|
|
22
|
+
body: UpsertArtifactTrackerSettingsRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function upsertArtifactTrackerSettings(props: UpsertArtifactTrackerSettingsProps): Promise<UpsertArtifactTrackerSettingsOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Create or update artifact tracker settings
|
|
27
|
+
*/
|
|
28
|
+
export declare function useUpsertArtifactTrackerSettingsMutation(options?: Omit<UseMutationOptions<UpsertArtifactTrackerSettingsOkResponse, UpsertArtifactTrackerSettingsErrorResponse, UpsertArtifactTrackerSettingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpsertArtifactTrackerSettingsOkResponse, import("..").Error, UpsertArtifactTrackerSettingsProps, 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 upsertArtifactTrackerSettings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifact-tracker/settings/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create or update artifact tracker settings
|
|
11
|
+
*/
|
|
12
|
+
export function useUpsertArtifactTrackerSettingsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => upsertArtifactTrackerSettings(mutateProps), options);
|
|
14
|
+
}
|