@commercetools-backend/express 22.34.0 → 22.35.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.
|
@@ -43,8 +43,19 @@ const CLOUD_IDENTIFIERS = {
|
|
|
43
43
|
GCP_AU: 'gcp-au',
|
|
44
44
|
GCP_EU: 'gcp-eu',
|
|
45
45
|
GCP_US: 'gcp-us',
|
|
46
|
+
AWS_EU: 'aws-eu',
|
|
47
|
+
AWS_US: 'aws-us',
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated: use `AWS_EU` instead
|
|
50
|
+
*/
|
|
46
51
|
AWS_FRA: 'aws-fra',
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated: use `AWS_US` instead
|
|
54
|
+
*/
|
|
47
55
|
AWS_OHIO: 'aws-ohio',
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated: not supported anymore
|
|
58
|
+
*/
|
|
48
59
|
AWS_CN: 'aws-cn',
|
|
49
60
|
AZURE_US: 'azure-us',
|
|
50
61
|
AZURE_EU: 'azure-eu'
|
|
@@ -53,8 +64,19 @@ const MC_API_URLS = {
|
|
|
53
64
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
54
65
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
55
66
|
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
67
|
+
AWS_EU: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
68
|
+
AWS_US: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated: use `AWS_EU` instead
|
|
71
|
+
*/
|
|
56
72
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated: use `AWS_US` instead
|
|
75
|
+
*/
|
|
57
76
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated: not supported anymore
|
|
79
|
+
*/
|
|
58
80
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
59
81
|
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
60
82
|
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
@@ -121,10 +143,13 @@ const mapCloudIdentifierToIssuer = issuer => {
|
|
|
121
143
|
return MC_API_URLS.GCP_EU;
|
|
122
144
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
123
145
|
return MC_API_URLS.GCP_US;
|
|
146
|
+
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
124
147
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
125
|
-
return MC_API_URLS.
|
|
148
|
+
return MC_API_URLS.AWS_EU;
|
|
149
|
+
case CLOUD_IDENTIFIERS.AWS_US:
|
|
126
150
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
127
|
-
return MC_API_URLS.
|
|
151
|
+
return MC_API_URLS.AWS_US;
|
|
152
|
+
// TODO: remove it
|
|
128
153
|
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
129
154
|
return MC_API_URLS.AWS_CN;
|
|
130
155
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
@@ -43,8 +43,19 @@ const CLOUD_IDENTIFIERS = {
|
|
|
43
43
|
GCP_AU: 'gcp-au',
|
|
44
44
|
GCP_EU: 'gcp-eu',
|
|
45
45
|
GCP_US: 'gcp-us',
|
|
46
|
+
AWS_EU: 'aws-eu',
|
|
47
|
+
AWS_US: 'aws-us',
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated: use `AWS_EU` instead
|
|
50
|
+
*/
|
|
46
51
|
AWS_FRA: 'aws-fra',
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated: use `AWS_US` instead
|
|
54
|
+
*/
|
|
47
55
|
AWS_OHIO: 'aws-ohio',
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated: not supported anymore
|
|
58
|
+
*/
|
|
48
59
|
AWS_CN: 'aws-cn',
|
|
49
60
|
AZURE_US: 'azure-us',
|
|
50
61
|
AZURE_EU: 'azure-eu'
|
|
@@ -53,8 +64,19 @@ const MC_API_URLS = {
|
|
|
53
64
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
54
65
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
55
66
|
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
67
|
+
AWS_EU: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
68
|
+
AWS_US: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated: use `AWS_EU` instead
|
|
71
|
+
*/
|
|
56
72
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated: use `AWS_US` instead
|
|
75
|
+
*/
|
|
57
76
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated: not supported anymore
|
|
79
|
+
*/
|
|
58
80
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
59
81
|
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
60
82
|
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
@@ -121,10 +143,13 @@ const mapCloudIdentifierToIssuer = issuer => {
|
|
|
121
143
|
return MC_API_URLS.GCP_EU;
|
|
122
144
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
123
145
|
return MC_API_URLS.GCP_US;
|
|
146
|
+
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
124
147
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
125
|
-
return MC_API_URLS.
|
|
148
|
+
return MC_API_URLS.AWS_EU;
|
|
149
|
+
case CLOUD_IDENTIFIERS.AWS_US:
|
|
126
150
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
127
|
-
return MC_API_URLS.
|
|
151
|
+
return MC_API_URLS.AWS_US;
|
|
152
|
+
// TODO: remove it
|
|
128
153
|
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
129
154
|
return MC_API_URLS.AWS_CN;
|
|
130
155
|
case CLOUD_IDENTIFIERS.AZURE_US:
|
|
@@ -21,8 +21,19 @@ const CLOUD_IDENTIFIERS = {
|
|
|
21
21
|
GCP_AU: 'gcp-au',
|
|
22
22
|
GCP_EU: 'gcp-eu',
|
|
23
23
|
GCP_US: 'gcp-us',
|
|
24
|
+
AWS_EU: 'aws-eu',
|
|
25
|
+
AWS_US: 'aws-us',
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated: use `AWS_EU` instead
|
|
28
|
+
*/
|
|
24
29
|
AWS_FRA: 'aws-fra',
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated: use `AWS_US` instead
|
|
32
|
+
*/
|
|
25
33
|
AWS_OHIO: 'aws-ohio',
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated: not supported anymore
|
|
36
|
+
*/
|
|
26
37
|
AWS_CN: 'aws-cn',
|
|
27
38
|
AZURE_US: 'azure-us',
|
|
28
39
|
AZURE_EU: 'azure-eu'
|
|
@@ -31,8 +42,19 @@ const MC_API_URLS = {
|
|
|
31
42
|
GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
|
|
32
43
|
GCP_EU: 'https://mc-api.europe-west1.gcp.commercetools.com',
|
|
33
44
|
GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
|
|
45
|
+
AWS_EU: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
46
|
+
AWS_US: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated: use `AWS_EU` instead
|
|
49
|
+
*/
|
|
34
50
|
AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated: use `AWS_US` instead
|
|
53
|
+
*/
|
|
35
54
|
AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated: not supported anymore
|
|
57
|
+
*/
|
|
36
58
|
AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
|
|
37
59
|
AZURE_US: 'https://mc-api.eastus.azure.commercetools.com',
|
|
38
60
|
AZURE_EU: 'https://mc-api.germanywestcentral.azure.commercetools.com'
|
|
@@ -99,10 +121,13 @@ const mapCloudIdentifierToIssuer = issuer => {
|
|
|
99
121
|
return MC_API_URLS.GCP_EU;
|
|
100
122
|
case CLOUD_IDENTIFIERS.GCP_US:
|
|
101
123
|
return MC_API_URLS.GCP_US;
|
|
124
|
+
case CLOUD_IDENTIFIERS.AWS_EU:
|
|
102
125
|
case CLOUD_IDENTIFIERS.AWS_FRA:
|
|
103
|
-
return MC_API_URLS.
|
|
126
|
+
return MC_API_URLS.AWS_EU;
|
|
127
|
+
case CLOUD_IDENTIFIERS.AWS_US:
|
|
104
128
|
case CLOUD_IDENTIFIERS.AWS_OHIO:
|
|
105
|
-
return MC_API_URLS.
|
|
129
|
+
return MC_API_URLS.AWS_US;
|
|
130
|
+
// TODO: remove it
|
|
106
131
|
case CLOUD_IDENTIFIERS.AWS_CN:
|
|
107
132
|
return MC_API_URLS.AWS_CN;
|
|
108
133
|
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-backend/express",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.35.1",
|
|
4
4
|
"description": "Zero-config HTTP server as Express.js to facilitate development",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|