@valiantys/atlassian-app-frontend 3.0.0-alpha-27 → 3.0.0-alpha-28
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-remote-links-service/index.cjs.js +1 -0
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js +20 -0
- package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +187 -0
- package/data-access-issue/atlassian-app-frontend.api.md +11 -0
- package/data-access-issue/index.cjs.js +1 -1
- package/data-access-issue/index.d.ts +35 -0
- package/data-access-issue/index.es.js +3 -1
- package/package.json +1 -1
- package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
- package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +24 -19
- package/ui-host-router/atlassian-app-frontend-ui-host-router.api.json +19 -5
- package/ui-host-router/atlassian-app-frontend.api.md +3 -2
- package/ui-host-router/index.d.ts +3 -2
- package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +61 -0
- package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +3 -0
- package/util-atlassian-product-fetch/index.cjs.js +1 -1
- package/util-atlassian-product-fetch/index.d.ts +2 -0
- package/util-atlassian-product-fetch/index.es.js +4 -3
- package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +180 -0
- package/util-jira-v3-api/atlassian-app-frontend.api.md +35 -0
- package/util-jira-v3-api/index.d.ts +28 -0
package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class r{constructor(e){this.fetchSvc=e}getRemoteLinksForIssue(e){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink`})}deleteRemoteLinkForIssueById(e,t){return this.fetchSvc.fetch({method:"DELETE",url:this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink/${t}`})}}exports.JiraRemoteLinksService=r;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class r {
|
|
2
|
+
constructor(e) {
|
|
3
|
+
this.fetchSvc = e;
|
|
4
|
+
}
|
|
5
|
+
getRemoteLinksForIssue(e) {
|
|
6
|
+
return this.fetchSvc.fetch({
|
|
7
|
+
method: "GET",
|
|
8
|
+
url: this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink`
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
deleteRemoteLinkForIssueById(e, t) {
|
|
12
|
+
return this.fetchSvc.fetch({
|
|
13
|
+
method: "DELETE",
|
|
14
|
+
url: this.fetchSvc.route`/rest/api/3/issue/${e}/remotelink/${t}`
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
r as JiraRemoteLinksService
|
|
20
|
+
};
|
|
@@ -1704,6 +1704,193 @@
|
|
|
1704
1704
|
}
|
|
1705
1705
|
],
|
|
1706
1706
|
"implementsTokenRanges": []
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"kind": "Class",
|
|
1710
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraRemoteLinksService:class",
|
|
1711
|
+
"docComment": "",
|
|
1712
|
+
"excerptTokens": [
|
|
1713
|
+
{
|
|
1714
|
+
"kind": "Content",
|
|
1715
|
+
"text": "export declare class JiraRemoteLinksService "
|
|
1716
|
+
}
|
|
1717
|
+
],
|
|
1718
|
+
"fileUrlPath": "../../jira/shared/data-access-issue/src/lib/jira-remote-links-service.d.ts",
|
|
1719
|
+
"releaseTag": "Public",
|
|
1720
|
+
"isAbstract": false,
|
|
1721
|
+
"name": "JiraRemoteLinksService",
|
|
1722
|
+
"preserveMemberOrder": false,
|
|
1723
|
+
"members": [
|
|
1724
|
+
{
|
|
1725
|
+
"kind": "Constructor",
|
|
1726
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraRemoteLinksService:constructor(1)",
|
|
1727
|
+
"docComment": "/**\n * Constructs a new instance of the `JiraRemoteLinksService` class\n */\n",
|
|
1728
|
+
"excerptTokens": [
|
|
1729
|
+
{
|
|
1730
|
+
"kind": "Content",
|
|
1731
|
+
"text": "constructor(fetchSvc: "
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
"kind": "Reference",
|
|
1735
|
+
"text": "AtlassianProductFetchService",
|
|
1736
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~AtlassianProductFetchService:interface"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"kind": "Content",
|
|
1740
|
+
"text": "<'jira'>"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"kind": "Content",
|
|
1744
|
+
"text": ");"
|
|
1745
|
+
}
|
|
1746
|
+
],
|
|
1747
|
+
"releaseTag": "Public",
|
|
1748
|
+
"isProtected": false,
|
|
1749
|
+
"overloadIndex": 1,
|
|
1750
|
+
"parameters": [
|
|
1751
|
+
{
|
|
1752
|
+
"parameterName": "fetchSvc",
|
|
1753
|
+
"parameterTypeTokenRange": {
|
|
1754
|
+
"startIndex": 1,
|
|
1755
|
+
"endIndex": 3
|
|
1756
|
+
},
|
|
1757
|
+
"isOptional": false
|
|
1758
|
+
}
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"kind": "Method",
|
|
1763
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraRemoteLinksService#deleteRemoteLinkForIssueById:member(1)",
|
|
1764
|
+
"docComment": "",
|
|
1765
|
+
"excerptTokens": [
|
|
1766
|
+
{
|
|
1767
|
+
"kind": "Content",
|
|
1768
|
+
"text": "deleteRemoteLinkForIssueById(issueIdOrKey: "
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"kind": "Content",
|
|
1772
|
+
"text": "string"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"kind": "Content",
|
|
1776
|
+
"text": ", linkId: "
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"kind": "Content",
|
|
1780
|
+
"text": "number"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"kind": "Content",
|
|
1784
|
+
"text": "): "
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"kind": "Reference",
|
|
1788
|
+
"text": "Promise",
|
|
1789
|
+
"canonicalReference": "!Promise:interface"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"kind": "Content",
|
|
1793
|
+
"text": "<void>"
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
"kind": "Content",
|
|
1797
|
+
"text": ";"
|
|
1798
|
+
}
|
|
1799
|
+
],
|
|
1800
|
+
"isStatic": false,
|
|
1801
|
+
"returnTypeTokenRange": {
|
|
1802
|
+
"startIndex": 5,
|
|
1803
|
+
"endIndex": 7
|
|
1804
|
+
},
|
|
1805
|
+
"releaseTag": "Public",
|
|
1806
|
+
"isProtected": false,
|
|
1807
|
+
"overloadIndex": 1,
|
|
1808
|
+
"parameters": [
|
|
1809
|
+
{
|
|
1810
|
+
"parameterName": "issueIdOrKey",
|
|
1811
|
+
"parameterTypeTokenRange": {
|
|
1812
|
+
"startIndex": 1,
|
|
1813
|
+
"endIndex": 2
|
|
1814
|
+
},
|
|
1815
|
+
"isOptional": false
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"parameterName": "linkId",
|
|
1819
|
+
"parameterTypeTokenRange": {
|
|
1820
|
+
"startIndex": 3,
|
|
1821
|
+
"endIndex": 4
|
|
1822
|
+
},
|
|
1823
|
+
"isOptional": false
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
"isOptional": false,
|
|
1827
|
+
"isAbstract": false,
|
|
1828
|
+
"name": "deleteRemoteLinkForIssueById"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"kind": "Method",
|
|
1832
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraRemoteLinksService#getRemoteLinksForIssue:member(1)",
|
|
1833
|
+
"docComment": "",
|
|
1834
|
+
"excerptTokens": [
|
|
1835
|
+
{
|
|
1836
|
+
"kind": "Content",
|
|
1837
|
+
"text": "getRemoteLinksForIssue(issueIdOrKey: "
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"kind": "Content",
|
|
1841
|
+
"text": "string"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
"kind": "Content",
|
|
1845
|
+
"text": "): "
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"kind": "Reference",
|
|
1849
|
+
"text": "Promise",
|
|
1850
|
+
"canonicalReference": "!Promise:interface"
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
"kind": "Content",
|
|
1854
|
+
"text": "<"
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
"kind": "Reference",
|
|
1858
|
+
"text": "RemoteIssueLink",
|
|
1859
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~RemoteIssueLink:interface"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"kind": "Content",
|
|
1863
|
+
"text": "[]>"
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"kind": "Content",
|
|
1867
|
+
"text": ";"
|
|
1868
|
+
}
|
|
1869
|
+
],
|
|
1870
|
+
"isStatic": false,
|
|
1871
|
+
"returnTypeTokenRange": {
|
|
1872
|
+
"startIndex": 3,
|
|
1873
|
+
"endIndex": 7
|
|
1874
|
+
},
|
|
1875
|
+
"releaseTag": "Public",
|
|
1876
|
+
"isProtected": false,
|
|
1877
|
+
"overloadIndex": 1,
|
|
1878
|
+
"parameters": [
|
|
1879
|
+
{
|
|
1880
|
+
"parameterName": "issueIdOrKey",
|
|
1881
|
+
"parameterTypeTokenRange": {
|
|
1882
|
+
"startIndex": 1,
|
|
1883
|
+
"endIndex": 2
|
|
1884
|
+
},
|
|
1885
|
+
"isOptional": false
|
|
1886
|
+
}
|
|
1887
|
+
],
|
|
1888
|
+
"isOptional": false,
|
|
1889
|
+
"isAbstract": false,
|
|
1890
|
+
"name": "getRemoteLinksForIssue"
|
|
1891
|
+
}
|
|
1892
|
+
],
|
|
1893
|
+
"implementsTokenRanges": []
|
|
1707
1894
|
}
|
|
1708
1895
|
]
|
|
1709
1896
|
}
|
|
@@ -79,6 +79,17 @@ export class JiraIssueService {
|
|
|
79
79
|
updateProperty(issueIdOrKey: string, propertyName: string, value: any): Promise<void>;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
// @public (undocumented)
|
|
83
|
+
export class JiraRemoteLinksService {
|
|
84
|
+
constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
|
|
85
|
+
// (undocumented)
|
|
86
|
+
deleteRemoteLinkForIssueById(issueIdOrKey: string, linkId: number): Promise<void>;
|
|
87
|
+
// Warning: (ae-forgotten-export) The symbol "RemoteIssueLink" needs to be exported by the entry point data-access-issue.d.ts
|
|
88
|
+
//
|
|
89
|
+
// (undocumented)
|
|
90
|
+
getRemoteLinksForIssue(issueIdOrKey: string): Promise<RemoteIssueLink[]>;
|
|
91
|
+
}
|
|
92
|
+
|
|
82
93
|
// (No @packageDocumentation comment for this package)
|
|
83
94
|
|
|
84
95
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js");exports.JiraIssueService=e.JiraIssueService;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js"),i=require("../atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js");exports.JiraIssueService=e.JiraIssueService;exports.JiraRemoteLinksService=i.JiraRemoteLinksService;
|
|
@@ -256,6 +256,13 @@ export declare class JiraIssueService {
|
|
|
256
256
|
getIssueTypeSchemes(): Promise<IssueTypeScheme[]>;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
+
export declare class JiraRemoteLinksService {
|
|
260
|
+
private readonly fetchSvc;
|
|
261
|
+
constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
|
|
262
|
+
getRemoteLinksForIssue(issueIdOrKey: string): Promise<RemoteIssueLink[]>;
|
|
263
|
+
deleteRemoteLinkForIssueById(issueIdOrKey: string, linkId: number): Promise<void>;
|
|
264
|
+
}
|
|
265
|
+
|
|
259
266
|
declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
|
|
260
267
|
|
|
261
268
|
declare interface Project {
|
|
@@ -270,6 +277,34 @@ declare interface Project {
|
|
|
270
277
|
lead?: User;
|
|
271
278
|
}
|
|
272
279
|
|
|
280
|
+
declare interface RemoteIssueLink {
|
|
281
|
+
application?: {
|
|
282
|
+
name?: string;
|
|
283
|
+
type?: string;
|
|
284
|
+
};
|
|
285
|
+
globalId?: string;
|
|
286
|
+
id?: number;
|
|
287
|
+
object: {
|
|
288
|
+
icon?: {
|
|
289
|
+
title?: string;
|
|
290
|
+
url16x16?: string;
|
|
291
|
+
};
|
|
292
|
+
status?: {
|
|
293
|
+
icon?: {
|
|
294
|
+
link?: string;
|
|
295
|
+
title?: string;
|
|
296
|
+
url16x16?: string;
|
|
297
|
+
};
|
|
298
|
+
resolved?: boolean;
|
|
299
|
+
};
|
|
300
|
+
summary?: string;
|
|
301
|
+
title: string;
|
|
302
|
+
url: string;
|
|
303
|
+
};
|
|
304
|
+
relationship?: string;
|
|
305
|
+
self?: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
273
308
|
declare type RequestProductMethod = (url: FetchRoute, init: RequestInit) => Promise<APIResponse>;
|
|
274
309
|
|
|
275
310
|
declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { JiraIssueService as i } from "../atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js";
|
|
2
|
+
import { JiraRemoteLinksService as m } from "../atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js";
|
|
2
3
|
export {
|
|
3
|
-
i as JiraIssueService
|
|
4
|
+
i as JiraIssueService,
|
|
5
|
+
m as JiraRemoteLinksService
|
|
4
6
|
};
|
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-28",
|
|
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": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class
|
|
2
|
-
${i}`;throw console.error(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class f extends Error{constructor(t,r,a=t){super(a),this.statusText=t,this.statusCode=r,this.statusCode=r,this.statusText=t}toJSON(){return{statusCode:this.statusCode,statusText:this.statusText}}}function h(e,t){const r={Authorization:e.startsWith("Bearer ")||e.startsWith("Basic ")?e:`Bearer ${e}`};return t?{...t,...r}:r}function A(e,t){return"Basic "+Buffer.from(`${e}:${t}`).toString("base64")}async function B(e,t,r){const a=h(e,r.headers||{});return fetch(t,{...r,headers:a})}async function b(e,t,r,a,n="json",c={}){return l(t,r,h(e,c),a,n)}async function l(e,t,r,a,n="json",c){const d=typeof c=="string"?{includeCredentials:c}:c??{},j={...r,Accept:n==="json"?"application/json":"text/html","Content-Type":n==="json"?"application/json":"text/html"},x=a?JSON.stringify(a):void 0,s=await fetch(e,{method:t,headers:j,body:x,credentials:d.includeCredentials});let o;if(s.ok){if(t==="DELETE"||s.status===204?o=void 0:n==="text"?o=await s.text():o=await s.json(),d.returnMetadata){const i={};return s.headers.forEach((u,y)=>{i[y]=u}),{body:o,headers:i}}return o}else{let i="";try{i=await s.text()}catch{}const u=`${s.status} ${s.statusText} - ${t} ${e}
|
|
2
|
+
${i}`;throw console.error(u),new f(s.statusText,s.status,u)}}exports.FetchError=f;exports.addAuthHeader=h;exports.bearerAuthFetch=b;exports.bearerAuthFetchRaw=B;exports.encodeBasicAuthHeaderValue=A;exports.jsonFetch=l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class j extends Error {
|
|
2
|
-
constructor(t,
|
|
3
|
-
super(a), this.statusText = t, this.statusCode =
|
|
2
|
+
constructor(t, s, a = t) {
|
|
3
|
+
super(a), this.statusText = t, this.statusCode = s, this.statusCode = s, this.statusText = t;
|
|
4
4
|
}
|
|
5
5
|
toJSON() {
|
|
6
6
|
return {
|
|
@@ -9,34 +9,38 @@ class j extends Error {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function d(
|
|
13
|
-
const
|
|
14
|
-
Authorization:
|
|
12
|
+
function d(e, t) {
|
|
13
|
+
const s = {
|
|
14
|
+
Authorization: e.startsWith("Bearer ") || e.startsWith("Basic ") ? e : `Bearer ${e}`
|
|
15
|
+
// default to Bearer token if not provided
|
|
15
16
|
};
|
|
16
|
-
return t ? { ...t, ...
|
|
17
|
+
return t ? { ...t, ...s } : s;
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
+
function B(e, t) {
|
|
20
|
+
return "Basic " + Buffer.from(`${e}:${t}`).toString("base64");
|
|
21
|
+
}
|
|
22
|
+
async function $(e, t, s) {
|
|
19
23
|
const a = d(
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
e,
|
|
25
|
+
s.headers || {}
|
|
22
26
|
);
|
|
23
|
-
return fetch(t, { ...
|
|
27
|
+
return fetch(t, { ...s, headers: a });
|
|
24
28
|
}
|
|
25
|
-
async function
|
|
29
|
+
async function p(e, t, s, a, n = "json", o = {}) {
|
|
26
30
|
return y(
|
|
27
31
|
t,
|
|
28
|
-
|
|
29
|
-
d(
|
|
32
|
+
s,
|
|
33
|
+
d(e, o),
|
|
30
34
|
a,
|
|
31
35
|
n
|
|
32
36
|
);
|
|
33
37
|
}
|
|
34
|
-
async function y(
|
|
38
|
+
async function y(e, t, s, a, n = "json", o) {
|
|
35
39
|
const h = typeof o == "string" ? { includeCredentials: o } : o ?? {}, f = {
|
|
36
|
-
...
|
|
40
|
+
...s,
|
|
37
41
|
Accept: n === "json" ? "application/json" : "text/html",
|
|
38
42
|
"Content-Type": n === "json" ? "application/json" : "text/html"
|
|
39
|
-
}, l = a ? JSON.stringify(a) : void 0, r = await fetch(
|
|
43
|
+
}, l = a ? JSON.stringify(a) : void 0, r = await fetch(e, {
|
|
40
44
|
method: t,
|
|
41
45
|
headers: f,
|
|
42
46
|
body: l,
|
|
@@ -57,7 +61,7 @@ async function y(s, t, e, a, n = "json", o) {
|
|
|
57
61
|
i = await r.text();
|
|
58
62
|
} catch {
|
|
59
63
|
}
|
|
60
|
-
const u = `${r.status} ${r.statusText} - ${t} ${
|
|
64
|
+
const u = `${r.status} ${r.statusText} - ${t} ${e}
|
|
61
65
|
${i}`;
|
|
62
66
|
throw console.error(u), new j(r.statusText, r.status, u);
|
|
63
67
|
}
|
|
@@ -65,7 +69,8 @@ async function y(s, t, e, a, n = "json", o) {
|
|
|
65
69
|
export {
|
|
66
70
|
j as FetchError,
|
|
67
71
|
d as addAuthHeader,
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
p as bearerAuthFetch,
|
|
73
|
+
$ as bearerAuthFetchRaw,
|
|
74
|
+
B as encodeBasicAuthHeaderValue,
|
|
70
75
|
y as jsonFetch
|
|
71
76
|
};
|
|
@@ -332,11 +332,24 @@
|
|
|
332
332
|
"kind": "Content",
|
|
333
333
|
"text": "export declare function HostRouterLink({ url, action, label, linkStyle, buttonIcon, buttonAppearance, }: "
|
|
334
334
|
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "Reference",
|
|
337
|
+
"text": "Readonly",
|
|
338
|
+
"canonicalReference": "!Readonly:type"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "Content",
|
|
342
|
+
"text": "<"
|
|
343
|
+
},
|
|
335
344
|
{
|
|
336
345
|
"kind": "Reference",
|
|
337
346
|
"text": "HostRouterLinkProps",
|
|
338
347
|
"canonicalReference": "@valiantys/atlassian-app-frontend!HostRouterLinkProps:interface"
|
|
339
348
|
},
|
|
349
|
+
{
|
|
350
|
+
"kind": "Content",
|
|
351
|
+
"text": ">"
|
|
352
|
+
},
|
|
340
353
|
{
|
|
341
354
|
"kind": "Content",
|
|
342
355
|
"text": "): "
|
|
@@ -357,8 +370,8 @@
|
|
|
357
370
|
],
|
|
358
371
|
"fileUrlPath": "../../shared/frontend-ui-host-router/src/lib/host-router-link.d.ts",
|
|
359
372
|
"returnTypeTokenRange": {
|
|
360
|
-
"startIndex":
|
|
361
|
-
"endIndex":
|
|
373
|
+
"startIndex": 6,
|
|
374
|
+
"endIndex": 8
|
|
362
375
|
},
|
|
363
376
|
"releaseTag": "Public",
|
|
364
377
|
"overloadIndex": 1,
|
|
@@ -367,7 +380,7 @@
|
|
|
367
380
|
"parameterName": "{ url, action, label, linkStyle, buttonIcon, buttonAppearance, }",
|
|
368
381
|
"parameterTypeTokenRange": {
|
|
369
382
|
"startIndex": 1,
|
|
370
|
-
"endIndex":
|
|
383
|
+
"endIndex": 5
|
|
371
384
|
},
|
|
372
385
|
"isOptional": false
|
|
373
386
|
}
|
|
@@ -482,8 +495,9 @@
|
|
|
482
495
|
"text": "label: "
|
|
483
496
|
},
|
|
484
497
|
{
|
|
485
|
-
"kind": "
|
|
486
|
-
"text": "
|
|
498
|
+
"kind": "Reference",
|
|
499
|
+
"text": "React.ReactNode",
|
|
500
|
+
"canonicalReference": "@types/react!React.ReactNode:type"
|
|
487
501
|
},
|
|
488
502
|
{
|
|
489
503
|
"kind": "Content",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import { default as default_2 } from 'react';
|
|
7
8
|
import { IconButtonAppearance } from '@atlaskit/button/new';
|
|
8
9
|
import { IconProp } from '@atlaskit/button/new';
|
|
9
10
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -20,7 +21,7 @@ export interface HostRouter {
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
// @public (undocumented)
|
|
23
|
-
export function HostRouterLink({ url, action, label, linkStyle, buttonIcon, buttonAppearance, }: HostRouterLinkProps): JSX_2.Element;
|
|
24
|
+
export function HostRouterLink({ url, action, label, linkStyle, buttonIcon, buttonAppearance, }: Readonly<HostRouterLinkProps>): JSX_2.Element;
|
|
24
25
|
|
|
25
26
|
// @public (undocumented)
|
|
26
27
|
export interface HostRouterLinkProps {
|
|
@@ -30,7 +31,7 @@ export interface HostRouterLinkProps {
|
|
|
30
31
|
buttonAppearance?: IconButtonAppearance;
|
|
31
32
|
// (undocumented)
|
|
32
33
|
buttonIcon?: IconProp;
|
|
33
|
-
label:
|
|
34
|
+
label: default_2.ReactNode;
|
|
34
35
|
// (undocumented)
|
|
35
36
|
linkStyle: 'link' | 'button';
|
|
36
37
|
// (undocumented)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
1
2
|
import { IconButtonAppearance } from '@atlaskit/button/new';
|
|
2
3
|
import { IconProp } from '@atlaskit/button/new';
|
|
3
4
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -9,13 +10,13 @@ export declare interface HostRouter {
|
|
|
9
10
|
reload(): Promise<void>;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
export declare function HostRouterLink({ url, action, label, linkStyle, buttonIcon, buttonAppearance, }: HostRouterLinkProps): JSX_2.Element;
|
|
13
|
+
export declare function HostRouterLink({ url, action, label, linkStyle, buttonIcon, buttonAppearance, }: Readonly<HostRouterLinkProps>): JSX_2.Element;
|
|
13
14
|
|
|
14
15
|
export declare interface HostRouterLinkProps {
|
|
15
16
|
url: string;
|
|
16
17
|
action: 'navigate' | 'open';
|
|
17
18
|
/** anchor text or button label **/
|
|
18
|
-
label:
|
|
19
|
+
label: default_2.ReactNode;
|
|
19
20
|
linkStyle: 'link' | 'button';
|
|
20
21
|
buttonIcon?: IconProp;
|
|
21
22
|
buttonAppearance?: IconButtonAppearance;
|
package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json
CHANGED
|
@@ -807,6 +807,67 @@
|
|
|
807
807
|
],
|
|
808
808
|
"name": "bearerAuthFetchRaw"
|
|
809
809
|
},
|
|
810
|
+
{
|
|
811
|
+
"kind": "Function",
|
|
812
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!encodeBasicAuthHeaderValue:function(1)",
|
|
813
|
+
"docComment": "",
|
|
814
|
+
"excerptTokens": [
|
|
815
|
+
{
|
|
816
|
+
"kind": "Content",
|
|
817
|
+
"text": "export declare function encodeBasicAuthHeaderValue(email: "
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"kind": "Content",
|
|
821
|
+
"text": "string"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"kind": "Content",
|
|
825
|
+
"text": ", apiToken: "
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"kind": "Content",
|
|
829
|
+
"text": "string"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"kind": "Content",
|
|
833
|
+
"text": "): "
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"kind": "Content",
|
|
837
|
+
"text": "string"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"kind": "Content",
|
|
841
|
+
"text": ";"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"fileUrlPath": "../../../shared/util-fetch/src/lib/shared-util-fetch.d.ts",
|
|
845
|
+
"returnTypeTokenRange": {
|
|
846
|
+
"startIndex": 5,
|
|
847
|
+
"endIndex": 6
|
|
848
|
+
},
|
|
849
|
+
"releaseTag": "Public",
|
|
850
|
+
"overloadIndex": 1,
|
|
851
|
+
"parameters": [
|
|
852
|
+
{
|
|
853
|
+
"parameterName": "email",
|
|
854
|
+
"parameterTypeTokenRange": {
|
|
855
|
+
"startIndex": 1,
|
|
856
|
+
"endIndex": 2
|
|
857
|
+
},
|
|
858
|
+
"isOptional": false
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"parameterName": "apiToken",
|
|
862
|
+
"parameterTypeTokenRange": {
|
|
863
|
+
"startIndex": 3,
|
|
864
|
+
"endIndex": 4
|
|
865
|
+
},
|
|
866
|
+
"isOptional": false
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"name": "encodeBasicAuthHeaderValue"
|
|
870
|
+
},
|
|
810
871
|
{
|
|
811
872
|
"kind": "Class",
|
|
812
873
|
"canonicalReference": "@valiantys/atlassian-app-frontend!FetchError:class",
|
|
@@ -40,6 +40,9 @@ export function bearerAuthFetch<T>(authToken: string, url: string, method: Fetch
|
|
|
40
40
|
// @public (undocumented)
|
|
41
41
|
export function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
|
|
42
42
|
|
|
43
|
+
// @public (undocumented)
|
|
44
|
+
export function encodeBasicAuthHeaderValue(email: string, apiToken: string): string;
|
|
45
|
+
|
|
43
46
|
// @public (undocumented)
|
|
44
47
|
export class FetchError extends Error {
|
|
45
48
|
constructor(statusText: string, statusCode: number, message?: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js");exports.FetchError=e.FetchError;exports.addAuthHeader=e.addAuthHeader;exports.bearerAuthFetch=e.bearerAuthFetch;exports.bearerAuthFetchRaw=e.bearerAuthFetchRaw;exports.jsonFetch=e.jsonFetch;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js");exports.FetchError=e.FetchError;exports.addAuthHeader=e.addAuthHeader;exports.bearerAuthFetch=e.bearerAuthFetch;exports.bearerAuthFetchRaw=e.bearerAuthFetchRaw;exports.encodeBasicAuthHeaderValue=e.encodeBasicAuthHeaderValue;exports.jsonFetch=e.jsonFetch;
|
|
@@ -21,6 +21,8 @@ export declare function bearerAuthFetch<T>(authToken: string, url: string, metho
|
|
|
21
21
|
|
|
22
22
|
export declare function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
|
|
23
23
|
|
|
24
|
+
export declare function encodeBasicAuthHeaderValue(email: string, apiToken: string): string;
|
|
25
|
+
|
|
24
26
|
export declare class FetchError extends Error {
|
|
25
27
|
readonly statusText: string;
|
|
26
28
|
readonly statusCode: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchError as t, addAuthHeader as
|
|
1
|
+
import { FetchError as t, addAuthHeader as a, bearerAuthFetch as h, bearerAuthFetchRaw as c, encodeBasicAuthHeaderValue as d, jsonFetch as o } from "../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
|
|
2
2
|
export {
|
|
3
3
|
t as FetchError,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
a as addAuthHeader,
|
|
5
|
+
h as bearerAuthFetch,
|
|
6
6
|
c as bearerAuthFetchRaw,
|
|
7
|
+
d as encodeBasicAuthHeaderValue,
|
|
7
8
|
o as jsonFetch
|
|
8
9
|
};
|
|
@@ -4925,6 +4925,186 @@
|
|
|
4925
4925
|
],
|
|
4926
4926
|
"extendsTokenRanges": []
|
|
4927
4927
|
},
|
|
4928
|
+
{
|
|
4929
|
+
"kind": "Interface",
|
|
4930
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink:interface",
|
|
4931
|
+
"docComment": "",
|
|
4932
|
+
"excerptTokens": [
|
|
4933
|
+
{
|
|
4934
|
+
"kind": "Content",
|
|
4935
|
+
"text": "export interface RemoteIssueLink "
|
|
4936
|
+
}
|
|
4937
|
+
],
|
|
4938
|
+
"fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/remote-issue-link.d.ts",
|
|
4939
|
+
"releaseTag": "Public",
|
|
4940
|
+
"name": "RemoteIssueLink",
|
|
4941
|
+
"preserveMemberOrder": false,
|
|
4942
|
+
"members": [
|
|
4943
|
+
{
|
|
4944
|
+
"kind": "PropertySignature",
|
|
4945
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink#application:member",
|
|
4946
|
+
"docComment": "",
|
|
4947
|
+
"excerptTokens": [
|
|
4948
|
+
{
|
|
4949
|
+
"kind": "Content",
|
|
4950
|
+
"text": "application?: "
|
|
4951
|
+
},
|
|
4952
|
+
{
|
|
4953
|
+
"kind": "Content",
|
|
4954
|
+
"text": "{\n name?: string;\n type?: string;\n }"
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
"kind": "Content",
|
|
4958
|
+
"text": ";"
|
|
4959
|
+
}
|
|
4960
|
+
],
|
|
4961
|
+
"isReadonly": false,
|
|
4962
|
+
"isOptional": true,
|
|
4963
|
+
"releaseTag": "Public",
|
|
4964
|
+
"name": "application",
|
|
4965
|
+
"propertyTypeTokenRange": {
|
|
4966
|
+
"startIndex": 1,
|
|
4967
|
+
"endIndex": 2
|
|
4968
|
+
}
|
|
4969
|
+
},
|
|
4970
|
+
{
|
|
4971
|
+
"kind": "PropertySignature",
|
|
4972
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink#globalId:member",
|
|
4973
|
+
"docComment": "",
|
|
4974
|
+
"excerptTokens": [
|
|
4975
|
+
{
|
|
4976
|
+
"kind": "Content",
|
|
4977
|
+
"text": "globalId?: "
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
"kind": "Content",
|
|
4981
|
+
"text": "string"
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
"kind": "Content",
|
|
4985
|
+
"text": ";"
|
|
4986
|
+
}
|
|
4987
|
+
],
|
|
4988
|
+
"isReadonly": false,
|
|
4989
|
+
"isOptional": true,
|
|
4990
|
+
"releaseTag": "Public",
|
|
4991
|
+
"name": "globalId",
|
|
4992
|
+
"propertyTypeTokenRange": {
|
|
4993
|
+
"startIndex": 1,
|
|
4994
|
+
"endIndex": 2
|
|
4995
|
+
}
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
"kind": "PropertySignature",
|
|
4999
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink#id:member",
|
|
5000
|
+
"docComment": "",
|
|
5001
|
+
"excerptTokens": [
|
|
5002
|
+
{
|
|
5003
|
+
"kind": "Content",
|
|
5004
|
+
"text": "id?: "
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
"kind": "Content",
|
|
5008
|
+
"text": "number"
|
|
5009
|
+
},
|
|
5010
|
+
{
|
|
5011
|
+
"kind": "Content",
|
|
5012
|
+
"text": ";"
|
|
5013
|
+
}
|
|
5014
|
+
],
|
|
5015
|
+
"isReadonly": false,
|
|
5016
|
+
"isOptional": true,
|
|
5017
|
+
"releaseTag": "Public",
|
|
5018
|
+
"name": "id",
|
|
5019
|
+
"propertyTypeTokenRange": {
|
|
5020
|
+
"startIndex": 1,
|
|
5021
|
+
"endIndex": 2
|
|
5022
|
+
}
|
|
5023
|
+
},
|
|
5024
|
+
{
|
|
5025
|
+
"kind": "PropertySignature",
|
|
5026
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink#object:member",
|
|
5027
|
+
"docComment": "",
|
|
5028
|
+
"excerptTokens": [
|
|
5029
|
+
{
|
|
5030
|
+
"kind": "Content",
|
|
5031
|
+
"text": "object: "
|
|
5032
|
+
},
|
|
5033
|
+
{
|
|
5034
|
+
"kind": "Content",
|
|
5035
|
+
"text": "{\n icon?: {\n title?: string;\n url16x16?: string;\n };\n status?: {\n icon?: {\n link?: string;\n title?: string;\n url16x16?: string;\n };\n resolved?: boolean;\n };\n summary?: string;\n title: string;\n url: string;\n }"
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
"kind": "Content",
|
|
5039
|
+
"text": ";"
|
|
5040
|
+
}
|
|
5041
|
+
],
|
|
5042
|
+
"isReadonly": false,
|
|
5043
|
+
"isOptional": false,
|
|
5044
|
+
"releaseTag": "Public",
|
|
5045
|
+
"name": "object",
|
|
5046
|
+
"propertyTypeTokenRange": {
|
|
5047
|
+
"startIndex": 1,
|
|
5048
|
+
"endIndex": 2
|
|
5049
|
+
}
|
|
5050
|
+
},
|
|
5051
|
+
{
|
|
5052
|
+
"kind": "PropertySignature",
|
|
5053
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink#relationship:member",
|
|
5054
|
+
"docComment": "",
|
|
5055
|
+
"excerptTokens": [
|
|
5056
|
+
{
|
|
5057
|
+
"kind": "Content",
|
|
5058
|
+
"text": "relationship?: "
|
|
5059
|
+
},
|
|
5060
|
+
{
|
|
5061
|
+
"kind": "Content",
|
|
5062
|
+
"text": "string"
|
|
5063
|
+
},
|
|
5064
|
+
{
|
|
5065
|
+
"kind": "Content",
|
|
5066
|
+
"text": ";"
|
|
5067
|
+
}
|
|
5068
|
+
],
|
|
5069
|
+
"isReadonly": false,
|
|
5070
|
+
"isOptional": true,
|
|
5071
|
+
"releaseTag": "Public",
|
|
5072
|
+
"name": "relationship",
|
|
5073
|
+
"propertyTypeTokenRange": {
|
|
5074
|
+
"startIndex": 1,
|
|
5075
|
+
"endIndex": 2
|
|
5076
|
+
}
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
"kind": "PropertySignature",
|
|
5080
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!RemoteIssueLink#self:member",
|
|
5081
|
+
"docComment": "",
|
|
5082
|
+
"excerptTokens": [
|
|
5083
|
+
{
|
|
5084
|
+
"kind": "Content",
|
|
5085
|
+
"text": "self?: "
|
|
5086
|
+
},
|
|
5087
|
+
{
|
|
5088
|
+
"kind": "Content",
|
|
5089
|
+
"text": "string"
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
"kind": "Content",
|
|
5093
|
+
"text": ";"
|
|
5094
|
+
}
|
|
5095
|
+
],
|
|
5096
|
+
"isReadonly": false,
|
|
5097
|
+
"isOptional": true,
|
|
5098
|
+
"releaseTag": "Public",
|
|
5099
|
+
"name": "self",
|
|
5100
|
+
"propertyTypeTokenRange": {
|
|
5101
|
+
"startIndex": 1,
|
|
5102
|
+
"endIndex": 2
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
],
|
|
5106
|
+
"extendsTokenRanges": []
|
|
5107
|
+
},
|
|
4928
5108
|
{
|
|
4929
5109
|
"kind": "Interface",
|
|
4930
5110
|
"canonicalReference": "@valiantys/atlassian-app-frontend!StaticIssueFields:interface",
|
|
@@ -501,6 +501,41 @@ export interface ProjectVersion {
|
|
|
501
501
|
userReleaseDate?: string;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
|
+
// @public (undocumented)
|
|
505
|
+
export interface RemoteIssueLink {
|
|
506
|
+
// (undocumented)
|
|
507
|
+
application?: {
|
|
508
|
+
name?: string;
|
|
509
|
+
type?: string;
|
|
510
|
+
};
|
|
511
|
+
// (undocumented)
|
|
512
|
+
globalId?: string;
|
|
513
|
+
// (undocumented)
|
|
514
|
+
id?: number;
|
|
515
|
+
// (undocumented)
|
|
516
|
+
object: {
|
|
517
|
+
icon?: {
|
|
518
|
+
title?: string;
|
|
519
|
+
url16x16?: string;
|
|
520
|
+
};
|
|
521
|
+
status?: {
|
|
522
|
+
icon?: {
|
|
523
|
+
link?: string;
|
|
524
|
+
title?: string;
|
|
525
|
+
url16x16?: string;
|
|
526
|
+
};
|
|
527
|
+
resolved?: boolean;
|
|
528
|
+
};
|
|
529
|
+
summary?: string;
|
|
530
|
+
title: string;
|
|
531
|
+
url: string;
|
|
532
|
+
};
|
|
533
|
+
// (undocumented)
|
|
534
|
+
relationship?: string;
|
|
535
|
+
// (undocumented)
|
|
536
|
+
self?: string;
|
|
537
|
+
}
|
|
538
|
+
|
|
504
539
|
// @public (undocumented)
|
|
505
540
|
export interface StaticIssueFields<T = AtlassianDocumentFormat> {
|
|
506
541
|
// (undocumented)
|
|
@@ -323,6 +323,34 @@ export declare interface ProjectVersion {
|
|
|
323
323
|
userReleaseDate?: string;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
export declare interface RemoteIssueLink {
|
|
327
|
+
application?: {
|
|
328
|
+
name?: string;
|
|
329
|
+
type?: string;
|
|
330
|
+
};
|
|
331
|
+
globalId?: string;
|
|
332
|
+
id?: number;
|
|
333
|
+
object: {
|
|
334
|
+
icon?: {
|
|
335
|
+
title?: string;
|
|
336
|
+
url16x16?: string;
|
|
337
|
+
};
|
|
338
|
+
status?: {
|
|
339
|
+
icon?: {
|
|
340
|
+
link?: string;
|
|
341
|
+
title?: string;
|
|
342
|
+
url16x16?: string;
|
|
343
|
+
};
|
|
344
|
+
resolved?: boolean;
|
|
345
|
+
};
|
|
346
|
+
summary?: string;
|
|
347
|
+
title: string;
|
|
348
|
+
url: string;
|
|
349
|
+
};
|
|
350
|
+
relationship?: string;
|
|
351
|
+
self?: string;
|
|
352
|
+
}
|
|
353
|
+
|
|
326
354
|
export declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
|
|
327
355
|
statuscategorychangedate?: string;
|
|
328
356
|
fixVersions?: FixVersions;
|