@valiantys/atlassian-app-frontend 3.0.0-alpha-19 → 3.0.0-alpha-21

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 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
+ "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,4 +1,4 @@
1
- const r = class r {
1
+ const h = class h {
2
2
  constructor(e) {
3
3
  this.fetchSvc = e;
4
4
  }
@@ -35,12 +35,12 @@ const r = class r {
35
35
  }
36
36
  async issueSearch(e, t, s = 50) {
37
37
  let c;
38
- const h = [];
38
+ const r = [];
39
39
  do {
40
40
  const i = await this.issueSearchByPage(e, t, c, s);
41
- h.push(...i.issues), c = i.nextPageToken;
41
+ r.push(...i.issues), c = i.nextPageToken;
42
42
  } while (c !== void 0);
43
- return h;
43
+ return r;
44
44
  }
45
45
  async issueSearchByPage(e, t, s, c = 50) {
46
46
  return this.fetchSvc.fetch(
@@ -128,9 +128,21 @@ const r = class r {
128
128
  e
129
129
  );
130
130
  }
131
+ async getIssueTypes() {
132
+ return this.fetchSvc.fetch({
133
+ method: "GET",
134
+ url: this.fetchSvc.route`/rest/api/3/issuetype`
135
+ });
136
+ }
137
+ async getIssueTypeSchemes() {
138
+ return await this.fetchSvc.fetch({
139
+ method: "GET",
140
+ url: this.fetchSvc.route`/rest/api/3/issuetypescheme?expand=projects,issuetypes`
141
+ });
142
+ }
131
143
  };
132
- r.issueUrl = "/rest/api/3/issue";
133
- let u = r;
144
+ h.issueUrl = "/rest/api/3/issue";
145
+ let u = h;
134
146
  export {
135
147
  u as JiraIssueService
136
148
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(e,t){const i=t.substring(t.indexOf("/rest/api/"));return e+i}exports.switchAtlassianApiUrlToUseSiteUrl=s;
@@ -0,0 +1,9 @@
1
+ function n(e, t) {
2
+ const i = t.substring(
3
+ t.indexOf("/rest/api/")
4
+ );
5
+ return e + i;
6
+ }
7
+ export {
8
+ n as switchAtlassianApiUrlToUseSiteUrl
9
+ };
@@ -910,6 +910,96 @@
910
910
  "isAbstract": false,
911
911
  "name": "getIssueFields"
912
912
  },
913
+ {
914
+ "kind": "Method",
915
+ "canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#getIssueTypes:member(1)",
916
+ "docComment": "",
917
+ "excerptTokens": [
918
+ {
919
+ "kind": "Content",
920
+ "text": "getIssueTypes(): "
921
+ },
922
+ {
923
+ "kind": "Reference",
924
+ "text": "Promise",
925
+ "canonicalReference": "!Promise:interface"
926
+ },
927
+ {
928
+ "kind": "Content",
929
+ "text": "<"
930
+ },
931
+ {
932
+ "kind": "Reference",
933
+ "text": "IssueTypeDetails",
934
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~IssueTypeDetails:interface"
935
+ },
936
+ {
937
+ "kind": "Content",
938
+ "text": "[]>"
939
+ },
940
+ {
941
+ "kind": "Content",
942
+ "text": ";"
943
+ }
944
+ ],
945
+ "isStatic": false,
946
+ "returnTypeTokenRange": {
947
+ "startIndex": 1,
948
+ "endIndex": 5
949
+ },
950
+ "releaseTag": "Public",
951
+ "isProtected": false,
952
+ "overloadIndex": 1,
953
+ "parameters": [],
954
+ "isOptional": false,
955
+ "isAbstract": false,
956
+ "name": "getIssueTypes"
957
+ },
958
+ {
959
+ "kind": "Method",
960
+ "canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#getIssueTypeSchemes:member(1)",
961
+ "docComment": "",
962
+ "excerptTokens": [
963
+ {
964
+ "kind": "Content",
965
+ "text": "getIssueTypeSchemes(): "
966
+ },
967
+ {
968
+ "kind": "Reference",
969
+ "text": "Promise",
970
+ "canonicalReference": "!Promise:interface"
971
+ },
972
+ {
973
+ "kind": "Content",
974
+ "text": "<"
975
+ },
976
+ {
977
+ "kind": "Reference",
978
+ "text": "IssueTypeScheme",
979
+ "canonicalReference": "@valiantys/atlassian-app-frontend!~IssueTypeScheme:interface"
980
+ },
981
+ {
982
+ "kind": "Content",
983
+ "text": "[]>"
984
+ },
985
+ {
986
+ "kind": "Content",
987
+ "text": ";"
988
+ }
989
+ ],
990
+ "isStatic": false,
991
+ "returnTypeTokenRange": {
992
+ "startIndex": 1,
993
+ "endIndex": 5
994
+ },
995
+ "releaseTag": "Public",
996
+ "isProtected": false,
997
+ "overloadIndex": 1,
998
+ "parameters": [],
999
+ "isOptional": false,
1000
+ "isAbstract": false,
1001
+ "name": "getIssueTypeSchemes"
1002
+ },
913
1003
  {
914
1004
  "kind": "Method",
915
1005
  "canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#issueSearch:member(1)",
@@ -42,6 +42,14 @@ export class JiraIssueService {
42
42
  //
43
43
  // (undocumented)
44
44
  getIssueFields(issueIdOrKey: string, fields: string[]): Promise<IssueFields | undefined>;
45
+ // Warning: (ae-forgotten-export) The symbol "IssueTypeDetails" needs to be exported by the entry point data-access-issue.d.ts
46
+ //
47
+ // (undocumented)
48
+ getIssueTypes(): Promise<IssueTypeDetails[]>;
49
+ // Warning: (ae-forgotten-export) The symbol "IssueTypeScheme" needs to be exported by the entry point data-access-issue.d.ts
50
+ //
51
+ // (undocumented)
52
+ getIssueTypeSchemes(): Promise<IssueTypeScheme[]>;
45
53
  // Warning: (ae-forgotten-export) The symbol "AtlassianDocumentFormat" needs to be exported by the entry point data-access-issue.d.ts
46
54
  //
47
55
  // (undocumented)
@@ -181,6 +181,46 @@ declare interface IssueTransition {
181
181
  looped?: boolean;
182
182
  }
183
183
 
184
+ declare interface IssueTypeDetails {
185
+ avatarId: number;
186
+ description: string;
187
+ hierarchyLevel: number;
188
+ iconUrl: string;
189
+ id: string;
190
+ name: string;
191
+ self: string;
192
+ subtask: boolean;
193
+ }
194
+
195
+ declare interface IssueTypeScheme {
196
+ id: string;
197
+ name: string;
198
+ description: string;
199
+ issueTypes: IssueTypeSchemeIssueTypesPage;
200
+ projects?: {
201
+ isLast: boolean;
202
+ maxResults: number;
203
+ startAt: number;
204
+ total: number;
205
+ values: {
206
+ id: string;
207
+ key: string;
208
+ name: string;
209
+ projectTypeKey: string;
210
+ simplified: boolean;
211
+ avatarUrls: Record<string, string>;
212
+ }[];
213
+ };
214
+ }
215
+
216
+ declare interface IssueTypeSchemeIssueTypesPage {
217
+ isLast: boolean;
218
+ maxResults: number;
219
+ startAt: number;
220
+ total: number;
221
+ values: IssueTypeDetails[];
222
+ }
223
+
184
224
  declare type JiraCommentResponse = {
185
225
  comments: IssueComment[];
186
226
  maxResults: number;
@@ -212,6 +252,8 @@ export declare class JiraIssueService {
212
252
  addIssueComment(issueIdOrKey: string, body: AtlassianDocumentFormat): Promise<IssueComment>;
213
253
  transitionIssue(issueIdOrKey: string, body: TransitionIssueRequest): Promise<void>;
214
254
  createIssueLink(issueLinkRequest: IssueLinkRequest): Promise<void>;
255
+ getIssueTypes(): Promise<IssueTypeDetails[]>;
256
+ getIssueTypeSchemes(): Promise<IssueTypeScheme[]>;
215
257
  }
216
258
 
217
259
  declare type Product = 'jira' | 'bitbucket' | 'confluence' | 'connected-data';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valiantys/atlassian-app-frontend",
3
- "version": "3.0.0-alpha-19",
3
+ "version": "3.0.0-alpha-21",
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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),i=require("react-dnd"),a=require("../drop-target-box.module.scss/index.cjs.js");function c({onDrop:e,accept:r,children:t}){const[,o]=i.useDrop(()=>({accept:r,drop(s){e&&e(s)}}),[e]);return u.jsx("div",{ref:o,className:a["drop-target-box"],children:t})}exports.DropTargetBox=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("react-dnd"),n=require("../drop-target-box.module.scss/index.cjs.js");function a({onDrop:e,accept:r,children:o}){const[,t]=u.useDrop(()=>({accept:r,drop:e}),[e]);return s.jsx("div",{ref:t,className:n["drop-target-box"],children:o})}exports.DropTargetBox=a;
@@ -1,22 +1,20 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { useDrop as s } from "react-dnd";
3
- import f from "../drop-target-box.module.scss/index.es.js";
4
- function x({
2
+ import { useDrop as m } from "react-dnd";
3
+ import s from "../drop-target-box.module.scss/index.es.js";
4
+ function d({
5
5
  onDrop: r,
6
6
  accept: o,
7
7
  children: t
8
8
  }) {
9
- const [, e] = s(
9
+ const [, e] = m(
10
10
  () => ({
11
11
  accept: o,
12
- drop(m) {
13
- r && r(m);
14
- }
12
+ drop: r
15
13
  }),
16
14
  [r]
17
15
  );
18
- return /* @__PURE__ */ p("div", { ref: e, className: f["drop-target-box"], children: t });
16
+ return /* @__PURE__ */ p("div", { ref: e, className: s["drop-target-box"], children: t });
19
17
  }
20
18
  export {
21
- x as DropTargetBox
19
+ d as DropTargetBox
22
20
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");function d(t){return console.error(t),`Error Occurred: ${t.message||t}`}function f(t,n=d){const[u,r]=e.useState(),[i,o]=e.useState(!0),[l,c]=e.useState(),s=e.useCallback(async()=>{o(!0);try{c(void 0);const a=await t();return r(a),a}catch(a){c(n(a)),r(void 0)}finally{o(!1)}},[t,n]);return e.useEffect(()=>{s()},[s]),{data:u,loading:i,error:l,setData:r,setLoading:o,setError:c,manualTrigger:()=>s()}}exports.useLoadDataEffect=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");function d(t){return console.error(t),`Error Occurred: ${t.message||JSON.stringify(t)}`}function f(t,n=d){const[u,r]=e.useState(),[i,o]=e.useState(!0),[l,s]=e.useState(),c=e.useCallback(async()=>{o(!0);try{s(void 0);const a=await t();return r(a),a}catch(a){s(n(a)),r(void 0)}finally{o(!1)}},[t,n]);return e.useEffect(()=>{c()},[c]),{data:u,loading:i,error:l,setData:r,setLoading:o,setError:s,manualTrigger:()=>c()}}exports.useLoadDataEffect=f;
@@ -1,9 +1,9 @@
1
- import { useState as n, useCallback as d, useEffect as f } from "react";
1
+ import { useState as c, useCallback as l, useEffect as d } from "react";
2
2
  function g(r) {
3
- return console.error(r), `Error Occurred: ${r.message || r}`;
3
+ return console.error(r), `Error Occurred: ${r.message || JSON.stringify(r)}`;
4
4
  }
5
5
  function m(r, s = g) {
6
- const [u, a] = n(), [i, o] = n(!0), [l, e] = n(), c = d(async () => {
6
+ const [i, a] = c(), [u, o] = c(!0), [f, e] = c(), n = l(async () => {
7
7
  o(!0);
8
8
  try {
9
9
  e(void 0);
@@ -15,16 +15,16 @@ function m(r, s = g) {
15
15
  o(!1);
16
16
  }
17
17
  }, [r, s]);
18
- return f(() => {
19
- c();
20
- }, [c]), {
21
- data: u,
22
- loading: i,
23
- error: l,
18
+ return d(() => {
19
+ n();
20
+ }, [n]), {
21
+ data: i,
22
+ loading: u,
23
+ error: f,
24
24
  setData: a,
25
25
  setLoading: o,
26
26
  setError: e,
27
- manualTrigger: () => c()
27
+ manualTrigger: () => n()
28
28
  };
29
29
  }
30
30
  export {
@@ -187,7 +187,7 @@
187
187
  },
188
188
  {
189
189
  "kind": "Content",
190
- "text": ", headers: "
190
+ "text": ", headers?: "
191
191
  },
192
192
  {
193
193
  "kind": "Reference",
@@ -229,7 +229,7 @@
229
229
  "startIndex": 3,
230
230
  "endIndex": 4
231
231
  },
232
- "isOptional": false
232
+ "isOptional": true
233
233
  }
234
234
  ],
235
235
  "name": "addAuthHeader"
@@ -5,7 +5,7 @@
5
5
  ```ts
6
6
 
7
7
  // @public (undocumented)
8
- export function addAuthHeader(authToken: string, headers: HeadersInit): {
8
+ export function addAuthHeader(authToken: string, headers?: HeadersInit): {
9
9
  Authorization: string;
10
10
  };
11
11
 
@@ -1,4 +1,4 @@
1
- export declare function addAuthHeader(authToken: string, headers: HeadersInit): {
1
+ export declare function addAuthHeader(authToken: string, headers?: HeadersInit): {
2
2
  Authorization: string;
3
3
  };
4
4
 
@@ -3154,6 +3154,327 @@
3154
3154
  ],
3155
3155
  "extendsTokenRanges": []
3156
3156
  },
3157
+ {
3158
+ "kind": "Interface",
3159
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme:interface",
3160
+ "docComment": "",
3161
+ "excerptTokens": [
3162
+ {
3163
+ "kind": "Content",
3164
+ "text": "export interface IssueTypeScheme "
3165
+ }
3166
+ ],
3167
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/issue-type-scheme.d.ts",
3168
+ "releaseTag": "Public",
3169
+ "name": "IssueTypeScheme",
3170
+ "preserveMemberOrder": false,
3171
+ "members": [
3172
+ {
3173
+ "kind": "PropertySignature",
3174
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#description:member",
3175
+ "docComment": "",
3176
+ "excerptTokens": [
3177
+ {
3178
+ "kind": "Content",
3179
+ "text": "description: "
3180
+ },
3181
+ {
3182
+ "kind": "Content",
3183
+ "text": "string"
3184
+ },
3185
+ {
3186
+ "kind": "Content",
3187
+ "text": ";"
3188
+ }
3189
+ ],
3190
+ "isReadonly": false,
3191
+ "isOptional": false,
3192
+ "releaseTag": "Public",
3193
+ "name": "description",
3194
+ "propertyTypeTokenRange": {
3195
+ "startIndex": 1,
3196
+ "endIndex": 2
3197
+ }
3198
+ },
3199
+ {
3200
+ "kind": "PropertySignature",
3201
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#id:member",
3202
+ "docComment": "",
3203
+ "excerptTokens": [
3204
+ {
3205
+ "kind": "Content",
3206
+ "text": "id: "
3207
+ },
3208
+ {
3209
+ "kind": "Content",
3210
+ "text": "string"
3211
+ },
3212
+ {
3213
+ "kind": "Content",
3214
+ "text": ";"
3215
+ }
3216
+ ],
3217
+ "isReadonly": false,
3218
+ "isOptional": false,
3219
+ "releaseTag": "Public",
3220
+ "name": "id",
3221
+ "propertyTypeTokenRange": {
3222
+ "startIndex": 1,
3223
+ "endIndex": 2
3224
+ }
3225
+ },
3226
+ {
3227
+ "kind": "PropertySignature",
3228
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#issueTypes:member",
3229
+ "docComment": "",
3230
+ "excerptTokens": [
3231
+ {
3232
+ "kind": "Content",
3233
+ "text": "issueTypes: "
3234
+ },
3235
+ {
3236
+ "kind": "Reference",
3237
+ "text": "IssueTypeSchemeIssueTypesPage",
3238
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage:interface"
3239
+ },
3240
+ {
3241
+ "kind": "Content",
3242
+ "text": ";"
3243
+ }
3244
+ ],
3245
+ "isReadonly": false,
3246
+ "isOptional": false,
3247
+ "releaseTag": "Public",
3248
+ "name": "issueTypes",
3249
+ "propertyTypeTokenRange": {
3250
+ "startIndex": 1,
3251
+ "endIndex": 2
3252
+ }
3253
+ },
3254
+ {
3255
+ "kind": "PropertySignature",
3256
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#name:member",
3257
+ "docComment": "",
3258
+ "excerptTokens": [
3259
+ {
3260
+ "kind": "Content",
3261
+ "text": "name: "
3262
+ },
3263
+ {
3264
+ "kind": "Content",
3265
+ "text": "string"
3266
+ },
3267
+ {
3268
+ "kind": "Content",
3269
+ "text": ";"
3270
+ }
3271
+ ],
3272
+ "isReadonly": false,
3273
+ "isOptional": false,
3274
+ "releaseTag": "Public",
3275
+ "name": "name",
3276
+ "propertyTypeTokenRange": {
3277
+ "startIndex": 1,
3278
+ "endIndex": 2
3279
+ }
3280
+ },
3281
+ {
3282
+ "kind": "PropertySignature",
3283
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeScheme#projects:member",
3284
+ "docComment": "",
3285
+ "excerptTokens": [
3286
+ {
3287
+ "kind": "Content",
3288
+ "text": "projects?: "
3289
+ },
3290
+ {
3291
+ "kind": "Content",
3292
+ "text": "{\n isLast: boolean;\n maxResults: number;\n startAt: number;\n total: number;\n values: {\n id: string;\n key: string;\n name: string;\n projectTypeKey: string;\n simplified: boolean;\n avatarUrls: "
3293
+ },
3294
+ {
3295
+ "kind": "Reference",
3296
+ "text": "Record",
3297
+ "canonicalReference": "!Record:type"
3298
+ },
3299
+ {
3300
+ "kind": "Content",
3301
+ "text": "<string, string>;\n }[];\n }"
3302
+ },
3303
+ {
3304
+ "kind": "Content",
3305
+ "text": ";"
3306
+ }
3307
+ ],
3308
+ "isReadonly": false,
3309
+ "isOptional": true,
3310
+ "releaseTag": "Public",
3311
+ "name": "projects",
3312
+ "propertyTypeTokenRange": {
3313
+ "startIndex": 1,
3314
+ "endIndex": 4
3315
+ }
3316
+ }
3317
+ ],
3318
+ "extendsTokenRanges": []
3319
+ },
3320
+ {
3321
+ "kind": "Interface",
3322
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage:interface",
3323
+ "docComment": "",
3324
+ "excerptTokens": [
3325
+ {
3326
+ "kind": "Content",
3327
+ "text": "export interface IssueTypeSchemeIssueTypesPage "
3328
+ }
3329
+ ],
3330
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/issue-type-scheme.d.ts",
3331
+ "releaseTag": "Public",
3332
+ "name": "IssueTypeSchemeIssueTypesPage",
3333
+ "preserveMemberOrder": false,
3334
+ "members": [
3335
+ {
3336
+ "kind": "PropertySignature",
3337
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#isLast:member",
3338
+ "docComment": "",
3339
+ "excerptTokens": [
3340
+ {
3341
+ "kind": "Content",
3342
+ "text": "isLast: "
3343
+ },
3344
+ {
3345
+ "kind": "Content",
3346
+ "text": "boolean"
3347
+ },
3348
+ {
3349
+ "kind": "Content",
3350
+ "text": ";"
3351
+ }
3352
+ ],
3353
+ "isReadonly": false,
3354
+ "isOptional": false,
3355
+ "releaseTag": "Public",
3356
+ "name": "isLast",
3357
+ "propertyTypeTokenRange": {
3358
+ "startIndex": 1,
3359
+ "endIndex": 2
3360
+ }
3361
+ },
3362
+ {
3363
+ "kind": "PropertySignature",
3364
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#maxResults:member",
3365
+ "docComment": "",
3366
+ "excerptTokens": [
3367
+ {
3368
+ "kind": "Content",
3369
+ "text": "maxResults: "
3370
+ },
3371
+ {
3372
+ "kind": "Content",
3373
+ "text": "number"
3374
+ },
3375
+ {
3376
+ "kind": "Content",
3377
+ "text": ";"
3378
+ }
3379
+ ],
3380
+ "isReadonly": false,
3381
+ "isOptional": false,
3382
+ "releaseTag": "Public",
3383
+ "name": "maxResults",
3384
+ "propertyTypeTokenRange": {
3385
+ "startIndex": 1,
3386
+ "endIndex": 2
3387
+ }
3388
+ },
3389
+ {
3390
+ "kind": "PropertySignature",
3391
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#startAt:member",
3392
+ "docComment": "",
3393
+ "excerptTokens": [
3394
+ {
3395
+ "kind": "Content",
3396
+ "text": "startAt: "
3397
+ },
3398
+ {
3399
+ "kind": "Content",
3400
+ "text": "number"
3401
+ },
3402
+ {
3403
+ "kind": "Content",
3404
+ "text": ";"
3405
+ }
3406
+ ],
3407
+ "isReadonly": false,
3408
+ "isOptional": false,
3409
+ "releaseTag": "Public",
3410
+ "name": "startAt",
3411
+ "propertyTypeTokenRange": {
3412
+ "startIndex": 1,
3413
+ "endIndex": 2
3414
+ }
3415
+ },
3416
+ {
3417
+ "kind": "PropertySignature",
3418
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#total:member",
3419
+ "docComment": "",
3420
+ "excerptTokens": [
3421
+ {
3422
+ "kind": "Content",
3423
+ "text": "total: "
3424
+ },
3425
+ {
3426
+ "kind": "Content",
3427
+ "text": "number"
3428
+ },
3429
+ {
3430
+ "kind": "Content",
3431
+ "text": ";"
3432
+ }
3433
+ ],
3434
+ "isReadonly": false,
3435
+ "isOptional": false,
3436
+ "releaseTag": "Public",
3437
+ "name": "total",
3438
+ "propertyTypeTokenRange": {
3439
+ "startIndex": 1,
3440
+ "endIndex": 2
3441
+ }
3442
+ },
3443
+ {
3444
+ "kind": "PropertySignature",
3445
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeSchemeIssueTypesPage#values:member",
3446
+ "docComment": "",
3447
+ "excerptTokens": [
3448
+ {
3449
+ "kind": "Content",
3450
+ "text": "values: "
3451
+ },
3452
+ {
3453
+ "kind": "Reference",
3454
+ "text": "IssueTypeDetails",
3455
+ "canonicalReference": "@valiantys/atlassian-app-frontend!IssueTypeDetails:interface"
3456
+ },
3457
+ {
3458
+ "kind": "Content",
3459
+ "text": "[]"
3460
+ },
3461
+ {
3462
+ "kind": "Content",
3463
+ "text": ";"
3464
+ }
3465
+ ],
3466
+ "isReadonly": false,
3467
+ "isOptional": false,
3468
+ "releaseTag": "Public",
3469
+ "name": "values",
3470
+ "propertyTypeTokenRange": {
3471
+ "startIndex": 1,
3472
+ "endIndex": 3
3473
+ }
3474
+ }
3475
+ ],
3476
+ "extendsTokenRanges": []
3477
+ },
3157
3478
  {
3158
3479
  "kind": "TypeAlias",
3159
3480
  "canonicalReference": "@valiantys/atlassian-app-frontend!JiraCommentResponse:type",
@@ -3781,7 +4102,7 @@
3781
4102
  },
3782
4103
  {
3783
4104
  "kind": "Content",
3784
- "text": ">"
4105
+ "text": " | null>"
3785
4106
  },
3786
4107
  {
3787
4108
  "kind": "Content",
@@ -5366,6 +5687,67 @@
5366
5687
  ],
5367
5688
  "extendsTokenRanges": []
5368
5689
  },
5690
+ {
5691
+ "kind": "Function",
5692
+ "canonicalReference": "@valiantys/atlassian-app-frontend!switchAtlassianApiUrlToUseSiteUrl:function(1)",
5693
+ "docComment": "",
5694
+ "excerptTokens": [
5695
+ {
5696
+ "kind": "Content",
5697
+ "text": "export declare function switchAtlassianApiUrlToUseSiteUrl(siteBaseUrl: "
5698
+ },
5699
+ {
5700
+ "kind": "Content",
5701
+ "text": "string"
5702
+ },
5703
+ {
5704
+ "kind": "Content",
5705
+ "text": ", apiDotAtlassianUrl: "
5706
+ },
5707
+ {
5708
+ "kind": "Content",
5709
+ "text": "string"
5710
+ },
5711
+ {
5712
+ "kind": "Content",
5713
+ "text": "): "
5714
+ },
5715
+ {
5716
+ "kind": "Content",
5717
+ "text": "string"
5718
+ },
5719
+ {
5720
+ "kind": "Content",
5721
+ "text": ";"
5722
+ }
5723
+ ],
5724
+ "fileUrlPath": "../../jira/shared/util-jira-v3-api/src/lib/jira-server-info.d.ts",
5725
+ "returnTypeTokenRange": {
5726
+ "startIndex": 5,
5727
+ "endIndex": 6
5728
+ },
5729
+ "releaseTag": "Public",
5730
+ "overloadIndex": 1,
5731
+ "parameters": [
5732
+ {
5733
+ "parameterName": "siteBaseUrl",
5734
+ "parameterTypeTokenRange": {
5735
+ "startIndex": 1,
5736
+ "endIndex": 2
5737
+ },
5738
+ "isOptional": false
5739
+ },
5740
+ {
5741
+ "parameterName": "apiDotAtlassianUrl",
5742
+ "parameterTypeTokenRange": {
5743
+ "startIndex": 3,
5744
+ "endIndex": 4
5745
+ },
5746
+ "isOptional": false
5747
+ }
5748
+ ],
5749
+ "name": "switchAtlassianApiUrlToUseSiteUrl"
5750
+ },
5369
5751
  {
5370
5752
  "kind": "Interface",
5371
5753
  "canonicalReference": "@valiantys/atlassian-app-frontend!TransitionIssueRequest:interface",
@@ -302,6 +302,47 @@ export interface IssueTypeDetails {
302
302
  subtask: boolean;
303
303
  }
304
304
 
305
+ // @public (undocumented)
306
+ export interface IssueTypeScheme {
307
+ // (undocumented)
308
+ description: string;
309
+ // (undocumented)
310
+ id: string;
311
+ // (undocumented)
312
+ issueTypes: IssueTypeSchemeIssueTypesPage;
313
+ // (undocumented)
314
+ name: string;
315
+ // (undocumented)
316
+ projects?: {
317
+ isLast: boolean;
318
+ maxResults: number;
319
+ startAt: number;
320
+ total: number;
321
+ values: {
322
+ id: string;
323
+ key: string;
324
+ name: string;
325
+ projectTypeKey: string;
326
+ simplified: boolean;
327
+ avatarUrls: Record<string, string>;
328
+ }[];
329
+ };
330
+ }
331
+
332
+ // @public (undocumented)
333
+ export interface IssueTypeSchemeIssueTypesPage {
334
+ // (undocumented)
335
+ isLast: boolean;
336
+ // (undocumented)
337
+ maxResults: number;
338
+ // (undocumented)
339
+ startAt: number;
340
+ // (undocumented)
341
+ total: number;
342
+ // (undocumented)
343
+ values: IssueTypeDetails[];
344
+ }
345
+
305
346
  // @public (undocumented)
306
347
  export type JiraCommentResponse = {
307
348
  comments: IssueComment[];
@@ -357,7 +398,7 @@ export interface PagedResponse<T> {
357
398
  }
358
399
 
359
400
  // @public (undocumented)
360
- export type PagedUsers = PagedResponse<User>;
401
+ export type PagedUsers = PagedResponse<User | null>;
361
402
 
362
403
  // @public (undocumented)
363
404
  export type Precomputation = {
@@ -547,6 +588,9 @@ export interface StaticIssueFields<T = AtlassianDocumentFormat> {
547
588
  workratio?: number;
548
589
  }
549
590
 
591
+ // @public (undocumented)
592
+ export function switchAtlassianApiUrlToUseSiteUrl(siteBaseUrl: string, apiDotAtlassianUrl: string): string;
593
+
550
594
  // @public (undocumented)
551
595
  export interface TransitionIssueRequest {
552
596
  // (undocumented)
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js");exports.FIX_VERSIONS_FIELD=t.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=t.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=t.isAtlassianDocumentFormatTextNode;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.cjs.js"),t=require("../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.cjs.js");exports.FIX_VERSIONS_FIELD=e.FIX_VERSIONS_FIELD;exports.isAtlassianDocumentFormatParagraphNode=e.isAtlassianDocumentFormatParagraphNode;exports.isAtlassianDocumentFormatTextNode=e.isAtlassianDocumentFormatTextNode;exports.switchAtlassianApiUrlToUseSiteUrl=t.switchAtlassianApiUrlToUseSiteUrl;
@@ -189,6 +189,35 @@ export declare interface IssueTypeDetails {
189
189
  subtask: boolean;
190
190
  }
191
191
 
192
+ export declare interface IssueTypeScheme {
193
+ id: string;
194
+ name: string;
195
+ description: string;
196
+ issueTypes: IssueTypeSchemeIssueTypesPage;
197
+ projects?: {
198
+ isLast: boolean;
199
+ maxResults: number;
200
+ startAt: number;
201
+ total: number;
202
+ values: {
203
+ id: string;
204
+ key: string;
205
+ name: string;
206
+ projectTypeKey: string;
207
+ simplified: boolean;
208
+ avatarUrls: Record<string, string>;
209
+ }[];
210
+ };
211
+ }
212
+
213
+ export declare interface IssueTypeSchemeIssueTypesPage {
214
+ isLast: boolean;
215
+ maxResults: number;
216
+ startAt: number;
217
+ total: number;
218
+ values: IssueTypeDetails[];
219
+ }
220
+
192
221
  export declare type JiraCommentResponse = {
193
222
  comments: IssueComment[];
194
223
  maxResults: number;
@@ -221,7 +250,7 @@ export declare interface PagedResponse<T> {
221
250
  values: T[];
222
251
  }
223
252
 
224
- export declare type PagedUsers = PagedResponse<User>;
253
+ export declare type PagedUsers = PagedResponse<User | null>;
225
254
 
226
255
  export declare type Precomputation = {
227
256
  id: string;
@@ -354,6 +383,8 @@ export declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
354
383
  }[];
355
384
  }
356
385
 
386
+ export declare function switchAtlassianApiUrlToUseSiteUrl(siteBaseUrl: string, apiDotAtlassianUrl: string): string;
387
+
357
388
  export declare interface TransitionIssueRequest {
358
389
  fields?: any;
359
390
  historyMetadata?: HistoryMetadata;
@@ -1,6 +1,8 @@
1
- import { FIX_VERSIONS_FIELD as t, isAtlassianDocumentFormatParagraphNode as e, isAtlassianDocumentFormatTextNode as r } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
1
+ import { FIX_VERSIONS_FIELD as o, isAtlassianDocumentFormatParagraphNode as r, isAtlassianDocumentFormatTextNode as s } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/issue/index.es.js";
2
+ import { switchAtlassianApiUrlToUseSiteUrl as i } from "../atlassian/jira/shared/util-jira-v3-api/src/lib/jira-server-info/index.es.js";
2
3
  export {
3
- t as FIX_VERSIONS_FIELD,
4
- e as isAtlassianDocumentFormatParagraphNode,
5
- r as isAtlassianDocumentFormatTextNode
4
+ o as FIX_VERSIONS_FIELD,
5
+ r as isAtlassianDocumentFormatParagraphNode,
6
+ s as isAtlassianDocumentFormatTextNode,
7
+ i as switchAtlassianApiUrlToUseSiteUrl
6
8
  };