@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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,116 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
-
## 0.0.0-experimental-
|
|
3
|
+
## 0.0.0-experimental-9489df9
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 6728c67: Make validator interface asynchronous
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- acf78b5: BCAT-1386 Add scopes mapping for bitbucket repo created event
|
|
12
|
+
- 0da5775: Add following Jira Service Management modules:
|
|
13
|
+
|
|
14
|
+
- jiraServiceManagement:portalRequestCreatePropertyPanel module
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- c1c93a4: Update manifest definitions
|
|
19
|
+
- b1684fd: Update manifest definitions
|
|
20
|
+
|
|
21
|
+
## 4.0.0-next.4
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- b1684fd: Update manifest definitions
|
|
26
|
+
|
|
27
|
+
## 4.0.0-next.3
|
|
28
|
+
|
|
29
|
+
### Major Changes
|
|
30
|
+
|
|
31
|
+
- 6728c67: Make validator interface asynchronous
|
|
32
|
+
|
|
33
|
+
## 3.11.0-next.2
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- 0da5775: Add following Jira Service Management modules:
|
|
38
|
+
|
|
39
|
+
- jiraServiceManagement:portalRequestCreatePropertyPanel module
|
|
40
|
+
|
|
41
|
+
## 3.11.0-next.1
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- acf78b58: BCAT-1386 Add scopes mapping for bitbucket repo created event
|
|
46
|
+
|
|
47
|
+
## 3.10.1-next.0
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- c1c93a4: Update manifest definitions
|
|
52
|
+
|
|
53
|
+
## 3.10.0
|
|
54
|
+
|
|
55
|
+
### Minor Changes
|
|
56
|
+
|
|
57
|
+
- f890e0e: Enabling jira permission modules
|
|
58
|
+
- 9298536: Added manifest schema changes for KeyboardShortcuts in Confluence Forge modules.
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- 02aefee: Verify Automation for Confluence extension points
|
|
63
|
+
- d486898: Add new product events for issue links
|
|
64
|
+
- ee8d860: Update manifest definitions
|
|
65
|
+
- 2ae0afe: Update manifest definitions
|
|
66
|
+
- 91daffc: Update manifest definitions
|
|
67
|
+
- 7558a5d: Update manifest definitions
|
|
68
|
+
- f543a47: Update manifest definitions
|
|
69
|
+
- 8876b96: Update manifest definitions
|
|
70
|
+
|
|
71
|
+
## 3.10.0-next.6
|
|
72
|
+
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- ee8d860: Update manifest definitions
|
|
76
|
+
|
|
77
|
+
## 3.10.0-next.5
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- 8876b96: Update manifest definitions
|
|
82
|
+
|
|
83
|
+
## 3.10.0-next.4
|
|
84
|
+
|
|
85
|
+
### Minor Changes
|
|
86
|
+
|
|
87
|
+
- 9298536: Added manifest schema changes for KeyboardShortcuts in Confluence Forge modules.
|
|
88
|
+
|
|
89
|
+
## 3.10.0-next.3
|
|
90
|
+
|
|
91
|
+
### Minor Changes
|
|
92
|
+
|
|
93
|
+
- f890e0e: Enabling jira permission modules
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- d486898: Add new product events for issue links
|
|
98
|
+
- 91daffc: Update manifest definitions
|
|
99
|
+
|
|
100
|
+
## 3.9.1-next.2
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- 7558a5d9: Update manifest definitions
|
|
105
|
+
|
|
106
|
+
## 3.9.1-next.1
|
|
107
|
+
|
|
108
|
+
### Patch Changes
|
|
109
|
+
|
|
110
|
+
- 02aefee: Verify Automation for Confluence extension points
|
|
111
|
+
- f543a47: Update manifest definitions
|
|
112
|
+
|
|
113
|
+
## 3.9.1-next.0
|
|
4
114
|
|
|
5
115
|
### Patch Changes
|
|
6
116
|
|
package/out/index.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export * from './types';
|
|
|
9
9
|
export * from './utils';
|
|
10
10
|
export * from './validators';
|
|
11
11
|
export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch } from './schema/manifest';
|
|
12
|
-
export declare const validate: (basic?: boolean, manifest?: string | undefined) => ManifestValidationResult<ManifestSchema | BasicManifestSchema
|
|
12
|
+
export declare const validate: (basic?: boolean, manifest?: string | undefined) => Promise<ManifestValidationResult<ManifestSchema | BasicManifestSchema>>;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAAC,CAInD,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -11,9 +11,7 @@ tslib_1.__exportStar(require("./text"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./types"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./utils"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./validators"), exports);
|
|
14
|
-
exports.validate = (basic = false, manifest = undefined) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.process(manifest);
|
|
19
|
-
};
|
|
14
|
+
exports.validate = (basic = false, manifest = undefined) => builder_1.ProcessorBuilder.instance()
|
|
15
|
+
.withValidation(basic ? types_1.ValidationTypes.BASIC : types_1.ValidationTypes.FULL)
|
|
16
|
+
.build()
|
|
17
|
+
.process(manifest);
|
|
@@ -106,6 +106,48 @@
|
|
|
106
106
|
]
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"productEvent": "avi:jira:created:issuelink",
|
|
111
|
+
"oAuthScopes": {
|
|
112
|
+
"beta": [
|
|
113
|
+
"read:field:jira",
|
|
114
|
+
"read:issue-link-type:jira",
|
|
115
|
+
"read:issue:jira",
|
|
116
|
+
"read:issue-type:jira",
|
|
117
|
+
"read:priority:jira",
|
|
118
|
+
"read:status:jira",
|
|
119
|
+
"read:avatar:jira",
|
|
120
|
+
"read:issue.time-tracking:jira",
|
|
121
|
+
"read:project-category:jira",
|
|
122
|
+
"read:project:jira",
|
|
123
|
+
"read:user:jira"
|
|
124
|
+
],
|
|
125
|
+
"current": [
|
|
126
|
+
"read:jira-work"
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"productEvent": "avi:jira:deleted:issuelink",
|
|
132
|
+
"oAuthScopes": {
|
|
133
|
+
"beta": [
|
|
134
|
+
"read:field:jira",
|
|
135
|
+
"read:issue-link-type:jira",
|
|
136
|
+
"read:issue:jira",
|
|
137
|
+
"read:issue-type:jira",
|
|
138
|
+
"read:priority:jira",
|
|
139
|
+
"read:status:jira",
|
|
140
|
+
"read:avatar:jira",
|
|
141
|
+
"read:issue.time-tracking:jira",
|
|
142
|
+
"read:project-category:jira",
|
|
143
|
+
"read:project:jira",
|
|
144
|
+
"read:user:jira"
|
|
145
|
+
],
|
|
146
|
+
"current": [
|
|
147
|
+
"read:jira-work"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
109
151
|
{
|
|
110
152
|
"productEvent": "avi:jira:created:field",
|
|
111
153
|
"oAuthScopes": {
|
|
@@ -482,6 +524,14 @@
|
|
|
482
524
|
"read:component:compass"
|
|
483
525
|
]
|
|
484
526
|
}
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"productEvent": "avi:bitbucket:created:repository",
|
|
530
|
+
"oAuthScopes": {
|
|
531
|
+
"current": [
|
|
532
|
+
"read:repository:bitbucket"
|
|
533
|
+
]
|
|
534
|
+
}
|
|
485
535
|
}
|
|
486
536
|
]
|
|
487
537
|
}
|
|
@@ -4,6 +4,6 @@ import { ValidatorInterface } from '../validators';
|
|
|
4
4
|
export declare abstract class AbstractValidationProcessor<T> implements ProcessorInterface<T> {
|
|
5
5
|
protected readonly validators: ValidatorInterface<any | undefined, T>[];
|
|
6
6
|
protected constructor(validators: ValidatorInterface<any | undefined, T>[]);
|
|
7
|
-
process(manifest: string | undefined): ManifestValidationResult<T
|
|
7
|
+
process(manifest: string | undefined): Promise<ManifestValidationResult<T>>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=abstract-validation-processor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/abstract-validation-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,8BAAsB,2BAA2B,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAA7F,SAAS,aAAgC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"abstract-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/abstract-validation-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,8BAAsB,2BAA2B,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAA7F,SAAS,aAAgC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAEvF,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkBlF"}
|
|
@@ -5,15 +5,20 @@ class AbstractValidationProcessor {
|
|
|
5
5
|
constructor(validators) {
|
|
6
6
|
this.validators = validators;
|
|
7
7
|
}
|
|
8
|
-
process(manifest) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
async process(manifest) {
|
|
9
|
+
var _a;
|
|
10
|
+
let results = {
|
|
11
|
+
success: true
|
|
12
|
+
};
|
|
13
|
+
for (const validator of this.validators) {
|
|
14
|
+
const stepResults = await validator.validate((_a = results.manifestObject) !== null && _a !== void 0 ? _a : manifest);
|
|
15
|
+
results = {
|
|
12
16
|
success: results.success && stepResults.success,
|
|
13
17
|
manifestObject: stepResults.manifestObject || results.manifestObject,
|
|
14
18
|
errors: [...(results.errors || []), ...(stepResults.errors || [])]
|
|
15
19
|
};
|
|
16
|
-
}
|
|
20
|
+
}
|
|
21
|
+
return results;
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
exports.AbstractValidationProcessor = AbstractValidationProcessor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManifestValidationResult } from '../types';
|
|
2
2
|
export interface ProcessorInterface<T> {
|
|
3
|
-
process(manifest?: string): ManifestValidationResult<T
|
|
3
|
+
process(manifest?: string): Promise<ManifestValidationResult<T>>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=processor-interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor-interface.d.ts","sourceRoot":"","sources":["../../src/processor/processor-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"processor-interface.d.ts","sourceRoot":"","sources":["../../src/processor/processor-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CAClE"}
|