@forge/manifest 4.13.0 → 4.14.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 +12 -0
- package/out/mapping/product-event-to-scope-mapping.json +24 -0
- package/out/schema/basic-manifest-schema.json +8 -1
- package/out/schema/basic-manifest.d.ts +6 -1
- package/out/schema/manifest-schema.json +8 -1
- package/out/schema/manifest.d.ts +6 -1
- package/out/validators/schema-validator.d.ts.map +1 -1
- package/out/validators/schema-validator.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 4.14.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 44042371: Add linter support for runtime name in manifest
|
|
8
|
+
|
|
9
|
+
## 4.14.0-next.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 5d8a7a49: Add Bitbucket PR comment events
|
|
14
|
+
|
|
3
15
|
## 4.13.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -902,6 +902,30 @@
|
|
|
902
902
|
"read:pullrequest:bitbucket"
|
|
903
903
|
]
|
|
904
904
|
}
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"productEvent": "avi:bitbucket:created:pullrequest-comment",
|
|
908
|
+
"oAuthScopes": {
|
|
909
|
+
"current": [
|
|
910
|
+
"read:pullrequest:bitbucket"
|
|
911
|
+
]
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"productEvent": "avi:bitbucket:updated:pullrequest-comment",
|
|
916
|
+
"oAuthScopes": {
|
|
917
|
+
"current": [
|
|
918
|
+
"read:pullrequest:bitbucket"
|
|
919
|
+
]
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"productEvent": "avi:bitbucket:deleted:pullrequest-comment",
|
|
924
|
+
"oAuthScopes": {
|
|
925
|
+
"current": [
|
|
926
|
+
"read:pullrequest:bitbucket"
|
|
927
|
+
]
|
|
928
|
+
}
|
|
905
929
|
}
|
|
906
930
|
]
|
|
907
931
|
}
|
|
@@ -22,9 +22,16 @@
|
|
|
22
22
|
"properties": {
|
|
23
23
|
"snapshots": {
|
|
24
24
|
"default": true,
|
|
25
|
-
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true.",
|
|
25
|
+
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the \"sandbox\" runtime.",
|
|
26
26
|
"title": "snapshots",
|
|
27
27
|
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"name": {
|
|
30
|
+
"default": "sandbox",
|
|
31
|
+
"description": "Name of the runtime to use for app execution.",
|
|
32
|
+
"title": "name",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["sandbox", "nodejs18.x"]
|
|
28
35
|
}
|
|
29
36
|
},
|
|
30
37
|
"title": "runtime",
|
|
@@ -14,9 +14,13 @@ export type Description = string;
|
|
|
14
14
|
*/
|
|
15
15
|
export type Id = string;
|
|
16
16
|
/**
|
|
17
|
-
* Whether a snapshot of the app is taken at deployment time. Default value of true.
|
|
17
|
+
* Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the "sandbox" runtime.
|
|
18
18
|
*/
|
|
19
19
|
export type Snapshots = boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Name of the runtime to use for app execution.
|
|
22
|
+
*/
|
|
23
|
+
export type Name = 'sandbox' | 'nodejs18.x';
|
|
20
24
|
/**
|
|
21
25
|
* Whether to enable paid app licensing for production installations of this app. Default value of false.
|
|
22
26
|
*/
|
|
@@ -144,6 +148,7 @@ export interface App {
|
|
|
144
148
|
*/
|
|
145
149
|
export interface Runtime {
|
|
146
150
|
snapshots?: Snapshots;
|
|
151
|
+
name?: Name;
|
|
147
152
|
}
|
|
148
153
|
/**
|
|
149
154
|
* Options related to paid app licensing
|
|
@@ -22,9 +22,16 @@
|
|
|
22
22
|
"properties": {
|
|
23
23
|
"snapshots": {
|
|
24
24
|
"default": true,
|
|
25
|
-
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true.",
|
|
25
|
+
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the \"sandbox\" runtime.",
|
|
26
26
|
"title": "snapshots",
|
|
27
27
|
"type": "boolean"
|
|
28
|
+
},
|
|
29
|
+
"name": {
|
|
30
|
+
"default": "sandbox",
|
|
31
|
+
"description": "Name of the runtime to use for app execution.",
|
|
32
|
+
"title": "name",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["sandbox", "nodejs18.x"]
|
|
28
35
|
}
|
|
29
36
|
},
|
|
30
37
|
"title": "runtime",
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -14,9 +14,13 @@ export type Description = string;
|
|
|
14
14
|
*/
|
|
15
15
|
export type Id = string;
|
|
16
16
|
/**
|
|
17
|
-
* Whether a snapshot of the app is taken at deployment time. Default value of true.
|
|
17
|
+
* Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the "sandbox" runtime.
|
|
18
18
|
*/
|
|
19
19
|
export type Snapshots = boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Name of the runtime to use for app execution.
|
|
22
|
+
*/
|
|
23
|
+
export type Name = 'sandbox' | 'nodejs18.x';
|
|
20
24
|
/**
|
|
21
25
|
* Whether to enable paid app licensing for production installations of this app. Default value of false.
|
|
22
26
|
*/
|
|
@@ -324,6 +328,7 @@ export interface App {
|
|
|
324
328
|
*/
|
|
325
329
|
export interface Runtime {
|
|
326
330
|
snapshots?: Snapshots;
|
|
331
|
+
name?: Name;
|
|
327
332
|
}
|
|
328
333
|
/**
|
|
329
334
|
* Options related to paid app licensing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/validators/schema-validator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WAAW,CAejB;IAEI,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkD9F"}
|
|
@@ -76,11 +76,12 @@ class SchemaValidator {
|
|
|
76
76
|
return Object.assign({ message: text_1.errors.schema.deprecatedValue(section, property, this.getDeprecationInfo(section, property)), reference: text_1.References.Deprecated, level: 'warning' }, (0, utils_1.findPosition)(`${section}:`, manifest.yamlContentByLine));
|
|
77
77
|
};
|
|
78
78
|
this.handleError = (path, error, manifest) => {
|
|
79
|
-
const
|
|
79
|
+
const rootManifestSection = path[0];
|
|
80
|
+
const manifestSection = path[path.length - 1];
|
|
80
81
|
if (this.isDeprecatedField(manifestSection, error)) {
|
|
81
82
|
return this.handleDeprecatedField(manifestSection, error, manifest);
|
|
82
83
|
}
|
|
83
|
-
if (
|
|
84
|
+
if (rootManifestSection === 'modules') {
|
|
84
85
|
return this.handleModuleError(path.slice(1), error, manifest);
|
|
85
86
|
}
|
|
86
87
|
return this.handleGenericError(path, error, manifest);
|