@forge/manifest 0.0.0-experimental-e3032d7 → 0.0.0-experimental-9489df9
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 +111 -1
- package/out/index.d.ts +1 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -6
- package/out/mapping/product-event-to-scope-mapping.json +50 -0
- package/out/processor/abstract-validation-processor.d.ts +1 -1
- package/out/processor/abstract-validation-processor.d.ts.map +1 -1
- package/out/processor/abstract-validation-processor.js +10 -5
- package/out/processor/processor-interface.d.ts +1 -1
- package/out/processor/processor-interface.d.ts.map +1 -1
- package/out/schema/manifest-schema.json +1005 -116
- package/out/schema/manifest.d.ts +496 -21
- package/out/scopes/index.d.ts +1 -1
- package/out/scopes/index.d.ts.map +1 -1
- package/out/scopes/index.js +1 -1
- package/out/types/module-types.d.ts +10 -1
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +9 -0
- package/out/validators/connect-authentication-validator.d.ts +1 -1
- package/out/validators/connect-authentication-validator.d.ts.map +1 -1
- package/out/validators/connect-authentication-validator.js +1 -1
- package/out/validators/connect-modules-validator.d.ts +1 -1
- package/out/validators/connect-modules-validator.d.ts.map +1 -1
- package/out/validators/connect-modules-validator.js +1 -1
- package/out/validators/connect-remote-validator.d.ts +1 -1
- package/out/validators/connect-remote-validator.d.ts.map +1 -1
- package/out/validators/connect-remote-validator.js +1 -1
- package/out/validators/display-conditions-validator.d.ts +1 -1
- package/out/validators/display-conditions-validator.d.ts.map +1 -1
- package/out/validators/display-conditions-validator.js +1 -1
- package/out/validators/entity-property-validator.d.ts +1 -1
- package/out/validators/entity-property-validator.d.ts.map +1 -1
- package/out/validators/entity-property-validator.js +1 -1
- package/out/validators/file-validator.d.ts +1 -1
- package/out/validators/file-validator.d.ts.map +1 -1
- package/out/validators/file-validator.js +1 -1
- package/out/validators/modules-validator.d.ts +1 -1
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +1 -1
- package/out/validators/modules-validators/confluence/validateKeyboardShortcuts.d.ts.map +1 -1
- package/out/validators/permissions-validator.d.ts +1 -1
- package/out/validators/permissions-validator.d.ts.map +1 -1
- package/out/validators/permissions-validator.js +1 -1
- package/out/validators/product-trigger-scopes-validator.d.ts +1 -1
- package/out/validators/product-trigger-scopes-validator.d.ts.map +1 -1
- package/out/validators/product-trigger-scopes-validator.js +4 -4
- package/out/validators/providers-validator.d.ts +1 -1
- package/out/validators/providers-validator.d.ts.map +1 -1
- package/out/validators/providers-validator.js +1 -1
- package/out/validators/resources-validator.d.ts +1 -1
- package/out/validators/resources-validator.d.ts.map +1 -1
- package/out/validators/resources-validator.js +1 -1
- package/out/validators/schema-validator.d.ts +1 -1
- package/out/validators/schema-validator.d.ts.map +1 -1
- package/out/validators/schema-validator.js +1 -1
- package/out/validators/validator-interface.d.ts +1 -1
- package/out/validators/validator-interface.d.ts.map +1 -1
- package/out/validators/yaml-validator.d.ts +1 -1
- package/out/validators/yaml-validator.d.ts.map +1 -1
- package/out/validators/yaml-validator.js +1 -1
- package/package.json +2 -1
package/out/scopes/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export declare type RequiredScopes = {
|
|
|
3
3
|
deprecated?: string[];
|
|
4
4
|
beta?: string[];
|
|
5
5
|
};
|
|
6
|
-
export declare function getMissingScopes(existing: string[] | undefined, required: RequiredScopes): string[]
|
|
6
|
+
export declare function getMissingScopes(existing: string[] | undefined, required: RequiredScopes): Promise<string[]>;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +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,
|
|
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,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoBlH"}
|
package/out/scopes/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMissingScopes = void 0;
|
|
4
|
-
function getMissingScopes(existing, required) {
|
|
4
|
+
async function getMissingScopes(existing, required) {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
if (!(existing === null || existing === void 0 ? void 0 : existing.length)) {
|
|
7
7
|
return required.current;
|
|
@@ -31,6 +31,8 @@ export declare enum AllModuleTypes {
|
|
|
31
31
|
JiraGlobalPage = "jira:globalPage",
|
|
32
32
|
JiraDashboardGadget = "jira:dashboardGadget",
|
|
33
33
|
JiraDashboardBackgroundScript = "jira:dashboardBackgroundScript",
|
|
34
|
+
JiraGlobalPermission = "jira:globalPermission",
|
|
35
|
+
JiraProjectPermission = "jira:projectPermission",
|
|
34
36
|
CompassAdminPage = "compass:adminPage",
|
|
35
37
|
CompassComponentPage = "compass:componentPage",
|
|
36
38
|
CompassGlobalPage = "compass:globalPage",
|
|
@@ -46,6 +48,7 @@ export declare enum AllModuleTypes {
|
|
|
46
48
|
JiraServiceManagementPortalProfilePanel = "jiraServiceManagement:portalProfilePanel",
|
|
47
49
|
JiraServiceManagementPortalRequestViewAction = "jiraServiceManagement:portalRequestViewAction",
|
|
48
50
|
JiraServiceManagementPortalUserMenuAction = "jiraServiceManagement:portalUserMenuAction",
|
|
51
|
+
JiraServiceManagementPortalRequestCreatePropertyPanel = "jiraServiceManagement:portalRequestCreatePropertyPanel",
|
|
49
52
|
ConnectJiraAdminPages = "connect-jira:adminPages",
|
|
50
53
|
ConnectJiraJiraBackgroundScripts = "connect-jira:jiraBackgroundScripts",
|
|
51
54
|
ConnectJiraGeneralPages = "connect-jira:generalPages",
|
|
@@ -98,7 +101,13 @@ export declare enum AllModuleTypes {
|
|
|
98
101
|
ConnectJiraWebPanels = "connect-jira:webPanels",
|
|
99
102
|
ConnectJiraWebSections = "connect-jira:webSections",
|
|
100
103
|
ConnectJiraWebhooks = "connect-jira:webhooks",
|
|
101
|
-
ConnectConfluenceLifecycle = "connect-confluence:lifecycle"
|
|
104
|
+
ConnectConfluenceLifecycle = "connect-confluence:lifecycle",
|
|
105
|
+
AutomationForConfluenceTrigger = "automation:trigger",
|
|
106
|
+
AutomationForConfluenceAction = "automation:action",
|
|
107
|
+
AutomationForConfluenceBranch = "automation:branch",
|
|
108
|
+
AutomationForConfluenceCondition = "automation:condition",
|
|
109
|
+
AutomationForConfluenceAttributeResolver = "automation:attributeResolver",
|
|
110
|
+
AutomationForConfluenceTemplate = "automation:template"
|
|
102
111
|
}
|
|
103
112
|
export declare const SUPPORTED_MODULES: AllModuleTypes[];
|
|
104
113
|
export declare const SUPPORTED_PRODUCTS_ONLY: string[];
|
|
@@ -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,QAAQ,cAAc;IACtB,uBAAuB,6BAA6B;IACpD,2BAA2B,iCAAiC;IAC5D,qBAAqB,2BAA2B;IAChD,uBAAuB,6BAA6B;IACpD,wBAAwB,8BAA8B;IACtD,oBAAoB,0BAA0B;IAC9C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,uBAAuB,6BAA6B;IACpD,kBAAkB,wBAAwB;IAC1C,qBAAqB,2BAA2B;IAChD,qBAAqB,2BAA2B;IAChD,wBAAwB,8BAA8B;IACtD,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,uBAAuB,6BAA6B;IACpD,cAAc,oBAAoB;IAClC,mBAAmB,yBAAyB;IAC5C,6BAA6B,mCAAmC;
|
|
1
|
+
{"version":3,"file":"module-types.d.ts","sourceRoot":"","sources":["../../src/types/module-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -35,6 +35,8 @@ var AllModuleTypes;
|
|
|
35
35
|
AllModuleTypes["JiraGlobalPage"] = "jira:globalPage";
|
|
36
36
|
AllModuleTypes["JiraDashboardGadget"] = "jira:dashboardGadget";
|
|
37
37
|
AllModuleTypes["JiraDashboardBackgroundScript"] = "jira:dashboardBackgroundScript";
|
|
38
|
+
AllModuleTypes["JiraGlobalPermission"] = "jira:globalPermission";
|
|
39
|
+
AllModuleTypes["JiraProjectPermission"] = "jira:projectPermission";
|
|
38
40
|
AllModuleTypes["CompassAdminPage"] = "compass:adminPage";
|
|
39
41
|
AllModuleTypes["CompassComponentPage"] = "compass:componentPage";
|
|
40
42
|
AllModuleTypes["CompassGlobalPage"] = "compass:globalPage";
|
|
@@ -50,6 +52,7 @@ var AllModuleTypes;
|
|
|
50
52
|
AllModuleTypes["JiraServiceManagementPortalProfilePanel"] = "jiraServiceManagement:portalProfilePanel";
|
|
51
53
|
AllModuleTypes["JiraServiceManagementPortalRequestViewAction"] = "jiraServiceManagement:portalRequestViewAction";
|
|
52
54
|
AllModuleTypes["JiraServiceManagementPortalUserMenuAction"] = "jiraServiceManagement:portalUserMenuAction";
|
|
55
|
+
AllModuleTypes["JiraServiceManagementPortalRequestCreatePropertyPanel"] = "jiraServiceManagement:portalRequestCreatePropertyPanel";
|
|
53
56
|
AllModuleTypes["ConnectJiraAdminPages"] = "connect-jira:adminPages";
|
|
54
57
|
AllModuleTypes["ConnectJiraJiraBackgroundScripts"] = "connect-jira:jiraBackgroundScripts";
|
|
55
58
|
AllModuleTypes["ConnectJiraGeneralPages"] = "connect-jira:generalPages";
|
|
@@ -103,6 +106,12 @@ var AllModuleTypes;
|
|
|
103
106
|
AllModuleTypes["ConnectJiraWebSections"] = "connect-jira:webSections";
|
|
104
107
|
AllModuleTypes["ConnectJiraWebhooks"] = "connect-jira:webhooks";
|
|
105
108
|
AllModuleTypes["ConnectConfluenceLifecycle"] = "connect-confluence:lifecycle";
|
|
109
|
+
AllModuleTypes["AutomationForConfluenceTrigger"] = "automation:trigger";
|
|
110
|
+
AllModuleTypes["AutomationForConfluenceAction"] = "automation:action";
|
|
111
|
+
AllModuleTypes["AutomationForConfluenceBranch"] = "automation:branch";
|
|
112
|
+
AllModuleTypes["AutomationForConfluenceCondition"] = "automation:condition";
|
|
113
|
+
AllModuleTypes["AutomationForConfluenceAttributeResolver"] = "automation:attributeResolver";
|
|
114
|
+
AllModuleTypes["AutomationForConfluenceTemplate"] = "automation:template";
|
|
106
115
|
})(AllModuleTypes = exports.AllModuleTypes || (exports.AllModuleTypes = {}));
|
|
107
116
|
exports.SUPPORTED_MODULES = Object.values(AllModuleTypes);
|
|
108
117
|
exports.SUPPORTED_PRODUCTS_ONLY = [...new Set(exports.SUPPORTED_MODULES.map((module) => module.split(':')[0]))];
|
|
@@ -2,6 +2,6 @@ import { ValidatorInterface } from './validator-interface';
|
|
|
2
2
|
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
3
3
|
import { ManifestSchema } from '../schema/manifest';
|
|
4
4
|
export declare class ConnectAuthenticationValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
5
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=connect-authentication-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-authentication-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-authentication-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,8BACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-authentication-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-authentication-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,8BACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA0BrD"}
|
|
@@ -4,7 +4,7 @@ exports.ConnectAuthenticationValidator = void 0;
|
|
|
4
4
|
const text_1 = require("../text");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
class ConnectAuthenticationValidator {
|
|
7
|
-
validate(manifest) {
|
|
7
|
+
async validate(manifest) {
|
|
8
8
|
var _a, _b;
|
|
9
9
|
if (!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a.app)) {
|
|
10
10
|
return {
|
|
@@ -2,6 +2,6 @@ import { ManifestObject, ManifestValidationResult } from '../types';
|
|
|
2
2
|
import { ManifestSchema } from '../schema/manifest';
|
|
3
3
|
import { ValidatorInterface } from './validator-interface';
|
|
4
4
|
export declare class ConnectModulesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
5
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=connect-modules-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGxG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,uBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGxG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,uBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA0ErD"}
|
|
@@ -5,7 +5,7 @@ const types_1 = require("../types");
|
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const text_1 = require("../text");
|
|
7
7
|
class ConnectModulesValidator {
|
|
8
|
-
validate(manifest) {
|
|
8
|
+
async validate(manifest) {
|
|
9
9
|
if (!manifest || !manifest.typedContent || !manifest.filePath) {
|
|
10
10
|
return {
|
|
11
11
|
success: false,
|
|
@@ -2,6 +2,6 @@ import { ValidatorInterface } from './validator-interface';
|
|
|
2
2
|
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
3
3
|
import { ManifestSchema } from '../schema/manifest';
|
|
4
4
|
export declare class ConnectRemoteValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
5
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=connect-remote-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-remote-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-remote-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,sBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"connect-remote-validator.d.ts","sourceRoot":"","sources":["../../src/validators/connect-remote-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,qBAAa,sBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAwCrD"}
|
|
@@ -4,7 +4,7 @@ exports.ConnectRemoteValidator = void 0;
|
|
|
4
4
|
const text_1 = require("../text");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
class ConnectRemoteValidator {
|
|
7
|
-
validate(manifest) {
|
|
7
|
+
async validate(manifest) {
|
|
8
8
|
var _a, _b, _c, _d, _e;
|
|
9
9
|
if (!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a.app)) {
|
|
10
10
|
return {
|
|
@@ -9,6 +9,6 @@ export declare class DisplayConditionsValidator<T> implements ValidatorInterface
|
|
|
9
9
|
constructor(schema: object);
|
|
10
10
|
flattenDisplayConditions(moduleKey: string, displayConditions: any, nesting?: number): any;
|
|
11
11
|
toValidationError(message: string): ValidationError;
|
|
12
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
12
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=display-conditions-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display-conditions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/display-conditions-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAErG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,0BAA0B,CAAC,CAAC,CACvC,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAK7E,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IACtD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2B;gBAElC,MAAM,EAAE,MAAM;IAoE3C,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,OAAO,SAAI,GAAG,GAAG;IA2BrF,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;
|
|
1
|
+
{"version":3,"file":"display-conditions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/display-conditions-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAErG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,0BAA0B,CAAC,CAAC,CACvC,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAK7E,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;IACtD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2B;gBAElC,MAAM,EAAE,MAAM;IAoE3C,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,EAAE,OAAO,SAAI,GAAG,GAAG;IA2BrF,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;IAU7C,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAuFrD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidatorInterface } from './validator-interface';
|
|
2
2
|
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
3
3
|
export declare class EntityPropertyValidator<T> implements ValidatorInterface<ManifestObject<T> | undefined, T> {
|
|
4
|
-
validate(manifest: ManifestObject<T> | undefined): ManifestValidationResult<T
|
|
4
|
+
validate(manifest: ManifestObject<T> | undefined): Promise<ManifestValidationResult<T>>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=entity-property-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-property-validator.d.ts","sourceRoot":"","sources":["../../src/validators/entity-property-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AASrG,qBAAa,uBAAuB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-property-validator.d.ts","sourceRoot":"","sources":["../../src/validators/entity-property-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AASrG,qBAAa,uBAAuB,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAoC9F"}
|
|
@@ -9,7 +9,7 @@ const isManifestWithModules = (manifest) => {
|
|
|
9
9
|
return !!((_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a['modules']);
|
|
10
10
|
};
|
|
11
11
|
class EntityPropertyValidator {
|
|
12
|
-
validate(manifest) {
|
|
12
|
+
async validate(manifest) {
|
|
13
13
|
var _a;
|
|
14
14
|
if (!(manifest === null || manifest === void 0 ? void 0 : manifest.typedContent)) {
|
|
15
15
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ManifestValidationResult } from '../types';
|
|
2
2
|
import { ValidatorInterface } from './validator-interface';
|
|
3
3
|
export declare class FileValidator<T> implements ValidatorInterface<string | undefined, T> {
|
|
4
|
-
validate(manifest: string | undefined): ManifestValidationResult<T
|
|
4
|
+
validate(manifest: string | undefined): Promise<ManifestValidationResult<T>>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=file-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-validator.d.ts","sourceRoot":"","sources":["../../src/validators/file-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"file-validator.d.ts","sourceRoot":"","sources":["../../src/validators/file-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,CAAC;IAC1E,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAuBnF"}
|
|
@@ -6,7 +6,7 @@ const types_1 = require("../types");
|
|
|
6
6
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
7
7
|
const text_1 = require("../text");
|
|
8
8
|
class FileValidator {
|
|
9
|
-
validate(manifest) {
|
|
9
|
+
async validate(manifest) {
|
|
10
10
|
const file = manifest || types_1.MANIFEST_FILE;
|
|
11
11
|
if (!fs_1.default.existsSync(file)) {
|
|
12
12
|
return {
|
|
@@ -3,6 +3,6 @@ import { ManifestSchema } from '../schema/manifest';
|
|
|
3
3
|
import { ValidatorInterface } from './validator-interface';
|
|
4
4
|
export declare class ModulesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
5
|
private functionHandlerRegex;
|
|
6
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
6
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=modules-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAGxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAA0C;
|
|
1
|
+
{"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAGxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAA0C;IAEhE,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA6OrD"}
|
|
@@ -12,7 +12,7 @@ class ModulesValidator {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
this.functionHandlerRegex = /^([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)$/;
|
|
14
14
|
}
|
|
15
|
-
validate(manifest) {
|
|
15
|
+
async validate(manifest) {
|
|
16
16
|
var _a, _b;
|
|
17
17
|
if (!manifest || !manifest.typedContent || !manifest.filePath) {
|
|
18
18
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/confluence/validateKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"validateKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/confluence/validateKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAwHnD,eAAO,MAAM,yBAAyB,eAAgB,OAAO,+CAAiC,eAAe,EAwB5G,CAAC"}
|
|
@@ -8,6 +8,6 @@ export declare class PermissionsValidator implements ValidatorInterface<Manifest
|
|
|
8
8
|
private isValidHash;
|
|
9
9
|
private addValidationErrors;
|
|
10
10
|
private validateExternalPermissionURLs;
|
|
11
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
11
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=permissions-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,gBAAgB,CAAoB;;IAM5C,OAAO,CAAC,UAAU;IA+BlB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,8BAA8B;
|
|
1
|
+
{"version":3,"file":"permissions-validator.d.ts","sourceRoot":"","sources":["../../src/validators/permissions-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAM3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,gBAAgB,CAAoB;;IAM5C,OAAO,CAAC,UAAU;IA+BlB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,8BAA8B;IAWhC,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA8FrD"}
|
|
@@ -57,7 +57,7 @@ class PermissionsValidator {
|
|
|
57
57
|
this.addValidationErrors(extPermType, invalidPerms, manifest);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
validate(manifest) {
|
|
60
|
+
async validate(manifest) {
|
|
61
61
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
62
62
|
if (!manifest || !manifest.typedContent || !manifest.typedContent.permissions) {
|
|
63
63
|
return {
|
|
@@ -12,6 +12,6 @@ export interface MappingConfig {
|
|
|
12
12
|
export declare class ProductTriggerScopesValidator<T> implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
13
13
|
private readonly config;
|
|
14
14
|
constructor(config: MappingConfig);
|
|
15
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
15
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=product-trigger-scopes-validator.d.ts.map
|
|
@@ -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;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;
|
|
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;IAE5C,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAoDrD"}
|
|
@@ -8,7 +8,7 @@ class ProductTriggerScopesValidator {
|
|
|
8
8
|
constructor(config) {
|
|
9
9
|
this.config = config;
|
|
10
10
|
}
|
|
11
|
-
validate(manifest) {
|
|
11
|
+
async validate(manifest) {
|
|
12
12
|
var _a;
|
|
13
13
|
if (!manifest || !manifest.typedContent) {
|
|
14
14
|
return {
|
|
@@ -34,13 +34,13 @@ class ProductTriggerScopesValidator {
|
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
const manifestScopes = ((_a = manifest.typedContent.permissions) === null || _a === void 0 ? void 0 : _a.scopes) || [];
|
|
37
|
-
manifest.typedContent.modules.trigger
|
|
37
|
+
for (const element of manifest.typedContent.modules.trigger) {
|
|
38
38
|
for (const event of element.events) {
|
|
39
39
|
const requiredScopes = getRequiredScopes(event);
|
|
40
|
-
const missingScopes = scopes_1.getMissingScopes(manifestScopes, requiredScopes);
|
|
40
|
+
const missingScopes = await scopes_1.getMissingScopes(manifestScopes, requiredScopes);
|
|
41
41
|
missingScopes.forEach((scope) => addValidationError(scope, event));
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
44
|
return {
|
|
45
45
|
success: validationErrors.length === 0,
|
|
46
46
|
manifestObject: manifest,
|
|
@@ -2,7 +2,7 @@ import { ManifestObject, ManifestValidationResult } from '../types';
|
|
|
2
2
|
import type { ManifestSchema } from '../schema/manifest';
|
|
3
3
|
import { ValidatorInterface } from './validator-interface';
|
|
4
4
|
export declare class ProvidersValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
5
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
6
6
|
private isActionValidRemote;
|
|
7
7
|
private isValidProfileRetrieverFunction;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers-validator.d.ts","sourceRoot":"","sources":["../../src/validators/providers-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"providers-validator.d.ts","sourceRoot":"","sources":["../../src/validators/providers-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IA0EpD,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,+BAA+B;CAiBxC"}
|
|
@@ -4,7 +4,7 @@ exports.ProvidersValidator = void 0;
|
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
5
|
const text_1 = require("../text");
|
|
6
6
|
class ProvidersValidator {
|
|
7
|
-
validate(manifest) {
|
|
7
|
+
async validate(manifest) {
|
|
8
8
|
if (!manifest || !manifest.typedContent || !manifest.typedContent.providers) {
|
|
9
9
|
return {
|
|
10
10
|
success: true,
|
|
@@ -2,6 +2,6 @@ import { ManifestObject, ManifestValidationResult } from '../types';
|
|
|
2
2
|
import { ManifestSchema } from '../schema/manifest';
|
|
3
3
|
import { ValidatorInterface } from './validator-interface';
|
|
4
4
|
export declare class ResourcesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
-
validate(manifest: ManifestObject<ManifestSchema> | undefined): ManifestValidationResult<ManifestSchema
|
|
5
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=resources-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"resources-validator.d.ts","sourceRoot":"","sources":["../../src/validators/resources-validator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,kBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAgIrD"}
|
|
@@ -10,7 +10,7 @@ const text_1 = require("../text");
|
|
|
10
10
|
const utils_2 = require("../utils");
|
|
11
11
|
const MAX_RESOURCE_COUNT = 10;
|
|
12
12
|
class ResourcesValidator {
|
|
13
|
-
validate(manifest) {
|
|
13
|
+
async validate(manifest) {
|
|
14
14
|
if (!manifest || !manifest.typedContent || !manifest.filePath) {
|
|
15
15
|
return {
|
|
16
16
|
success: false,
|
|
@@ -11,6 +11,6 @@ export declare class SchemaValidator<T> implements ValidatorInterface<ManifestOb
|
|
|
11
11
|
private getDeprecationInfo;
|
|
12
12
|
private handleDeprecatedField;
|
|
13
13
|
private handleError;
|
|
14
|
-
validate(manifest: ManifestObject<T> | undefined): ManifestValidationResult<T
|
|
14
|
+
validate(manifest: ManifestObject<T> | undefined): Promise<ManifestValidationResult<T>>;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=schema-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAA0C,MAAM,UAAU,CAAC;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAGjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;gBAEzB,MAAM,EAAE,MAAM;IAK3C,OAAO,CAAC,mBAAmB,CA4BzB;IAEF,OAAO,CAAC,iBAAiB,CAyBvB;IAEF,OAAO,CAAC,kBAAkB,CAyBxB;IAEF,OAAO,CAAC,iBAAiB,CAKvB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB,CAa3B;IAEF,OAAO,CAAC,WAAW,CAcjB;
|
|
1
|
+
{"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAA0C,MAAM,UAAU,CAAC;AAG5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,eAAe,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IAGjF,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAuB;gBAEzB,MAAM,EAAE,MAAM;IAK3C,OAAO,CAAC,mBAAmB,CA4BzB;IAEF,OAAO,CAAC,iBAAiB,CAyBvB;IAEF,OAAO,CAAC,kBAAkB,CAyBxB;IAEF,OAAO,CAAC,iBAAiB,CAKvB;IAEF,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,qBAAqB,CAa3B;IAEF,OAAO,CAAC,WAAW,CAcjB;IAEI,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkD9F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManifestValidationResult } from '../types';
|
|
2
2
|
export interface ValidatorInterface<I, O> {
|
|
3
|
-
validate(manifest: I): ManifestValidationResult<O
|
|
3
|
+
validate(manifest: I): Promise<ManifestValidationResult<O>>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=validator-interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator-interface.d.ts","sourceRoot":"","sources":["../../src/validators/validator-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"validator-interface.d.ts","sourceRoot":"","sources":["../../src/validators/validator-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC7D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
2
2
|
import { ValidatorInterface } from './validator-interface';
|
|
3
3
|
export declare class YamlValidator<T> implements ValidatorInterface<ManifestObject<T> | undefined, T> {
|
|
4
|
-
validate(manifest: ManifestObject<T> | undefined): ManifestValidationResult<T
|
|
4
|
+
validate(manifest: ManifestObject<T> | undefined): Promise<ManifestValidationResult<T>>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=yaml-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yaml-validator.d.ts","sourceRoot":"","sources":["../../src/validators/yaml-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"yaml-validator.d.ts","sourceRoot":"","sources":["../../src/validators/yaml-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;IACrF,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkD9F"}
|
|
@@ -6,7 +6,7 @@ const js_yaml_1 = tslib_1.__importStar(require("js-yaml"));
|
|
|
6
6
|
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
7
7
|
const text_1 = require("../text");
|
|
8
8
|
class YamlValidator {
|
|
9
|
-
validate(manifest) {
|
|
9
|
+
async validate(manifest) {
|
|
10
10
|
if (!manifest || !manifest.filePath) {
|
|
11
11
|
return {
|
|
12
12
|
success: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/manifest",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-9489df9",
|
|
4
4
|
"description": "Definitions and validations of the Forge manifest",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"author": "Atlassian",
|
|
24
24
|
"license": "UNLICENSED",
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@forge/util": "1.2.0",
|
|
26
27
|
"ajv": "^6.12.5",
|
|
27
28
|
"cheerio": "^0.22.0",
|
|
28
29
|
"js-yaml": "^3.13.1",
|