@forge/manifest 5.5.0 → 5.5.1-next.0

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,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 5.5.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ea1e909: Update manifest definitions
8
+
3
9
  ## 5.5.0
4
10
 
5
11
  ### Minor Changes
@@ -450,42 +450,84 @@
450
450
  "type": "array",
451
451
  "items": {
452
452
  "$schema": "http://json-schema.org/draft-07/schema#",
453
- "additionalProperties": false,
454
- "properties": {
455
- "foo": {
456
- "title": "foo",
457
- "type": "string"
458
- },
459
- "function": {
460
- "$ref": "#/definitions/ExtensionKey",
461
- "description": "The key of the function that should be invoked for this scheduledTrigger.",
462
- "title": "function"
463
- },
464
- "interval": {
465
- "description": "The interval at which to trigger function invocation.",
466
- "enum": [
467
- "hour",
468
- "day",
469
- "week"
453
+ "oneOf": [
454
+ {
455
+ "additionalProperties": false,
456
+ "properties": {
457
+ "foo": {
458
+ "title": "foo",
459
+ "type": "string"
460
+ },
461
+ "function": {
462
+ "$ref": "#/definitions/ExtensionKey",
463
+ "description": "The key of the function that should be invoked for this scheduledTrigger.",
464
+ "title": "function"
465
+ },
466
+ "interval": {
467
+ "description": "The interval at which to trigger function invocation.",
468
+ "enum": [
469
+ "hour",
470
+ "day",
471
+ "week"
472
+ ],
473
+ "title": "interval",
474
+ "type": "string"
475
+ },
476
+ "key": {
477
+ "$ref": "#/definitions/ModuleKeySchema"
478
+ }
479
+ },
480
+ "required": [
481
+ "function",
482
+ "interval",
483
+ "key"
470
484
  ],
471
- "title": "interval",
472
- "type": "string"
485
+ "type": "object",
486
+ "not": {
487
+ "required": [
488
+ "unlicensedAccess"
489
+ ]
490
+ }
473
491
  },
474
- "key": {
475
- "$ref": "#/definitions/ModuleKeySchema"
492
+ {
493
+ "additionalProperties": false,
494
+ "properties": {
495
+ "foo": {
496
+ "title": "foo",
497
+ "type": "string"
498
+ },
499
+ "endpoint": {
500
+ "$ref": "#/definitions/ExtensionKey",
501
+ "title": "endpoint",
502
+ "type": "string"
503
+ },
504
+ "interval": {
505
+ "escription": "The interval at which to trigger function invocation.",
506
+ "enum": [
507
+ "hour",
508
+ "day",
509
+ "week"
510
+ ],
511
+ "title": "interval",
512
+ "type": "string"
513
+ },
514
+ "key": {
515
+ "$ref": "#/definitions/ModuleKeySchema"
516
+ }
517
+ },
518
+ "required": [
519
+ "endpoint",
520
+ "interval",
521
+ "key"
522
+ ],
523
+ "type": "object",
524
+ "not": {
525
+ "required": [
526
+ "unlicensedAccess"
527
+ ]
528
+ }
476
529
  }
477
- },
478
- "required": [
479
- "function",
480
- "interval",
481
- "key"
482
- ],
483
- "type": "object",
484
- "not": {
485
- "required": [
486
- "unlicensedAccess"
487
- ]
488
- }
530
+ ]
489
531
  },
490
532
  "minItems": 1
491
533
  },
@@ -78,6 +78,15 @@ export type Function2 = string;
78
78
  * The interval at which to trigger function invocation.
79
79
  */
80
80
  export type Interval = 'hour' | 'day' | 'week';
81
+ export type Foo1 = string;
82
+ /**
83
+ * The key for an extension in CaaS. That means that this is a reference to another
84
+ * extension in your descriptor / manifest.
85
+ *
86
+ * This key is defined in: https://bitbucket.org/atlassian/connect-service/src/cd7252b/service/cs-apps/api.raml#lines-1094
87
+ */
88
+ export type Endpoint1 = string;
89
+ export type Interval1 = 'hour' | 'day' | 'week';
81
90
  /**
82
91
  * The method, within the index.js function, that will be called to invoke the function.
83
92
  */
@@ -458,18 +467,34 @@ export interface Modules {
458
467
  }[]
459
468
  ];
460
469
  scheduledTrigger?: [
461
- {
462
- foo?: Foo;
463
- function: Function2;
464
- interval: Interval;
465
- key: ModuleKeySchema;
466
- },
467
- ...{
468
- foo?: Foo;
469
- function: Function2;
470
- interval: Interval;
471
- key: ModuleKeySchema;
472
- }[]
470
+ (
471
+ | {
472
+ foo?: Foo;
473
+ function: Function2;
474
+ interval: Interval;
475
+ key: ModuleKeySchema;
476
+ }
477
+ | {
478
+ foo?: Foo1;
479
+ endpoint: Endpoint1;
480
+ interval: Interval1;
481
+ key: ModuleKeySchema;
482
+ }
483
+ ),
484
+ ...(
485
+ | {
486
+ foo?: Foo;
487
+ function: Function2;
488
+ interval: Interval;
489
+ key: ModuleKeySchema;
490
+ }
491
+ | {
492
+ foo?: Foo1;
493
+ endpoint: Endpoint1;
494
+ interval: Interval1;
495
+ key: ModuleKeySchema;
496
+ }
497
+ )[]
473
498
  ];
474
499
  function?: [
475
500
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "5.5.0",
3
+ "version": "5.5.1-next.0",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {