@harnessio/react-ticket-service-client 0.2.0 → 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 +7 -2
- package/dist/ticket-service/src/services/hooks/useMetadataGetProjectQuery.d.ts +7 -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 +6 -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 +43 -0
- package/dist/ticket-service/src/services/hooks/useSettingsDeleteSettingMutation.js +14 -0
- package/dist/ticket-service/src/services/hooks/useSettingsGetSettingQuery.d.ts +1 -1
- package/dist/ticket-service/src/services/hooks/useSettingsSaveSettingMutation.d.ts +46 -0
- package/dist/ticket-service/src/services/hooks/useSettingsSaveSettingMutation.js +14 -0
- 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 +40 -0
- package/dist/ticket-service/src/services/index.js +12 -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 +7 -1
- package/dist/ticket-service/src/services/schemas/CreateTicketRequestBody.js +0 -3
- package/dist/ticket-service/src/services/schemas/FieldMetadata.d.ts +9 -6
- package/dist/ticket-service/src/services/schemas/IdResult.d.ts +11 -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 +8 -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/SaveSettingRequestBody.d.ts +22 -0
- package/dist/ticket-service/src/services/schemas/SaveSettingRequestBody.js +4 -0
- package/dist/ticket-service/src/services/schemas/Setting.d.ts +11 -1
- package/dist/ticket-service/src/services/schemas/Ticket.d.ts +12 -1
- package/dist/ticket-service/src/services/schemas/TicketType.d.ts +3 -6
- 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,54 @@
|
|
|
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 RoutingRulesResolveRoutingRuleQueryQueryParams {
|
|
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
|
+
* Resource type to match. '' means catch-all (matches any resource type).
|
|
29
|
+
* @example "target"
|
|
30
|
+
*/
|
|
31
|
+
resourceType?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Resource value to match against rule patterns. Empty string '' is valid and signals 'resolve the default rule' (matches catch-all literal patterns and any regex pattern that accepts the empty string).
|
|
34
|
+
* @example "dtz"
|
|
35
|
+
*/
|
|
36
|
+
resource: string;
|
|
37
|
+
}
|
|
38
|
+
export interface RoutingRulesResolveRoutingRuleQueryHeaderParams {
|
|
39
|
+
/**
|
|
40
|
+
* Harness personal or service access token
|
|
41
|
+
* @example "Distinctio ut distinctio sit fuga rerum reprehenderit."
|
|
42
|
+
*/
|
|
43
|
+
'X-Api-Key'?: string;
|
|
44
|
+
}
|
|
45
|
+
export type RoutingRulesResolveRoutingRuleOkResponse = ResponseWithPagination<RoutingRulesCreateRoutingRuleResponseBody>;
|
|
46
|
+
export type RoutingRulesResolveRoutingRuleErrorResponse = NotFound;
|
|
47
|
+
export interface RoutingRulesResolveRoutingRuleProps extends Omit<FetcherOptions<RoutingRulesResolveRoutingRuleQueryQueryParams, unknown, RoutingRulesResolveRoutingRuleQueryHeaderParams>, 'url'> {
|
|
48
|
+
queryParams: RoutingRulesResolveRoutingRuleQueryQueryParams;
|
|
49
|
+
}
|
|
50
|
+
export declare function routingRulesResolveRoutingRule(props: RoutingRulesResolveRoutingRuleProps): Promise<RoutingRulesResolveRoutingRuleOkResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Resolve the best matching routing rule for the given scope and resource.
|
|
53
|
+
*/
|
|
54
|
+
export declare function useRoutingRulesResolveRoutingRuleQuery(props: RoutingRulesResolveRoutingRuleProps, options?: Omit<UseQueryOptions<RoutingRulesResolveRoutingRuleOkResponse, RoutingRulesResolveRoutingRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<RoutingRulesResolveRoutingRuleOkResponse, 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 routingRulesResolveRoutingRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules/resolve`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the best matching routing rule for the given scope and resource.
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesResolveRoutingRuleQuery(props, options) {
|
|
13
|
+
return useQuery(['RoutingRules#ResolveRoutingRule', props.queryParams], ({ signal }) => routingRulesResolveRoutingRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 RoutingRulesUpdateRoutingRuleMutationPathParams {
|
|
8
|
+
/**
|
|
9
|
+
* Routing rule ID
|
|
10
|
+
* @example "abcdef1234567890ghijkl"
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RoutingRulesUpdateRoutingRuleMutationQueryParams {
|
|
15
|
+
/**
|
|
16
|
+
* Harness Account ID
|
|
17
|
+
* @example "abcdef1234567890ghijkl"
|
|
18
|
+
*/
|
|
19
|
+
accountId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Harness Organization ID
|
|
22
|
+
* @example "example_org"
|
|
23
|
+
*/
|
|
24
|
+
orgId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Harness Project ID
|
|
27
|
+
* @example "example_project"
|
|
28
|
+
*/
|
|
29
|
+
projectId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Harness Module
|
|
32
|
+
* @example "sto"
|
|
33
|
+
*/
|
|
34
|
+
module?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface RoutingRulesUpdateRoutingRuleMutationHeaderParams {
|
|
37
|
+
/**
|
|
38
|
+
* Harness personal or service access token
|
|
39
|
+
* @example "Dicta perspiciatis."
|
|
40
|
+
*/
|
|
41
|
+
'X-Api-Key'?: string;
|
|
42
|
+
}
|
|
43
|
+
export type RoutingRulesUpdateRoutingRuleRequestBody = CreateRoutingRuleRequestBody;
|
|
44
|
+
export type RoutingRulesUpdateRoutingRuleOkResponse = ResponseWithPagination<RoutingRulesCreateRoutingRuleResponseBody>;
|
|
45
|
+
export type RoutingRulesUpdateRoutingRuleErrorResponse = NotFound;
|
|
46
|
+
export interface RoutingRulesUpdateRoutingRuleProps extends RoutingRulesUpdateRoutingRuleMutationPathParams, Omit<FetcherOptions<RoutingRulesUpdateRoutingRuleMutationQueryParams, RoutingRulesUpdateRoutingRuleRequestBody, RoutingRulesUpdateRoutingRuleMutationHeaderParams>, 'url'> {
|
|
47
|
+
queryParams: RoutingRulesUpdateRoutingRuleMutationQueryParams;
|
|
48
|
+
body: RoutingRulesUpdateRoutingRuleRequestBody;
|
|
49
|
+
}
|
|
50
|
+
export declare function routingRulesUpdateRoutingRule(props: RoutingRulesUpdateRoutingRuleProps): Promise<RoutingRulesUpdateRoutingRuleOkResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Update a routing rule
|
|
53
|
+
*/
|
|
54
|
+
export declare function useRoutingRulesUpdateRoutingRuleMutation(options?: Omit<UseMutationOptions<RoutingRulesUpdateRoutingRuleOkResponse, RoutingRulesUpdateRoutingRuleErrorResponse, RoutingRulesUpdateRoutingRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RoutingRulesUpdateRoutingRuleOkResponse, NotFound, RoutingRulesUpdateRoutingRuleProps, 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 routingRulesUpdateRoutingRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/routing-rules/${props.id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update a routing rule
|
|
11
|
+
*/
|
|
12
|
+
export function useRoutingRulesUpdateRoutingRuleMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => routingRulesUpdateRoutingRule(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 SettingsDeleteSettingMutationQueryParams {
|
|
6
|
+
/**
|
|
7
|
+
* Harness Account ID
|
|
8
|
+
* @example "abcdef1234567890ghijkl"
|
|
9
|
+
*/
|
|
10
|
+
accountId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Harness Organization ID
|
|
13
|
+
* @example "example_org"
|
|
14
|
+
*/
|
|
15
|
+
orgId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Harness Project ID
|
|
18
|
+
* @example "example_project"
|
|
19
|
+
*/
|
|
20
|
+
projectId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Harness Module
|
|
23
|
+
* @example "sto"
|
|
24
|
+
*/
|
|
25
|
+
module?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SettingsDeleteSettingMutationHeaderParams {
|
|
28
|
+
/**
|
|
29
|
+
* Harness personal or service access token
|
|
30
|
+
* @example "Ea consequatur sit beatae voluptatem dolorum cumque."
|
|
31
|
+
*/
|
|
32
|
+
'X-Api-Key'?: string;
|
|
33
|
+
}
|
|
34
|
+
export type SettingsDeleteSettingOkResponse = ResponseWithPagination<unknown>;
|
|
35
|
+
export type SettingsDeleteSettingErrorResponse = NotFound;
|
|
36
|
+
export interface SettingsDeleteSettingProps extends Omit<FetcherOptions<SettingsDeleteSettingMutationQueryParams, unknown, SettingsDeleteSettingMutationHeaderParams>, 'url'> {
|
|
37
|
+
queryParams: SettingsDeleteSettingMutationQueryParams;
|
|
38
|
+
}
|
|
39
|
+
export declare function settingsDeleteSetting(props: SettingsDeleteSettingProps): Promise<SettingsDeleteSettingOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete Ticket Service Settings
|
|
42
|
+
*/
|
|
43
|
+
export declare function useSettingsDeleteSettingMutation(options?: Omit<UseMutationOptions<SettingsDeleteSettingOkResponse, SettingsDeleteSettingErrorResponse, SettingsDeleteSettingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SettingsDeleteSettingOkResponse, NotFound, SettingsDeleteSettingProps, 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 settingsDeleteSetting(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/settings`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete Ticket Service Settings
|
|
11
|
+
*/
|
|
12
|
+
export function useSettingsDeleteSettingMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => settingsDeleteSetting(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -28,7 +28,7 @@ export interface SettingsGetSettingQueryQueryParams {
|
|
|
28
28
|
export interface SettingsGetSettingQueryHeaderParams {
|
|
29
29
|
/**
|
|
30
30
|
* Harness personal or service access token
|
|
31
|
-
* @example "
|
|
31
|
+
* @example "Perferendis corrupti voluptas."
|
|
32
32
|
*/
|
|
33
33
|
'X-Api-Key'?: string;
|
|
34
34
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { NotFound } from '../schemas/NotFound';
|
|
3
|
+
import type { SaveSettingRequestBody } from '../schemas/SaveSettingRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SettingsSaveSettingMutationQueryParams {
|
|
7
|
+
/**
|
|
8
|
+
* Harness Account ID
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
accountId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The organisation where this setting is actually stored. May differ from the request scope when the setting is inherited from a parent scope.
|
|
14
|
+
* @example "example_org"
|
|
15
|
+
*/
|
|
16
|
+
orgId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The project where this setting is actually stored. May differ from the request scope when the setting is inherited from a parent scope.
|
|
19
|
+
* @example "example_project"
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The Harness module for which these settings should apply
|
|
24
|
+
* @example "sto"
|
|
25
|
+
*/
|
|
26
|
+
module?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SettingsSaveSettingMutationHeaderParams {
|
|
29
|
+
/**
|
|
30
|
+
* Harness personal or service access token
|
|
31
|
+
* @example "Harum voluptas reprehenderit suscipit neque veritatis."
|
|
32
|
+
*/
|
|
33
|
+
'X-Api-Key'?: string;
|
|
34
|
+
}
|
|
35
|
+
export type SettingsSaveSettingRequestBody = SaveSettingRequestBody;
|
|
36
|
+
export type SettingsSaveSettingOkResponse = ResponseWithPagination<unknown>;
|
|
37
|
+
export type SettingsSaveSettingErrorResponse = NotFound;
|
|
38
|
+
export interface SettingsSaveSettingProps extends Omit<FetcherOptions<SettingsSaveSettingMutationQueryParams, SettingsSaveSettingRequestBody, SettingsSaveSettingMutationHeaderParams>, 'url'> {
|
|
39
|
+
queryParams: SettingsSaveSettingMutationQueryParams;
|
|
40
|
+
body: SettingsSaveSettingRequestBody;
|
|
41
|
+
}
|
|
42
|
+
export declare function settingsSaveSetting(props: SettingsSaveSettingProps): Promise<SettingsSaveSettingOkResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Create or update Ticket Service Settings
|
|
45
|
+
*/
|
|
46
|
+
export declare function useSettingsSaveSettingMutation(options?: Omit<UseMutationOptions<SettingsSaveSettingOkResponse, SettingsSaveSettingErrorResponse, SettingsSaveSettingProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SettingsSaveSettingOkResponse, NotFound, SettingsSaveSettingProps, 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 settingsSaveSetting(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/settings`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create or update Ticket Service Settings
|
|
11
|
+
*/
|
|
12
|
+
export function useSettingsSaveSettingMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => settingsSaveSetting(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -29,7 +29,7 @@ export interface TicketsCreateTicketMutationQueryParams {
|
|
|
29
29
|
export interface TicketsCreateTicketMutationHeaderParams {
|
|
30
30
|
/**
|
|
31
31
|
* Harness personal or service access token
|
|
32
|
-
* @example "
|
|
32
|
+
* @example "Iure placeat voluptatum repudiandae alias corrupti."
|
|
33
33
|
*/
|
|
34
34
|
'X-Api-Key'?: string;
|
|
35
35
|
}
|
|
@@ -53,11 +53,15 @@ export interface TicketsListTicketsQueryQueryParams {
|
|
|
53
53
|
* @example "PROJ-1234"
|
|
54
54
|
*/
|
|
55
55
|
externalId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* When true, skip Jira GetIssue enrichment on each returned ticket
|
|
58
|
+
*/
|
|
59
|
+
skipJiraEnrichment?: boolean;
|
|
56
60
|
}
|
|
57
61
|
export interface TicketsListTicketsQueryHeaderParams {
|
|
58
62
|
/**
|
|
59
63
|
* Harness personal or service access token
|
|
60
|
-
* @example "
|
|
64
|
+
* @example "Qui ea nobis."
|
|
61
65
|
*/
|
|
62
66
|
'X-Api-Key'?: string;
|
|
63
67
|
}
|
|
@@ -1,31 +1,71 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
+
export type { IntegrationsListIntegrationsErrorResponse, IntegrationsListIntegrationsOkResponse, IntegrationsListIntegrationsProps, IntegrationsListIntegrationsQueryQueryParams, } from './hooks/useIntegrationsListIntegrationsQuery';
|
|
3
|
+
export { integrationsListIntegrations, useIntegrationsListIntegrationsQuery, } from './hooks/useIntegrationsListIntegrationsQuery';
|
|
2
4
|
export type { MetadataGetProjectCreateMetadataErrorResponse, MetadataGetProjectCreateMetadataOkResponse, MetadataGetProjectCreateMetadataProps, MetadataGetProjectCreateMetadataQueryPathParams, MetadataGetProjectCreateMetadataQueryQueryParams, } from './hooks/useMetadataGetProjectCreateMetadataQuery';
|
|
3
5
|
export { metadataGetProjectCreateMetadata, useMetadataGetProjectCreateMetadataQuery, } from './hooks/useMetadataGetProjectCreateMetadataQuery';
|
|
4
6
|
export type { MetadataGetProjectErrorResponse, MetadataGetProjectOkResponse, MetadataGetProjectProps, MetadataGetProjectQueryPathParams, MetadataGetProjectQueryQueryParams, } from './hooks/useMetadataGetProjectQuery';
|
|
5
7
|
export { metadataGetProject, useMetadataGetProjectQuery } from './hooks/useMetadataGetProjectQuery';
|
|
8
|
+
export type { MetadataGetProjectStatusesErrorResponse, MetadataGetProjectStatusesOkResponse, MetadataGetProjectStatusesProps, MetadataGetProjectStatusesQueryPathParams, MetadataGetProjectStatusesQueryQueryParams, } from './hooks/useMetadataGetProjectStatusesQuery';
|
|
9
|
+
export { metadataGetProjectStatuses, useMetadataGetProjectStatusesQuery, } from './hooks/useMetadataGetProjectStatusesQuery';
|
|
10
|
+
export type { MetadataGetProjectTransitionsErrorResponse, MetadataGetProjectTransitionsOkResponse, MetadataGetProjectTransitionsProps, MetadataGetProjectTransitionsQueryPathParams, MetadataGetProjectTransitionsQueryQueryParams, } from './hooks/useMetadataGetProjectTransitionsQuery';
|
|
11
|
+
export { metadataGetProjectTransitions, useMetadataGetProjectTransitionsQuery, } from './hooks/useMetadataGetProjectTransitionsQuery';
|
|
6
12
|
export type { MetadataListProjectsErrorResponse, MetadataListProjectsOkResponse, MetadataListProjectsProps, MetadataListProjectsQueryQueryParams, } from './hooks/useMetadataListProjectsQuery';
|
|
7
13
|
export { metadataListProjects, useMetadataListProjectsQuery, } from './hooks/useMetadataListProjectsQuery';
|
|
14
|
+
export type { RoutingRulesBulkCreateRoutingRulesErrorResponse, RoutingRulesBulkCreateRoutingRulesMutationQueryParams, RoutingRulesBulkCreateRoutingRulesOkResponse, RoutingRulesBulkCreateRoutingRulesProps, RoutingRulesBulkCreateRoutingRulesRequestBody, } from './hooks/useRoutingRulesBulkCreateRoutingRulesMutation';
|
|
15
|
+
export { routingRulesBulkCreateRoutingRules, useRoutingRulesBulkCreateRoutingRulesMutation, } from './hooks/useRoutingRulesBulkCreateRoutingRulesMutation';
|
|
16
|
+
export type { RoutingRulesCreateRoutingRuleErrorResponse, RoutingRulesCreateRoutingRuleMutationQueryParams, RoutingRulesCreateRoutingRuleOkResponse, RoutingRulesCreateRoutingRuleProps, RoutingRulesCreateRoutingRuleRequestBody, } from './hooks/useRoutingRulesCreateRoutingRuleMutation';
|
|
17
|
+
export { routingRulesCreateRoutingRule, useRoutingRulesCreateRoutingRuleMutation, } from './hooks/useRoutingRulesCreateRoutingRuleMutation';
|
|
18
|
+
export type { RoutingRulesDeleteRoutingRuleErrorResponse, RoutingRulesDeleteRoutingRuleMutationPathParams, RoutingRulesDeleteRoutingRuleMutationQueryParams, RoutingRulesDeleteRoutingRuleOkResponse, RoutingRulesDeleteRoutingRuleProps, } from './hooks/useRoutingRulesDeleteRoutingRuleMutation';
|
|
19
|
+
export { routingRulesDeleteRoutingRule, useRoutingRulesDeleteRoutingRuleMutation, } from './hooks/useRoutingRulesDeleteRoutingRuleMutation';
|
|
20
|
+
export type { RoutingRulesGetRoutingRuleErrorResponse, RoutingRulesGetRoutingRuleOkResponse, RoutingRulesGetRoutingRuleProps, RoutingRulesGetRoutingRuleQueryPathParams, RoutingRulesGetRoutingRuleQueryQueryParams, } from './hooks/useRoutingRulesGetRoutingRuleQuery';
|
|
21
|
+
export { routingRulesGetRoutingRule, useRoutingRulesGetRoutingRuleQuery, } from './hooks/useRoutingRulesGetRoutingRuleQuery';
|
|
22
|
+
export type { RoutingRulesListRoutingRulesErrorResponse, RoutingRulesListRoutingRulesOkResponse, RoutingRulesListRoutingRulesProps, RoutingRulesListRoutingRulesQueryQueryParams, } from './hooks/useRoutingRulesListRoutingRulesQuery';
|
|
23
|
+
export { routingRulesListRoutingRules, useRoutingRulesListRoutingRulesQuery, } from './hooks/useRoutingRulesListRoutingRulesQuery';
|
|
24
|
+
export type { RoutingRulesResolveRoutingRuleErrorResponse, RoutingRulesResolveRoutingRuleOkResponse, RoutingRulesResolveRoutingRuleProps, RoutingRulesResolveRoutingRuleQueryQueryParams, } from './hooks/useRoutingRulesResolveRoutingRuleQuery';
|
|
25
|
+
export { routingRulesResolveRoutingRule, useRoutingRulesResolveRoutingRuleQuery, } from './hooks/useRoutingRulesResolveRoutingRuleQuery';
|
|
26
|
+
export type { RoutingRulesUpdateRoutingRuleErrorResponse, RoutingRulesUpdateRoutingRuleMutationPathParams, RoutingRulesUpdateRoutingRuleMutationQueryParams, RoutingRulesUpdateRoutingRuleOkResponse, RoutingRulesUpdateRoutingRuleProps, RoutingRulesUpdateRoutingRuleRequestBody, } from './hooks/useRoutingRulesUpdateRoutingRuleMutation';
|
|
27
|
+
export { routingRulesUpdateRoutingRule, useRoutingRulesUpdateRoutingRuleMutation, } from './hooks/useRoutingRulesUpdateRoutingRuleMutation';
|
|
28
|
+
export type { SettingsDeleteSettingErrorResponse, SettingsDeleteSettingMutationQueryParams, SettingsDeleteSettingOkResponse, SettingsDeleteSettingProps, } from './hooks/useSettingsDeleteSettingMutation';
|
|
29
|
+
export { settingsDeleteSetting, useSettingsDeleteSettingMutation, } from './hooks/useSettingsDeleteSettingMutation';
|
|
8
30
|
export type { SettingsGetSettingErrorResponse, SettingsGetSettingOkResponse, SettingsGetSettingProps, SettingsGetSettingQueryQueryParams, } from './hooks/useSettingsGetSettingQuery';
|
|
9
31
|
export { settingsGetSetting, useSettingsGetSettingQuery } from './hooks/useSettingsGetSettingQuery';
|
|
32
|
+
export type { SettingsSaveSettingErrorResponse, SettingsSaveSettingMutationQueryParams, SettingsSaveSettingOkResponse, SettingsSaveSettingProps, SettingsSaveSettingRequestBody, } from './hooks/useSettingsSaveSettingMutation';
|
|
33
|
+
export { settingsSaveSetting, useSettingsSaveSettingMutation, } from './hooks/useSettingsSaveSettingMutation';
|
|
10
34
|
export type { TicketsCreateTicketErrorResponse, TicketsCreateTicketMutationQueryParams, TicketsCreateTicketOkResponse, TicketsCreateTicketProps, TicketsCreateTicketRequestBody, } from './hooks/useTicketsCreateTicketMutation';
|
|
11
35
|
export { ticketsCreateTicket, useTicketsCreateTicketMutation, } from './hooks/useTicketsCreateTicketMutation';
|
|
12
36
|
export type { TicketsListTicketsErrorResponse, TicketsListTicketsOkResponse, TicketsListTicketsProps, TicketsListTicketsQueryQueryParams, } from './hooks/useTicketsListTicketsQuery';
|
|
13
37
|
export { ticketsListTickets, useTicketsListTicketsQuery } from './hooks/useTicketsListTicketsQuery';
|
|
38
|
+
export type { BulkCreateRoutingRulesRequestBody } from './schemas/BulkCreateRoutingRulesRequestBody';
|
|
39
|
+
export type { CreateRoutingRuleRequestBody } from './schemas/CreateRoutingRuleRequestBody';
|
|
14
40
|
export type { CreateTicketRequestBody } from './schemas/CreateTicketRequestBody';
|
|
15
41
|
export type { FieldMetadata } from './schemas/FieldMetadata';
|
|
16
42
|
export type { IdResult } from './schemas/IdResult';
|
|
43
|
+
export type { Integration } from './schemas/Integration';
|
|
44
|
+
export type { IntegrationsListIntegrationsResponseBody } from './schemas/IntegrationsListIntegrationsResponseBody';
|
|
17
45
|
export type { IssueCreateMetadata } from './schemas/IssueCreateMetadata';
|
|
18
46
|
export type { JiraAllowedValues } from './schemas/JiraAllowedValues';
|
|
47
|
+
export type { JiraStatus } from './schemas/JiraStatus';
|
|
48
|
+
export type { JiraStatusCategory } from './schemas/JiraStatusCategory';
|
|
19
49
|
export type { ListProjectsResponse } from './schemas/ListProjectsResponse';
|
|
20
50
|
export type { MetadataGetProjectCreateMetadataResponseBody } from './schemas/MetadataGetProjectCreateMetadataResponseBody';
|
|
51
|
+
export type { MetadataGetProjectStatusesResponseBody } from './schemas/MetadataGetProjectStatusesResponseBody';
|
|
52
|
+
export type { MetadataGetProjectTransitionsResponseBody } from './schemas/MetadataGetProjectTransitionsResponseBody';
|
|
21
53
|
export type { MetadataListProjectsResponseBody } from './schemas/MetadataListProjectsResponseBody';
|
|
22
54
|
export type { NotFound } from './schemas/NotFound';
|
|
23
55
|
export type { Pagination } from './schemas/Pagination';
|
|
24
56
|
export type { Project } from './schemas/Project';
|
|
25
57
|
export type { ProjectCreateMetadataResponse } from './schemas/ProjectCreateMetadataResponse';
|
|
58
|
+
export type { ProjectStatusesResponse } from './schemas/ProjectStatusesResponse';
|
|
59
|
+
export type { ProjectTransitionsResponse } from './schemas/ProjectTransitionsResponse';
|
|
60
|
+
export type { RoutingRuleParams } from './schemas/RoutingRuleParams';
|
|
61
|
+
export type { RoutingRuleResult } from './schemas/RoutingRuleResult';
|
|
62
|
+
export type { RoutingRuleTarget } from './schemas/RoutingRuleTarget';
|
|
63
|
+
export type { RoutingRulesCreateRoutingRuleResponseBody } from './schemas/RoutingRulesCreateRoutingRuleResponseBody';
|
|
64
|
+
export type { SaveSettingRequestBody } from './schemas/SaveSettingRequestBody';
|
|
26
65
|
export type { Setting } from './schemas/Setting';
|
|
27
66
|
export type { Ticket } from './schemas/Ticket';
|
|
28
67
|
export type { TicketProviderUser } from './schemas/TicketProviderUser';
|
|
29
68
|
export type { TicketType } from './schemas/TicketType';
|
|
30
69
|
export type { TicketsCreateTicketResponseBody } from './schemas/TicketsCreateTicketResponseBody';
|
|
31
70
|
export type { TicketsListTicketsResponseBody } from './schemas/TicketsListTicketsResponseBody';
|
|
71
|
+
export type { TransitionSet } from './schemas/TransitionSet';
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
export { integrationsListIntegrations, useIntegrationsListIntegrationsQuery, } from './hooks/useIntegrationsListIntegrationsQuery';
|
|
1
2
|
export { metadataGetProjectCreateMetadata, useMetadataGetProjectCreateMetadataQuery, } from './hooks/useMetadataGetProjectCreateMetadataQuery';
|
|
2
3
|
export { metadataGetProject, useMetadataGetProjectQuery } from './hooks/useMetadataGetProjectQuery';
|
|
4
|
+
export { metadataGetProjectStatuses, useMetadataGetProjectStatusesQuery, } from './hooks/useMetadataGetProjectStatusesQuery';
|
|
5
|
+
export { metadataGetProjectTransitions, useMetadataGetProjectTransitionsQuery, } from './hooks/useMetadataGetProjectTransitionsQuery';
|
|
3
6
|
export { metadataListProjects, useMetadataListProjectsQuery, } from './hooks/useMetadataListProjectsQuery';
|
|
7
|
+
export { routingRulesBulkCreateRoutingRules, useRoutingRulesBulkCreateRoutingRulesMutation, } from './hooks/useRoutingRulesBulkCreateRoutingRulesMutation';
|
|
8
|
+
export { routingRulesCreateRoutingRule, useRoutingRulesCreateRoutingRuleMutation, } from './hooks/useRoutingRulesCreateRoutingRuleMutation';
|
|
9
|
+
export { routingRulesDeleteRoutingRule, useRoutingRulesDeleteRoutingRuleMutation, } from './hooks/useRoutingRulesDeleteRoutingRuleMutation';
|
|
10
|
+
export { routingRulesGetRoutingRule, useRoutingRulesGetRoutingRuleQuery, } from './hooks/useRoutingRulesGetRoutingRuleQuery';
|
|
11
|
+
export { routingRulesListRoutingRules, useRoutingRulesListRoutingRulesQuery, } from './hooks/useRoutingRulesListRoutingRulesQuery';
|
|
12
|
+
export { routingRulesResolveRoutingRule, useRoutingRulesResolveRoutingRuleQuery, } from './hooks/useRoutingRulesResolveRoutingRuleQuery';
|
|
13
|
+
export { routingRulesUpdateRoutingRule, useRoutingRulesUpdateRoutingRuleMutation, } from './hooks/useRoutingRulesUpdateRoutingRuleMutation';
|
|
14
|
+
export { settingsDeleteSetting, useSettingsDeleteSettingMutation, } from './hooks/useSettingsDeleteSettingMutation';
|
|
4
15
|
export { settingsGetSetting, useSettingsGetSettingQuery } from './hooks/useSettingsGetSettingQuery';
|
|
16
|
+
export { settingsSaveSetting, useSettingsSaveSettingMutation, } from './hooks/useSettingsSaveSettingMutation';
|
|
5
17
|
export { ticketsCreateTicket, useTicketsCreateTicketMutation, } from './hooks/useTicketsCreateTicketMutation';
|
|
6
18
|
export { ticketsListTickets, useTicketsListTicketsQuery } from './hooks/useTicketsListTicketsQuery';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CreateRoutingRuleRequestBody } from '../schemas/CreateRoutingRuleRequestBody';
|
|
2
|
+
/**
|
|
3
|
+
* @example {"rules":[{"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"}]},{"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"}]},{"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"}]}]}
|
|
4
|
+
*/
|
|
5
|
+
export interface BulkCreateRoutingRulesRequestBody {
|
|
6
|
+
/**
|
|
7
|
+
* @example [{"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"}]},{"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"}]},{"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"}]}]
|
|
8
|
+
*/
|
|
9
|
+
rules: CreateRoutingRuleRequestBody[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { RoutingRuleTarget } from '../schemas/RoutingRuleTarget';
|
|
2
|
+
/**
|
|
3
|
+
* @example {"issueType":"Bug","lifecycleOverrides":{"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"},"projectFieldDefaults":{"Component":{"id":"10001","name":"Payments"}},"projectKey":"PAY","resourceType":"target","targets":[{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"}]}
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateRoutingRuleRequestBody {
|
|
6
|
+
/**
|
|
7
|
+
* Jira issue type
|
|
8
|
+
* @example "Bug"
|
|
9
|
+
*/
|
|
10
|
+
issueType: string;
|
|
11
|
+
/**
|
|
12
|
+
* Per-Jira-project transition configuration for auto-close and auto-reopen
|
|
13
|
+
* @example {"remediatedStatus":"Done","remediatedTransitionFields":{"resolution":{"name":"Fixed"}},"remediatedTransitionId":"31","reopenedStatus":"To Do","reopenedTransitionId":"11"}
|
|
14
|
+
*/
|
|
15
|
+
lifecycleOverrides?: {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Default Jira fields to set
|
|
20
|
+
* @example {"Component":{"id":"10001","name":"Payments"}}
|
|
21
|
+
*/
|
|
22
|
+
projectFieldDefaults?: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Jira project key
|
|
27
|
+
* @example "PAY"
|
|
28
|
+
*/
|
|
29
|
+
projectKey: string;
|
|
30
|
+
/**
|
|
31
|
+
* Resource type to match. '' means catch-all (matches any resource type).
|
|
32
|
+
* @example "target"
|
|
33
|
+
*/
|
|
34
|
+
resourceType: string;
|
|
35
|
+
/**
|
|
36
|
+
* Targets this rule applies to. A target may be used by only one rule per scope.
|
|
37
|
+
* @example [{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"}]
|
|
38
|
+
*/
|
|
39
|
+
targets: RoutingRuleTarget[];
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import type { RoutingRuleParams } from '../schemas/RoutingRuleParams';
|
|
1
2
|
/**
|
|
2
|
-
* @example {"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","priority":"High","projectKey":"ABC","title":"A new ticket"}
|
|
3
|
+
* @example {"autoCreated":false,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","priority":"High","projectKey":"ABC","routingRule":{"resource":"payments-api","resourceType":"target"},"title":"A new ticket"}
|
|
3
4
|
*/
|
|
4
5
|
export interface CreateTicketRequestBody {
|
|
6
|
+
/**
|
|
7
|
+
* Indicates the ticket was auto-created by an internal workflow
|
|
8
|
+
*/
|
|
9
|
+
autoCreated?: boolean;
|
|
5
10
|
/**
|
|
6
11
|
* Custom fields to add to this External Ticket
|
|
7
12
|
* @example {"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]}
|
|
@@ -45,6 +50,7 @@ export interface CreateTicketRequestBody {
|
|
|
45
50
|
* @example "ABC"
|
|
46
51
|
*/
|
|
47
52
|
projectKey?: string;
|
|
53
|
+
routingRule?: RoutingRuleParams;
|
|
48
54
|
/**
|
|
49
55
|
* The title for this External Ticket
|
|
50
56
|
* @example "A new ticket"
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import type { JiraAllowedValues } from '../schemas/JiraAllowedValues';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"allowedValues":[{"id":"
|
|
3
|
+
* @example {"allowedValues":[{"id":"Perspiciatis rerum qui incidunt vero.","name":"Vel voluptates.","value":"A iusto dolore et."},{"id":"Perspiciatis rerum qui incidunt vero.","name":"Vel voluptates.","value":"A iusto dolore et."},{"id":"Perspiciatis rerum qui incidunt vero.","name":"Vel voluptates.","value":"A iusto dolore et."}],"autoCompleteUrl":"Excepturi neque minus cupiditate impedit aut aliquam.","hasDefaultValue":false,"isRequired":false,"name":"Perferendis impedit omnis.","operations":["Autem nostrum quos qui.","Qui sunt.","Deserunt aliquid.","Ut quam nisi molestias."],"schema":{"Distinctio voluptate tenetur nobis et ullam.":"Reprehenderit facilis."}}
|
|
4
4
|
*/
|
|
5
5
|
export interface FieldMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"id":"
|
|
7
|
+
* @example [{"id":"Perspiciatis rerum qui incidunt vero.","name":"Vel voluptates.","value":"A iusto dolore et."},{"id":"Perspiciatis rerum qui incidunt vero.","name":"Vel voluptates.","value":"A iusto dolore et."},{"id":"Perspiciatis rerum qui incidunt vero.","name":"Vel voluptates.","value":"A iusto dolore et."}]
|
|
8
8
|
*/
|
|
9
9
|
allowedValues?: JiraAllowedValues[];
|
|
10
10
|
/**
|
|
11
|
-
* @example "
|
|
11
|
+
* @example "Dolor id quas facilis et eos doloribus."
|
|
12
12
|
*/
|
|
13
13
|
autoCompleteUrl?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @example true
|
|
16
16
|
*/
|
|
17
17
|
hasDefaultValue: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @example true
|
|
20
|
+
*/
|
|
18
21
|
isRequired: boolean;
|
|
19
22
|
/**
|
|
20
|
-
* @example "
|
|
23
|
+
* @example "Vitae est qui quia."
|
|
21
24
|
*/
|
|
22
25
|
name: string;
|
|
23
26
|
/**
|
|
24
|
-
* @example ["
|
|
27
|
+
* @example ["Est et.","Excepturi incidunt exercitationem quia eveniet in ea.","Eos pariatur reprehenderit consequatur."]
|
|
25
28
|
*/
|
|
26
29
|
operations: string[];
|
|
27
30
|
/**
|
|
28
|
-
* @example {"
|
|
31
|
+
* @example {"Molestiae minima quaerat dolores quasi quos.":"Corporis vel velit praesentium esse.","Nisi laboriosam maxime quasi rem pariatur.":"Ea esse minima optio et.","Omnis eos earum iure magni explicabo nam.":"Porro incidunt."}
|
|
29
32
|
*/
|
|
30
33
|
schema: {
|
|
31
34
|
[key: string]: any;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"id":"abcdef1234567890ghijkl"}
|
|
2
|
+
* @example {"externalId":"PROJ-1234","id":"abcdef1234567890ghijkl","url":"https://example.atlassian.net/browse/PROJ-1234"}
|
|
3
3
|
*/
|
|
4
4
|
export interface IdResult {
|
|
5
|
+
/**
|
|
6
|
+
* External Ticket ID from the ticket provider
|
|
7
|
+
* @example "PROJ-1234"
|
|
8
|
+
*/
|
|
9
|
+
externalId?: string;
|
|
5
10
|
/**
|
|
6
11
|
* Resource identifier
|
|
7
12
|
* @example "abcdef1234567890ghijkl"
|
|
8
13
|
*/
|
|
9
14
|
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Browse URL of the External Ticket on the ticket provider. Same shape as Ticket.url: {jiraBase}/browse/{externalId}.
|
|
17
|
+
* @example "https://example.atlassian.net/browse/PROJ-1234"
|
|
18
|
+
*/
|
|
19
|
+
url?: string;
|
|
10
20
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { RoutingRuleTarget } from '../schemas/RoutingRuleTarget';
|
|
2
|
+
/**
|
|
3
|
+
* One Jira integration row: the default setting or a routing rule with its targets
|
|
4
|
+
* @example {"id":"abcdef1234567890ghijkl","isDefault":false,"issueType":"Bug","lastModified":1651578240,"orgId":"example_org","projectId":"example_project","projectKey":"STO","targets":[{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"}]}
|
|
5
|
+
*/
|
|
6
|
+
export interface Integration {
|
|
7
|
+
/**
|
|
8
|
+
* Routing rule ID. Null on the default row.
|
|
9
|
+
* @example "abcdef1234567890ghijkl"
|
|
10
|
+
*/
|
|
11
|
+
id?: string;
|
|
12
|
+
/**
|
|
13
|
+
* True for the row built from the setting
|
|
14
|
+
*/
|
|
15
|
+
isDefault: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Jira issue type
|
|
18
|
+
* @example "Bug"
|
|
19
|
+
*/
|
|
20
|
+
issueType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Unix timestamp at which the resource was most recently modified
|
|
23
|
+
* @format int64
|
|
24
|
+
* @example 1651578240
|
|
25
|
+
*/
|
|
26
|
+
lastModified?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The organisation where this row is stored. For the default row this may differ from the request scope when the setting is inherited.
|
|
29
|
+
* @example "example_org"
|
|
30
|
+
*/
|
|
31
|
+
orgId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The project where this row is stored. For the default row this may differ from the request scope when the setting is inherited.
|
|
34
|
+
* @example "example_project"
|
|
35
|
+
*/
|
|
36
|
+
projectId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Jira project key
|
|
39
|
+
* @example "STO"
|
|
40
|
+
*/
|
|
41
|
+
projectKey?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Targets this row applies to. Empty on the default row, which applies to all targets.
|
|
44
|
+
* @example [{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"},{"pattern":"payments-api","patternType":"literal"}]
|
|
45
|
+
*/
|
|
46
|
+
targets: RoutingRuleTarget[];
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|