@valiantys/atlassian-app-frontend 3.0.0-alpha-10 → 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 (48) 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 +36 -22
  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 +74 -28
  5. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -1
  6. package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +28 -17
  7. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -1
  8. package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +93 -84
  9. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -1
  10. package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +58 -66
  11. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
  12. package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
  13. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -1
  14. package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +1 -1
  15. package/atlassian-app/index.d.ts +1 -0
  16. package/atlassian-app-standalone/atlassian-app-frontend-atlassian-app-standalone.api.json +29 -2
  17. package/atlassian-app-standalone/atlassian-app-frontend.api.md +3 -1
  18. package/atlassian-app-standalone/index.d.ts +3 -1
  19. package/atlassian-app-test/index.d.ts +1 -1
  20. package/data-access-assets/index.d.ts +1 -1
  21. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend-data-access-atlassian-product-fetch-oauth.api.json +354 -2
  22. package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +20 -1
  23. package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -1
  24. package/data-access-atlassian-product-fetch-oauth/index.d.ts +14 -2
  25. package/data-access-atlassian-product-fetch-oauth/index.es.js +10 -7
  26. package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +238 -9
  27. package/data-access-issue/atlassian-app-frontend.api.md +12 -5
  28. package/data-access-issue/index.d.ts +40 -17
  29. package/data-access-jql/index.d.ts +1 -1
  30. package/data-access-workspaces/index.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
  33. package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +25 -24
  34. package/ui-atlassian-product-fetch/index.d.ts +1 -1
  35. package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +340 -0
  36. package/ui-oauth-login/atlassian-app-frontend.api.md +29 -0
  37. package/ui-oauth-login/index.cjs.js +1 -1
  38. package/ui-oauth-login/index.d.ts +23 -0
  39. package/ui-oauth-login/index.es.js +7 -3
  40. package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +10 -5
  41. package/ui-page-loading-view/atlassian-app-frontend.api.md +2 -2
  42. package/ui-page-loading-view/index.d.ts +2 -2
  43. package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +106 -20
  44. package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +13 -5
  45. package/util-atlassian-product-fetch/index.d.ts +10 -5
  46. package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +695 -80
  47. package/util-jira-v3-api/atlassian-app-frontend.api.md +71 -24
  48. package/util-jira-v3-api/index.d.ts +46 -19
@@ -483,6 +483,84 @@
483
483
  ],
484
484
  "extendsTokenRanges": []
485
485
  },
486
+ {
487
+ "kind": "Interface",
488
+ "canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianProxyFetchRequest:interface",
489
+ "docComment": "",
490
+ "excerptTokens": [
491
+ {
492
+ "kind": "Content",
493
+ "text": "export interface AtlassianProxyFetchRequest "
494
+ }
495
+ ],
496
+ "fileUrlPath": "../../shared/util-atlassian-product-fetch/src/lib/atlassian-product-fetch-service.d.ts",
497
+ "releaseTag": "Public",
498
+ "name": "AtlassianProxyFetchRequest",
499
+ "preserveMemberOrder": false,
500
+ "members": [
501
+ {
502
+ "kind": "PropertySignature",
503
+ "canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianProxyFetchRequest#body:member",
504
+ "docComment": "",
505
+ "excerptTokens": [
506
+ {
507
+ "kind": "Content",
508
+ "text": "body?: "
509
+ },
510
+ {
511
+ "kind": "Reference",
512
+ "text": "Record",
513
+ "canonicalReference": "!Record:type"
514
+ },
515
+ {
516
+ "kind": "Content",
517
+ "text": "<string, any>"
518
+ },
519
+ {
520
+ "kind": "Content",
521
+ "text": ";"
522
+ }
523
+ ],
524
+ "isReadonly": false,
525
+ "isOptional": true,
526
+ "releaseTag": "Public",
527
+ "name": "body",
528
+ "propertyTypeTokenRange": {
529
+ "startIndex": 1,
530
+ "endIndex": 3
531
+ }
532
+ },
533
+ {
534
+ "kind": "PropertySignature",
535
+ "canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianProxyFetchRequest#request:member",
536
+ "docComment": "",
537
+ "excerptTokens": [
538
+ {
539
+ "kind": "Content",
540
+ "text": "request: "
541
+ },
542
+ {
543
+ "kind": "Reference",
544
+ "text": "FetchRequest",
545
+ "canonicalReference": "@valiantys/atlassian-app-frontend!FetchRequest:interface"
546
+ },
547
+ {
548
+ "kind": "Content",
549
+ "text": ";"
550
+ }
551
+ ],
552
+ "isReadonly": false,
553
+ "isOptional": false,
554
+ "releaseTag": "Public",
555
+ "name": "request",
556
+ "propertyTypeTokenRange": {
557
+ "startIndex": 1,
558
+ "endIndex": 2
559
+ }
560
+ }
561
+ ],
562
+ "extendsTokenRanges": []
563
+ },
486
564
  {
487
565
  "kind": "Function",
488
566
  "canonicalReference": "@valiantys/atlassian-app-frontend!bearerAuthFetch:function(1)",
@@ -769,11 +847,11 @@
769
847
  },
770
848
  {
771
849
  "kind": "Content",
772
- "text": ", statusCode?: "
850
+ "text": ", statusCode: "
773
851
  },
774
852
  {
775
853
  "kind": "Content",
776
- "text": "number | undefined"
854
+ "text": "number"
777
855
  },
778
856
  {
779
857
  "kind": "Content",
@@ -806,7 +884,7 @@
806
884
  "startIndex": 3,
807
885
  "endIndex": 4
808
886
  },
809
- "isOptional": true
887
+ "isOptional": false
810
888
  },
811
889
  {
812
890
  "parameterName": "message",
@@ -825,11 +903,11 @@
825
903
  "excerptTokens": [
826
904
  {
827
905
  "kind": "Content",
828
- "text": "readonly statusCode?: "
906
+ "text": "readonly statusCode: "
829
907
  },
830
908
  {
831
909
  "kind": "Content",
832
- "text": "number | undefined"
910
+ "text": "number"
833
911
  },
834
912
  {
835
913
  "kind": "Content",
@@ -837,7 +915,7 @@
837
915
  }
838
916
  ],
839
917
  "isReadonly": true,
840
- "isOptional": true,
918
+ "isOptional": false,
841
919
  "releaseTag": "Public",
842
920
  "name": "statusCode",
843
921
  "propertyTypeTokenRange": {
@@ -889,7 +967,7 @@
889
967
  },
890
968
  {
891
969
  "kind": "Content",
892
- "text": "{\n statusCode: number | undefined;\n statusText: string;\n }"
970
+ "text": "{\n statusCode: number;\n statusText: string;\n }"
893
971
  },
894
972
  {
895
973
  "kind": "Content",
@@ -1116,16 +1194,7 @@
1116
1194
  },
1117
1195
  {
1118
1196
  "kind": "Content",
1119
- "text": ", body?: "
1120
- },
1121
- {
1122
- "kind": "Reference",
1123
- "text": "Record",
1124
- "canonicalReference": "!Record:type"
1125
- },
1126
- {
1127
- "kind": "Content",
1128
- "text": "<string, any>) => "
1197
+ "text": ", body?: any) => "
1129
1198
  },
1130
1199
  {
1131
1200
  "kind": "Reference",
@@ -1146,7 +1215,7 @@
1146
1215
  "name": "FetchSignature",
1147
1216
  "typeTokenRange": {
1148
1217
  "startIndex": 1,
1149
- "endIndex": 8
1218
+ "endIndex": 6
1150
1219
  }
1151
1220
  },
1152
1221
  {
@@ -1213,6 +1282,15 @@
1213
1282
  "kind": "Content",
1214
1283
  "text": "'json' | 'text'"
1215
1284
  },
1285
+ {
1286
+ "kind": "Content",
1287
+ "text": ", includeCredentials?: "
1288
+ },
1289
+ {
1290
+ "kind": "Reference",
1291
+ "text": "RequestCredentials",
1292
+ "canonicalReference": "!RequestCredentials:type"
1293
+ },
1216
1294
  {
1217
1295
  "kind": "Content",
1218
1296
  "text": "): "
@@ -1233,8 +1311,8 @@
1233
1311
  ],
1234
1312
  "fileUrlPath": "../../../shared/util-fetch/src/lib/shared-util-fetch.d.ts",
1235
1313
  "returnTypeTokenRange": {
1236
- "startIndex": 15,
1237
- "endIndex": 17
1314
+ "startIndex": 17,
1315
+ "endIndex": 19
1238
1316
  },
1239
1317
  "releaseTag": "Public",
1240
1318
  "overloadIndex": 1,
@@ -1278,6 +1356,14 @@
1278
1356
  "endIndex": 14
1279
1357
  },
