@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
|
@@ -521,6 +521,14 @@
|
|
|
521
521
|
"kind": "Content",
|
|
522
522
|
"text": "string[]"
|
|
523
523
|
},
|
|
524
|
+
{
|
|
525
|
+
"kind": "Content",
|
|
526
|
+
"text": ", rendered?: "
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"kind": "Content",
|
|
530
|
+
"text": "boolean"
|
|
531
|
+
},
|
|
524
532
|
{
|
|
525
533
|
"kind": "Content",
|
|
526
534
|
"text": "): "
|
|
@@ -550,8 +558,8 @@
|
|
|
550
558
|
],
|
|
551
559
|
"isStatic": false,
|
|
552
560
|
"returnTypeTokenRange": {
|
|
553
|
-
"startIndex":
|
|
554
|
-
"endIndex":
|
|
561
|
+
"startIndex": 7,
|
|
562
|
+
"endIndex": 11
|
|
555
563
|
},
|
|
556
564
|
"releaseTag": "Public",
|
|
557
565
|
"isProtected": false,
|
|
@@ -572,6 +580,14 @@
|
|
|
572
580
|
"endIndex": 4
|
|
573
581
|
},
|
|
574
582
|
"isOptional": true
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"parameterName": "rendered",
|
|
586
|
+
"parameterTypeTokenRange": {
|
|
587
|
+
"startIndex": 5,
|
|
588
|
+
"endIndex": 6
|
|
589
|
+
},
|
|
590
|
+
"isOptional": true
|
|
575
591
|
}
|
|
576
592
|
],
|
|
577
593
|
"isOptional": false,
|
|
@@ -943,7 +959,16 @@
|
|
|
943
959
|
},
|
|
944
960
|
{
|
|
945
961
|
"kind": "Content",
|
|
946
|
-
"text": "
|
|
962
|
+
"text": "<"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"kind": "Reference",
|
|
966
|
+
"text": "AtlassianDocumentFormat",
|
|
967
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~AtlassianDocumentFormat:interface"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"kind": "Content",
|
|
971
|
+
"text": ">[]>"
|
|
947
972
|
},
|
|
948
973
|
{
|
|
949
974
|
"kind": "Content",
|
|
@@ -953,7 +978,7 @@
|
|
|
953
978
|
"isStatic": false,
|
|
954
979
|
"returnTypeTokenRange": {
|
|
955
980
|
"startIndex": 7,
|
|
956
|
-
"endIndex":
|
|
981
|
+
"endIndex": 13
|
|
957
982
|
},
|
|
958
983
|
"releaseTag": "Public",
|
|
959
984
|
"isProtected": false,
|
|
@@ -988,6 +1013,116 @@
|
|
|
988
1013
|
"isAbstract": false,
|
|
989
1014
|
"name": "issueSearch"
|
|
990
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
|
+
},
|
|
991
1126
|
{
|
|
992
1127
|
"kind": "Property",
|
|
993
1128
|
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService.issueUrl:member",
|
|
@@ -1029,11 +1164,11 @@
|
|
|
1029
1164
|
"excerptTokens": [
|
|
1030
1165
|
{
|
|
1031
1166
|
"kind": "Content",
|
|
1032
|
-
"text": "queryForIssuesInProjects(
|
|
1167
|
+
"text": "queryForIssuesInProjects(projectIdsOrKeys: "
|
|
1033
1168
|
},
|
|
1034
1169
|
{
|
|
1035
1170
|
"kind": "Content",
|
|
1036
|
-
"text": "
|
|
1171
|
+
"text": "string[]"
|
|
1037
1172
|
},
|
|
1038
1173
|
{
|
|
1039
1174
|
"kind": "Content",
|
|
@@ -1055,7 +1190,16 @@
|
|
|
1055
1190
|
},
|
|
1056
1191
|
{
|
|
1057
1192
|
"kind": "Content",
|
|
1058
|
-
"text": "
|
|
1193
|
+
"text": "<"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"kind": "Reference",
|
|
1197
|
+
"text": "AtlassianDocumentFormat",
|
|
1198
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!~AtlassianDocumentFormat:interface"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"kind": "Content",
|
|
1202
|
+
"text": ">[]>"
|
|
1059
1203
|
},
|
|
1060
1204
|
{
|
|
1061
1205
|
"kind": "Content",
|
|
@@ -1065,14 +1209,14 @@
|
|
|
1065
1209
|
"isStatic": false,
|
|
1066
1210
|
"returnTypeTokenRange": {
|
|
1067
1211
|
"startIndex": 3,
|
|
1068
|
-
"endIndex":
|
|
1212
|
+
"endIndex": 9
|
|
1069
1213
|
},
|
|
1070
1214
|
"releaseTag": "Public",
|
|
1071
1215
|
"isProtected": false,
|
|
1072
1216
|
"overloadIndex": 1,
|
|
1073
1217
|
"parameters": [
|
|
1074
1218
|
{
|
|
1075
|
-
"parameterName": "
|
|
1219
|
+
"parameterName": "projectIdsOrKeys",
|
|
1076
1220
|
"parameterTypeTokenRange": {
|
|
1077
1221
|
"startIndex": 1,
|
|
1078
1222
|
"endIndex": 2
|
|
@@ -1382,6 +1526,91 @@
|
|
|
1382
1526
|
"isOptional": false,
|
|
1383
1527
|
"isAbstract": false,
|
|
1384
1528
|
"name": "updateIssue"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"kind": "Method",
|
|
1532
|
+
"canonicalReference": "@valiantys/atlassian-app-frontend!JiraIssueService#updateProperty:member(1)",
|
|
1533
|
+
"docComment": "",
|
|
1534
|
+
"excerptTokens": [
|
|
1535
|
+
{
|
|
1536
|
+
"kind": "Content",
|
|
1537
|
+
"text": "updateProperty(issueIdOrKey: "
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"kind": "Content",
|
|
1541
|
+
"text": "string"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"kind": "Content",
|
|
1545
|
+
"text": ", propertyName: "
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"kind": "Content",
|
|
1549
|
+
"text": "string"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"kind": "Content",
|
|
1553
|
+
"text": ", value: "
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"kind": "Content",
|
|
1557
|
+
"text": "any"
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "Content",
|
|
1561
|
+
"text": "): "
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"kind": "Reference",
|
|
1565
|
+
"text": "Promise",
|
|
1566
|
+
"canonicalReference": "!Promise:interface"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"kind": "Content",
|
|
1570
|
+
"text": "<void>"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"kind": "Content",
|
|
1574
|
+
"text": ";"
|
|
1575
|
+
}
|
|
1576
|
+
],
|
|
1577
|
+
"isStatic": false,
|
|
1578
|
+
"returnTypeTokenRange": {
|
|
1579
|
+
"startIndex": 7,
|
|
1580
|
+
"endIndex": 9
|
|
1581
|
+
},
|
|
1582
|
+
"releaseTag": "Public",
|
|
1583
|
+
"isProtected": false,
|
|
1584
|
+
"overloadIndex": 1,
|
|
1585
|
+
"parameters": [
|
|
1586
|
+
{
|
|
1587
|
+
"parameterName": "issueIdOrKey",
|
|
1588
|
+
"parameterTypeTokenRange": {
|
|
1589
|
+
"startIndex": 1,
|
|
1590
|
+
"endIndex": 2
|
|
1591
|
+
},
|
|
1592
|
+
"isOptional": false
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"parameterName": "propertyName",
|
|
1596
|
+
"parameterTypeTokenRange": {
|
|
1597
|
+
"startIndex": 3,
|
|
1598
|
+
"endIndex": 4
|
|
1599
|
+
},
|
|
1600
|
+
"isOptional": false
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"parameterName": "value",
|
|
1604
|
+
"parameterTypeTokenRange": {
|
|
1605
|
+
"startIndex": 5,
|
|
1606
|
+
"endIndex": 6
|
|
1607
|
+
},
|
|
1608
|
+
"isOptional": false
|
|
1609
|
+
}
|
|
1610
|
+
],
|
|
1611
|
+
"isOptional": false,
|
|
1612
|
+
"isAbstract": false,
|
|
1613
|
+
"name": "updateProperty"
|
|
1385
1614
|
}
|
|
1386
1615
|
],
|
|
1387
1616
|
"implementsTokenRanges": []
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
export class JiraIssueService {
|
|
9
9
|
// Warning: (ae-forgotten-export) The symbol "AtlassianProductFetchService" needs to be exported by the entry point data-access-issue.d.ts
|
|
10
10
|
constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
|
|
11
|
-
// Warning: (ae-forgotten-export) The symbol "AtlassianDocumentFormat" needs to be exported by the entry point data-access-issue.d.ts
|
|
12
|
-
//
|
|
13
11
|
// (undocumented)
|
|
14
12
|
addIssueComment(issueIdOrKey: string, body: AtlassianDocumentFormat): Promise<IssueComment>;
|
|
15
13
|
// Warning: (ae-forgotten-export) The symbol "WorklogCreateRequest" needs to be exported by the entry point data-access-issue.d.ts
|
|
@@ -29,7 +27,7 @@ export class JiraIssueService {
|
|
|
29
27
|
// Warning: (ae-forgotten-export) The symbol "Issue" needs to be exported by the entry point data-access-issue.d.ts
|
|
30
28
|
//
|
|
31
29
|
// (undocumented)
|
|
32
|
-
getIssue(issueIdOrKey: string, fields?: string[]): Promise<Issue | undefined>;
|
|
30
|
+
getIssue(issueIdOrKey: string, fields?: string[], rendered?: boolean): Promise<Issue | undefined>;
|
|
33
31
|
// Warning: (ae-forgotten-export) The symbol "IssueComment" needs to be exported by the entry point data-access-issue.d.ts
|
|
34
32
|
//
|
|
35
33
|
// (undocumented)
|
|
@@ -44,12 +42,19 @@ export class JiraIssueService {
|
|
|
44
42
|
//
|
|
45
43
|
// (undocumented)
|
|
46
44
|
getIssueFields(issueIdOrKey: string, fields: string[]): Promise<IssueFields | undefined>;
|
|
45
|
+
// Warning: (ae-forgotten-export) The symbol "AtlassianDocumentFormat" needs to be exported by the entry point data-access-issue.d.ts
|
|
46
|
+
//
|
|
47
|
+
// (undocumented)
|
|
48
|
+
issueSearch(jql: string, fields: string[], maxResults?: number): Promise<Issue<AtlassianDocumentFormat>[]>;
|
|
47
49
|
// (undocumented)
|
|
48
|
-
|
|
50
|
+
issueSearchByPage(jql: string, fields: string[], nextPageToken?: string, maxResults?: number): Promise<{
|
|
51
|
+
issues: Issue[];
|
|
52
|
+
nextPageToken?: string;
|
|
53
|
+
}>;
|
|
49
54
|
// (undocumented)
|
|
50
55
|
static readonly issueUrl = "/rest/api/3/issue";
|
|
51
56
|
// (undocumented)
|
|
52
|
-
queryForIssuesInProjects(
|
|
57
|
+
queryForIssuesInProjects(projectIdsOrKeys: string[]): Promise<Issue<AtlassianDocumentFormat>[]>;
|
|
53
58
|
// Warning: (ae-forgotten-export) The symbol "TransitionIssueRequest" needs to be exported by the entry point data-access-issue.d.ts
|
|
54
59
|
//
|
|
55
60
|
// (undocumented)
|
|
@@ -62,6 +67,8 @@ export class JiraIssueService {
|
|
|
62
67
|
//
|
|
63
68
|
// (undocumented)
|
|
64
69
|
updateIssue(issueIdOrKey: string, body: UpdateIssue): Promise<void>;
|
|
70
|
+
// (undocumented)
|
|
71
|
+
updateProperty(issueIdOrKey: string, propertyName: string, value: any): Promise<void>;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
// (No @packageDocumentation comment for this package)
|
|
@@ -49,7 +49,7 @@ declare interface CreatedIssue {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
declare interface CreateIssue {
|
|
52
|
-
fields: IssueFields<string>;
|
|
52
|
+
fields: IssueFields<AtlassianDocumentFormat | string>;
|
|
53
53
|
properties?: {
|
|
54
54
|
key: string;
|
|
55
55
|
value: unknown;
|
|
@@ -79,16 +79,18 @@ declare type FetchRoute = {
|
|
|
79
79
|
readonly value: string;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
declare type FetchSignature = <T>(request: FetchRequest, body?:
|
|
82
|
+
declare type FetchSignature = <T>(request: FetchRequest, body?: any) => Promise<T>;
|
|
83
83
|
|
|
84
|
-
declare
|
|
85
|
-
description
|
|
84
|
+
declare interface FixVersion {
|
|
85
|
+
description?: string;
|
|
86
86
|
id: string;
|
|
87
87
|
name: string;
|
|
88
88
|
releaseDate?: string;
|
|
89
|
-
released
|
|
90
|
-
self
|
|
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;
|
|
@@ -113,12 +115,13 @@ declare interface HistoryMetadataParticipant {
|
|
|
113
115
|
url: string;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
declare interface Issue {
|
|
118
|
+
declare interface Issue<T = AtlassianDocumentFormat> {
|
|
117
119
|
id: string;
|
|
118
120
|
expand?: string;
|
|
119
121
|
key: string;
|
|
120
122
|
self?: string;
|
|
121
|
-
fields: IssueFields
|
|
123
|
+
fields: IssueFields<T>;
|
|
124
|
+
renderedFields?: IssueFields<string>;
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
declare type IssueComment = {
|
|
@@ -186,17 +189,22 @@ declare type JiraCommentResponse = {
|
|
|
186
189
|
};
|
|
187
190
|
|
|
188
191
|
export declare class JiraIssueService {
|
|
189
|
-
private fetchSvc;
|
|
192
|
+
private readonly fetchSvc;
|
|
190
193
|
static readonly issueUrl = "/rest/api/3/issue";
|
|
191
194
|
constructor(fetchSvc: AtlassianProductFetchService<'jira'>);
|
|
195
|
+
updateProperty(issueIdOrKey: string, propertyName: string, value: any): Promise<void>;
|
|
192
196
|
updateField(issueIdOrKey: string, fieldName: string, value: unknown): Promise<void>;
|
|
193
197
|
updateFields(issueIdOrKey: string, fields: Record<string, unknown>): Promise<void>;
|
|
194
198
|
getIssueField<T>(issueIdOrKey: string, field: string): Promise<T | undefined>;
|
|
195
199
|
getIssueFields(issueIdOrKey: string, fields: string[]): Promise<IssueFields | undefined>;
|
|
196
|
-
getIssue(issueIdOrKey: string, fields?: string[]): Promise<Issue | undefined>;
|
|
197
|
-
issueSearch(jql: string, fields: string[], maxResults?: number): Promise<Issue[]>;
|
|
200
|
+
getIssue(issueIdOrKey: string, fields?: string[], rendered?: boolean): Promise<Issue | undefined>;
|
|
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
|
+
}>;
|
|
198
206
|
addWorklog(issueIdOrKey: string, worklog: WorklogCreateRequest): Promise<Worklog>;
|
|
199
|
-
queryForIssuesInProjects(
|
|
207
|
+
queryForIssuesInProjects(projectIdsOrKeys: string[]): Promise<Issue<AtlassianDocumentFormat>[]>;
|
|
200
208
|
createIssue(body: CreateIssue): Promise<CreatedIssue>;
|
|
201
209
|
updateIssue(issueIdOrKey: string, body: UpdateIssue): Promise<void>;
|
|
202
210
|
getIssueComments(issueIdOrKey: string, startAt?: number): Promise<JiraCommentResponse>;
|
|
@@ -217,6 +225,7 @@ declare interface Project {
|
|
|
217
225
|
simplified?: boolean;
|
|
218
226
|
avatarUrls?: AvatarUrls;
|
|
219
227
|
archived?: boolean;
|
|
228
|
+
lead?: User;
|
|
220
229
|
}
|
|
221
230
|
|
|
222
231
|
declare type RequestProductMethod = (url: FetchRoute, init: RequestInit) => Promise<APIResponse>;
|
|
@@ -231,7 +240,7 @@ declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
|
|
|
231
240
|
maxResults: number;
|
|
232
241
|
worklogs: Worklog[];
|
|
233
242
|
};
|
|
234
|
-
issuetype
|
|
243
|
+
issuetype?: {
|
|
235
244
|
self?: string;
|
|
236
245
|
id: string;
|
|
237
246
|
description?: string;
|
|
@@ -242,7 +251,7 @@ declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
|
|
|
242
251
|
hierarchyLevel?: number;
|
|
243
252
|
};
|
|
244
253
|
timespent?: number;
|
|
245
|
-
project
|
|
254
|
+
project?: Project;
|
|
246
255
|
aggregatetimespent?: number;
|
|
247
256
|
resolutiondate?: string;
|
|
248
257
|
lastViewed?: string;
|
|
@@ -269,12 +278,16 @@ declare interface StaticIssueFields<T = AtlassianDocumentFormat> {
|
|
|
269
278
|
remainingEstimateSeconds: number;
|
|
270
279
|
timeSpentSeconds: number;
|
|
271
280
|
};
|
|
272
|
-
summary
|
|
281
|
+
summary?: string;
|
|
273
282
|
status?: IssueStatus;
|
|
274
283
|
creator?: User;
|
|
275
284
|
assignee?: User;
|
|
276
285
|
reporter?: User;
|
|
277
286
|
issuelinks?: IssueLink[];
|
|
287
|
+
components?: {
|
|
288
|
+
id: string;
|
|
289
|
+
name: string;
|
|
290
|
+
}[];
|
|
278
291
|
}
|
|
279
292
|
|
|
280
293
|
declare interface TransitionIssueRequest {
|
|
@@ -285,7 +298,7 @@ declare interface TransitionIssueRequest {
|
|
|
285
298
|
update?: any;
|
|
286
299
|
}
|
|
287
300
|
|
|
288
|
-
declare type UpdateIssue =
|
|
301
|
+
declare type UpdateIssue = CreateIssue;
|
|
289
302
|
|
|
290
303
|
declare interface User {
|
|
291
304
|
accountId: string;
|
|
@@ -296,6 +309,16 @@ declare interface User {
|
|
|
296
309
|
avatarUrls?: AvatarUrls;
|
|
297
310
|
accountType?: string;
|
|
298
311
|
self?: string;
|
|
312
|
+
groups?: {
|
|
313
|
+
items?: UserGroupName[];
|
|
314
|
+
size?: number;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
declare interface UserGroupName {
|
|
319
|
+
groupId: string;
|
|
320
|
+
name: string;
|
|
321
|
+
self: string;
|
|
299
322
|
}
|
|
300
323
|
|
|
301
324
|
declare type Visibility = {
|
|
@@ -21,7 +21,7 @@ declare type FetchRoute = {
|
|
|
21
21
|
readonly value: string;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
declare type FetchSignature = <T>(request: FetchRequest, body?:
|
|
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?:
|
|
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-
|
|
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": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class h extends Error{constructor(t,e,a=t){super(a),this.statusText=t,this.statusCode=e,this.statusCode=e,this.statusText=t}toJSON(){return{statusCode:this.statusCode,statusText:this.statusText}}}function c(
|
|
2
|
-
${
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class h extends Error{constructor(t,e,a=t){super(a),this.statusText=t,this.statusCode=e,this.statusCode=e,this.statusText=t}toJSON(){return{statusCode:this.statusCode,statusText:this.statusText}}}function c(r,t){const e={Authorization:r.startsWith("Bearer ")?r:`Bearer ${r}`};return t?{...t,...e}:e}async function j(r,t,e){const a=c(r,e.headers||{});return fetch(t,{...e,headers:a})}async function x(r,t,e,a,n="json",o={}){return d(t,e,c(r,o),a,n)}async function d(r,t,e,a,n="json",o){const f={...e??{},Accept:n==="json"?"application/json":"text/html","Content-Type":n==="json"?"application/json":"text/html"},l=a?JSON.stringify(a):void 0,s=await fetch(r,{method:t,headers:f,body:l,credentials:o});if(s.ok)return t==="DELETE"||s.status===204?void 0:n==="text"?await s.text():await s.json();{let u="";try{u=await s.text()}catch{}const i=`${s.status} ${s.statusText} - ${t} ${r}
|
|
2
|
+
${u}`;throw console.error(i),new h(s.statusText,s.status,i)}}exports.FetchError=h;exports.addAuthHeader=c;exports.bearerAuthFetch=x;exports.bearerAuthFetchRaw=j;exports.jsonFetch=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class f extends Error {
|
|
2
|
-
constructor(t,
|
|
3
|
-
super(
|
|
2
|
+
constructor(t, e, a = t) {
|
|
3
|
+
super(a), this.statusText = t, this.statusCode = e, this.statusCode = e, this.statusText = t;
|
|
4
4
|
}
|
|
5
5
|
toJSON() {
|
|
6
6
|
return {
|
|
@@ -9,37 +9,38 @@ class f extends Error {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
function u(
|
|
13
|
-
const
|
|
14
|
-
Authorization:
|
|
12
|
+
function u(s, t) {
|
|
13
|
+
const e = {
|
|
14
|
+
Authorization: s.startsWith("Bearer ") ? s : `Bearer ${s}`
|
|
15
15
|
};
|
|
16
|
-
return t ? { ...t, ...
|
|
16
|
+
return t ? { ...t, ...e } : e;
|
|
17
17
|
}
|
|
18
|
-
async function l(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
async function l(s, t, e) {
|
|
19
|
+
const a = u(
|
|
20
|
+
s,
|
|
21
|
+
e.headers || {}
|
|
22
22
|
);
|
|
23
|
-
return fetch(t, { ...
|
|
23
|
+
return fetch(t, { ...e, headers: a });
|
|
24
24
|
}
|
|
25
|
-
async function j(
|
|
26
|
-
return
|
|
25
|
+
async function j(s, t, e, a, n = "json", o = {}) {
|
|
26
|
+
return x(
|
|
27
27
|
t,
|
|
28
|
-
|
|
29
|
-
u(
|
|
30
|
-
|
|
28
|
+
e,
|
|
29
|
+
u(s, o),
|
|
30
|
+
a,
|
|
31
31
|
n
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
async function
|
|
35
|
-
const
|
|
36
|
-
...
|
|
34
|
+
async function x(s, t, e, a, n = "json", o) {
|
|
35
|
+
const h = {
|
|
36
|
+
...e ?? {},
|
|
37
37
|
Accept: n === "json" ? "application/json" : "text/html",
|
|
38
38
|
"Content-Type": n === "json" ? "application/json" : "text/html"
|
|
39
|
-
},
|
|
39
|
+
}, d = a ? JSON.stringify(a) : void 0, r = await fetch(s, {
|
|
40
40
|
method: t,
|
|
41
|
-
headers:
|
|
42
|
-
body:
|
|
41
|
+
headers: h,
|
|
42
|
+
body: d,
|
|
43
|
+
credentials: o
|
|
43
44
|
});
|
|
44
45
|
if (r.ok)
|
|
45
46
|
return t === "DELETE" || r.status === 204 ? void 0 : n === "text" ? await r.text() : await r.json();
|
|
@@ -49,7 +50,7 @@ async function d(e, t, s, o, n = "json") {
|
|
|
49
50
|
c = await r.text();
|
|
50
51
|
} catch {
|
|
51
52
|
}
|
|
52
|
-
const i = `${r.status} ${r.statusText} - ${t} ${
|
|
53
|
+
const i = `${r.status} ${r.statusText} - ${t} ${s}
|
|
53
54
|
${c}`;
|
|
54
55
|
throw console.error(i), new f(r.statusText, r.status, i);
|
|
55
56
|
}
|
|
@@ -59,5 +60,5 @@ export {
|
|
|
59
60
|
u as addAuthHeader,
|
|
60
61
|
j as bearerAuthFetch,
|
|
61
62
|
l as bearerAuthFetchRaw,
|
|
62
|
-
|
|
63
|
+
x as jsonFetch
|
|
63
64
|
};
|
|
@@ -24,7 +24,7 @@ declare type FetchRoute = {
|
|
|
24
24
|
readonly value: string;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
declare type FetchSignature = <T>(request: FetchRequest, body?:
|
|
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
|
|