@forge/manifest 4.15.1-next.0 → 4.15.1-next.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 4.15.1-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 7ce9fef2: Update manifest definitions
8
+
9
+ ## 4.15.1-next.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 0d528ddd: Added sprint related product events to scope mapping
14
+
3
15
  ## 4.15.1-next.0
4
16
 
5
17
  ### Patch Changes
@@ -926,6 +926,50 @@
926
926
  "read:pullrequest:bitbucket"
927
927
  ]
928
928
  }
929
+ },
930
+ {
931
+ "productEvent": "avi:jira-software:created:sprint",
932
+ "oAuthScopes": {
933
+ "beta": [
934
+ "read:sprint:jira-software"
935
+ ],
936
+ "current": [
937
+ "read:jira-work"
938
+ ]
939
+ }
940
+ },
941
+ {
942
+ "productEvent": "avi:jira-software:started:sprint",
943
+ "oAuthScopes": {
944
+ "beta": [
945
+ "read:sprint:jira-software"
946
+ ],
947
+ "current": [
948
+ "read:jira-work"
949
+ ]
950
+ }
951
+ },
952
+ {
953
+ "productEvent": "avi:jira-software:closed:sprint",
954
+ "oAuthScopes": {
955
+ "beta": [
956
+ "read:sprint:jira-software"
957
+ ],
958
+ "current": [
959
+ "read:jira-work"
960
+ ]
961
+ }
962
+ },
963
+ {
964
+ "productEvent": "avi:jira-software:updated:sprint",
965
+ "oAuthScopes": {
966
+ "beta": [
967
+ "read:sprint:jira-software"
968
+ ],
969
+ "current": [
970
+ "read:jira-work"
971
+ ]
972
+ }
929
973
  }
930
974
  ]
931
975
  }
@@ -264,44 +264,88 @@
264
264
  "type": "array",