1280
1358
  "isOptional": true
1359
+ },
1360
+ {
1361
+ "parameterName": "includeCredentials",
1362
+ "parameterTypeTokenRange": {
1363
+ "startIndex": 15,
1364
+ "endIndex": 16
1365
+ },
1366
+ "isOptional": true
1281
1367
  }
1282
1368
  ],
1283
1369
  "typeParameters": [
@@ -26,6 +26,14 @@ export interface AtlassianProductFetchService<P extends Product> {
26
26
  route: (template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]) => FetchRoute;
27
27
  }
28
28
 
29
+ // @public (undocumented)
30
+ export interface AtlassianProxyFetchRequest {
31
+ // (undocumented)
32
+ body?: Record<string, any>;
33
+ // (undocumented)
34
+ request: FetchRequest;
35
+ }
36
+
29
37
  // @public (undocumented)
30
38
  export function bearerAuthFetch<T>(authToken: string, url: string, method: FetchMethod, body?: Record<string, unknown>, responseType?: 'json' | 'text', headers?: Record<string, string>): Promise<T>;
31
39
 
@@ -34,14 +42,14 @@ export function bearerAuthFetchRaw(authToken: string, url: string, init: Request
34
42
 
35
43
  // @public (undocumented)
36
44
  export class FetchError extends Error {
37
- constructor(statusText: string, statusCode?: number | undefined, message?: string);
45
+ constructor(statusText: string, statusCode: number, message?: string);
38
46
  // (undocumented)
39
- readonly statusCode?: number | undefined;
47
+ readonly statusCode: number;
40
48
  // (undocumented)
41
49
  readonly statusText: string;
42
50
  // (undocumented)
43
51
  toJSON(): {
44
- statusCode: number | undefined;
52
+ statusCode: number;
45
53
  statusText: string;
46
54
  };
47
55
  }
@@ -67,10 +75,10 @@ export type FetchRoute = {
67
75
  };
68
76
 
69
77
  // @public (undocumented)
70
- export type FetchSignature = <T>(request: FetchRequest, body?: Record<string, any>) => Promise<T>;
78
+ export type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
71
79
 
72
80
  // @public (undocumented)
73
- export function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text'): Promise<T>;
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>;
74
82
 
75
83
  // @public (undocumented)
76
84
  export interface PagedResponseValues<T> {
@@ -12,16 +12,21 @@ export declare interface AtlassianProductFetchService<P extends Product> {
12
12
  fullUrl: (path: string) => string;
13
13
  }
14
14
 
15
+ export declare interface AtlassianProxyFetchRequest {
16
+ request: FetchRequest;
17
+ body?: Record<string, any>;
18
+ }
19
+
15
20
  export declare function bearerAuthFetch<T>(authToken: string, url: string, method: FetchMethod, body?: Record<string, unknown>, responseType?: 'json' | 'text', headers?: Record<string, string>): Promise<T>;
16
21
 
17
22
  export declare function bearerAuthFetchRaw(authToken: string, url: string, init: RequestInit): Promise<Response>;
18
23
 
19
24
  export declare class FetchError extends Error {
20
25
  readonly statusText: string;
21
- readonly statusCode?: number | undefined;
22
- constructor(statusText: string, statusCode?: number | undefined, message?: string);
26
+ readonly statusCode: number;
27
+ constructor(statusText: string, statusCode: number, message?: string);
23
28
  toJSON(): {
24
- statusCode: number | undefined;
29
+ statusCode: number;
25
30
  statusText: string;
26
31
  };
27
32
  }
@@ -39,9 +44,9 @@ export declare type FetchRoute = {
39
44
  readonly value: string;
40
45
  };
41
46
 
42
- 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>;
43
48
 
44
- export declare function jsonFetch<T, U = Record<string, unknown>>(url: string, method: FetchMethod, headers?: Record<string, string>, body?: U, responseType?: 'json' | 'text'): Promise<T>;
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>;
45
50
 
46
51
  export declare interface PagedResponseValues<T> {
47
52
  startAt: number;