@commercetools-backend/express 22.28.0 → 22.30.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.
@@ -47,7 +47,8 @@ const CLOUD_IDENTIFIERS = {
47
47
  GCP_US: 'gcp-us',
48
48
  AWS_FRA: 'aws-fra',
49
49
  AWS_OHIO: 'aws-ohio',
50
- AWS_CN: 'aws-cn'
50
+ AWS_CN: 'aws-cn',
51
+ AZURE_US: 'azure-us'
51
52
  };
52
53
  const MC_API_URLS = {
53
54
  GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
@@ -55,7 +56,8 @@ const MC_API_URLS = {
55
56
  GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
56
57
  AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
57
58
  AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
58
- AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
59
+ AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
60
+ AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
59
61
  };
60
62
  const MC_API_PROXY_HEADERS = {
61
63
  FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
@@ -125,6 +127,8 @@ const mapCloudIdentifierToIssuer = issuer => {
125
127
  return MC_API_URLS.AWS_OHIO;
126
128
  case CLOUD_IDENTIFIERS.AWS_CN:
127
129
  return MC_API_URLS.AWS_CN;
130
+ case CLOUD_IDENTIFIERS.AZURE_US:
131
+ return MC_API_URLS.AZURE_US;
128
132
  default:
129
133
  return undefined;
130
134
  }
@@ -47,7 +47,8 @@ const CLOUD_IDENTIFIERS = {
47
47
  GCP_US: 'gcp-us',
48
48
  AWS_FRA: 'aws-fra',
49
49
  AWS_OHIO: 'aws-ohio',
50
- AWS_CN: 'aws-cn'
50
+ AWS_CN: 'aws-cn',
51
+ AZURE_US: 'azure-us'
51
52
  };
52
53
  const MC_API_URLS = {
53
54
  GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
@@ -55,7 +56,8 @@ const MC_API_URLS = {
55
56
  GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
56
57
  AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
57
58
  AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
58
- AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
59
+ AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
60
+ AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
59
61
  };
60
62
  const MC_API_PROXY_HEADERS = {
61
63
  FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
@@ -125,6 +127,8 @@ const mapCloudIdentifierToIssuer = issuer => {
125
127
  return MC_API_URLS.AWS_OHIO;
126
128
  case CLOUD_IDENTIFIERS.AWS_CN:
127
129
  return MC_API_URLS.AWS_CN;
130
+ case CLOUD_IDENTIFIERS.AZURE_US:
131
+ return MC_API_URLS.AZURE_US;
128
132
  default:
129
133
  return undefined;
130
134
  }
@@ -24,7 +24,8 @@ const CLOUD_IDENTIFIERS = {
24
24
  GCP_US: 'gcp-us',
25
25
  AWS_FRA: 'aws-fra',
26
26
  AWS_OHIO: 'aws-ohio',
27
- AWS_CN: 'aws-cn'
27
+ AWS_CN: 'aws-cn',
28
+ AZURE_US: 'azure-us'
28
29
  };
29
30
  const MC_API_URLS = {
30
31
  GCP_AU: 'https://mc-api.australia-southeast1.gcp.commercetools.com',
@@ -32,7 +33,8 @@ const MC_API_URLS = {
32
33
  GCP_US: 'https://mc-api.us-central1.gcp.commercetools.com',
33
34
  AWS_FRA: 'https://mc-api.eu-central-1.aws.commercetools.com',
34
35
  AWS_OHIO: 'https://mc-api.us-east-2.aws.commercetools.com',
35
- AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn'
36
+ AWS_CN: 'https://mc-api.cn-northwest-1.aws.commercetools.cn',
37
+ AZURE_US: 'https://mc-api.eastus.azure.commercetools.com'
36
38
  };
37
39
  const MC_API_PROXY_HEADERS = {
38
40
  FORWARD_TO_VERSION: 'x-mc-api-forward-to-version',
@@ -102,6 +104,8 @@ const mapCloudIdentifierToIssuer = issuer => {
102
104
  return MC_API_URLS.AWS_OHIO;
103
105
  case CLOUD_IDENTIFIERS.AWS_CN:
104
106
  return MC_API_URLS.AWS_CN;
107
+ case CLOUD_IDENTIFIERS.AZURE_US:
108
+ return MC_API_URLS.AZURE_US;
105
109
  default:
106
110
  return undefined;
107
111
  }
@@ -5,6 +5,7 @@ export declare const CLOUD_IDENTIFIERS: {
5
5
  readonly AWS_FRA: "aws-fra";
6
6
  readonly AWS_OHIO: "aws-ohio";
7
7
  readonly AWS_CN: "aws-cn";
8
+ readonly AZURE_US: "azure-us";
8
9
  };
9
10
  export declare const MC_API_URLS: {
10
11
  readonly GCP_AU: "https://mc-api.australia-southeast1.gcp.commercetools.com";
@@ -13,6 +14,7 @@ export declare const MC_API_URLS: {
13
14
  readonly AWS_FRA: "https://mc-api.eu-central-1.aws.commercetools.com";
14
15
  readonly AWS_OHIO: "https://mc-api.us-east-2.aws.commercetools.com";
15
16
  readonly AWS_CN: "https://mc-api.cn-northwest-1.aws.commercetools.cn";
17
+ readonly AZURE_US: "https://mc-api.eastus.azure.commercetools.com";
16
18
  };
17
19
  export declare const MC_API_PROXY_HEADERS: {
18
20
  readonly FORWARD_TO_VERSION: "x-mc-api-forward-to-version";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-backend/express",
3
- "version": "22.28.0",
3
+ "version": "22.30.0",
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": {