@commercetools-frontend/application-config 22.33.0 → 22.35.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.
|
@@ -78,8 +78,19 @@ const CLOUD_IDENTIFIERS = {
|
|
|
78
78
|
GCP_AU: 'gcp-au',
|
|
79
79
|
GCP_EU: 'gcp-eu',
|
|
80
80
|
GCP_US: 'gcp-us',
|
|
81
|
+
AWS_EU: 'aws-eu',
|
|
82
|
+
AWS_US: 'aws-us',
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated: use `AWS_EU` instead
|
|
85
|
+
*/
|
|
81
86
|
AWS_FRA: 'aws-fra',
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated: use `AWS_US` instead
|
|
89
|
+
*/
|
|
82
90
|
AWS_OHIO: 'aws-ohio',
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated: not supported anymore
|
|
93
|
+
*/
|
|
83
94
|
AWS_CN: 'aws-cn',
|
|
84
95
|
AZURE_US: 'azure-us',
|
|
85
96
|
AZURE_EU: 'azure-eu'
|
|
@@ -88,8 +99,19 @@ const MC_API_URLS = {
|
|
|
88
99
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
89
100
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
90
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',
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated: use `AWS_EU` instead
|
|
106
|
+
*/
|
|
91
107
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated: use `AWS_US` instead
|
|
110
|
+
*/
|
|
92
111
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated: not supported anymore
|
|
114
|
+
*/
|
|
93
115
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
94
116
|
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
95
117
|
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
@@ -1085,10 +1107,13 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
1085
1107
|
return MC_API_URLS.GCP_EU;
|
|
1086
1108
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
1087
1109
|
return MC_API_URLS.GCP_US;
|
|
1110
|
+
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
1088
1111
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
1089
|
-
return MC_API_URLS.
|
|
1112
|
+
return MC_API_URLS.AWS_EU;
|
|
1113
|
+
case CLOUD_IDENTIFIERS.AWS_US:
|
|
1090
1114
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
1091
|
-
return MC_API_URLS.
|
|
1115
|
+
return MC_API_URLS.AWS_US;
|
|
1116
|
+
// TODO: remove it
|
|
1092
1117
|
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
1093
1118
|
return MC_API_URLS.AWS_CN;
|
|
1094
1119
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
@@ -78,8 +78,19 @@ const CLOUD_IDENTIFIERS = {
|
|
|
78
78
|
GCP_AU: 'gcp-au',
|
|
79
79
|
GCP_EU: 'gcp-eu',
|
|
80
80
|
GCP_US: 'gcp-us',
|
|
81
|
+
AWS_EU: 'aws-eu',
|
|
82
|
+
AWS_US: 'aws-us',
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated: use `AWS_EU` instead
|
|
85
|
+
*/
|
|
81
86
|
AWS_FRA: 'aws-fra',
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated: use `AWS_US` instead
|
|
89
|
+
*/
|
|
82
90
|
AWS_OHIO: 'aws-ohio',
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated: not supported anymore
|
|
93
|
+
*/
|
|
83
94
|
AWS_CN: 'aws-cn',
|
|
84
95
|
AZURE_US: 'azure-us',
|
|
85
96
|
AZURE_EU: 'azure-eu'
|
|
@@ -88,8 +99,19 @@ const MC_API_URLS = {
|
|
|
88
99
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
89
100
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
90
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',
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated: use `AWS_EU` instead
|
|
106
|
+
*/
|
|
91
107
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated: use `AWS_US` instead
|
|
110
|
+
*/
|
|
92
111
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
112
|
+
/**
|
|
113
|
+
* @deprecated: not supported anymore
|
|
114
|
+
*/
|
|
93
115
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
94
116
|
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
95
117
|
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
@@ -1085,10 +1107,13 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
1085
1107
|
return MC_API_URLS.GCP_EU;
|
|
1086
1108
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
1087
1109
|
return MC_API_URLS.GCP_US;
|
|
1110
|
+
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
1088
1111
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
1089
|
-
return MC_API_URLS.
|
|
1112
|
+
return MC_API_URLS.AWS_EU;
|
|
1113
|
+
case CLOUD_IDENTIFIERS.AWS_US:
|
|
1090
1114
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
1091
|
-
return MC_API_URLS.
|
|
1115
|
+
return MC_API_URLS.AWS_US;
|
|
1116
|
+
// TODO: remove it
|
|
1092
1117
|
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
1093
1118
|
return MC_API_URLS.AWS_CN;
|
|
1094
1119
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
@@ -46,8 +46,19 @@ const CLOUD_IDENTIFIERS = {
|
|
|
46
46
|
GCP_AU: 'gcp-au',
|
|
47
47
|
GCP_EU: 'gcp-eu',
|
|
48
48
|
GCP_US: 'gcp-us',
|
|
49
|
+
AWS_EU: 'aws-eu',
|
|
50
|
+
AWS_US: 'aws-us',
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated: use `AWS_EU` instead
|
|
53
|
+
*/
|
|
49
54
|
AWS_FRA: 'aws-fra',
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated: use `AWS_US` instead
|
|
57
|
+
*/
|
|
50
58
|
AWS_OHIO: 'aws-ohio',
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated: not supported anymore
|
|
61
|
+
*/
|
|
51
62
|
AWS_CN: 'aws-cn',
|
|
52
63
|
AZURE_US: 'azure-us',
|
|
53
64
|
AZURE_EU: 'azure-eu'
|
|
@@ -56,8 +67,19 @@ const MC_API_URLS = {
|
|
|
56
67
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
57
68
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
58
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',
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated: use `AWS_EU` instead
|
|
74
|
+
*/
|
|
59
75
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated: use `AWS_US` instead
|
|
78
|
+
*/
|
|
60
79
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated: not supported anymore
|
|
82
|
+
*/
|
|
61
83
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
62
84
|
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
63
85
|
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
@@ -1053,10 +1075,13 @@ const mapCloudIdentifierToApiUrl = key => {
|
|
|
1053
1075
|
return MC_API_URLS.GCP_EU;
|
|
1054
1076
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
1055
1077
|
return MC_API_URLS.GCP_US;
|
|
1078
|
+
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
1056
1079
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
1057
|
-
return MC_API_URLS.
|
|
1080
|
+
return MC_API_URLS.AWS_EU;
|
|
1081
|
+
case CLOUD_IDENTIFIERS.AWS_US:
|
|
1058
1082
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
1059
|
-
return MC_API_URLS.
|
|
1083
|
+
return MC_API_URLS.AWS_US;
|
|
1084
|
+
// TODO: remove it
|
|
1060
1085
|
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
1061
1086
|
return MC_API_URLS.AWS_CN;
|
|
1062
1087
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
@@ -2,8 +2,19 @@ export declare const CLOUD_IDENTIFIERS: {
|
|
|
2
2
|
readonly GCP_AU: "gcp-au";
|
|
3
3
|
readonly GCP_EU: "gcp-eu";
|
|
4
4
|
readonly GCP_US: "gcp-us";
|
|
5
|
+
readonly AWS_EU: "aws-eu";
|
|
6
|
+
readonly AWS_US: "aws-us";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated: use `AWS_EU` instead
|
|
9
|
+
*/
|
|
5
10
|
readonly AWS_FRA: "aws-fra";
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated: use `AWS_US` instead
|
|
13
|
+
*/
|
|
6
14
|
readonly AWS_OHIO: "aws-ohio";
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated: not supported anymore
|
|
17
|
+
*/
|
|
7
18
|
readonly AWS_CN: "aws-cn";
|
|
8
19
|
readonly AZURE_US: "azure-us";
|
|
9
20
|
readonly AZURE_EU: "azure-eu";
|
|
@@ -12,8 +23,19 @@ export declare const MC_API_URLS: {
|
|
|
12
23
|
readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
|
|
13
24
|
readonly GCP_EU: "https://mc-api.europe-west1.gcp.commercetools.com";
|
|
14
25
|
readonly GCP_US: "https://mc-api.us-central1.gcp.commercetools.com";
|
|
26
|
+
readonly AWS_EU: "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
27
|
+
readonly AWS_US: "https://mc-api.us-east-2.aws.commercetools.com";
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated: use `AWS_EU` instead
|
|
30
|
+
*/
|
|
15
31
|
readonly AWS_FRA: "https://mc-api.eu-central-1.aws.commercetools.com";
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated: use `AWS_US` instead
|
|
34
|
+
*/
|
|
16
35
|
readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated: not supported anymore
|
|
38
|
+
*/
|
|
17
39
|
readonly AWS_CN: "https://mc-api.cn-northwest-1.aws.commercetools.cn";
|
|
18
40
|
readonly AZURE_US: "https://mc-api.eastus.azure.commercetools.com";
|
|
19
41
|
readonly AZURE_EU: "https://mc-api.germanywestcentral.azure.commercetools.com";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.35.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.
|
|
49
|
-
"@commercetools-frontend/constants": "22.
|
|
48
|
+
"@commercetools-frontend/babel-preset-mc-app": "22.35.0",
|
|
49
|
+
"@commercetools-frontend/constants": "22.35.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.
|
|
65
|
+
"@commercetools-frontend/assets": "22.35.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "16.x || >=18.0.0"
|