@forge/manifest 3.4.0-next.9 → 3.5.0-next.1
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 +31 -0
- package/out/schema/manifest-schema.json +43 -0
- package/out/schema/manifest.d.ts +20 -0
- package/out/text/errors.d.ts +1 -3
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +1 -3
- 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 +3 -1
- package/out/validators/modules-validators/issue-adjustment.d.ts +4 -0
- package/out/validators/modules-validators/issue-adjustment.d.ts.map +1 -0
- package/out/validators/modules-validators/issue-adjustment.js +16 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 3.5.0-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a3bfe81: Update manifest definitions
|
|
8
|
+
|
|
9
|
+
## 3.5.0-next.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- ba674590: Add validation for Issue Adjustments module
|
|
14
|
+
|
|
15
|
+
## 3.4.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 64dd525: Make revokeToken optional in External Auth
|
|
20
|
+
- 8e2c90f: Manifest schema updated. Includes new jira:workflowCondition module
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 1c6c578: Add jiraEntityProperty values validation
|
|
25
|
+
- 8b4fede: Update manifest definitions
|
|
26
|
+
- 54bf134: Update manifest definitions
|
|
27
|
+
- 10f147f: Update manifest definitions
|
|
28
|
+
- 2484683: Update manifest definitions
|
|
29
|
+
- 1a8a4bb: Update manifest definitions
|
|
30
|
+
- e0a44d4: Update manifest definitions
|
|
31
|
+
- 19820d3: Update manifest definitions
|
|
32
|
+
- 1ca8bbc: Update manifest definitions
|
|
33
|
+
|
|
3
34
|
## 3.4.0-next.9
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -2294,6 +2294,49 @@
|
|
|
2294
2294
|
},
|
|
2295
2295
|
"minItems": 1
|
|
2296
2296
|
},
|
|
2297
|
+
"jira:issueAdjustment": {
|
|
2298
|
+
"type": "array",
|
|
2299
|
+
"items": {
|
|
2300
|
+
"type": "object",
|
|
2301
|
+
"properties": {
|
|
2302
|
+
"title": {
|
|
2303
|
+
"type": "string",
|
|
2304
|
+
"minLength": 1,
|
|
2305
|
+
"maxLength": 255
|
|
2306
|
+
},
|
|
2307
|
+
"resolver": {
|
|
2308
|
+
"additionalProperties": false,
|
|
2309
|
+
"type": "object",
|
|
2310
|
+
"properties": {
|
|
2311
|
+
"function": {
|
|
2312
|
+
"type": "string",
|
|
2313
|
+
"minLength": 1,
|
|
2314
|
+
"maxLength": 255,
|
|
2315
|
+
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
"required": [
|
|
2319
|
+
"function"
|
|
2320
|
+
]
|
|
2321
|
+
},
|
|
2322
|
+
"resource": {
|
|
2323
|
+
"type": "string",
|
|
2324
|
+
"minLength": 1,
|
|
2325
|
+
"maxLength": 23,
|
|
2326
|
+
"pattern": "^[a-zA-Z0-9_\\-]+$"
|
|
2327
|
+
},
|
|
2328
|
+
"key": {
|
|
2329
|
+
"$ref": "#/definitions/ModuleKeySchema"
|
|
2330
|
+
}
|
|
2331
|
+
},
|
|
2332
|
+
"required": [
|
|
2333
|
+
"title",
|
|
2334
|
+
"resource",
|
|
2335
|
+
"key"
|
|
2336
|
+
]
|
|
2337
|
+
},
|
|
2338
|
+
"minItems": 1
|
|
2339
|
+
},
|
|
2297
2340
|
"jira:issueGlance": {
|
|
2298
2341
|
"type": "array",
|
|
2299
2342
|
"items": {
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -1321,6 +1321,26 @@ export interface Modules {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
)[]
|
|
1323
1323
|
];
|
|
1324
|
+
'jira:issueAdjustment'?: [
|
|
1325
|
+
{
|
|
1326
|
+
title: string;
|
|
1327
|
+
resolver?: {
|
|
1328
|
+
function: string;
|
|
1329
|
+
};
|
|
1330
|
+
resource: string;
|
|
1331
|
+
key: ModuleKeySchema;
|
|
1332
|
+
[k: string]: unknown;
|
|
1333
|
+
},
|
|
1334
|
+
...{
|
|
1335
|
+
title: string;
|
|
1336
|
+
resolver?: {
|
|
1337
|
+
function: string;
|
|
1338
|
+
};
|
|
1339
|
+
resource: string;
|
|
1340
|
+
key: ModuleKeySchema;
|
|
1341
|
+
[k: string]: unknown;
|
|
1342
|
+
}[]
|
|
1343
|
+
];
|
|
1324
1344
|
'jira:issueGlance'?: [
|
|
1325
1345
|
(
|
|
1326
1346
|
| {
|
package/out/text/errors.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const errors: {
|
|
|
26
26
|
duplicateKeyFound: (key: string) => string;
|
|
27
27
|
wrongFunctionReference: (module: string, functionKey: string) => string;
|
|
28
28
|
wrongResourceReference: (module: string, resourceKey: string) => string;
|
|
29
|
+
singleEntryOfTheModule: (moduleType: string) => string;
|
|
29
30
|
displayConditions: {
|
|
30
31
|
overcomplicated: (moduleKey: string) => string;
|
|
31
32
|
invalid: (moduleKey: string) => string;
|
|
@@ -42,9 +43,6 @@ export declare const errors: {
|
|
|
42
43
|
jiraEntityProperty: {
|
|
43
44
|
maxExtractionsPerApp: (limit: number) => string;
|
|
44
45
|
};
|
|
45
|
-
fullPage: {
|
|
46
|
-
children: (moduleType: string) => string;
|
|
47
|
-
};
|
|
48
46
|
customFields: {
|
|
49
47
|
searchAlias: (aliases: string[]) => string;
|
|
50
48
|
};
|
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,MAAM;8BACS,MAAM,KAAG,MAAM;2BACpB,MAAM;yBAEN,MAAM,GAAG,SAAS,QAAQ,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,KAAG,MAAM;;uBAO3E,MAAM,EAAE,EAAE,GAAG,SAAS,KAAG,MAAM;4BAI1B,MAAM,EAAE,KAAG,MAAM;mCACV,MAAM,SAAS,MAAM,0CAA4B,MAAM;mDAIvC,MAAM,KAAG,MAAM;;;qCAI7B,MAAM,SAAS,MAAM,KAAG,MAAM;4CAEvB,MAAM,SAAS,MAAM,KAAG,MAAM;wCAElC,MAAM,SAAS,MAAM,EAAE,KAAG,MAAM;;;uCAMjC,MAAM,KAAG,MAAM;oCACpB,MAAM;iCAEP,MAAM,KAAG,MAAM;4CACJ,MAAM,KAAG,MAAM;;;gCAG3B,MAAM,KAAG,MAAM;6BACpB,MAAM;+BACJ,MAAM;iCACF,MAAM,KAAG,MAAM;yCACP,MAAM,eAAe,MAAM,KAAG,MAAM;yCAEpC,MAAM,eAAe,MAAM,KAAG,MAAM;;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/text/errors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;8BACS,MAAM,KAAG,MAAM;2BACpB,MAAM;yBAEN,MAAM,GAAG,SAAS,QAAQ,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,KAAG,MAAM;;uBAO3E,MAAM,EAAE,EAAE,GAAG,SAAS,KAAG,MAAM;4BAI1B,MAAM,EAAE,KAAG,MAAM;mCACV,MAAM,SAAS,MAAM,0CAA4B,MAAM;mDAIvC,MAAM,KAAG,MAAM;;;qCAI7B,MAAM,SAAS,MAAM,KAAG,MAAM;4CAEvB,MAAM,SAAS,MAAM,KAAG,MAAM;wCAElC,MAAM,SAAS,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C3C,OAAO,0BAA0B;IACjC,cAAc,kCAAkC;IAChD,mBAAmB,0BAA0B;IAC7C,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;CAClC"}
|
package/out/text/errors.js
CHANGED
|
@@ -38,6 +38,7 @@ exports.errors = {
|
|
|
38
38
|
duplicateKeyFound: (key) => `found duplicate module key '${key}'`,
|
|
39
39
|
wrongFunctionReference: (module, functionKey) => `${module} references undefined function module with key '${functionKey}'`,
|
|
40
40
|
wrongResourceReference: (module, resourceKey) => `missing resource key '${resourceKey}' is being referenced by ${module} module`,
|
|
41
|
+
singleEntryOfTheModule: (moduleType) => `Only a single entry of the ${moduleType} module can be defined in the manifest`,
|
|
41
42
|
displayConditions: {
|
|
42
43
|
overcomplicated: (moduleKey) => `Nesting of display conditions of the "${moduleKey}" module exceeds 10 levels.`,
|
|
43
44
|
invalid: (moduleKey) => `Display conditions of the "${moduleKey}" module are invalid.`,
|
|
@@ -54,9 +55,6 @@ exports.errors = {
|
|
|
54
55
|
jiraEntityProperty: {
|
|
55
56
|
maxExtractionsPerApp: (limit) => `All ${types_1.AllModuleTypes.JiraEntityProperty} modules combined cannot declare more than ${limit} values.`
|
|
56
57
|
},
|
|
57
|
-
fullPage: {
|
|
58
|
-
children: (moduleType) => `Only a single entry of the ${moduleType} module can be defined in the manifest`
|
|
59
|
-
},
|
|
60
58
|
customFields: {
|
|
61
59
|
searchAlias: (aliases) => `Search alias should be always unique per field. Found duplicates: ${aliases.join(', ')}.`
|
|
62
60
|
},
|
|
@@ -20,6 +20,7 @@ export declare enum AllModuleTypes {
|
|
|
20
20
|
JiraCustomFieldType = "jira:customFieldType",
|
|
21
21
|
JiraIssueAction = "jira:issueAction",
|
|
22
22
|
JiraIssueActivity = "jira:issueActivity",
|
|
23
|
+
JiraIssueAdjustment = "jira:issueAdjustment",
|
|
23
24
|
JiraIssueGlance = "jira:issueGlance",
|
|
24
25
|
JiraIssuePanel = "jira:issuePanel",
|
|
25
26
|
JiraAdminPage = "jira:adminPage",
|
|
@@ -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,wBAAwB,8BAA8B;IACtD,oBAAoB,0BAA0B;IAC9C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,uBAAuB,6BAA6B;IACpD,kBAAkB,wBAAwB;IAC1C,qBAAqB,2BAA2B;IAChD,qBAAqB,2BAA2B;IAChD,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,uBAAuB,6BAA6B;IACpD,cAAc,oBAAoB;IAClC,mBAAmB,yBAAyB;IAC5C,gBAAgB,sBAAsB;IACtC,oBAAoB,0BAA0B;IAC9C,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IAEpC,8BAA8B,oCAAoC;IAClE,wCAAwC,8CAA8C;IACtF,6CAA6C,mDAAmD;IAChG,sCAAsC,4CAA4C;IAClF,iCAAiC,uCAAuC;IACxE,oCAAoC,0CAA0C;IAC9E,iCAAiC,uCAAuC;IACxE,uCAAuC,6CAA6C;IAEpF,qBAAqB,4BAA4B;IACjD,gCAAgC,uCAAuC;IACvE,uBAAuB,8BAA8B;IACrD,6BAA6B,oCAAoC;IACjE,gCAAgC,uCAAuC;IACvE,0BAA0B,iCAAiC;IAC3D,2BAA2B,kCAAkC;IAC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;IAC/D,mBAAmB,0BAA0B;IAC7C,oBAAoB,2BAA2B;IAC/C,2BAA2B,kCAAkC;IAC7D,2BAA2B,kCAAkC;IAC7D,8BAA8B,qCAAqC;IACnE,4CAA4C,mDAAmD;IAC/F,iCAAiC,wCAAwC;IACzE,mCAAmC,0CAA0C;IAC7E,8BAA8B,qCAAqC;IACnE,wBAAwB,+BAA+B;IACvD,qCAAqC,4CAA4C;IACjF,6BAA6B,oCAAoC;IACjE,kCAAkC,yCAAyC;IAC3E,gCAAgC,uCAAuC;IACvE,+BAA+B,sCAAsC;IACrE,oCAAoC,2CAA2C;IAC/E,yBAAyB,gCAAgC;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;CAC5D;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
|
|
@@ -24,6 +24,7 @@ var AllModuleTypes;
|
|
|
24
24
|
AllModuleTypes["JiraCustomFieldType"] = "jira:customFieldType";
|
|
25
25
|
AllModuleTypes["JiraIssueAction"] = "jira:issueAction";
|
|
26
26
|
AllModuleTypes["JiraIssueActivity"] = "jira:issueActivity";
|
|
27
|
+
AllModuleTypes["JiraIssueAdjustment"] = "jira:issueAdjustment";
|
|
27
28
|
AllModuleTypes["JiraIssueGlance"] = "jira:issueGlance";
|
|
28
29
|
AllModuleTypes["JiraIssuePanel"] = "jira:issuePanel";
|
|
29
30
|
AllModuleTypes["JiraAdminPage"] = "jira:adminPage";
|
|
@@ -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;
|
|
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;AAK3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAA0C;IAEtE,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CA0OzG"}
|
|
@@ -6,6 +6,7 @@ const utils_1 = require("../utils");
|
|
|
6
6
|
const text_1 = require("../text");
|
|
7
7
|
const fs_1 = require("fs");
|
|
8
8
|
const path_1 = require("path");
|
|
9
|
+
const issue_adjustment_1 = require("./modules-validators/issue-adjustment");
|
|
9
10
|
class ModulesValidator {
|
|
10
11
|
constructor() {
|
|
11
12
|
this.functionHandlerRegex = /^([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)$/;
|
|
@@ -90,6 +91,7 @@ class ModulesValidator {
|
|
|
90
91
|
validationErrors.push(Object.assign({ message: text_1.errors.modules.jiraWorkflowCondition.missingExpression(module.key), reference: text_1.References.Modules, level: 'error' }, utils_1.findPosition(module.key, yamlContentByLine)));
|
|
91
92
|
}
|
|
92
93
|
});
|
|
94
|
+
validationErrors.push(...issue_adjustment_1.validateIssueAdjustmentModule(modules, yamlContentByLine));
|
|
93
95
|
[
|
|
94
96
|
types_1.AllModuleTypes.JiraAdminPage,
|
|
95
97
|
types_1.AllModuleTypes.JiraProjectPage,
|
|
@@ -98,7 +100,7 @@ class ModulesValidator {
|
|
|
98
100
|
].forEach((moduleType) => {
|
|
99
101
|
const moduleArray = modules[moduleType];
|
|
100
102
|
if (moduleArray && moduleArray.length > 1) {
|
|
101
|
-
validationErrors.push(Object.assign({ message: text_1.errors.modules.
|
|
103
|
+
validationErrors.push(Object.assign({ message: text_1.errors.modules.singleEntryOfTheModule(moduleType), reference: text_1.References.Modules, level: 'error' }, utils_1.findPosition(moduleArray[1].key, yamlContentByLine)));
|
|
102
104
|
}
|
|
103
105
|
if (moduleArray && moduleArray.length === 1) {
|
|
104
106
|
const module = moduleArray[0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-adjustment.d.ts","sourceRoot":"","sources":["../../../src/validators/modules-validators/issue-adjustment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAe/G"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateIssueAdjustmentModule = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const text_1 = require("../../text");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
function validateIssueAdjustmentModule(modules, yamlContentByLine) {
|
|
8
|
+
const validationErrors = [];
|
|
9
|
+
const moduleType = types_1.AllModuleTypes.JiraIssueAdjustment;
|
|
10
|
+
const moduleArray = modules[moduleType];
|
|
11
|
+
if (moduleArray && moduleArray.length > 1) {
|
|
12
|
+
validationErrors.push(Object.assign({ message: text_1.errors.modules.singleEntryOfTheModule(moduleType), reference: text_1.References.Modules, level: 'error' }, utils_1.findPosition(moduleArray[1].key, yamlContentByLine)));
|
|
13
|
+
}
|
|
14
|
+
return validationErrors;
|
|
15
|
+
}
|
|
16
|
+
exports.validateIssueAdjustmentModule = validateIssueAdjustmentModule;
|