265
265
  "items": {
266
266
  "$schema": "http://json-schema.org/draft-07/schema#",
267
- "additionalProperties": false,
268
- "properties": {
269
- "events": {
270
- "oneOf": [
271
- {
272
- "$ref": "#/definitions/ProductEvents"
267
+ "oneOf": [
268
+ {
269
+ "additionalProperties": false,
270
+ "properties": {
271
+ "events": {
272
+ "oneOf": [
273
+ {
274
+ "$ref": "#/definitions/ProductEvents"
275
+ },
276
+ {
277
+ "$ref": "#/definitions/FilteredProductEvents"
278
+ }
279
+ ],
280
+ "title": "events"
273
281
  },
274
- {
275
- "$ref": "#/definitions/FilteredProductEvents"
282
+ "function": {
283
+ "$ref": "#/definitions/ExtensionKey",
284
+ "title": "function",
285
+ "type": "string"
286
+ },
287
+ "filter": {
288
+ "$ref": "#/definitions/ProductEventsFilter",
289
+ "title": "filter",
290
+ "type": "object"
291
+ },
292
+ "key": {
293
+ "$ref": "#/definitions/ModuleKeySchema"
276
294
  }
295
+ },
296
+ "required": [
297
+ "events",
298
+ "function",
299
+ "key"
277
300
  ],
278
- "title": "events"
279
- },
280
- "function": {
281
- "$ref": "#/definitions/ExtensionKey",
282
- "title": "function",
283
- "type": "string"
284
- },
285
- "filter": {
286
- "$ref": "#/definitions/ProductEventsFilter",
287
- "title": "filter",
288
- "type": "object"
301
+ "type": "object",
302
+ "not": {
303
+ "required": [
304
+ "unlicensedAccess"
305
+ ]
306
+ }
289
307
  },
290
- "key": {
291
- "$ref": "#/definitions/ModuleKeySchema"
308
+ {
309
+ "additionalProperties": false,
310
+ "properties": {
311
+ "events": {
312
+ "oneOf": [
313
+ {
314
+ "$ref": "#/definitions/ProductEvents"
315
+ },
316
+ {
317
+ "$ref": "#/definitions/FilteredProductEvents"
318
+ }
319
+ ],
320
+ "title": "events"
321
+ },
322
+ "endpoint": {
323
+ "$ref": "#/definitions/ExtensionKey",
324
+ "title": "endpoint",
325
+ "type": "string"
326
+ },
327
+ "filter": {
328
+ "$ref": "#/definitions/ProductEventsFilter",
329
+ "title": "filter",
330
+ "type": "object"
331
+ },
332
+ "key": {
333
+ "$ref": "#/definitions/ModuleKeySchema"
334
+ }
335
+ },
336
+ "required": [
337
+ "events",
338
+ "endpoint",
339
+ "key"
340
+ ],
341
+ "type": "object",
342
+ "not": {
343
+ "required": [
344
+ "unlicensedAccess"
345
+ ]
346
+ }
292
347
  }
293
- },
294
- "required": [
295
- "events",
296
- "function",
297
- "key"
298
- ],
299
- "type": "object",
300
- "not": {
301
- "required": [
302
- "unlicensedAccess"
303
- ]
304
- }
348
+ ]
305
349
  },
306
350
  "minItems": 1
307
351
  },
@@ -56,6 +56,14 @@ export type FilteredProductEvents = {
56
56
  * This key is defined in: https://bitbucket.org/atlassian/connect-service/src/cd7252b/service/cs-apps/api.raml#lines-1094
57
57
  */
58
58
  export type Function = string;
59
+ export type Events1 = ProductEvents | FilteredProductEvents;
60
+ /**
61
+ * The key for an extension in CaaS. That means that this is a reference to another
62
+ * extension in your descriptor / manifest.
63
+ *
64
+ * This key is defined in: https://bitbucket.org/atlassian/connect-service/src/cd7252b/service/cs-apps/api.raml#lines-1094
65
+ */
66
+ export type Endpoint = string;
59
67
  /**
60
68
  * The key of the function that should be invoked for this webtrigger.
61
69
  */
@@ -380,18 +388,34 @@ export interface ConnectModules {
380
388
  }
381
389
  export interface Modules {
382
390
  trigger?: [
383
- {
384
- events: Events;
385
- function: Function;
386
- filter?: Filter1;
387
- key: ModuleKeySchema;
388
- },
389
- ...{
390
- events: Events;
391
- function: Function;
392
- filter?: Filter1;
393
- key: ModuleKeySchema;
394
- }[]
391
+ (
392
+ | {
393
+ events: Events;
394
+ function: Function;
395
+ filter?: Filter1;
396
+ key: ModuleKeySchema;
397
+ }
398
+ | {
399
+ events: Events1;
400
+ endpoint: Endpoint;
401
+ filter?: Filter2;
402
+ key: ModuleKeySchema;
403
+ }
404
+ ),
405
+ ...(
406
+ | {
407
+ events: Events;
408
+ function: Function;
409
+ filter?: Filter1;
410
+ key: ModuleKeySchema;
411
+ }
412
+ | {
413
+ events: Events1;
414
+ endpoint: Endpoint;
415
+ filter?: Filter2;
416
+ key: ModuleKeySchema;
417
+ }
418
+ )[]
395
419
  ];
396
420
  webtrigger?: [
397
421
  {
@@ -6211,6 +6235,10 @@ export interface Filter1 {
6211
6235
  ignoreSelf?: IgnoreSelf;
6212
6236
  [k: string]: unknown;
6213
6237
  }
6238
+ export interface Filter2 {
6239
+ ignoreSelf?: IgnoreSelf;
6240
+ [k: string]: unknown;
6241
+ }
6214
6242
  /**
6215
6243
  *
6216
6244
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "4.15.1-next.0",
3
+ "version": "4.15.1-next.2",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {