@forge/manifest 5.0.1 → 5.0.2-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/processor/full-validation-processor.d.ts.map +1 -1
- package/out/processor/full-validation-processor.js +3 -1
- package/out/schema/basic-manifest-schema.json +1 -1
- package/out/schema/basic-manifest.d.ts +1 -1
- package/out/schema/manifest-schema.json +24 -16
- package/out/schema/manifest.d.ts +15 -11
- package/out/text/errors.d.ts +3 -0
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +3 -0
- package/out/validators/app-features-validator.d.ts +7 -0
- package/out/validators/app-features-validator.d.ts.map +1 -0
- package/out/validators/app-features-validator.js +21 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 5.0.2-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ee296e3: changed validation for autoUserConsent to become deprecated
|
|
8
|
+
|
|
9
|
+
## 5.0.2-next.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e06a091: Update manifest definitions
|
|
14
|
+
|
|
3
15
|
## 5.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAKpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAsBvF"}
|
|
@@ -8,6 +8,7 @@ const DISPLAY_CONDITIONS_SCHEMA = tslib_1.__importStar(require("../schema/displa
|
|
|
8
8
|
const abstract_validation_processor_1 = require("./abstract-validation-processor");
|
|
9
9
|
const storage_validator_1 = require("../validators/storage-validator");
|
|
10
10
|
const jql_function_validator_1 = require("../validators/jql-function-validator");
|
|
11
|
+
const app_features_validator_1 = require("../validators/app-features-validator");
|
|
11
12
|
class FullValidationProcessor extends abstract_validation_processor_1.AbstractValidationProcessor {
|
|
12
13
|
constructor() {
|
|
13
14
|
super([
|
|
@@ -26,7 +27,8 @@ class FullValidationProcessor extends abstract_validation_processor_1.AbstractVa
|
|
|
26
27
|
new validators_1.EntityPropertyValidator(),
|
|
27
28
|
new validators_1.SnapshotValidator(),
|
|
28
29
|
new jql_function_validator_1.JqlFunctionValidator(),
|
|
29
|
-
new validators_1.PackageValidator()
|
|
30
|
+
new validators_1.PackageValidator(),
|
|
31
|
+
new app_features_validator_1.AppFeaturesValidator()
|
|
30
32
|
]);
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"type": "boolean",
|
|
68
68
|
"default": false,
|
|
69
69
|
"title": "autoUserConsent",
|
|
70
|
-
"description": "
|
|
70
|
+
"description": "This property is deprecated and no longer required to use simplified user consent. Please remove it from your manifest as in a future release this will become an error."
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
},
|
|
@@ -26,7 +26,7 @@ export type Name = 'sandbox' | 'nodejs18.x';
|
|
|
26
26
|
*/
|
|
27
27
|
export type Enabled = boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* This property is deprecated and no longer required to use simplified user consent. Please remove it from your manifest as in a future release this will become an error.
|
|
30
30
|
*/
|
|
31
31
|
export type AutoUserConsent = boolean;
|
|
32
32
|
/**
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"type": "boolean",
|
|
68
68
|
"default": false,
|
|
69
69
|
"title": "autoUserConsent",
|
|
70
|
-
"description": "
|
|
70
|
+
"description": "This property is deprecated and no longer required to use simplified user consent. Please remove it from your manifest as in a future release this will become an error."
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
},
|
|
@@ -861,23 +861,31 @@
|
|
|
861
861
|
]
|
|
862
862
|
},
|
|
863
863
|
"config": {
|
|
864
|
-
"
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
"
|
|
868
|
-
"minLength": 1,
|
|
869
|
-
"maxLength": 255,
|
|
870
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
864
|
+
"oneOf": [
|
|
865
|
+
{
|
|
866
|
+
"type": "boolean",
|
|
867
|
+
"description": "Enable config for UI Kit 2"
|
|
871
868
|
},
|
|
872
|
-
|
|
873
|
-
"
|
|
874
|
-
|
|
875
|
-
"
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
869
|
+
{
|
|
870
|
+
"type": "object",
|
|
871
|
+
"properties": {
|
|
872
|
+
"function": {
|
|
873
|
+
"type": "string",
|
|
874
|
+
"minLength": 1,
|
|
875
|
+
"maxLength": 255,
|
|
876
|
+
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
877
|
+
},
|
|
878
|
+
"render": {
|
|
879
|
+
"enum": [
|
|
880
|
+
"native",
|
|
881
|
+
"default"
|
|
882
|
+
],
|
|
883
|
+
"type": "string",
|
|
884
|
+
"default": "default"
|
|
885
|
+
}
|
|
886
|
+
}
|
|
879
887
|
}
|
|
880
|
-
|
|
888
|
+
]
|
|
881
889
|
},
|
|
882
890
|
"data": {
|
|
883
891
|
"type": "object",
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type Name = 'sandbox' | 'nodejs18.x';
|
|
|
26
26
|
*/
|
|
27
27
|
export type Enabled = boolean;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* This property is deprecated and no longer required to use simplified user consent. Please remove it from your manifest as in a future release this will become an error.
|
|
30
30
|
*/
|
|
31
31
|
export type AutoUserConsent = boolean;
|
|
32
32
|
/**
|
|
@@ -644,11 +644,13 @@ export interface Modules {
|
|
|
644
644
|
refDataSchema?: {
|
|
645
645
|
inputType: string;
|
|
646
646
|
};
|
|
647
|
-
config?:
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
647
|
+
config?:
|
|
648
|
+
| boolean
|
|
649
|
+
| {
|
|
650
|
+
function?: string;
|
|
651
|
+
render?: 'native' | 'default';
|
|
652
|
+
[k: string]: unknown;
|
|
653
|
+
};
|
|
652
654
|
data?: {
|
|
653
655
|
function?: string;
|
|
654
656
|
schema?: string;
|
|
@@ -696,11 +698,13 @@ export interface Modules {
|
|
|
696
698
|
refDataSchema?: {
|
|
697
699
|
inputType: string;
|
|
698
700
|
};
|
|
699
|
-
config?:
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
701
|
+
config?:
|
|
702
|
+
| boolean
|
|
703
|
+
| {
|
|
704
|
+
function?: string;
|
|
705
|
+
render?: 'native' | 'default';
|
|
706
|
+
[k: string]: unknown;
|
|
707
|
+
};
|
|
704
708
|
data?: {
|
|
705
709
|
function?: string;
|
|
706
710
|
schema?: string;
|
package/out/text/errors.d.ts
CHANGED
|
@@ -120,6 +120,9 @@ export declare const errors: {
|
|
|
120
120
|
missingAppConnectRemote: () => string;
|
|
121
121
|
missingRemoteForConnect: (key: string) => string;
|
|
122
122
|
missingConnectModules: () => string;
|
|
123
|
+
features: {
|
|
124
|
+
deprecatedAutoUserConsent: () => string;
|
|
125
|
+
};
|
|
123
126
|
storage: {
|
|
124
127
|
missingStorageInformation: () => string;
|
|
125
128
|
entities: {
|
package/out/text/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts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SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;IACjC,eAAe,0BAA0B;CAC1C"}
|
package/out/text/errors.js
CHANGED
|
@@ -134,6 +134,9 @@ exports.errors = {
|
|
|
134
134
|
missingAppConnectRemote: () => `missing app.connect.remote. app.connect.remote is required if connectModules are present.`,
|
|
135
135
|
missingRemoteForConnect: (key) => `no remote found with key '${key}' matching app.connect.remote value.`,
|
|
136
136
|
missingConnectModules: () => 'Missing connectModules. When app.connect.authentication is present, connectModules is required.',
|
|
137
|
+
features: {
|
|
138
|
+
deprecatedAutoUserConsent: () => 'The autoUserConsent feature flag is no longer required to use automatic user consent and should be removed from the manifest.'
|
|
139
|
+
},
|
|
137
140
|
storage: {
|
|
138
141
|
missingStorageInformation: () => 'Missing storage configuration. When app.storage is present, either entities or classifications is required.',
|
|
139
142
|
entities: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ManifestObject, ManifestValidationResult } from '../types';
|
|
2
|
+
import { ManifestSchema } from '../schema/manifest';
|
|
3
|
+
import { ValidatorInterface } from './validator-interface';
|
|
4
|
+
export declare class AppFeaturesValidator implements ValidatorInterface<ManifestObject<ManifestSchema> | undefined, ManifestSchema> {
|
|
5
|
+
validate(manifest: ManifestObject<ManifestSchema> | undefined): Promise<ManifestValidationResult<ManifestSchema>>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=app-features-validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-features-validator.d.ts","sourceRoot":"","sources":["../../src/validators/app-features-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,qBAAa,oBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAmBrD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppFeaturesValidator = void 0;
|
|
4
|
+
const text_1 = require("../text");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class AppFeaturesValidator {
|
|
7
|
+
async validate(manifest) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const app = (_a = manifest === null || manifest === void 0 ? void 0 : manifest.typedContent) === null || _a === void 0 ? void 0 : _a.app;
|
|
10
|
+
const validationErrors = [];
|
|
11
|
+
if (((_b = app === null || app === void 0 ? void 0 : app.features) === null || _b === void 0 ? void 0 : _b.autoUserConsent) !== undefined) {
|
|
12
|
+
validationErrors.push(Object.assign({ message: text_1.errors.app.features.deprecatedAutoUserConsent(), reference: text_1.References.Deprecated, level: 'warning' }, (0, utils_1.findPosition)('autoUserConsent', manifest === null || manifest === void 0 ? void 0 : manifest.yamlContentByLine)));
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
success: validationErrors.length === 0,
|
|
16
|
+
manifestObject: manifest,
|
|
17
|
+
errors: validationErrors
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AppFeaturesValidator = AppFeaturesValidator;
|