@commercetools-frontend/application-config 20.9.2 → 20.10.3
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/dist/commercetools-frontend-application-config.cjs.dev.js +10 -2
- package/dist/commercetools-frontend-application-config.cjs.prod.js +10 -2
- package/dist/commercetools-frontend-application-config.esm.js +10 -2
- package/dist/declarations/src/constants.d.ts +14 -14
- package/dist/declarations/src/errors.d.ts +4 -4
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/load-config.d.ts +3 -3
- package/dist/declarations/src/process-config.d.ts +11 -11
- package/dist/declarations/src/schema.d.ts +63 -63
- package/dist/declarations/src/substitute-variable-placeholders.d.ts +7 -7
- package/dist/declarations/src/types.d.ts +9 -9
- package/dist/declarations/src/utils.d.ts +9 -9
- package/dist/declarations/src/validate-config.d.ts +3 -3
- package/package.json +9 -9
- package/schema.json +15 -58
- package/dist/declarations/schema.d.ts +0 -383
|
@@ -334,6 +334,8 @@ var schemaJson = {
|
|
|
334
334
|
labelAllLocales: {
|
|
335
335
|
description: "Localized label based on the application locales available from the user profile.",
|
|
336
336
|
type: "array",
|
|
337
|
+
"default": [
|
|
338
|
+
],
|
|
337
339
|
items: {
|
|
338
340
|
type: "object",
|
|
339
341
|
properties: {
|
|
@@ -388,6 +390,8 @@ var schemaJson = {
|
|
|
388
390
|
labelAllLocales: {
|
|
389
391
|
description: "Localized label based on the application locales available from the user profile.",
|
|
390
392
|
type: "array",
|
|
393
|
+
"default": [
|
|
394
|
+
],
|
|
391
395
|
items: {
|
|
392
396
|
type: "object",
|
|
393
397
|
properties: {
|
|
@@ -683,7 +687,9 @@ var substituteVariablePlaceholders = function substituteVariablePlaceholders(con
|
|
|
683
687
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default['default'](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default['default'](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
684
688
|
|
|
685
689
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context3; _forEachInstanceProperty__default['default'](_context3 = ownKeys(Object(source), true)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context4; _forEachInstanceProperty__default['default'](_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
|
|
686
|
-
|
|
690
|
+
// TODO: make it configurable.
|
|
691
|
+
var developmentPort = 3001;
|
|
692
|
+
var developmentAppUrl = "http://localhost:".concat(developmentPort);
|
|
687
693
|
|
|
688
694
|
var omitDevConfigIfEmpty = function omitDevConfigIfEmpty(devConfig) {
|
|
689
695
|
if ( // @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
@@ -755,7 +761,9 @@ var processConfig = function processConfig() {
|
|
|
755
761
|
|
|
756
762
|
var developmentConfig = isProd ? undefined : omitDevConfigIfEmpty({
|
|
757
763
|
oidc: isOidcForDevelopmentEnabled ? omitEmpty__default['default']({
|
|
758
|
-
authorizeUrl: [
|
|
764
|
+
authorizeUrl: [// In case the MC API url points to localhost, we need to point
|
|
765
|
+
// to a local running dev login page to handle the workflow properly.
|
|
766
|
+
mcApiUrl.hostname === 'localhost' ? mcApiUrl.origin.replace(mcApiUrl.port, String(developmentPort)) : mcApiUrl.origin.replace('mc-api', 'mc'), '/login/authorize'].join(''),
|
|
759
767
|
initialProjectKey: (_appConfig$env$develo = appConfig.env.development) === null || _appConfig$env$develo === void 0 ? void 0 : _appConfig$env$develo.initialProjectKey,
|
|
760
768
|
teamId: (_appConfig$env$develo2 = appConfig.env.development) === null || _appConfig$env$develo2 === void 0 ? void 0 : _appConfig$env$develo2.teamId,
|
|
761
769
|
oAuthScopes: appConfig.oAuthScopes
|
|
@@ -334,6 +334,8 @@ var schemaJson = {
|
|
|
334
334
|
labelAllLocales: {
|
|
335
335
|
description: "Localized label based on the application locales available from the user profile.",
|
|
336
336
|
type: "array",
|
|
337
|
+
"default": [
|
|
338
|
+
],
|
|
337
339
|
items: {
|
|
338
340
|
type: "object",
|
|
339
341
|
properties: {
|
|
@@ -388,6 +390,8 @@ var schemaJson = {
|
|
|
388
390
|
labelAllLocales: {
|
|
389
391
|
description: "Localized label based on the application locales available from the user profile.",
|
|
390
392
|
type: "array",
|
|
393
|
+
"default": [
|
|
394
|
+
],
|
|
391
395
|
items: {
|
|
392
396
|
type: "object",
|
|
393
397
|
properties: {
|
|
@@ -683,7 +687,9 @@ var substituteVariablePlaceholders = function substituteVariablePlaceholders(con
|
|
|
683
687
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default['default'](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default['default'](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
684
688
|
|
|
685
689
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context3; _forEachInstanceProperty__default['default'](_context3 = ownKeys(Object(source), true)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context4; _forEachInstanceProperty__default['default'](_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
|
|
686
|
-
|
|
690
|
+
// TODO: make it configurable.
|
|
691
|
+
var developmentPort = 3001;
|
|
692
|
+
var developmentAppUrl = "http://localhost:".concat(developmentPort);
|
|
687
693
|
|
|
688
694
|
var omitDevConfigIfEmpty = function omitDevConfigIfEmpty(devConfig) {
|
|
689
695
|
if ( // @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
@@ -755,7 +761,9 @@ var processConfig = function processConfig() {
|
|
|
755
761
|
|
|
756
762
|
var developmentConfig = isProd ? undefined : omitDevConfigIfEmpty({
|
|
757
763
|
oidc: isOidcForDevelopmentEnabled ? omitEmpty__default['default']({
|
|
758
|
-
authorizeUrl: [
|
|
764
|
+
authorizeUrl: [// In case the MC API url points to localhost, we need to point
|
|
765
|
+
// to a local running dev login page to handle the workflow properly.
|
|
766
|
+
mcApiUrl.hostname === 'localhost' ? mcApiUrl.origin.replace(mcApiUrl.port, String(developmentPort)) : mcApiUrl.origin.replace('mc-api', 'mc'), '/login/authorize'].join(''),
|
|
759
767
|
initialProjectKey: (_appConfig$env$develo = appConfig.env.development) === null || _appConfig$env$develo === void 0 ? void 0 : _appConfig$env$develo.initialProjectKey,
|
|
760
768
|
teamId: (_appConfig$env$develo2 = appConfig.env.development) === null || _appConfig$env$develo2 === void 0 ? void 0 : _appConfig$env$develo2.teamId,
|
|
761
769
|
oAuthScopes: appConfig.oAuthScopes
|
|
@@ -306,6 +306,8 @@ var schemaJson = {
|
|
|
306
306
|
labelAllLocales: {
|
|
307
307
|
description: "Localized label based on the application locales available from the user profile.",
|
|
308
308
|
type: "array",
|
|
309
|
+
"default": [
|
|
310
|
+
],
|
|
309
311
|
items: {
|
|
310
312
|
type: "object",
|
|
311
313
|
properties: {
|
|
@@ -360,6 +362,8 @@ var schemaJson = {
|
|
|
360
362
|
labelAllLocales: {
|
|
361
363
|
description: "Localized label based on the application locales available from the user profile.",
|
|
362
364
|
type: "array",
|
|
365
|
+
"default": [
|
|
366
|
+
],
|
|
363
367
|
items: {
|
|
364
368
|
type: "object",
|
|
365
369
|
properties: {
|
|
@@ -655,7 +659,9 @@ var substituteVariablePlaceholders = function substituteVariablePlaceholders(con
|
|
|
655
659
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
656
660
|
|
|
657
661
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context3; _forEachInstanceProperty(_context3 = ownKeys(Object(source), true)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context4; _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
658
|
-
|
|
662
|
+
// TODO: make it configurable.
|
|
663
|
+
var developmentPort = 3001;
|
|
664
|
+
var developmentAppUrl = "http://localhost:".concat(developmentPort);
|
|
659
665
|
|
|
660
666
|
var omitDevConfigIfEmpty = function omitDevConfigIfEmpty(devConfig) {
|
|
661
667
|
if ( // @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
@@ -727,7 +733,9 @@ var processConfig = function processConfig() {
|
|
|
727
733
|
|
|
728
734
|
var developmentConfig = isProd ? undefined : omitDevConfigIfEmpty({
|
|
729
735
|
oidc: isOidcForDevelopmentEnabled ? omitEmpty({
|
|
730
|
-
authorizeUrl: [
|
|
736
|
+
authorizeUrl: [// In case the MC API url points to localhost, we need to point
|
|
737
|
+
// to a local running dev login page to handle the workflow properly.
|
|
738
|
+
mcApiUrl.hostname === 'localhost' ? mcApiUrl.origin.replace(mcApiUrl.port, String(developmentPort)) : mcApiUrl.origin.replace('mc-api', 'mc'), '/login/authorize'].join(''),
|
|
731
739
|
initialProjectKey: (_appConfig$env$develo = appConfig.env.development) === null || _appConfig$env$develo === void 0 ? void 0 : _appConfig$env$develo.initialProjectKey,
|
|
732
740
|
teamId: (_appConfig$env$develo2 = appConfig.env.development) === null || _appConfig$env$develo2 === void 0 ? void 0 : _appConfig$env$develo2.teamId,
|
|
733
741
|
oAuthScopes: appConfig.oAuthScopes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const CLOUD_IDENTIFIERS: {
|
|
2
|
-
readonly GCP_AU: "gcp-au";
|
|
3
|
-
readonly GCP_EU: "gcp-eu";
|
|
4
|
-
readonly GCP_US: "gcp-us";
|
|
5
|
-
readonly AWS_FRA: "aws-fra";
|
|
6
|
-
readonly AWS_OHIO: "aws-ohio";
|
|
7
|
-
};
|
|
8
|
-
export declare const MC_API_URLS: {
|
|
9
|
-
readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
|
|
10
|
-
readonly GCP_EU: "https://mc-api.europe-west1.gcp.commercetools.com";
|
|
11
|
-
readonly GCP_US: "https://mc-api.us-central1.gcp.commercetools.com";
|
|
12
|
-
readonly AWS_FRA: "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
13
|
-
readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
|
|
14
|
-
};
|
|
1
|
+
export declare const CLOUD_IDENTIFIERS: {
|
|
2
|
+
readonly GCP_AU: "gcp-au";
|
|
3
|
+
readonly GCP_EU: "gcp-eu";
|
|
4
|
+
readonly GCP_US: "gcp-us";
|
|
5
|
+
readonly AWS_FRA: "aws-fra";
|
|
6
|
+
readonly AWS_OHIO: "aws-ohio";
|
|
7
|
+
};
|
|
8
|
+
export declare const MC_API_URLS: {
|
|
9
|
+
readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
|
|
10
|
+
readonly GCP_EU: "https://mc-api.europe-west1.gcp.commercetools.com";
|
|
11
|
+
readonly GCP_US: "https://mc-api.us-central1.gcp.commercetools.com";
|
|
12
|
+
readonly AWS_FRA: "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
13
|
+
readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
|
|
14
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare class MissingOrInvalidConfigError extends Error {
|
|
2
|
-
constructor(message: string);
|
|
3
|
-
}
|
|
4
|
-
export { MissingOrInvalidConfigError };
|
|
1
|
+
declare class MissingOrInvalidConfigError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export { MissingOrInvalidConfigError };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as processConfig } from './process-config';
|
|
2
|
-
export * from './errors';
|
|
3
|
-
export * from './types';
|
|
1
|
+
export { default as processConfig } from './process-config';
|
|
2
|
+
export * from './errors';
|
|
3
|
+
export * from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
2
|
-
declare const loadConfig: (applicationPath: string) => JSONSchemaForCustomApplicationConfigurationFiles;
|
|
3
|
-
export default loadConfig;
|
|
1
|
+
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
2
|
+
declare const loadConfig: (applicationPath: string) => JSONSchemaForCustomApplicationConfigurationFiles;
|
|
3
|
+
export default loadConfig;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
3
|
-
import type { ApplicationRuntimeConfig } from './types';
|
|
4
|
-
declare type ProcessConfigOptions = {
|
|
5
|
-
disableCache?: boolean;
|
|
6
|
-
processEnv?: NodeJS.ProcessEnv;
|
|
7
|
-
applicationPath?: string;
|
|
8
|
-
configJson?: JSONSchemaForCustomApplicationConfigurationFiles | undefined;
|
|
9
|
-
};
|
|
10
|
-
declare const processConfig: ({ disableCache, processEnv, applicationPath, }?: ProcessConfigOptions) => ApplicationRuntimeConfig;
|
|
11
|
-
export default processConfig;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
3
|
+
import type { ApplicationRuntimeConfig } from './types';
|
|
4
|
+
declare type ProcessConfigOptions = {
|
|
5
|
+
disableCache?: boolean;
|
|
6
|
+
processEnv?: NodeJS.ProcessEnv;
|
|
7
|
+
applicationPath?: string;
|
|
8
|
+
configJson?: JSONSchemaForCustomApplicationConfigurationFiles | undefined;
|
|
9
|
+
};
|
|
10
|
+
declare const processConfig: ({ disableCache, processEnv, applicationPath, }?: ProcessConfigOptions) => ApplicationRuntimeConfig;
|
|
11
|
+
export default processConfig;
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
export declare type EnvVariablePlaceholder = string;
|
|
2
|
-
export declare type CspDirective = string[];
|
|
3
|
-
export interface JSONSchemaForCustomApplicationConfigurationFiles {
|
|
4
|
-
name: string;
|
|
5
|
-
entryPointUriPath: string;
|
|
6
|
-
cloudIdentifier: (('gcp-au' | 'gcp-eu' | 'gcp-us' | 'aws-fra' | 'aws-ohio') | EnvVariablePlaceholder) & string;
|
|
7
|
-
mcApiUrl?: string;
|
|
8
|
-
oAuthScopes?: {
|
|
9
|
-
view: string[];
|
|
10
|
-
manage: string[];
|
|
11
|
-
};
|
|
12
|
-
env: {
|
|
13
|
-
development?: {
|
|
14
|
-
initialProjectKey?: string;
|
|
15
|
-
teamId?: string;
|
|
16
|
-
};
|
|
17
|
-
production: {
|
|
18
|
-
applicationId?: string;
|
|
19
|
-
url: string;
|
|
20
|
-
cdnUrl?: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
additionalEnv?: {
|
|
24
|
-
[k: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
headers?: {
|
|
27
|
-
csp: {
|
|
28
|
-
'connect-src': CspDirective;
|
|
29
|
-
'font-src'?: CspDirective;
|
|
30
|
-
'img-src'?: CspDirective;
|
|
31
|
-
'script-src'?: CspDirective;
|
|
32
|
-
'style-src'?: CspDirective;
|
|
33
|
-
};
|
|
34
|
-
featurePolicies?: {
|
|
35
|
-
[k: string]: unknown;
|
|
36
|
-
};
|
|
37
|
-
permissionsPolicies?: {
|
|
38
|
-
[k: string]: unknown;
|
|
39
|
-
};
|
|
40
|
-
strictTransportSecurity?: ('includeSubDomains' | 'preload')[];
|
|
41
|
-
};
|
|
42
|
-
menuLinks?: {
|
|
43
|
-
icon: string;
|
|
44
|
-
defaultLabel: string;
|
|
45
|
-
labelAllLocales: {
|
|
46
|
-
locale: 'en' | 'de' | 'es' | 'fr-FR' | 'zh-CN' | 'ja';
|
|
47
|
-
value: string;
|
|
48
|
-
}[];
|
|
49
|
-
permissions: string[];
|
|
50
|
-
submenuLinks: {
|
|
51
|
-
uriPath: string;
|
|
52
|
-
defaultLabel: string;
|
|
53
|
-
labelAllLocales: {
|
|
54
|
-
locale: 'en' | 'de' | 'es' | 'fr-FR' | 'zh-CN' | 'ja';
|
|
55
|
-
value: string;
|
|
56
|
-
}[];
|
|
57
|
-
permissions: string[];
|
|
58
|
-
[k: string]: unknown;
|
|
59
|
-
}[];
|
|
60
|
-
[k: string]: unknown;
|
|
61
|
-
};
|
|
62
|
-
[k: string]: unknown;
|
|
63
|
-
}
|
|
1
|
+
export declare type EnvVariablePlaceholder = string;
|
|
2
|
+
export declare type CspDirective = string[];
|
|
3
|
+
export interface JSONSchemaForCustomApplicationConfigurationFiles {
|
|
4
|
+
name: string;
|
|
5
|
+
entryPointUriPath: string;
|
|
6
|
+
cloudIdentifier: (('gcp-au' | 'gcp-eu' | 'gcp-us' | 'aws-fra' | 'aws-ohio') | EnvVariablePlaceholder) & string;
|
|
7
|
+
mcApiUrl?: string;
|
|
8
|
+
oAuthScopes?: {
|
|
9
|
+
view: string[];
|
|
10
|
+
manage: string[];
|
|
11
|
+
};
|
|
12
|
+
env: {
|
|
13
|
+
development?: {
|
|
14
|
+
initialProjectKey?: string;
|
|
15
|
+
teamId?: string;
|
|
16
|
+
};
|
|
17
|
+
production: {
|
|
18
|
+
applicationId?: string;
|
|
19
|
+
url: string;
|
|
20
|
+
cdnUrl?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
additionalEnv?: {
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
headers?: {
|
|
27
|
+
csp: {
|
|
28
|
+
'connect-src': CspDirective;
|
|
29
|
+
'font-src'?: CspDirective;
|
|
30
|
+
'img-src'?: CspDirective;
|
|
31
|
+
'script-src'?: CspDirective;
|
|
32
|
+
'style-src'?: CspDirective;
|
|
33
|
+
};
|
|
34
|
+
featurePolicies?: {
|
|
35
|
+
[k: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
permissionsPolicies?: {
|
|
38
|
+
[k: string]: unknown;
|
|
39
|
+
};
|
|
40
|
+
strictTransportSecurity?: ('includeSubDomains' | 'preload')[];
|
|
41
|
+
};
|
|
42
|
+
menuLinks?: {
|
|
43
|
+
icon: string;
|
|
44
|
+
defaultLabel: string;
|
|
45
|
+
labelAllLocales: {
|
|
46
|
+
locale: 'en' | 'de' | 'es' | 'fr-FR' | 'zh-CN' | 'ja';
|
|
47
|
+
value: string;
|
|
48
|
+
}[];
|
|
49
|
+
permissions: string[];
|
|
50
|
+
submenuLinks: {
|
|
51
|
+
uriPath: string;
|
|
52
|
+
defaultLabel: string;
|
|
53
|
+
labelAllLocales: {
|
|
54
|
+
locale: 'en' | 'de' | 'es' | 'fr-FR' | 'zh-CN' | 'ja';
|
|
55
|
+
value: string;
|
|
56
|
+
}[];
|
|
57
|
+
permissions: string[];
|
|
58
|
+
[k: string]: unknown;
|
|
59
|
+
}[];
|
|
60
|
+
[k: string]: unknown;
|
|
61
|
+
};
|
|
62
|
+
[k: string]: unknown;
|
|
63
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
declare type Meta = {
|
|
3
|
-
processEnv: NodeJS.ProcessEnv;
|
|
4
|
-
applicationPath: string;
|
|
5
|
-
};
|
|
6
|
-
declare const substituteVariablePlaceholders: <T>(config: T, meta: Meta) => T;
|
|
7
|
-
export default substituteVariablePlaceholders;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
declare type Meta = {
|
|
3
|
+
processEnv: NodeJS.ProcessEnv;
|
|
4
|
+
applicationPath: string;
|
|
5
|
+
};
|
|
6
|
+
declare const substituteVariablePlaceholders: <T>(config: T, meta: Meta) => T;
|
|
7
|
+
export default substituteVariablePlaceholders;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { ApplicationWindow } from '@commercetools-frontend/constants';
|
|
2
|
-
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
3
|
-
import { CLOUD_IDENTIFIERS } from './constants';
|
|
4
|
-
export declare type ConfigOptions = JSONSchemaForCustomApplicationConfigurationFiles;
|
|
5
|
-
export declare type CloudIdentifier = typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS];
|
|
6
|
-
export declare type ApplicationRuntimeConfig = {
|
|
7
|
-
env: ApplicationWindow['app'];
|
|
8
|
-
headers: JSONSchemaForCustomApplicationConfigurationFiles['headers'];
|
|
9
|
-
};
|
|
1
|
+
import type { ApplicationWindow } from '@commercetools-frontend/constants';
|
|
2
|
+
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
3
|
+
import { CLOUD_IDENTIFIERS } from './constants';
|
|
4
|
+
export declare type ConfigOptions = JSONSchemaForCustomApplicationConfigurationFiles;
|
|
5
|
+
export declare type CloudIdentifier = typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS];
|
|
6
|
+
export declare type ApplicationRuntimeConfig = {
|
|
7
|
+
env: ApplicationWindow['app'];
|
|
8
|
+
headers: JSONSchemaForCustomApplicationConfigurationFiles['headers'];
|
|
9
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="webpack-env" />
|
|
3
|
-
import { CLOUD_IDENTIFIERS } from './constants';
|
|
4
|
-
declare const mapCloudIdentifierToApiUrl: (key: typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS]) => string;
|
|
5
|
-
declare const getUniqueValues: (initialValues?: string[], additionalValues?: string[]) => string[];
|
|
6
|
-
declare const getIsProd: (env: NodeJS.ProcessEnv) => boolean;
|
|
7
|
-
declare const getOrThrow: <T>(fn: () => T, errorMessage: string) => T;
|
|
8
|
-
declare const parseJsonFile: <T>(filePath: string) => T;
|
|
9
|
-
export { mapCloudIdentifierToApiUrl, getUniqueValues, getIsProd, getOrThrow, parseJsonFile, };
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="webpack-env" />
|
|
3
|
+
import { CLOUD_IDENTIFIERS } from './constants';
|
|
4
|
+
declare const mapCloudIdentifierToApiUrl: (key: typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS]) => string;
|
|
5
|
+
declare const getUniqueValues: (initialValues?: string[], additionalValues?: string[]) => string[];
|
|
6
|
+
declare const getIsProd: (env: NodeJS.ProcessEnv) => boolean;
|
|
7
|
+
declare const getOrThrow: <T>(fn: () => T, errorMessage: string) => T;
|
|
8
|
+
declare const parseJsonFile: <T>(filePath: string) => T;
|
|
9
|
+
export { mapCloudIdentifierToApiUrl, getUniqueValues, getIsProd, getOrThrow, parseJsonFile, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
2
|
-
declare const validateConfig: (config: JSONSchemaForCustomApplicationConfigurationFiles) => void;
|
|
3
|
-
export default validateConfig;
|
|
1
|
+
import type { JSONSchemaForCustomApplicationConfigurationFiles } from './schema';
|
|
2
|
+
declare const validateConfig: (config: JSONSchemaForCustomApplicationConfigurationFiles) => void;
|
|
3
|
+
export default validateConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.10.3",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"build:schema": "json2ts schema.json src/schema.ts --style.singleQuote --bannerComment '/* eslint-disable prettier/prettier */\n// This file was automatically generated by json-schema-to-typescript.\n// DO NOT MODIFY IT BY HAND. Instead, modify the source schema.json file.'"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/register": "7.
|
|
35
|
-
"@babel/runtime": "7.
|
|
36
|
-
"@babel/runtime-corejs3": "7.
|
|
37
|
-
"@commercetools-frontend/babel-preset-mc-app": "20.
|
|
38
|
-
"ajv": "8.6.
|
|
39
|
-
"core-js": "3.
|
|
40
|
-
"cosmiconfig": "7.0.
|
|
34
|
+
"@babel/register": "7.15.3",
|
|
35
|
+
"@babel/runtime": "7.15.4",
|
|
36
|
+
"@babel/runtime-corejs3": "7.15.4",
|
|
37
|
+
"@commercetools-frontend/babel-preset-mc-app": "20.10.3",
|
|
38
|
+
"ajv": "8.6.3",
|
|
39
|
+
"core-js": "3.18.2",
|
|
40
|
+
"cosmiconfig": "7.0.1",
|
|
41
41
|
"lodash": "4.17.21",
|
|
42
42
|
"omit-empty-es": "1.1.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"json-schema-to-typescript": "10.1.
|
|
45
|
+
"json-schema-to-typescript": "10.1.5",
|
|
46
46
|
"shelljs": "0.8.4"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
package/schema.json
CHANGED
|
@@ -30,13 +30,7 @@
|
|
|
30
30
|
"type": "string",
|
|
31
31
|
"oneOf": [
|
|
32
32
|
{
|
|
33
|
-
"enum": [
|
|
34
|
-
"gcp-au",
|
|
35
|
-
"gcp-eu",
|
|
36
|
-
"gcp-us",
|
|
37
|
-
"aws-fra",
|
|
38
|
-
"aws-ohio"
|
|
39
|
-
]
|
|
33
|
+
"enum": ["gcp-au", "gcp-eu", "gcp-us", "aws-fra", "aws-ohio"]
|
|
40
34
|
},
|
|
41
35
|
{
|
|
42
36
|
"$ref": "#/definitions/envVariablePlaceholder"
|
|
@@ -71,10 +65,7 @@
|
|
|
71
65
|
}
|
|
72
66
|
},
|
|
73
67
|
"additionalProperties": false,
|
|
74
|
-
"required": [
|
|
75
|
-
"view",
|
|
76
|
-
"manage"
|
|
77
|
-
]
|
|
68
|
+
"required": ["view", "manage"]
|
|
78
69
|
},
|
|
79
70
|
"env": {
|
|
80
71
|
"description": "This is an object of keys that represents different environments (for example `production`). The environment used depends on the environment variable `MC_APP_ENV`. If `MC_APP_ENV` isn't set then `NODE_ENV` will be used. If neither is set, it defaults to `development`",
|
|
@@ -113,15 +104,11 @@
|
|
|
113
104
|
}
|
|
114
105
|
},
|
|
115
106
|
"additionalProperties": false,
|
|
116
|
-
"required": [
|
|
117
|
-
"url"
|
|
118
|
-
]
|
|
107
|
+
"required": ["url"]
|
|
119
108
|
}
|
|
120
109
|
},
|
|
121
110
|
"additionalProperties": false,
|
|
122
|
-
"required": [
|
|
123
|
-
"production"
|
|
124
|
-
]
|
|
111
|
+
"required": ["production"]
|
|
125
112
|
},
|
|
126
113
|
"additionalEnv": {
|
|
127
114
|
"description": "Additional environment values unique to your Custom Application that are injected in the application context.",
|
|
@@ -152,9 +139,7 @@
|
|
|
152
139
|
}
|
|
153
140
|
},
|
|
154
141
|
"additionalProperties": false,
|
|
155
|
-
"required": [
|
|
156
|
-
"connect-src"
|
|
157
|
-
]
|
|
142
|
+
"required": ["connect-src"]
|
|
158
143
|
},
|
|
159
144
|
"featurePolicies": {
|
|
160
145
|
"description": "Configuration for the HTTP Feature-Policy header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy)",
|
|
@@ -168,18 +153,13 @@
|
|
|
168
153
|
"description": "Additional configuration for the HTTP Strict-Transport-Security header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security)",
|
|
169
154
|
"type": "array",
|
|
170
155
|
"items": {
|
|
171
|
-
"enum": [
|
|
172
|
-
"includeSubDomains",
|
|
173
|
-
"preload"
|
|
174
|
-
]
|
|
156
|
+
"enum": ["includeSubDomains", "preload"]
|
|
175
157
|
},
|
|
176
158
|
"uniqueItems": true
|
|
177
159
|
}
|
|
178
160
|
},
|
|
179
161
|
"additionalProperties": false,
|
|
180
|
-
"required": [
|
|
181
|
-
"csp"
|
|
182
|
-
]
|
|
162
|
+
"required": ["csp"]
|
|
183
163
|
},
|
|
184
164
|
"menuLinks": {
|
|
185
165
|
"description": "Configuration for the menu links on the left-side navbar.",
|
|
@@ -196,19 +176,13 @@
|
|
|
196
176
|
"labelAllLocales": {
|
|
197
177
|
"description": "Localized label based on the application locales available from the user profile.",
|
|
198
178
|
"type": "array",
|
|
179
|
+
"default": [],
|
|
199
180
|
"items": {
|
|
200
181
|
"type": "object",
|
|
201
182
|
"properties": {
|
|
202
183
|
"locale": {
|
|
203
184
|
"type": "string",
|
|
204
|
-
"enum": [
|
|
205
|
-
"en",
|
|
206
|
-
"de",
|
|
207
|
-
"es",
|
|
208
|
-
"fr-FR",
|
|
209
|
-
"zh-CN",
|
|
210
|
-
"ja"
|
|
211
|
-
]
|
|
185
|
+
"enum": ["en", "de", "es", "fr-FR", "zh-CN", "ja"]
|
|
212
186
|
},
|
|
213
187
|
"value": {
|
|
214
188
|
"description": "A label for the specific locale or a reference to a translated message. For example `${intl:en:Menu.Avengers}` which looks for the message key `Menu.Avengers` in the `src/i18n/data/en.json`",
|
|
@@ -216,10 +190,7 @@
|
|
|
216
190
|
}
|
|
217
191
|
},
|
|
218
192
|
"additionalProperties": false,
|
|
219
|
-
"required": [
|
|
220
|
-
"locale",
|
|
221
|
-
"value"
|
|
222
|
-
]
|
|
193
|
+
"required": ["locale", "value"]
|
|
223
194
|
}
|
|
224
195
|
},
|
|
225
196
|
"permissions": {
|
|
@@ -248,19 +219,13 @@
|
|
|
248
219
|
"labelAllLocales": {
|
|
249
220
|
"description": "Localized label based on the application locales available from the user profile.",
|
|
250
221
|
"type": "array",
|
|
222
|
+
"default": [],
|
|
251
223
|
"items": {
|
|
252
224
|
"type": "object",
|
|
253
225
|
"properties": {
|
|
254
226
|
"locale": {
|
|
255
227
|
"type": "string",
|
|
256
|
-
"enum": [
|
|
257
|
-
"en",
|
|
258
|
-
"de",
|
|
259
|
-
"es",
|
|
260
|
-
"fr-FR",
|
|
261
|
-
"zh-CN",
|
|
262
|
-
"ja"
|
|
263
|
-
]
|
|
228
|
+
"enum": ["en", "de", "es", "fr-FR", "zh-CN", "ja"]
|
|
264
229
|
},
|
|
265
230
|
"value": {
|
|
266
231
|
"description": "A label for the specific locale or a reference to a translated message. For example `${intl:en:Menu.Avengers}` which looks for the message key `Menu.Avengers` in the `src/i18n/data/en.json`",
|
|
@@ -268,10 +233,7 @@
|
|
|
268
233
|
}
|
|
269
234
|
},
|
|
270
235
|
"additionalProperties": false,
|
|
271
|
-
"required": [
|
|
272
|
-
"locale",
|
|
273
|
-
"value"
|
|
274
|
-
]
|
|
236
|
+
"required": ["locale", "value"]
|
|
275
237
|
}
|
|
276
238
|
},
|
|
277
239
|
"permissions": {
|
|
@@ -304,10 +266,5 @@
|
|
|
304
266
|
}
|
|
305
267
|
},
|
|
306
268
|
"additionalProperties": true,
|
|
307
|
-
"required": [
|
|
308
|
-
|
|
309
|
-
"entryPointUriPath",
|
|
310
|
-
"cloudIdentifier",
|
|
311
|
-
"env"
|
|
312
|
-
]
|
|
313
|
-
}
|
|
269
|
+
"required": ["name", "entryPointUriPath", "cloudIdentifier", "env"]
|
|
270
|
+
}
|
|
@@ -1,383 +0,0 @@
|
|
|
1
|
-
export declare const $schema: string;
|
|
2
|
-
export declare const $id: string;
|
|
3
|
-
export declare const title: string;
|
|
4
|
-
export declare const type: string;
|
|
5
|
-
export declare namespace definitions {
|
|
6
|
-
namespace envVariablePlaceholder {
|
|
7
|
-
const type_1: string;
|
|
8
|
-
export { type_1 as type };
|
|
9
|
-
export const pattern: string;
|
|
10
|
-
}
|
|
11
|
-
namespace cspDirective {
|
|
12
|
-
const type_2: string;
|
|
13
|
-
export { type_2 as type };
|
|
14
|
-
export namespace items {
|
|
15
|
-
const type_3: string;
|
|
16
|
-
export { type_3 as type };
|
|
17
|
-
}
|
|
18
|
-
export const uniqueItems: boolean;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
export declare namespace properties {
|
|
22
|
-
namespace name {
|
|
23
|
-
export const description: string;
|
|
24
|
-
const type_4: string;
|
|
25
|
-
export { type_4 as type };
|
|
26
|
-
}
|
|
27
|
-
namespace entryPointUriPath {
|
|
28
|
-
const description_1: string;
|
|
29
|
-
export { description_1 as description };
|
|
30
|
-
const type_5: string;
|
|
31
|
-
export { type_5 as type };
|
|
32
|
-
}
|
|
33
|
-
namespace cloudIdentifier {
|
|
34
|
-
const description_2: string;
|
|
35
|
-
export { description_2 as description };
|
|
36
|
-
const type_6: string;
|
|
37
|
-
export { type_6 as type };
|
|
38
|
-
export const oneOf: ({
|
|
39
|
-
enum: string[];
|
|
40
|
-
$ref?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
$ref: string;
|
|
43
|
-
enum?: undefined;
|
|
44
|
-
})[];
|
|
45
|
-
}
|
|
46
|
-
namespace mcApiUrl {
|
|
47
|
-
const description_3: string;
|
|
48
|
-
export { description_3 as description };
|
|
49
|
-
const type_7: string;
|
|
50
|
-
export { type_7 as type };
|
|
51
|
-
}
|
|
52
|
-
namespace oAuthScopes {
|
|
53
|
-
const description_4: string;
|
|
54
|
-
export { description_4 as description };
|
|
55
|
-
const type_8: string;
|
|
56
|
-
export { type_8 as type };
|
|
57
|
-
export namespace properties_1 {
|
|
58
|
-
namespace view {
|
|
59
|
-
const description_5: string;
|
|
60
|
-
export { description_5 as description };
|
|
61
|
-
const type_9: string;
|
|
62
|
-
export { type_9 as type };
|
|
63
|
-
export namespace items_1 {
|
|
64
|
-
const type_10: string;
|
|
65
|
-
export { type_10 as type };
|
|
66
|
-
const pattern_1: string;
|
|
67
|
-
export { pattern_1 as pattern };
|
|
68
|
-
}
|
|
69
|
-
export { items_1 as items };
|
|
70
|
-
const uniqueItems_1: boolean;
|
|
71
|
-
export { uniqueItems_1 as uniqueItems };
|
|
72
|
-
}
|
|
73
|
-
namespace manage {
|
|
74
|
-
const description_6: string;
|
|
75
|
-
export { description_6 as description };
|
|
76
|
-
const type_11: string;
|
|
77
|
-
export { type_11 as type };
|
|
78
|
-
export namespace items_2 {
|
|
79
|
-
const type_12: string;
|
|
80
|
-
export { type_12 as type };
|
|
81
|
-
const pattern_2: string;
|
|
82
|
-
export { pattern_2 as pattern };
|
|
83
|
-
}
|
|
84
|
-
export { items_2 as items };
|
|
85
|
-
const uniqueItems_2: boolean;
|
|
86
|
-
export { uniqueItems_2 as uniqueItems };
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
export { properties_1 as properties };
|
|
90
|
-
export const additionalProperties: boolean;
|
|
91
|
-
export const required: string[];
|
|
92
|
-
}
|
|
93
|
-
namespace env {
|
|
94
|
-
const description_7: string;
|
|
95
|
-
export { description_7 as description };
|
|
96
|
-
const type_13: string;
|
|
97
|
-
export { type_13 as type };
|
|
98
|
-
export namespace properties_2 {
|
|
99
|
-
namespace development {
|
|
100
|
-
const description_8: string;
|
|
101
|
-
export { description_8 as description };
|
|
102
|
-
const type_14: string;
|
|
103
|
-
export { type_14 as type };
|
|
104
|
-
export namespace properties_3 {
|
|
105
|
-
namespace initialProjectKey {
|
|
106
|
-
const description_9: string;
|
|
107
|
-
export { description_9 as description };
|
|
108
|
-
const type_15: string;
|
|
109
|
-
export { type_15 as type };
|
|
110
|
-
}
|
|
111
|
-
namespace teamId {
|
|
112
|
-
const description_10: string;
|
|
113
|
-
export { description_10 as description };
|
|
114
|
-
const type_16: string;
|
|
115
|
-
export { type_16 as type };
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
export { properties_3 as properties };
|
|
119
|
-
const additionalProperties_1: boolean;
|
|
120
|
-
export { additionalProperties_1 as additionalProperties };
|
|
121
|
-
}
|
|
122
|
-
namespace production {
|
|
123
|
-
const description_11: string;
|
|
124
|
-
export { description_11 as description };
|
|
125
|
-
const type_17: string;
|
|
126
|
-
export { type_17 as type };
|
|
127
|
-
export namespace properties_4 {
|
|
128
|
-
namespace applicationId {
|
|
129
|
-
const description_12: string;
|
|
130
|
-
export { description_12 as description };
|
|
131
|
-
const type_18: string;
|
|
132
|
-
export { type_18 as type };
|
|
133
|
-
}
|
|
134
|
-
namespace url {
|
|
135
|
-
const description_13: string;
|
|
136
|
-
export { description_13 as description };
|
|
137
|
-
const type_19: string;
|
|
138
|
-
export { type_19 as type };
|
|
139
|
-
}
|
|
140
|
-
namespace cdnUrl {
|
|
141
|
-
const description_14: string;
|
|
142
|
-
export { description_14 as description };
|
|
143
|
-
const type_20: string;
|
|
144
|
-
export { type_20 as type };
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
export { properties_4 as properties };
|
|
148
|
-
const additionalProperties_2: boolean;
|
|
149
|
-
export { additionalProperties_2 as additionalProperties };
|
|
150
|
-
const required_1: string[];
|
|
151
|
-
export { required_1 as required };
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
export { properties_2 as properties };
|
|
155
|
-
const additionalProperties_3: boolean;
|
|
156
|
-
export { additionalProperties_3 as additionalProperties };
|
|
157
|
-
const required_2: string[];
|
|
158
|
-
export { required_2 as required };
|
|
159
|
-
}
|
|
160
|
-
namespace additionalEnv {
|
|
161
|
-
const description_15: string;
|
|
162
|
-
export { description_15 as description };
|
|
163
|
-
const type_21: string;
|
|
164
|
-
export { type_21 as type };
|
|
165
|
-
}
|
|
166
|
-
namespace headers {
|
|
167
|
-
const description_16: string;
|
|
168
|
-
export { description_16 as description };
|
|
169
|
-
const type_22: string;
|
|
170
|
-
export { type_22 as type };
|
|
171
|
-
export namespace properties_5 {
|
|
172
|
-
namespace csp {
|
|
173
|
-
const description_17: string;
|
|
174
|
-
export { description_17 as description };
|
|
175
|
-
const type_23: string;
|
|
176
|
-
export { type_23 as type };
|
|
177
|
-
const properties_6: {
|
|
178
|
-
"connect-src": {
|
|
179
|
-
$ref: string;
|
|
180
|
-
};
|
|
181
|
-
"font-src": {
|
|
182
|
-
$ref: string;
|
|
183
|
-
};
|
|
184
|
-
"img-src": {
|
|
185
|
-
$ref: string;
|
|
186
|
-
};
|
|
187
|
-
"script-src": {
|
|
188
|
-
$ref: string;
|
|
189
|
-
};
|
|
190
|
-
"style-src": {
|
|
191
|
-
$ref: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
export { properties_6 as properties };
|
|
195
|
-
const additionalProperties_4: boolean;
|
|
196
|
-
export { additionalProperties_4 as additionalProperties };
|
|
197
|
-
const required_3: string[];
|
|
198
|
-
export { required_3 as required };
|
|
199
|
-
}
|
|
200
|
-
namespace featurePolicies {
|
|
201
|
-
const description_18: string;
|
|
202
|
-
export { description_18 as description };
|
|
203
|
-
const type_24: string;
|
|
204
|
-
export { type_24 as type };
|
|
205
|
-
}
|
|
206
|
-
namespace permissionsPolicies {
|
|
207
|
-
const description_19: string;
|
|
208
|
-
export { description_19 as description };
|
|
209
|
-
const type_25: string;
|
|
210
|
-
export { type_25 as type };
|
|
211
|
-
}
|
|
212
|
-
namespace strictTransportSecurity {
|
|
213
|
-
const description_20: string;
|
|
214
|
-
export { description_20 as description };
|
|
215
|
-
const type_26: string;
|
|
216
|
-
export { type_26 as type };
|
|
217
|
-
export namespace items_3 {
|
|
218
|
-
const _enum: string[];
|
|
219
|
-
export { _enum as enum };
|
|
220
|
-
}
|
|
221
|
-
export { items_3 as items };
|
|
222
|
-
const uniqueItems_3: boolean;
|
|
223
|
-
export { uniqueItems_3 as uniqueItems };
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
export { properties_5 as properties };
|
|
227
|
-
const additionalProperties_5: boolean;
|
|
228
|
-
export { additionalProperties_5 as additionalProperties };
|
|
229
|
-
const required_4: string[];
|
|
230
|
-
export { required_4 as required };
|
|
231
|
-
}
|
|
232
|
-
namespace menuLinks {
|
|
233
|
-
const description_21: string;
|
|
234
|
-
export { description_21 as description };
|
|
235
|
-
const type_27: string;
|
|
236
|
-
export { type_27 as type };
|
|
237
|
-
export namespace properties_7 {
|
|
238
|
-
namespace icon {
|
|
239
|
-
const description_22: string;
|
|
240
|
-
export { description_22 as description };
|
|
241
|
-
const type_28: string;
|
|
242
|
-
export { type_28 as type };
|
|
243
|
-
}
|
|
244
|
-
namespace defaultLabel {
|
|
245
|
-
const description_23: string;
|
|
246
|
-
export { description_23 as description };
|
|
247
|
-
const type_29: string;
|
|
248
|
-
export { type_29 as type };
|
|
249
|
-
}
|
|
250
|
-
namespace labelAllLocales {
|
|
251
|
-
const description_24: string;
|
|
252
|
-
export { description_24 as description };
|
|
253
|
-
const type_30: string;
|
|
254
|
-
export { type_30 as type };
|
|
255
|
-
export namespace items_4 {
|
|
256
|
-
const type_31: string;
|
|
257
|
-
export { type_31 as type };
|
|
258
|
-
export namespace properties_8 {
|
|
259
|
-
namespace locale {
|
|
260
|
-
const type_32: string;
|
|
261
|
-
export { type_32 as type };
|
|
262
|
-
const _enum_1: string[];
|
|
263
|
-
export { _enum_1 as enum };
|
|
264
|
-
}
|
|
265
|
-
namespace value {
|
|
266
|
-
const description_25: string;
|
|
267
|
-
export { description_25 as description };
|
|
268
|
-
const type_33: string;
|
|
269
|
-
export { type_33 as type };
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
export { properties_8 as properties };
|
|
273
|
-
const additionalProperties_6: boolean;
|
|
274
|
-
export { additionalProperties_6 as additionalProperties };
|
|
275
|
-
const required_5: string[];
|
|
276
|
-
export { required_5 as required };
|
|
277
|
-
}
|
|
278
|
-
export { items_4 as items };
|
|
279
|
-
}
|
|
280
|
-
namespace permissions {
|
|
281
|
-
const description_26: string;
|
|
282
|
-
export { description_26 as description };
|
|
283
|
-
const type_34: string;
|
|
284
|
-
export { type_34 as type };
|
|
285
|
-
const _default: never[];
|
|
286
|
-
export { _default as default };
|
|
287
|
-
export namespace items_5 {
|
|
288
|
-
const type_35: string;
|
|
289
|
-
export { type_35 as type };
|
|
290
|
-
}
|
|
291
|
-
export { items_5 as items };
|
|
292
|
-
}
|
|
293
|
-
namespace submenuLinks {
|
|
294
|
-
const description_27: string;
|
|
295
|
-
export { description_27 as description };
|
|
296
|
-
const _default_1: never[];
|
|
297
|
-
export { _default_1 as default };
|
|
298
|
-
const type_36: string;
|
|
299
|
-
export { type_36 as type };
|
|
300
|
-
export namespace items_6 {
|
|
301
|
-
const type_37: string;
|
|
302
|
-
export { type_37 as type };
|
|
303
|
-
export namespace properties_9 {
|
|
304
|
-
export namespace uriPath {
|
|
305
|
-
const description_28: string;
|
|
306
|
-
export { description_28 as description };
|
|
307
|
-
const type_38: string;
|
|
308
|
-
export { type_38 as type };
|
|
309
|
-
}
|
|
310
|
-
export namespace defaultLabel_1 {
|
|
311
|
-
const description_29: string;
|
|
312
|
-
export { description_29 as description };
|
|
313
|
-
const type_39: string;
|
|
314
|
-
export { type_39 as type };
|
|
315
|
-
}
|
|
316
|
-
export { defaultLabel_1 as defaultLabel };
|
|
317
|
-
export namespace labelAllLocales_1 {
|
|
318
|
-
const description_30: string;
|
|
319
|
-
export { description_30 as description };
|
|
320
|
-
const type_40: string;
|
|
321
|
-
export { type_40 as type };
|
|
322
|
-
export namespace items_7 {
|
|
323
|
-
const type_41: string;
|
|
324
|
-
export { type_41 as type };
|
|
325
|
-
export namespace properties_10 {
|
|
326
|
-
export namespace locale_1 {
|
|
327
|
-
const type_42: string;
|
|
328
|
-
export { type_42 as type };
|
|
329
|
-
const _enum_2: string[];
|
|
330
|
-
export { _enum_2 as enum };
|
|
331
|
-
}
|
|
332
|
-
export { locale_1 as locale };
|
|
333
|
-
export namespace value_1 {
|
|
334
|
-
const description_31: string;
|
|
335
|
-
export { description_31 as description };
|
|
336
|
-
const type_43: string;
|
|
337
|
-
export { type_43 as type };
|
|
338
|
-
}
|
|
339
|
-
export { value_1 as value };
|
|
340
|
-
}
|
|
341
|
-
export { properties_10 as properties };
|
|
342
|
-
const additionalProperties_7: boolean;
|
|
343
|
-
export { additionalProperties_7 as additionalProperties };
|
|
344
|
-
const required_6: string[];
|
|
345
|
-
export { required_6 as required };
|
|
346
|
-
}
|
|
347
|
-
export { items_7 as items };
|
|
348
|
-
}
|
|
349
|
-
export { labelAllLocales_1 as labelAllLocales };
|
|
350
|
-
export namespace permissions_1 {
|
|
351
|
-
const description_32: string;
|
|
352
|
-
export { description_32 as description };
|
|
353
|
-
const type_44: string;
|
|
354
|
-
export { type_44 as type };
|
|
355
|
-
const _default_2: never[];
|
|
356
|
-
export { _default_2 as default };
|
|
357
|
-
export namespace items_8 {
|
|
358
|
-
const type_45: string;
|
|
359
|
-
export { type_45 as type };
|
|
360
|
-
}
|
|
361
|
-
export { items_8 as items };
|
|
362
|
-
}
|
|
363
|
-
export { permissions_1 as permissions };
|
|
364
|
-
}
|
|
365
|
-
export { properties_9 as properties };
|
|
366
|
-
const additionalProperties_8: boolean;
|
|
367
|
-
export { additionalProperties_8 as additionalProperties };
|
|
368
|
-
const required_7: string[];
|
|
369
|
-
export { required_7 as required };
|
|
370
|
-
}
|
|
371
|
-
export { items_6 as items };
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
export { properties_7 as properties };
|
|
375
|
-
const additionalProperties_9: boolean;
|
|
376
|
-
export { additionalProperties_9 as additionalProperties };
|
|
377
|
-
const required_8: string[];
|
|
378
|
-
export { required_8 as required };
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
declare const additionalProperties_10: boolean;
|
|
382
|
-
declare const required_9: string[];
|
|
383
|
-
export { additionalProperties_10 as additionalProperties, required_9 as required };
|