@harnessio/react-ticket-service-client 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ticket-service/src/services/hooks/useIntegrationsListIntegrationsQuery.d.ts +49 -0
- package/dist/ticket-service/src/services/hooks/useIntegrationsListIntegrationsQuery.js +14 -0
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectCreateMetadataQuery.d.ts +2 -2
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectQuery.d.ts +2 -2
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectStatusesQuery.d.ts +61 -0
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectStatusesQuery.js +14 -0
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectTransitionsQuery.d.ts +66 -0
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectTransitionsQuery.js +14 -0
- package/dist/ticket-service/src/services/hooks/useMetadataListProjectsQuery.d.ts +1 -1
- package/dist/ticket-service/src/services/hooks/useRoutingRulesBulkCreateRoutingRulesMutation.d.ts +47 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesBulkCreateRoutingRulesMutation.js +14 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesCreateRoutingRuleMutation.d.ts +47 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesCreateRoutingRuleMutation.js +14 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesDeleteRoutingRuleMutation.d.ts +50 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesDeleteRoutingRuleMutation.js +14 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesGetRoutingRuleQuery.d.ts +51 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesGetRoutingRuleQuery.js +14 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesListRoutingRulesQuery.d.ts +49 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesListRoutingRulesQuery.js +14 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesResolveRoutingRuleQuery.d.ts +54 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesResolveRoutingRuleQuery.js +14 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesUpdateRoutingRuleMutation.d.ts +54 -0
- package/dist/ticket-service/src/services/hooks/useRoutingRulesUpdateRoutingRuleMutation.js +14 -0
- package/dist/ticket-service/src/services/hooks/useSettingsDeleteSettingMutation.d.ts +1 -1
- package/dist/ticket-service/src/services/hooks/useSettingsGetSettingQuery.d.ts +1 -1
- package/dist/ticket-service/src/services/hooks/useSettingsSaveSettingMutation.d.ts +1 -1
- package/dist/ticket-service/src/services/hooks/useTicketsCreateTicketMutation.d.ts +1 -1
- package/dist/ticket-service/src/services/hooks/useTicketsListTicketsQuery.d.ts +5 -1
- package/dist/ticket-service/src/services/index.d.ts +35 -0
- package/dist/ticket-service/src/services/index.js +10 -0
- package/dist/ticket-service/src/services/schemas/BulkCreateRoutingRulesRequestBody.d.ts +10 -0
- package/dist/ticket-service/src/services/schemas/BulkCreateRoutingRulesRequestBody.js +1 -0
- package/dist/ticket-service/src/services/schemas/CreateRoutingRuleRequestBody.d.ts +40 -0
- package/dist/ticket-service/src/services/schemas/CreateRoutingRuleRequestBody.js +1 -0
- package/dist/ticket-service/src/services/schemas/CreateTicketRequestBody.d.ts +3 -1
- package/dist/ticket-service/src/services/schemas/CreateTicketRequestBody.js +0 -3
- package/dist/ticket-service/src/services/schemas/FieldMetadata.d.ts +12 -6
- package/dist/ticket-service/src/services/schemas/IdResult.d.ts +6 -1
- package/dist/ticket-service/src/services/schemas/Integration.d.ts +47 -0
- package/dist/ticket-service/src/services/schemas/Integration.js +1 -0
- package/dist/ticket-service/src/services/schemas/IntegrationsListIntegrationsResponseBody.d.ts +10 -0
- package/dist/ticket-service/src/services/schemas/IntegrationsListIntegrationsResponseBody.js +1 -0
- package/dist/ticket-service/src/services/schemas/IssueCreateMetadata.d.ts +5 -5
- package/dist/ticket-service/src/services/schemas/JiraAllowedValues.d.ts +4 -4
- package/dist/ticket-service/src/services/schemas/JiraStatus.d.ts +15 -0
- package/dist/ticket-service/src/services/schemas/JiraStatus.js +1 -0
- package/dist/ticket-service/src/services/schemas/JiraStatusCategory.d.ts +14 -0
- package/dist/ticket-service/src/services/schemas/JiraStatusCategory.js +4 -0
- package/dist/ticket-service/src/services/schemas/ListProjectsResponse.d.ts +2 -2
- package/dist/ticket-service/src/services/schemas/MetadataGetProjectStatusesResponseBody.d.ts +2 -0
- package/dist/ticket-service/src/services/schemas/MetadataGetProjectStatusesResponseBody.js +1 -0
- package/dist/ticket-service/src/services/schemas/MetadataGetProjectTransitionsResponseBody.d.ts +2 -0
- package/dist/ticket-service/src/services/schemas/MetadataGetProjectTransitionsResponseBody.js +1 -0
- package/dist/ticket-service/src/services/schemas/Project.d.ts +5 -5
- package/dist/ticket-service/src/services/schemas/ProjectCreateMetadataResponse.d.ts +2 -2
- package/dist/ticket-service/src/services/schemas/ProjectStatusesResponse.d.ts +11 -0
- package/dist/ticket-service/src/services/schemas/ProjectStatusesResponse.js +1 -0
- package/dist/ticket-service/src/services/schemas/ProjectTransitionsResponse.d.ts +7 -0
- package/dist/ticket-service/src/services/schemas/ProjectTransitionsResponse.js +1 -0
- package/dist/ticket-service/src/services/schemas/RoutingRuleParams.d.ts +16 -0
- package/dist/ticket-service/src/services/schemas/RoutingRuleParams.js +4 -0
- package/dist/ticket-service/src/services/schemas/RoutingRuleResult.d.ts +68 -0
- package/dist/ticket-service/src/services/schemas/RoutingRuleResult.js +1 -0
- package/dist/ticket-service/src/services/schemas/RoutingRuleTarget.d.ts +17 -0
- package/dist/ticket-service/src/services/schemas/RoutingRuleTarget.js +4 -0
- package/dist/ticket-service/src/services/schemas/RoutingRulesCreateRoutingRuleResponseBody.d.ts +2 -0
- package/dist/ticket-service/src/services/schemas/RoutingRulesCreateRoutingRuleResponseBody.js +1 -0
- package/dist/ticket-service/src/services/schemas/Ticket.d.ts +8 -1
- package/dist/ticket-service/src/services/schemas/TicketType.d.ts +3 -3
- package/dist/ticket-service/src/services/schemas/TicketsListTicketsResponseBody.d.ts +2 -2
- package/dist/ticket-service/src/services/schemas/TransitionSet.d.ts +19 -0
- package/dist/ticket-service/src/services/schemas/TransitionSet.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationsListIntegrationsResponseBody } from '../schemas/IntegrationsListIntegrationsResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface IntegrationsListIntegrationsQueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Account ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
accountId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Harness Organization ID
|
|
14
|
+
* @example "example_org"
|
|
15
|
+
*/
|
|
16
|
+
orgId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Harness Project ID
|
|
19
|
+
* @example "example_project"
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Harness Module
|
|
24
|
+
* @example "sto"
|
|
25
|
+
*/
|
|
26
|
+
module?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Case-insensitive substring match on the Jira project key. Blank means no filter.
|
|
29
|
+
* @example "sto"
|
|
30
|
+
*/
|
|
31
|
+
search?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IntegrationsListIntegrationsQueryHeaderParams {
|
|
34
|
+
/**
|
|
35
|
+
* Harness personal or service access token
|
|
36
|
+
* @example "Labore repellendus nam omnis commodi vel aut."
|
|
37
|
+
*/
|
|
38
|
+
'X-Api-Key'?: string;
|
|
39
|
+
}
|
|
40
|
+
export type IntegrationsListIntegrationsOkResponse = ResponseWithPagination<IntegrationsListIntegrationsResponseBody>;
|
|
41
|
+
export type IntegrationsListIntegrationsErrorResponse = NotFound;
|
|
42
|
+
export interface IntegrationsListIntegrationsProps extends Omit<FetcherOptions<IntegrationsListIntegrationsQueryQueryParams, unknown, IntegrationsListIntegrationsQueryHeaderParams>, 'url'> {
|
|
43
|
+
queryParams: IntegrationsListIntegrationsQueryQueryParams;
|
|
44
|
+
}
|
|
45
|
+
export declare function integrationsListIntegrations(props: IntegrationsListIntegrationsProps): Promise<IntegrationsListIntegrationsOkResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* List the Jira integrations of a scope. The default row comes first, then the routing rules, newest first. The list is not paginated.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useIntegrationsListIntegrationsQuery(props: IntegrationsListIntegrationsProps, options?: Omit<UseQueryOptions<IntegrationsListIntegrationsOkResponse, IntegrationsListIntegrationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<IntegrationsListIntegrationsOkResponse, NotFound>;
|
|
@@ -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 integrationsListIntegrations(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/integrations`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List the Jira integrations of a scope. The default row comes first, then the routing rules, newest first. The list is not paginated.
|
|
11
|
+
*/
|
|
12
|
+
export function useIntegrationsListIntegrationsQuery(props, options) {
|
|
13
|
+
return useQuery(['Integrations#ListIntegrations', props.queryParams], ({ signal }) => integrationsListIntegrations(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ticket-service/src/services/hooks/useMetadataGetProjectCreateMetadataQuery.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
6
6
|
export interface MetadataGetProjectCreateMetadataQueryPathParams {
|
|
7
7
|
/**
|
|
8
8
|
* The ID or key of the project to retrieve
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Ut optio qui facere adipisci totam."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
}
|
|
@@ -40,7 +40,7 @@ export interface MetadataGetProjectCreateMetadataQueryQueryParams {
|
|
|
40
40
|
export interface MetadataGetProjectCreateMetadataQueryHeaderParams {
|
|
41
41
|
/**
|
|
42
42
|
* Harness personal or service access token
|
|
43
|
-
* @example "
|
|
43
|
+
* @example "Et ut possimus id corporis reprehenderit."
|
|
44
44
|
*/
|
|
45
45
|
'X-Api-Key'?: string;
|
|
46
46
|
}
|
|
@@ -6,7 +6,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
6
6
|
export interface MetadataGetProjectQueryPathParams {
|
|
7
7
|
/**
|
|
8
8
|
* The ID or key of the project to retrieve
|
|
9
|
-
* @example "
|
|
9
|
+
* @example "Culpa ut ut omnis at harum."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
}
|
|
@@ -40,7 +40,7 @@ export interface MetadataGetProjectQueryQueryParams {
|
|
|
40
40
|
export interface MetadataGetProjectQueryHeaderParams {
|
|
41
41
|
/**
|
|
42
42
|
* Harness personal or service access token
|
|
43
|
-
* @example "
|
|
43
|
+
* @example "Ducimus debitis ipsa reiciendis consectetur ipsam est."
|
|
44
44
|
*/
|
|
45
45
|
'X-Api-Key'?: string;
|
|
46
46
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MetadataGetProjectStatusesResponseBody } from '../schemas/MetadataGetProjectStatusesResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface MetadataGetProjectStatusesQueryPathParams {
|
|
7
|
+
/**
|
|
8
|
+
* The ID or key of the project
|
|
9
|
+
* @example "Itaque reprehenderit quis ad delectus neque alias."
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MetadataGetProjectStatusesQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* The exact Jira issue type name, for example Bug
|
|
16
|
+
* @example "Bug"
|
|
17
|
+
*/
|
|
18
|
+
issueType: string;
|
|
19
|
+
/**
|
|
20
|
+
* Harness Account ID
|
|
21
|
+
* @example "abcdef1234567890ghijkl"
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Harness Organization ID
|
|
26
|
+
* @example "example_org"
|
|
27
|
+
*/
|
|
28
|
+
orgId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Harness Project ID
|
|
31
|
+
* @example "example_project"
|
|
32
|
+
*/
|
|
33
|
+
projectId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Harness Module
|
|
36
|
+
* @example "sto"
|
|
37
|
+
*/
|
|
38
|
+
module?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Harness Connector ID to use for all API calls made with this token. Overrides the Connector that is saved as a setting for the account/org/project.
|
|
41
|
+
* @example "account.Jira_Connector_ID"
|
|
42
|
+
*/
|
|
43
|
+
connectorId?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface MetadataGetProjectStatusesQueryHeaderParams {
|
|
46
|
+
/**
|
|
47
|
+
* Harness personal or service access token
|
|
48
|
+
* @example "Aut consequatur iusto et unde sed pariatur."
|
|
49
|
+
*/
|
|
50
|
+
'X-Api-Key'?: string;
|
|
51
|
+
}
|
|
52
|
+
export type MetadataGetProjectStatusesOkResponse = ResponseWithPagination<MetadataGetProjectStatusesResponseBody>;
|
|
53
|
+
export type MetadataGetProjectStatusesErrorResponse = NotFound;
|
|
54
|
+
export interface MetadataGetProjectStatusesProps extends MetadataGetProjectStatusesQueryPathParams, Omit<FetcherOptions<MetadataGetProjectStatusesQueryQueryParams, unknown, MetadataGetProjectStatusesQueryHeaderParams>, 'url'> {
|
|
55
|
+
queryParams: MetadataGetProjectStatusesQueryQueryParams;
|
|
56
|
+
}
|
|
57
|
+
export declare function metadataGetProjectStatuses(props: MetadataGetProjectStatusesProps): Promise<MetadataGetProjectStatusesOkResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* List the workflow statuses of one issue type of a Jira project, with each status category. Use it to fill the Close and Reopen status dropdowns.
|
|
60
|
+
*/
|
|
61
|
+
export declare function useMetadataGetProjectStatusesQuery(props: MetadataGetProjectStatusesProps, options?: Omit<UseQueryOptions<MetadataGetProjectStatusesOkResponse, MetadataGetProjectStatusesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<MetadataGetProjectStatusesOkResponse, NotFound>;
|
|
@@ -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 metadataGetProjectStatuses(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/metadata/projects/${props.id}/statuses`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List the workflow statuses of one issue type of a Jira project, with each status category. Use it to fill the Close and Reopen status dropdowns.
|
|
11
|
+
*/
|
|
12
|
+
export function useMetadataGetProjectStatusesQuery(props, options) {
|
|
13
|
+
return useQuery(['Metadata#GetProjectStatuses', props.id, props.queryParams], ({ signal }) => metadataGetProjectStatuses(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MetadataGetProjectTransitionsResponseBody } from '../schemas/MetadataGetProjectTransitionsResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface MetadataGetProjectTransitionsQueryPathParams {
|
|
7
|
+
/**
|
|
8
|
+
* The ID or key of the project
|
|
9
|
+
* @example "Dolores aliquam corrupti."
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface MetadataGetProjectTransitionsQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* The exact Jira issue type name, for example Bug
|
|
16
|
+
* @example "Bug"
|
|
17
|
+
*/
|
|
18
|
+
issueType: string;
|
|
19
|
+
/**
|
|
20
|
+
* The exact name of the status to close into, as returned by the statuses endpoint, for example Done
|
|
21
|
+
* @example "Done"
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
/**
|
|
25
|
+
* Harness Account ID
|
|
26
|
+
* @example "abcdef1234567890ghijkl"
|
|
27
|
+
*/
|
|
28
|
+
accountId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Harness Organization ID
|
|
31
|
+
* @example "example_org"
|
|
32
|
+
*/
|
|
33
|
+
orgId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Harness Project ID
|
|
36
|
+
* @example "example_project"
|
|
37
|
+
*/
|
|
38
|
+
projectId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Harness Module
|
|
41
|
+
* @example "sto"
|
|
42
|
+
*/
|
|
43
|
+
module?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Harness Connector ID to use for all API calls made with this token. Overrides the Connector that is saved as a setting for the account/org/project.
|
|
46
|
+
* @example "account.Jira_Connector_ID"
|
|
47
|
+
*/
|
|
48
|
+
connectorId?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface MetadataGetProjectTransitionsQueryHeaderParams {
|
|
51
|
+
/**
|
|
52
|
+
* Harness personal or service access token
|
|
53
|
+
* @example "Magnam et."
|
|
54
|
+
*/
|
|
55
|
+
'X-Api-Key'?: string;
|
|
56
|
+
}
|
|
57
|
+
export type MetadataGetProjectTransitionsOkResponse = ResponseWithPagination<MetadataGetProjectTransitionsResponseBody>;
|
|
58
|
+
export type MetadataGetProjectTransitionsErrorResponse = NotFound;
|
|
59
|
+
export interface MetadataGetProjectTransitionsProps extends MetadataGetProjectTransitionsQueryPathParams, Omit<FetcherOptions<MetadataGetProjectTransitionsQueryQueryParams, unknown, MetadataGetProjectTransitionsQueryHeaderParams>, 'url'> {
|
|
60
|
+
queryParams: MetadataGetProjectTransitionsQueryQueryParams;
|
|
61
|
+
}
|
|
62
|
+
export declare function metadataGetProjectTransitions(props: MetadataGetProjectTransitionsProps): Promise<MetadataGetProjectTransitionsOkResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Get the fields that closing a Jira issue into the given status requires. Jira only exposes transition screens for an existing issue, so one sample issue is read per open status of the issue type, and the fields of the transitions into the given status are merged. close is omitted when no sample issue can move into that status.
|
|
65
|
+
*/
|
|
66
|
+
export declare function useMetadataGetProjectTransitionsQuery(props: MetadataGetProjectTransitionsProps, options?: Omit<UseQueryOptions<MetadataGetProjectTransitionsOkResponse, MetadataGetProjectTransitionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<MetadataGetProjectTransitionsOkResponse, NotFound>;
|
|
@@ -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 metadataGetProjectTransitions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/metadata/projects/${props.id}/transitions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get the fields that closing a Jira issue into the given status requires. Jira only exposes transition screens for an existing issue, so one sample issue is read per open status of the issue type, and the fields of the transitions into the given status are merged. close is omitted when no sample issue can move into that status.
|
|
11
|
+
*/
|
|
12
|
+
export function useMetadataGetProjectTransitionsQuery(props, options) {
|
|
13
|
+
return useQuery(['Metadata#GetProjectTransitions', props.id, props.queryParams], ({ signal }) => metadataGetProjectTransitions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -33,7 +33,7 @@ export interface MetadataListProjectsQueryQueryParams {
|
|
|
33
33
|
export interface MetadataListProjectsQueryHeaderParams {
|
|
34
34
|
/**
|
|
35
35
|
* Harness personal or service access token
|
|
36
|
-
* @example "
|
|
36
|
+
* @example "Aperiam et aut."
|
|
37
37
|
*/
|
|
38
38
|
'X-Api-Key'?: string;
|
|
39
39
|
}
|
package/dist/ticket-service/src/services/hooks/useRoutingRulesBulkCreateRoutingRulesMutation.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RoutingRulesCreateRoutingRuleResponseBody } from '../schemas/RoutingRulesCreateRoutingRuleResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { BulkCreateRoutingRulesRequestBody } from '../schemas/BulkCreateRoutingRulesRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface RoutingRulesBulkCreateRoutingRulesMutationQueryParams {
|
|
8
|
+
/**
|
|
9
|
+
* Harness Account ID
|
|
10
|
+
* @example "abcdef1234567890ghijkl"
|
|
11
|
+
*/
|
|
12
|
+
accountId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Harness Organization ID
|
|
15
|
+
* @example "example_org"
|
|
16
|
+
*/
|
|
17
|
+
orgId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Harness Project ID
|
|
20
|
+
* @example "example_project"
|
|
21
|
+
*/
|
|
22
|
+
projectId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Harness Module
|
|
25
|
+
* @example "sto"
|
|
26
|
+
*/
|
|
27
|
+
module?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface RoutingRulesBulkCreateRoutingRulesMutationHeaderParams {
|
|
30
|
+
/**
|
|
31
|
+
* Harness personal or service access token
|
|
32
|
+
* @example "Eaque et."
|
|
33
|
+
*/
|
|
34
|
+
'X-Api-Key'?: string;
|
|
35
|
+
}
|
|
36
|
+
export type RoutingRulesBulkCreateRoutingRulesRequestBody = BulkCreateRoutingRulesRequestBody;
|
|
37
|
+
export type RoutingRulesBulkCreateRoutingRulesOkResponse = ResponseWithPagination<RoutingRulesCreateRoutingRuleResponseBody[]>;
|
|
38
|
+
export type RoutingRulesBulkCreateRoutingRulesErrorResponse = NotFound;
|
|
39
|
+
export interface RoutingRulesBulkCreateRoutingRulesProps extends Omit<FetcherOptions<RoutingRulesBulkCreateRoutingRulesMutationQueryParams, RoutingRulesBulkCreateRoutingRulesRequestBody, RoutingRulesBulkCreateRoutingRulesMutationHeaderParams>, 'url'> {
|
|
40
|
+
queryParams: RoutingRulesBulkCreateRoutingRulesMutationQueryParams;
|
|
41
|
+
body: RoutingRulesBulkCreateRoutingRulesRequestBody;
|
|
42
|
+
}
|
|
43
|
+
export declare function routingRulesBulkCreateRoutingRules(props: RoutingRulesBulkCreateRoutingRulesProps): Promise<RoutingRulesBulkCreateRoutingRulesOkResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Create many routing rules
|
|
46
|
+
*/
|
|
47
|
+
export declare function useRoutingRulesBulkCreateRoutingRulesMutation(options?: Omit<UseMutationOptions<RoutingRulesBulkCreateRoutingRulesOkResponse, RoutingRulesBulkCreateRoutingRulesErrorResponse, RoutingRulesBulkCreateRoutingRulesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RoutingRulesBulkCreateRoutingRulesOkResponse, NotFound, RoutingRulesBulkCreateRoutingRulesProps, unknown>;
|
package/dist/ticket-service/src/services/hooks/useRoutingRulesBulkCreateRoutingRulesMutation.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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function routingRulesBulkCreateRoutingRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules/bulk`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create many routing rules
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesBulkCreateRoutingRulesMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => routingRulesBulkCreateRoutingRules(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RoutingRulesCreateRoutingRuleResponseBody } from '../schemas/RoutingRulesCreateRoutingRuleResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { CreateRoutingRuleRequestBody } from '../schemas/CreateRoutingRuleRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface RoutingRulesCreateRoutingRuleMutationQueryParams {
|
|
8
|
+
/**
|
|
9
|
+
* Harness Account ID
|
|
10
|
+
* @example "abcdef1234567890ghijkl"
|
|
11
|
+
*/
|
|
12
|
+
accountId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Harness Organization ID
|
|
15
|
+
* @example "example_org"
|
|
16
|
+
*/
|
|
17
|
+
orgId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Harness Project ID
|
|
20
|
+
* @example "example_project"
|
|
21
|
+
*/
|
|
22
|
+
projectId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Harness Module
|
|
25
|
+
* @example "sto"
|
|
26
|
+
*/
|
|
27
|
+
module?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface RoutingRulesCreateRoutingRuleMutationHeaderParams {
|
|
30
|
+
/**
|
|
31
|
+
* Harness personal or service access token
|
|
32
|
+
* @example "Pariatur ea et."
|
|
33
|
+
*/
|
|
34
|
+
'X-Api-Key'?: string;
|
|
35
|
+
}
|
|
36
|
+
export type RoutingRulesCreateRoutingRuleRequestBody = CreateRoutingRuleRequestBody;
|
|
37
|
+
export type RoutingRulesCreateRoutingRuleOkResponse = ResponseWithPagination<RoutingRulesCreateRoutingRuleResponseBody>;
|
|
38
|
+
export type RoutingRulesCreateRoutingRuleErrorResponse = NotFound;
|
|
39
|
+
export interface RoutingRulesCreateRoutingRuleProps extends Omit<FetcherOptions<RoutingRulesCreateRoutingRuleMutationQueryParams, RoutingRulesCreateRoutingRuleRequestBody, RoutingRulesCreateRoutingRuleMutationHeaderParams>, 'url'> {
|
|
40
|
+
queryParams: RoutingRulesCreateRoutingRuleMutationQueryParams;
|
|
41
|
+
body: RoutingRulesCreateRoutingRuleRequestBody;
|
|
42
|
+
}
|
|
43
|
+
export declare function routingRulesCreateRoutingRule(props: RoutingRulesCreateRoutingRuleProps): Promise<RoutingRulesCreateRoutingRuleOkResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a routing rule
|
|
46
|
+
*/
|
|
47
|
+
export declare function useRoutingRulesCreateRoutingRuleMutation(options?: Omit<UseMutationOptions<RoutingRulesCreateRoutingRuleOkResponse, RoutingRulesCreateRoutingRuleErrorResponse, RoutingRulesCreateRoutingRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RoutingRulesCreateRoutingRuleOkResponse, NotFound, RoutingRulesCreateRoutingRuleProps, 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 routingRulesCreateRoutingRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a routing rule
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesCreateRoutingRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => routingRulesCreateRoutingRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface RoutingRulesDeleteRoutingRuleMutationPathParams {
|
|
6
|
+
/**
|
|
7
|
+
* Routing rule ID
|
|
8
|
+
* @example "abcdef1234567890ghijkl"
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
export interface RoutingRulesDeleteRoutingRuleMutationQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* Harness Account ID
|
|
15
|
+
* @example "abcdef1234567890ghijkl"
|
|
16
|
+
*/
|
|
17
|
+
accountId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Harness Organization ID
|
|
20
|
+
* @example "example_org"
|
|
21
|
+
*/
|
|
22
|
+
orgId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Harness Project ID
|
|
25
|
+
* @example "example_project"
|
|
26
|
+
*/
|
|
27
|
+
projectId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Harness Module
|
|
30
|
+
* @example "sto"
|
|
31
|
+
*/
|
|
32
|
+
module?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface RoutingRulesDeleteRoutingRuleMutationHeaderParams {
|
|
35
|
+
/**
|
|
36
|
+
* Harness personal or service access token
|
|
37
|
+
* @example "Id exercitationem sit eum."
|
|
38
|
+
*/
|
|
39
|
+
'X-Api-Key'?: string;
|
|
40
|
+
}
|
|
41
|
+
export type RoutingRulesDeleteRoutingRuleOkResponse = ResponseWithPagination<unknown>;
|
|
42
|
+
export type RoutingRulesDeleteRoutingRuleErrorResponse = NotFound;
|
|
43
|
+
export interface RoutingRulesDeleteRoutingRuleProps extends RoutingRulesDeleteRoutingRuleMutationPathParams, Omit<FetcherOptions<RoutingRulesDeleteRoutingRuleMutationQueryParams, unknown, RoutingRulesDeleteRoutingRuleMutationHeaderParams>, 'url'> {
|
|
44
|
+
queryParams: RoutingRulesDeleteRoutingRuleMutationQueryParams;
|
|
45
|
+
}
|
|
46
|
+
export declare function routingRulesDeleteRoutingRule(props: RoutingRulesDeleteRoutingRuleProps): Promise<RoutingRulesDeleteRoutingRuleOkResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Delete a routing rule
|
|
49
|
+
*/
|
|
50
|
+
export declare function useRoutingRulesDeleteRoutingRuleMutation(options?: Omit<UseMutationOptions<RoutingRulesDeleteRoutingRuleOkResponse, RoutingRulesDeleteRoutingRuleErrorResponse, RoutingRulesDeleteRoutingRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RoutingRulesDeleteRoutingRuleOkResponse, NotFound, RoutingRulesDeleteRoutingRuleProps, 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 routingRulesDeleteRoutingRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules/${props.id}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a routing rule
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesDeleteRoutingRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => routingRulesDeleteRoutingRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RoutingRulesCreateRoutingRuleResponseBody } from '../schemas/RoutingRulesCreateRoutingRuleResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface RoutingRulesGetRoutingRuleQueryPathParams {
|
|
7
|
+
/**
|
|
8
|
+
* Routing rule ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RoutingRulesGetRoutingRuleQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* Harness Account ID
|
|
16
|
+
* @example "abcdef1234567890ghijkl"
|
|
17
|
+
*/
|
|
18
|
+
accountId: string;
|
|
19
|
+
/**
|
|
20
|
+
* Harness Organization ID
|
|
21
|
+
* @example "example_org"
|
|
22
|
+
*/
|
|
23
|
+
orgId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Harness Project ID
|
|
26
|
+
* @example "example_project"
|
|
27
|
+
*/
|
|
28
|
+
projectId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Harness Module
|
|
31
|
+
* @example "sto"
|
|
32
|
+
*/
|
|
33
|
+
module?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface RoutingRulesGetRoutingRuleQueryHeaderParams {
|
|
36
|
+
/**
|
|
37
|
+
* Harness personal or service access token
|
|
38
|
+
* @example "Dolor sed quia et veniam natus."
|
|
39
|
+
*/
|
|
40
|
+
'X-Api-Key'?: string;
|
|
41
|
+
}
|
|
42
|
+
export type RoutingRulesGetRoutingRuleOkResponse = ResponseWithPagination<RoutingRulesCreateRoutingRuleResponseBody>;
|
|
43
|
+
export type RoutingRulesGetRoutingRuleErrorResponse = NotFound;
|
|
44
|
+
export interface RoutingRulesGetRoutingRuleProps extends RoutingRulesGetRoutingRuleQueryPathParams, Omit<FetcherOptions<RoutingRulesGetRoutingRuleQueryQueryParams, unknown, RoutingRulesGetRoutingRuleQueryHeaderParams>, 'url'> {
|
|
45
|
+
queryParams: RoutingRulesGetRoutingRuleQueryQueryParams;
|
|
46
|
+
}
|
|
47
|
+
export declare function routingRulesGetRoutingRule(props: RoutingRulesGetRoutingRuleProps): Promise<RoutingRulesGetRoutingRuleOkResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Get one routing rule with its targets
|
|
50
|
+
*/
|
|
51
|
+
export declare function useRoutingRulesGetRoutingRuleQuery(props: RoutingRulesGetRoutingRuleProps, options?: Omit<UseQueryOptions<RoutingRulesGetRoutingRuleOkResponse, RoutingRulesGetRoutingRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<RoutingRulesGetRoutingRuleOkResponse, NotFound>;
|
|
@@ -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 routingRulesGetRoutingRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules/${props.id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get one routing rule with its targets
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesGetRoutingRuleQuery(props, options) {
|
|
13
|
+
return useQuery(['RoutingRules#GetRoutingRule', props.id, props.queryParams], ({ signal }) => routingRulesGetRoutingRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RoutingRulesCreateRoutingRuleResponseBody } from '../schemas/RoutingRulesCreateRoutingRuleResponseBody';
|
|
3
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface RoutingRulesListRoutingRulesQueryQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Account ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
accountId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Harness Organization ID
|
|
14
|
+
* @example "example_org"
|
|
15
|
+
*/
|
|
16
|
+
orgId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Harness Project ID
|
|
19
|
+
* @example "example_project"
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Harness Module
|
|
24
|
+
* @example "sto"
|
|
25
|
+
*/
|
|
26
|
+
module?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Filter by resource type. '' means catch-all (matches any resource type).
|
|
29
|
+
* @example "target"
|
|
30
|
+
*/
|
|
31
|
+
resourceType?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface RoutingRulesListRoutingRulesQueryHeaderParams {
|
|
34
|
+
/**
|
|
35
|
+
* Harness personal or service access token
|
|
36
|
+
* @example "Veritatis tempore vitae vitae."
|
|
37
|
+
*/
|
|
38
|
+
'X-Api-Key'?: string;
|
|
39
|
+
}
|
|
40
|
+
export type RoutingRulesListRoutingRulesOkResponse = ResponseWithPagination<RoutingRulesCreateRoutingRuleResponseBody[]>;
|
|
41
|
+
export type RoutingRulesListRoutingRulesErrorResponse = NotFound;
|
|
42
|
+
export interface RoutingRulesListRoutingRulesProps extends Omit<FetcherOptions<RoutingRulesListRoutingRulesQueryQueryParams, unknown, RoutingRulesListRoutingRulesQueryHeaderParams>, 'url'> {
|
|
43
|
+
queryParams: RoutingRulesListRoutingRulesQueryQueryParams;
|
|
44
|
+
}
|
|
45
|
+
export declare function routingRulesListRoutingRules(props: RoutingRulesListRoutingRulesProps): Promise<RoutingRulesListRoutingRulesOkResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* List routing rules for a scope
|
|
48
|
+
*/
|
|
49
|
+
export declare function useRoutingRulesListRoutingRulesQuery(props: RoutingRulesListRoutingRulesProps, options?: Omit<UseQueryOptions<RoutingRulesListRoutingRulesOkResponse, RoutingRulesListRoutingRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<RoutingRulesListRoutingRulesOkResponse, NotFound>;
|
|
@@ -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 routingRulesListRoutingRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List routing rules for a scope
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesListRoutingRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['RoutingRules#ListRoutingRules', props.queryParams], ({ signal }) => routingRulesListRoutingRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|