@valiantys/atlassian-app-frontend 3.0.0-alpha-26 → 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.
Files changed (25) hide show
  1. package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.cjs.js +1 -0
  2. package/atlassian/jira/shared/data-access-issue/src/lib/jira-remote-links-service/index.es.js +20 -0
  3. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +187 -0
  4. package/data-access-issue/atlassian-app-frontend.api.md +11 -0
  5. package/data-access-issue/index.cjs.js +1 -1
  6. package/data-access-issue/index.d.ts +36 -1
  7. package/data-access-issue/index.es.js +3 -1
  8. package/package.json +1 -1
  9. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
  10. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +24 -19
  11. package/ui-async-queue-job-log/index.d.ts +2 -2
  12. package/ui-host-router/atlassian-app-frontend-ui-host-router.api.json +19 -5
  13. package/ui-host-router/atlassian-app-frontend.api.md +3 -2
  14. package/ui-host-router/index.d.ts +3 -2
  15. package/util-async-queue/atlassian-app-frontend-util-async-queue.api.json +2 -23
  16. package/util-async-queue/atlassian-app-frontend.api.md +2 -2
  17. package/util-async-queue/index.d.ts +2 -2
  18. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +61 -0
  19. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +3 -0
  20. package/util-atlassian-product-fetch/index.cjs.js +1 -1
  21. package/util-atlassian-product-fetch/index.d.ts +2 -0
  22. package/util-atlassian-product-fetch/index.es.js +4 -3
  23. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +182 -2
  24. package/util-jira-v3-api/atlassian-app-frontend.api.md +36 -1
  25. package/util-jira-v3-api/index.d.ts +29 -1
