Skip to content

Commit d6c63ee

Browse files
committed
conflict resolved
2 parents a6d356e + f8ac7db commit d6c63ee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+7217
-14080
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,14 @@ upload-api/build
356356
ui/.env
357357
upload-api/sitecoreMigrationData
358358
upload-api/cmsMigrationData
359-
upload-api/extracted_files
359+
upload-api/extracted_files*
360360
*copy*
361361
.qodo
362362
.vscode
363363
app.json
364364
# Snyk Security Extension - AI Rules (auto-generated)
365365
.cursor/rules/snyk_rules.mdc
366+
*extracted_files*
367+
*MigrationData*
368+
*.zip
369+
app.json

api/.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"parser": "@typescript-eslint/parser",
1313
"parserOptions": {
1414
"ecmaVersion": 2022,
15-
"project": ["./tsconfig.json"],
1615
"sourceType": "module"
1716
},
1817
"plugins": ["@typescript-eslint"],

api/package-lock.json

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

api/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@
2525
},
2626
"homepage": "https://github.com/contentstack/migration-v2.git#readme",
2727
"dependencies": {
28-
"@contentstack/cli": "1.41.0",
29-
"@contentstack/cli-utilities": "^1.12.0",
30-
"@contentstack/json-rte-serializer": "^2.0.7",
31-
"@contentstack/marketplace-sdk": "^1.2.4",
28+
"@contentstack/cli": "^1.51.1",
29+
"@contentstack/cli-utilities": "^1.14.2",
30+
"@contentstack/json-rte-serializer": "^3.0.4",
31+
"@contentstack/marketplace-sdk": "^1.4.0",
3232
"axios": "^1.12.0",
3333
"chokidar": "^3.6.0",
3434
"cors": "^2.8.5",
35+
"dayjs": "^1.11.18",
3536
"dotenv": "^16.3.1",
3637
"express": "^4.21.0",
37-
"express-validator": "^7.0.1",
38+
"express-validator": "^7.3.0",
3839
"express-winston": "^4.2.0",
3940
"fs-extra": "^11.2.0",
4041
"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)