@valiantys/atlassian-app-frontend 3.0.0-alpha-7 → 3.0.0-alpha-8
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/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +12 -3
- package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +54 -0
- package/data-access-issue/atlassian-app-frontend.api.md +4 -0
- package/data-access-issue/index.d.ts +19 -0
- package/package.json +1 -1
- package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +135 -0
- package/util-jira-v3-api/atlassian-app-frontend.api.md +23 -0
- package/util-jira-v3-api/index.d.ts +18 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=class u{constructor(e){this.fetchSvc=e}async updateField(e,s,t){await this.updateFields(e,{[s]:t})}async updateFields(e,s){await this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}`},{fields:s})}async getIssueField(e,s){var t;return(t=await this.getIssueFields(e,[s]))==null?void 0:t[s]}async getIssueFields(e,s){return(await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${s.join(",")}`})).fields}async getIssue(e,s=["*all"]){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${s.join(",")}`})}async issueSearch(e,s,t=50){let c;const h=[];do{const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=class u{constructor(e){this.fetchSvc=e}async updateField(e,s,t){await this.updateFields(e,{[s]:t})}async updateFields(e,s){await this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}`},{fields:s})}async getIssueField(e,s){var t;return(t=await this.getIssueFields(e,[s]))==null?void 0:t[s]}async getIssueFields(e,s){return(await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${s.join(",")}`})).fields}async getIssue(e,s=["*all"]){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${s.join(",")}`})}async issueSearch(e,s,t=50){let c;const h=[];do{const r=await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/search/jql?jql=${e}&fields=${s.join(",")}&maxResults=${t}&${c?"nextPageToken="+c:""}`});h.push(...r.issues),c=r.nextPageToken}while(c!==void 0);return h}async addWorklog(e,s){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/worklog`},s)}async queryForIssuesInProjects(e){const s=`project IN (${e.join(",")})`;return this.issueSearch(s,["key"],5e3)}async createIssue(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/2/issue`},e)}async updateIssue(e,s){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/2/issue/${e}`},s)}async getIssueComments(e,s=0){const t=s?`?startAt=${s}`:"";return await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment${t}`})}async getIssueCommentById(e,s){return await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment/${s}`})}async addIssueComment(e,s){return await this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment`},s)}async transitionIssue(e,s){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/transitions`},s)}async createIssueLink(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issueLink`},e)}};u.issueUrl="/rest/api/3/issue";let i=u;exports.JiraIssueService=i;
|
|
@@ -97,7 +97,7 @@ const i = class i {
|
|
|
97
97
|
}
|
|
98
98
|
// https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post
|
|
99
99
|
async transitionIssue(e, s) {
|
|
100
|
-
|
|
100
|
+
return this.fetchSvc.fetch(
|
|
101
101
|
{
|
|
102
102
|
method: "POST",
|
|
103
103
|
url: this.fetchSvc.route`/rest/api/3/issue/${e}/transitions`
|
|
@@ -105,9 +105,18 @@ const i = class i {
|
|
|
105
105
|
s
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
+
async createIssueLink(e) {
|
|
109
|
+
return this.fetchSvc.fetch(
|
|
110
|
+
{
|
|
111
|
+
method: "POST",
|
|
112
|
+
url: this.fetchSvc.route`/rest/api/3/issueLink`
|
|
113
|
+
},
|
|
114
|
+
e
|
|
115
|
+
);
|
|
116
|
+
}
|
|
108
117
|
};
|
|
109
118
|
i.issueUrl = "/rest/api/3/issue";
|
|
110
|
-
let
|
|
119
|
+
let r = i;
|
|
111
120
|
export {
|
|
112
|
-
|
|
121
|
+
r as JiraIssueService
|
|
113
122
|
};
|
|
@@ -446,6 +446,60 @@
|
|
|
446
446
|
"isAbstract": false,
|
|
447
447
|
"name": "createIssue"
|
|
448
448
|
},
|
|
449
|
+
{
|
|
450
|
+
"kind": "Method",
|
|
451
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#createIssueLink:member(1)",
|
|
452
|
+
"docComment": "",
|
|
453
|
+
"excerptTokens": [
|
|
454
|
+
{
|
|
455
|
+
"kind": "Content",
|
|
456
|
+
"text": "createIssueLink(issueLinkRequest: "
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"kind": "Reference",
|
|
460
|
+
"text": "IssueLinkRequest",
|
|
461
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~IssueLinkRequest:interface"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"kind": "Content",
|
|
465
|
+
"text": "): "
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"kind": "Reference",
|
|
469
|
+
"text": "Promise",
|
|
470
|
+
"canonicalReference": "!Promise:interface"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"kind": "Content",
|
|
474
|
+
"text": "<void>"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"kind": "Content",
|
|
478
|
+
"text": ";"
|
|
479
|
+
}
|
|
480
|
+
],
|
|
481
|
+
"isStatic": false,
|
|
482
|
+
"returnTypeTokenRange": {
|
|
483
|
+
"startIndex": 3,
|
|
484
|
+
"endIndex": 5
|
|
485
|
+
},
|
|
486
|
+
"releaseTag": "Public",
|
|
487
|
+
"isProtected": false,
|
|
488
|
+
"overloadIndex": 1,
|
|
489
|
+
"parameters": [
|
|
490
|
+
{
|
|
491
|
+
"parameterName": "issueLinkRequest",
|
|
492
|
+
"parameterTypeTokenRange": {
|
|
493
|
+
"startIndex": 1,
|
|
494
|
+
"endIndex": 2
|
|
495
|
+
},
|
|
496
|
+
"isOptional": false
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"isOptional": false,
|
|
500
|
+
"isAbstract": false,
|
|
501
|
+
"name": "createIssueLink"
|
|
502
|
+
},
|
|
449
503
|
{
|
|
450
504
|
"kind": "Method",
|
|
451
505
|
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#getIssue:member(1)",
|
|
@@ -22,6 +22,10 @@ export class JiraIssueService {
|
|
|
22
22
|
//
|
|
23
23
|
// (undocumented)
|
|
24
24
|
createIssue(body: CreateIssue): Promise<CreatedIssue>;
|
|
25
|
+
// Warning: (ae-forgotten-export) The symbol "IssueLinkRequest" needs to be exported by the entry point data-access-issue.d.ts
|
|
26
|
+
//
|
|
27
|
+
// (undocumented)
|
|
28
|
+
createIssueLink(issueLinkRequest: IssueLinkRequest): Promise<void>;
|
|
25
29
|
// Warning: (ae-forgotten-export) The symbol "Issue" needs to be exported by the entry point data-access-issue.d.ts
|
|
26
30
|
//
|
|
27
31
|
// (undocumented)
|
|
@@ -139,6 +139,24 @@ declare interface IssueLink {
|
|
|
139
139
|
inwardIssue?: Issue;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
declare interface IssueLinkRequest {
|
|
143
|
+
inwardIssue: {
|
|
144
|
+
id?: string;
|
|
145
|
+
key?: string;
|
|
146
|
+
};
|
|
147
|
+
outwardIssue: {
|
|
148
|
+
id?: string;
|
|
149
|
+
key?: string;
|
|
150
|
+
};
|
|
151
|
+
comment?: {
|
|
152
|
+
body: AtlassianDocumentFormat;
|
|
153
|
+
};
|
|
154
|
+
type: {
|
|
155
|
+
id?: string;
|
|
156
|
+
name?: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
142
160
|
declare interface IssueStatus {
|
|
143
161
|
self: string;
|
|
144
162
|
description: string;
|
|
@@ -185,6 +203,7 @@ export declare class JiraIssueService {
|
|
|
185
203
|
getIssueCommentById(issueIdOrKey: string, commentId: string): Promise<IssueComment | undefined>;
|
|
186
204
|
addIssueComment(issueIdOrKey: string, body: AtlassianDocumentFormat): Promise<IssueComment>;
|
|
187
205
|
transitionIssue(issueIdOrKey: string, body: TransitionIssueRequest): Promise<void>;
|
|
206
|
+
createIssueLink(issueLinkRequest: IssueLinkRequest): Promise<void>;
|
|
188
207
|
}
|
|
189
208
|
|
|
190
209
|
declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiantys/atlassian-app-frontend",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-8",
|
|
4
4
|
"description": "This library provides an Atlassian Forge Custom UI wrapper component that handles all the setup necessary to support an app that can run deployed or in standalone mode",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./atlassian-app": {
|
|
@@ -2125,6 +2125,141 @@
|
|
|
2125
2125
|
],
|
|
2126
2126
|
"extendsTokenRanges": []
|
|
2127
2127
|
},
|
|
2128
|
+
{
|
|
2129
|
+
"kind": "Interface",
|
|
2130
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!IssueLinkRequest:interface",
|
|
2131
|
+
"docComment": "",
|
|
2132
|
+
"excerptTokens": [
|
|
2133
|
+
{
|
|
2134
|
+
"kind": "Content",
|
|
2135
|
+
"text": "export interface IssueLinkRequest "
|
|
2136
|
+
}
|
|
2137
|
+
],
|
|
2138
|
+
"fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/issue-link.d.ts",
|
|
2139
|
+
"releaseTag": "Public",
|
|
2140
|
+
"name": "IssueLinkRequest",
|
|
2141
|
+
"preserveMemberOrder": false,
|
|
2142
|
+
"members": [
|
|
2143
|
+
{
|
|
2144
|
+
"kind": "PropertySignature",
|
|
2145
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!IssueLinkRequest#comment:member",
|
|
2146
|
+
"docComment": "",
|
|
2147
|
+
"excerptTokens": [
|
|
2148
|
+
{
|
|
2149
|
+
"kind": "Content",
|
|
2150
|
+
"text": "comment?: "
|
|
2151
|
+
},
|
|
2152
|
+
{
|
|
2153
|
+
"kind": "Content",
|
|
2154
|
+
"text": "{\n body: "
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
"kind": "Reference",
|
|
2158
|
+
"text": "AtlassianDocumentFormat",
|
|
2159
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianDocumentFormat:interface"
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"kind": "Content",
|
|
2163
|
+
"text": ";\n }"
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
"kind": "Content",
|
|
2167
|
+
"text": ";"
|
|
2168
|
+
}
|
|
2169
|
+
],
|
|
2170
|
+
"isReadonly": false,
|
|
2171
|
+
"isOptional": true,
|
|
2172
|
+
"releaseTag": "Public",
|
|
2173
|
+
"name": "comment",
|
|
2174
|
+
"propertyTypeTokenRange": {
|
|
2175
|
+
"startIndex": 1,
|
|
2176
|
+
"endIndex": 4
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"kind": "PropertySignature",
|
|
2181
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!IssueLinkRequest#inwardIssue:member",
|
|
2182
|
+
"docComment": "",
|
|
2183
|
+
"excerptTokens": [
|
|
2184
|
+
{
|
|
2185
|
+
"kind": "Content",
|
|
2186
|
+
"text": "inwardIssue: "
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"kind": "Content",
|
|
2190
|
+
"text": "{\n id?: string;\n key?: string;\n }"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
"kind": "Content",
|
|
2194
|
+
"text": ";"
|
|
2195
|
+
}
|
|
2196
|
+
],
|
|
2197
|
+
"isReadonly": false,
|
|
2198
|
+
"isOptional": false,
|
|
2199
|
+
"releaseTag": "Public",
|
|
2200
|
+
"name": "inwardIssue",
|
|
2201
|
+
"propertyTypeTokenRange": {
|
|
2202
|
+
"startIndex": 1,
|
|
2203
|
+
"endIndex": 2
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"kind": "PropertySignature",
|
|
2208
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!IssueLinkRequest#outwardIssue:member",
|
|
2209
|
+
"docComment": "",
|
|
2210
|
+
"excerptTokens": [
|
|
2211
|
+
{
|
|
2212
|
+
"kind": "Content",
|
|
2213
|
+
"text": "outwardIssue: "
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
"kind": "Content",
|
|
2217
|
+
"text": "{\n id?: string;\n key?: string;\n }"
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
"kind": "Content",
|
|
2221
|
+
"text": ";"
|
|
2222
|
+
}
|
|
2223
|
+
],
|
|
2224
|
+
"isReadonly": false,
|
|
2225
|
+
"isOptional": false,
|
|
2226
|
+
"releaseTag": "Public",
|
|
2227
|
+
"name": "outwardIssue",
|
|
2228
|
+
"propertyTypeTokenRange": {
|
|
2229
|
+
"startIndex": 1,
|
|
2230
|
+
"endIndex": 2
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"kind": "PropertySignature",
|
|
2235
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!IssueLinkRequest#type:member",
|
|
2236
|
+
"docComment": "",
|
|
2237
|
+
"excerptTokens": [
|
|
2238
|
+
{
|
|
2239
|
+
"kind": "Content",
|
|
2240
|
+
"text": "type: "
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
"kind": "Content",
|
|
2244
|
+
"text": "{\n id?: string;\n name?: string;\n }"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"kind": "Content",
|
|
2248
|
+
"text": ";"
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"isReadonly": false,
|
|
2252
|
+
"isOptional": false,
|
|
2253
|
+
"releaseTag": "Public",
|
|
2254
|
+
"name": "type",
|
|
2255
|
+
"propertyTypeTokenRange": {
|
|
2256
|
+
"startIndex": 1,
|
|
2257
|
+
"endIndex": 2
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
],
|
|
2261
|
+
"extendsTokenRanges": []
|
|
2262
|
+
},
|
|
2128
2263
|
{
|
|
2129
2264
|
"kind": "Interface",
|
|
2130
2265
|
"canonicalReference": "@valiantys/atlassian-app-frontend!IssueStatus:interface",
|
|
@@ -206,6 +206,29 @@ export interface IssueLink {
|
|
|
206
206
|
outwardIssue?: Issue;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
// @public (undocumented)
|
|
210
|
+
export interface IssueLinkRequest {
|
|
211
|
+
// (undocumented)
|
|
212
|
+
comment?: {
|
|
213
|
+
body: AtlassianDocumentFormat;
|
|
214
|
+
};
|
|
215
|
+
// (undocumented)
|
|
216
|
+
inwardIssue: {
|
|
217
|
+
id?: string;
|
|
218
|
+
key?: string;
|
|
219
|
+
};
|
|
220
|
+
// (undocumented)
|
|
221
|
+
outwardIssue: {
|
|
222
|
+
id?: string;
|
|
223
|
+
key?: string;
|
|
224
|
+
};
|
|
225
|
+
// (undocumented)
|
|
226
|
+
type: {
|
|
227
|
+
id?: string;
|
|
228
|
+
name?: string;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
209
232
|
// @public (undocumented)
|
|
210
233
|
export interface IssueStatus {
|
|
211
234
|
// (undocumented)
|
|
@@ -130,6 +130,24 @@ export declare interface IssueLink {
|
|
|
130
130
|
inwardIssue?: Issue;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
export declare interface IssueLinkRequest {
|
|
134
|
+
inwardIssue: {
|
|
135
|
+
id?: string;
|
|
136
|
+
key?: string;
|
|
137
|
+
};
|
|
138
|
+
outwardIssue: {
|
|
139
|
+
id?: string;
|
|
140
|
+
key?: string;
|
|
141
|
+
};
|
|
142
|
+
comment?: {
|
|
143
|
+
body: AtlassianDocumentFormat;
|
|
144
|
+
};
|
|
145
|
+
type: {
|
|
146
|
+
id?: string;
|
|
147
|
+
name?: string;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
133
151
|
export declare interface IssueStatus {
|
|
134
152
|
self: string;
|
|
135
153
|
description: string;
|