@@ -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;
@@ -36,7 +36,7 @@ declare interface CreatedIssue {
36
36
  id: string;
37
37
  key: string;
38
38
  self: string;
39
- transition: {
39
+ transition?: {
40
40
  status: number;
41
41
  errorCollection?: {
42
42
  errorMessages: string[];
@@ -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-26",
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 l extends Error{constructor(t,e,a=t){super(a),this.statusText=t,this.statusCode=e,this.statusCode=e,this.statusText=t}toJSON(){return{statusCode:this.statusCode,statusText:this.statusText}}}function u(s,t){const e={Authorization:s.startsWith("Bearer ")?s:`Bearer ${s}`};return t?{...t,...e}:e}async function w(s,t,e){const a=u(s,e.headers||{});return fetch(t,{...e,headers:a})}async function A(s,t,e,a,n="json",o={}){return f(t,e,u(s,o),a,n)}async function f(s,t,e,a,n="json",o){const d=typeof o=="string"?{includeCredentials:o}:o??{},j={...e,Accept:n==="json"?"application/json":"text/html","Content-Type":n==="json"?"application/json":"text/html"},x=a?JSON.stringify(a):void 0,r=await fetch(s,{method:t,headers:j,body:x,credentials:d.includeCredentials});let c;if(r.ok){if(t==="DELETE"||r.status===204?c=void 0:n==="text"?c=await r.text():c=await r.json(),d.returnMetadata){const i={};return r.headers.forEach((h,y)=>{i[y]=h}),{body:c,headers:i}}return c}else{let i="";try{i=await r.text()}catch{}const h=`${r.status} ${r.statusText} - ${t} ${s}
2
- ${i}`;throw console.error(h),new l(r.statusText,r.status,h)}}exports.FetchError=l;exports.addAuthHeader=u;exports.bearerAuthFetch=A;exports.bearerAuthFetchRaw=w;exports.jsonFetch=f;
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, e, a = t) {
3
- super(a), this.statusText = t, this.statusCode = e, this.statusCode = e, this.statusText = t;
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(s, t) {
13
- const e = {
14
- Authorization: s.startsWith("Bearer ") ? s : `Bearer ${s}`
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, ...e } : e;
17
+ return t ? { ...t, ...s } : s;
17
18
  }
18
- async function p(s, t, e) {
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
- s,
21
- e.headers || {}
24
+ e,
25
+ s.headers || {}
22
26
  );
23
- return fetch(t, { ...e, headers: a });
27
+ return fetch(t, { ...s, headers: a });
24
28
  }
25
- async function w(s, t, e, a, n = "json", o = {}) {
29
+ async function p(e, t, s, a, n = "json", o = {}) {
26
30
  return y(
27
31
  t,
28
- e,
29
- d(s, o),
32
+ s,
33
+ d(e, o),
30
34
  a,
31
35
  n
32
36
  );
33
37
  }
34
- async function y(s, t, e, a, n = "json", o) {
38
+ async function y(e, t, s, a, n = "json", o) {
35
39
  const h = typeof o == "string" ? { includeCredentials: o } : o ?? {}, f = {
36
- ...e,
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(s, {
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} ${s}
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
- w as bearerAuthFetch,
69
- p as bearerAuthFetchRaw,
72
+ p as bearerAuthFetch,
73
+ $ as bearerAuthFetchRaw,
74
+ B as encodeBasicAuthHeaderValue,
70
75
  y as jsonFetch
71
76
  };
@@ -1,10 +1,10 @@
1
1
  import { JSX as JSX_2 } from 'react/jsx-runtime';
2
2
 
3
- declare interface JobLogEntry<T = string> {
3
+ declare interface JobLogEntry {
4
4
  jobId: string;
5
5
  startTime?: number;
6
6
  description?: string;
7
- result?: T;
7
+ result?: string;
8
8
  failed?: boolean;
9
9
  success?: boolean;
10
10
  inProgress?: boolean;
@@ -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": 3,
361
- "endIndex": 5
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": 2
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": "Content",
486
- "text": "string"
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: string;
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: string;
19
+ label: default_2.ReactNode;
19
20
  linkStyle: 'link' | 'button';
20
21
  buttonIcon?: IconProp;
21
22
  buttonAppearance?: IconButtonAppearance;
@@ -179,32 +179,11 @@
179
179
  "excerptTokens": [
180
180
  {
181
181
  "kind": "Content",
182
- "text": "export interface JobLogEntry<T = "
183
- },
184
- {
185
- "kind": "Content",
186
- "text": "string"
187
- },
188
- {
189
- "kind": "Content",
190
- "text": "> "
182
+ "text": "export interface JobLogEntry "
191
183
  }
192
184
  ],
193
185
  "fileUrlPath": "../../forge/shared/util-async-queue/src/lib/job-log-entry.d.ts",
194
186
  "releaseTag": "Public",
195
- "typeParameters": [
196
- {
197
- "typeParameterName": "T",
198
- "constraintTokenRange": {
199
- "startIndex": 0,
200
- "endIndex": 0
201
- },
202
- "defaultTypeTokenRange": {
203
- "startIndex": 1,
204
- "endIndex": 2
205
- }
206
- }
207
- ],
208
187
  "name": "JobLogEntry",
209
188
  "preserveMemberOrder": false,
210
189
  "members": [
@@ -354,7 +333,7 @@
354
333
  },
355
334
  {
356
335
  "kind": "Content",
357
- "text": "T"
336
+ "text": "string"
358
337
  },
359
338
  {
360
339
  "kind": "Content",
@@ -5,7 +5,7 @@
5
5
  ```ts
6
6
 
7
7
  // @public (undocumented)
8
- export interface JobLogEntry<T = string> {
8
+ export interface JobLogEntry {
9
9
  // (undocumented)
10
10
  description?: string;
11
11
  // (undocumented)
@@ -17,7 +17,7 @@ export interface JobLogEntry<T = string> {
17
17
  // (undocumented)
18
18
  jobId: string;
19
19
  // (undocumented)
20
- result?: T;
20
+ result?: string;
21
21
  // (undocumented)
22
22
  startTime?: number;
23
23
  // (undocumented)
@@ -1,8 +1,8 @@
1
- export declare interface JobLogEntry<T = string> {
1
+ export declare interface JobLogEntry {
2
2
  jobId: string;
3
3
  startTime?: number;
4
4
  description?: string;
5
- result?: T;
5
+ result?: string;
6
6
  failed?: boolean;
7
7
  success?: boolean;
8
8
  inProgress?: boolean;
@@ -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 h, bearerAuthFetch as a, bearerAuthFetchRaw as c, jsonFetch as o } from "../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
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
- h as addAuthHeader,
5
- a as bearerAuthFetch,
4
+ a as addAuthHeader,
5
+ h as bearerAuthFetch,
6
6
  c as bearerAuthFetchRaw,
7
+ d as encodeBasicAuthHeaderValue,
7
8
  o as jsonFetch
8
9
  };
@@ -840,7 +840,7 @@
840
840
  "excerptTokens": [
841
841
  {
842
842
  "kind": "Content",
843
- "text": "transition: "
843
+ "text": "transition?: "
844
844
  },
845
845
  {
846
846
  "kind": "Content",
@@ -852,7 +852,7 @@
852
852
  }
853
853
  ],
854
854
  "isReadonly": false,
855
- "isOptional": false,
855
+ "isOptional": true,
856
856
  "releaseTag": "Public",
857
857
  "name": "transition",
858
858
  "propertyTypeTokenRange": {
@@ -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",
@@ -68,7 +68,7 @@ export interface CreatedIssue {
68
68
  // (undocumented)
69
69
  self: string;
70
70
  // (undocumented)
71
- transition: {
71
+ transition?: {
72
72
  status: number;
73
73
  errorCollection?: {
74
74
  errorMessages: string[];
@@ -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)
@@ -36,7 +36,7 @@ export declare interface CreatedIssue {
36
36
  id: string;
37
37
  key: string;
38
38
  self: string;
39
- transition: {
39
+ transition?: {
40
40
  status: number;
41
41
  errorCollection?: {
42
42
  errorMessages: string[];
@@ -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;