@forge/manifest 3.6.0-next.2 → 3.6.0-next.5
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 +18 -0
- package/out/schema/manifest-schema.json +66 -1
- package/out/schema/manifest.d.ts +27 -1
- package/out/types/module-types.d.ts +2 -1
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +2 -1
- package/out/validators/modules-validator.js +2 -2
- package/out/validators/modules-validators/jira/{issue-adjustment.d.ts → ui-modifications.d.ts} +2 -2
- package/out/validators/modules-validators/jira/ui-modifications.d.ts.map +1 -0
- package/out/validators/modules-validators/jira/{issue-adjustment.js → ui-modifications.js} +4 -4
- package/package.json +1 -1
- package/out/validators/modules-validators/jira/issue-adjustment.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 3.6.0-next.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cb28bc0: Update manifest definitions
|
|
8
|
+
|
|
9
|
+
## 3.6.0-next.4
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- e314dd0: Renaming Issue Adjustments to UI modifications
|
|
14
|
+
|
|
15
|
+
## 3.6.0-next.3
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 90475812: Add compass:dataProvider module
|
|
20
|
+
|
|
3
21
|
## 3.6.0-next.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -2555,7 +2555,7 @@
|
|
|
2555
2555
|
},
|
|
2556
2556
|
"minItems": 1
|
|
2557
2557
|
},
|
|
2558
|
-
"jira:
|
|
2558
|
+
"jira:uiModifications": {
|
|
2559
2559
|
"type": "array",
|
|
2560
2560
|
"items": {
|
|
2561
2561
|
"type": "object",
|
|
@@ -4551,6 +4551,71 @@
|
|
|
4551
4551
|
},
|
|
4552
4552
|
"minItems": 1
|
|
4553
4553
|
},
|
|
4554
|
+
"compass:dataProvider": {
|
|
4555
|
+
"type": "array",
|
|
4556
|
+
"items": {
|
|
4557
|
+
"type": "object",
|
|
4558
|
+
"additionalProperties": false,
|
|
4559
|
+
"properties": {
|
|
4560
|
+
"domains": {
|
|
4561
|
+
"type": "array",
|
|
4562
|
+
"minItems": 1,
|
|
4563
|
+
"uniqueItems": true,
|
|
4564
|
+
"items": {
|
|
4565
|
+
"type": "string"
|
|
4566
|
+
}
|
|
4567
|
+
},
|
|
4568
|
+
"linkTypes": {
|
|
4569
|
+
"type": "array",
|
|
4570
|
+
"minItems": 1,
|
|
4571
|
+
"uniqueItems": true,
|
|
4572
|
+
"items": {
|
|
4573
|
+
"enum": [
|
|
4574
|
+
"chat-channel",
|
|
4575
|
+
"document",
|
|
4576
|
+
"repository",
|
|
4577
|
+
"dashboard",
|
|
4578
|
+
"on-call",
|
|
4579
|
+
"project",
|
|
4580
|
+
"other-link"
|
|
4581
|
+
],
|
|
4582
|
+
"type": "string"
|
|
4583
|
+
},
|
|
4584
|
+
"title": "linkTypes"
|
|
4585
|
+
},
|
|
4586
|
+
"function": {
|
|
4587
|
+
"type": "string",
|
|
4588
|
+
"minLength": 1,
|
|
4589
|
+
"maxLength": 255,
|
|
4590
|
+
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
4591
|
+
},
|
|
4592
|
+
"callback": {
|
|
4593
|
+
"type": "object",
|
|
4594
|
+
"properties": {
|
|
4595
|
+
"function": {
|
|
4596
|
+
"type": "string",
|
|
4597
|
+
"minLength": 1,
|
|
4598
|
+
"maxLength": 255,
|
|
4599
|
+
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
4600
|
+
}
|
|
4601
|
+
},
|
|
4602
|
+
"required": [
|
|
4603
|
+
"function"
|
|
4604
|
+
]
|
|
4605
|
+
},
|
|
4606
|
+
"key": {
|
|
4607
|
+
"$ref": "#/definitions/ModuleKeySchema"
|
|
4608
|
+
}
|
|
4609
|
+
},
|
|
4610
|
+
"required": [
|
|
4611
|
+
"function",
|
|
4612
|
+
"domains",
|
|
4613
|
+
"linkTypes",
|
|
4614
|
+
"key"
|
|
4615
|
+
]
|
|
4616
|
+
},
|
|
4617
|
+
"minItems": 1
|
|
4618
|
+
},
|
|
4554
4619
|
"jiraServiceManagement:queuePage": {
|
|
4555
4620
|
"type": "array",
|
|
4556
4621
|
"items": {
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -68,6 +68,10 @@ export type Handler = string;
|
|
|
68
68
|
*/
|
|
69
69
|
export type Cleanup = boolean;
|
|
70
70
|
export type ComponentTypes = ('APPLICATION' | 'LIBRARY' | 'OTHER' | 'SERVICE')[];
|
|
71
|
+
export type LinkTypes = [
|
|
72
|
+
'chat-channel' | 'document' | 'repository' | 'dashboard' | 'on-call' | 'project' | 'other-link',
|
|
73
|
+
...('chat-channel' | 'document' | 'repository' | 'dashboard' | 'on-call' | 'project' | 'other-link')[]
|
|
74
|
+
];
|
|
71
75
|
export type Scopes = string[];
|
|
72
76
|
export type Scripts = string[];
|
|
73
77
|
export type Styles = 'unsafe-inline'[];
|
|
@@ -1437,7 +1441,7 @@ export interface Modules {
|
|
|
1437
1441
|
}
|
|
1438
1442
|
)[]
|
|
1439
1443
|
];
|
|
1440
|
-
'jira:
|
|
1444
|
+
'jira:uiModifications'?: [
|
|
1441
1445
|
{
|
|
1442
1446
|
title: string;
|
|
1443
1447
|
resolver?: {
|
|
@@ -2445,6 +2449,28 @@ export interface Modules {
|
|
|
2445
2449
|
}
|
|
2446
2450
|
)[]
|
|
2447
2451
|
];
|
|
2452
|
+
'compass:dataProvider'?: [
|
|
2453
|
+
{
|
|
2454
|
+
domains: [string, ...string[]];
|
|
2455
|
+
linkTypes: LinkTypes;
|
|
2456
|
+
function: string;
|
|
2457
|
+
callback?: {
|
|
2458
|
+
function: string;
|
|
2459
|
+
[k: string]: unknown;
|
|
2460
|
+
};
|
|
2461
|
+
key: ModuleKeySchema;
|
|
2462
|
+
},
|
|
2463
|
+
...{
|
|
2464
|
+
domains: [string, ...string[]];
|
|
2465
|
+
linkTypes: LinkTypes;
|
|
2466
|
+
function: string;
|
|
2467
|
+
callback?: {
|
|
2468
|
+
function: string;
|
|
2469
|
+
[k: string]: unknown;
|
|
2470
|
+
};
|
|
2471
|
+
key: ModuleKeySchema;
|
|
2472
|
+
}[]
|
|
2473
|
+
];
|
|
2448
2474
|
'jiraServiceManagement:queuePage'?: [
|
|
2449
2475
|
(
|
|
2450
2476
|
| {
|
|
@@ -21,7 +21,7 @@ export declare enum AllModuleTypes {
|
|
|
21
21
|
JiraCustomFieldType = "jira:customFieldType",
|
|
22
22
|
JiraIssueAction = "jira:issueAction",
|
|
23
23
|
JiraIssueActivity = "jira:issueActivity",
|
|
24
|
-
|
|
24
|
+
JiraUiModifications = "jira:uiModifications",
|
|
25
25
|
JiraIssueGlance = "jira:issueGlance",
|
|
26
26
|
JiraIssuePanel = "jira:issuePanel",
|
|
27
27
|
JiraAdminPage = "jira:adminPage",
|
|
@@ -33,6 +33,7 @@ export declare enum AllModuleTypes {
|
|
|
33
33
|
CompassComponentPage = "compass:componentPage",
|
|
34
34
|
CompassGlobalPage = "compass:globalPage",
|
|
35
35
|
CompassTeamPage = "compass:teamPage",
|
|
36
|
+
CompassDataProvider = "compass:dataProvider",
|
|
36
37
|
JiraServiceManagementQueuePage = "jiraServiceManagement:queuePage",
|
|
37
38
|
JiraServiceManagementPortalRequestDetail = "jiraServiceManagement:portalRequestDetail",
|
|
38
39
|
JiraServiceManagementPortalRequestDetailPanel = "jiraServiceManagement:portalRequestDetailPanel",
|
|
@@ -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,kBA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wB,+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"}
|
|
@@ -25,7 +25,7 @@ var AllModuleTypes;
|
|
|
25
25
|
AllModuleTypes["JiraCustomFieldType"] = "jira:customFieldType";
|
|
26
26
|
AllModuleTypes["JiraIssueAction"] = "jira:issueAction";
|
|
27
27
|
AllModuleTypes["JiraIssueActivity"] = "jira:issueActivity";
|
|
28
|
-
AllModuleTypes["
|
|
28
|
+
AllModuleTypes["JiraUiModifications"] = "jira:uiModifications";
|
|
29
29
|
AllModuleTypes["JiraIssueGlance"] = "jira:issueGlance";
|
|
30
30
|
AllModuleTypes["JiraIssuePanel"] = "jira:issuePanel";
|
|
31
31
|
AllModuleTypes["JiraAdminPage"] = "jira:adminPage";
|
|
@@ -37,6 +37,7 @@ var AllModuleTypes;
|
|
|
37
37
|
AllModuleTypes["CompassComponentPage"] = "compass:componentPage";
|
|
38
38
|
AllModuleTypes["CompassGlobalPage"] = "compass:globalPage";
|
|
39
39
|
AllModuleTypes["CompassTeamPage"] = "compass:teamPage";
|
|
40
|
+
AllModuleTypes["CompassDataProvider"] = "compass:dataProvider";
|
|
40
41
|
AllModuleTypes["JiraServiceManagementQueuePage"] = "jiraServiceManagement:queuePage";
|
|
41
42
|
AllModuleTypes["JiraServiceManagementPortalRequestDetail"] = "jiraServiceManagement:portalRequestDetail";
|
|
42
43
|
AllModuleTypes["JiraServiceManagementPortalRequestDetailPanel"] = "jiraServiceManagement:portalRequestDetailPanel";
|
|
@@ -6,7 +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
|
|
9
|
+
const ui_modifications_1 = require("./modules-validators/jira/ui-modifications");
|
|
10
10
|
const confluence_1 = require("./modules-validators/confluence");
|
|
11
11
|
class ModulesValidator {
|
|
12
12
|
constructor() {
|
|
@@ -92,7 +92,7 @@ class ModulesValidator {
|
|
|
92
92
|
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)));
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
|
-
validationErrors.push(...
|
|
95
|
+
validationErrors.push(...ui_modifications_1.validateUiModificationsModule(modules, yamlContentByLine));
|
|
96
96
|
[
|
|
97
97
|
types_1.AllModuleTypes.JiraAdminPage,
|
|
98
98
|
types_1.AllModuleTypes.JiraProjectPage,
|
package/out/validators/modules-validators/jira/{issue-adjustment.d.ts → ui-modifications.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ValidationError } from '../../../types';
|
|
2
2
|
import { Modules } from '../../../schema/manifest';
|
|
3
|
-
export declare function
|
|
4
|
-
//# sourceMappingURL=
|
|
3
|
+
export declare function validateUiModificationsModule(modules: Modules, yamlContentByLine?: string[]): ValidationError[];
|
|
4
|
+
//# sourceMappingURL=ui-modifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-modifications.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/jira/ui-modifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAe/G"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.validateUiModificationsModule = void 0;
|
|
4
4
|
const types_1 = require("../../../types");
|
|
5
5
|
const text_1 = require("../../../text");
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
|
-
function
|
|
7
|
+
function validateUiModificationsModule(modules, yamlContentByLine) {
|
|
8
8
|
const validationErrors = [];
|
|
9
|
-
const moduleType = types_1.AllModuleTypes.
|
|
9
|
+
const moduleType = types_1.AllModuleTypes.JiraUiModifications;
|
|
10
10
|
const moduleArray = modules[moduleType];
|
|
11
11
|
if (moduleArray && moduleArray.length > 1) {
|
|
12
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
13
|
}
|
|
14
14
|
return validationErrors;
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.validateUiModificationsModule = validateUiModificationsModule;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issue-adjustment.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/jira/issue-adjustment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAe/G"}
|