@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.
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.cjs.js +1 -1
- package/atlassian/jira/shared/data-access-issue/src/lib/jira-issue-service/index.es.js +36 -22
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.cjs.js +1 -1
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch/index.es.js +74 -28
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.cjs.js +1 -1
- package/atlassian/shared/data-access-atlassian-product-fetch-oauth/src/lib/route/index.es.js +28 -17
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.cjs.js +1 -1
- package/atlassian/shared/frontend-feature-atlassian-app/src/lib/standalone/atlassian-app-standalone/index.es.js +93 -84
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.cjs.js +1 -1
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/feature-oauth/index.es.js +58 -66
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.cjs.js +1 -0
- package/atlassian/shared/frontend-feature-oauth-login/src/lib/oauth-routes/index.es.js +51 -0
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.cjs.js +1 -1
- package/atlassian/shared/frontend-ui-page-loading-view/src/lib/page-loading-view/index.es.js +1 -1
- package/atlassian-app/index.d.ts +1 -0
- package/atlassian-app-standalone/atlassian-app-frontend-atlassian-app-standalone.api.json +29 -2
- package/atlassian-app-standalone/atlassian-app-frontend.api.md +3 -1
- package/atlassian-app-standalone/index.d.ts +3 -1
- package/atlassian-app-test/index.d.ts +1 -1
- package/data-access-assets/index.d.ts +1 -1
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend-data-access-atlassian-product-fetch-oauth.api.json +354 -2
- package/data-access-atlassian-product-fetch-oauth/atlassian-app-frontend.api.md +20 -1
- package/data-access-atlassian-product-fetch-oauth/index.cjs.js +1 -1
- package/data-access-atlassian-product-fetch-oauth/index.d.ts +14 -2
- package/data-access-atlassian-product-fetch-oauth/index.es.js +10 -7
- package/data-access-issue/atlassian-app-frontend-data-access-issue.api.json +238 -9
- package/data-access-issue/atlassian-app-frontend.api.md +12 -5
- package/data-access-issue/index.d.ts +40 -17
- package/data-access-jql/index.d.ts +1 -1
- package/data-access-workspaces/index.d.ts +1 -1
- package/package.json +1 -1
- package/shared/util-fetch/src/lib/shared-util-fetch/index.cjs.js +2 -2
- package/shared/util-fetch/src/lib/shared-util-fetch/index.es.js +25 -24
- package/ui-atlassian-product-fetch/index.d.ts +1 -1
- package/ui-oauth-login/atlassian-app-frontend-ui-oauth-login.api.json +340 -0
- package/ui-oauth-login/atlassian-app-frontend.api.md +29 -0
- package/ui-oauth-login/index.cjs.js +1 -1
- package/ui-oauth-login/index.d.ts +23 -0
- package/ui-oauth-login/index.es.js +7 -3
- package/ui-page-loading-view/atlassian-app-frontend-ui-page-loading-view.api.json +10 -5
- package/ui-page-loading-view/atlassian-app-frontend.api.md +2 -2
- package/ui-page-loading-view/index.d.ts +2 -2
- package/util-atlassian-product-fetch/atlassian-app-frontend-util-atlassian-product-fetch.api.json +106 -20
- package/util-atlassian-product-fetch/atlassian-app-frontend.api.md +13 -5
- package/util-atlassian-product-fetch/index.d.ts +10 -5
- package/util-jira-v3-api/atlassian-app-frontend-util-jira-v3-api.api.json +695 -80
- package/util-jira-v3-api/atlassian-app-frontend.api.md +71 -24
- package/util-jira-v3-api/index.d.ts +46 -19
|
@@ -354,6 +354,56 @@
|
|
|
354
354
|
],
|
|
355
355
|
"name": "atlassianOAuthJiraFetch"
|
|
356
356
|
},
|
|
357
|
+
{
|
|
358
|
+
"kind": "Function",
|
|
359
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!atlassianOAuthJiraFetchViaProxy:function(1)",
|
|
360
|
+
"docComment": "",
|
|
361
|
+
"excerptTokens": [
|
|
362
|
+
{
|
|
363
|
+
"kind": "Content",
|
|
364
|
+
"text": "export declare function atlassianOAuthJiraFetchViaProxy(proxyUrl: "
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"kind": "Content",
|
|
368
|
+
"text": "string"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"kind": "Content",
|
|
372
|
+
"text": "): "
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"kind": "Reference",
|
|
376
|
+
"text": "AtlassianProductFetchService",
|
|
377
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~AtlassianProductFetchService:interface"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"kind": "Content",
|
|
381
|
+
"text": "<'jira'>"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"kind": "Content",
|
|
385
|
+
"text": ";"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"fileUrlPath": "../../shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch.d.ts",
|
|
389
|
+
"returnTypeTokenRange": {
|
|
390
|
+
"startIndex": 3,
|
|
391
|
+
"endIndex": 5
|
|
392
|
+
},
|
|
393
|
+
"releaseTag": "Public",
|
|
394
|
+
"overloadIndex": 1,
|
|
395
|
+
"parameters": [
|
|
396
|
+
{
|
|
397
|
+
"parameterName": "proxyUrl",
|
|
398
|
+
"parameterTypeTokenRange": {
|
|
399
|
+
"startIndex": 1,
|
|
400
|
+
"endIndex": 2
|
|
401
|
+
},
|
|
402
|
+
"isOptional": false
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"name": "atlassianOAuthJiraFetchViaProxy"
|
|
406
|
+
},
|
|
357
407
|
{
|
|
358
408
|
"kind": "Function",
|
|
359
409
|
"canonicalReference": "@valiantys/atlassian-app-frontend!atlassianOAuthRawFetch:function(1)",
|
|
@@ -458,6 +508,105 @@
|
|
|
458
508
|
],
|
|
459
509
|
"name": "atlassianOAuthRawFetch"
|
|
460
510
|
},
|
|
511
|
+
{
|
|
512
|
+
"kind": "Interface",
|
|
513
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianOauthTokenResponse:interface",
|
|
514
|
+
"docComment": "",
|
|
515
|
+
"excerptTokens": [
|
|
516
|
+
{
|
|
517
|
+
"kind": "Content",
|
|
518
|
+
"text": "export interface AtlassianOauthTokenResponse "
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
"fileUrlPath": "../../shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-token-response.d.ts",
|
|
522
|
+
"releaseTag": "Public",
|
|
523
|
+
"name": "AtlassianOauthTokenResponse",
|
|
524
|
+
"preserveMemberOrder": false,
|
|
525
|
+
"members": [
|
|
526
|
+
{
|
|
527
|
+
"kind": "PropertySignature",
|
|
528
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianOauthTokenResponse#access_token:member",
|
|
529
|
+
"docComment": "",
|
|
530
|
+
"excerptTokens": [
|
|
531
|
+
{
|
|
532
|
+
"kind": "Content",
|
|
533
|
+
"text": "access_token: "
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"kind": "Content",
|
|
537
|
+
"text": "string"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"kind": "Content",
|
|
541
|
+
"text": ";"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"isReadonly": false,
|
|
545
|
+
"isOptional": false,
|
|
546
|
+
"releaseTag": "Public",
|
|
547
|
+
"name": "access_token",
|
|
548
|
+
"propertyTypeTokenRange": {
|
|
549
|
+
"startIndex": 1,
|
|
550
|
+
"endIndex": 2
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"kind": "PropertySignature",
|
|
555
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianOauthTokenResponse#expires_in:member",
|
|
556
|
+
"docComment": "",
|
|
557
|
+
"excerptTokens": [
|
|
558
|
+
{
|
|
559
|
+
"kind": "Content",
|
|
560
|
+
"text": "expires_in: "
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"kind": "Content",
|
|
564
|
+
"text": "number"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"kind": "Content",
|
|
568
|
+
"text": ";"
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"isReadonly": false,
|
|
572
|
+
"isOptional": false,
|
|
573
|
+
"releaseTag": "Public",
|
|
574
|
+
"name": "expires_in",
|
|
575
|
+
"propertyTypeTokenRange": {
|
|
576
|
+
"startIndex": 1,
|
|
577
|
+
"endIndex": 2
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"kind": "PropertySignature",
|
|
582
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianOauthTokenResponse#scope:member",
|
|
583
|
+
"docComment": "",
|
|
584
|
+
"excerptTokens": [
|
|
585
|
+
{
|
|
586
|
+
"kind": "Content",
|
|
587
|
+
"text": "scope: "
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"kind": "Content",
|
|
591
|
+
"text": "string"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"kind": "Content",
|
|
595
|
+
"text": ";"
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
"isReadonly": false,
|
|
599
|
+
"isOptional": false,
|
|
600
|
+
"releaseTag": "Public",
|
|
601
|
+
"name": "scope",
|
|
602
|
+
"propertyTypeTokenRange": {
|
|
603
|
+
"startIndex": 1,
|
|
604
|
+
"endIndex": 2
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
],
|
|
608
|
+
"extendsTokenRanges": []
|
|
609
|
+
},
|
|
461
610
|
{
|
|
462
611
|
"kind": "Function",
|
|
463
612
|
"canonicalReference": "@valiantys/atlassian-app-frontend!getAtlassianOAuthToken:function(1)",
|
|
@@ -514,7 +663,16 @@
|
|
|
514
663
|
},
|
|
515
664
|
{
|
|
516
665
|
"kind": "Content",
|
|
517
|
-
"text": "<
|
|
666
|
+
"text": "<"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"kind": "Reference",
|
|
670
|
+
"text": "AtlassianOauthTokenResponse",
|
|
671
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!AtlassianOauthTokenResponse:interface"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"kind": "Content",
|
|
675
|
+
"text": ">"
|
|
518
676
|
},
|
|
519
677
|
{
|
|
520
678
|
"kind": "Content",
|
|
@@ -524,7 +682,7 @@
|
|
|
524
682
|
"fileUrlPath": "../../shared/data-access-atlassian-product-fetch-oauth/src/lib/atlassian-oauth-fetch.d.ts",
|
|
525
683
|
"returnTypeTokenRange": {
|
|
526
684
|
"startIndex": 11,
|
|
527
|
-
"endIndex":
|
|
685
|
+
"endIndex": 15
|
|
528
686
|
},
|
|
529
687
|
"releaseTag": "Public",
|
|
530
688
|
"overloadIndex": 1,
|
|
@@ -631,6 +789,119 @@
|
|
|
631
789
|
],
|
|
632
790
|
"name": "getAtlassianUserDetails"
|
|
633
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
|
+
},
|
|
634
905
|
{
|
|
635
906
|
"kind": "Interface",
|
|
636
907
|
"canonicalReference": "@valiantys/atlassian-app-frontend!OAuthUser:interface",
|
|
@@ -1080,6 +1351,87 @@
|
|
|
1080
1351
|
}
|
|
1081
1352
|
],
|
|
1082
1353
|
"name": "route"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "Function",
|
|
1357
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!routeNoEscaping:function(1)",
|
|
1358
|
+
"docComment": "",
|
|
1359
|
+
"excerptTokens": [
|
|
1360
|
+
{
|
|
1361
|
+
"kind": "Content",
|
|
1362
|
+
"text": "export declare function routeNoEscaping(template: "
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
"kind": "Reference",
|
|
1366
|
+
"text": "TemplateStringsArray",
|
|
1367
|
+
"canonicalReference": "!TemplateStringsArray:interface"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"kind": "Content",
|
|
1371
|
+
"text": ", ...parameters: "
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"kind": "Content",
|
|
1375
|
+
"text": "(string | number | "
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"kind": "Reference",
|
|
1379
|
+
"text": "URLSearchParams",
|
|
1380
|
+
"canonicalReference": "!URLSearchParams:interface"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"kind": "Content",
|
|
1384
|
+
"text": " | "
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"kind": "Reference",
|
|
1388
|
+
"text": "FetchRoute",
|
|
1389
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~FetchRoute:type"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"kind": "Content",
|
|
1393
|
+
"text": ")[]"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"kind": "Content",
|
|
1397
|
+
"text": "): "
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"kind": "Reference",
|
|
1401
|
+
"text": "FetchRoute",
|
|
1402
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~FetchRoute:type"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"kind": "Content",
|
|
1406
|
+
"text": ";"
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
"fileUrlPath": "../../shared/data-access-atlassian-product-fetch-oauth/src/lib/route.d.ts",
|
|
1410
|
+
"returnTypeTokenRange": {
|
|
1411
|
+
"startIndex": 9,
|
|
1412
|
+
"endIndex": 10
|
|
1413
|
+
},
|
|
1414
|
+
"releaseTag": "Public",
|
|
1415
|
+
"overloadIndex": 1,
|
|
1416
|
+
"parameters": [
|
|
1417
|
+
{
|
|
1418
|
+
"parameterName": "template",
|
|
1419
|
+
"parameterTypeTokenRange": {
|
|
1420
|
+
"startIndex": 1,
|
|
1421
|
+
"endIndex": 2
|
|
1422
|
+
},
|
|
1423
|
+
"isOptional": false
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"parameterName": "parameters",
|
|
1427
|
+
"parameterTypeTokenRange": {
|
|
1428
|
+
"startIndex": 3,
|
|
1429
|
+
"endIndex": 8
|
|
1430
|
+
},
|
|
1431
|
+
"isOptional": false
|
|
1432
|
+
}
|
|
1433
|
+
],
|
|
1434
|
+
"name": "routeNoEscaping"
|
|
1083
1435
|
}
|
|
1084
1436
|
]
|
|
1085
1437
|
}
|
|
@@ -15,17 +15,33 @@ export function atlassianOAuthConfluenceFetch(authToken: string, cloudId: string
|
|
|
15
15
|
// @public (undocumented)
|
|
16
16
|
export function atlassianOAuthJiraFetch(authToken: string, cloudId: string): AtlassianProductFetchService<'jira'>;
|
|
17
17
|
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
export function atlassianOAuthJiraFetchViaProxy(proxyUrl: string): AtlassianProductFetchService<'jira'>;
|
|
20
|
+
|
|
18
21
|
// Warning: (ae-forgotten-export) The symbol "Product" needs to be exported by the entry point data-access-atlassian-product-fetch-oauth.d.ts
|
|
19
22
|
//
|
|
20
23
|
// @public (undocumented)
|
|
21
24
|
export function atlassianOAuthRawFetch<P extends Product>(authToken: string, domain: string, productType: P): AtlassianProductFetchService<P>;
|
|
22
25
|
|
|
23
26
|
// @public (undocumented)
|
|
24
|
-
export
|
|
27
|
+
export interface AtlassianOauthTokenResponse {
|
|
28
|
+
// (undocumented)
|
|
29
|
+
access_token: string;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
expires_in: number;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
scope: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @public (undocumented)
|
|
37
|
+
export function getAtlassianOAuthToken(grant_type: string, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<AtlassianOauthTokenResponse>;
|
|
25
38
|
|
|
26
39
|
// @public (undocumented)
|
|
27
40
|
export function getAtlassianUserDetails(authToken: string): Promise<OAuthUser>;
|
|
28
41
|
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
export function getFetch<P extends Product>(product: P, authToken: string, resourceId?: string): Promise<AtlassianProductFetchService<P>>;
|
|
44
|
+
|
|
29
45
|
// @public (undocumented)
|
|
30
46
|
export interface OAuthUser {
|
|
31
47
|
// (undocumented)
|
|
@@ -68,6 +84,9 @@ export interface OAuthUser {
|
|
|
68
84
|
// @public (undocumented)
|
|
69
85
|
export function route(template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]): FetchRoute;
|
|
70
86
|
|
|
87
|
+
// @public (undocumented)
|
|
88
|
+
export function routeNoEscaping(template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]): FetchRoute;
|
|
89
|
+
|
|
71
90
|
// (No @packageDocumentation comment for this package)
|
|
72
91
|
|
|
73
92
|
```
|
|
@@ -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.atlassianOAuthRawFetch=t.atlassianOAuthRawFetch;exports.getAtlassianOAuthToken=t.getAtlassianOAuthToken;exports.getAtlassianUserDetails=t.getAtlassianUserDetails;exports.route=a.route;
|
|
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;
|
|
@@ -6,8 +6,16 @@ export declare function atlassianOAuthConfluenceFetch(authToken: string, cloudId
|
|
|
6
6
|
|
|
7
7
|
export declare function atlassianOAuthJiraFetch(authToken: string, cloudId: string): AtlassianProductFetchService<'jira'>;
|
|
8
8
|
|
|
9
|
+
export declare function atlassianOAuthJiraFetchViaProxy(proxyUrl: string): AtlassianProductFetchService<'jira'>;
|
|
10
|
+
|
|
9
11
|
export declare function atlassianOAuthRawFetch<P extends Product>(authToken: string, domain: string, productType: P): AtlassianProductFetchService<P>;
|
|
10
12
|
|
|
13
|
+
export declare interface AtlassianOauthTokenResponse {
|
|
14
|
+
access_token: string;
|
|
15
|
+
expires_in: number;
|
|
16
|
+
scope: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
11
19
|
declare interface AtlassianProductFetchService<P extends Product> {
|
|
12
20
|
productType: P;
|
|
13
21
|
fetch: FetchSignature;
|
|
@@ -29,12 +37,14 @@ declare type FetchRoute = {
|
|
|
29
37
|
readonly value: string;
|
|
30
38
|
};
|
|
31
39
|
|
|
32
|
-
declare type FetchSignature = <T>(request: FetchRequest, body?:
|
|
40
|
+
declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
|
|
33
41
|
|
|
34
|
-
export declare function getAtlassianOAuthToken(grant_type: string, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<
|
|
42
|
+
export declare function getAtlassianOAuthToken(grant_type: string, client_id: string, client_secret: string, code: string, redirect_uri: string): Promise<AtlassianOauthTokenResponse>;
|
|
35
43
|
|
|
36
44
|
export declare function getAtlassianUserDetails(authToken: string): Promise<OAuthUser>;
|
|
37
45
|
|
|
46
|
+
export declare function getFetch<P extends Product>(product: P, authToken: string, resourceId?: string): Promise<AtlassianProductFetchService<P>>;
|
|
47
|
+
|
|
38
48
|
export declare interface OAuthUser {
|
|
39
49
|
account_id: string;
|
|
40
50
|
account_status: string;
|
|
@@ -64,4 +74,6 @@ declare type RequestProductMethod = (url: FetchRoute, init: RequestInit) => Prom
|
|
|
64
74
|
|
|
65
75
|
export declare function route(template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]): FetchRoute;
|
|
66
76
|
|
|
77
|
+
export declare function routeNoEscaping(template: TemplateStringsArray, ...parameters: (string | number | URLSearchParams | FetchRoute)[]): FetchRoute;
|
|
78
|
+
|
|
67
79
|
export { }
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { atlassianOAuthBitbucketFetch as e, atlassianOAuthConfluenceFetch as s, atlassianOAuthJiraFetch as h, atlassianOAuthRawFetch as
|
|
2
|
-
import { route as
|
|
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,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
n as
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
i as atlassianOAuthJiraFetch,
|
|
7
|
+
h as atlassianOAuthJiraFetchViaProxy,
|
|
8
|
+
n as atlassianOAuthRawFetch,
|
|
9
|
+
o as getAtlassianOAuthToken,
|
|
10
|
+
r as getAtlassianUserDetails,
|
|
11
|
+
u as getFetch,
|
|
12
|
+
l as route,
|
|
13
|
+
A as routeNoEscaping
|
|
11
14
|
};
|