@forge/manifest 4.20.4-next.4 → 5.0.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 +34 -0
- package/out/schema/manifest-schema.json +46 -0
- package/out/schema/manifest.d.ts +22 -0
- package/out/text/errors.d.ts +3 -0
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +3 -0
- package/out/types/module-types.d.ts +1 -0
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +1 -0
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +2 -0
- package/out/validators/modules-validators/remote/index.d.ts +4 -0
- package/out/validators/modules-validators/remote/index.d.ts.map +1 -0
- package/out/validators/modules-validators/remote/index.js +10 -0
- package/out/validators/modules-validators/remote/validate-storage-operation.d.ts +4 -0
- package/out/validators/modules-validators/remote/validate-storage-operation.d.ts.map +1 -0
- package/out/validators/modules-validators/remote/validate-storage-operation.js +19 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- b33441d: Include modules remote validation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- a3d620b: Bumping dependencies via Renovate:
|
|
12
|
+
|
|
13
|
+
- @types/jest
|
|
14
|
+
|
|
15
|
+
- c4b3c64: Bumping dependencies via Renovate:
|
|
16
|
+
|
|
17
|
+
- @types/node-fetch
|
|
18
|
+
|
|
19
|
+
- 821b018: Bumping dependencies via Renovate:
|
|
20
|
+
|
|
21
|
+
- @types/js-yaml
|
|
22
|
+
|
|
23
|
+
- 22dd4316: Update manifest definitions
|
|
24
|
+
- 1d53ee6: Bumping dependencies via Renovate:
|
|
25
|
+
|
|
26
|
+
- typescript-json-schema
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [b5342a9]
|
|
29
|
+
- @forge/util@1.3.3
|
|
30
|
+
|
|
31
|
+
## 5.0.0-next.5
|
|
32
|
+
|
|
33
|
+
### Major Changes
|
|
34
|
+
|
|
35
|
+
- b33441d: Include modules remote validation
|
|
36
|
+
|
|
3
37
|
## 4.20.4-next.4
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -652,6 +652,52 @@
|
|
|
652
652
|
},
|
|
653
653
|
"minItems": 1
|
|
654
654
|
},
|
|
655
|
+
"remote": {
|
|
656
|
+
"type": "array",
|
|
657
|
+
"items": {
|
|
658
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
659
|
+
"additionalProperties": true,
|
|
660
|
+
"description": "A Forge Remote definition.",
|
|
661
|
+
"properties": {
|
|
662
|
+
"baseUrl": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
},
|
|
665
|
+
"operations": {
|
|
666
|
+
"type": "array",
|
|
667
|
+
"items": {
|
|
668
|
+
"enum": [
|
|
669
|
+
"storage",
|
|
670
|
+
"other",
|
|
671
|
+
"compute"
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
"minItems": 1
|
|
675
|
+
},
|
|
676
|
+
"storage": {
|
|
677
|
+
"type": "object",
|
|
678
|
+
"properties": {
|
|
679
|
+
"inScopeEUD": {
|
|
680
|
+
"type": "boolean"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"key": {
|
|
685
|
+
"$ref": "#/definitions/ModuleKeySchema"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"required": [
|
|
689
|
+
"baseUrl",
|
|
690
|
+
"key"
|
|
691
|
+
],
|
|
692
|
+
"type": "object",
|
|
693
|
+
"not": {
|
|
694
|
+
"required": [
|
|
695
|
+
"unlicensedAccess"
|
|
696
|
+
]
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"minItems": 1
|
|
700
|
+
},
|
|
655
701
|
"macro": {
|
|
656
702
|
"type": "array",
|
|
657
703
|
"items": {
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -585,6 +585,28 @@ export interface Modules {
|
|
|
585
585
|
[k: string]: unknown;
|
|
586
586
|
}[]
|
|
587
587
|
];
|
|
588
|
+
remote?: [
|
|
589
|
+
{
|
|
590
|
+
baseUrl: string;
|
|
591
|
+
operations?: ['storage' | 'other' | 'compute', ...('storage' | 'other' | 'compute')[]];
|
|
592
|
+
storage?: {
|
|
593
|
+
inScopeEUD?: boolean;
|
|
594
|
+
[k: string]: unknown;
|
|
595
|
+
};
|
|
596
|
+
key: ModuleKeySchema;
|
|
597
|
+
[k: string]: unknown;
|
|
598
|
+
},
|
|
599
|
+
...{
|
|
600
|
+
baseUrl: string;
|
|
601
|
+
operations?: ['storage' | 'other' | 'compute', ...('storage' | 'other' | 'compute')[]];
|
|
602
|
+
storage?: {
|
|
603
|
+
inScopeEUD?: boolean;
|
|
604
|
+
[k: string]: unknown;
|
|
605
|
+
};
|
|
606
|
+
key: ModuleKeySchema;
|
|
607
|
+
[k: string]: unknown;
|
|
608
|
+
}[]
|
|
609
|
+
];
|
|
588
610
|
macro?: [
|
|
589
611
|
(
|
|
590
612
|
| {
|
package/out/text/errors.d.ts
CHANGED
|
@@ -94,6 +94,9 @@ export declare const errors: {
|
|
|
94
94
|
filteringWorksOnlyWithJiraEvents: () => string;
|
|
95
95
|
endpointOnlySupportSystemToken: (productEventKey: string, endpointModuleKey: string) => string;
|
|
96
96
|
};
|
|
97
|
+
remote: {
|
|
98
|
+
missingModuleRemoteStorageInScopeEUD: (key: string) => string;
|
|
99
|
+
};
|
|
97
100
|
};
|
|
98
101
|
resources: {
|
|
99
102
|
missingResource: (folder: string, key: string) => string;
|
package/out/text/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/text/errors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,M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BAA8B;IAC3C,OAAO,0BAA0B;IACjC,cAAc,kCAAkC;IAChD,mBAAmB,0BAA0B;IAC7C,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;IACjC,eAAe,0BAA0B;CAC1C"}
|
package/out/text/errors.js
CHANGED
|
@@ -107,6 +107,9 @@ exports.errors = {
|
|
|
107
107
|
trigger: {
|
|
108
108
|
filteringWorksOnlyWithJiraEvents: () => `Trigger filtering works only with Jira events`,
|
|
109
109
|
endpointOnlySupportSystemToken: (productEventKey, endpointModuleKey) => `Trigger module: '${productEventKey}' using remote endpoint: '${endpointModuleKey}' only supports appSystemToken. Update appUserToken to false.`
|
|
110
|
+
},
|
|
111
|
+
remote: {
|
|
112
|
+
missingModuleRemoteStorageInScopeEUD: (key) => `missing storage.inScopeEUD in ${key} module. storage.inScopeEUD is required if storage is present in operations.`
|
|
110
113
|
}
|
|
111
114
|
},
|
|
112
115
|
resources: {
|
|
@@ -6,6 +6,7 @@ export declare enum AllModuleTypes {
|
|
|
6
6
|
CoreScheduledTrigger = "core:scheduledTrigger",
|
|
7
7
|
CoreEndpoint = "core:endpoint",
|
|
8
8
|
CoreMigration = "core:migration",
|
|
9
|
+
CoreRemote = "core:remote",
|
|
9
10
|
XenMacro = "xen:macro",
|
|
10
11
|
ConfluenceContentAction = "confluence:contentAction",
|
|
11
12
|
ConfluenceContentBylineItem = "confluence:contentBylineItem",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-types.d.ts","sourceRoot":"","sources":["../../src/types/module-types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,oBAAoB,0BAA0B;IAC9C,YAAY,kBAAkB;IAC9B,aAAa,mBAAmB;IAChC,QAAQ,cAAc;IACtB,uBAAuB,6BAA6B;IACpD,2BAA2B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AgC;IACzD,0BAA0B,iCAAiC;IAC3D,4BAA4B,mCAAmC;IAC/D,yBAAyB,gCAAgC;IACzD,wBAAwB,+BAA+B;IACvD,kBAAkB,yBAAyB;IAC3C,gCAAgC,uCAAuC;IACvE,qCAAqC,4CAA4C;IACjF,8BAA8B,qCAAqC;IACnE,+BAA+B,sCAAsC;IACrE,sCAAsC,6CAA6C;IACnF,4BAA4B,mCAAmC;IAC/D,6BAA6B,oCAAoC;IACjE,yBAAyB,gCAAgC;IACzD,2BAA2B,kCAAkC;IAC7D,iCAAiC,wCAAwC;IACzE,sBAAsB,6BAA6B;IACnD,iCAAiC,wCAAwC;IACzE,oCAAoC,2CAA2C;IAC/E,iCAAiC,wCAAwC;IACzE,0BAA0B,iCAAiC;IAC3D,oBAAoB,2BAA2B;IAC/C,sBAAsB,6BAA6B;IACnD,mBAAmB,0BAA0B;IAC7C,0BAA0B,iCAAiC;IAC3D,8BAA8B,uBAAuB;IACrD,6BAA6B,sBAAsB;IACnD,6BAA6B,sBAAsB;IACnD,gCAAgC,yBAAyB;IACzD,wCAAwC,iCAAiC;IACzE,+BAA+B,wBAAwB;IACvD,2BAA2B,oBAAoB;CAChD;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
|
|
@@ -10,6 +10,7 @@ var AllModuleTypes;
|
|
|
10
10
|
AllModuleTypes["CoreScheduledTrigger"] = "core:scheduledTrigger";
|
|
11
11
|
AllModuleTypes["CoreEndpoint"] = "core:endpoint";
|
|
12
12
|
AllModuleTypes["CoreMigration"] = "core:migration";
|
|
13
|
+
AllModuleTypes["CoreRemote"] = "core:remote";
|
|
13
14
|
AllModuleTypes["XenMacro"] = "xen:macro";
|
|
14
15
|
AllModuleTypes["ConfluenceContentAction"] = "confluence:contentAction";
|
|
15
16
|
AllModuleTypes["ConfluenceContentBylineItem"] = "confluence:contentBylineItem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EAIzB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EAIzB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,cAAc,EAAoB,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAS3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEzF,OAAO,CAAC,oBAAoB,CAA0C;IAEhE,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAyOpD,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,uBAAuB;IAY/B,OAAO,CAAC,mBAAmB;CAiE5B"}
|
|
@@ -10,6 +10,7 @@ const ui_modifications_1 = require("./modules-validators/jira/ui-modifications")
|
|
|
10
10
|
const confluence_1 = require("./modules-validators/confluence");
|
|
11
11
|
const validate_full_admin_page_1 = require("./modules-validators/jira/validate-full-admin-page");
|
|
12
12
|
const validate_subpages_in_module_1 = require("./modules-validators/jira/validate-subpages-in-module");
|
|
13
|
+
const remote_1 = require("./modules-validators/remote");
|
|
13
14
|
class ModulesValidator {
|
|
14
15
|
constructor() {
|
|
15
16
|
this.functionHandlerRegex = /^([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)$/;
|
|
@@ -122,6 +123,7 @@ class ModulesValidator {
|
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
});
|
|
126
|
+
validationErrors.push(...(0, remote_1.validateRemoteModules)(modules, yamlContentByLine));
|
|
125
127
|
}
|
|
126
128
|
return {
|
|
127
129
|
success: validationErrors.length === 0,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/remote/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGnD,eAAO,MAAM,qBAAqB,YAAa,OAAO,sBAAsB,MAAM,EAAE,KAAG,eAAe,EASrG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateRemoteModules = void 0;
|
|
4
|
+
const validate_storage_operation_1 = require("./validate-storage-operation");
|
|
5
|
+
const validateRemoteModules = (modules, yamlContentByLine) => {
|
|
6
|
+
const validationErrors = [];
|
|
7
|
+
validationErrors.push(...(0, validate_storage_operation_1.validateStorageOperation)(modules, yamlContentByLine));
|
|
8
|
+
return validationErrors;
|
|
9
|
+
};
|
|
10
|
+
exports.validateRemoteModules = validateRemoteModules;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ValidationError } from '../../../types';
|
|
2
|
+
import { Modules } from '../../../schema/manifest';
|
|
3
|
+
export declare const validateStorageOperation: (allModules: Modules, yamlContentByLine?: string[]) => ValidationError[];
|
|
4
|
+
//# sourceMappingURL=validate-storage-operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-storage-operation.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/remote/validate-storage-operation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,eAAO,MAAM,wBAAwB,eAAgB,OAAO,sBAAsB,MAAM,EAAE,KAAG,eAAe,EAgB3G,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateStorageOperation = void 0;
|
|
4
|
+
const module_key_cleaner_1 = require("../../../utils/module-key-cleaner");
|
|
5
|
+
const types_1 = require("../../../types");
|
|
6
|
+
const text_1 = require("../../../text");
|
|
7
|
+
const utils_1 = require("../../../utils");
|
|
8
|
+
const validateStorageOperation = (allModules, yamlContentByLine) => {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const validationErrors = [];
|
|
11
|
+
const remotes = allModules[(0, module_key_cleaner_1.cleanKey)(types_1.AllModuleTypes.CoreRemote)];
|
|
12
|
+
for (const remote of remotes !== null && remotes !== void 0 ? remotes : []) {
|
|
13
|
+
if (((_a = remote.operations) === null || _a === void 0 ? void 0 : _a.includes('storage')) && !((_b = remote.storage) === null || _b === void 0 ? void 0 : _b.inScopeEUD)) {
|
|
14
|
+
validationErrors.push(Object.assign({ message: text_1.errors.modules.remote.missingModuleRemoteStorageInScopeEUD(remote.key), reference: text_1.References.Modules, level: 'error' }, (0, utils_1.findPosition)(remote.key, yamlContentByLine)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return validationErrors;
|
|
18
|
+
};
|
|
19
|
+
exports.validateStorageOperation = validateStorageOperation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/manifest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Definitions and validations of the Forge manifest",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "Atlassian",
|
|
24
24
|
"license": "UNLICENSED",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@forge/util": "1.3.3
|
|
26
|
+
"@forge/util": "1.3.3",
|
|
27
27
|
"ajv": "^8.12.0",
|
|
28
28
|
"cheerio": "^0.22.0",
|
|
29
29
|
"js-yaml": "^4.1.0",
|