@forge/manifest 3.6.0 → 3.7.0-next.1
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/CHANGELOG.md +17 -0
- package/out/index.d.ts +1 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +1 -0
- package/out/mapping/product-event-to-scope-mapping.json +62 -62
- package/out/processor/full-validation-processor.d.ts.map +1 -1
- package/out/processor/full-validation-processor.js +0 -2
- package/out/scopes/deprecated-shipyard-scopes.json +1 -24
- package/out/scopes/index.d.ts +7 -0
- package/out/scopes/index.d.ts.map +1 -0
- package/out/scopes/index.js +22 -0
- package/out/scopes/shipyard-scopes.json +22 -0
- package/out/validators/product-trigger-scopes-validator.d.ts +2 -4
- package/out/validators/product-trigger-scopes-validator.d.ts.map +1 -1
- package/out/validators/product-trigger-scopes-validator.js +7 -21
- package/package.json +1 -1
- package/out/validators/deprecated-permissions-validator.d.ts +0 -7
- package/out/validators/deprecated-permissions-validator.d.ts.map +0 -1
- package/out/validators/deprecated-permissions-validator.js +0 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 3.7.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ce4a65f: Hide Granular scopes
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 34d085a: Delete unused DeprecatedPermissionsValidator
|
|
12
|
+
- c87cdea: Update manifest definitions
|
|
13
|
+
|
|
14
|
+
## 3.6.1-next.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 9e700ef8: Remove Deprecated Permissions validator due to Shipyard modification
|
|
19
|
+
|
|
3
20
|
## 3.6.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/out/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ManifestSchema } from './schema/manifest';
|
|
|
3
3
|
import { BasicManifestSchema } from './schema/basic-manifest';
|
|
4
4
|
export * from './builder';
|
|
5
5
|
export * from './processor';
|
|
6
|
+
export * from './scopes';
|
|
6
7
|
export * from './text';
|
|
7
8
|
export * from './types';
|
|
8
9
|
export * from './utils';
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const types_1 = require("./types");
|
|
|
6
6
|
const builder_1 = require("./builder");
|
|
7
7
|
tslib_1.__exportStar(require("./builder"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./processor"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./scopes"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./text"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./types"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./utils"), exports);
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"mapping": [{
|
|
3
3
|
"productEvent": "avi:jira:assigned:issue",
|
|
4
4
|
"oAuthScopes": {
|
|
5
|
-
"
|
|
5
|
+
"beta": [
|
|
6
6
|
"read:issue:jira",
|
|
7
7
|
"read:issue-type:jira",
|
|
8
8
|
"read:user:jira",
|
|
9
9
|
"read:project:jira",
|
|
10
10
|
"read:status:jira"
|
|
11
11
|
],
|
|
12
|
-
"
|
|
12
|
+
"current": [
|
|
13
13
|
"read:jira-work"
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{
|
|
18
18
|
"productEvent": "avi:jira:commented:issue",
|
|
19
19
|
"oAuthScopes": {
|
|
20
|
-
"
|
|
20
|
+
"beta": [
|
|
21
21
|
"read:issue:jira",
|
|
22
22
|
"read:issue-type:jira",
|
|
23
23
|
"read:user:jira",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"read:status:jira",
|
|
26
26
|
"read:comment:jira"
|
|
27
27
|
],
|
|
28
|
-
"
|
|
28
|
+
"current": [
|
|
29
29
|
"read:jira-work"
|
|
30
30
|
]
|
|
31
31
|
}
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
{
|
|
34
34
|
"productEvent": "avi:jira:created:issue",
|
|
35
35
|
"oAuthScopes": {
|
|
36
|
-
"
|
|
36
|
+
"beta": [
|
|
37
37
|
"read:issue:jira",
|
|
38
38
|
"read:issue-type:jira",
|
|
39
39
|
"read:user:jira",
|
|
40
40
|
"read:project:jira",
|
|
41
41
|
"read:status:jira"
|
|
42
42
|
],
|
|
43
|
-
"
|
|
43
|
+
"current": [
|
|
44
44
|
"read:jira-work"
|
|
45
45
|
]
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
{
|
|
49
49
|
"productEvent": "avi:jira:mentioned:comment",
|
|
50
50
|
"oAuthScopes": {
|
|
51
|
-
"
|
|
51
|
+
"beta": [
|
|
52
52
|
"read:issue:jira",
|
|
53
53
|
"read:issue-type:jira",
|
|
54
54
|
"read:user:jira",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"read:status:jira",
|
|
57
57
|
"read:comment:jira"
|
|
58
58
|
],
|
|
59
|
-
"
|
|
59
|
+
"current": [
|
|
60
60
|
"read:jira-work"
|
|
61
61
|
]
|
|
62
62
|
}
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
{
|
|
65
65
|
"productEvent": "avi:jira:mentioned:issue",
|
|
66
66
|
"oAuthScopes": {
|
|
67
|
-
"
|
|
67
|
+
"beta": [
|
|
68
68
|
"read:issue:jira",
|
|
69
69
|
"read:issue-type:jira",
|
|
70
70
|
"read:user:jira",
|
|
71
71
|
"read:project:jira",
|
|
72
72
|
"read:status:jira"
|
|
73
73
|
],
|
|
74
|
-
"
|
|
74
|
+
"current": [
|
|
75
75
|
"read:jira-work"
|
|
76
76
|
]
|
|
77
77
|
}
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
{
|
|
80
80
|
"productEvent": "avi:jira:updated:issue",
|
|
81
81
|
"oAuthScopes": {
|
|
82
|
-
"
|
|
82
|
+
"beta": [
|
|
83
83
|
"read:issue:jira",
|
|
84
84
|
"read:issue-type:jira",
|
|
85
85
|
"read:user:jira",
|
|
86
86
|
"read:project:jira",
|
|
87
87
|
"read:status:jira"
|
|
88
88
|
],
|
|
89
|
-
"
|
|
89
|
+
"current": [
|
|
90
90
|
"read:jira-work"
|
|
91
91
|
]
|
|
92
92
|
}
|
|
@@ -94,14 +94,14 @@
|
|
|
94
94
|
{
|
|
95
95
|
"productEvent": "avi:jira:viewed:issue",
|
|
96
96
|
"oAuthScopes": {
|
|
97
|
-
"
|
|
97
|
+
"beta": [
|
|
98
98
|
"read:issue:jira",
|
|
99
99
|
"read:issue-type:jira",
|
|
100
100
|
"read:user:jira",
|
|
101
101
|
"read:project:jira",
|
|
102
102
|
"read:status:jira"
|
|
103
103
|
],
|
|
104
|
-
"
|
|
104
|
+
"current": [
|
|
105
105
|
"read:jira-work"
|
|
106
106
|
]
|
|
107
107
|
}
|
|
@@ -109,10 +109,10 @@
|
|
|
109
109
|
{
|
|
110
110
|
"productEvent": "avi:jira:created:field",
|
|
111
111
|
"oAuthScopes": {
|
|
112
|
-
"
|
|
112
|
+
"beta": [
|
|
113
113
|
"read:field:jira"
|
|
114
114
|
],
|
|
115
|
-
"
|
|
115
|
+
"current": [
|
|
116
116
|
"manage:jira-configuration"
|
|
117
117
|
]
|
|
118
118
|
}
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
{
|
|
121
121
|
"productEvent": "avi:jira:updated:field",
|
|
122
122
|
"oAuthScopes": {
|
|
123
|
-
"
|
|
123
|
+
"beta": [
|
|
124
124
|
"read:field:jira"
|
|
125
125
|
],
|
|
126
|
-
"
|
|
126
|
+
"current": [
|
|
127
127
|
"manage:jira-configuration"
|
|
128
128
|
]
|
|
129
129
|
}
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
{
|
|
132
132
|
"productEvent": "avi:jira:trashed:field",
|
|
133
133
|
"oAuthScopes": {
|
|
134
|
-
"
|
|
134
|
+
"beta": [
|
|
135
135
|
"read:field:jira"
|
|
136
136
|
],
|
|
137
|
-
"
|
|
137
|
+
"current": [
|
|
138
138
|
"manage:jira-configuration"
|
|
139
139
|
]
|
|
140
140
|
}
|
|
@@ -142,10 +142,10 @@
|
|
|
142
142
|
{
|
|
143
143
|
"productEvent": "avi:jira:deleted:field",
|
|
144
144
|
"oAuthScopes": {
|
|
145
|
-
"
|
|
145
|
+
"beta": [
|
|
146
146
|
"read:field:jira"
|
|
147
147
|
],
|
|
148
|
-
"
|
|
148
|
+
"current": [
|
|
149
149
|
"manage:jira-configuration"
|
|
150
150
|
]
|
|
151
151
|
}
|
|
@@ -153,10 +153,10 @@
|
|
|
153
153
|
{
|
|
154
154
|
"productEvent": "avi:jira:restored:field",
|
|
155
155
|
"oAuthScopes": {
|
|
156
|
-
"
|
|
156
|
+
"beta": [
|
|
157
157
|
"read:field:jira"
|
|
158
158
|
],
|
|
159
|
-
"
|
|
159
|
+
"current": [
|
|
160
160
|
"manage:jira-configuration"
|
|
161
161
|
]
|
|
162
162
|
}
|
|
@@ -164,10 +164,10 @@
|
|
|
164
164
|
{
|
|
165
165
|
"productEvent": "avi:jira:created:field:context",
|
|
166
166
|
"oAuthScopes": {
|
|
167
|
-
"
|
|
167
|
+
"beta": [
|
|
168
168
|
"read:field:jira"
|
|
169
169
|
],
|
|
170
|
-
"
|
|
170
|
+
"current": [
|
|
171
171
|
"manage:jira-configuration"
|
|
172
172
|
]
|
|
173
173
|
}
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
{
|
|
176
176
|
"productEvent": "avi:jira:updated:field:context",
|
|
177
177
|
"oAuthScopes": {
|
|
178
|
-
"
|
|
178
|
+
"beta": [
|
|
179
179
|
"read:field:jira"
|
|
180
180
|
],
|
|
181
|
-
"
|
|
181
|
+
"current": [
|
|
182
182
|
"manage:jira-configuration"
|
|
183
183
|
]
|
|
184
184
|
}
|
|
@@ -186,10 +186,10 @@
|
|
|
186
186
|
{
|
|
187
187
|
"productEvent": "avi:jira:deleted:field:context",
|
|
188
188
|
"oAuthScopes": {
|
|
189
|
-
"
|
|
189
|
+
"beta": [
|
|
190
190
|
"read:field:jira"
|
|
191
191
|
],
|
|
192
|
-
"
|
|
192
|
+
"current": [
|
|
193
193
|
"manage:jira-configuration"
|
|
194
194
|
]
|
|
195
195
|
}
|
|
@@ -197,12 +197,12 @@
|
|
|
197
197
|
{
|
|
198
198
|
"productEvent": "avi:jira:failed:expression",
|
|
199
199
|
"oAuthScopes": {
|
|
200
|
-
"
|
|
200
|
+
"beta": [
|
|
201
201
|
"read:workflow:jira",
|
|
202
202
|
"read:issue:jira",
|
|
203
203
|
"read:project:jira"
|
|
204
204
|
],
|
|
205
|
-
"
|
|
205
|
+
"current": [
|
|
206
206
|
"manage:jira-configuration"
|
|
207
207
|
]
|
|
208
208
|
}
|
|
@@ -218,13 +218,13 @@
|
|
|
218
218
|
{
|
|
219
219
|
"productEvent": "avi:confluence:updated:blogpost",
|
|
220
220
|
"oAuthScopes": {
|
|
221
|
-
"
|
|
221
|
+
"beta": [
|
|
222
222
|
"read:blogpost:confluence",
|
|
223
223
|
"read:space:confluence",
|
|
224
224
|
"read:user:confluence",
|
|
225
225
|
"read:content.metadata:confluence"
|
|
226
226
|
],
|
|
227
|
-
"
|
|
227
|
+
"current": [
|
|
228
228
|
"read:confluence-content.summary"
|
|
229
229
|
]
|
|
230
230
|
}
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
{
|
|
233
233
|
"productEvent": "avi:confluence:liked:comment",
|
|
234
234
|
"oAuthScopes": {
|
|
235
|
-
"
|
|
235
|
+
"beta": [
|
|
236
236
|
"read:comment:confluence",
|
|
237
237
|
"read:page:confluence",
|
|
238
238
|
"read:blogpost:confluence",
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
"read:user:confluence",
|
|
241
241
|
"read:content.metadata:confluence"
|
|
242
242
|
],
|
|
243
|
-
"
|
|
243
|
+
"current": [
|
|
244
244
|
"read:confluence-content.summary"
|
|
245
245
|
]
|
|
246
246
|
}
|
|
@@ -248,13 +248,13 @@
|
|
|
248
248
|
{
|
|
249
249
|
"productEvent": "avi:confluence:created:page",
|
|
250
250
|
"oAuthScopes": {
|
|
251
|
-
"
|
|
251
|
+
"beta": [
|
|
252
252
|
"read:page:confluence",
|
|
253
253
|
"read:space:confluence",
|
|
254
254
|
"read:user:confluence",
|
|
255
255
|
"read:content.metadata:confluence"
|
|
256
256
|
],
|
|
257
|
-
"
|
|
257
|
+
"current": [
|
|
258
258
|
"read:confluence-content.summary"
|
|
259
259
|
]
|
|
260
260
|
}
|
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
{
|
|
263
263
|
"productEvent": "avi:confluence:viewed:page",
|
|
264
264
|
"oAuthScopes": {
|
|
265
|
-
"
|
|
265
|
+
"beta": [
|
|
266
266
|
"read:page:confluence",
|
|
267
267
|
"read:space:confluence",
|
|
268
268
|
"read:user:confluence",
|
|
269
269
|
"read:content.metadata:confluence"
|
|
270
270
|
],
|
|
271
|
-
"
|
|
271
|
+
"current": [
|
|
272
272
|
"read:confluence-content.summary"
|
|
273
273
|
]
|
|
274
274
|
}
|
|
@@ -276,13 +276,13 @@
|
|
|
276
276
|
{
|
|
277
277
|
"productEvent": "avi:confluence:updated:page",
|
|
278
278
|
"oAuthScopes": {
|
|
279
|
-
"
|
|
279
|
+
"beta": [
|
|
280
280
|
"read:page:confluence",
|
|
281
281
|
"read:space:confluence",
|
|
282
282
|
"read:user:confluence",
|
|
283
283
|
"read:content.metadata:confluence"
|
|
284
284
|
],
|
|
285
|
-
"
|
|
285
|
+
"current": [
|
|
286
286
|
"read:confluence-content.summary"
|
|
287
287
|
]
|
|
288
288
|
}
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
{
|
|
291
291
|
"productEvent": "avi:confluence:created:comment",
|
|
292
292
|
"oAuthScopes": {
|
|
293
|
-
"
|
|
293
|
+
"beta": [
|
|
294
294
|
"read:comment:confluence",
|
|
295
295
|
"read:page:confluence",
|
|
296
296
|
"read:blogpost:confluence",
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"read:user:confluence",
|
|
299
299
|
"read:content.metadata:confluence"
|
|
300
300
|
],
|
|
301
|
-
"
|
|
301
|
+
"current": [
|
|
302
302
|
"read:confluence-content.summary"
|
|
303
303
|
]
|
|
304
304
|
}
|
|
@@ -306,13 +306,13 @@
|
|
|
306
306
|
{
|
|
307
307
|
"productEvent": "avi:confluence:viewed:blogpost",
|
|
308
308
|
"oAuthScopes": {
|
|
309
|
-
"
|
|
309
|
+
"beta": [
|
|
310
310
|
"read:blogpost:confluence",
|
|
311
311
|
"read:space:confluence",
|
|
312
312
|
"read:user:confluence",
|
|
313
313
|
"read:content.metadata:confluence"
|
|
314
314
|
],
|
|
315
|
-
"
|
|
315
|
+
"current": [
|
|
316
316
|
"read:confluence-content.summary"
|
|
317
317
|
]
|
|
318
318
|
}
|
|
@@ -320,13 +320,13 @@
|
|
|
320
320
|
{
|
|
321
321
|
"productEvent": "avi:confluence:liked:page",
|
|
322
322
|
"oAuthScopes": {
|
|
323
|
-
"
|
|
323
|
+
"beta": [
|
|
324
324
|
"read:page:confluence",
|
|
325
325
|
"read:space:confluence",
|
|
326
326
|
"read:user:confluence",
|
|
327
327
|
"read:content.metadata:confluence"
|
|
328
328
|
],
|
|
329
|
-
"
|
|
329
|
+
"current": [
|
|
330
330
|
"read:confluence-content.summary"
|
|
331
331
|
]
|
|
332
332
|
}
|
|
@@ -334,13 +334,13 @@
|
|
|
334
334
|
{
|
|
335
335
|
"productEvent": "avi:confluence:liked:blogpost",
|
|
336
336
|
"oAuthScopes": {
|
|
337
|
-
"
|
|
337
|
+
"beta": [
|
|
338
338
|
"read:blogpost:confluence",
|
|
339
339
|
"read:space:confluence",
|
|
340
340
|
"read:user:confluence",
|
|
341
341
|
"read:content.metadata:confluence"
|
|
342
342
|
],
|
|
343
|
-
"
|
|
343
|
+
"current": [
|
|
344
344
|
"read:confluence-content.summary"
|
|
345
345
|
]
|
|
346
346
|
}
|
|
@@ -348,13 +348,13 @@
|
|
|
348
348
|
{
|
|
349
349
|
"productEvent": "avi:confluence:created:blogpost",
|
|
350
350
|
"oAuthScopes": {
|
|
351
|
-
"
|
|
351
|
+
"beta": [
|
|
352
352
|
"read:blogpost:confluence",
|
|
353
353
|
"read:space:confluence",
|
|
354
354
|
"read:user:confluence",
|
|
355
355
|
"read:content.metadata:confluence"
|
|
356
356
|
],
|
|
357
|
-
"
|
|
357
|
+
"current": [
|
|
358
358
|
"read:confluence-content.summary"
|
|
359
359
|
]
|
|
360
360
|
}
|
|
@@ -362,13 +362,13 @@
|
|
|
362
362
|
{
|
|
363
363
|
"productEvent": "avi:confluence:created:task",
|
|
364
364
|
"oAuthScopes": {
|
|
365
|
-
"
|
|
365
|
+
"beta": [
|
|
366
366
|
"read:inlinetask:confluence",
|
|
367
367
|
"read:space:confluence",
|
|
368
368
|
"read:user:confluence",
|
|
369
369
|
"read:content.metadata:confluence"
|
|
370
370
|
],
|
|
371
|
-
"
|
|
371
|
+
"current": [
|
|
372
372
|
"read:confluence-content.all"
|
|
373
373
|
]
|
|
374
374
|
}
|
|
@@ -376,13 +376,13 @@
|
|
|
376
376
|
{
|
|
377
377
|
"productEvent": "avi:confluence:updated:task",
|
|
378
378
|
"oAuthScopes": {
|
|
379
|
-
"
|
|
379
|
+
"beta": [
|
|
380
380
|
"read:inlinetask:confluence",
|
|
381
381
|
"read:space:confluence",
|
|
382
382
|
"read:user:confluence",
|
|
383
383
|
"read:content.metadata:confluence"
|
|
384
384
|
],
|
|
385
|
-
"
|
|
385
|
+
"current": [
|
|
386
386
|
"read:confluence-content.all"
|
|
387
387
|
]
|
|
388
388
|
}
|
|
@@ -390,13 +390,13 @@
|
|
|
390
390
|
{
|
|
391
391
|
"productEvent": "avi:confluence:removed:task",
|
|
392
392
|
"oAuthScopes": {
|
|
393
|
-
"
|
|
393
|
+
"beta": [
|
|
394
394
|
"read:inlinetask:confluence",
|
|
395
395
|
"read:space:confluence",
|
|
396
396
|
"read:user:confluence",
|
|
397
397
|
"read:content.metadata:confluence"
|
|
398
398
|
],
|
|
399
|
-
"
|
|
399
|
+
"current": [
|
|
400
400
|
"read:confluence-content.all"
|
|
401
401
|
]
|
|
402
402
|
}
|
|
@@ -404,10 +404,10 @@
|
|
|
404
404
|
{
|
|
405
405
|
"productEvent": "avi:confluence:created:space:V2",
|
|
406
406
|
"oAuthScopes": {
|
|
407
|
-
"
|
|
407
|
+
"beta": [
|
|
408
408
|
"read:space:confluence"
|
|
409
409
|
],
|
|
410
|
-
"
|
|
410
|
+
"current": [
|
|
411
411
|
"read:confluence-space.summary"
|
|
412
412
|
]
|
|
413
413
|
}
|
|
@@ -415,10 +415,10 @@
|
|
|
415
415
|
{
|
|
416
416
|
"productEvent": "avi:confluence:updated:space:V2",
|
|
417
417
|
"oAuthScopes": {
|
|
418
|
-
"
|
|
418
|
+
"beta": [
|
|
419
419
|
"read:space:confluence"
|
|
420
420
|
],
|
|
421
|
-
"
|
|
421
|
+
"current": [
|
|
422
422
|
"read:confluence-space.summary"
|
|
423
423
|
]
|
|
424
424
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAiBvF"}
|
|
@@ -6,7 +6,6 @@ const validators_1 = require("../validators");
|
|
|
6
6
|
const FULL_SCHEMA = tslib_1.__importStar(require("../schema/manifest-schema.json"));
|
|
7
7
|
const DISPLAY_CONDITIONS_SCHEMA = tslib_1.__importStar(require("../schema/display-conditions-schema.json"));
|
|
8
8
|
const abstract_validation_processor_1 = require("./abstract-validation-processor");
|
|
9
|
-
const deprecated_permissions_validator_1 = require("../validators/deprecated-permissions-validator");
|
|
10
9
|
class FullValidationProcessor extends abstract_validation_processor_1.AbstractValidationProcessor {
|
|
11
10
|
constructor() {
|
|
12
11
|
super([
|
|
@@ -19,7 +18,6 @@ class FullValidationProcessor extends abstract_validation_processor_1.AbstractVa
|
|
|
19
18
|
new validators_1.ConnectRemoteValidator(),
|
|
20
19
|
new validators_1.ConnectAuthenticationValidator(),
|
|
21
20
|
new validators_1.PermissionsValidator(),
|
|
22
|
-
new deprecated_permissions_validator_1.DeprecatedPermissionsValidator(),
|
|
23
21
|
new validators_1.DisplayConditionsValidator(DISPLAY_CONDITIONS_SCHEMA),
|
|
24
22
|
new validators_1.ProvidersValidator(),
|
|
25
23
|
new validators_1.EntityPropertyValidator()
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
[
|
|
2
|
-
"manage:confluence-configuration",
|
|
3
|
-
"manage:jira-configuration",
|
|
4
|
-
"manage:jira-data-provider",
|
|
5
|
-
"manage:jira-project",
|
|
6
|
-
"manage:jira-webhook",
|
|
7
|
-
"read:confluence-content.all",
|
|
8
|
-
"read:confluence-content.permission",
|
|
9
|
-
"read:confluence-content.summary",
|
|
10
|
-
"read:confluence-groups",
|
|
11
|
-
"read:confluence-props",
|
|
12
|
-
"read:confluence-space.summary",
|
|
13
|
-
"read:confluence-user",
|
|
14
|
-
"read:jira-user",
|
|
15
|
-
"read:jira-work",
|
|
16
|
-
"readonly:content.attachment:confluence",
|
|
17
|
-
"search:confluence",
|
|
18
|
-
"write:confluence-content",
|
|
19
|
-
"write:confluence-file",
|
|
20
|
-
"write:confluence-groups",
|
|
21
|
-
"write:confluence-props",
|
|
22
|
-
"write:confluence-space",
|
|
23
|
-
"write:jira-work"
|
|
24
|
-
]
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scopes/index.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,MAAM,EAAE,CAoBnG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMissingScopes = void 0;
|
|
4
|
+
function getMissingScopes(existing, required) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
if (!(existing === null || existing === void 0 ? void 0 : existing.length)) {
|
|
7
|
+
return required.current;
|
|
8
|
+
}
|
|
9
|
+
if (required.current.length === 0)
|
|
10
|
+
return [];
|
|
11
|
+
const missingCurrent = required.current.filter((scope) => !(existing === null || existing === void 0 ? void 0 : existing.includes(scope)));
|
|
12
|
+
if (missingCurrent.length === 0)
|
|
13
|
+
return [];
|
|
14
|
+
const missingBeta = (_a = required.beta) === null || _a === void 0 ? void 0 : _a.filter((scope) => !(existing === null || existing === void 0 ? void 0 : existing.includes(scope)));
|
|
15
|
+
if (required.beta && (missingBeta === null || missingBeta === void 0 ? void 0 : missingBeta.length) === 0)
|
|
16
|
+
return [];
|
|
17
|
+
const missingDeprecated = (_b = required.deprecated) === null || _b === void 0 ? void 0 : _b.filter((scope) => !(existing === null || existing === void 0 ? void 0 : existing.includes(scope)));
|
|
18
|
+
if (required.deprecated && (missingDeprecated === null || missingDeprecated === void 0 ? void 0 : missingDeprecated.length) === 0)
|
|
19
|
+
return [];
|
|
20
|
+
return missingCurrent;
|
|
21
|
+
}
|
|
22
|
+
exports.getMissingScopes = getMissingScopes;
|
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
"delete:workflow-scheme:jira",
|
|
77
77
|
"delete:workflow:jira",
|
|
78
78
|
"delete:workflow.property:jira",
|
|
79
|
+
"manage:confluence-configuration",
|
|
80
|
+
"manage:jira-configuration",
|
|
81
|
+
"manage:jira-data-provider",
|
|
82
|
+
"manage:jira-project",
|
|
83
|
+
"manage:jira-webhook",
|
|
79
84
|
"manage:servicedesk-customer",
|
|
80
85
|
"project-admin:connect-jira",
|
|
81
86
|
"read:account",
|
|
@@ -96,6 +101,13 @@
|
|
|
96
101
|
"read:comment.property:jira",
|
|
97
102
|
"read:component:compass",
|
|
98
103
|
"read:configuration:confluence",
|
|
104
|
+
"read:confluence-content.all",
|
|
105
|
+
"read:confluence-content.permission",
|
|
106
|
+
"read:confluence-content.summary",
|
|
107
|
+
"read:confluence-groups",
|
|
108
|
+
"read:confluence-props",
|
|
109
|
+
"read:confluence-space.summary",
|
|
110
|
+
"read:confluence-user",
|
|
99
111
|
"read:connect-confluence",
|
|
100
112
|
"read:connect-jira",
|
|
101
113
|
"read:content-details:confluence",
|
|
@@ -158,6 +170,8 @@
|
|
|
158
170
|
"read:issue.votes:jira",
|
|
159
171
|
"read:issue.watcher:jira",
|
|
160
172
|
"read:jira-expressions:jira",
|
|
173
|
+
"read:jira-user",
|
|
174
|
+
"read:jira-work",
|
|
161
175
|
"read:jql:jira",
|
|
162
176
|
"read:knowledgebase:jira-service-management",
|
|
163
177
|
"read:label:confluence",
|
|
@@ -233,7 +247,9 @@
|
|
|
233
247
|
"read:workflow-scheme:jira",
|
|
234
248
|
"read:workflow:jira",
|
|
235
249
|
"read:workflow.property:jira",
|
|
250
|
+
"readonly:content.attachment:confluence",
|
|
236
251
|
"report:personal-data",
|
|
252
|
+
"search:confluence",
|
|
237
253
|
"send:notification:jira",
|
|
238
254
|
"space-admin:connect-confluence",
|
|
239
255
|
"storage:app",
|
|
@@ -252,6 +268,11 @@
|
|
|
252
268
|
"write:comment.property:jira",
|
|
253
269
|
"write:component:compass",
|
|
254
270
|
"write:configuration:confluence",
|
|
271
|
+
"write:confluence-content",
|
|
272
|
+
"write:confluence-file",
|
|
273
|
+
"write:confluence-groups",
|
|
274
|
+
"write:confluence-props",
|
|
275
|
+
"write:confluence-space",
|
|
255
276
|
"write:connect-confluence",
|
|
256
277
|
"write:connect-jira",
|
|
257
278
|
"write:content:confluence",
|
|
@@ -297,6 +318,7 @@
|
|
|
297
318
|
"write:issue.time-tracking:jira",
|
|
298
319
|
"write:issue.vote:jira",
|
|
299
320
|
"write:issue.watcher:jira",
|
|
321
|
+
"write:jira-work",
|
|
300
322
|
"write:label:confluence",
|
|
301
323
|
"write:metric:compass",
|
|
302
324
|
"write:organization:jira-service-management",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
2
2
|
import { ValidatorInterface } from './validator-interface';
|
|
3
3
|
import { ManifestSchema } from '../schema/manifest';
|
|
4
|
+
import { RequiredScopes } from '../scopes';
|
|
4
5
|
export interface MappingEntry {
|
|
5
6
|
productEvent: string;
|
|
6
|
-
oAuthScopes:
|
|
7
|
-
current: string[];
|
|
8
|
-
deprecated?: string[];
|
|
9
|
-
};
|
|
7
|
+
oAuthScopes: RequiredScopes;
|
|
10
8
|
}
|
|
11
9
|
export interface MappingConfig {
|
|
12
10
|
mapping: MappingEntry[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-trigger-scopes-validator.d.ts","sourceRoot":"","sources":["../../src/validators/product-trigger-scopes-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"product-trigger-scopes-validator.d.ts","sourceRoot":"","sources":["../../src/validators/product-trigger-scopes-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAoB,cAAc,EAAE,MAAM,WAAW,CAAC;AAE7D,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,cAAc,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,qBAAa,6BAA6B,CAAC,CAAC,CAC1C,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAC7E,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAElD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAoDzG"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProductTriggerScopesValidator = void 0;
|
|
4
4
|
const text_1 = require("../text");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
+
const scopes_1 = require("../scopes");
|
|
6
7
|
class ProductTriggerScopesValidator {
|
|
7
8
|
constructor(config) {
|
|
8
9
|
this.config = config;
|
|
@@ -16,9 +17,10 @@ class ProductTriggerScopesValidator {
|
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
const validationErrors = [];
|
|
19
|
-
const getRequiredScopes = (productEvent
|
|
20
|
+
const getRequiredScopes = (productEvent) => {
|
|
20
21
|
var _a;
|
|
21
|
-
|
|
22
|
+
const emptyRequiredScopes = { current: [] };
|
|
23
|
+
return (((_a = this.config.mapping.find((value) => value.productEvent == productEvent)) === null || _a === void 0 ? void 0 : _a.oAuthScopes) || emptyRequiredScopes);
|
|
22
24
|
};
|
|
23
25
|
const addValidationError = (scope, event) => {
|
|
24
26
|
validationErrors.push(Object.assign({ message: text_1.errors.permissions.missingPermissionFromScope(scope, event), reference: text_1.References.MissingScopes, level: 'error', metadata: {
|
|
@@ -34,25 +36,9 @@ class ProductTriggerScopesValidator {
|
|
|
34
36
|
const manifestScopes = ((_a = manifest.typedContent.permissions) === null || _a === void 0 ? void 0 : _a.scopes) || [];
|
|
35
37
|
manifest.typedContent.modules.trigger.forEach((element) => {
|
|
36
38
|
for (const event of element.events) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const missingCurrentScopes = currentScopes.filter((scope) => !manifestScopes.includes(scope));
|
|
41
|
-
if (missingCurrentScopes.length === 0)
|
|
42
|
-
continue;
|
|
43
|
-
const deprecatedScopes = getRequiredScopes(event, 'deprecated');
|
|
44
|
-
const missingDeprecatedScopes = deprecatedScopes === null || deprecatedScopes === void 0 ? void 0 : deprecatedScopes.filter((scope) => !manifestScopes.includes(scope));
|
|
45
|
-
if ((missingDeprecatedScopes === null || missingDeprecatedScopes === void 0 ? void 0 : missingDeprecatedScopes.length) === 0)
|
|
46
|
-
continue;
|
|
47
|
-
if (missingCurrentScopes.length < currentScopes.length) {
|
|
48
|
-
missingCurrentScopes.forEach((scope) => addValidationError(scope, event));
|
|
49
|
-
continue;
|
|
50
|
-
}
|
|
51
|
-
if (missingDeprecatedScopes && deprecatedScopes && missingDeprecatedScopes.length < deprecatedScopes.length) {
|
|
52
|
-
missingDeprecatedScopes.forEach((scope) => addValidationError(scope, event));
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
missingCurrentScopes.forEach((scope) => addValidationError(scope, event));
|
|
39
|
+
const requiredScopes = getRequiredScopes(event);
|
|
40
|
+
const missingScopes = scopes_1.getMissingScopes(manifestScopes, requiredScopes);
|
|
41
|
+
missingScopes.forEach((scope) => addValidationError(scope, event));
|
|
56
42
|
}
|
|
57
43
|
});
|
|
58
44
|
return {
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ValidatorInterface } from './validator-interface';
|
|
2
|
-
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
3
|
-
import { ManifestSchema } from '../schema/manifest';
|
|
4
|
-
export declare class DeprecatedPermissionsValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=deprecated-permissions-validator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/deprecated-permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAmB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,8BACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CAoCzG"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeprecatedPermissionsValidator = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const deprecated_shipyard_scopes_json_1 = tslib_1.__importDefault(require("../scopes/deprecated-shipyard-scopes.json"));
|
|
6
|
-
const text_1 = require("../text");
|
|
7
|
-
const utils_1 = require("../utils");
|
|
8
|
-
class DeprecatedPermissionsValidator {
|
|
9
|
-
validate(manifest) {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
if (!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a.permissions)) {
|
|
12
|
-
return {
|
|
13
|
-
success: false,
|
|
14
|
-
manifestObject: manifest
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
const validationErrors = [];
|
|
18
|
-
function addValidationError(element, value, schemaManifestObject) {
|
|
19
|
-
validationErrors.push(Object.assign({ message: text_1.errors.permissions.deprecatedPermission(element, value), reference: text_1.References.Permissions, level: 'warning' }, utils_1.findPosition(value[0], schemaManifestObject.yamlContentByLine)));
|
|
20
|
-
}
|
|
21
|
-
const deprecatedScopes = (_b = manifest.typedContent.permissions.scopes) === null || _b === void 0 ? void 0 : _b.filter((key) => deprecated_shipyard_scopes_json_1.default.includes(key));
|
|
22
|
-
if (deprecatedScopes && deprecatedScopes.length > 0) {
|
|
23
|
-
addValidationError('scopes', deprecatedScopes, manifest);
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
success: validationErrors.length === 0,
|
|
27
|
-
errors: validationErrors
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.DeprecatedPermissionsValidator = DeprecatedPermissionsValidator;
|