@valiantys/atlassian-app-frontend 3.0.0-alpha-28 → 3.0.0-alpha-29

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=class h{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 i=[];do{const u=await this.issueSearchByPage(e,t,c,s);i.push(...u.issues),c=u.nextPageToken}while(c!==void 0);return i}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)}async getIssueTypes(){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetype`})}async getIssueTypeSchemes(){return await this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetypescheme?expand=projects,issuetypes`})}};h.issueUrl="/rest/api/3/issue";let r=h;exports.JiraIssueService=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=class h{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 r=[];do{const u=await this.issueSearchByPage(e,t,c,s);r.push(...u.issues),c=u.nextPageToken}while(c!==void 0);return r}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)}async getIssueTypes(){return this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetype`})}async getIssueTypeSchemes({maxResults:e,orderBy:t,startAt:s,expand:c}={}){const r=new URLSearchParams;return c&&r.append("expand",c),e&&r.append("maxResults",e.toString()),t&&r.append("orderBy",t),s&&r.append("startAt",s.toString()),this.fetchSvc.fetch({method:"GET",url:this.fetchSvc.route`/rest/api/3/issuetypescheme?${r}`})}};h.issueUrl="/rest/api/3/issue";let i=h;exports.JiraIssueService=i;
@@ -134,10 +134,16 @@ const h = class h {
134
134
  url: this.fetchSvc.route`/rest/api/3/issuetype`
135
135
  });
136
136
  }
137
- async getIssueTypeSchemes() {
138
- return await this.fetchSvc.fetch({
137
+ async getIssueTypeSchemes({
138
+ maxResults: e,
139
+ orderBy: t,
140
+ startAt: s,
141
+ expand: c
142
+ } = {}) {
143
+ const r = new URLSearchParams();
144
+ return c && r.append("expand", c), e && r.append("maxResults", e.toString()), t && r.append("orderBy", t), s && r.append("startAt", s.toString()), this.fetchSvc.fetch({
139
145
  method: "GET",
140
- url: this.fetchSvc.route`/rest/api/3/issuetypescheme?expand=projects,issuetypes`
146
+ url: this.fetchSvc.route`/rest/api/3/issuetypescheme?${r}`
141
147
  });
142
148
  }
143
149
  };
@@ -49,7 +49,7 @@ export const IS_STANDALONE: boolean;
49
49
 
50
50
  // Warnings were encountered during analysis:
51
51
  //
52
- // /Users/chris.hardin/code/od/engineering-monorepo/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app-config.d.ts:65:9 - (ae-forgotten-export) The symbol "InvokeRemoteSignature" needs to be exported by the entry point atlassian-app.d.ts
52
+ // /Users/chris.hardin/code/od/engineering-monorepo-copy/atlassian/shared/frontend-feature-atlassian-app/src/lib/atlassian-app-config.d.ts:65:9 - (ae-forgotten-export) The symbol "InvokeRemoteSignature" needs to be exported by the entry point atlassian-app.d.ts
53
53
 
54
54
  // (No @packageDocumentation comment for this package)
55
55
 
@@ -962,7 +962,15 @@
962
962
  "excerptTokens": [
963
963
  {
964
964
  "kind": "Content",
965
- "text": "getIssueTypeSchemes(): "
965
+ "text": "getIssueTypeSchemes({ maxResults, orderBy, startAt, expand, }?: "
966
+ },
967
+ {
968
+ "kind": "Content",
969
+ "text": "{\n maxResults?: number;\n orderBy?: string;\n startAt?: number;\n expand?: string;\n }"
970
+ },
971
+ {
972
+ "kind": "Content",
973
+ "text": "): "
966
974
  },
967
975
  {
968
976
  "kind": "Reference",
@@ -973,6 +981,15 @@
973
981
  "kind": "Content",
974
982
  "text": "<"
975
983
  },
984
+ {
985
+ "kind": "Reference",
986
+ "text": "PagedResponse",
987
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~PagedResponse:interface"
988
+ },
989
+ {
990
+ "kind": "Content",
991
+ "text": "<"
992
+ },
976
993
  {
977
994
  "kind": "Reference",
978
995
  "text": "IssueTypeScheme",
@@ -980,7 +997,7 @@
980
997
  },
981
998
  {
982
999
  "kind": "Content",
983
- "text": "[]>"
1000
+ "text": ">>"
984
1001
  },
985
1002
  {
986
1003
  "kind": "Content",
@@ -989,13 +1006,22 @@
989
1006
  ],
990
1007
  "isStatic": false,
991
1008
  "returnTypeTokenRange": {
992
- "startIndex": 1,
993
- "endIndex": 5
1009
+ "startIndex": 3,
1010
+ "endIndex": 9
994
1011
  },
995
1012
  "releaseTag": "Public",
996
1013
  "isProtected": false,
997
1014
  "overloadIndex": 1,
998
- "parameters": [],
1015
+ "parameters": [
1016
+ {
1017
+ "parameterName": "{ maxResults, orderBy, startAt, expand, }",
1018
+ "parameterTypeTokenRange": {
1019
+ "startIndex": 1,
1020
+ "endIndex": 2
1021
+ },
1022
+ "isOptional": true
1023
+ }
1024
+ ],
999
1025
  "isOptional": false,
1000
1026
  "isAbstract": false,
1001
1027
  "name": "getIssueTypeSchemes"
@@ -46,10 +46,16 @@ export class JiraIssueService {
46
46
  //
47
47
  // (undocumented)
48
48
  getIssueTypes(): Promise<IssueTypeDetails[]>;
49
+ // Warning: (ae-forgotten-export) The symbol "PagedResponse" needs to be exported by the entry point data-access-issue.d.ts
49
50
  // Warning: (ae-forgotten-export) The symbol "IssueTypeScheme" needs to be exported by the entry point data-access-issue.d.ts
50
51
  //
51
52
  // (undocumented)
52
- getIssueTypeSchemes(): Promise<IssueTypeScheme[]>;
53
+ getIssueTypeSchemes({ maxResults, orderBy, startAt, expand, }?: {
54
+ maxResults?: number;
55
+ orderBy?: string;
56
+ startAt?: number;
57
+ expand?: string;
58
+ }): Promise<PagedResponse<IssueTypeScheme>>;
53
59
  // Warning: (ae-forgotten-export) The symbol "AtlassianDocumentFormat" needs to be exported by the entry point data-access-issue.d.ts
54
60
  //
55
61
  // (undocumented)
@@ -253,7 +253,12 @@ export declare class JiraIssueService {
253
253
  transitionIssue(issueIdOrKey: string, body: TransitionIssueRequest): Promise<void>;
254
254
  createIssueLink(issueLinkRequest: IssueLinkRequest): Promise<void>;
255
255
  getIssueTypes(): Promise<IssueTypeDetails[]>;
256
- getIssueTypeSchemes(): Promise<IssueTypeScheme[]>;
256
+ getIssueTypeSchemes({ maxResults, orderBy, startAt, expand, }?: {
257
+ maxResults?: number;
258
+ orderBy?: string;
259
+ startAt?: number;
260
+ expand?: string;
261
+ }): Promise<PagedResponse<IssueTypeScheme>>;
257
262
  }
258
263
 
259
264
  export declare class JiraRemoteLinksService {
@@ -263,6 +268,14 @@ export declare class JiraRemoteLinksService {
263
268
  deleteRemoteLinkForIssueById(issueIdOrKey: string, linkId: number): Promise<void>;
264
269
  }
265
270
 
271
+ declare interface PagedResponse<T> {
272
+ startAt: number;
273
+ isLast: boolean;
274
+ maxResults: number;
275
+ total: number;
276
+ values: T[];
277
+ }
278
+
266
279
  declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
267
280
 
268
281
  declare interface Project {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valiantys/atlassian-app-frontend",
3
- "version": "3.0.0-alpha-28",
3
+ "version": "3.0.0-alpha-29",
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": {
@@ -15,7 +15,7 @@ export function JobLogTable(props: {
15
15
 
16
16
  // Warnings were encountered during analysis:
17
17
  //
18
- // /Users/chris.hardin/code/od/engineering-monorepo/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table.d.ts:4:9 - (ae-forgotten-export) The symbol "JobLogEntry" needs to be exported by the entry point ui-async-queue-job-log.d.ts
18
+ // /Users/chris.hardin/code/od/engineering-monorepo-copy/atlassian/forge/shared/frontend-ui-async-queue-job-log/src/lib/job-log-table.d.ts:4:9 - (ae-forgotten-export) The symbol "JobLogEntry" needs to be exported by the entry point ui-async-queue-job-log.d.ts
19
19
 
20
20
  // (No @packageDocumentation comment for this package)
21
21