@commercetools-frontend/application-config 22.36.0-preview.0 → 22.36.0
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.
|
@@ -87,34 +87,22 @@ const CLOUD_IDENTIFIERS = {
|
|
|
87
87
|
/**
|
|
88
88
|
* @deprecated: use `AWS_US` instead
|
|
89
89
|
*/
|
|
90
|
-
AWS_OHIO: 'aws-ohio'
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated: not supported anymore
|
|
93
|
-
*/
|
|
94
|
-
AWS_CN: 'aws-cn',
|
|
95
|
-
AZURE_US: 'azure-us',
|
|
96
|
-
AZURE_EU: 'azure-eu'
|
|
90
|
+
AWS_OHIO: 'aws-ohio'
|
|
97
91
|
};
|
|
98
92
|
const MC_API_URLS = {
|
|
99
|
-
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
100
|
-
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
101
|
-
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
102
|
-
AWS_EU: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
103
|
-
AWS_US: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
93
|
+
[CLOUD_IDENTIFIERS.GCP_AU]: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
94
|
+
[CLOUD_IDENTIFIERS.GCP_EU]: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
95
|
+
[CLOUD_IDENTIFIERS.GCP_US]: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
96
|
+
[CLOUD_IDENTIFIERS.AWS_EU]: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
97
|
+
[CLOUD_IDENTIFIERS.AWS_US]: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
104
98
|
/**
|
|
105
99
|
* @deprecated: use `AWS_EU` instead
|
|
106
100
|
*/
|
|
107
|
-
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
101
|
+
[CLOUD_IDENTIFIERS.AWS_FRA]: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
108
102
|
/**
|
|
109
103
|
* @deprecated: use `AWS_US` instead
|
|
110
104
|
*/
|
|
111
|
-
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated: not supported anymore
|
|
114
|
-
*/
|
|
115
|
-
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
116
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
117
|
-
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
105
|
+
[CLOUD_IDENTIFIERS.AWS_OHIO]: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
118
106
|
};
|
|
119
107
|
const LOADED_CONFIG_TYPES = {
|
|
120
108
|
CUSTOM_APPLICATION: 'custom-application',
|
|
@@ -1099,24 +1087,17 @@ function transformConfigurationToData(configType, configuration) {
|
|
|
1099
1087
|
const mapCloudIdentifierToApiUrl = key => {
|
|
1100
1088
|
switch (key) {
|
|
1101
1089
|
case CLOUD_IDENTIFIERS.GCP_AU:
|
|
1102
|
-
return MC_API_URLS.GCP_AU;
|
|
1090
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_AU];
|
|
1103
1091
|
case CLOUD_IDENTIFIERS.GCP_EU:
|
|
1104
|
-
return MC_API_URLS.GCP_EU;
|
|
1092
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_EU];
|
|
1105
1093
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
1106
|
-
return MC_API_URLS.GCP_US;
|
|
1094
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_US];
|
|
1107
1095
|
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
1108
1096
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
1109
|
-
return MC_API_URLS.AWS_EU;
|
|
1097
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.AWS_EU];
|
|
1110
1098
|
case CLOUD_IDENTIFIERS.AWS_US:
|
|
1111
1099
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
1112
|
-
return MC_API_URLS.AWS_US;
|
|
1113
|
-
// TODO: remove it
|
|
1114
|
-
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
1115
|
-
return MC_API_URLS.AWS_CN;
|
|
1116
|
-
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
1117
|
-
return MC_API_URLS.AZURE_US;
|
|
1118
|
-
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
1119
|
-
return MC_API_URLS.AZURE_EU;
|
|
1100
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.AWS_US];
|
|
1120
1101
|
default:
|
|
1121
1102
|
// We would probably never get to this point, as the JSON schema validation
|
|
1122
1103
|
// kicks in before.
|
|
@@ -87,34 +87,22 @@ const CLOUD_IDENTIFIERS = {
|
|
|
87
87
|
/**
|
|
88
88
|
* @deprecated: use `AWS_US` instead
|
|
89
89
|
*/
|
|
90
|
-
AWS_OHIO: 'aws-ohio'
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated: not supported anymore
|
|
93
|
-
*/
|
|
94
|
-
AWS_CN: 'aws-cn',
|
|
95
|
-
AZURE_US: 'azure-us',
|
|
96
|
-
AZURE_EU: 'azure-eu'
|
|
90
|
+
AWS_OHIO: 'aws-ohio'
|
|
97
91
|
};
|
|
98
92
|
const MC_API_URLS = {
|
|
99
|
-
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
100
|
-
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
101
|
-
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
102
|
-
AWS_EU: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
103
|
-
AWS_US: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
93
|
+
[CLOUD_IDENTIFIERS.GCP_AU]: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
94
|
+
[CLOUD_IDENTIFIERS.GCP_EU]: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
95
|
+
[CLOUD_IDENTIFIERS.GCP_US]: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
96
|
+
[CLOUD_IDENTIFIERS.AWS_EU]: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
97
|
+
[CLOUD_IDENTIFIERS.AWS_US]: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
104
98
|
/**
|
|
105
99
|
* @deprecated: use `AWS_EU` instead
|
|
106
100
|
*/
|
|
107
|
-
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
101
|
+
[CLOUD_IDENTIFIERS.AWS_FRA]: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
108
102
|
/**
|
|
109
103
|
* @deprecated: use `AWS_US` instead
|
|
110
104
|
*/
|
|
111
|
-
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated: not supported anymore
|
|
114
|
-
*/
|
|
115
|
-
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
116
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
117
|
-
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
105
|
+
[CLOUD_IDENTIFIERS.AWS_OHIO]: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
118
106
|
};
|
|
119
107
|
const LOADED_CONFIG_TYPES = {
|
|
120
108
|
CUSTOM_APPLICATION: 'custom-application',
|
|
@@ -1099,24 +1087,17 @@ function transformConfigurationToData(configType, configuration) {
|
|
|
1099
1087
|
const mapCloudIdentifierToApiUrl = key => {
|
|
1100
1088
|
switch (key) {
|
|
1101
1089
|
case CLOUD_IDENTIFIERS.GCP_AU:
|
|
1102
|
-
return MC_API_URLS.GCP_AU;
|
|
1090
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_AU];
|
|
1103
1091
|
case CLOUD_IDENTIFIERS.GCP_EU:
|
|
1104
|
-
return MC_API_URLS.GCP_EU;
|
|
1092
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_EU];
|
|
1105
1093
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
1106
|
-
return MC_API_URLS.GCP_US;
|
|
1094
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_US];
|
|
1107
1095
|
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
1108
1096
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
1109
|
-
return MC_API_URLS.AWS_EU;
|
|
1097
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.AWS_EU];
|
|
1110
1098
|
case CLOUD_IDENTIFIERS.AWS_US:
|
|
1111
1099
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
1112
|
-
return MC_API_URLS.AWS_US;
|
|
1113
|
-
// TODO: remove it
|
|
1114
|
-
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
1115
|
-
return MC_API_URLS.AWS_CN;
|
|
1116
|
-
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
1117
|
-
return MC_API_URLS.AZURE_US;
|
|
1118
|
-
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
1119
|
-
return MC_API_URLS.AZURE_EU;
|
|
1100
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.AWS_US];
|
|
1120
1101
|
default:
|
|
1121
1102
|
// We would probably never get to this point, as the JSON schema validation
|
|
1122
1103
|
// kicks in before.
|
|
@@ -55,34 +55,22 @@ const CLOUD_IDENTIFIERS = {
|
|
|
55
55
|
/**
|
|
56
56
|
* @deprecated: use `AWS_US` instead
|
|
57
57
|
*/
|
|
58
|
-
AWS_OHIO: 'aws-ohio'
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated: not supported anymore
|
|
61
|
-
*/
|
|
62
|
-
AWS_CN: 'aws-cn',
|
|
63
|
-
AZURE_US: 'azure-us',
|
|
64
|
-
AZURE_EU: 'azure-eu'
|
|
58
|
+
AWS_OHIO: 'aws-ohio'
|
|
65
59
|
};
|
|
66
60
|
const MC_API_URLS = {
|
|
67
|
-
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
68
|
-
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
69
|
-
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
70
|
-
AWS_EU: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
71
|
-
AWS_US: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
61
|
+
[CLOUD_IDENTIFIERS.GCP_AU]: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
62
|
+
[CLOUD_IDENTIFIERS.GCP_EU]: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
63
|
+
[CLOUD_IDENTIFIERS.GCP_US]: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
64
|
+
[CLOUD_IDENTIFIERS.AWS_EU]: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
65
|
+
[CLOUD_IDENTIFIERS.AWS_US]: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
72
66
|
/**
|
|
73
67
|
* @deprecated: use `AWS_EU` instead
|
|
74
68
|
*/
|
|
75
|
-
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
69
|
+
[CLOUD_IDENTIFIERS.AWS_FRA]: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
76
70
|
/**
|
|
77
71
|
* @deprecated: use `AWS_US` instead
|
|
78
72
|
*/
|
|
79
|
-
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
80
|
-
/**
|
|
81
|
-
* @deprecated: not supported anymore
|
|
82
|
-
*/
|
|
83
|
-
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
84
|
-
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
85
|
-
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
73
|
+
[CLOUD_IDENTIFIERS.AWS_OHIO]: 'https://mc-api.us-east-2.aws.commercetools.com'
|
|
86
74
|
};
|
|
87
75
|
const LOADED_CONFIG_TYPES = {
|
|
88
76
|
CUSTOM_APPLICATION: 'custom-application',
|
|
@@ -1067,24 +1055,17 @@ function transformConfigurationToData(configType, configuration) {
|
|
|
1067
1055
|
const mapCloudIdentifierToApiUrl = key => {
|
|
1068
1056
|
switch (key) {
|
|
1069
1057
|
case CLOUD_IDENTIFIERS.GCP_AU:
|
|
1070
|
-
return MC_API_URLS.GCP_AU;
|
|
1058
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_AU];
|
|
1071
1059
|
case CLOUD_IDENTIFIERS.GCP_EU:
|
|
1072
|
-
return MC_API_URLS.GCP_EU;
|
|
1060
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_EU];
|
|
1073
1061
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
1074
|
-
return MC_API_URLS.GCP_US;
|
|
1062
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.GCP_US];
|
|
1075
1063
|
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
1076
1064
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
1077
|
-
return MC_API_URLS.AWS_EU;
|
|
1065
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.AWS_EU];
|
|
1078
1066
|
case CLOUD_IDENTIFIERS.AWS_US:
|
|
1079
1067
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
1080
|
-
return MC_API_URLS.AWS_US;
|
|
1081
|
-
// TODO: remove it
|
|
1082
|
-
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
1083
|
-
return MC_API_URLS.AWS_CN;
|
|
1084
|
-
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
1085
|
-
return MC_API_URLS.AZURE_US;
|
|
1086
|
-
case CLOUD_IDENTIFIERS.AZURE_EU:
|
|
1087
|
-
return MC_API_URLS.AZURE_EU;
|
|
1068
|
+
return MC_API_URLS[CLOUD_IDENTIFIERS.AWS_US];
|
|
1088
1069
|
default:
|
|
1089
1070
|
// We would probably never get to this point, as the JSON schema validation
|
|
1090
1071
|
// kicks in before.
|
|
@@ -12,33 +12,21 @@ export declare const CLOUD_IDENTIFIERS: {
|
|
|
12
12
|
* @deprecated: use `AWS_US` instead
|
|
13
13
|
*/
|
|
14
14
|
readonly AWS_OHIO: "aws-ohio";
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated: not supported anymore
|
|
17
|
-
*/
|
|
18
|
-
readonly AWS_CN: "aws-cn";
|
|
19
|
-
readonly AZURE_US: "azure-us";
|
|
20
|
-
readonly AZURE_EU: "azure-eu";
|
|
21
15
|
};
|
|
22
16
|
export declare const MC_API_URLS: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
17
|
+
readonly "gcp-au": "https://mc-api.australia-southeast1.gcp.commercetools.com";
|
|
18
|
+
readonly "gcp-eu": "https://mc-api.europe-west1.gcp.commercetools.com";
|
|
19
|
+
readonly "gcp-us": "https://mc-api.us-central1.gcp.commercetools.com";
|
|
20
|
+
readonly "aws-eu": "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
21
|
+
readonly "aws-us": "https://mc-api.us-east-2.aws.commercetools.com";
|
|
28
22
|
/**
|
|
29
23
|
* @deprecated: use `AWS_EU` instead
|
|
30
24
|
*/
|
|
31
|
-
readonly
|
|
25
|
+
readonly "aws-fra": "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
32
26
|
/**
|
|
33
27
|
* @deprecated: use `AWS_US` instead
|
|
34
28
|
*/
|
|
35
|
-
readonly
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated: not supported anymore
|
|
38
|
-
*/
|
|
39
|
-
readonly AWS_CN: "https://mc-api.cn-northwest-1.aws.commercetools.cn";
|
|
40
|
-
readonly AZURE_US: "https://mc-api.eastus.azure.commercetools.com";
|
|
41
|
-
readonly AZURE_EU: "https://mc-api.germanywestcentral.azure.commercetools.com";
|
|
29
|
+
readonly "aws-ohio": "https://mc-api.us-east-2.aws.commercetools.com";
|
|
42
30
|
};
|
|
43
31
|
export declare const LOADED_CONFIG_TYPES: {
|
|
44
32
|
readonly CUSTOM_APPLICATION: "custom-application";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "22.36.0
|
|
3
|
+
"version": "22.36.0",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@babel/register": "^7.22.15",
|
|
46
46
|
"@babel/runtime": "^7.22.15",
|
|
47
47
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
48
|
-
"@commercetools-frontend/babel-preset-mc-app": "22.36.0
|
|
49
|
-
"@commercetools-frontend/constants": "22.36.0
|
|
48
|
+
"@commercetools-frontend/babel-preset-mc-app": "22.36.0",
|
|
49
|
+
"@commercetools-frontend/constants": "22.36.0",
|
|
50
50
|
"@types/dompurify": "^2.4.0",
|
|
51
51
|
"@types/lodash": "^4.14.198",
|
|
52
52
|
"@types/react": "^17.0.80",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/jsdom": "^21.1.2",
|
|
63
63
|
"json-schema-to-typescript": "13.1.2",
|
|
64
64
|
"shelljs": "0.8.5",
|
|
65
|
-
"@commercetools-frontend/assets": "22.36.0
|
|
65
|
+
"@commercetools-frontend/assets": "22.36.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "16.x || >=18.0.0"
|