@commercetools-frontend/application-cli 2.2.0 → 2.3.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.
@@ -15,13 +15,15 @@ const clusterContexts = {
15
15
  'ctp_production_aws_us-east-2_v1': 'ctp_production_aws_us-east-2_v1',
16
16
  'ctp_production_gcp_us-central1_v1': 'ctp_production_gcp_us-central1_v1',
17
17
  'ctp_production_gcp_australia-southeast1_v1': 'ctp_production_gcp_australia-southeast1_v1',
18
- 'ctp_production_aws_cn-northwest-1_v1': 'ctp_production_aws_cn-northwest-1_v1'
18
+ 'ctp_production_aws_cn-northwest-1_v1': 'ctp_production_aws_cn-northwest-1_v1',
19
+ ctp_staging_azure_northeurope_v1: 'ctp_staging_azure_northeurope_v1'
19
20
  };
20
21
  const bucketEnvironments = {
21
22
  'ctp-gcp-staging': 'ctp-gcp-staging',
22
23
  'ctp-vw-staging-eu': 'ctp-vw-staging-eu',
23
24
  'ctp-aws-staging-cn': 'ctp-aws-staging-cn',
24
25
  'ctp-gcp-testing-performance-eu': 'ctp-gcp-testing-performance-eu',
26
+ 'ctp-azure-staging': 'ctp-azure-staging',
25
27
  'ctp-aws-production-fra': 'ctp-aws-production-fra',
26
28
  'ctp-gcp-production-eu': 'ctp-gcp-production-eu',
27
29
  'ctp-vw-production-eu': 'ctp-vw-production-eu',
@@ -35,19 +37,37 @@ const bucketRegions = {
35
37
  previews: 'merchant-center-previews',
36
38
  europe: 'merchant-center-europe',
37
39
  northAmerica: 'merchant-center-north-america',
38
- asia: 'merchant-center-asia'
40
+ asia: 'merchant-center-asia',
41
+ china: 'merchant-center-china'
42
+ };
43
+ const publicStorageUrls = {
44
+ google: 'https://storage.googleapis.com',
45
+ aws: 'https://s3.amazonaws.com',
46
+ china: 'https://mc-storage.cn-northwest-1.aws.commercetools.cn'
47
+ };
48
+ const bucketUrls = {
49
+ china: 'commercetools-mc-storage-aws-cn-prod-merchant-center'
39
50
  };
40
51
  const storageProviders = {
41
52
  gs: {
42
53
  tag: 'gs',
43
54
  urls: {
44
- default: 'https://storage.googleapis.com'
55
+ public: {
56
+ default: publicStorageUrls.google
57
+ }
45
58
  }
46
59
  },
47
60
  s3: {
48
61
  tag: 's3',
49
62
  urls: {
50
- default: 'https://s3.amazonaws.com'
63
+ public: {
64
+ default: publicStorageUrls.aws,
65
+ 'ctp-aws-staging-cn': publicStorageUrls.china,
66
+ 'ctp-aws-production-cn': publicStorageUrls.china
67
+ },
68
+ bucket: {
69
+ 'merchant-center-china': bucketUrls.china
70
+ }
51
71
  }
52
72
  }
53
73
  };
@@ -65,6 +85,9 @@ const defaultConfig = {
65
85
  }, {
66
86
  cloudEnvironment: clusterContexts['ctp_testing_performance_gcp_europe-west1_v1'],
67
87
  bucketEnvironment: bucketEnvironments['ctp-gcp-testing-performance-eu']
88
+ }, {
89
+ cloudEnvironment: clusterContexts['ctp_staging_azure_northeurope_v1'],
90
+ bucketEnvironment: bucketEnvironments['ctp-azure-staging']
68
91
  }],
69
92
  [bucketRegions.europe]: [{
70
93
  cloudEnvironment: clusterContexts['ctp_production_aws_eu-central-1_v1'],
@@ -92,6 +115,15 @@ const defaultConfig = {
92
115
  }, {
93
116
  cloudEnvironment: clusterContexts['ctp_production_aws_cn-northwest-1_v1'],
94
117
  bucketEnvironment: bucketEnvironments['ctp-aws-production-cn']
118
+ }],
119
+ [bucketRegions.china]: [{
120
+ cloudEnvironment: clusterContexts['ctp_staging_aws_cn-northwest-1_v1'],
121
+ bucketEnvironment: bucketEnvironments['ctp-aws-staging-cn'],
122
+ storageProviders: ['s3']
123
+ }, {
124
+ cloudEnvironment: clusterContexts['ctp_production_aws_cn-northwest-1_v1'],
125
+ bucketEnvironment: bucketEnvironments['ctp-aws-production-cn'],
126
+ storageProviders: ['s3']
95
127
  }]
96
128
  };
97
129
  function defineStorageBucketsConfig() {
@@ -129,4 +161,4 @@ async function loadStorageBucketsConfig() {
129
161
  return explorerResult?.config;
130
162
  }
131
163
 
132
- export { bucketRegions as a, bucketEnvironments as b, clusterContexts as c, defineStorageBucketsConfig as d, loadStorageBucketsConfig as l, storageProviders as s };
164
+ export { bucketRegions as a, bucketEnvironments as b, clusterContexts as c, defineStorageBucketsConfig as d, bucketUrls as e, loadStorageBucketsConfig as l, publicStorageUrls as p, storageProviders as s };
@@ -22,13 +22,15 @@ const clusterContexts = {
22
22
  'ctp_production_aws_us-east-2_v1': 'ctp_production_aws_us-east-2_v1',
23
23
  'ctp_production_gcp_us-central1_v1': 'ctp_production_gcp_us-central1_v1',
24
24
  'ctp_production_gcp_australia-southeast1_v1': 'ctp_production_gcp_australia-southeast1_v1',
25
- 'ctp_production_aws_cn-northwest-1_v1': 'ctp_production_aws_cn-northwest-1_v1'
25
+ 'ctp_production_aws_cn-northwest-1_v1': 'ctp_production_aws_cn-northwest-1_v1',
26
+ ctp_staging_azure_northeurope_v1: 'ctp_staging_azure_northeurope_v1'
26
27
  };
27
28
  const bucketEnvironments = {
28
29
  'ctp-gcp-staging': 'ctp-gcp-staging',
29
30
  'ctp-vw-staging-eu': 'ctp-vw-staging-eu',
30
31
  'ctp-aws-staging-cn': 'ctp-aws-staging-cn',
31
32
  'ctp-gcp-testing-performance-eu': 'ctp-gcp-testing-performance-eu',
33
+ 'ctp-azure-staging': 'ctp-azure-staging',
32
34
  'ctp-aws-production-fra': 'ctp-aws-production-fra',
33
35
  'ctp-gcp-production-eu': 'ctp-gcp-production-eu',
34
36
  'ctp-vw-production-eu': 'ctp-vw-production-eu',
@@ -42,19 +44,37 @@ const bucketRegions = {
42
44
  previews: 'merchant-center-previews',
43
45
  europe: 'merchant-center-europe',
44
46
  northAmerica: 'merchant-center-north-america',
45
- asia: 'merchant-center-asia'
47
+ asia: 'merchant-center-asia',
48
+ china: 'merchant-center-china'
49
+ };
50
+ const publicStorageUrls = {
51
+ google: 'https://storage.googleapis.com',
52
+ aws: 'https://s3.amazonaws.com',
53
+ china: 'https://mc-storage.cn-northwest-1.aws.commercetools.cn'
54
+ };
55
+ const bucketUrls = {
56
+ china: 'commercetools-mc-storage-aws-cn-prod-merchant-center'
46
57
  };
47
58
  const storageProviders = {
48
59
  gs: {
49
60
  tag: 'gs',
50
61
  urls: {
51
- default: 'https://storage.googleapis.com'
62
+ public: {
63
+ default: publicStorageUrls.google
64
+ }
52
65
  }
53
66
  },
54
67
  s3: {
55
68
  tag: 's3',
56
69
  urls: {
57
- default: 'https://s3.amazonaws.com'
70
+ public: {
71
+ default: publicStorageUrls.aws,
72
+ 'ctp-aws-staging-cn': publicStorageUrls.china,
73
+ 'ctp-aws-production-cn': publicStorageUrls.china
74
+ },
75
+ bucket: {
76
+ 'merchant-center-china': bucketUrls.china
77
+ }
58
78
  }
59
79
  }
60
80
  };
@@ -72,6 +92,9 @@ const defaultConfig = {
72
92
  }, {
73
93
  cloudEnvironment: clusterContexts['ctp_testing_performance_gcp_europe-west1_v1'],
74
94
  bucketEnvironment: bucketEnvironments['ctp-gcp-testing-performance-eu']
95
+ }, {
96
+ cloudEnvironment: clusterContexts['ctp_staging_azure_northeurope_v1'],
97
+ bucketEnvironment: bucketEnvironments['ctp-azure-staging']
75
98
  }],
76
99
  [bucketRegions.europe]: [{
77
100
  cloudEnvironment: clusterContexts['ctp_production_aws_eu-central-1_v1'],
@@ -99,6 +122,15 @@ const defaultConfig = {
99
122
  }, {
100
123
  cloudEnvironment: clusterContexts['ctp_production_aws_cn-northwest-1_v1'],
101
124
  bucketEnvironment: bucketEnvironments['ctp-aws-production-cn']
125
+ }],
126
+ [bucketRegions.china]: [{
127
+ cloudEnvironment: clusterContexts['ctp_staging_aws_cn-northwest-1_v1'],
128
+ bucketEnvironment: bucketEnvironments['ctp-aws-staging-cn'],
129
+ storageProviders: ['s3']
130
+ }, {
131
+ cloudEnvironment: clusterContexts['ctp_production_aws_cn-northwest-1_v1'],
132
+ bucketEnvironment: bucketEnvironments['ctp-aws-production-cn'],
133
+ storageProviders: ['s3']
102
134
  }]
103
135
  };
104
136
  function defineStorageBucketsConfig() {
@@ -138,7 +170,9 @@ async function loadStorageBucketsConfig() {
138
170
 
139
171
  exports.bucketEnvironments = bucketEnvironments;
140
172
  exports.bucketRegions = bucketRegions;
173
+ exports.bucketUrls = bucketUrls;
141
174
  exports.clusterContexts = clusterContexts;
142
175
  exports.defineStorageBucketsConfig = defineStorageBucketsConfig;
143
176
  exports.loadStorageBucketsConfig = loadStorageBucketsConfig;
177
+ exports.publicStorageUrls = publicStorageUrls;
144
178
  exports.storageProviders = storageProviders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-cli",
3
- "version": "2.2.0",
3
+ "version": "2.3.1",
4
4
  "description": "Internal CLI to manage Merchant Center application deployments across various environments.",
5
5
  "keywords": [
6
6
  "commercetools",
@@ -20,11 +20,11 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@babel/core": "^7.22.11",
23
- "@babel/runtime-corejs3": "^7.21.0",
24
23
  "@babel/runtime": "^7.21.0",
25
- "@commercetools-frontend/application-config": "22.19.0",
26
- "@commercetools-frontend/constants": "22.19.0",
27
- "@commercetools-frontend/l10n": "22.19.0",
24
+ "@babel/runtime-corejs3": "^7.21.0",
25
+ "@commercetools-frontend/application-config": "22.22.0",
26
+ "@commercetools-frontend/constants": "22.22.0",
27
+ "@commercetools-frontend/l10n": "22.22.0",
28
28
  "@manypkg/find-root": "2.2.1",
29
29
  "cac": "^6.7.14",
30
30
  "cosmiconfig": "9.0.0",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@tsconfig/node20": "20.1.2",
40
- "@types/node": "20.11.25",
40
+ "@types/node": "20.12.2",
41
41
  "typescript": "5.2.2"
42
42
  },
43
43
  "engines": {