@harnessio/react-ticket-service-client 0.2.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/useMetadataListProjectsQuery.d.ts +6 -1
- 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 +1 -1
- package/dist/ticket-service/src/services/index.d.ts +5 -0
- package/dist/ticket-service/src/services/index.js +2 -0
- package/dist/ticket-service/src/services/schemas/CreateTicketRequestBody.d.ts +5 -1
- package/dist/ticket-service/src/services/schemas/FieldMetadata.d.ts +6 -9
- package/dist/ticket-service/src/services/schemas/IdResult.d.ts +6 -1
- 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/ListProjectsResponse.d.ts +2 -2
- 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/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 +5 -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/package.json +1 -1
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 "Maiores adipisci perspiciatis sequi."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
}
|
|
@@ -31,11 +31,16 @@ export interface MetadataGetProjectCreateMetadataQueryQueryParams {
|
|
|
31
31
|
* @example "sto"
|
|
32
32
|
*/
|
|
33
33
|
module?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @example "account.Jira_Connector_ID"
|
|
37
|
+
*/
|
|
38
|
+
connectorId?: string;
|
|
34
39
|
}
|
|
35
40
|
export interface MetadataGetProjectCreateMetadataQueryHeaderParams {
|
|
36
41
|
/**
|
|
37
42
|
* Harness personal or service access token
|
|
38
|
-
* @example "
|
|
43
|
+
* @example "Non repudiandae qui."
|
|
39
44
|
*/
|
|
40
45
|
'X-Api-Key'?: string;
|
|
41
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 "Similique ab qui reprehenderit earum velit et."
|
|
10
10
|
*/
|
|
11
11
|
id: string;
|
|
12
12
|
}
|
|
@@ -31,11 +31,16 @@ export interface MetadataGetProjectQueryQueryParams {
|
|
|
31
31
|
* @example "sto"
|
|
32
32
|
*/
|
|
33
33
|
module?: string;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
* @example "account.Jira_Connector_ID"
|
|
37
|
+
*/
|
|
38
|
+
connectorId?: string;
|
|
34
39
|
}
|
|
35
40
|
export interface MetadataGetProjectQueryHeaderParams {
|
|
36
41
|
/**
|
|
37
42
|
* Harness personal or service access token
|
|
38
|
-
* @example "
|
|
43
|
+
* @example "Itaque quo."
|
|
39
44
|
*/
|
|
40
45
|
'X-Api-Key'?: string;
|
|
41
46
|
}
|
|
@@ -24,11 +24,16 @@ export interface MetadataListProjectsQueryQueryParams {
|
|
|
24
24
|
* @example "sto"
|
|
25
25
|
*/
|
|
26
26
|
module?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 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.
|
|
29
|
+
* @example "account.Jira_Connector_ID"
|
|
30
|
+
*/
|
|
31
|
+
connectorId?: string;
|
|
27
32
|
}
|
|
28
33
|
export interface MetadataListProjectsQueryHeaderParams {
|
|
29
34
|
/**
|
|
30
35
|
* Harness personal or service access token
|
|
31
|
-
* @example "
|
|
36
|
+
* @example "Distinctio atque vitae."
|
|
32
37
|
*/
|
|
33
38
|
'X-Api-Key'?: string;
|
|
34
39
|
}
|
|
@@ -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 "Dolorem aperiam natus eveniet placeat nobis."
|
|
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 "Aut rerum qui."
|
|
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 "Voluptatem omnis voluptas iusto eius et."
|
|
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 "Magnam ipsa aspernatur molestiae facere."
|
|
33
33
|
*/
|
|
34
34
|
'X-Api-Key'?: string;
|
|
35
35
|
}
|
|
@@ -57,7 +57,7 @@ export interface TicketsListTicketsQueryQueryParams {
|
|
|
57
57
|
export interface TicketsListTicketsQueryHeaderParams {
|
|
58
58
|
/**
|
|
59
59
|
* Harness personal or service access token
|
|
60
|
-
* @example "
|
|
60
|
+
* @example "Exercitationem sequi et."
|
|
61
61
|
*/
|
|
62
62
|
'X-Api-Key'?: string;
|
|
63
63
|
}
|
|
@@ -5,8 +5,12 @@ export type { MetadataGetProjectErrorResponse, MetadataGetProjectOkResponse, Met
|
|
|
5
5
|
export { metadataGetProject, useMetadataGetProjectQuery } from './hooks/useMetadataGetProjectQuery';
|
|
6
6
|
export type { MetadataListProjectsErrorResponse, MetadataListProjectsOkResponse, MetadataListProjectsProps, MetadataListProjectsQueryQueryParams, } from './hooks/useMetadataListProjectsQuery';
|
|
7
7
|
export { metadataListProjects, useMetadataListProjectsQuery, } from './hooks/useMetadataListProjectsQuery';
|
|
8
|
+
export type { SettingsDeleteSettingErrorResponse, SettingsDeleteSettingMutationQueryParams, SettingsDeleteSettingOkResponse, SettingsDeleteSettingProps, } from './hooks/useSettingsDeleteSettingMutation';
|
|
9
|
+
export { settingsDeleteSetting, useSettingsDeleteSettingMutation, } from './hooks/useSettingsDeleteSettingMutation';
|
|
8
10
|
export type { SettingsGetSettingErrorResponse, SettingsGetSettingOkResponse, SettingsGetSettingProps, SettingsGetSettingQueryQueryParams, } from './hooks/useSettingsGetSettingQuery';
|
|
9
11
|
export { settingsGetSetting, useSettingsGetSettingQuery } from './hooks/useSettingsGetSettingQuery';
|
|
12
|
+
export type { SettingsSaveSettingErrorResponse, SettingsSaveSettingMutationQueryParams, SettingsSaveSettingOkResponse, SettingsSaveSettingProps, SettingsSaveSettingRequestBody, } from './hooks/useSettingsSaveSettingMutation';
|
|
13
|
+
export { settingsSaveSetting, useSettingsSaveSettingMutation, } from './hooks/useSettingsSaveSettingMutation';
|
|
10
14
|
export type { TicketsCreateTicketErrorResponse, TicketsCreateTicketMutationQueryParams, TicketsCreateTicketOkResponse, TicketsCreateTicketProps, TicketsCreateTicketRequestBody, } from './hooks/useTicketsCreateTicketMutation';
|
|
11
15
|
export { ticketsCreateTicket, useTicketsCreateTicketMutation, } from './hooks/useTicketsCreateTicketMutation';
|
|
12
16
|
export type { TicketsListTicketsErrorResponse, TicketsListTicketsOkResponse, TicketsListTicketsProps, TicketsListTicketsQueryQueryParams, } from './hooks/useTicketsListTicketsQuery';
|
|
@@ -23,6 +27,7 @@ export type { NotFound } from './schemas/NotFound';
|
|
|
23
27
|
export type { Pagination } from './schemas/Pagination';
|
|
24
28
|
export type { Project } from './schemas/Project';
|
|
25
29
|
export type { ProjectCreateMetadataResponse } from './schemas/ProjectCreateMetadataResponse';
|
|
30
|
+
export type { SaveSettingRequestBody } from './schemas/SaveSettingRequestBody';
|
|
26
31
|
export type { Setting } from './schemas/Setting';
|
|
27
32
|
export type { Ticket } from './schemas/Ticket';
|
|
28
33
|
export type { TicketProviderUser } from './schemas/TicketProviderUser';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { metadataGetProjectCreateMetadata, useMetadataGetProjectCreateMetadataQuery, } from './hooks/useMetadataGetProjectCreateMetadataQuery';
|
|
2
2
|
export { metadataGetProject, useMetadataGetProjectQuery } from './hooks/useMetadataGetProjectQuery';
|
|
3
3
|
export { metadataListProjects, useMetadataListProjectsQuery, } from './hooks/useMetadataListProjectsQuery';
|
|
4
|
+
export { settingsDeleteSetting, useSettingsDeleteSettingMutation, } from './hooks/useSettingsDeleteSettingMutation';
|
|
4
5
|
export { settingsGetSetting, useSettingsGetSettingQuery } from './hooks/useSettingsGetSettingQuery';
|
|
6
|
+
export { settingsSaveSetting, useSettingsSaveSettingMutation, } from './hooks/useSettingsSaveSettingMutation';
|
|
5
7
|
export { ticketsCreateTicket, useTicketsCreateTicketMutation, } from './hooks/useTicketsCreateTicketMutation';
|
|
6
8
|
export { ticketsListTickets, useTicketsListTicketsQuery } from './hooks/useTicketsListTicketsQuery';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
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"}
|
|
2
|
+
* @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","title":"A new ticket"}
|
|
3
3
|
*/
|
|
4
4
|
export interface CreateTicketRequestBody {
|
|
5
|
+
/**
|
|
6
|
+
* Indicates the ticket was auto-created by an internal workflow
|
|
7
|
+
*/
|
|
8
|
+
autoCreated?: boolean;
|
|
5
9
|
/**
|
|
6
10
|
* Custom fields to add to this External Ticket
|
|
7
11
|
* @example {"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]}
|
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
import type { JiraAllowedValues } from '../schemas/JiraAllowedValues';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"allowedValues":[{"id":"
|
|
3
|
+
* @example {"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Sint quia nihil optio quia ea.","hasDefaultValue":false,"isRequired":false,"name":"Beatae quidem sint magnam rerum qui earum.","operations":["Ab occaecati dolorem.","Reprehenderit sequi suscipit ducimus et aut deserunt.","Illum quo."],"schema":{"Ipsa quia rerum dolorem nam.":"Quaerat vitae doloribus."}}
|
|
4
4
|
*/
|
|
5
5
|
export interface FieldMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example [{"id":"
|
|
7
|
+
* @example [{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}]
|
|
8
8
|
*/
|
|
9
9
|
allowedValues?: JiraAllowedValues[];
|
|
10
10
|
/**
|
|
11
|
-
* @example "
|
|
11
|
+
* @example "Porro tempora itaque nihil iure."
|
|
12
12
|
*/
|
|
13
13
|
autoCompleteUrl?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @example true
|
|
16
|
-
*/
|
|
17
14
|
hasDefaultValue: boolean;
|
|
18
15
|
isRequired: boolean;
|
|
19
16
|
/**
|
|
20
|
-
* @example "
|
|
17
|
+
* @example "Tenetur laborum ipsum nihil."
|
|
21
18
|
*/
|
|
22
19
|
name: string;
|
|
23
20
|
/**
|
|
24
|
-
* @example ["
|
|
21
|
+
* @example ["Fuga sint aliquid et officiis illo quis.","Alias dignissimos ullam magnam nihil.","Enim eos aut porro dolorem quidem.","Vel eum dicta eveniet iure harum."]
|
|
25
22
|
*/
|
|
26
23
|
operations: string[];
|
|
27
24
|
/**
|
|
28
|
-
* @example {"
|
|
25
|
+
* @example {"Et et dolore culpa et in iusto.":"Voluptate aspernatur.","Nemo ratione.":"Earum quam et."}
|
|
29
26
|
*/
|
|
30
27
|
schema: {
|
|
31
28
|
[key: string]: any;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"id":"abcdef1234567890ghijkl"}
|
|
2
|
+
* @example {"externalId":"PROJ-1234","id":"abcdef1234567890ghijkl"}
|
|
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"
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import type { FieldMetadata } from '../schemas/FieldMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"description":"
|
|
3
|
+
* @example {"description":"Deserunt illo eligendi ipsum dolor voluptates iure.","fields":{"Aut eius est.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}},"Molestiae eum.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}},"id":"Veniam consequuntur.","isSubtask":true,"name":"Omnis ut."}
|
|
4
4
|
*/
|
|
5
5
|
export interface IssueCreateMetadata {
|
|
6
6
|
/**
|
|
7
|
-
* @example "
|
|
7
|
+
* @example "Et dolores perspiciatis adipisci."
|
|
8
8
|
*/
|
|
9
9
|
description: string;
|
|
10
10
|
/**
|
|
11
|
-
* @example {"
|
|
11
|
+
* @example {"Est architecto illum suscipit omnis quae.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}},"Maiores est beatae et dicta asperiores totam.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}},"Praesentium fugit aut ducimus ipsa et quam.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}}
|
|
12
12
|
*/
|
|
13
13
|
fields: {
|
|
14
14
|
[key: string]: FieldMetadata;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* @example "
|
|
17
|
+
* @example "Sit hic."
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* @example true
|
|
22
|
+
*/
|
|
20
23
|
isSubtask: boolean;
|
|
21
24
|
/**
|
|
22
|
-
* @example "
|
|
25
|
+
* @example "Et vel iure vero occaecati et ut."
|
|
23
26
|
*/
|
|
24
27
|
name: string;
|
|
25
28
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"id":"
|
|
2
|
+
* @example {"id":"Rerum voluptatum ut a id.","name":"Aut veritatis suscipit sed vel natus.","value":"Quos eius esse sint."}
|
|
3
3
|
*/
|
|
4
4
|
export interface JiraAllowedValues {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Ut maxime mollitia laborum harum delectus qui."
|
|
7
7
|
*/
|
|
8
8
|
id?: string;
|
|
9
9
|
/**
|
|
10
|
-
* @example "
|
|
10
|
+
* @example "Molestiae autem exercitationem vitae."
|
|
11
11
|
*/
|
|
12
12
|
name?: string;
|
|
13
13
|
/**
|
|
14
|
-
* @example "
|
|
14
|
+
* @example "Molestiae reprehenderit eos vitae assumenda blanditiis velit."
|
|
15
15
|
*/
|
|
16
16
|
value?: string;
|
|
17
17
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Project } from '../schemas/Project';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"projects":[{"id":"
|
|
3
|
+
* @example {"projects":[{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]},{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]},{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]},{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface ListProjectsResponse {
|
|
6
6
|
/**
|
|
7
7
|
* The metadata for all projects
|
|
8
|
-
* @example [{"id":"
|
|
8
|
+
* @example [{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]},{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]},{"id":"Deserunt tenetur sint tenetur iusto.","key":"Est et sint consectetur.","name":"Ut quo modi temporibus quis.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]}]
|
|
9
9
|
*/
|
|
10
10
|
projects: Project[];
|
|
11
11
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { TicketType } from '../schemas/TicketType';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"id":"
|
|
3
|
+
* @example {"id":"Et quia est ipsa consequuntur.","key":"Temporibus adipisci hic magnam.","name":"Ut adipisci cum.","ticketTypes":[{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface Project {
|
|
6
6
|
/**
|
|
7
|
-
* @example "
|
|
7
|
+
* @example "Id et perferendis quaerat."
|
|
8
8
|
*/
|
|
9
9
|
id: string;
|
|
10
10
|
/**
|
|
11
|
-
* @example "
|
|
11
|
+
* @example "Iusto pariatur voluptatem quo."
|
|
12
12
|
*/
|
|
13
13
|
key: string;
|
|
14
14
|
/**
|
|
15
|
-
* @example "
|
|
15
|
+
* @example "Architecto quo."
|
|
16
16
|
*/
|
|
17
17
|
name: string;
|
|
18
18
|
/**
|
|
19
|
-
* @example [{"id":"
|
|
19
|
+
* @example [{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."},{"id":"Natus quos mollitia repellendus tempora vitae.","isSubtask":true,"name":"Quaerat aut non exercitationem et expedita sed."}]
|
|
20
20
|
*/
|
|
21
21
|
ticketTypes: TicketType[];
|
|
22
22
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IssueCreateMetadata } from '../schemas/IssueCreateMetadata';
|
|
2
2
|
/**
|
|
3
|
-
* @example {"issueTypes":[{"description":"
|
|
3
|
+
* @example {"issueTypes":[{"description":"Eligendi porro excepturi officia.","fields":{"Nihil ut quod modi eos qui.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}},"id":"Magnam rerum ipsam.","isSubtask":true,"name":"Distinctio fugit commodi quo."},{"description":"Eligendi porro excepturi officia.","fields":{"Nihil ut quod modi eos qui.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}},"id":"Magnam rerum ipsam.","isSubtask":true,"name":"Distinctio fugit commodi quo."}]}
|
|
4
4
|
*/
|
|
5
5
|
export interface ProjectCreateMetadataResponse {
|
|
6
6
|
/**
|
|
7
7
|
* The create metadata for the project's different issue types
|
|
8
|
-
* @example [{"description":"
|
|
8
|
+
* @example [{"description":"Eligendi porro excepturi officia.","fields":{"Nihil ut quod modi eos qui.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}},"id":"Magnam rerum ipsam.","isSubtask":true,"name":"Distinctio fugit commodi quo."},{"description":"Eligendi porro excepturi officia.","fields":{"Nihil ut quod modi eos qui.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}},"id":"Magnam rerum ipsam.","isSubtask":true,"name":"Distinctio fugit commodi quo."},{"description":"Eligendi porro excepturi officia.","fields":{"Nihil ut quod modi eos qui.":{"allowedValues":[{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."},{"id":"Dolor voluptatem quos.","name":"Nam nam quis id.","value":"Quisquam tempora officiis doloribus quibusdam sed et."}],"autoCompleteUrl":"Et et et cum.","hasDefaultValue":true,"isRequired":true,"name":"Similique necessitatibus.","operations":["Sit nulla itaque.","Numquam est.","Cum porro nihil et dolores occaecati sint."],"schema":{"Aut autem rerum.":"Fuga dolorem.","Earum iure voluptatem excepturi voluptas.":"Temporibus ut omnis itaque debitis odit.","Nemo eos.":"Sit aut eum numquam."}}},"id":"Magnam rerum ipsam.","isSubtask":true,"name":"Distinctio fugit commodi quo."}]
|
|
9
9
|
*/
|
|
10
10
|
issueTypes: IssueCreateMetadata[];
|
|
11
11
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example {"additional":{"name":"value"},"connectorId":"my_jira_connector","service":"Jira"}
|
|
3
|
+
*/
|
|
4
|
+
export interface SaveSettingRequestBody {
|
|
5
|
+
/**
|
|
6
|
+
* Additional settings
|
|
7
|
+
* @example {"name":"value"}
|
|
8
|
+
*/
|
|
9
|
+
additional?: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The Harness connector ID to use for communication with the ticket provider
|
|
14
|
+
* @example "my_jira_connector"
|
|
15
|
+
*/
|
|
16
|
+
connectorId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The ticket provider to use
|
|
19
|
+
* @example "Jira"
|
|
20
|
+
*/
|
|
21
|
+
service: 'Jira';
|
|
22
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"additional":{"name":"value"},"connectorId":"my_jira_connector","created":1651578240,"lastModified":1651578240,"module":"sto","service":"Jira"}
|
|
2
|
+
* @example {"additional":{"name":"value"},"connectorId":"my_jira_connector","created":1651578240,"lastModified":1651578240,"module":"sto","orgId":"example_org","projectId":"example_project","service":"Jira"}
|
|
3
3
|
*/
|
|
4
4
|
export interface Setting {
|
|
5
5
|
/**
|
|
@@ -31,6 +31,16 @@ export interface Setting {
|
|
|
31
31
|
* @example "sto"
|
|
32
32
|
*/
|
|
33
33
|
module?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The organisation where this setting is actually stored. May differ from the request scope when the setting is inherited from a parent scope.
|
|
36
|
+
* @example "example_org"
|
|
37
|
+
*/
|
|
38
|
+
orgId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The project where this setting is actually stored. May differ from the request scope when the setting is inherited from a parent scope.
|
|
41
|
+
* @example "example_project"
|
|
42
|
+
*/
|
|
43
|
+
projectId?: string;
|
|
34
44
|
/**
|
|
35
45
|
* The ticket provider to use
|
|
36
46
|
* @example "Jira"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TicketProviderUser } from '../schemas/TicketProviderUser';
|
|
2
2
|
/**
|
|
3
3
|
* Information about an External Ticket
|
|
4
|
-
* @example {"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"}
|
|
4
|
+
* @example {"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"}
|
|
5
5
|
*/
|
|
6
6
|
export interface Ticket {
|
|
7
7
|
/**
|
|
@@ -10,6 +10,10 @@ export interface Ticket {
|
|
|
10
10
|
*/
|
|
11
11
|
accountId: string;
|
|
12
12
|
assignee?: TicketProviderUser;
|
|
13
|
+
/**
|
|
14
|
+
* Indicates the ticket was auto-created by an internal workflow
|
|
15
|
+
*/
|
|
16
|
+
autoCreated?: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* Unix timestamp at which the resource was created
|
|
15
19
|
* @format int64
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @example {"id":"
|
|
2
|
+
* @example {"id":"Id velit et ipsa.","isSubtask":true,"name":"In et quae quidem."}
|
|
3
3
|
*/
|
|
4
4
|
export interface TicketType {
|
|
5
5
|
/**
|
|
6
|
-
* @example "
|
|
6
|
+
* @example "Iure saepe dolorem deserunt neque ut nemo."
|
|
7
7
|
*/
|
|
8
8
|
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* @example true
|
|
11
|
-
*/
|
|
12
9
|
isSubtask: boolean;
|
|
13
10
|
/**
|
|
14
|
-
* @example "
|
|
11
|
+
* @example "Cupiditate corporis ut dicta fugit dolores."
|
|
15
12
|
*/
|
|
16
13
|
name: string;
|
|
17
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { Pagination } from '../schemas/Pagination';
|
|
2
2
|
import type { Ticket } from '../schemas/Ticket';
|
|
3
3
|
/**
|
|
4
|
-
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"
|
|
4
|
+
* @example {"pagination":{"link":"","page":4,"pageSize":20,"totalItems":230,"totalPages":12},"results":[{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"}]}
|
|
5
5
|
*/
|
|
6
6
|
export interface TicketsListTicketsResponseBody {
|
|
7
7
|
pagination: Pagination;
|
|
8
8
|
/**
|
|
9
|
-
* @example [{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"}]
|
|
9
|
+
* @example [{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"},{"accountId":"abcdef1234567890ghijkl","assignee":{"displayName":"John Doe","email":"john.doe@example.com"},"autoCreated":false,"created":1651578240,"customFields":{"customfield_1":{"id":"12345"},"customfield_2":[{"value":"value1"},{"value":"value2"}]},"description":"This is the very long ticket description...","exists":false,"externalId":"ABC-1234","id":"abcdef1234567890ghijkl","identifiers":{"idName":["value1","value2","value3"]},"issueType":"Bug","lastModified":1651578240,"module":"sto","orgId":"example_org","priority":"High","projectId":"example_project","projectKey":"ABC","projectName":"Jira Project","state":"Pending","status":"To Do","statusColor":"#42526E","title":"A new ticket","url":"https://example.atlassian.net/browse/ABCD-1234"}]
|
|
10
10
|
*/
|
|
11
11
|
results: Ticket[];
|
|
12
12
|
}
|