@forge/manifest 0.0.0-experimental-d3a39c9 → 0.0.0-experimental-64caa5a
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 +656 -1
- package/out/builder/processor-builder.d.ts.map +1 -1
- package/out/builder/processor-builder.js +3 -0
- package/out/mapping/product-event-to-scope-mapping.json +90 -0
- package/out/processor/deprecated-csp-method-validation-processor.d.ts +6 -0
- package/out/processor/deprecated-csp-method-validation-processor.d.ts.map +1 -0
- package/out/processor/deprecated-csp-method-validation-processor.js +18 -0
- package/out/processor/full-validation-processor.d.ts.map +1 -1
- package/out/processor/full-validation-processor.js +3 -2
- package/out/schema/basic-manifest-schema.json +24 -7
- package/out/schema/basic-manifest.d.ts +13 -3
- package/out/schema/display-conditions-schema.json +42 -0
- package/out/schema/manifest-schema.json +8782 -1085
- package/out/schema/manifest.d.ts +50714 -156
- package/out/scopes/shipyard-scopes.json +357 -0
- package/out/text/errors.d.ts +19 -1
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +21 -3
- package/out/types/display-condition-types.d.ts +8 -0
- package/out/types/display-condition-types.d.ts.map +1 -1
- package/out/types/index.d.ts +0 -1
- package/out/types/index.d.ts.map +1 -1
- package/out/types/index.js +0 -1
- package/out/types/module-types.d.ts +62 -1
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +61 -0
- package/out/types/validation-types.d.ts +2 -1
- package/out/types/validation-types.d.ts.map +1 -1
- package/out/types/validation-types.js +1 -0
- package/out/utils/line-finder.d.ts +1 -1
- package/out/utils/line-finder.d.ts.map +1 -1
- package/out/utils/line-finder.js +25 -7
- package/out/utils/module-key-cleaner.d.ts.map +1 -1
- package/out/validators/connect-modules-validator.d.ts +7 -0
- package/out/validators/connect-modules-validator.d.ts.map +1 -0
- package/out/validators/connect-modules-validator.js +48 -0
- package/out/validators/connect-remote-validator.d.ts +7 -0
- package/out/validators/connect-remote-validator.d.ts.map +1 -0
- package/out/validators/connect-remote-validator.js +31 -0
- package/out/validators/index.d.ts +3 -0
- package/out/validators/index.d.ts.map +1 -1
- package/out/validators/index.js +3 -0
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +23 -2
- package/out/validators/permissions-validator.d.ts.map +1 -1
- package/out/validators/permissions-validator.js +3 -2
- package/out/validators/providers-validator.d.ts +1 -0
- package/out/validators/providers-validator.d.ts.map +1 -1
- package/out/validators/providers-validator.js +16 -0
- package/out/validators/resources-validator.d.ts.map +1 -1
- package/out/validators/resources-validator.js +26 -2
- package/out/validators/schema-validator.d.ts.map +1 -1
- package/out/validators/schema-validator.js +5 -1
- package/package.json +3 -2
- package/out/types/scopes-types.d.ts +0 -2
- package/out/types/scopes-types.d.ts.map +0 -1
- package/out/types/scopes-types.js +0 -52
|
@@ -42,6 +42,60 @@
|
|
|
42
42
|
"read:jira-work"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
|
+
{
|
|
46
|
+
"productEvent": "avi:jira:created:field",
|
|
47
|
+
"oAuthScopes": [
|
|
48
|
+
"manage:jira-configuration"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"productEvent": "avi:jira:updated:field",
|
|
53
|
+
"oAuthScopes": [
|
|
54
|
+
"manage:jira-configuration"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"productEvent": "avi:jira:trashed:field",
|
|
59
|
+
"oAuthScopes": [
|
|
60
|
+
"manage:jira-configuration"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"productEvent": "avi:jira:deleted:field",
|
|
65
|
+
"oAuthScopes": [
|
|
66
|
+
"manage:jira-configuration"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"productEvent": "avi:jira:restored:field",
|
|
71
|
+
"oAuthScopes": [
|
|
72
|
+
"manage:jira-configuration"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"productEvent": "avi:jira:created:field:context",
|
|
77
|
+
"oAuthScopes": [
|
|
78
|
+
"manage:jira-configuration"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"productEvent": "avi:jira:updated:field:context",
|
|
83
|
+
"oAuthScopes": [
|
|
84
|
+
"manage:jira-configuration"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"productEvent": "avi:jira:deleted:field:context",
|
|
89
|
+
"oAuthScopes": [
|
|
90
|
+
"manage:jira-configuration"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"productEvent": "avi:jira:updated:field:context:configuration",
|
|
95
|
+
"oAuthScopes": [
|
|
96
|
+
"read:custom-field-contextual-configuration:jira"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
45
99
|
{
|
|
46
100
|
"productEvent": "avi:confluence:updated:blogpost",
|
|
47
101
|
"oAuthScopes": [
|
|
@@ -119,6 +173,42 @@
|
|
|
119
173
|
"oAuthScopes": [
|
|
120
174
|
"read:confluence-content.all"
|
|
121
175
|
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"productEvent": "avi:confluence:created:space:V2",
|
|
179
|
+
"oAuthScopes": [
|
|
180
|
+
"read:confluence-space.summary"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"productEvent": "avi:confluence:updated:space:V2",
|
|
185
|
+
"oAuthScopes": [
|
|
186
|
+
"read:confluence-space.summary"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"productEvent": "avi:confluence:deleted:space:V2",
|
|
191
|
+
"oAuthScopes": [
|
|
192
|
+
"read:confluence-space.summary"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"productEvent": "avi:compass:created:component_link",
|
|
197
|
+
"oAuthScopes": [
|
|
198
|
+
"read:component:compass"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"productEvent": "avi:compass:updated:component_link",
|
|
203
|
+
"oAuthScopes": [
|
|
204
|
+
"read:component:compass"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"productEvent": "avi:compass:deleted:component_link",
|
|
209
|
+
"oAuthScopes": [
|
|
210
|
+
"read:component:compass"
|
|
211
|
+
]
|
|
122
212
|
}
|
|
123
213
|
]
|
|
124
214
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AbstractValidationProcessor } from './abstract-validation-processor';
|
|
2
|
+
import { ManifestSchema } from '../schema/manifest';
|
|
3
|
+
export declare class DeprecatedCspMethodValidationProcessor extends AbstractValidationProcessor<ManifestSchema> {
|
|
4
|
+
constructor();
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=deprecated-csp-method-validation-processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated-csp-method-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/deprecated-csp-method-validation-processor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,sCAAuC,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAStG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeprecatedCspMethodValidationProcessor = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const validators_1 = require("../validators");
|
|
6
|
+
const abstract_validation_processor_1 = require("./abstract-validation-processor");
|
|
7
|
+
const FULL_SCHEMA = tslib_1.__importStar(require("../schema/manifest-schema.json"));
|
|
8
|
+
class DeprecatedCspMethodValidationProcessor extends abstract_validation_processor_1.AbstractValidationProcessor {
|
|
9
|
+
constructor() {
|
|
10
|
+
super([
|
|
11
|
+
new validators_1.FileValidator(),
|
|
12
|
+
new validators_1.YamlValidator(),
|
|
13
|
+
new validators_1.SchemaValidator(FULL_SCHEMA),
|
|
14
|
+
new validators_1.ResourcesValidator()
|
|
15
|
+
]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.DeprecatedCspMethodValidationProcessor = DeprecatedCspMethodValidationProcessor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAevF"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FullValidationProcessor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const validators_1 = require("../validators");
|
|
6
|
-
const permissions_validator_1 = require("../validators/permissions-validator");
|
|
7
6
|
const FULL_SCHEMA = tslib_1.__importStar(require("../schema/manifest-schema.json"));
|
|
8
7
|
const DISPLAY_CONDITIONS_SCHEMA = tslib_1.__importStar(require("../schema/display-conditions-schema.json"));
|
|
9
8
|
const abstract_validation_processor_1 = require("./abstract-validation-processor");
|
|
@@ -14,8 +13,10 @@ class FullValidationProcessor extends abstract_validation_processor_1.AbstractVa
|
|
|
14
13
|
new validators_1.YamlValidator(),
|
|
15
14
|
new validators_1.SchemaValidator(FULL_SCHEMA),
|
|
16
15
|
new validators_1.ModulesValidator(),
|
|
16
|
+
new validators_1.ConnectModulesValidator(),
|
|
17
17
|
new validators_1.ResourcesValidator(),
|
|
18
|
-
new
|
|
18
|
+
new validators_1.ConnectRemoteValidator(),
|
|
19
|
+
new validators_1.PermissionsValidator(),
|
|
19
20
|
new validators_1.DisplayConditionsValidator(DISPLAY_CONDITIONS_SCHEMA),
|
|
20
21
|
new validators_1.ProvidersValidator()
|
|
21
22
|
]);
|
|
@@ -47,13 +47,30 @@
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
50
|
+
"connect": {
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": [
|
|
53
|
+
"key"
|
|
54
|
+
],
|
|
55
|
+
"type": "object",
|
|
56
|
+
"title": "connect",
|
|
57
|
+
"description": "Connect Configuration for the forge app.",
|
|
58
|
+
"properties": {
|
|
59
|
+
"key": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The app's connect key",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 90,
|
|
64
|
+
"pattern": "^[a-zA-Z0-9-._]+$",
|
|
65
|
+
"title": "key"
|
|
66
|
+
},
|
|
67
|
+
"remote": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.",
|
|
70
|
+
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
71
|
+
"maxLength": 23
|
|
72
|
+
}
|
|
73
|
+
}
|
|
57
74
|
}
|
|
58
75
|
},
|
|
59
76
|
"required": [
|
|
@@ -22,9 +22,9 @@ export type Snapshots = boolean;
|
|
|
22
22
|
*/
|
|
23
23
|
export type Enabled = boolean;
|
|
24
24
|
/**
|
|
25
|
-
* The app's connect
|
|
25
|
+
* The app's connect key
|
|
26
26
|
*/
|
|
27
|
-
export type
|
|
27
|
+
export type Key = string;
|
|
28
28
|
|
|
29
29
|
export interface BasicManifestSchema {
|
|
30
30
|
app: App;
|
|
@@ -35,7 +35,7 @@ export interface App {
|
|
|
35
35
|
id: Id;
|
|
36
36
|
runtime?: Runtime;
|
|
37
37
|
licensing?: Licensing;
|
|
38
|
-
|
|
38
|
+
connect?: Connect;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Options related to the Forge Javascript runtime.
|
|
@@ -49,3 +49,13 @@ export interface Runtime {
|
|
|
49
49
|
export interface Licensing {
|
|
50
50
|
enabled: Enabled;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Connect Configuration for the forge app.
|
|
54
|
+
*/
|
|
55
|
+
export interface Connect {
|
|
56
|
+
key: Key;
|
|
57
|
+
/**
|
|
58
|
+
* A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.
|
|
59
|
+
*/
|
|
60
|
+
remote?: string;
|
|
61
|
+
}
|
|
@@ -468,6 +468,42 @@
|
|
|
468
468
|
},
|
|
469
469
|
"type": "object"
|
|
470
470
|
},
|
|
471
|
+
"ProjectSettingsPage": {
|
|
472
|
+
"additionalProperties": false,
|
|
473
|
+
"properties": {
|
|
474
|
+
"hasCoreAccess": {
|
|
475
|
+
"type": "boolean"
|
|
476
|
+
},
|
|
477
|
+
"hasServiceDeskAccess": {
|
|
478
|
+
"type": "boolean"
|
|
479
|
+
},
|
|
480
|
+
"hasSoftwareAccess": {
|
|
481
|
+
"type": "boolean"
|
|
482
|
+
},
|
|
483
|
+
"isAdmin": {
|
|
484
|
+
"type": "boolean"
|
|
485
|
+
},
|
|
486
|
+
"isLoggedIn": {
|
|
487
|
+
"type": "boolean"
|
|
488
|
+
},
|
|
489
|
+
"isSiteAdmin": {
|
|
490
|
+
"type": "boolean"
|
|
491
|
+
},
|
|
492
|
+
"projectId": {
|
|
493
|
+
"$ref": "#/definitions/StringOrListOfStrings"
|
|
494
|
+
},
|
|
495
|
+
"projectKey": {
|
|
496
|
+
"$ref": "#/definitions/StringOrListOfStrings"
|
|
497
|
+
},
|
|
498
|
+
"projectName": {
|
|
499
|
+
"$ref": "#/definitions/StringOrListOfStrings"
|
|
500
|
+
},
|
|
501
|
+
"projectType": {
|
|
502
|
+
"$ref": "#/definitions/StringOrListOfStrings"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"type": "object"
|
|
506
|
+
},
|
|
471
507
|
"StringOrListOfStrings": {
|
|
472
508
|
"anyOf": [
|
|
473
509
|
{
|
|
@@ -508,6 +544,9 @@
|
|
|
508
544
|
"jira:customField": {
|
|
509
545
|
"$ref": "#/definitions/IssueView"
|
|
510
546
|
},
|
|
547
|
+
"jira:globalPage": {
|
|
548
|
+
"$ref": "#/definitions/Jira"
|
|
549
|
+
},
|
|
511
550
|
"jira:issueAction": {
|
|
512
551
|
"$ref": "#/definitions/IssueView"
|
|
513
552
|
},
|
|
@@ -522,6 +561,9 @@
|
|
|
522
561
|
},
|
|
523
562
|
"jira:projectPage": {
|
|
524
563
|
"$ref": "#/definitions/ProjectPage"
|
|
564
|
+
},
|
|
565
|
+
"jira:projectSettingsPage": {
|
|
566
|
+
"$ref": "#/definitions/ProjectSettingsPage"
|
|
525
567
|
}
|
|
526
568
|
},
|
|
527
569
|
"type": "object"
|