Skip to content

Commit 41eba76

Browse files
authored
Merge pull request #819 from contentstack/dev
Dev to Stage Push
2 parents dd00ebb + 5711f59 commit 41eba76

32 files changed

+909
-318
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,5 @@ upload-api/cmsMigrationData
359359
upload-api/extracted_files
360360
*copy*
361361
.qodo
362-
.vscode
362+
.vscode
363+
app.json

api/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,5 @@ database/
366366
/cmsMigrationData
367367
/migration-data
368368
**/copy*
369-
**copy.ts
369+
**copy.ts
370+
manifest.json

api/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"cors": "^2.8.5",
3535
"dotenv": "^16.3.1",
3636
"express": "^4.21.0",
37-
"express-validator": "^7.0.1",
37+
"express-validator": "^7.3.0",
3838
"express-winston": "^4.2.0",
3939
"fs-extra": "^11.2.0",
4040
"fs-readdir-recursive": "^1.1.0",

api/src/config/dev.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ export const devConfig = {
44
EU: "https://stag-eu-api.csnonprod.com/v3",
55
AZURE_NA: "https://stag-azure-na-api.csnonprod.com/v3",
66
GCP_NA: "https://stag-gcp-na-api.csnonprod.com/v3",
7+
AU:"https://stag-au-api.csnonprod.com/v3",
8+
GCP_EU: "https://stag-gcp-eu-api.csnonprod.com/v3",
79
},
810
CS_URL: {
911
NA: "https://app.contentstack.com/#!",
1012
EU: "https://eu-app.contentstack.com/#!",
1113
AZURE_NA: "https://azure-na-app.contentstack.com/#!",
1214
AZURE_EU: "https://azure-eu-app.contentstack.com/#!",
1315
GCP_NA: "https://gcp-na-app.contentstack.com/#!",
16+
AU: "https://au-app.contentstack.com/#!",
17+
GCP_EU: "https://gcp-eu-app.contentstack.com/#!",
1418
},
1519
LOG_FILE_PATH:
1620
process.platform === "win32" ? ".\\combine.log" : "./combine.log", // Replace with the actual path to your log file

api/src/config/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ export type ConfigType = {
2727
AZURE_NA: string;
2828
AZURE_EU?: string;
2929
GCP_NA?: string;
30+
AU?: string;
31+
GCP_EU?: string;
3032
};
3133
CS_URL: {
3234
NA: string;
3335
EU: string;
3436
AZURE_NA: string;
3537
AZURE_EU?: string;
3638
GCP_NA?: string;
39+
AU?: string;
40+
GCP_EU?: string;
3741
};
3842
LOG_FILE_PATH: string;
3943
};

api/src/config/prod.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ export const prodConfig = {
55
AZURE_NA: "https://azure-na-api.contentstack.com/v3",
66
AZURE_EU: "https://azure-eu-api.contentstack.com/v3",
77
GCP_NA: "https://gcp-na-api.contentstack.com/v3",
8+
AU: "https://au-api.contentstack.com/v3",
9+
GCP_EU: "https://gcp-eu-api.contentstack.com/v3",
810
},
911
CS_URL: {
1012
NA: "https://app.contentstack.com/#!",
1113
EU: "https://eu-app.contentstack.com/#!",
1214
AZURE_NA: "https://azure-na-app.contentstack.com/#!",
1315
AZURE_EU: "https://azure-eu-app.contentstack.com/#!",
1416
GCP_NA: "https://gcp-na-app.contentstack.com/#!",
17+
AU: "https://au-app.contentstack.com/#!",
18+
GCP_EU: "https://gcp-eu-app.contentstack.com/#!",
1519
},
1620
LOG_FILE_PATH:
1721
process.platform === "win32" ? ".\\sample.log" : "./sample.log", // Replace with the actual path to your log file

api/src/constants/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
export const CS_REGIONS = ["NA", "EU", "AZURE_NA", "AZURE_EU", "GCP_NA"];
1+
export const CS_REGIONS = ["NA", "EU", "AZURE_NA", "AZURE_EU", "GCP_NA", "AU", "GCP_EU"];
22
export const DEVURLS: any = {
33
NA: "developerhub-api.contentstack.com",
44
EU: "eu-developerhub-api.contentstack.com",
55
AZURE_NA: "azure-na-developerhub-api.contentstack.com",
66
AZURE_EU: "azure-eu-developerhub-api.contentstack.com",
77
GCP_NA: "gcp-na-developerhub-api.contentstack.com",
8+
AU: "au-developerhub-api.contentstack.com",
9+
GCP_EU: "gcp-eu-developerhub-api.contentstack.com",
810
};
911
export const CMS = {
1012
CONTENTFUL: "contentful",
@@ -291,3 +293,8 @@ export const GET_AUDIT_DATA = {
291293
AUDIT_REPORT: "audit-report",
292294
FILTERALL: "all",
293295
}
296+
297+
export const RESERVED_FIELD_MAPPINGS: Record<string, string> = {
298+
'locale': 'cm_locale'
299+
// Add other reserved fields if needed
300+
};

0 commit comments

Comments
 (0)