@valiantys/atlassian-app-frontend 3.0.0-alpha-11 → 3.0.0-alpha-17

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 (24) hide show
  1. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
  2. package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +22 -11
  3. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -1
  4. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +50 -26
  5. package/atlassian-app-test/index.d.ts +1 -1
  6. package/data-access-assets/index.d.ts +1 -1
  7. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend-data-access-atlassian-product-fetch-oauth.api.json +113 -0
  8. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +3 -0
  9. package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -1
  10. package/data-access-atlassian-product-fetch-oauth/index.d.ts +3 -1
  11. package/data-access-atlassian-product-fetch-oauth/index.es.js +4 -3
  12. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +110 -0
  13. package/data-access-issue/atlassian-app-frontend.api.md +5 -0
  14. package/data-access-issue/index.d.ts +13 -6
  15. package/data-access-jql/index.d.ts +1 -1
  16. package/data-access-workspaces/index.d.ts +1 -1
  17. package/package.json +1 -1
  18. package/ui-atlassian-product-fetch/index.d.ts +1 -1
  19. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +9 -18
  20. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +4 -4
  21. package/util-atlassian-product-fetch/index.d.ts +4 -4
  22. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +300 -2
  23. package/util-jira-v3-api/atlassian-app-frontend.api.md +24 -5
  24. package/util-jira-v3-api/index.d.ts +13 -5
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=class r{constructor(e){this.fetchSvc=e}async updateProperty(e,t,s){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}/properties/${t}`},s)}async updateField(e,t,s){await this.updateFields(e,{[t]:s})}async updateFields(e,t){await this.updateIssue(e,{fields:t})}async getIssueField(e,t){var s;return(s=await this.getIssueFields(e,[t]))==null?void 0:s[t]}async getIssueFields(e,t){return(await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}`})).fields}async getIssue(e,t=["*all"],s=!1){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}&expand=${s?"renderedFields":""}`})}async issueSearch(e,t,s=50){let c;const h=[];do{const u=await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/search/jql?jql=${e}&fields=${t.join(",")}&maxResults=${s}&${c?"nextPageToken="+c:""}`});h.push(...u.issues),c=u.nextPageToken}while(c!==void 0);return h}async addWorklog(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/worklog`},t)}async queryForIssuesInProjects(e){const t=`project IN (${e.join(",")})`;return this.issueSearch(t,["key"],5e3)}async createIssue(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue`},e)}async updateIssue(e,t){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}`},t)}async getIssueComments(e,t=0){const s=t?`?startAt=${t}`:"";return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment${s}`})}async getIssueCommentById(e,t){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment/${t}`})}async addIssueComment(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment`},{body:t})}async transitionIssue(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/transitions`},t)}async createIssueLink(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issueLink`},e)}};r.issueUrl="/rest/api/3/issue";let i=r;exports.JiraIssueService=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=class i{constructor(e){this.fetchSvc=e}async updateProperty(e,t,s){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}/properties/${t}`},s)}async updateField(e,t,s){await this.updateFields(e,{[t]:s})}async updateFields(e,t){await this.updateIssue(e,{fields:t})}async getIssueField(e,t){var s;return(s=await this.getIssueFields(e,[t]))==null?void 0:s[t]}async getIssueFields(e,t){return(await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}`})).fields}async getIssue(e,t=["*all"],s=!1){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}?fields=${t.join(",")}&expand=${s?"renderedFields":""}`})}async issueSearch(e,t,s=50){let c;const h=[];do{const u=await this.issueSearchByPage(e,t,c,s);h.push(...u.issues),c=u.nextPageToken}while(c!==void 0);return h}async issueSearchByPage(e,t,s,c=50){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/search/jql`},{fields:t,jql:e,maxResults:c,nextPageToken:s})}async addWorklog(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/worklog`},t)}async queryForIssuesInProjects(e){const t=`project IN (${e.join(",")})`;return this.issueSearch(t,["key","project"],5e3)}async createIssue(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue`},e)}async updateIssue(e,t){return this.fetchSvc.fetch({method:"PUT",url:this.fetchSvc.route`/rest/api/3/issue/${e}`},t)}async getIssueComments(e,t=0){const s=t?`?startAt=${t}`:"";return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment${s}`})}async getIssueCommentById(e,t){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment/${t}`})}async addIssueComment(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/comment`},{body:t})}async transitionIssue(e,t){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issue/${e}/transitions`},t)}async createIssueLink(e){return this.fetchSvc.fetch({method:"POST",url:this.fetchSvc.route`/rest/api/3/issueLink`},e)}};i.issueUrl="/rest/api/3/issue";let r=i;exports.JiraIssueService=r;
@@ -1,4 +1,4 @@
1
- const i = class i {
1
+ const r = class r {
2
2
  constructor(e) {
3
3
  this.fetchSvc = e;
4
4
  }
@@ -35,15 +35,26 @@ const i = class i {
35
35
  }
36
36
  async issueSearch(e, t, s = 50) {
37
37
  let c;
38
- const r = [];
38
+ const h = [];
39
39
  do {
40
- const h = await this.fetchSvc.fetch({
41
- method: "GET",
42
- url: this.fetchSvc.route`/rest/api/3/search/jql?jql=${e}&fields=${t.join(",")}&maxResults=${s}&${c ? "nextPageToken=" + c : ""}`
43
- });
44
- r.push(...h.issues), c = h.nextPageToken;
40
+ const i = await this.issueSearchByPage(e, t, c, s);
41
+ h.push(...i.issues), c = i.nextPageToken;
45
42
  } while (c !== void 0);
46
- return r;
43
+ return h;
44
+ }
45
+ async issueSearchByPage(e, t, s, c = 50) {
46
+ return this.fetchSvc.fetch(
47
+ {
48
+ method: "POST",
49
+ url: this.fetchSvc.route`/rest/api/3/search/jql`
50
+ },
51
+ {
52
+ fields: t,
53
+ jql: e,
54
+ maxResults: c,
55
+ nextPageToken: s
56
+ }
57
+ );
47
58
  }
48
59
  async addWorklog(e, t) {
49
60
  return this.fetchSvc.fetch(
@@ -56,7 +67,7 @@ const i = class i {
56
67
  }
57
68
  async queryForIssuesInProjects(e) {
58
69
  const t = `project IN (${e.join(",")})`;
59
- return this.issueSearch(t, ["key"], 5e3);
70
+ return this.issueSearch(t, ["key", "project"], 5e3);
60
71
  }
61
72
  async createIssue(e) {
62
73
  return this.fetchSvc.fetch(
@@ -118,8 +129,8 @@ const i = class i {
118
129
  );
119
130
  }
120
131
  };
121
- i.issueUrl = "/rest/api/3/issue";
122
- let u = i;
132
+ r.issueUrl = "/rest/api/3/issue";
133
+ let u = r;
123
134
  export {
124
135
  u as JiraIssueService
125
136
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js"),c=require("../route/index.cjs.js");function u(t,e){if(e){const n=t.startsWith("/")?t.slice(1):t;return`${e}/${n}`}else return t}function i(t,e,n){return{productType:n,fetch:({url:a,method:r,responseType:h="json",allowExperimental:o=!1},l)=>s.bearerAuthFetch(t,u(a.value,e),r,l,h,{"X-ExperimentalApi":o?"opt-in":""}),route:c.route,rawFetch:(a,r)=>s.bearerAuthFetchRaw(t,u(a.value,e),r),fullUrl:a=>u(a,e)}}function f(t,e){return i(t,`https://api.atlassian.com/ex/jira/${e}`,"jira")}function p(t){return{productType:"jira",fetch:(e,n)=>{const a={request:e,body:n};return s.jsonFetch(t,"POST",void 0,a,"json","include")},route:c.routeNoEscaping,rawFetch:(e,n)=>{throw new Error("Not implemented")},fullUrl:e=>t}}function A(t,e){return i(t,`https://api.atlassian.com/ex/confluence/${e}`,"confluence")}function F(t){return i(t,"https://api.bitbucket.org","bitbucket")}async function O(t){return s.bearerAuthFetch(t,"https://api.atlassian.com/me","GET")}async function b(t,e,n,a,r){return s.jsonFetch("https://auth.atlassian.com/oauth/token","POST",void 0,{grant_type:t,client_id:e,client_secret:n,code:a,redirect_uri:r})}exports.atlassianOAuthBitbucketFetch=F;exports.atlassianOAuthConfluenceFetch=A;exports.atlassianOAuthJiraFetch=f;exports.atlassianOAuthJiraFetchViaProxy=p;exports.atlassianOAuthRawFetch=i;exports.getAtlassianOAuthToken=b;exports.getAtlassianUserDetails=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js"),F=require("../../../../util-error/src/index/index.cjs.js"),u=require("../route/index.cjs.js");function c(t,e){if(e){const a=t.startsWith("/")?t.slice(1):t;return`${e}/${a}`}else return t}function i(t,e,a){return{productType:a,fetch:({url:n,method:r,responseType:f="json",allowExperimental:A=!1},p)=>s.bearerAuthFetch(t,c(n.value,e),r,p,f,{"X-ExperimentalApi":A?"opt-in":""}),route:u.route,rawFetch:(n,r)=>s.bearerAuthFetchRaw(t,c(n.value,e),r),fullUrl:n=>c(n,e)}}function h(t,e){return i(t,`https://api.atlassian.com/ex/jira/${e}`,"jira")}function O(t){return{productType:"jira",fetch:(e,a)=>{const n={request:e,body:a};return s.jsonFetch(t,"POST",void 0,n,"json","include")},route:u.routeNoEscaping,rawFetch:(e,a)=>{throw new Error("Not implemented")},fullUrl:e=>t}}function o(t,e){return i(t,`https://api.atlassian.com/ex/confluence/${e}`,"confluence")}function l(t){return i(t,"https://api.bitbucket.org","bitbucket")}async function b(t){return s.bearerAuthFetch(t,"https://api.atlassian.com/me","GET")}async function g(t,e,a,n,r){return s.jsonFetch("https://auth.atlassian.com/oauth/token","POST",void 0,{grant_type:t,client_id:e,client_secret:a,code:n,redirect_uri:r})}async function d(t,e,a){if(a)switch(t){case"confluence":return o(e,a);case"bitbucket":return l(e);case"jira":default:return h(e,a)}else throw new F.AtlassianBadRequest("resource-id header is missing")}exports.atlassianOAuthBitbucketFetch=l;exports.atlassianOAuthConfluenceFetch=o;exports.atlassianOAuthJiraFetch=h;exports.atlassianOAuthJiraFetchViaProxy=O;exports.atlassianOAuthRawFetch=i;exports.getAtlassianOAuthToken=g;exports.getAtlassianUserDetails=b;exports.getFetch=d;
@@ -1,5 +1,6 @@
1
- import { bearerAuthFetchRaw as p, bearerAuthFetch as u, jsonFetch as c } from "../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
2
- import { route as f, routeNoEscaping as A } from "../route/index.es.js";
1
+ import { bearerAuthFetchRaw as f, bearerAuthFetch as c, jsonFetch as u } from "../../../../../../shared/util-fetch/src/lib/shared-util-fetch/index.es.js";
2
+ import { AtlassianBadRequest as p } from "../../../../util-error/src/index/index.es.js";
3
+ import { route as m, routeNoEscaping as A } from "../route/index.es.js";
3
4
  function i(t, e) {
4
5
  if (e) {
5
6
  const n = t.startsWith("/") ? t.slice(1) : t;
@@ -10,36 +11,36 @@ function i(t, e) {
10
11
  function s(t, e, n) {
11
12
  return {
12
13
  productType: n,
13
- fetch: ({ url: a, method: r, responseType: o = "json", allowExperimental: h = !1 }, l) => u(
14
+ fetch: ({ url: r, method: a, responseType: o = "json", allowExperimental: h = !1 }, l) => c(
14
15
  t,
15
- i(a.value, e),
16
- r,
16
+ i(r.value, e),
17
+ a,
17
18
  l,
18
19
  o,
19
20
  {
20
21
  "X-ExperimentalApi": h ? "opt-in" : ""
21
22
  }
22
23
  ),
23
- route: f,
24
- rawFetch: (a, r) => p(
24
+ route: m,
25
+ rawFetch: (r, a) => f(
25
26
  t,
26
- i(a.value, e),
27
- r
27
+ i(r.value, e),
28
+ a
28
29
  ),
29
- fullUrl: (a) => i(a, e)
30
+ fullUrl: (r) => i(r, e)
30
31
  };
31
32
  }
32
- function O(t, e) {
33
+ function F(t, e) {
33
34
  return s(
34
35
  t,
35
36
  `https://api.atlassian.com/ex/jira/${e}`,
36
37
  "jira"
37
38
  );
38
39
  }
39
- function b(t) {
40
+ function j(t) {
40
41
  return {
41
42
  productType: "jira",
42
- fetch: (e, n) => c(
43
+ fetch: (e, n) => u(
43
44
  t,
44
45
  "POST",
45
46
  void 0,
@@ -57,29 +58,29 @@ function b(t) {
57
58
  fullUrl: (e) => t
58
59
  };
59
60
  }
60
- function y(t, e) {
61
+ function b(t, e) {
61
62
  return s(
62
63
  t,
63
64
  `https://api.atlassian.com/ex/confluence/${e}`,
64
65
  "confluence"
65
66
  );
66
67
  }
67
- function j(t) {
68
+ function w(t) {
68
69
  return s(
69
70
  t,
70
71
  "https://api.bitbucket.org",
71
72
  "bitbucket"
72
73
  );
73
74
  }
74
- async function w(t) {
75
- return u(
75
+ async function g(t) {
76
+ return c(
76
77
  t,
77
78
  "https://api.atlassian.com/me",
78
79
  "GET"
79
80
  );
80
81
  }
81
- async function x(t, e, n, a, r) {
82
- return c(
82
+ async function x(t, e, n, r, a) {
83
+ return u(
83
84
  "https://auth.atlassian.com/oauth/token",
84
85
  "POST",
85
86
  void 0,
@@ -87,17 +88,40 @@ async function x(t, e, n, a, r) {
87
88
  grant_type: t,
88
89
  client_id: e,
89
90
  client_secret: n,
90
- code: a,
91
- redirect_uri: r
91
+ code: r,
92
+ redirect_uri: a
92
93
  }
93
94
  );
94
95
  }
96
+ async function v(t, e, n) {
97
+ if (n)
98
+ switch (t) {
99
+ case "confluence":
100
+ return b(
101
+ e,
102
+ n
103
+ );
104
+ case "bitbucket":
105
+ return w(
106
+ e
107
+ );
108
+ case "jira":
109
+ default:
110
+ return F(
111
+ e,
112
+ n
113
+ );
114
+ }
115
+ else
116
+ throw new p("resource-id header is missing");
117
+ }
95
118
  export {
96
- j as atlassianOAuthBitbucketFetch,
97
- y as atlassianOAuthConfluenceFetch,
98
- O as atlassianOAuthJiraFetch,
99
- b as atlassianOAuthJiraFetchViaProxy,
119
+ w as atlassianOAuthBitbucketFetch,
120
+ b as atlassianOAuthConfluenceFetch,
121
+ F as atlassianOAuthJiraFetch,
122
+ j as atlassianOAuthJiraFetchViaProxy,
100
123
  s as atlassianOAuthRawFetch,
101
124
  x as getAtlassianOAuthToken,
102
- w as getAtlassianUserDetails
125
+ g as getAtlassianUserDetails,
126
+ v as getFetch
103
127
  };
@@ -39,7 +39,7 @@ declare type FetchRoute = {
39
39
  readonly value: string;
40
40
  };
41
41
 
42
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
42
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
43
43
 
44
44
  declare interface HostRouter {
45
45
  navigate(url: string): Promise<void>;
@@ -225,7 +225,7 @@ declare type FetchRoute = {
225
225
  readonly value: string;
226
226
  };
227
227
 
228
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
228
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
229
229
 
230
230
  export declare function getAssetLinkedIssues(fetch: AtlassianProductFetchService<'jira'>, workspaceId: string, objectId: string): Promise<ObjectConnectedTickets>;
231
231
 
@@ -789,6 +789,119 @@
789
789
  ],
790
790
  "name": "getAtlassianUserDetails"
791
791
  },
792
+ {
793
+ "kind": "Function",
794
+ "canonicalReference": "@valiantys/atlassian-app-frontend!getFetch:function(1)",
795
+ "docComment": "",
796
+ "excerptTokens": [
797
+ {
798
+ "kind": "Content",
799
+ "text": "export declare function getFetch<P extends "
800
+ },
801
+ {
802
+ "kind": "Reference",
803
+ "text": "Product",
804
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~Product:type"
805
+ },
806
+ {
807
+ "kind": "Content",
808
+ "text": ">(product: "
809
+ },
810
+ {
811
+ "kind": "Content",
812
+ "text": "P"
813
+ },
814
+ {
815
+ "kind": "Content",
816
+ "text": ", authToken: "
817
+ },
818
+ {
819
+ "kind": "Content",
820
+ "text": "string"
821
+ },
822
+ {
823
+ "kind": "Content",
824
+ "text": ", resourceId?: "
825
+ },
826
+ {
827
+ "kind": "Content",
828
+ "text": "string"
829
+ },
830
+ {
831
+ "kind": "Content",
832
+ "text": "): "
833
+ },
834
+ {
835
+ "kind": "Reference",
836
+ "text": "Promise",
837
+ "canonicalReference": "!Promise:interface"
838
+ },
839
+ {
840
+ "kind": "Content",
841
+ "text": "<"
842
+ },
843
+ {
844
+ "kind": "Reference",
845
+ "text": "AtlassianProductFetchService",
846
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~AtlassianProductFetchService:interface"
847
+ },
848
+ {
849
+ "kind": "Content",
850
+ "text": "<P>>"
851
+ },
852
+ {
853
+ "kind": "Content",
854
+ "text": ";"
855
+ }
856
+ ],
857
+ "fileUrlPath": "../../shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch.d.ts",
858
+ "returnTypeTokenRange": {
859
+ "startIndex": 9,
860
+ "endIndex": 13
861
+ },
862
+ "releaseTag": "Public",
863
+ "overloadIndex": 1,
864
+ "parameters": [
865
+ {
866
+ "parameterName": "product",
867
+ "parameterTypeTokenRange": {
868
+ "startIndex": 3,
869
+ "endIndex": 4
870
+ },
871
+ "isOptional": false
872
+ },
873
+ {
874
+ "parameterName": "authToken",
875
+ "parameterTypeTokenRange": {
876
+ "startIndex": 5,
877
+ "endIndex": 6
878
+ },
879
+ "isOptional": false
880
+ },
881
+ {
882
+ "parameterName": "resourceId",
883
+ "parameterTypeTokenRange": {
884
+ "startIndex": 7,
885
+ "endIndex": 8
886
+ },
887
+ "isOptional": true
888
+ }
889
+ ],
890
+ "typeParameters": [
891
+ {
892
+ "typeParameterName": "P",
893
+ "constraintTokenRange": {
894
+ "startIndex": 1,
895
+ "endIndex": 2
896
+ },
897
+ "defaultTypeTokenRange": {
898
+ "startIndex": 0,
899
+ "endIndex": 0
900
+ }
901
+ }
902
+ ],
903
+ "name": "getFetch"
904
+ },
792
905
  {
793
906
  "kind": "Interface",
794
907
  "canonicalReference": "@valiantys/atlassian-app-frontend!OAuthUser:interface",
@@ -39,6 +39,9 @@ export function getAtlassianOAuthToken(grant_type: string, client_id: string, cl
39
39
  // @public (undocumented)
40
40
  export function getAtlassianUserDetails(authToken: string): Promise<OAuthUser>;
41
41
 
42
+ // @public (undocumented)
43
+ export function getFetch<P extends Product>(product: P, authToken: string, resourceId?: string): Promise<AtlassianProductFetchService<P>>;
44
+
42
45
  // @public (undocumented)
43
46
  export interface OAuthUser {
44
47
  // (undocumented)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js"),a=require("../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js");exports.atlassianOAuthBitbucketFetch=t.atlassianOAuthBitbucketFetch;exports.atlassianOAuthConfluenceFetch=t.atlassianOAuthConfluenceFetch;exports.atlassianOAuthJiraFetch=t.atlassianOAuthJiraFetch;exports.atlassianOAuthJiraFetchViaProxy=t.atlassianOAuthJiraFetchViaProxy;exports.atlassianOAuthRawFetch=t.atlassianOAuthRawFetch;exports.getAtlassianOAuthToken=t.getAtlassianOAuthToken;exports.getAtlassianUserDetails=t.getAtlassianUserDetails;exports.route=a.route;exports.routeNoEscaping=a.routeNoEscaping;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js"),a=require("../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js");exports.atlassianOAuthBitbucketFetch=t.atlassianOAuthBitbucketFetch;exports.atlassianOAuthConfluenceFetch=t.atlassianOAuthConfluenceFetch;exports.atlassianOAuthJiraFetch=t.atlassianOAuthJiraFetch;exports.atlassianOAuthJiraFetchViaProxy=t.atlassianOAuthJiraFetchViaProxy;exports.atlassianOAuthRawFetch=t.atlassianOAuthRawFetch;exports.getAtlassianOAuthToken=t.getAtlassianOAuthToken;exports.getAtlassianUserDetails=t.getAtlassianUserDetails;exports.getFetch=t.getFetch;exports.route=a.route;exports.routeNoEscaping=a.routeNoEscaping;
@@ -37,12 +37,14 @@ declare type FetchRoute = {
37
37
  readonly value: string;
38
38
  };
39
39
 
40
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
40
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
41
41
 
42
42
  export declare function getAtlassianOAuthToken(grant_type: string, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<AtlassianOauthTokenResponse>;
43
43
 
44
44
  export declare function getAtlassianUserDetails(authToken: string): Promise<OAuthUser>;
45
45
 
46
+ export declare function getFetch<P extends Product>(product: P, authToken: string, resourceId?: string): Promise<AtlassianProductFetchService<P>>;
47
+
46
48
  export declare interface OAuthUser {
47
49
  account_id: string;
48
50
  account_status: string;
@@ -1,5 +1,5 @@
1
- import { atlassianOAuthBitbucketFetch as e, atlassianOAuthConfluenceFetch as s, atlassianOAuthJiraFetch as i, atlassianOAuthJiraFetchViaProxy as h, atlassianOAuthRawFetch as n, getAtlassianOAuthToken as o, getAtlassianUserDetails as r } from "../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js";
2
- import { route as l, routeNoEscaping as c } from "../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js";
1
+ import { atlassianOAuthBitbucketFetch as e, atlassianOAuthConfluenceFetch as s, atlassianOAuthJiraFetch as i, atlassianOAuthJiraFetchViaProxy as h, atlassianOAuthRawFetch as n, getAtlassianOAuthToken as o, getAtlassianUserDetails as r, getFetch as u } from "../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js";
2
+ import { route as l, routeNoEscaping as A } from "../atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js";
3
3
  export {
4
4
  e as atlassianOAuthBitbucketFetch,
5
5
  s as atlassianOAuthConfluenceFetch,
@@ -8,6 +8,7 @@ export {
8
8
  n as atlassianOAuthRawFetch,
9
9
  o as getAtlassianOAuthToken,
10
10
  r as getAtlassianUserDetails,
11
+ u as getFetch,
11
12
  l as route,
12
- c as routeNoEscaping
13
+ A as routeNoEscaping
13
14
  };
@@ -1013,6 +1013,116 @@
1013
1013
  "isAbstract": false,
1014
1014
  "name": "issueSearch"
1015
1015
  },
1016
+ {
1017
+ "kind": "Method",
1018
+ "canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#issueSearchByPage:member(1)",
1019
+ "docComment": "",
1020
+ "excerptTokens": [
1021
+ {
1022
+ "kind": "Content",
1023
+ "text": "issueSearchByPage(jql: "
1024
+ },
1025
+ {
1026
+ "kind": "Content",
1027
+ "text": "string"
1028
+ },
1029
+ {
1030
+ "kind": "Content",
1031
+ "text": ", fields: "
1032
+ },
1033
+ {
1034
+ "kind": "Content",
1035
+ "text": "string[]"
1036
+ },
1037
+ {
1038
+ "kind": "Content",
1039
+ "text": ", nextPageToken?: "
1040
+ },
1041
+ {
1042
+ "kind": "Content",
1043
+ "text": "string"
1044
+ },
1045
+ {
1046
+ "kind": "Content",
1047
+ "text": ", maxResults?: "
1048
+ },
1049
+ {
1050
+ "kind": "Content",
1051
+ "text": "number"
1052
+ },
1053
+ {
1054
+ "kind": "Content",
1055
+ "text": "): "
1056
+ },
1057
+ {
1058
+ "kind": "Reference",
1059
+ "text": "Promise",
1060
+ "canonicalReference": "!Promise:interface"
1061
+ },
1062
+ {
1063
+ "kind": "Content",
1064
+ "text": "<{\n issues: "
1065
+ },
1066
+ {
1067
+ "kind": "Reference",
1068
+ "text": "Issue",
1069
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~Issue:interface"
1070
+ },
1071
+ {
1072
+ "kind": "Content",
1073
+ "text": "[];\n nextPageToken?: string;\n }>"
1074
+ },
1075
+ {
1076
+ "kind": "Content",
1077
+ "text": ";"
1078
+ }
1079
+ ],
1080
+ "isStatic": false,
1081
+ "returnTypeTokenRange": {
1082
+ "startIndex": 9,
1083
+ "endIndex": 13
1084
+ },
1085
+ "releaseTag": "Public",
1086
+ "isProtected": false,
1087
+ "overloadIndex": 1,
1088
+ "parameters": [
1089
+ {
1090
+ "parameterName": "jql",
1091
+ "parameterTypeTokenRange": {
1092
+ "startIndex": 1,
1093
+ "endIndex": 2
1094
+ },
1095
+ "isOptional": false
1096
+ },
1097
+ {
1098
+ "parameterName": "fields",
1099
+ "parameterTypeTokenRange": {
1100
+ "startIndex": 3,
1101
+ "endIndex": 4
1102
+ },
1103
+ "isOptional": false
1104
+ },
1105
+ {
1106
+ "parameterName": "nextPageToken",
1107
+ "parameterTypeTokenRange": {
1108
+ "startIndex": 5,
1109
+ "endIndex": 6
1110
+ },
1111
+ "isOptional": true
1112
+ },
1113
+ {
1114
+ "parameterName": "maxResults",
1115
+ "parameterTypeTokenRange": {
1116
+ "startIndex": 7,
1117
+ "endIndex": 8
1118
+ },
1119
+ "isOptional": true
1120
+ }
1121
+ ],
1122
+ "isOptional": false,
1123
+ "isAbstract": false,
1124
+ "name": "issueSearchByPage"
1125
+ },
1016
1126
  {
1017
1127
  "kind": "Property",
1018
1128
  "canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService.issueUrl:member",
@@ -47,6 +47,11 @@ export class JiraIssueService {
47
47
  // (undocumented)
48
48
  issueSearch(jql: string, fields: string[], maxResults?: number): Promise<Issue<AtlassianDocumentFormat>[]>;
49
49
  // (undocumented)
50
+ issueSearchByPage(jql: string, fields: string[], nextPageToken?: string, maxResults?: number): Promise<{
51
+ issues: Issue[];
52
+ nextPageToken?: string;
53
+ }>;
54
+ // (undocumented)
50
55
  static readonly issueUrl = "/rest/api/3/issue";
51
56
  // (undocumented)
52
57
  queryForIssuesInProjects(projectIdsOrKeys: string[]): Promise<Issue<AtlassianDocumentFormat>[]>;
@@ -79,16 +79,18 @@ declare type FetchRoute = {
79
79
  readonly value: string;
80
80
  };
81
81
 
82
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
82
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
83
83
 
84
- declare type FixVersions = {
85
- description: string;
84
+ declare interface FixVersion {
85
+ description?: string;
86
86
  id: string;
87
87
  name: string;
88
88
  releaseDate?: string;
89
- released: boolean;
90
- self: string;
91
- }[];
89
+ released?: boolean;
90
+ self?: string;
91
+ }
92
+
93
+ declare type FixVersions = FixVersion[];
92
94
 
93
95
  declare interface HistoryMetadata {
94
96
  activityDescription?: string;
@@ -197,6 +199,10 @@ export declare class JiraIssueService {
197
199
  getIssueFields(issueIdOrKey: string, fields: string[]): Promise<IssueFields | undefined>;
198
200
  getIssue(issueIdOrKey: string, fields?: string[], rendered?: boolean): Promise<Issue | undefined>;
199
201
  issueSearch(jql: string, fields: string[], maxResults?: number): Promise<Issue<AtlassianDocumentFormat>[]>;
202
+ issueSearchByPage(jql: string, fields: string[], nextPageToken?: string, maxResults?: number): Promise<{
203
+ issues: Issue[];
204
+ nextPageToken?: string;
205
+ }>;
200
206
  addWorklog(issueIdOrKey: string, worklog: WorklogCreateRequest): Promise<Worklog>;
201
207
  queryForIssuesInProjects(projectIdsOrKeys: string[]): Promise<Issue<AtlassianDocumentFormat>[]>;
202
208
  createIssue(body: CreateIssue): Promise<CreatedIssue>;
@@ -219,6 +225,7 @@ declare interface Project {
219
225
  simplified?: boolean;
220
226
  avatarUrls?: AvatarUrls;
221
227
  archived?: boolean;
228
+ lead?: User;
222
229
  }
223
230
 
224
231
  declare type RequestProductMethod = (url: FetchRoute, init: RequestInit) => Promise<APIResponse>;
@@ -21,7 +21,7 @@ declare type FetchRoute = {
21
21
  readonly value: string;
22
22
  };
23
23
 
24
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
24
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
25
25
 
26
26
  export declare class JqlPrecomputationService {
27
27
  private fetchSvc;
@@ -33,7 +33,7 @@ declare type FetchRoute = {
33
33
  readonly value: string;
34
34
  };
35
35
 
36
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
36
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
37
37
 
38
38
  declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
39
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valiantys/atlassian-app-frontend",
3
- "version": "3.0.0-alpha-11",
3
+ "version": "3.0.0-alpha-17",
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": {
@@ -24,7 +24,7 @@ declare type FetchRoute = {
24
24
  readonly value: string;
25
25
  };
26
26
 
27
- declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
27
+ declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
28
28
 
29
29
  declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
30
30
 
@@ -847,11 +847,11 @@
847
847
  },
848
848
  {
849
849
  "kind": "Content",
850
- "text": ", statusCode?: "
850
+ "text": ", statusCode: "
851
851
  },
852
852
  {
853
853
  "kind": "Content",
854
- "text": "number | undefined"
854
+ "text": "number"
855
855
  },
856
856
  {
857
857
  "kind": "Content",
@@ -884,7 +884,7 @@
884
884
  "startIndex": 3,
885
885
  "endIndex": 4
886
886
  },
887
- "isOptional": true
887
+ "isOptional": false
888
888
  },
889
889
  {
890
890
  "parameterName": "message",
@@ -903,11 +903,11 @@
903
903
  "excerptTokens": [
904
904
  {
905
905
  "kind": "Content",
906
- "text": "readonly statusCode?: "
906
+ "text": "readonly statusCode: "
907
907
  },
908
908
  {
909
909
  "kind": "Content",
910
- "text": "number | undefined"
910
+ "text": "number"
911
911
  },
912
912
  {
913
913
  "kind": "Content",
@@ -915,7 +915,7 @@
915
915
  }
916
916
  ],
917
917
  "isReadonly": true,
918
- "isOptional": true,
918
+ "isOptional": false,
919
919
  "releaseTag": "Public",
920
920
  "name": "statusCode",
921
921
  "propertyTypeTokenRange": {
@@ -967,7 +967,7 @@
967
967
  },
968
968
  {
969
969
  "kind": "Content",
970
- "text": "{\n statusCode: number | undefined;\n statusText: string;\n }"
970
+ "text": "{\n statusCode: number;\n statusText: string;\n }"
971
971
  },
972
972
  {
973
973
  "kind": "Content",
@@ -1194,16 +1194,7 @@
1194
1194
  },
1195
1195
  {
1196
1196
  "kind": "Content",
1197
- "text": ", body?: "
1198
- },
1199
- {
1200
- "kind": "Reference",
1201
- "text": "Record",
1202
- "canonicalReference": "!Record:type"
1203
- },
1204
- {
1205
- "kind": "Content",
1206
- "text": "<string, any>) => "
1197
+ "text": ", body?: any) => "
1207
1198
  },
1208
1199
  {
1209
1200
  "kind": "Reference",
@@ -1224,7 +1215,7 @@
1224
1215
  "name": "FetchSignature",
1225
1216
  "typeTokenRange": {
1226
1217
  "startIndex": 1,
1227
- "endIndex": 8
1218
+ "endIndex": 6
1228
1219
  }
1229
1220
  },
1230
1221
  {
@@ -42,14 +42,14 @@ export function bearerAuthFetchRaw(authToken: string, url: string, init: Request
42
42
 
43
43
  // @public (undocumented)
44
44
  export class FetchError extends Error {
45
- constructor(statusText: string, statusCode?: number | undefined, message?: string);
45
+ constructor(statusText: string, statusCode: number, message?: string);
46
46
  // (undocumented)
47
- readonly statusCode?: number | undefined;
47
+ readonly statusCode: number;
48
48
  // (undocumented)
49
49
  readonly statusText: string;
50
50
  // (undocumented)
51
51
  toJSON(): {
52
- statusCode: number | undefined;
52
+ statusCode: number;
53
53
  statusText: string;
54
54
  };
55
55
  }
@@ -75,7 +75,7 @@ export type FetchRoute = {
75
75
  };
76
76
 
77
77
  // @public (undocumented)
78
- export type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
78
+ export type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
79
79
 
80
80
  // @public (undocumented)
81
81
  export function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text', includeCredentials?: RequestCredentials): Promise<T>;
@@ -23,10 +23,10 @@ export declare function bearerAuthFetchRaw(authToken: string, url: string, init:
23
23
 
24
24
  export declare class FetchError extends Error {
25
25
  readonly statusText: string;
26
- readonly statusCode?: number | undefined;
27
- constructor(statusText: string, statusCode?: number | undefined, message?: string);
26
+ readonly statusCode: number;
27
+ constructor(statusText: string, statusCode: number, message?: string);
28
28
  toJSON(): {
29
- statusCode: number | undefined;
29
+ statusCode: number;
30
30
  statusText: string;
31
31
  };
32
32
  }
@@ -44,7 +44,7 @@ export declare type FetchRoute = {
44
44
  readonly value: string;
45
45
  };
46
46
 
47
- export declare type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
47
+ export declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
48
48
 
49
49
  export declare function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text', includeCredentials?: RequestCredentials): Promise<T>;
50
50
 
@@ -1176,6 +1176,186 @@
1176
1176
  "endIndex": 0
1177
1177
  }
1178
1178
  },
1179
+ {
1180
+ "kind": "Interface",
1181
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion:interface",
1182
+ "docComment": "",
1183
+ "excerptTokens": [
1184
+ {
1185
+ "kind": "Content",
1186
+ "text": "export interface FixVersion "
1187
+ }
1188
+ ],
1189
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/issue.d.ts",
1190
+ "releaseTag": "Public",
1191
+ "name": "FixVersion",
1192
+ "preserveMemberOrder": false,
1193
+ "members": [
1194
+ {
1195
+ "kind": "PropertySignature",
1196
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion#description:member",
1197
+ "docComment": "",
1198
+ "excerptTokens": [
1199
+ {
1200
+ "kind": "Content",
1201
+ "text": "description?: "
1202
+ },
1203
+ {
1204
+ "kind": "Content",
1205
+ "text": "string"
1206
+ },
1207
+ {
1208
+ "kind": "Content",
1209
+ "text": ";"
1210
+ }
1211
+ ],
1212
+ "isReadonly": false,
1213
+ "isOptional": true,
1214
+ "releaseTag": "Public",
1215
+ "name": "description",
1216
+ "propertyTypeTokenRange": {
1217
+ "startIndex": 1,
1218
+ "endIndex": 2
1219
+ }
1220
+ },
1221
+ {
1222
+ "kind": "PropertySignature",
1223
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion#id:member",
1224
+ "docComment": "",
1225
+ "excerptTokens": [
1226
+ {
1227
+ "kind": "Content",
1228
+ "text": "id: "
1229
+ },
1230
+ {
1231
+ "kind": "Content",
1232
+ "text": "string"
1233
+ },
1234
+ {
1235
+ "kind": "Content",
1236
+ "text": ";"
1237
+ }
1238
+ ],
1239
+ "isReadonly": false,
1240
+ "isOptional": false,
1241
+ "releaseTag": "Public",
1242
+ "name": "id",
1243
+ "propertyTypeTokenRange": {
1244
+ "startIndex": 1,
1245
+ "endIndex": 2
1246
+ }
1247
+ },
1248
+ {
1249
+ "kind": "PropertySignature",
1250
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion#name:member",
1251
+ "docComment": "",
1252
+ "excerptTokens": [
1253
+ {
1254
+ "kind": "Content",
1255
+ "text": "name: "
1256
+ },
1257
+ {
1258
+ "kind": "Content",
1259
+ "text": "string"
1260
+ },
1261
+ {
1262
+ "kind": "Content",
1263
+ "text": ";"
1264
+ }
1265
+ ],
1266
+ "isReadonly": false,
1267
+ "isOptional": false,
1268
+ "releaseTag": "Public",
1269
+ "name": "name",
1270
+ "propertyTypeTokenRange": {
1271
+ "startIndex": 1,
1272
+ "endIndex": 2
1273
+ }
1274
+ },
1275
+ {
1276
+ "kind": "PropertySignature",
1277
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion#released:member",
1278
+ "docComment": "",
1279
+ "excerptTokens": [
1280
+ {
1281
+ "kind": "Content",
1282
+ "text": "released?: "
1283
+ },
1284
+ {
1285
+ "kind": "Content",
1286
+ "text": "boolean"
1287
+ },
1288
+ {
1289
+ "kind": "Content",
1290
+ "text": ";"
1291
+ }
1292
+ ],
1293
+ "isReadonly": false,
1294
+ "isOptional": true,
1295
+ "releaseTag": "Public",
1296
+ "name": "released",
1297
+ "propertyTypeTokenRange": {
1298
+ "startIndex": 1,
1299
+ "endIndex": 2
1300
+ }
1301
+ },
1302
+ {
1303
+ "kind": "PropertySignature",
1304
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion#releaseDate:member",
1305
+ "docComment": "",
1306
+ "excerptTokens": [
1307
+ {
1308
+ "kind": "Content",
1309
+ "text": "releaseDate?: "
1310
+ },
1311
+ {
1312
+ "kind": "Content",
1313
+ "text": "string"
1314
+ },
1315
+ {
1316
+ "kind": "Content",
1317
+ "text": ";"
1318
+ }
1319
+ ],
1320
+ "isReadonly": false,
1321
+ "isOptional": true,
1322
+ "releaseTag": "Public",
1323
+ "name": "releaseDate",
1324
+ "propertyTypeTokenRange": {
1325
+ "startIndex": 1,
1326
+ "endIndex": 2
1327
+ }
1328
+ },
1329
+ {
1330
+ "kind": "PropertySignature",
1331
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion#self:member",
1332
+ "docComment": "",
1333
+ "excerptTokens": [
1334
+ {
1335
+ "kind": "Content",
1336
+ "text": "self?: "
1337
+ },
1338
+ {
1339
+ "kind": "Content",
1340
+ "text": "string"
1341
+ },
1342
+ {
1343
+ "kind": "Content",
1344
+ "text": ";"
1345
+ }
1346
+ ],
1347
+ "isReadonly": false,
1348
+ "isOptional": true,
1349
+ "releaseTag": "Public",
1350
+ "name": "self",
1351
+ "propertyTypeTokenRange": {
1352
+ "startIndex": 1,
1353
+ "endIndex": 2
1354
+ }
1355
+ }
1356
+ ],
1357
+ "extendsTokenRanges": []
1358
+ },
1179
1359
  {
1180
1360
  "kind": "TypeAlias",
1181
1361
  "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersions:type",
@@ -1185,9 +1365,14 @@
1185
1365
  "kind": "Content",
1186
1366
  "text": "export type FixVersions = "
1187
1367
  },
1368
+ {
1369
+ "kind": "Reference",
1370
+ "text": "FixVersion",
1371
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FixVersion:interface"
1372
+ },
1188
1373
  {
1189
1374
  "kind": "Content",
1190
- "text": "{\n description: string;\n id: string;\n name: string;\n releaseDate?: string;\n released: boolean;\n self: string;\n}[]"
1375
+ "text": "[]"
1191
1376
  },
1192
1377
  {
1193
1378
  "kind": "Content",
@@ -1199,7 +1384,7 @@
1199
1384
  "name": "FixVersions",
1200
1385
  "typeTokenRange": {
1201
1386
  "startIndex": 1,
1202
- "endIndex": 2
1387
+ "endIndex": 3
1203
1388
  }
1204
1389
  },
1205
1390
  {
@@ -3853,6 +4038,34 @@
3853
4038
  "endIndex": 2
3854
4039
  }
3855
4040
  },
4041
+ {
4042
+ "kind": "PropertySignature",
4043
+ "canonicalReference": "@valiantys/atlassian-app-frontend!Project#lead:member",
4044
+ "docComment": "",
4045
+ "excerptTokens": [
4046
+ {
4047
+ "kind": "Content",
4048
+ "text": "lead?: "
4049
+ },
4050
+ {
4051
+ "kind": "Reference",
4052
+ "text": "User",
4053
+ "canonicalReference": "@valiantys/atlassian-app-frontend!User:interface"
4054
+ },
4055
+ {
4056
+ "kind": "Content",
4057
+ "text": ";"
4058
+ }
4059
+ ],
4060
+ "isReadonly": false,
4061
+ "isOptional": true,
4062
+ "releaseTag": "Public",
4063
+ "name": "lead",
4064
+ "propertyTypeTokenRange": {
4065
+ "startIndex": 1,
4066
+ "endIndex": 2
4067
+ }
4068
+ },
3856
4069
  {
3857
4070
  "kind": "PropertySignature",
3858
4071
  "canonicalReference": "@valiantys/atlassian-app-frontend!Project#name:member",
@@ -3964,6 +4177,91 @@
3964
4177
  ],
3965
4178
  "extendsTokenRanges": []
3966
4179
  },
4180
+ {
4181
+ "kind": "Interface",
4182
+ "canonicalReference": "@valiantys/atlassian-app-frontend!ProjectProperty:interface",
4183
+ "docComment": "",
4184
+ "excerptTokens": [
4185
+ {
4186
+ "kind": "Content",
4187
+ "text": "export interface ProjectProperty<T> "
4188
+ }
4189
+ ],
4190
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/project.d.ts",
4191
+ "releaseTag": "Public",
4192
+ "typeParameters": [
4193
+ {
4194
+ "typeParameterName": "T",
4195
+ "constraintTokenRange": {
4196
+ "startIndex": 0,
4197
+ "endIndex": 0
4198
+ },
4199
+ "defaultTypeTokenRange": {
4200
+ "startIndex": 0,
4201
+ "endIndex": 0
4202
+ }
4203
+ }
4204
+ ],
4205
+ "name": "ProjectProperty",
4206
+ "preserveMemberOrder": false,
4207
+ "members": [
4208
+ {
4209
+ "kind": "PropertySignature",
4210
+ "canonicalReference": "@valiantys/atlassian-app-frontend!ProjectProperty#key:member",
4211
+ "docComment": "",
4212
+ "excerptTokens": [
4213
+ {
4214
+ "kind": "Content",
4215
+ "text": "key: "
4216
+ },
4217
+ {
4218
+ "kind": "Content",
4219
+ "text": "string"
4220
+ },
4221
+ {
4222
+ "kind": "Content",
4223
+ "text": ";"
4224
+ }
4225
+ ],
4226
+ "isReadonly": false,
4227
+ "isOptional": false,
4228
+ "releaseTag": "Public",
4229
+ "name": "key",
4230
+ "propertyTypeTokenRange": {
4231
+ "startIndex": 1,
4232
+ "endIndex": 2
4233
+ }
4234
+ },
4235
+ {
4236
+ "kind": "PropertySignature",
4237
+ "canonicalReference": "@valiantys/atlassian-app-frontend!ProjectProperty#value:member",
4238
+ "docComment": "",
4239
+ "excerptTokens": [
4240
+ {
4241
+ "kind": "Content",
4242
+ "text": "value: "
4243
+ },
4244
+ {
4245
+ "kind": "Content",
4246
+ "text": "T"
4247
+ },
4248
+ {
4249
+ "kind": "Content",
4250
+ "text": ";"
4251
+ }
4252
+ ],
4253
+ "isReadonly": false,
4254
+ "isOptional": false,
4255
+ "releaseTag": "Public",
4256
+ "name": "value",
4257
+ "propertyTypeTokenRange": {
4258
+ "startIndex": 1,
4259
+ "endIndex": 2
4260
+ }
4261
+ }
4262
+ ],
4263
+ "extendsTokenRanges": []
4264
+ },
3967
4265
  {
3968
4266
  "kind": "Interface",
3969
4267
  "canonicalReference": "@valiantys/atlassian-app-frontend!ProjectVersion:interface",
@@ -112,14 +112,23 @@ export interface EntityProperty {
112
112
  export const FIX_VERSIONS_FIELD = "fixVersions";
113
113
 
114
114
  // @public (undocumented)
115
- export type FixVersions = {
116
- description: string;
115
+ export interface FixVersion {
116
+ // (undocumented)
117
+ description?: string;
118
+ // (undocumented)
117
119
  id: string;
120
+ // (undocumented)
118
121
  name: string;
122
+ // (undocumented)
123
+ released?: boolean;
124
+ // (undocumented)
119
125
  releaseDate?: string;
120
- released: boolean;
121
- self: string;
122
- }[];
126
+ // (undocumented)
127
+ self?: string;
128
+ }
129
+
130
+ // @public (undocumented)
131
+ export type FixVersions = FixVersion[];
123
132
 
124
133
  // @public (undocumented)
125
134
  export interface HealthCheckResult {
@@ -404,6 +413,8 @@ export interface Project {
404
413
  // (undocumented)
405
414
  key?: string;
406
415
  // (undocumented)
416
+ lead?: User;
417
+ // (undocumented)
407
418
  name?: string;
408
419
  // (undocumented)
409
420
  projectTypeKey?: string;
@@ -413,6 +424,14 @@ export interface Project {
413
424
  simplified?: boolean;
414
425
  }
415
426
 
427
+ // @public (undocumented)
428
+ export interface ProjectProperty<T> {
429
+ // (undocumented)
430
+ key: string;
431
+ // (undocumented)
432
+ value: T;
433
+ }
434
+
416
435
  // @public (undocumented)
417
436
  export interface ProjectVersion {
418
437
  // (undocumented)
@@ -68,14 +68,16 @@ export declare interface EntityProperty {
68
68
 
69
69
  export declare const FIX_VERSIONS_FIELD = "fixVersions";
70
70
 
71
- export declare type FixVersions = {
72
- description: string;
71
+ export declare interface FixVersion {
72
+ description?: string;
73
73
  id: string;
74
74
  name: string;
75
75
  releaseDate?: string;
76
- released: boolean;
77
- self: string;
78
- }[];
76
+ released?: boolean;
77
+ self?: string;
78
+ }
79
+
80
+ export declare type FixVersions = FixVersion[];
79
81
 
80
82
  export declare interface HealthCheckResult {
81
83
  description: string;
@@ -269,6 +271,12 @@ export declare interface Project {
269
271
  simplified?: boolean;
270
272
  avatarUrls?: AvatarUrls;
271
273
  archived?: boolean;
274
+ lead?: User;
275
+ }
276
+
277
+ export declare interface ProjectProperty<T> {
278
+ key: string;
279
+ value: T;
272
280
  }
273
281
 
274
282
  export declare interface ProjectVersion {