@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 +6 -0
- package/out/schema/manifest-schema.json +75 -33
- package/out/schema/manifest.d.ts +37 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -450,42 +450,84 @@
|
|
|
450
450
|
"type": "array",
|
|
451
451
|
"items": {
|
|
452
452
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
453
|
-
"
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
"
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
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
|
-
"
|
|
472
|
-
"
|
|
485
|
+
"type": "object",
|
|
486
|
+
"not": {
|
|
487
|
+
"required": [
|
|
488
|
+
"unlicensedAccess"
|
|
489
|
+
]
|
|
490
|
+
}
|
|
473
491
|
},
|
|
474
|
-
|
|
475
|
-
"
|
|
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
|
},
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -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
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
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
|
{
|