diff --git a/api/src/services/contentful.service.ts b/api/src/services/contentful.service.ts index 97c223d3..7f568dca 100644 --- a/api/src/services/contentful.service.ts +++ b/api/src/services/contentful.service.ts @@ -333,7 +333,6 @@ const processField = ( } - }; // Helper function to clean up brackets in non-numeric lang_value diff --git a/api/src/services/contentful/jsonRTE.ts b/api/src/services/contentful/jsonRTE.ts index f4bf92cd..c1c52bfd 100755 --- a/api/src/services/contentful/jsonRTE.ts +++ b/api/src/services/contentful/jsonRTE.ts @@ -316,7 +316,6 @@ function parseBlockAsset(obj: any, lang?: LangType, destination_stack_id?: Stack - function parseBlockquote(obj: any): any { const children = obj.content.map((e: any) => parsers.get(e.nodeType)?.(e)).filter(Boolean); return { diff --git a/api/src/services/sitecore.service.ts b/api/src/services/sitecore.service.ts index 9cb5737b..90be5c59 100644 --- a/api/src/services/sitecore.service.ts +++ b/api/src/services/sitecore.service.ts @@ -12,7 +12,6 @@ import customLogger from '../utils/custom-logger.utils.js'; const append = "a"; - const baseDirName = MIGRATION_DATA_CONFIG.DATA const { ENTRIES_DIR_NAME, diff --git a/api/src/services/wordpress.service.ts b/api/src/services/wordpress.service.ts index cd8b4b52..4fb9d05b 100644 --- a/api/src/services/wordpress.service.ts +++ b/api/src/services/wordpress.service.ts @@ -17,7 +17,6 @@ const virtualConsole = new jsdom.VirtualConsole(); const __filename = fileURLToPath(import.meta.url); - // Get the current directory const __dirname = path.dirname(__filename); diff --git a/index.js b/index.js index 8993572b..0188709e 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,7 @@ const envContents = { }; + // Function to create env files const createEnvFiles = () => { // Loop through each key in the envFilePaths object diff --git a/upload-api/migration-contentful/config/index.json b/upload-api/migration-contentful/config/index.json index 3583969a..ea84a37f 100644 --- a/upload-api/migration-contentful/config/index.json +++ b/upload-api/migration-contentful/config/index.json @@ -6,5 +6,4 @@ "fileName": "en-us.json" - } \ No newline at end of file diff --git a/upload-api/migration-sitecore/constants/index.js b/upload-api/migration-sitecore/constants/index.js index 442b7035..da480f0c 100644 --- a/upload-api/migration-sitecore/constants/index.js +++ b/upload-api/migration-sitecore/constants/index.js @@ -43,7 +43,6 @@ const MIGRATION_DATA_CONFIG = { EXPORT_INFO_FILE: "export-info.json" } - module.exports = { MIGRATION_DATA_CONFIG diff --git a/upload-api/migration-wordpress/config/index.json b/upload-api/migration-wordpress/config/index.json index 454ee3a2..8f0806c3 100644 --- a/upload-api/migration-wordpress/config/index.json +++ b/upload-api/migration-wordpress/config/index.json @@ -47,7 +47,6 @@ "fileName": "en-us.json", "masterfile": "posts.json" - } } diff --git a/upload-api/src/config/index.ts b/upload-api/src/config/index.ts index f5659b48..ad26b141 100644 --- a/upload-api/src/config/index.ts +++ b/upload-api/src/config/index.ts @@ -14,7 +14,6 @@ export default { }, - localPath: '/home/gaurishn/Documents/contentstack/sitetitle.xml' //package 45.zip' // localPath: '/Users/umesh.more/Documents/ui-migration/migration-v2-node-server/upload-api/extracted_files/package 45.zip' diff --git a/upload-api/src/models/contentful.json b/upload-api/src/models/contentful.json index 5ff2ce71..441a70ba 100644 --- a/upload-api/src/models/contentful.json +++ b/upload-api/src/models/contentful.json @@ -31,4 +31,5 @@ "name": "roles", "required": "false" } + } diff --git a/upload-api/src/models/wordpress.json b/upload-api/src/models/wordpress.json index b0f90bfd..52e3e0f3 100644 --- a/upload-api/src/models/wordpress.json +++ b/upload-api/src/models/wordpress.json @@ -23,4 +23,5 @@ "name": "wp\\:attachment_url", "required": "false" } + } diff --git a/upload-api/src/services/contentful/index.ts b/upload-api/src/services/contentful/index.ts index 9ca2c637..cbd5d6c7 100644 --- a/upload-api/src/services/contentful/index.ts +++ b/upload-api/src/services/contentful/index.ts @@ -7,6 +7,7 @@ import { Config } from '../../models/types'; const { extractContentTypes, createInitialMapper } = require('migration-contentful'); + const createContentfulMapper = async ( projectId: string | string[], app_token: string | string[], diff --git a/upload-api/src/validators/contentful/index.ts b/upload-api/src/validators/contentful/index.ts index 16a7e681..a0711634 100644 --- a/upload-api/src/validators/contentful/index.ts +++ b/upload-api/src/validators/contentful/index.ts @@ -5,6 +5,7 @@ interface JsonData { [key: string]: any; } + //function to validate json file data function contentfulValidator(data: string): boolean { let jsonData: JsonData; diff --git a/upload-api/src/validators/sitecore/index.ts b/upload-api/src/validators/sitecore/index.ts index 551c50e6..69ecb291 100644 --- a/upload-api/src/validators/sitecore/index.ts +++ b/upload-api/src/validators/sitecore/index.ts @@ -9,6 +9,7 @@ interface props { data: items; } + async function sitecoreValidator({ data }: props) { try { let templates: any[] = []; diff --git a/upload-api/src/validators/wordpress/index.ts b/upload-api/src/validators/wordpress/index.ts index 86570598..2a758e99 100644 --- a/upload-api/src/validators/wordpress/index.ts +++ b/upload-api/src/validators/wordpress/index.ts @@ -1,6 +1,7 @@ import Config from '../../models/wordpress.json'; import * as Cheerio from 'cheerio'; + //function to validate xml file data function wordpressValidator(data: string): boolean { try {