Files
Schema-Studio/fdf

1619 lines
99 KiB
Plaintext
Raw Normal View History

2025-10-22 10:28:18 +05:30
// async function validateAndSave(nodeId, collectionName, inputData) {
// // 1. Fetch the node with given nodeId
// const node = await Node.findOne({ nodeId });
// if (!node) {
// throw new Error("Node not found");
// }
// // 2. Find the collection by name
// const collection = node.collections.find(col => col.name === collectionName);
// if (!collection) {
// throw new Error("Collection not found");
// }
// // 3. Loop through fields in collection's schema
// const errors = [];
// for (let [fieldKey, fieldType] of collection.fields.entries()) {
// const value = inputData[fieldKey];
// // Check if field is present
// if (value === undefined) {
// errors.push(${ fieldKey } is missing);
// continue;
// }
// // Type validation
// if (!validateField(value, fieldType)) {
// errors.push(${ fieldKey } should be of type ${ fieldType });
// }
// }
// if (errors.length > 0) {
// throw new Error("Validation errors: " + errors.join(", "));
// }
// // 4. If validation passes, you can save inputData somewhere else or return success
// return { message: "Validation successful", data: inputData };
// }
// // Type validation function
// function validateField(value, type) {
// switch (type) {
// case "string":
// return typeof value === "string";
// case "number":
// return typeof value === "number";
// case "boolean":
// return typeof value === "boolean";
// case "object":
// return value !== null && typeof value === "object" && !Array.isArray(value);
// case "array":
// return Array.isArray(value);
// case "objectId":
// return mongoose.Types.ObjectId.isValid(value);
// default:
// return false;
// }
// }
// export const flowData: FlowData = {
// districts: [
// {
// id: "kanchipuram",
// name: "Kanchipuram",
// type: "district",
// position: { x: 920, y: 472 },
// image: kanchipuram,
// svg: kanchipuramSvg,
// areas: [
// {
// image: VallamBg,
// svg: VallamSvg,
// id: "vallam-vadagal-main",
// name: "Sipcot Vallam Vadagal",
// type: "area",
// position: { x: 1130, y: 500 },
// pinSvg: true,
// selectable: true,
// spots: [
// {
// id: "rccl",
// name: "RCCL Casting Yard",
// type: "spot",
// pintype: "normal",
// meta: {
// distance: "14 km",
// duration: "20 mins",
// transportAvailable: true,
// },
// position: { x: 527, y: 560 },
// svg: rccl_CastingYardSvg,
// icon: RcclCastingYardIcon,
// amenities: [
// {
// id: "a-1",
// name: "Casting Facility",
// position: { x: 570, y: 650 },
// image: null,
// image360: null,
// },
// {
// id: "a-2",
// name: "Storage Area",
// position: { x: 680, y: 570 },
// image: null,
// image360: null,
// },
// {
// id: "a-3",
// name: "Storage Area",
// position: { x: 820, y: 580 },
// image: null,
// image360: null,
// },
// ],
// },
// {
// id: "cit",
// name: "CIT Technology",
// type: "spot",
// pintype: "normal",
// meta: {
// distance: "14 km",
// duration: "20 mins",
// transportAvailable: true,
// },
// position: { x: 1320, y: 356 },
// svg: cit_TechnologySvg,
// icon: CitTechnologyIcon,
// amenities: [
// {
// id: "b-1",
// name: "Tech Park Building",
// position: { x: 1180, y: 400 },
// image: null,
// image360: null,
// },
// {
// id: "b-2",
// name: "Power Backup Facility",
// position: { x: 1080, y: 350 },
// image: null,
// image360: null,
// },
// {
// id: "b-3",
// name: "Power Backup Facility",
// position: { x: 1250, y: 340 },
// image: null,
// image360: null,
// },
// ],
// },
// {
// id: "airport",
// name: "Airport",
// type: "spot",
// pintype: "normal",
// meta: {
// distance: "14 km",
// duration: "20 mins",
// transportAvailable: true,
// },
// position: { x: 1728, y: 300 },
// svg: airportSvg,
// icon: AirportIcon,
// amenities: [
// {
// id: "c-1",
// name: "Runway",
// position: { x: 1250, y: 680 },
// image: null,
// image360: null,
// },
// {
// id: "c-2",
// name: "Transport Hub",
// position: { x: 1500, y: 550 },
// image: null,
// image360: null,
// },
// {
// id: "c-3",
// name: "Security Checkpoint",
// position: { x: 1680, y: 450 },
// image: null,
// image360: null,
// },
// ],
// },
// ],
// explore: {
// id: "vallam-vadagal-main",
// name: "Sipcot Vallam Vadagal",
// type: "area",
// position: { x: 800, y: 750 },
// image: kanchipuram,
// svg: VallamSvg,
// pintype: "sidePin",
// explore: {
// regions: [
// {
// id: "vallam-vadagal-region",
// name: "Vallam Vadagal Industrial Area",
// type: "region",
// position: { x: 1000, y: 450 },
// views: [
// {
// id: "view-1",
// name: "Phase I Development",
// image: areaImageV1,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// {
// id: "view-2",
// name: "Phase I Development",
// image: areaImageV2,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// {
// id: "view-3",
// name: "Phase I Development",
// image: areaImageV3,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// {
// id: "view-4",
// name: "Phase I Development",
// image: areaImageV4,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// {
// id: "view-5",
// name: "Phase I Development",
// image: areaImageV5,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// {
// id: "view-6",
// name: "Phase I Development",
// image: areaImageV6,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// {
// id: "view-7",
// name: "Phase I Development",
// image: areaImageV7,
// plots: [
// {
// id: "26A",
// name: "26 - A Vallam Vadagal Phase - I",
// type: "plot",
// pintype: "straightPin",
// position: { x: 1147, y: 248 },
// image: null
// },
// {
// id: "26C",
// name: "26 - C Vallam Vadagal Aerospace Park",
// type: "plot",
// pintype: "straightPin",
// position: { x: 658, y: 300 },
// image: null,
// },
// {
// id: "26B",
// name: "26 - B Vallam Vadagal Phase - II",
// type: "plot",
// pintype: "straightPin",
// position: { x: 337, y: 560 },
// image: [plot1, plot2, plot3, plot4, plot5, plot6, plot7],
// svg: [plotSvg1, plotSvg2, plotSvg3, plotSvg4, plotSvg5, plotSvg6, plotSvg7],
// explore: [],
// },
// ],
// amenities: [
// {
// id: "01",
// type: "normal",
// name: "Jun Automative India Private limited",
// position: { x: 796, y: 736 },
// image: null,
// image360: null,
// },
// {
// id: "02",
// type: "normal",
// name: "AR Packaging",
// position: { x: 845, y: 376 },
// image: null,
// image360: null,
// },
// {
// id: "03",
// type: "normal",
// name: "SMRC Automotive products India private Limited",
// position: { x: 913, y: 367 },
// image: null,
// image360: null,
// },
// {
// id: "04",
// type: "normal",
// name: "India yamaha motors",
// position: { x: 816, y: 321 },
// image: null,
// image360: null,
// },
// {
// id: "05",
// type: "normal",
// name: "Bray Controls India ",
// position: { x: 803, y: 410 },
// image: null,
// image360: null,
// },
// {
// id: "06",
// type: "normal",
// name: "Sakura Autoparts Private Limited",
// position: { x: 763, y: 362 },
// image: null,
// image360: null,
// },
// {
// id: "07",
// type: "normal",
// name: "Ferrotech Structurals India Private Limited",
// position: { x: 1124, y: 356 },
// image: null,
// image360: null,
// },
// {
// id: "08",
// type: "normal",
// name: "RIKUN Manufacturing Private Limited",
// position: { x: 726, y: 396 },
// image: null,
// image360: null,
// },
// {
// id: "09",
// type: "normal",
// name: "Super auto Forge privated limited",
// position: { x: 482, y: 535 },
// image: null,
// image360: null,
// },
// {
// id: "10",
// type: "normal",
// name: "Dansfoss Industries",
// position: { x: 1371, y: 451 },
// image: null,
// image360: null,
// },
// {
// id: "11",
// type: "normal",
// name: "Daimler India Vechicals",
// position: { x: 1260, y: 418 },
// image: null,
// image360: null,
// },
// {
// id: "12",
// type: "normal",
// name: "Hl klemove India private Limited",
// position: { x: 1311, y: 441 },
// image: null,
// image360: null,
// },
// {
// id: "13",
// type: "normal",
// name: "Rambal Limited",
// position: { x: 1150, y: 415 },
// image: null,
// image360: null,
// },
// {
// id: "14",
// type: "normal",
// name: "Vensenal Enterprises Private Limited",
// position: { x: 835, y: 560 },
// image: null,
// image360: null,
// },
// {
// id: "15",
// type: "normal",
// name: "MBM India Private Limited",
// position: { x: 1136, y: 460 },
// image: null,
// image360: null,
// },
// {
// id: "16",
// type: "normal",
// name: "Aptiv Components Ind Private Limited",
// position: { x: 1300, y: 331 },
// image: null,
// image360: null,
// },
// {
// id: "17",
// type: "normal",
// name: "ITW India private Limited",
// position: { x: 371, y: 428 },
// image: null,
// image360: null,
// },
// {
// id: "18",
// type: "normal",
// name: "Kumar Industries",
// position: { x: 1217, y: 456 },
// image: null,
// image360: null,
// },
// ]
// },
// ],
// },
// ],
// },
// },
// },
// {
// id: "sipcot-oragadam",
// name: "Sipcot Oragadam",
// type: "area",
// position: { x: 1280, y: 710 },
// image: kanchipuram,
// svg: VallamSvg,
// pinSvg: true,
// selectable: false,
// },
// {
// id: "sipcot-thirumudivakkam",
// name: "Sipcot Thirumudivakkam",
// type: "area",
// position: { x: 1580, y: 260 },
// image: kanchipuram,
// svg: VallamSvg,
// pinSvg: true,
// selectable: false,
// },
// {
// id: "sipcot-cheyyar",
// name: "Sipcot Cheyyar",
// type: "area",
// position: { x: 580, y: 990 },
// image: kanchipuram,
// svg: VallamSvg,
// pinSvg: true,
// selectable: false,
// },
// {
// id: "sipcot-pallaipakkam",
// name: "Sipcot Pallaipakkam",
// type: "area",
// position: { x: 1240, y: 360 },
// image: kanchipuram,
// svg: VallamSvg,
// pinSvg: true,
// selectable: false,
// },
// ],
// },
// ],
// };
[
{
"id": "1761037603233",
"type": "schemaNode",
"position": {
"x": 171,
"y": 249
},
"data": {
"collectionName": "collection1",
"collectionData": [
{
"id": 1761037603233,
"keyType": "primary",
"label": "auto_id",
"type": "string"
},
{
"id": 1761037605717,
"label": "field_2",
"type": "string"
},
{
"id": 1761037606472,
"label": "field_3",
"type": "object"
},
{
"id": 1761037641061,
"label": "field_4",
"type": "string"
}
]
},
"width": 285,
"height": 274,
"selected": true,
"dragging": false,
"positionAbsolute": {
"x": 171,
"y": 249
}
},
{
"id": "1761037604266",
"type": "schemaNode",
"position": {
"x": 565,
"y": 196
},
"data": {
"collectionName": "collection2",
"collectionData": [
{
"id": 1761037604266,
"keyType": "primary",
"label": "auto_id",
"type": "string"
}
]
},
"width": 285,
"height": 133,
"selected": false,
"positionAbsolute": {
"x": 565,
"y": 196
},
"dragging": false
},
{
"id": "obj_1761037608555",
"type": "objectNode",
"position": {
"x": 570,
"y": 468
},
"data": {
"collectionName": "field_3",
"collectionData": [
{
"id": 1761037608555,
"label": "dummy_field",
"type": "string"
},
{
"id": 1761037610529,
"label": "field_2",
"type": "string"
}
],
"parentId": "1761037603233",
"parentFieldId": "1761037606472"
},
"selected": false,
"width": 285,
"height": 173,
"positionAbsolute": {
"x": 570,
"y": 468
},
"dragging": false
}
]