@resolution/jira-api-client 0.14.1 → 0.15.1
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/lib/openapi/core/CommonHttpClient.d.ts +7 -1
- package/lib/openapi/core/CommonHttpClient.js +15 -1
- package/lib/openapi/core/CommonHttpClient.js.map +1 -1
- package/lib/openapi/platform/BaseJiraPlatformApiClient.d.ts +6 -6
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js +1 -2
- package/lib/openapi/platform/BaseJiraPlatformApiClient.js.map +1 -1
- package/lib/openapi/platform/models/common.d.ts +0 -17
- package/lib/openapi/platform/models/common.js +0 -12
- package/lib/openapi/platform/models/common.js.map +1 -1
- package/lib/openapi/platform/models/groups.d.ts +20 -0
- package/lib/openapi/platform/models/groups.js +4 -1
- package/lib/openapi/platform/models/groups.js.map +1 -1
- package/lib/openapi/platform/models/issueBulkOperations.d.ts +8 -5
- package/lib/openapi/platform/models/issueBulkOperations.js.map +1 -1
- package/lib/openapi/platform/models/issueRedaction.d.ts +14 -4
- package/lib/openapi/platform/models/issueRedaction.js +1 -1
- package/lib/openapi/platform/models/issueRedaction.js.map +1 -1
- package/lib/openapi/platform/models/issueSearch.d.ts +2 -0
- package/lib/openapi/platform/models/issueSearch.js +1 -0
- package/lib/openapi/platform/models/issueSearch.js.map +1 -1
- package/lib/openapi/platform/models/issueTypes.d.ts +9 -1
- package/lib/openapi/platform/models/issueTypes.js.map +1 -1
- package/lib/openapi/platform/models/jiraExpressions.d.ts +2 -0
- package/lib/openapi/platform/models/jiraExpressions.js +1 -0
- package/lib/openapi/platform/models/jiraExpressions.js.map +1 -1
- package/lib/openapi/platform/models/projectTemplates.d.ts +88 -4
- package/lib/openapi/platform/models/projectTemplates.js +47 -4
- package/lib/openapi/platform/models/projectTemplates.js.map +1 -1
- package/lib/openapi/platform/models/status.d.ts +1 -40
- package/lib/openapi/platform/models/status.js +1 -23
- package/lib/openapi/platform/models/status.js.map +1 -1
- package/lib/openapi/platform/models/workflowSchemes.d.ts +0 -33
- package/lib/openapi/platform/models/workflowSchemes.js +0 -6
- package/lib/openapi/platform/models/workflowSchemes.js.map +1 -1
- package/lib/openapi/platform/models/workflows.d.ts +1 -24
- package/lib/openapi/platform/models/workflows.js +1 -19
- package/lib/openapi/platform/models/workflows.js.map +1 -1
- package/lib/openapi/platform/services/ApplicationRolesService.d.ts +4 -0
- package/lib/openapi/platform/services/ApplicationRolesService.js +4 -0
- package/lib/openapi/platform/services/ApplicationRolesService.js.map +1 -1
- package/lib/openapi/platform/services/GroupsService.d.ts +2 -1
- package/lib/openapi/platform/services/GroupsService.js +3 -2
- package/lib/openapi/platform/services/GroupsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueBulkOperationsService.d.ts +20 -10
- package/lib/openapi/platform/services/IssueBulkOperationsService.js +20 -10
- package/lib/openapi/platform/services/IssueBulkOperationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.d.ts +4 -0
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js +4 -0
- package/lib/openapi/platform/services/IssueFieldConfigurationsService.js.map +1 -1
- package/lib/openapi/platform/services/IssueSearchService.d.ts +8 -0
- package/lib/openapi/platform/services/IssueSearchService.js +8 -0
- package/lib/openapi/platform/services/IssueSearchService.js.map +1 -1
- package/lib/openapi/platform/services/JiraExpressionsService.d.ts +5 -1
- package/lib/openapi/platform/services/JiraExpressionsService.js +5 -1
- package/lib/openapi/platform/services/JiraExpressionsService.js.map +1 -1
- package/lib/openapi/platform/services/MyselfService.d.ts +0 -15
- package/lib/openapi/platform/services/MyselfService.js +0 -29
- package/lib/openapi/platform/services/MyselfService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.d.ts +4 -0
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js +4 -0
- package/lib/openapi/platform/services/ProjectKeyAndNameValidationService.js.map +1 -1
- package/lib/openapi/platform/services/ProjectTemplatesService.d.ts +83 -1
- package/lib/openapi/platform/services/ProjectTemplatesService.js +138 -0
- package/lib/openapi/platform/services/ProjectTemplatesService.js.map +1 -1
- package/lib/openapi/platform/services/StatusService.d.ts +5 -65
- package/lib/openapi/platform/services/StatusService.js +5 -41
- package/lib/openapi/platform/services/StatusService.js.map +1 -1
- package/lib/openapi/platform/services/UsersService.d.ts +10 -3
- package/lib/openapi/platform/services/UsersService.js +4 -0
- package/lib/openapi/platform/services/UsersService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowSchemesService.d.ts +1 -30
- package/lib/openapi/platform/services/WorkflowSchemesService.js +1 -21
- package/lib/openapi/platform/services/WorkflowSchemesService.js.map +1 -1
- package/lib/openapi/platform/services/WorkflowsService.d.ts +50 -92
- package/lib/openapi/platform/services/WorkflowsService.js +50 -70
- package/lib/openapi/platform/services/WorkflowsService.js.map +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.d.ts +1 -1
- package/lib/openapi/serviceManagement/BaseJiraServiceManagementApiClient.js +1 -1
- package/lib/openapi/software/BaseJiraSoftwareApiClient.d.ts +64 -341
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js +58 -335
- package/lib/openapi/software/BaseJiraSoftwareApiClient.js.map +1 -1
- package/lib/openapi/software/models/builds.d.ts +30 -2
- package/lib/openapi/software/models/builds.js +5 -2
- package/lib/openapi/software/models/builds.js.map +1 -1
- package/lib/openapi/software/models/common.d.ts +68 -5
- package/lib/openapi/software/models/common.js +9 -1
- package/lib/openapi/software/models/common.js.map +1 -1
- package/lib/openapi/software/models/deployments.d.ts +33 -90
- package/lib/openapi/software/models/deployments.js +8 -29
- package/lib/openapi/software/models/deployments.js.map +1 -1
- package/lib/openapi/software/models/devOpsComponents.d.ts +1 -1
- package/lib/openapi/software/models/devOpsComponents.js +1 -1
- package/lib/openapi/software/models/devOpsComponents.js.map +1 -1
- package/lib/openapi/software/models/developmentInformation.d.ts +14 -653
- package/lib/openapi/software/models/developmentInformation.js +2 -84
- package/lib/openapi/software/models/developmentInformation.js.map +1 -1
- package/lib/openapi/software/models/featureFlags.d.ts +21 -2
- package/lib/openapi/software/models/featureFlags.js +6 -2
- package/lib/openapi/software/models/featureFlags.js.map +1 -1
- package/lib/openapi/software/models/remoteLinks.d.ts +2 -121
- package/lib/openapi/software/models/remoteLinks.js +1 -16
- package/lib/openapi/software/models/remoteLinks.js.map +1 -1
- package/lib/openapi/software/services/BuildsService.d.ts +11 -23
- package/lib/openapi/software/services/BuildsService.js +11 -23
- package/lib/openapi/software/services/BuildsService.js.map +1 -1
- package/lib/openapi/software/services/DeploymentsService.d.ts +11 -23
- package/lib/openapi/software/services/DeploymentsService.js +11 -23
- package/lib/openapi/software/services/DeploymentsService.js.map +1 -1
- package/lib/openapi/software/services/DevOpsComponentsService.d.ts +8 -111
- package/lib/openapi/software/services/DevOpsComponentsService.js +15 -118
- package/lib/openapi/software/services/DevOpsComponentsService.js.map +1 -1
- package/lib/openapi/software/services/DevelopmentInformationService.d.ts +11 -4
- package/lib/openapi/software/services/DevelopmentInformationService.js +11 -4
- package/lib/openapi/software/services/DevelopmentInformationService.js.map +1 -1
- package/lib/openapi/software/services/FeatureFlagsService.d.ts +9 -21
- package/lib/openapi/software/services/FeatureFlagsService.js +9 -21
- package/lib/openapi/software/services/FeatureFlagsService.js.map +1 -1
- package/lib/openapi/software/services/OperationsService.d.ts +5 -99
- package/lib/openapi/software/services/OperationsService.js +5 -99
- package/lib/openapi/software/services/OperationsService.js.map +1 -1
- package/lib/openapi/software/services/RemoteLinksService.d.ts +10 -123
- package/lib/openapi/software/services/RemoteLinksService.js +10 -123
- package/lib/openapi/software/services/RemoteLinksService.js.map +1 -1
- package/lib/openapi/software/services/SecurityInformationService.d.ts +2 -2
- package/lib/openapi/software/services/SecurityInformationService.js +2 -2
- package/package.json +3 -3
|
@@ -1,277 +1,6 @@
|
|
|
1
1
|
import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
|
|
2
|
-
import { type ProviderMetadata } from "./common";
|
|
2
|
+
import { type Repository, type ProviderMetadata, type IssueIdOrKeysAssociation } from "./common";
|
|
3
3
|
import { type ZodTypeAny } from "zod";
|
|
4
|
-
/**
|
|
5
|
-
* Author
|
|
6
|
-
*
|
|
7
|
-
* Describes the author of a particular entity
|
|
8
|
-
*
|
|
9
|
-
* @category Models
|
|
10
|
-
*/
|
|
11
|
-
export interface Author extends Record<string, unknown> {
|
|
12
|
-
/**
|
|
13
|
-
* Deprecated. The name of this user in a format suitable for display. Max length
|
|
14
|
-
* is 255 characters.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```
|
|
18
|
-
* JaneDoe
|
|
19
|
-
* ```
|
|
20
|
-
* @deprecated
|
|
21
|
-
*/
|
|
22
|
-
name?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The email address of the user. Used to associate the user with a Jira user. Max
|
|
25
|
-
* length is 255 characters.
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```
|
|
29
|
-
* jane_doe@atlassian.com
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
email?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Deprecated. The username of the user. Used to associate the user with a Jira
|
|
35
|
-
* user if there are multiple users for a given email. Max length is 255
|
|
36
|
-
* characters.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```
|
|
40
|
-
* jdoe
|
|
41
|
-
* ```
|
|
42
|
-
* @deprecated
|
|
43
|
-
*/
|
|
44
|
-
username?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Deprecated. The URL of the profile for this user. Max length is 2000 characters.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```
|
|
50
|
-
* https://atlassian.com/account/jane_doe
|
|
51
|
-
* ```
|
|
52
|
-
* @deprecated
|
|
53
|
-
*/
|
|
54
|
-
url?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Deprecated. The URL of the avatar for this user. Max length is 2000 characters.
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```
|
|
60
|
-
* https://atlassian.com/account/jane_doe/avatar/32
|
|
61
|
-
* ```
|
|
62
|
-
* @deprecated
|
|
63
|
-
*/
|
|
64
|
-
avatar?: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Branch
|
|
68
|
-
*
|
|
69
|
-
* Represents a branch in the version control system
|
|
70
|
-
*
|
|
71
|
-
* @category Models
|
|
72
|
-
*/
|
|
73
|
-
export interface Branch extends Record<string, unknown> {
|
|
74
|
-
/**
|
|
75
|
-
* The ID of this entity. Will be used for cross entity linking. Must be unique by
|
|
76
|
-
* entity type within a repository, i.e., only one commit can have ID 'X' in
|
|
77
|
-
* repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
|
|
78
|
-
* acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
|
|
79
|
-
* is 1024 characters.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```
|
|
83
|
-
* c6c7c750-cee2-48e2-b920-d7706dfd11f9
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
id: string;
|
|
87
|
-
/**
|
|
88
|
-
* List of issues keys that this entity is associated with. They must be valid
|
|
89
|
-
* Jira issue keys.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```
|
|
93
|
-
* [
|
|
94
|
-
* "ISSUE-1",
|
|
95
|
-
* "TEST-2"
|
|
96
|
-
* ]
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
issueKeys: string[];
|
|
100
|
-
/**
|
|
101
|
-
* An ID used to apply an ordering to updates for this entity in the case of
|
|
102
|
-
* out-of-order receipt of update requests. This can be any monotonically
|
|
103
|
-
* increasing number. A suggested implementation is to use epoch millis from the
|
|
104
|
-
* provider system, but other alternatives are valid (e.g. a provider could store
|
|
105
|
-
* a counter against each entity and increment that on each update to Jira).
|
|
106
|
-
* Updates for an entity that are received with an updateSqeuenceId lower than
|
|
107
|
-
* what is currently stored will be ignored.
|
|
108
|
-
*
|
|
109
|
-
* @example
|
|
110
|
-
* ```
|
|
111
|
-
* 1523494301248
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
updateSequenceId: number;
|
|
115
|
-
/**
|
|
116
|
-
* The name of the branch. Max length is 512 characters.
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* ```
|
|
120
|
-
* master
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
name: string;
|
|
124
|
-
/**
|
|
125
|
-
* Commit
|
|
126
|
-
*
|
|
127
|
-
* Represents a commit in the version control system.
|
|
128
|
-
*/
|
|
129
|
-
lastCommit: Commit;
|
|
130
|
-
/**
|
|
131
|
-
* The URL of the page for creating a pull request from this branch. Max length is
|
|
132
|
-
* 2000 characters.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```
|
|
136
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/new
|
|
137
|
-
* ```
|
|
138
|
-
*/
|
|
139
|
-
createPullRequestUrl?: string;
|
|
140
|
-
/**
|
|
141
|
-
* The URL of the branch. Max length is 2000 characters.
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* ```
|
|
145
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/master
|
|
146
|
-
* ```
|
|
147
|
-
*/
|
|
148
|
-
url: string;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Commit
|
|
152
|
-
*
|
|
153
|
-
* Represents a commit in the version control system.
|
|
154
|
-
*
|
|
155
|
-
* @category Models
|
|
156
|
-
*/
|
|
157
|
-
export interface Commit extends Record<string, unknown> {
|
|
158
|
-
/**
|
|
159
|
-
* The identifier or hash of the commit. Will be used for cross entity linking.
|
|
160
|
-
* Must be unique for all commits within a repository, i.e., only one commit can
|
|
161
|
-
* have ID 'X' in repository 'Y'. But adding, e.g., a branch with ID 'X' to
|
|
162
|
-
* repository 'Y' is acceptable. Only alphanumeric characters, and '~.-_', are
|
|
163
|
-
* allowed. Max length is 1024 characters
|
|
164
|
-
*
|
|
165
|
-
* @example
|
|
166
|
-
* ```
|
|
167
|
-
* a7727ee6350c33cdf90826dc21abaa26a5704370
|
|
168
|
-
* ```
|
|
169
|
-
*/
|
|
170
|
-
id: string;
|
|
171
|
-
/**
|
|
172
|
-
* List of issues keys that this entity is associated with. They must be valid
|
|
173
|
-
* Jira issue keys.
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```
|
|
177
|
-
* [
|
|
178
|
-
* "ISSUE-1",
|
|
179
|
-
* "TEST-2"
|
|
180
|
-
* ]
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
issueKeys: string[];
|
|
184
|
-
/**
|
|
185
|
-
* An ID used to apply an ordering to updates for this entity in the case of
|
|
186
|
-
* out-of-order receipt of update requests. This can be any monotonically
|
|
187
|
-
* increasing number. A suggested implementation is to use epoch millis from the
|
|
188
|
-
* provider system, but other alternatives are valid (e.g. a provider could store
|
|
189
|
-
* a counter against each entity and increment that on each update to Jira).
|
|
190
|
-
* Updates for an entity that are received with an updateSqeuenceId lower than
|
|
191
|
-
* what is currently stored will be ignored.
|
|
192
|
-
*
|
|
193
|
-
* @example
|
|
194
|
-
* ```
|
|
195
|
-
* 1523494301248
|
|
196
|
-
* ```
|
|
197
|
-
*/
|
|
198
|
-
updateSequenceId: number;
|
|
199
|
-
/**
|
|
200
|
-
* Deprecated. Use the id field instead.
|
|
201
|
-
*
|
|
202
|
-
* @deprecated
|
|
203
|
-
*/
|
|
204
|
-
hash?: string;
|
|
205
|
-
/**
|
|
206
|
-
* The set of flags for this commit
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* ```
|
|
210
|
-
* [MERGE_COMMIT]
|
|
211
|
-
* ```
|
|
212
|
-
*/
|
|
213
|
-
flags?: "MERGE_COMMIT"[];
|
|
214
|
-
/**
|
|
215
|
-
* The commit message. Max length is 1024 characters. If anything longer is
|
|
216
|
-
* supplied, it will be truncated down to 1024 characters.
|
|
217
|
-
*
|
|
218
|
-
* @example
|
|
219
|
-
* ```
|
|
220
|
-
* README.mdedited online with Bitbucket
|
|
221
|
-
* ```
|
|
222
|
-
*/
|
|
223
|
-
message: string;
|
|
224
|
-
/**
|
|
225
|
-
* Author
|
|
226
|
-
*
|
|
227
|
-
* Describes the author of a particular entity
|
|
228
|
-
*/
|
|
229
|
-
author: Author;
|
|
230
|
-
/**
|
|
231
|
-
* The total number of files added, removed, or modified by this commit
|
|
232
|
-
*
|
|
233
|
-
* @example
|
|
234
|
-
* ```
|
|
235
|
-
* 1
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
fileCount: number;
|
|
239
|
-
/**
|
|
240
|
-
* The URL of this commit. Max length is 2000 characters.
|
|
241
|
-
*
|
|
242
|
-
* @example
|
|
243
|
-
* ```
|
|
244
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370
|
|
245
|
-
* ```
|
|
246
|
-
*/
|
|
247
|
-
url: string;
|
|
248
|
-
/**
|
|
249
|
-
* List of file changes. Max number of files is 10. Currently, only the first 5
|
|
250
|
-
* files are shown (sorted by path) in the UI. This UI behavior may change without
|
|
251
|
-
* notice.
|
|
252
|
-
*/
|
|
253
|
-
files?: File[];
|
|
254
|
-
/**
|
|
255
|
-
* The author timestamp of this commit. Formatted as a UTC ISO 8601 date time
|
|
256
|
-
* format.
|
|
257
|
-
*
|
|
258
|
-
* @example
|
|
259
|
-
* ```
|
|
260
|
-
* 2016-10-31T23:27:25+00:00
|
|
261
|
-
* ```
|
|
262
|
-
*/
|
|
263
|
-
authorTimestamp: string;
|
|
264
|
-
/**
|
|
265
|
-
* Shortened identifier for this commit, used for display. Max length is 255
|
|
266
|
-
* characters.
|
|
267
|
-
*
|
|
268
|
-
* @example
|
|
269
|
-
* ```
|
|
270
|
-
* a7727ee
|
|
271
|
-
* ```
|
|
272
|
-
*/
|
|
273
|
-
displayId: string;
|
|
274
|
-
}
|
|
275
4
|
/**
|
|
276
5
|
* DevInformation
|
|
277
6
|
*
|
|
@@ -377,319 +106,6 @@ export interface ExistsForPropertiesResponse extends Record<string, unknown> {
|
|
|
377
106
|
/** Whether there is data matching the query */
|
|
378
107
|
hasDataMatchingProperties?: boolean;
|
|
379
108
|
}
|
|
380
|
-
/**
|
|
381
|
-
* File
|
|
382
|
-
*
|
|
383
|
-
* Describes changes to a file
|
|
384
|
-
*
|
|
385
|
-
* @category Models
|
|
386
|
-
*/
|
|
387
|
-
export interface File extends Record<string, unknown> {
|
|
388
|
-
/**
|
|
389
|
-
* The path of the file. Max length is 1024 characters.
|
|
390
|
-
*
|
|
391
|
-
* @example
|
|
392
|
-
* ```
|
|
393
|
-
* /home/user/src/atlassian-connect-jira-example/README.md
|
|
394
|
-
* ```
|
|
395
|
-
*/
|
|
396
|
-
path: string;
|
|
397
|
-
/**
|
|
398
|
-
* The URL of this file. Max length is 2000 characters.
|
|
399
|
-
*
|
|
400
|
-
* @example
|
|
401
|
-
* ```
|
|
402
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md
|
|
403
|
-
* ```
|
|
404
|
-
*/
|
|
405
|
-
url: string;
|
|
406
|
-
/**
|
|
407
|
-
* The operation performed on this file
|
|
408
|
-
*
|
|
409
|
-
* @example
|
|
410
|
-
* ```
|
|
411
|
-
* MODIFIED
|
|
412
|
-
* ```
|
|
413
|
-
*/
|
|
414
|
-
changeType: "ADDED" | "COPIED" | "DELETED" | "MODIFIED" | "MOVED" | "UNKNOWN";
|
|
415
|
-
/**
|
|
416
|
-
* Number of lines added to the file
|
|
417
|
-
*
|
|
418
|
-
* @example
|
|
419
|
-
* ```
|
|
420
|
-
* 0
|
|
421
|
-
* ```
|
|
422
|
-
*/
|
|
423
|
-
linesAdded: number;
|
|
424
|
-
/**
|
|
425
|
-
* Number of lines removed from the file
|
|
426
|
-
*
|
|
427
|
-
* @example
|
|
428
|
-
* ```
|
|
429
|
-
* 1
|
|
430
|
-
* ```
|
|
431
|
-
*/
|
|
432
|
-
linesRemoved: number;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* PullRequest
|
|
436
|
-
*
|
|
437
|
-
* Represents a pull request
|
|
438
|
-
*
|
|
439
|
-
* @category Models
|
|
440
|
-
*/
|
|
441
|
-
export interface PullRequest extends Record<string, unknown> {
|
|
442
|
-
/**
|
|
443
|
-
* The ID of this entity. Will be used for cross entity linking. Must be unique by
|
|
444
|
-
* entity type within a repository, i.e., only one commit can have ID 'X' in
|
|
445
|
-
* repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
|
|
446
|
-
* acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
|
|
447
|
-
* is 1024 characters
|
|
448
|
-
*
|
|
449
|
-
* @example
|
|
450
|
-
* ```
|
|
451
|
-
* c6c7c750-cee2-48e2-b920-d7706dfd11f9
|
|
452
|
-
* ```
|
|
453
|
-
*/
|
|
454
|
-
id: string;
|
|
455
|
-
/**
|
|
456
|
-
* List of issues keys that this entity is associated with. They must be valid
|
|
457
|
-
* Jira issue keys.
|
|
458
|
-
*
|
|
459
|
-
* @example
|
|
460
|
-
* ```
|
|
461
|
-
* [
|
|
462
|
-
* "ISSUE-1",
|
|
463
|
-
* "TEST-2"
|
|
464
|
-
* ]
|
|
465
|
-
* ```
|
|
466
|
-
*/
|
|
467
|
-
issueKeys: string[];
|
|
468
|
-
/**
|
|
469
|
-
* An ID used to apply an ordering to updates for this entity in the case of
|
|
470
|
-
* out-of-order receipt of update requests. This can be any monotonically
|
|
471
|
-
* increasing number. A suggested implementation is to use epoch millis from the
|
|
472
|
-
* provider system, but other alternatives are valid (e.g. a provider could store
|
|
473
|
-
* a counter against each entity and increment that on each update to Jira).
|
|
474
|
-
* Updates for an entity that are received with an updateSqeuenceId lower than
|
|
475
|
-
* what is currently stored will be ignored.
|
|
476
|
-
*
|
|
477
|
-
* @example
|
|
478
|
-
* ```
|
|
479
|
-
* 1523494301248
|
|
480
|
-
* ```
|
|
481
|
-
*/
|
|
482
|
-
updateSequenceId: number;
|
|
483
|
-
/**
|
|
484
|
-
* The status of the pull request. In the case of concurrent updates, priority is
|
|
485
|
-
* given in the order OPEN, MERGED, DECLINED, UNKNOWN
|
|
486
|
-
*
|
|
487
|
-
* @example
|
|
488
|
-
* ```
|
|
489
|
-
* OPEN
|
|
490
|
-
* ```
|
|
491
|
-
*/
|
|
492
|
-
status: "OPEN" | "MERGED" | "DECLINED" | "UNKNOWN";
|
|
493
|
-
/**
|
|
494
|
-
* Title of the pull request. Max length is 1024 characters.
|
|
495
|
-
*
|
|
496
|
-
* @example
|
|
497
|
-
* ```
|
|
498
|
-
* Pullrequest 2, fixing all the issues caused by pull request #1
|
|
499
|
-
* ```
|
|
500
|
-
*/
|
|
501
|
-
title: string;
|
|
502
|
-
/**
|
|
503
|
-
* Author
|
|
504
|
-
*
|
|
505
|
-
* Describes the author of a particular entity
|
|
506
|
-
*/
|
|
507
|
-
author: Author;
|
|
508
|
-
/**
|
|
509
|
-
* The number of comments on the pull request
|
|
510
|
-
*
|
|
511
|
-
* @example
|
|
512
|
-
* ```
|
|
513
|
-
* 42
|
|
514
|
-
* ```
|
|
515
|
-
*/
|
|
516
|
-
commentCount: number;
|
|
517
|
-
/**
|
|
518
|
-
* The name of the source branch of this PR. Max length is 255 characters.
|
|
519
|
-
*
|
|
520
|
-
* @example
|
|
521
|
-
* ```
|
|
522
|
-
* ISSUE-1-feature-branch
|
|
523
|
-
* ```
|
|
524
|
-
*/
|
|
525
|
-
sourceBranch: string;
|
|
526
|
-
/**
|
|
527
|
-
* The url of the source branch of this PR. This is used to match this PR against
|
|
528
|
-
* the branch. Max length is 2000 characters.
|
|
529
|
-
*
|
|
530
|
-
* @example
|
|
531
|
-
* ```
|
|
532
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/ISSUE-1-feature-branch
|
|
533
|
-
* ```
|
|
534
|
-
*/
|
|
535
|
-
sourceBranchUrl?: string;
|
|
536
|
-
/**
|
|
537
|
-
* The most recent update to this PR. Formatted as a UTC ISO 8601 date time format.
|
|
538
|
-
*
|
|
539
|
-
* @example
|
|
540
|
-
* ```
|
|
541
|
-
* 2016-10-31T23:27:25+00:00
|
|
542
|
-
* ```
|
|
543
|
-
*/
|
|
544
|
-
lastUpdate: string;
|
|
545
|
-
/**
|
|
546
|
-
* The name of destination branch of this PR. Max length is 255 characters.
|
|
547
|
-
*
|
|
548
|
-
* @example
|
|
549
|
-
* ```
|
|
550
|
-
* master
|
|
551
|
-
* ```
|
|
552
|
-
*/
|
|
553
|
-
destinationBranch?: string;
|
|
554
|
-
/**
|
|
555
|
-
* The url of the destination branch of this PR. Max length is 2000 characters.
|
|
556
|
-
*
|
|
557
|
-
* @example
|
|
558
|
-
* ```
|
|
559
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/master
|
|
560
|
-
* ```
|
|
561
|
-
*/
|
|
562
|
-
destinationBranchUrl?: string;
|
|
563
|
-
/** The list of reviewers of this pull request */
|
|
564
|
-
reviewers?: Reviewer[];
|
|
565
|
-
/**
|
|
566
|
-
* The URL of this pull request. Max length is 2000 characters.
|
|
567
|
-
*
|
|
568
|
-
* @example
|
|
569
|
-
* ```
|
|
570
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/2
|
|
571
|
-
* ```
|
|
572
|
-
*/
|
|
573
|
-
url: string;
|
|
574
|
-
/**
|
|
575
|
-
* Shortened identifier for this pull request, used for display. Max length is 255
|
|
576
|
-
* characters.
|
|
577
|
-
*
|
|
578
|
-
* @example
|
|
579
|
-
* ```
|
|
580
|
-
* Pullrequest 2
|
|
581
|
-
* ```
|
|
582
|
-
*/
|
|
583
|
-
displayId: string;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Repository
|
|
587
|
-
*
|
|
588
|
-
* Represents a repository, containing development information such as commits,
|
|
589
|
-
* pull requests, and branches.
|
|
590
|
-
*
|
|
591
|
-
* @category Models
|
|
592
|
-
*/
|
|
593
|
-
export interface Repository extends Record<string, unknown> {
|
|
594
|
-
/**
|
|
595
|
-
* The name of this repository. Max length is 255 characters.
|
|
596
|
-
*
|
|
597
|
-
* @example
|
|
598
|
-
* ```
|
|
599
|
-
* atlassian-connect-jira-example
|
|
600
|
-
* ```
|
|
601
|
-
*/
|
|
602
|
-
name: string;
|
|
603
|
-
/**
|
|
604
|
-
* Description of this repository. Max length is 1024 characters.
|
|
605
|
-
*
|
|
606
|
-
* @example
|
|
607
|
-
* ```
|
|
608
|
-
* Therepository which stores code of the Atlassian Connect Add-on Devinfo application.
|
|
609
|
-
* ```
|
|
610
|
-
*/
|
|
611
|
-
description?: string;
|
|
612
|
-
/**
|
|
613
|
-
* The ID of the repository this repository was forked from, if it's a fork. Max
|
|
614
|
-
* length is 1024 characters.
|
|
615
|
-
*
|
|
616
|
-
* @example
|
|
617
|
-
* ```
|
|
618
|
-
* 56c7c750-cee2-48e2-b920-d7706dfd11f7
|
|
619
|
-
* ```
|
|
620
|
-
*/
|
|
621
|
-
forkOf?: string;
|
|
622
|
-
/**
|
|
623
|
-
* The URL of this repository. Max length is 2000 characters.
|
|
624
|
-
*
|
|
625
|
-
* @example
|
|
626
|
-
* ```
|
|
627
|
-
* https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example
|
|
628
|
-
* ```
|
|
629
|
-
*/
|
|
630
|
-
url: string;
|
|
631
|
-
/**
|
|
632
|
-
* List of commits to update in this repository. Must not contain duplicate entity
|
|
633
|
-
* IDs. Maximum number of commits is 400
|
|
634
|
-
*/
|
|
635
|
-
commits?: Commit[];
|
|
636
|
-
/**
|
|
637
|
-
* List of branches to update in this repository. Must not contain duplicate
|
|
638
|
-
* entity IDs. Maximum number of branches is 400.
|
|
639
|
-
*/
|
|
640
|
-
branches?: Branch[];
|
|
641
|
-
/**
|
|
642
|
-
* List of pull requests to update in this repository. Must not contain duplicate
|
|
643
|
-
* entity IDs. Maximum number of pull requests is 400
|
|
644
|
-
*/
|
|
645
|
-
pullRequests?: PullRequest[];
|
|
646
|
-
/**
|
|
647
|
-
* The URL of the avatar for this repository. Max length is 2000 characters.
|
|
648
|
-
*
|
|
649
|
-
* @example
|
|
650
|
-
* ```
|
|
651
|
-
* http://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/avatar/32
|
|
652
|
-
* ```
|
|
653
|
-
*/
|
|
654
|
-
avatar?: string;
|
|
655
|
-
/**
|
|
656
|
-
* Description of the avatar for this repository. Max length is 1024 characters.
|
|
657
|
-
*
|
|
658
|
-
* @example
|
|
659
|
-
* ```
|
|
660
|
-
* Avatardescription
|
|
661
|
-
* ```
|
|
662
|
-
*/
|
|
663
|
-
avatarDescription?: string;
|
|
664
|
-
/**
|
|
665
|
-
* The ID of this entity. Will be used for cross entity linking. Must be unique by
|
|
666
|
-
* entity type within a repository, i.e., only one commit can have ID 'X' in
|
|
667
|
-
* repository 'Y'. But adding, e.g., a branch with ID 'X' to repository 'Y' is
|
|
668
|
-
* acceptable. Only alphanumeric characters, and '~.-_', are allowed. Max length
|
|
669
|
-
* is 1024 characters.
|
|
670
|
-
*
|
|
671
|
-
* @example
|
|
672
|
-
* ```
|
|
673
|
-
* c6c7c750-cee2-48e2-b920-d7706dfd11f9
|
|
674
|
-
* ```
|
|
675
|
-
*/
|
|
676
|
-
id: string;
|
|
677
|
-
/**
|
|
678
|
-
* An ID used to apply an ordering to updates for this entity in the case of
|
|
679
|
-
* out-of-order receipt of update requests. This can be any monotonically
|
|
680
|
-
* increasing number. A suggested implementation is to use epoch millis from the
|
|
681
|
-
* provider system, but other alternatives are valid (e.g. a provider could store
|
|
682
|
-
* a counter against each entity and increment that on each update to Jira).
|
|
683
|
-
* Updates for an entity that are received with an updateSqeuenceId lower than
|
|
684
|
-
* what is currently stored will be ignored.
|
|
685
|
-
*
|
|
686
|
-
* @example
|
|
687
|
-
* ```
|
|
688
|
-
* 1523494301248
|
|
689
|
-
* ```
|
|
690
|
-
*/
|
|
691
|
-
updateSequenceId: number;
|
|
692
|
-
}
|
|
693
109
|
/**
|
|
694
110
|
* RepositoryErrors
|
|
695
111
|
*
|
|
@@ -717,74 +133,6 @@ export interface RepositoryErrors extends Record<string, unknown> {
|
|
|
717
133
|
/** Pull requests errors */
|
|
718
134
|
pullRequests?: EntityError[];
|
|
719
135
|
}
|
|
720
|
-
/**
|
|
721
|
-
* Reviewer
|
|
722
|
-
*
|
|
723
|
-
* The reviewer of a pull request
|
|
724
|
-
*
|
|
725
|
-
* @category Models
|
|
726
|
-
*/
|
|
727
|
-
export interface Reviewer extends Record<string, unknown> {
|
|
728
|
-
/**
|
|
729
|
-
* Deprecated. The name of this reviewer. Max length is 255 characters.
|
|
730
|
-
*
|
|
731
|
-
* @example
|
|
732
|
-
* ```
|
|
733
|
-
* JaneDoe
|
|
734
|
-
* ```
|
|
735
|
-
* @deprecated
|
|
736
|
-
*/
|
|
737
|
-
name?: string;
|
|
738
|
-
/**
|
|
739
|
-
* The approval status of this reviewer, default is UNAPPROVED.
|
|
740
|
-
*
|
|
741
|
-
* @example
|
|
742
|
-
* ```
|
|
743
|
-
* APPROVED
|
|
744
|
-
* ```
|
|
745
|
-
*/
|
|
746
|
-
approvalStatus?: "APPROVED" | "UNAPPROVED";
|
|
747
|
-
/**
|
|
748
|
-
* Deprecated. The URL of the profile for this reviewer. Max length is 2000
|
|
749
|
-
* characters.
|
|
750
|
-
*
|
|
751
|
-
* @example
|
|
752
|
-
* ```
|
|
753
|
-
* https://atlassian.com/account/jane_doe
|
|
754
|
-
* ```
|
|
755
|
-
* @deprecated
|
|
756
|
-
*/
|
|
757
|
-
url?: string;
|
|
758
|
-
/**
|
|
759
|
-
* Deprecated. The URL of the avatar for this reviewer. Max length is 2000
|
|
760
|
-
* characters.
|
|
761
|
-
*
|
|
762
|
-
* @example
|
|
763
|
-
* ```
|
|
764
|
-
* https://atlassian.com/account/jane_doe/avatar/32
|
|
765
|
-
* ```
|
|
766
|
-
* @deprecated
|
|
767
|
-
*/
|
|
768
|
-
avatar?: string;
|
|
769
|
-
/**
|
|
770
|
-
* The email address of this reviewer. Max length is 254 characters.
|
|
771
|
-
*
|
|
772
|
-
* @example
|
|
773
|
-
* ```
|
|
774
|
-
* jane_doe@example.com
|
|
775
|
-
* ```
|
|
776
|
-
*/
|
|
777
|
-
email?: string;
|
|
778
|
-
/**
|
|
779
|
-
* The Atlassian Account ID (AAID) of this reviewer. Max length is 128 characters.
|
|
780
|
-
*
|
|
781
|
-
* @example
|
|
782
|
-
* ```
|
|
783
|
-
* 655363:e4ca5e2d-a901-40e3-877e-bf5d22c0f130
|
|
784
|
-
* ```
|
|
785
|
-
*/
|
|
786
|
-
accountId?: string;
|
|
787
|
-
}
|
|
788
136
|
/**
|
|
789
137
|
* StoreDevinfoResult
|
|
790
138
|
*
|
|
@@ -829,5 +177,18 @@ export interface StoreDevinfoResult extends Record<string, unknown> {
|
|
|
829
177
|
* stored against those valid keys.
|
|
830
178
|
*/
|
|
831
179
|
unknownIssueKeys?: string[];
|
|
180
|
+
/**
|
|
181
|
+
* Associations that are not known on this Jira instance (if any).
|
|
182
|
+
*
|
|
183
|
+
* These may be invalid keys (e.g. `UTF-8` is sometimes incorrectly identified as
|
|
184
|
+
* a Jira issue key), or they may be for projects that no longer exist.
|
|
185
|
+
*
|
|
186
|
+
* If a development information entity has been associated with any other
|
|
187
|
+
* association other than those in this array it will still be stored against
|
|
188
|
+
* those valid associations.
|
|
189
|
+
* If a development information entity was only associated with the associations
|
|
190
|
+
* in this array, it is deemed to be invalid and it won't be persisted.
|
|
191
|
+
*/
|
|
192
|
+
unknownAssociations?: IssueIdOrKeysAssociation[];
|
|
832
193
|
}
|
|
833
194
|
export declare function registerDevelopmentInformationValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
|