@resolution/jira-api-client 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/README.md +27 -4
- package/lib/index.d.ts +13 -0
- package/lib/index.js +17 -1
- package/lib/index.js.map +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1 -1
- package/lib/openapi/platform/services/DashboardsService.d.ts +7 -1
- package/lib/openapi/platform/services/DashboardsService.js +4 -1
- package/lib/openapi/platform/services/DashboardsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +8 -1
- package/lib/openapi/platform/services/IssueSearchService.js +2 -1
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/IssuesService.d.ts +8 -1
- package/lib/openapi/platform/services/IssuesService.js +2 -1
- package/lib/openapi/platform/services/IssuesService.js.map +1 -1
- package/lib/openapi/platform/services/PermissionsService.d.ts +7 -0
- package/lib/openapi/platform/services/PermissionsService.js +7 -0
- package/lib/openapi/platform/services/PermissionsService.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +46 -0
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +78 -0
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js.map +1 -0
- package/lib/openapi/serviceManagement/core/CommonHttpClient.d.ts +196 -0
- package/lib/openapi/serviceManagement/core/CommonHttpClient.js +390 -0
- package/lib/openapi/serviceManagement/core/CommonHttpClient.js.map +1 -0
- package/lib/openapi/serviceManagement/core/CommonHttpService.d.ts +9 -0
- package/lib/openapi/serviceManagement/core/CommonHttpService.js +29 -0
- package/lib/openapi/serviceManagement/core/CommonHttpService.js.map +1 -0
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.d.ts +35 -0
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js +65 -0
- package/lib/openapi/serviceManagement/core/CommonValidationSchemaStorage.js.map +1 -0
- package/lib/openapi/serviceManagement/models/assets.d.ts +54 -0
- package/lib/openapi/serviceManagement/models/assets.js +60 -0
- package/lib/openapi/serviceManagement/models/assets.js.map +1 -0
- package/lib/openapi/serviceManagement/models/common.d.ts +228 -0
- package/lib/openapi/serviceManagement/models/common.js +172 -0
- package/lib/openapi/serviceManagement/models/common.js.map +1 -0
- package/lib/openapi/serviceManagement/models/customer.d.ts +30 -0
- package/lib/openapi/serviceManagement/models/customer.js +27 -0
- package/lib/openapi/serviceManagement/models/customer.js.map +1 -0
- package/lib/openapi/serviceManagement/models/info.d.ts +18 -0
- package/lib/openapi/serviceManagement/models/info.js +24 -0
- package/lib/openapi/serviceManagement/models/info.js.map +1 -0
- package/lib/openapi/serviceManagement/models/knowledgebase.d.ts +24 -0
- package/lib/openapi/serviceManagement/models/knowledgebase.js +32 -0
- package/lib/openapi/serviceManagement/models/knowledgebase.js.map +1 -0
- package/lib/openapi/serviceManagement/models/organization.d.ts +76 -0
- package/lib/openapi/serviceManagement/models/organization.js +65 -0
- package/lib/openapi/serviceManagement/models/organization.js.map +1 -0
- package/lib/openapi/serviceManagement/models/request.d.ts +594 -0
- package/lib/openapi/serviceManagement/models/request.js +516 -0
- package/lib/openapi/serviceManagement/models/request.js.map +1 -0
- package/lib/openapi/serviceManagement/models/servicedesk.d.ts +525 -0
- package/lib/openapi/serviceManagement/models/servicedesk.js +442 -0
- package/lib/openapi/serviceManagement/models/servicedesk.js.map +1 -0
- package/lib/openapi/serviceManagement/services/AssetsService.d.ts +61 -0
- package/lib/openapi/serviceManagement/services/AssetsService.js +113 -0
- package/lib/openapi/serviceManagement/services/AssetsService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/CustomerService.d.ts +63 -0
- package/lib/openapi/serviceManagement/services/CustomerService.js +93 -0
- package/lib/openapi/serviceManagement/services/CustomerService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/InfoService.d.ts +34 -0
- package/lib/openapi/serviceManagement/services/InfoService.js +71 -0
- package/lib/openapi/serviceManagement/services/InfoService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.d.ts +81 -0
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js +106 -0
- package/lib/openapi/serviceManagement/services/KnowledgebaseService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/OrganizationService.d.ts +589 -0
- package/lib/openapi/serviceManagement/services/OrganizationService.js +762 -0
- package/lib/openapi/serviceManagement/services/OrganizationService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/RequestService.d.ts +2736 -0
- package/lib/openapi/serviceManagement/services/RequestService.js +3056 -0
- package/lib/openapi/serviceManagement/services/RequestService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/RequesttypeService.d.ts +166 -0
- package/lib/openapi/serviceManagement/services/RequesttypeService.js +190 -0
- package/lib/openapi/serviceManagement/services/RequesttypeService.js.map +1 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.d.ts +1268 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.js +1510 -0
- package/lib/openapi/serviceManagement/services/ServicedeskService.js.map +1 -0
- package/lib/openapi/serviceManagement/validationSchemaStorage.d.ts +3 -0
- package/lib/openapi/serviceManagement/validationSchemaStorage.js +144 -0
- package/lib/openapi/serviceManagement/validationSchemaStorage.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { Stream } from "stream";
|
|
3
|
+
import { type ZodTypeAny } from "zod";
|
|
4
|
+
import type { CommonValidationSchemaStorage } from "../core/CommonValidationSchemaStorage";
|
|
5
|
+
import { type JsonTypeBean, type PagedLinkDto, type SelfLinkDto, type ServiceDeskDto } from "./common";
|
|
6
|
+
/** The avatars of the user. */
|
|
7
|
+
export interface AvatarUrlsBean {
|
|
8
|
+
/** The URL of the item's 16x16 pixel avatar. */
|
|
9
|
+
"16x16"?: string;
|
|
10
|
+
/** The URL of the item's 24x24 pixel avatar. */
|
|
11
|
+
"24x24"?: string;
|
|
12
|
+
/** The URL of the item's 32x32 pixel avatar. */
|
|
13
|
+
"32x32"?: string;
|
|
14
|
+
/** The URL of the item's 48x48 pixel avatar. */
|
|
15
|
+
"48x48"?: string;
|
|
16
|
+
}
|
|
17
|
+
/** A change item. */
|
|
18
|
+
export interface ChangeDetails {
|
|
19
|
+
/** The name of the field changed. */
|
|
20
|
+
field?: string;
|
|
21
|
+
/** The ID of the field changed. */
|
|
22
|
+
fieldId?: string;
|
|
23
|
+
/** The type of the field changed. */
|
|
24
|
+
fieldtype?: string;
|
|
25
|
+
/** The details of the original value. */
|
|
26
|
+
from?: string;
|
|
27
|
+
/** The details of the original value as a string. */
|
|
28
|
+
fromString?: string;
|
|
29
|
+
/** The details of the new value. */
|
|
30
|
+
to?: string;
|
|
31
|
+
/** The details of the new value as a string. */
|
|
32
|
+
toString: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A log of changes made to issue fields. Changelogs related to workflow
|
|
36
|
+
* associations are currently being deprecated.
|
|
37
|
+
*/
|
|
38
|
+
export interface Changelog {
|
|
39
|
+
/** The user who made the change. */
|
|
40
|
+
author?: UserDetails;
|
|
41
|
+
/** The date on which the change took place. */
|
|
42
|
+
created?: string;
|
|
43
|
+
/** The history metadata associated with the changed. */
|
|
44
|
+
historyMetadata?: HistoryMetadata;
|
|
45
|
+
/** The ID of the changelog. */
|
|
46
|
+
id?: string;
|
|
47
|
+
/** The list of items changed. */
|
|
48
|
+
items?: ChangeDetails[];
|
|
49
|
+
}
|
|
50
|
+
/** The metadata describing an issue field. */
|
|
51
|
+
export interface FieldMetadata {
|
|
52
|
+
/** The list of values allowed in the field. */
|
|
53
|
+
allowedValues?: unknown[];
|
|
54
|
+
/** The URL that can be used to automatically complete the field. */
|
|
55
|
+
autoCompleteUrl?: string;
|
|
56
|
+
/** The configuration properties. */
|
|
57
|
+
configuration?: {
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
/** The default value of the field. */
|
|
61
|
+
defaultValue?: unknown;
|
|
62
|
+
/** Whether the field has a default value. */
|
|
63
|
+
hasDefaultValue?: boolean;
|
|
64
|
+
/** The key of the field. */
|
|
65
|
+
key: string;
|
|
66
|
+
/** The name of the field. */
|
|
67
|
+
name: string;
|
|
68
|
+
/** The list of operations that can be performed on the field. */
|
|
69
|
+
operations: string[];
|
|
70
|
+
/** Whether the field is required. */
|
|
71
|
+
required: boolean;
|
|
72
|
+
/** The data type of the field. */
|
|
73
|
+
schema: JsonTypeBean;
|
|
74
|
+
}
|
|
75
|
+
/** Details of issue history metadata. */
|
|
76
|
+
export interface HistoryMetadata extends Record<string, unknown> {
|
|
77
|
+
/** The activity described in the history record. */
|
|
78
|
+
activityDescription?: string;
|
|
79
|
+
/** The key of the activity described in the history record. */
|
|
80
|
+
activityDescriptionKey?: string;
|
|
81
|
+
/** Details of the user whose action created the history record. */
|
|
82
|
+
actor?: HistoryMetadataParticipant;
|
|
83
|
+
/** Details of the cause that triggered the creation the history record. */
|
|
84
|
+
cause?: HistoryMetadataParticipant;
|
|
85
|
+
/** The description of the history record. */
|
|
86
|
+
description?: string;
|
|
87
|
+
/** The description key of the history record. */
|
|
88
|
+
descriptionKey?: string;
|
|
89
|
+
/** The description of the email address associated the history record. */
|
|
90
|
+
emailDescription?: string;
|
|
91
|
+
/** The description key of the email address associated the history record. */
|
|
92
|
+
emailDescriptionKey?: string;
|
|
93
|
+
/** Additional arbitrary information about the history record. */
|
|
94
|
+
extraData?: {
|
|
95
|
+
[key: string]: string;
|
|
96
|
+
};
|
|
97
|
+
/** Details of the system that generated the history record. */
|
|
98
|
+
generator?: HistoryMetadataParticipant;
|
|
99
|
+
/** The type of the history record. */
|
|
100
|
+
type?: string;
|
|
101
|
+
}
|
|
102
|
+
/** Details of user or system associated with a issue history metadata item. */
|
|
103
|
+
export interface HistoryMetadataParticipant extends Record<string, unknown> {
|
|
104
|
+
/** The URL to an avatar for the user or system associated with a history record. */
|
|
105
|
+
avatarUrl?: string;
|
|
106
|
+
/** The display name of the user or system associated with a history record. */
|
|
107
|
+
displayName?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The key of the display name of the user or system associated with a history
|
|
110
|
+
* record.
|
|
111
|
+
*/
|
|
112
|
+
displayNameKey?: string;
|
|
113
|
+
/** The ID of the user or system associated with a history record. */
|
|
114
|
+
id?: string;
|
|
115
|
+
/** The type of the user or system associated with a history record. */
|
|
116
|
+
type?: string;
|
|
117
|
+
/** The URL of the user or system associated with a history record. */
|
|
118
|
+
url?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface IncludedFields {
|
|
121
|
+
actuallyIncluded?: string[];
|
|
122
|
+
excluded?: string[];
|
|
123
|
+
included?: string[];
|
|
124
|
+
}
|
|
125
|
+
/** Details about an issue. */
|
|
126
|
+
export interface IssueBean {
|
|
127
|
+
/** Details of changelogs associated with the issue. */
|
|
128
|
+
changelog?: PageOfChangelogs;
|
|
129
|
+
/** The metadata for the fields on the issue that can be amended. */
|
|
130
|
+
editmeta?: IssueUpdateMetadata;
|
|
131
|
+
/** Expand options that include additional issue details in the response. */
|
|
132
|
+
expand?: string;
|
|
133
|
+
fields?: {
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
};
|
|
136
|
+
fieldsToInclude?: IncludedFields;
|
|
137
|
+
/** The ID of the issue. */
|
|
138
|
+
id?: string;
|
|
139
|
+
/** The key of the issue. */
|
|
140
|
+
key?: string;
|
|
141
|
+
/** The ID and name of each field present on the issue. */
|
|
142
|
+
names?: {
|
|
143
|
+
[key: string]: string;
|
|
144
|
+
};
|
|
145
|
+
/** The operations that can be performed on the issue. */
|
|
146
|
+
operations?: Operations;
|
|
147
|
+
/** Details of the issue properties identified in the request. */
|
|
148
|
+
properties?: {
|
|
149
|
+
[key: string]: unknown;
|
|
150
|
+
};
|
|
151
|
+
/** The rendered value of each field present on the issue. */
|
|
152
|
+
renderedFields?: {
|
|
153
|
+
[key: string]: unknown;
|
|
154
|
+
};
|
|
155
|
+
/** The schema describing each field present on the issue. */
|
|
156
|
+
schema?: {
|
|
157
|
+
/** The schema of a field. */
|
|
158
|
+
[key: string]: JsonTypeBean;
|
|
159
|
+
};
|
|
160
|
+
/** The URL of the issue details. */
|
|
161
|
+
self?: string;
|
|
162
|
+
/** The transitions that can be performed on the issue. */
|
|
163
|
+
transitions?: IssueTransition[];
|
|
164
|
+
/** The versions of each field on the issue. */
|
|
165
|
+
versionedRepresentations?: {
|
|
166
|
+
[key: string]: {
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
/** Details of an issue transition. */
|
|
172
|
+
export interface IssueTransition extends Record<string, unknown> {
|
|
173
|
+
/** Expand options that include additional transition details in the response. */
|
|
174
|
+
expand?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Details of the fields associated with the issue transition screen. Use this
|
|
177
|
+
* information to populate `fields` and `update` in a transition request.
|
|
178
|
+
*/
|
|
179
|
+
fields?: {
|
|
180
|
+
/** The metadata describing an issue field. */
|
|
181
|
+
[key: string]: FieldMetadata;
|
|
182
|
+
};
|
|
183
|
+
/** Whether there is a screen associated with the issue transition. */
|
|
184
|
+
hasScreen?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The ID of the issue transition. Required when specifying a transition to
|
|
187
|
+
* undertake.
|
|
188
|
+
*/
|
|
189
|
+
id?: string;
|
|
190
|
+
/** Whether the transition is available to be performed. */
|
|
191
|
+
isAvailable?: boolean;
|
|
192
|
+
/** Whether the issue has to meet criteria before the issue transition is applied. */
|
|
193
|
+
isConditional?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Whether the issue transition is global, that is, the transition is applied to
|
|
196
|
+
* issues regardless of their status.
|
|
197
|
+
*/
|
|
198
|
+
isGlobal?: boolean;
|
|
199
|
+
/** Whether this is the initial issue transition for the workflow. */
|
|
200
|
+
isInitial?: boolean;
|
|
201
|
+
looped?: boolean;
|
|
202
|
+
/** The name of the issue transition. */
|
|
203
|
+
name?: string;
|
|
204
|
+
/** Details of the issue status after the transition. */
|
|
205
|
+
to?: StatusDetails;
|
|
206
|
+
}
|
|
207
|
+
/** A list of editable field details. */
|
|
208
|
+
export interface IssueUpdateMetadata extends Record<string, unknown> {
|
|
209
|
+
fields?: {
|
|
210
|
+
/** The metadata describing an issue field. */
|
|
211
|
+
[key: string]: FieldMetadata;
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
/** Details a link group, which defines issue operations. */
|
|
215
|
+
export interface LinkGroup {
|
|
216
|
+
groups?: LinkGroup[];
|
|
217
|
+
/** Details about the operations available in this version. */
|
|
218
|
+
header?: SimpleLink;
|
|
219
|
+
id?: string;
|
|
220
|
+
links?: SimpleLink[];
|
|
221
|
+
styleClass?: string;
|
|
222
|
+
weight?: number;
|
|
223
|
+
}
|
|
224
|
+
export interface MultipartFile {
|
|
225
|
+
bytes?: string[];
|
|
226
|
+
contentType?: string;
|
|
227
|
+
empty?: boolean;
|
|
228
|
+
inputStream?: {
|
|
229
|
+
[key: string]: unknown;
|
|
230
|
+
};
|
|
231
|
+
name?: string;
|
|
232
|
+
originalFilename?: string;
|
|
233
|
+
resource?: Resource;
|
|
234
|
+
size?: number;
|
|
235
|
+
}
|
|
236
|
+
/** Details of the operations that can be performed on the issue. */
|
|
237
|
+
export interface Operations extends Record<string, unknown> {
|
|
238
|
+
/** Details of the link groups defining issue operations. */
|
|
239
|
+
linkGroups?: LinkGroup[];
|
|
240
|
+
}
|
|
241
|
+
export interface PagedDtoIssueBean {
|
|
242
|
+
_expands?: string[];
|
|
243
|
+
/** List of the links relating to the page. */
|
|
244
|
+
_links?: PagedLinkDto;
|
|
245
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
246
|
+
isLastPage?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
249
|
+
* objects in the current implementation.
|
|
250
|
+
*/
|
|
251
|
+
limit?: number;
|
|
252
|
+
/** Number of items returned in the page. */
|
|
253
|
+
size?: number;
|
|
254
|
+
/** Index of the first item returned in the page. */
|
|
255
|
+
start?: number;
|
|
256
|
+
/** Details of the items included in the page. */
|
|
257
|
+
values?: IssueBean[];
|
|
258
|
+
}
|
|
259
|
+
export interface PagedDtoQueueDto {
|
|
260
|
+
_expands?: string[];
|
|
261
|
+
/** List of the links relating to the page. */
|
|
262
|
+
_links?: PagedLinkDto;
|
|
263
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
264
|
+
isLastPage?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
267
|
+
* objects in the current implementation.
|
|
268
|
+
*/
|
|
269
|
+
limit?: number;
|
|
270
|
+
/** Number of items returned in the page. */
|
|
271
|
+
size?: number;
|
|
272
|
+
/** Index of the first item returned in the page. */
|
|
273
|
+
start?: number;
|
|
274
|
+
/** Details of the items included in the page. */
|
|
275
|
+
values?: QueueDto[];
|
|
276
|
+
}
|
|
277
|
+
export interface PagedDtoRequestTypeGroupDto {
|
|
278
|
+
_expands?: string[];
|
|
279
|
+
/** List of the links relating to the page. */
|
|
280
|
+
_links?: PagedLinkDto;
|
|
281
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
282
|
+
isLastPage?: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
285
|
+
* objects in the current implementation.
|
|
286
|
+
*/
|
|
287
|
+
limit?: number;
|
|
288
|
+
/** Number of items returned in the page. */
|
|
289
|
+
size?: number;
|
|
290
|
+
/** Index of the first item returned in the page. */
|
|
291
|
+
start?: number;
|
|
292
|
+
/** Details of the items included in the page. */
|
|
293
|
+
values?: RequestTypeGroupDto[];
|
|
294
|
+
}
|
|
295
|
+
export interface PagedDtoServiceDeskDto {
|
|
296
|
+
_expands?: string[];
|
|
297
|
+
/** List of the links relating to the page. */
|
|
298
|
+
_links?: PagedLinkDto;
|
|
299
|
+
/** Indicates if this is the last page of records (true) or not (false). */
|
|
300
|
+
isLastPage?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* Number of items to be returned per page, up to the maximum set for these
|
|
303
|
+
* objects in the current implementation.
|
|
304
|
+
*/
|
|
305
|
+
limit?: number;
|
|
306
|
+
/** Number of items returned in the page. */
|
|
307
|
+
size?: number;
|
|
308
|
+
/** Index of the first item returned in the page. */
|
|
309
|
+
start?: number;
|
|
310
|
+
/** Details of the items included in the page. */
|
|
311
|
+
values?: ServiceDeskDto[];
|
|
312
|
+
}
|
|
313
|
+
/** A page of changelogs. */
|
|
314
|
+
export interface PageOfChangelogs {
|
|
315
|
+
/** The list of changelogs. */
|
|
316
|
+
histories?: Changelog[];
|
|
317
|
+
/** The maximum number of results that could be on the page. */
|
|
318
|
+
maxResults?: number;
|
|
319
|
+
/** The index of the first item returned on the page. */
|
|
320
|
+
startAt?: number;
|
|
321
|
+
/** The number of results on the page. */
|
|
322
|
+
total?: number;
|
|
323
|
+
}
|
|
324
|
+
/** Details about a project. */
|
|
325
|
+
export interface ProjectDetails {
|
|
326
|
+
/** The URLs of the project's avatars. */
|
|
327
|
+
avatarUrls?: AvatarUrlsBean;
|
|
328
|
+
/** The ID of the project. */
|
|
329
|
+
id?: string;
|
|
330
|
+
/** The key of the project. */
|
|
331
|
+
key?: string;
|
|
332
|
+
/** The name of the project. */
|
|
333
|
+
name?: string;
|
|
334
|
+
/** The category the project belongs to. */
|
|
335
|
+
projectCategory?: UpdatedProjectCategory;
|
|
336
|
+
/**
|
|
337
|
+
* The [project
|
|
338
|
+
* type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes)
|
|
339
|
+
* of the project.
|
|
340
|
+
*/
|
|
341
|
+
projectTypeKey?: "software" | "service_desk" | "business";
|
|
342
|
+
/** The URL of the project details. */
|
|
343
|
+
self?: string;
|
|
344
|
+
/** Whether or not the project is simplified. */
|
|
345
|
+
simplified?: boolean;
|
|
346
|
+
}
|
|
347
|
+
export interface QueueDto {
|
|
348
|
+
/** REST API URL to the queue. */
|
|
349
|
+
_links?: SelfLinkDto;
|
|
350
|
+
/** Fields returned for each request in the queue. */
|
|
351
|
+
fields?: string[];
|
|
352
|
+
/** ID for the queue. */
|
|
353
|
+
id?: string;
|
|
354
|
+
/** The count of customer requests in the queue. */
|
|
355
|
+
issueCount?: number;
|
|
356
|
+
/** JQL query that filters reqeusts for the queue. */
|
|
357
|
+
jql?: string;
|
|
358
|
+
/** Short name for the queue. */
|
|
359
|
+
name?: string;
|
|
360
|
+
}
|
|
361
|
+
export interface RequestTypeCreateDto {
|
|
362
|
+
/** Description of the request type on the service desk. */
|
|
363
|
+
description?: string;
|
|
364
|
+
/** Help text for the request type on the service desk. */
|
|
365
|
+
helpText?: string;
|
|
366
|
+
/** ID of the request type to add to the service desk. */
|
|
367
|
+
issueTypeId?: string;
|
|
368
|
+
/** Name of the request type on the service desk. */
|
|
369
|
+
name?: string;
|
|
370
|
+
}
|
|
371
|
+
export interface RequestTypeGroupDto {
|
|
372
|
+
/** ID of the request type group */
|
|
373
|
+
id?: string;
|
|
374
|
+
/** Name of the request type group. */
|
|
375
|
+
name?: string;
|
|
376
|
+
}
|
|
377
|
+
export interface Resource {
|
|
378
|
+
description?: string;
|
|
379
|
+
file?: Blob | Stream;
|
|
380
|
+
filename?: string;
|
|
381
|
+
inputStream?: {
|
|
382
|
+
[key: string]: unknown;
|
|
383
|
+
};
|
|
384
|
+
open?: boolean;
|
|
385
|
+
readable?: boolean;
|
|
386
|
+
uri?: string;
|
|
387
|
+
url?: string;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* The projects the item is associated with. Indicated for items associated with
|
|
391
|
+
* [next-gen projects](https://confluence.atlassian.com/x/loMyO).
|
|
392
|
+
*/
|
|
393
|
+
export interface Scope extends Record<string, unknown> {
|
|
394
|
+
/** The project the item has scope in. */
|
|
395
|
+
project?: ProjectDetails;
|
|
396
|
+
/** The type of scope. */
|
|
397
|
+
type?: "PROJECT" | "TEMPLATE";
|
|
398
|
+
}
|
|
399
|
+
export interface ServiceDeskCustomerDto {
|
|
400
|
+
/**
|
|
401
|
+
* List of users, specified by account IDs, to add to or remove from a service
|
|
402
|
+
* desk.
|
|
403
|
+
*/
|
|
404
|
+
accountIds?: string[];
|
|
405
|
+
/**
|
|
406
|
+
* This property is no longer available and will be removed from the documentation
|
|
407
|
+
* soon. See the [deprecation
|
|
408
|
+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
|
|
409
|
+
* for details. Use `accountIds` instead.
|
|
410
|
+
*/
|
|
411
|
+
usernames?: string[];
|
|
412
|
+
}
|
|
413
|
+
/** Details about the operations available in this version. */
|
|
414
|
+
export interface SimpleLink {
|
|
415
|
+
href?: string;
|
|
416
|
+
iconClass?: string;
|
|
417
|
+
id?: string;
|
|
418
|
+
label?: string;
|
|
419
|
+
styleClass?: string;
|
|
420
|
+
title?: string;
|
|
421
|
+
weight?: number;
|
|
422
|
+
}
|
|
423
|
+
/** A status category. */
|
|
424
|
+
export interface StatusCategory extends Record<string, unknown> {
|
|
425
|
+
/** The name of the color used to represent the status category. */
|
|
426
|
+
colorName?: string;
|
|
427
|
+
/** The ID of the status category. */
|
|
428
|
+
id?: number;
|
|
429
|
+
/** The key of the status category. */
|
|
430
|
+
key?: string;
|
|
431
|
+
/** The name of the status category. */
|
|
432
|
+
name?: string;
|
|
433
|
+
/** The URL of the status category. */
|
|
434
|
+
self?: string;
|
|
435
|
+
}
|
|
436
|
+
/** A status. */
|
|
437
|
+
export interface StatusDetails extends Record<string, unknown> {
|
|
438
|
+
/** The description of the status. */
|
|
439
|
+
description?: string;
|
|
440
|
+
/** The URL of the icon used to represent the status. */
|
|
441
|
+
iconUrl?: string;
|
|
442
|
+
/** The ID of the status. */
|
|
443
|
+
id?: string;
|
|
444
|
+
/** The name of the status. */
|
|
445
|
+
name?: string;
|
|
446
|
+
/** The scope of the field. */
|
|
447
|
+
scope?: Scope;
|
|
448
|
+
/** The URL of the status. */
|
|
449
|
+
self?: string;
|
|
450
|
+
/** The category assigned to the status. */
|
|
451
|
+
statusCategory?: StatusCategory;
|
|
452
|
+
}
|
|
453
|
+
/** A project category. */
|
|
454
|
+
export interface UpdatedProjectCategory {
|
|
455
|
+
/** The name of the project category. */
|
|
456
|
+
description?: string;
|
|
457
|
+
/** The ID of the project category. */
|
|
458
|
+
id?: string;
|
|
459
|
+
/** The description of the project category. */
|
|
460
|
+
name?: string;
|
|
461
|
+
/** The URL of the project category. */
|
|
462
|
+
self?: string;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* User details permitted by the user's Atlassian Account privacy settings.
|
|
466
|
+
* However, be aware of these exceptions:
|
|
467
|
+
*
|
|
468
|
+
* * User record deleted from Atlassian: This occurs as the result of a right to
|
|
469
|
+
* be forgotten request. In this case, `displayName` provides an indication and
|
|
470
|
+
* other parameters have default values or are blank (for example, email is blank).
|
|
471
|
+
* * User record corrupted: This occurs as a results of events such as a server
|
|
472
|
+
* import and can only happen to deleted users. In this case, `accountId` returns
|
|
473
|
+
* *unknown* and all other parameters have fallback values.
|
|
474
|
+
* * User record unavailable: This usually occurs due to an internal service
|
|
475
|
+
* outage. In this case, all parameters have fallback values.
|
|
476
|
+
*/
|
|
477
|
+
export interface UserDetails {
|
|
478
|
+
/**
|
|
479
|
+
* The account ID of the user, which uniquely identifies the user across all
|
|
480
|
+
* Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*.
|
|
481
|
+
*/
|
|
482
|
+
accountId?: string;
|
|
483
|
+
/**
|
|
484
|
+
* The type of account represented by this user. This will be one of 'atlassian'
|
|
485
|
+
* (normal users), 'app' (application user) or 'customer' (Jira Service Desk
|
|
486
|
+
* customer user)
|
|
487
|
+
*/
|
|
488
|
+
accountType?: string;
|
|
489
|
+
/** Whether the user is active. */
|
|
490
|
+
active?: boolean;
|
|
491
|
+
/** The avatars of the user. */
|
|
492
|
+
avatarUrls?: AvatarUrlsBean;
|
|
493
|
+
/**
|
|
494
|
+
* The display name of the user. Depending on the user’s privacy settings, this
|
|
495
|
+
* may return an alternative value.
|
|
496
|
+
*/
|
|
497
|
+
displayName?: string;
|
|
498
|
+
/**
|
|
499
|
+
* The email address of the user. Depending on the user’s privacy settings, this
|
|
500
|
+
* may be returned as null.
|
|
501
|
+
*/
|
|
502
|
+
emailAddress?: string;
|
|
503
|
+
/**
|
|
504
|
+
* This property is no longer available and will be removed from the documentation
|
|
505
|
+
* soon. See the [deprecation
|
|
506
|
+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
|
|
507
|
+
* for details.
|
|
508
|
+
*/
|
|
509
|
+
key?: string;
|
|
510
|
+
/**
|
|
511
|
+
* This property is no longer available and will be removed from the documentation
|
|
512
|
+
* soon. See the [deprecation
|
|
513
|
+
* notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/)
|
|
514
|
+
* for details.
|
|
515
|
+
*/
|
|
516
|
+
name?: string;
|
|
517
|
+
/** The URL of the user. */
|
|
518
|
+
self?: string;
|
|
519
|
+
/**
|
|
520
|
+
* The time zone specified in the user's profile. Depending on the user’s privacy
|
|
521
|
+
* settings, this may be returned as null.
|
|
522
|
+
*/
|
|
523
|
+
timeZone?: string;
|
|
524
|
+
}
|
|
525
|
+
export declare function registerServicedeskValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|