@forge/manifest 13.7.1-next.2 → 13.8.0-next.11
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 +54 -0
- package/out/mapping/module-to-scope-mapping.d.ts.map +1 -1
- package/out/mapping/module-to-scope-mapping.js +2 -1
- package/out/schema/display-conditions-schema.json +37 -0
- package/out/schema/manifest-schema.json +397 -262
- package/out/schema/manifest.d.ts +216 -116
- package/out/text/errors.d.ts +1 -9
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +1 -9
- package/out/types/display-condition-types.d.ts +8 -0
- package/out/types/display-condition-types.d.ts.map +1 -1
- package/out/types/module-types.d.ts +2 -2
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +2 -2
- package/out/validators/display-conditions-validator.d.ts +2 -0
- package/out/validators/display-conditions-validator.d.ts.map +1 -1
- package/out/validators/display-conditions-validator.js +20 -1
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +1 -2
- package/out/validators/modules-validators/bitbucket/validateBackendModuleEndpoints.d.ts.map +1 -1
- package/out/validators/modules-validators/bitbucket/validateBackendModuleEndpoints.js +4 -1
- package/out/validators/modules-validators/confluence/index.d.ts.map +1 -1
- package/out/validators/modules-validators/confluence/index.js +1 -8
- package/package.json +1 -1
- package/out/validators/modules-validators/confluence/validateFullPage.d.ts +0 -4
- package/out/validators/modules-validators/confluence/validateFullPage.d.ts.map +0 -1
- package/out/validators/modules-validators/confluence/validateFullPage.js +0 -30
- package/out/validators/modules-validators/jira/validate-full-page-module.d.ts +0 -4
- package/out/validators/modules-validators/jira/validate-full-page-module.d.ts.map +0 -1
- package/out/validators/modules-validators/jira/validate-full-page-module.js +0 -51
|
@@ -16,6 +16,7 @@ export declare enum AllModuleTypes {
|
|
|
16
16
|
CoreOs = "core:objectStore",
|
|
17
17
|
CoreLlm = "core:llm",
|
|
18
18
|
CorePreUninstall = "core:preUninstall",
|
|
19
|
+
CorePreSuspend = "core:preSuspend",
|
|
19
20
|
CoreConnectToForgeMigration = "core:connectToForgeMigration",
|
|
20
21
|
XenMacro = "xen:macro",
|
|
21
22
|
DataResidencyMigration = "migration:dataResidency",
|
|
@@ -34,7 +35,6 @@ export declare enum AllModuleTypes {
|
|
|
34
35
|
ConfluenceSpaceSettings = "confluence:spaceSettings",
|
|
35
36
|
ConfluenceBackgroundScript = "confluence:backgroundScript",
|
|
36
37
|
ConfluencePageBanner = "confluence:pageBanner",
|
|
37
|
-
ConfluenceFullPage = "confluence:fullPage",
|
|
38
38
|
ConfluenceContentProperty = "confluence:contentProperty",
|
|
39
39
|
JiraEntityProperty = "jira:entityProperty",
|
|
40
40
|
JiraEntityPropertySet = "jira:entityPropertySet",
|
|
@@ -68,7 +68,6 @@ export declare enum AllModuleTypes {
|
|
|
68
68
|
JiraSprintAction = "jira:sprintAction",
|
|
69
69
|
JiraCommand = "jira:command",
|
|
70
70
|
JiraGlobalBackgroundScript = "jira:globalBackgroundScript",
|
|
71
|
-
JiraFullPage = "jira:fullPage",
|
|
72
71
|
CompassAdminPage = "compass:adminPage",
|
|
73
72
|
CompassComponentPage = "compass:componentPage",
|
|
74
73
|
CompassGlobalPage = "compass:globalPage",
|
|
@@ -104,6 +103,7 @@ export declare enum AllModuleTypes {
|
|
|
104
103
|
BitbucketWorkspacePersonalSettingsPage = "bitbucket:workspacePersonalSettingsPage",
|
|
105
104
|
BitbucketWorkspaceSettingsMenuPage = "bitbucket:workspaceSettingsMenuPage",
|
|
106
105
|
BitbucketMergeCheck = "bitbucket:mergeCheck",
|
|
106
|
+
BitbucketDeploymentCheck = "bitbucket:deploymentCheck",
|
|
107
107
|
BitbucketDynamicPipelinesProvider = "bitbucket:dynamicPipelinesProvider",
|
|
108
108
|
ConnectJiraAdminPages = "connect-jira:adminPages",
|
|
109
109
|
ConnectJiraJiraBackgroundScripts = "connect-jira:jiraBackgroundScripts",
|
|
@@ -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,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;IACtC,oBAAoB,0BAA0B;IAC9C,YAAY,kBAAkB;IAC9B,aAAa,mBAAmB;IAChC,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,OAAO,aAAa;IACpB,MAAM,qBAAqB;IAC3B,OAAO,aAAa;IACpB,gBAAgB,sBAAsB;IACtC,2BAA2B,iCAAiC;IAC5D,QAAQ,cAAc;IACtB,sBAAsB,4BAA4B;IAClD,gBAAgB,sBAAsB;IACtC,gBAAgB,sBAAsB;IACtC,0BAA0B,gCAAgC;IAE1D,0BAA0B,gCAAgC;IAC1D,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,0BAA0B,gCAAgC;IAC1D,oBAAoB,0BAA0B;IAC9C,
|
|
1
|
+
{"version":3,"file":"module-types.d.ts","sourceRoot":"","sources":["../../src/types/module-types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;IACtC,oBAAoB,0BAA0B;IAC9C,YAAY,kBAAkB;IAC9B,aAAa,mBAAmB;IAChC,UAAU,gBAAgB;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es["CorePreUninstall"] = "core:preUninstall";
|
|
23
|
+
AllModuleTypes["CorePreSuspend"] = "core:preSuspend";
|
|
23
24
|
AllModuleTypes["CoreConnectToForgeMigration"] = "core:connectToForgeMigration";
|
|
24
25
|
AllModuleTypes["XenMacro"] = "xen:macro";
|
|
25
26
|
AllModuleTypes["DataResidencyMigration"] = "migration:dataResidency";
|
|
@@ -38,7 +39,6 @@ var AllModuleTypes;
|
|
|
38
39
|
AllModuleTypes["ConfluenceSpaceSettings"] = "confluence:spaceSettings";
|
|
39
40
|
AllModuleTypes["ConfluenceBackgroundScript"] = "confluence:backgroundScript";
|
|
40
41
|
AllModuleTypes["ConfluencePageBanner"] = "confluence:pageBanner";
|
|
41
|
-
AllModuleTypes["ConfluenceFullPage"] = "confluence:fullPage";
|
|
42
42
|
AllModuleTypes["ConfluenceContentProperty"] = "confluence:contentProperty";
|
|
43
43
|
AllModuleTypes["JiraEntityProperty"] = "jira:entityProperty";
|
|
44
44
|
AllModuleTypes["JiraEntityPropertySet"] = "jira:entityPropertySet";
|
|
@@ -72,7 +72,6 @@ var AllModuleTypes;
|
|
|
72
72
|
AllModuleTypes["JiraSprintAction"] = "jira:sprintAction";
|
|
73
73
|
AllModuleTypes["JiraCommand"] = "jira:command";
|
|
74
74
|
AllModuleTypes["JiraGlobalBackgroundScript"] = "jira:globalBackgroundScript";
|
|
75
|
-
AllModuleTypes["JiraFullPage"] = "jira:fullPage";
|
|
76
75
|
AllModuleTypes["CompassAdminPage"] = "compass:adminPage";
|
|
77
76
|
AllModuleTypes["CompassComponentPage"] = "compass:componentPage";
|
|
78
77
|
AllModuleTypes["CompassGlobalPage"] = "compass:globalPage";
|
|
@@ -108,6 +107,7 @@ var AllModuleTypes;
|
|
|
108
107
|
AllModuleTypes["BitbucketWorkspacePersonalSettingsPage"] = "bitbucket:workspacePersonalSettingsPage";
|
|
109
108
|
AllModuleTypes["BitbucketWorkspaceSettingsMenuPage"] = "bitbucket:workspaceSettingsMenuPage";
|
|
110
109
|
AllModuleTypes["BitbucketMergeCheck"] = "bitbucket:mergeCheck";
|
|
110
|
+
AllModuleTypes["BitbucketDeploymentCheck"] = "bitbucket:deploymentCheck";
|
|
111
111
|
AllModuleTypes["BitbucketDynamicPipelinesProvider"] = "bitbucket:dynamicPipelinesProvider";
|
|
112
112
|
AllModuleTypes["ConnectJiraAdminPages"] = "connect-jira:adminPages";
|
|
113
113
|
AllModuleTypes["ConnectJiraJiraBackgroundScripts"] = "connect-jira:jiraBackgroundScripts";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ManifestObject, ManifestValidationResult, ValidationError } from '../types';
|
|
2
2
|
import { ValidatorInterface } from './validator-interface';
|
|
3
3
|
import { ManifestSchema } from '../schema/manifest';
|
|
4
|
+
export declare const MAX_FLAG_ENABLED_CONDITIONS = 10;
|
|
4
5
|
export declare class DisplayConditionsValidator<T> implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
6
|
private readonly schema;
|
|
6
7
|
private readonly validateSchema;
|
|
@@ -11,6 +12,7 @@ export declare class DisplayConditionsValidator<T> implements ValidatorInterface
|
|
|
11
12
|
toValidationError(message: string): ValidationError;
|
|
12
13
|
private collectNestedDisplayConditionsTargets;
|
|
13
14
|
private validateDisplayConditions;
|
|
15
|
+
private countIsFlagEnabledConditions;
|
|
14
16
|
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
15
17
|
}
|
|
16
18
|
//# 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;AAGrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
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;AAGrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAmB9C,qBAAa,0BAA0B,CAAC,CAAC,CACvC,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAM7E,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmB;IAClD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA2B;gBAElC,MAAM,EAAE,MAAM;IAoE3C,wBAAwB,CACtB,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,iBAAiB,EAAE,GAAG,EACtB,OAAO,SAAI,EACX,QAAQ,CAAC,EAAE,MAAM,GAChB,GAAG;IAqCN,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;IAanD,OAAO,CAAC,qCAAqC;IA0C7C,OAAO,CAAC,yBAAyB;IAwDjC,OAAO,CAAC,4BAA4B;IAc9B,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CA8FrD"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DisplayConditionsValidator = void 0;
|
|
3
|
+
exports.DisplayConditionsValidator = exports.MAX_FLAG_ENABLED_CONDITIONS = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ajv_1 = tslib_1.__importDefault(require("ajv"));
|
|
6
6
|
const display_condition_types_1 = require("../types/display-condition-types");
|
|
7
7
|
const text_1 = require("../text");
|
|
8
8
|
const isPlainObject = (obj) => Object.prototype.toString.call(obj) === '[object Object]';
|
|
9
9
|
const errors = text_1.errors.modules.displayConditions;
|
|
10
|
+
exports.MAX_FLAG_ENABLED_CONDITIONS = 10;
|
|
10
11
|
const pageLocation = (page, index) => typeof page?.route === 'string' ? `page "${page.route}"` : `page[${index}]`;
|
|
11
12
|
const sectionLocation = (section, index) => typeof section?.header === 'string' ? `section "${section.header}"` : `section[${index}]`;
|
|
12
13
|
const isJiraOrJsmModuleType = (moduleType) => moduleType.startsWith('jira:') || moduleType.startsWith('jiraServiceManagement:');
|
|
@@ -127,6 +128,18 @@ class DisplayConditionsValidator {
|
|
|
127
128
|
});
|
|
128
129
|
});
|
|
129
130
|
}
|
|
131
|
+
countIsFlagEnabledConditions(moduleType, moduleKey, displayConditions) {
|
|
132
|
+
if (!isPlainObject(displayConditions)) {
|
|
133
|
+
return 0;
|
|
134
|
+
}
|
|
135
|
+
try {
|
|
136
|
+
const flattened = this.flattenDisplayConditions(moduleType, moduleKey, displayConditions);
|
|
137
|
+
return flattened.filter((condition) => Object.prototype.hasOwnProperty.call(condition, 'isFlagEnabled')).length;
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
return 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
130
143
|
async validate(manifest) {
|
|
131
144
|
if (!manifest ||
|
|
132
145
|
!manifest.typedContent ||
|
|
@@ -144,6 +157,7 @@ class DisplayConditionsValidator {
|
|
|
144
157
|
};
|
|
145
158
|
}
|
|
146
159
|
const validationErrors = new Map();
|
|
160
|
+
let flagEnabledConditionCount = 0;
|
|
147
161
|
Object.keys(this.moduleSchemas).forEach((moduleType) => {
|
|
148
162
|
modules[moduleType]?.forEach((module) => {
|
|
149
163
|
const reportError = (errorKey, message) => {
|
|
@@ -153,6 +167,7 @@ class DisplayConditionsValidator {
|
|
|
153
167
|
}
|
|
154
168
|
};
|
|
155
169
|
this.validateDisplayConditions(moduleType, module.key, module.displayConditions, reportError);
|
|
170
|
+
flagEnabledConditionCount += this.countIsFlagEnabledConditions(moduleType, module.key, module.displayConditions);
|
|
156
171
|
});
|
|
157
172
|
});
|
|
158
173
|
Object.keys(this.moduleSchemas).forEach((moduleType) => {
|
|
@@ -168,9 +183,13 @@ class DisplayConditionsValidator {
|
|
|
168
183
|
}
|
|
169
184
|
};
|
|
170
185
|
this.validateDisplayConditions(moduleType, module.key, target.displayConditions, reportError, target.location);
|
|
186
|
+
flagEnabledConditionCount += this.countIsFlagEnabledConditions(moduleType, module.key, target.displayConditions);
|
|
171
187
|
});
|
|
172
188
|
});
|
|
173
189
|
});
|
|
190
|
+
if (flagEnabledConditionCount > exports.MAX_FLAG_ENABLED_CONDITIONS) {
|
|
191
|
+
validationErrors.set('app__isFlagEnabledLimit', this.toValidationError(errors.tooManyFlagEnabledConditions(exports.MAX_FLAG_ENABLED_CONDITIONS)));
|
|
192
|
+
}
|
|
174
193
|
return {
|
|
175
194
|
success: validationErrors.size === 0,
|
|
176
195
|
manifestObject: manifest,
|
|
@@ -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;AAWxH,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,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,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAWxH,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AA4B3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAGzF,OAAO,CAAC,oBAAoB,CAAsE;IAE5F,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAwEpD,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,4BAA4B;IA0BpC,OAAO,CAAC,mBAAmB;IA2E3B,OAAO,CAAC,4BAA4B;IA2BpC,OAAO,CAAC,yBAAyB;CAoClC"}
|
|
@@ -17,7 +17,6 @@ const bitbucket_1 = require("./modules-validators/bitbucket");
|
|
|
17
17
|
const rovo_1 = require("./modules-validators/rovo");
|
|
18
18
|
const validate_workflow_1 = require("./modules-validators/jira/validate-workflow");
|
|
19
19
|
const validate_full_page_1 = require("./modules-validators/jira/validate-full-page");
|
|
20
|
-
const validate_full_page_module_1 = require("./modules-validators/jira/validate-full-page-module");
|
|
21
20
|
const validate_custom_field_1 = require("./modules-validators/jira/validate-custom-field");
|
|
22
21
|
const validate_trigger_1 = require("./modules-validators/jira/validate-trigger");
|
|
23
22
|
const validate_command_1 = require("./modules-validators/jira/validate-command");
|
|
@@ -40,7 +39,7 @@ class ModulesValidator {
|
|
|
40
39
|
let validationErrors = [...this.connectModuleValidation(manifest)];
|
|
41
40
|
if (manifest.typedContent.modules) {
|
|
42
41
|
const { typedContent: { modules, connectModules, remotes, permissions, services, providers }, yamlContentByLine, filePath } = manifest;
|
|
43
|
-
validationErrors = validationErrors.concat(this.checkUnsupportedModules(manifest.typedContent.modules, yamlContentByLine), this.functionKeyLength(modules, yamlContentByLine), this.minimumModuleCountValidation(modules, yamlContentByLine), this.functionKeyDefinedValidation(modules, yamlContentByLine), this.endpointValidations(modules, yamlContentByLine, remotes, permissions?.scopes || [], services), this.duplicateModuleKeyValidation(modules, connectModules || {}, yamlContentByLine), this.functionHandlerValidation(modules, yamlContentByLine, filePath, (0, utils_1.getHandlersDirectory)(manifest.typedContent)), (0, validate_workflow_1.validateJiraWorkflowValidator)(modules, yamlContentByLine), (0, validate_workflow_1.validateJiraWorkflowCondition)(modules, yamlContentByLine), (0, ui_modifications_1.validateUiModificationsModule)(modules, yamlContentByLine), (0, validate_full_admin_page_1.validateJiraFullAdminPage)(modules, yamlContentByLine), (0, validate_full_page_1.validateJiraFullPage)(modules, yamlContentByLine), (0,
|
|
42
|
+
validationErrors = validationErrors.concat(this.checkUnsupportedModules(manifest.typedContent.modules, yamlContentByLine), this.functionKeyLength(modules, yamlContentByLine), this.minimumModuleCountValidation(modules, yamlContentByLine), this.functionKeyDefinedValidation(modules, yamlContentByLine), this.endpointValidations(modules, yamlContentByLine, remotes, permissions?.scopes || [], services), this.duplicateModuleKeyValidation(modules, connectModules || {}, yamlContentByLine), this.functionHandlerValidation(modules, yamlContentByLine, filePath, (0, utils_1.getHandlersDirectory)(manifest.typedContent)), (0, validate_workflow_1.validateJiraWorkflowValidator)(modules, yamlContentByLine), (0, validate_workflow_1.validateJiraWorkflowCondition)(modules, yamlContentByLine), (0, ui_modifications_1.validateUiModificationsModule)(modules, yamlContentByLine), (0, validate_full_admin_page_1.validateJiraFullAdminPage)(modules, yamlContentByLine), (0, validate_full_page_1.validateJiraFullPage)(modules, yamlContentByLine), (0, validate_custom_field_1.validateJiraCustomField)(modules, yamlContentByLine), (0, confluence_1.validateConfluenceModules)(modules, yamlContentByLine), (0, bitbucket_1.validateBitbucketModules)(modules, yamlContentByLine), (0, validate_trigger_1.validateJiraTriggers)(modules, yamlContentByLine), (0, remote_1.validateRemoteModules)(modules, yamlContentByLine), (0, dataResidency_1.validateMigrationDataResidencyModule)(modules, remotes, yamlContentByLine), (0, validateModuleScopes_1.validateModuleScopes)(modules, yamlContentByLine, permissions), (0, rovo_1.validateRovoModules)(modules, (0, path_1.dirname)(filePath), yamlContentByLine), (0, automation_1.validateAutomationModules)(modules, yamlContentByLine), (0, validate_timetrackingprovider_module_1.validateJiraTimeTrackingModule)(modules, yamlContentByLine), (0, validate_command_1.validateJiraCommandModule)(modules, yamlContentByLine), (0, validate_action_validator_1.validateJiraActionValidator)(modules, yamlContentByLine), (0, validate_global_background_script_1.validateJiraGlobalBackgroundScript)(modules, yamlContentByLine), (0, graph_1.validateGraphModules)(modules, providers, yamlContentByLine), (0, dashboards_1.validateDashboardModules)(modules, yamlContentByLine), (0, validate_global_ui_1.validateGlobalUi)(modules, yamlContentByLine), (0, validate_global_full_page_1.validateGlobalFullPage)(modules, yamlContentByLine));
|
|
44
43
|
}
|
|
45
44
|
else {
|
|
46
45
|
const { typedContent: { connectModules }, yamlContentByLine } = manifest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateBackendModuleEndpoints.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/bitbucket/validateBackendModuleEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,8BAA8B,GAAI,SAAS,OAAO,EAAE,oBAAoB,MAAM,EAAE,KAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"validateBackendModuleEndpoints.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/bitbucket/validateBackendModuleEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,8BAA8B,GAAI,SAAS,OAAO,EAAE,oBAAoB,MAAM,EAAE,KAAG,eAAe,EA+B9G,CAAC"}
|
|
@@ -7,7 +7,10 @@ const utils_1 = require("../../../utils");
|
|
|
7
7
|
const validateBackendModuleEndpoints = (modules, yamlContentByLine) => {
|
|
8
8
|
const endpoints = modules.endpoint ?? [];
|
|
9
9
|
const validationErrors = [];
|
|
10
|
-
const backendModulesWithEndpoint =
|
|
10
|
+
const backendModulesWithEndpoint = [
|
|
11
|
+
...(modules[types_1.AllModuleTypes.BitbucketMergeCheck]?.filter((module) => module.endpoint != null) || []),
|
|
12
|
+
...(modules[types_1.AllModuleTypes.BitbucketDeploymentCheck]?.filter((module) => module.endpoint != null) || [])
|
|
13
|
+
];
|
|
11
14
|
backendModulesWithEndpoint.forEach((module) => {
|
|
12
15
|
const endpointModule = endpoints?.find((remoteEndpoint) => remoteEndpoint.key === module.endpoint);
|
|
13
16
|
if (endpointModule) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/confluence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/confluence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAYjE,eAAO,MAAM,yBAAyB,GAAI,SAAS,OAAO,EAAE,oBAAoB,MAAM,EAAE,KAAG,eAAe,EAiCzG,CAAC"}
|
|
@@ -8,30 +8,23 @@ const validateKeyboardShortcuts_1 = require("./validateKeyboardShortcuts");
|
|
|
8
8
|
const validateCrossModulePropertyUniqueness_1 = require("./validateCrossModulePropertyUniqueness");
|
|
9
9
|
const validateCustomContentHierarchy_1 = require("./validateCustomContentHierarchy");
|
|
10
10
|
const validateMacroAutoConvert_1 = require("./validateMacroAutoConvert");
|
|
11
|
-
const validateFullPage_1 = require("./validateFullPage");
|
|
12
11
|
const constants_1 = require("../constants");
|
|
13
12
|
const ROUTE = 'route';
|
|
14
|
-
const ROUTE_FULL_PAGE = 'routePrefix';
|
|
15
13
|
const KEYBOARD_SHORTCUT_ACCELERATOR = 'keyboardShortcut.accelerator';
|
|
16
14
|
const validateConfluenceModules = (modules, yamlContentByLine) => {
|
|
17
15
|
const validationErrors = [];
|
|
18
16
|
[
|
|
19
17
|
types_1.AllModuleTypes.ConfluenceSpaceSettings,
|
|
20
18
|
types_1.AllModuleTypes.ConfluenceGlobalPage,
|
|
21
|
-
types_1.AllModuleTypes.ConfluenceSpacePage
|
|
22
|
-
types_1.AllModuleTypes.ConfluenceFullPage
|
|
19
|
+
types_1.AllModuleTypes.ConfluenceSpacePage
|
|
23
20
|
].forEach((moduleType) => {
|
|
24
21
|
validationErrors.push(...(0, validatePropertyUniqueness_1.validatePropertyUniqueness)(modules, moduleType, ROUTE, yamlContentByLine));
|
|
25
22
|
});
|
|
26
|
-
[types_1.AllModuleTypes.ConfluenceFullPage].forEach((moduleType) => {
|
|
27
|
-
validationErrors.push(...(0, validatePropertyUniqueness_1.validatePropertyUniqueness)(modules, moduleType, ROUTE_FULL_PAGE, yamlContentByLine));
|
|
28
|
-
});
|
|
29
23
|
validationErrors.push(...(0, validateSingleProperty_1.validateSingleProperty)(modules, types_1.AllModuleTypes.ConfluenceGlobalSettings, constants_1.USE_AS_CONFIG, yamlContentByLine));
|
|
30
24
|
validationErrors.push(...(0, validateSingleProperty_1.validateSingleProperty)(modules, types_1.AllModuleTypes.ConfluenceGlobalSettings, constants_1.USE_AS_GET_STARTED, yamlContentByLine));
|
|
31
25
|
validationErrors.push(...(0, validateCustomContentHierarchy_1.validateCustomContentHierarchy)(modules, types_1.AllModuleTypes.ConfluenceCustomContent, yamlContentByLine));
|
|
32
26
|
validationErrors.push(...(0, validateCrossModulePropertyUniqueness_1.validateCrossModulePropertyUniqueness)(modules, KEYBOARD_SHORTCUT_ACCELERATOR, yamlContentByLine), ...(0, validateKeyboardShortcuts_1.validateKeyboardShortcuts)(modules, yamlContentByLine));
|
|
33
27
|
validationErrors.push(...(0, validateMacroAutoConvert_1.validateMacroAutoConvert)(modules, yamlContentByLine));
|
|
34
|
-
validationErrors.push(...(0, validateFullPage_1.validateFullPage)(modules, yamlContentByLine));
|
|
35
28
|
return validationErrors;
|
|
36
29
|
};
|
|
37
30
|
exports.validateConfluenceModules = validateConfluenceModules;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validateFullPage.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/confluence/validateFullPage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAyBnD,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,EAAE,oBAAoB,MAAM,EAAE,KAAG,eAAe,EAgChG,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateFullPage = void 0;
|
|
4
|
-
const types_1 = require("../../../types");
|
|
5
|
-
const text_1 = require("../../../text");
|
|
6
|
-
const utils_1 = require("../../../utils");
|
|
7
|
-
const validateGlobalModules_1 = require("../../../utils/global/validateGlobalModules");
|
|
8
|
-
const errorMessages = text_1.errors.modules.confluence.fullPage;
|
|
9
|
-
const validateFullPage = (modules, yamlContentByLine) => {
|
|
10
|
-
const validationErrors = [];
|
|
11
|
-
const moduleType = types_1.AllModuleTypes.ConfluenceFullPage;
|
|
12
|
-
const fullPageModules = modules[moduleType] || [];
|
|
13
|
-
fullPageModules.forEach((module, index) => {
|
|
14
|
-
validationErrors.push(...(0, validateGlobalModules_1.validateRoute)(module.key, module.routePrefix, index, errorMessages).map((error) => ({
|
|
15
|
-
message: error.message,
|
|
16
|
-
reference: text_1.References.Modules,
|
|
17
|
-
level: 'error',
|
|
18
|
-
...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
|
|
19
|
-
})), ...(module.icon
|
|
20
|
-
? (0, validateGlobalModules_1.validateIcon)(module.key, module.icon, index, errorMessages).map((error) => ({
|
|
21
|
-
message: error.message,
|
|
22
|
-
reference: text_1.References.Modules,
|
|
23
|
-
level: 'error',
|
|
24
|
-
...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
|
|
25
|
-
}))
|
|
26
|
-
: []));
|
|
27
|
-
});
|
|
28
|
-
return validationErrors;
|
|
29
|
-
};
|
|
30
|
-
exports.validateFullPage = validateFullPage;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ValidationError } from '../../../types';
|
|
2
|
-
import { Modules } from '../../../schema/manifest';
|
|
3
|
-
export declare const validateJiraFullPageModule: (modules: Modules, yamlContentByLine?: string[]) => ValidationError[];
|
|
4
|
-
//# sourceMappingURL=validate-full-page-module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-full-page-module.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/jira/validate-full-page-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAsDnD,eAAO,MAAM,0BAA0B,GAAI,SAAS,OAAO,EAAE,oBAAoB,MAAM,EAAE,KAAG,eAAe,EAuC1G,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateJiraFullPageModule = void 0;
|
|
4
|
-
const types_1 = require("../../../types");
|
|
5
|
-
const text_1 = require("../../../text");
|
|
6
|
-
const utils_1 = require("../../../utils");
|
|
7
|
-
const validateGlobalModules_1 = require("../../../utils/global/validateGlobalModules");
|
|
8
|
-
const ROUTE_FULL_PAGE = 'routePrefix';
|
|
9
|
-
const errorMessages = text_1.errors.modules.jiraFullPageModule;
|
|
10
|
-
const validatePropertyUniqueness = (allModules, moduleType, property, yamlContentByLine) => {
|
|
11
|
-
const validationErrors = [];
|
|
12
|
-
const modules = allModules[moduleType] || [];
|
|
13
|
-
const allPropertyValues = modules.map((module) => module[property]).filter((property) => property);
|
|
14
|
-
const duplicatePropertyValues = allPropertyValues.filter((property, index, all) => all.indexOf(property) !== index);
|
|
15
|
-
if (duplicatePropertyValues.length > 0) {
|
|
16
|
-
const allModulesWithDuplicatedPropertyValues = modules.filter((module) => module[property] === duplicatePropertyValues[0]);
|
|
17
|
-
validationErrors.push({
|
|
18
|
-
message: errorMessages.propertyUniqueness(property, moduleType, duplicatePropertyValues),
|
|
19
|
-
reference: text_1.References.Modules,
|
|
20
|
-
level: 'error',
|
|
21
|
-
...(0, utils_1.findPosition)(allModulesWithDuplicatedPropertyValues?.[0]?.key, yamlContentByLine)
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return validationErrors;
|
|
25
|
-
};
|
|
26
|
-
const validateJiraFullPageModule = (modules, yamlContentByLine) => {
|
|
27
|
-
const validationErrors = [];
|
|
28
|
-
const moduleType = types_1.AllModuleTypes.JiraFullPage;
|
|
29
|
-
const fullPageModules = modules[moduleType] || [];
|
|
30
|
-
validationErrors.push(...validatePropertyUniqueness(modules, moduleType, ROUTE_FULL_PAGE, yamlContentByLine));
|
|
31
|
-
if (validationErrors.length) {
|
|
32
|
-
return validationErrors;
|
|
33
|
-
}
|
|
34
|
-
fullPageModules.forEach((module, index) => {
|
|
35
|
-
validationErrors.push(...(0, validateGlobalModules_1.validateRoute)(module.key, module.routePrefix, index, errorMessages).map((error) => ({
|
|
36
|
-
message: error.message,
|
|
37
|
-
reference: text_1.References.Modules,
|
|
38
|
-
level: 'error',
|
|
39
|
-
...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
|
|
40
|
-
})), ...(module.icon
|
|
41
|
-
? (0, validateGlobalModules_1.validateIcon)(module.key, module.icon, index, errorMessages).map((error) => ({
|
|
42
|
-
message: error.message,
|
|
43
|
-
reference: text_1.References.Modules,
|
|
44
|
-
level: 'error',
|
|
45
|
-
...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
|
|
46
|
-
}))
|
|
47
|
-
: []));
|
|
48
|
-
});
|
|
49
|
-
return validationErrors;
|
|
50
|
-
};
|
|
51
|
-
exports.validateJiraFullPageModule = validateJiraFullPageModule;
|