Commit 81020b6a by jay

vendor backend

1 parent 0b26196c
Showing 37 changed files with 4048 additions and 14 deletions
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"@strapi/strapi": "4.3.6", "@strapi/strapi": "4.3.6",
"axios": "^1.1.3", "axios": "^1.1.3",
"better-sqlite3": "7.4.6", "better-sqlite3": "7.4.6",
"csv-parse": "^5.5.5",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"pg": "^8.8.0", "pg": "^8.8.0",
"strapi-plugin-ckeditor5": "^2.1.1-rc.1" "strapi-plugin-ckeditor5": "^2.1.1-rc.1"
...@@ -6421,6 +6422,11 @@ ...@@ -6421,6 +6422,11 @@
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==", "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/csv-parse": {
"version": "5.5.5",
"resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.5.5.tgz",
"integrity": "sha512-erCk7tyU3yLWAhk6wvKxnyPtftuy/6Ak622gOO7BCJ05+TYffnPCJF905wmOQm+BpkX54OdAl8pveJwUdpnCXQ=="
},
"node_modules/dashdash": { "node_modules/dashdash": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
...@@ -21873,6 +21879,11 @@ ...@@ -21873,6 +21879,11 @@
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz",
"integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==" "integrity": "sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA=="
}, },
"csv-parse": {
"version": "5.5.5",
"resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.5.5.tgz",
"integrity": "sha512-erCk7tyU3yLWAhk6wvKxnyPtftuy/6Ak622gOO7BCJ05+TYffnPCJF905wmOQm+BpkX54OdAl8pveJwUdpnCXQ=="
},
"dashdash": { "dashdash": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
"@strapi/strapi": "4.3.6", "@strapi/strapi": "4.3.6",
"axios": "^1.1.3", "axios": "^1.1.3",
"better-sqlite3": "7.4.6", "better-sqlite3": "7.4.6",
"csv-parse": "^5.5.5",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"pg": "^8.8.0", "pg": "^8.8.0",
"strapi-plugin-ckeditor5": "^2.1.1-rc.1" "strapi-plugin-ckeditor5": "^2.1.1-rc.1"
......
...@@ -4,15 +4,21 @@ ...@@ -4,15 +4,21 @@
"info": { "info": {
"singularName": "master-city", "singularName": "master-city",
"pluralName": "master-cities", "pluralName": "master-cities",
"displayName": "Master-city" "displayName": "Master-city",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": true "draftAndPublish": false
}, },
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
"name": { "name": {
"type": "string" "type": "string"
},
"masterState": {
"type": "relation",
"relation": "oneToOne",
"target": "api::master-state.master-state"
} }
} }
} }
{
"kind": "collectionType",
"collectionName": "master_countries",
"info": {
"singularName": "master-country",
"pluralName": "master-countries",
"displayName": "Master-country",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
}
}
}
'use strict';
/**
* master-country controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::master-country.master-country');
'use strict';
/**
* master-country router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::master-country.master-country');
'use strict';
/**
* master-country service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::master-country.master-country');
{
"kind": "collectionType",
"collectionName": "master_pincodes",
"info": {
"singularName": "master-pincode",
"pluralName": "master-pincodes",
"displayName": "Master-pincode",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
}
}
}
'use strict';
/**
* master-pincode controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::master-pincode.master-pincode');
'use strict';
/**
* master-pincode router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::master-pincode.master-pincode');
'use strict';
/**
* master-pincode service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::master-pincode.master-pincode');
{
"kind": "collectionType",
"collectionName": "master_states",
"info": {
"singularName": "master-state",
"pluralName": "master-states",
"displayName": "Master-state",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"masterCountry": {
"type": "relation",
"relation": "oneToOne",
"target": "api::master-country.master-country"
}
}
}
'use strict';
/**
* master-state controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::master-state.master-state');
'use strict';
/**
* master-state router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::master-state.master-state');
'use strict';
/**
* master-state service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::master-state.master-state');
...@@ -26,6 +26,41 @@ ...@@ -26,6 +26,41 @@
}, },
"phone": { "phone": {
"type": "string" "type": "string"
},
"pan": {
"type": "string"
},
"panImage": {
"type": "string"
},
"gst": {
"type": "string"
},
"gstImage": {
"type": "string"
},
"businessName": {
"type": "string"
},
"logo": {
"type": "string"
},
"state": {
"type": "string"
},
"city": {
"type": "string"
},
"pincode": {
"type": "string"
},
"country": {
"type": "string"
},
"user": {
"type": "relation",
"relation": "oneToOne",
"target": "plugin::users-permissions.user"
} }
} }
} }
...@@ -9,6 +9,23 @@ const { getService } = require("@strapi/plugin-users-permissions/server/utils"); ...@@ -9,6 +9,23 @@ const { getService } = require("@strapi/plugin-users-permissions/server/utils");
const { createCoreController } = require("@strapi/strapi").factories; const { createCoreController } = require("@strapi/strapi").factories;
module.exports = createCoreController("api::vendor.vendor", () => ({ module.exports = createCoreController("api::vendor.vendor", () => ({
async importSeedData(ctx) {
await strapi.service("api::vendor.vendor").importCountrySeedData();
await strapi.service("api::vendor.vendor").importStateSeedData();
await strapi.service("api::vendor.vendor").importCitySeedData();
await strapi.service("api::vendor.vendor").importPincodeSeedData();
// await strapi.service("api::jeweler.jeweler").importColorSeedData();
// await strapi.service("api::jeweler.jeweler").importKaratSeedData();
// await strapi.service("api::jeweler.jeweler").importOccasionSeedData();
// await strapi.service("api::jeweler.jeweler").importOrnametTypeSeedData();
// await strapi.service("api::jeweler.jeweler").importOrnametTypeMetalSeedData();
// await strapi.service("api::jeweler.jeweler").importJewelerDetailsSeedData();
// await strapi.service("api::jeweler.jeweler").importShopDetailsSeedData();
// await strapi.service("api::jeweler.jeweler").importProductsSeedData();
// await strapi.service("api::jeweler.jeweler").importProductSizeSeedData();
ctx.send({ ok: true });
},
async create(ctx) { async create(ctx) {
// console.log("ctx", ctx.request.body); // console.log("ctx", ctx.request.body);
// Get user from user entity // Get user from user entity
...@@ -21,20 +38,26 @@ module.exports = createCoreController("api::vendor.vendor", () => ({ ...@@ -21,20 +38,26 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
}, },
}); });
// Check if its already existing in vendor entity // Check if its already existing in vendor entity
// console.log("currentUser", currentUser); console.log("currentUser", currentUser);
console.log(
"phoneNumber",
ctx.request.body.data.mobileNo,
ctx.request.body.data.email
);
let existingUser; let existingUser;
existingUser = await strapi.entityService.findMany("api::vendor.vendor", { existingUser = await strapi.entityService.findMany("api::vendor.vendor", {
fields: ["id"], // fields: ["id"],
filter: { phoneNumber: ctx.request.body.data.phoneNumber }, filters: { phone: {$eq: ctx.request.body.data.mobileNo} },
}); });
console.log("existingUser> 1", existingUser);
if (!existingUser) { if (!existingUser) {
existingUser = await strapi.entityService.findMany("api::vendor.vendor", { existingUser = await strapi.entityService.findMany("api::vendor.vendor", {
fields: ["id"], // fields: ["id"],
filters: { email: ctx.request.body.data.email }, filters: { email: {$eq: ctx.request.body.data.email} },
}); });
} }
console.log("existingUser > 2", existingUser);
// Generate one time password (otp) // Generate one time password (otp)
const oneTimePassword = Math.floor(1000 + Math.random() * 9000); const oneTimePassword = Math.floor(1000 + Math.random() * 9000);
...@@ -52,11 +75,17 @@ module.exports = createCoreController("api::vendor.vendor", () => ({ ...@@ -52,11 +75,17 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
// TODO: Code to send OTP on email // TODO: Code to send OTP on email
// TODO: Code to send OTP on SMS // TODO: Code to send OTP on SMS
console.log("ctx.request.body.data", ctx.request.body.data);
console.log("existingUser", existingUser);
if (existingUser && existingUser.length !== 0) { if (existingUser && existingUser.length !== 0) {
} else { } else {
ctx.request.body.data.user = currentUser.id; ctx.request.body.data.user = currentUser.id;
const response = await strapi.entityService.create("api::vendor.vendor", { const response = await strapi.entityService.create("api::vendor.vendor", {
data: { ...ctx.request.body.data, publishedAt: date }, data: {
...ctx.request.body.data,
phone: ctx.request.body.data.mobileNo,
publishedAt: date,
},
}); });
console.log("response", response); console.log("response", response);
return { otpSent: true, data: response }; return { otpSent: true, data: response };
......
...@@ -8,6 +8,14 @@ const routes = { ...@@ -8,6 +8,14 @@ const routes = {
//some Configuration //some Configuration
}, },
}, },
{
method: "POST",
path: "/jeweler/import-seed-data",
handler: "api::vendor.vendor.importSeedData",
config: {
// some configuration...
}
},
], ],
}; };
......
[
{
"name": "Mumbai",
"state": "Maharashtra"
},
{
"name": "Pune",
"state": "Maharashtra"
},
{
"name": "Nagpur",
"state": "Maharashtra"
},
{
"name": "Thane",
"state": "Maharashtra"
},
{
"name": "Nashik",
"state": "Maharashtra"
},
{
"name": "Kalyan-Dombivali",
"state": "Maharashtra"
},
{
"name": "Vasai-Virar",
"state": "Maharashtra"
},
{
"name": "Solapur",
"state": "Maharashtra"
},
{
"name": "Mira-Bhayandar",
"state": "Maharashtra"
},
{
"name": "Bhiwandi",
"state": "Maharashtra"
},
{
"name": "Amravati",
"state": "Maharashtra"
},
{
"name": "Nanded-Waghala",
"state": "Maharashtra"
},
{
"name": "Sangli",
"state": "Maharashtra"
},
{
"name": "Malegaon",
"state": "Maharashtra"
},
{
"name": "Akola",
"state": "Maharashtra"
},
{
"name": "Latur",
"state": "Maharashtra"
},
{
"name": "Dhule",
"state": "Maharashtra"
},
{
"name": "Ahmednagar",
"state": "Maharashtra"
},
{
"name": "Ichalkaranji",
"state": "Maharashtra"
},
{
"name": "Parbhani",
"state": "Maharashtra"
},
{
"name": "Panvel",
"state": "Maharashtra"
},
{
"name": "Yavatmal",
"state": "Maharashtra"
},
{
"name": "Achalpur",
"state": "Maharashtra"
},
{
"name": "Osmanabad",
"state": "Maharashtra"
},
{
"name": "Nandurbar",
"state": "Maharashtra"
},
{
"name": "Satara",
"state": "Maharashtra"
},
{
"name": "Wardha",
"state": "Maharashtra"
},
{
"name": "Udgir",
"state": "Maharashtra"
},
{
"name": "Aurangabad",
"state": "Maharashtra"
},
{
"name": "Amalner",
"state": "Maharashtra"
},
{
"name": "Akot",
"state": "Maharashtra"
},
{
"name": "Pandharpur",
"state": "Maharashtra"
},
{
"name": "Shrirampur",
"state": "Maharashtra"
},
{
"name": "Parli",
"state": "Maharashtra"
},
{
"name": "Washim",
"state": "Maharashtra"
},
{
"name": "Ambejogai",
"state": "Maharashtra"
},
{
"name": "Manmad",
"state": "Maharashtra"
},
{
"name": "Ratnagiri",
"state": "Maharashtra"
},
{
"name": "Uran Islampur",
"state": "Maharashtra"
},
{
"name": "Pusad",
"state": "Maharashtra"
},
{
"name": "Sangamner",
"state": "Maharashtra"
},
{
"name": "Shirpur-Warwade",
"state": "Maharashtra"
},
{
"name": "Malkapur",
"state": "Maharashtra"
},
{
"name": "Wani",
"state": "Maharashtra"
},
{
"name": "Lonavla",
"state": "Maharashtra"
},
{
"name": "Talegaon Dabhade",
"state": "Maharashtra"
},
{
"name": "Anjangaon",
"state": "Maharashtra"
},
{
"name": "Umred",
"state": "Maharashtra"
},
{
"name": "Palghar",
"state": "Maharashtra"
},
{
"name": "Shegaon",
"state": "Maharashtra"
},
{
"name": "Ozar",
"state": "Maharashtra"
},
{
"name": "Phaltan",
"state": "Maharashtra"
},
{
"name": "Yevla",
"state": "Maharashtra"
},
{
"name": "Shahade",
"state": "Maharashtra"
},
{
"name": "Vita",
"state": "Maharashtra"
},
{
"name": "Umarkhed",
"state": "Maharashtra"
},
{
"name": "Warora",
"state": "Maharashtra"
},
{
"name": "Pachora",
"state": "Maharashtra"
},
{
"name": "Tumsar",
"state": "Maharashtra"
},
{
"name": "Manjlegaon",
"state": "Maharashtra"
},
{
"name": "Sillod",
"state": "Maharashtra"
},
{
"name": "Arvi",
"state": "Maharashtra"
},
{
"name": "Nandura",
"state": "Maharashtra"
},
{
"name": "Vaijapur",
"state": "Maharashtra"
},
{
"name": "Wadgaon Road",
"state": "Maharashtra"
},
{
"name": "Sailu",
"state": "Maharashtra"
},
{
"name": "Murtijapur",
"state": "Maharashtra"
},
{
"name": "Tasgaon",
"state": "Maharashtra"
},
{
"name": "Mehkar",
"state": "Maharashtra"
},
{
"name": "Yawal",
"state": "Maharashtra"
},
{
"name": "Pulgaon",
"state": "Maharashtra"
},
{
"name": "Nilanga",
"state": "Maharashtra"
},
{
"name": "Wai",
"state": "Maharashtra"
},
{
"name": "Umarga",
"state": "Maharashtra"
},
{
"name": "Paithan",
"state": "Maharashtra"
},
{
"name": "Rahuri",
"state": "Maharashtra"
},
{
"name": "Nawapur",
"state": "Maharashtra"
},
{
"name": "Tuljapur",
"state": "Maharashtra"
},
{
"name": "Morshi",
"state": "Maharashtra"
},
{
"name": "Purna",
"state": "Maharashtra"
},
{
"name": "Satana",
"state": "Maharashtra"
},
{
"name": "Pathri",
"state": "Maharashtra"
},
{
"name": "Sinnar",
"state": "Maharashtra"
},
{
"name": "Uchgaon",
"state": "Maharashtra"
},
{
"name": "Uran",
"state": "Maharashtra"
},
{
"name": "Pen",
"state": "Maharashtra"
},
{
"name": "Karjat",
"state": "Maharashtra"
},
{
"name": "Manwath",
"state": "Maharashtra"
},
{
"name": "Partur",
"state": "Maharashtra"
},
{
"name": "Sangole",
"state": "Maharashtra"
},
{
"name": "Mangrulpir",
"state": "Maharashtra"
},
{
"name": "Risod",
"state": "Maharashtra"
},
{
"name": "Shirur",
"state": "Maharashtra"
},
{
"name": "Savner",
"state": "Maharashtra"
},
{
"name": "Sasvad",
"state": "Maharashtra"
},
{
"name": "Pandharkaoda",
"state": "Maharashtra"
},
{
"name": "Talode",
"state": "Maharashtra"
},
{
"name": "Shrigonda",
"state": "Maharashtra"
},
{
"name": "Shirdi",
"state": "Maharashtra"
},
{
"name": "Raver",
"state": "Maharashtra"
},
{
"name": "Mukhed",
"state": "Maharashtra"
},
{
"name": "Rajura",
"state": "Maharashtra"
},
{
"name": "Vadgaon Kasba",
"state": "Maharashtra"
},
{
"name": "Tirora",
"state": "Maharashtra"
},
{
"name": "Mahad",
"state": "Maharashtra"
},
{
"name": "Lonar",
"state": "Maharashtra"
},
{
"name": "Sawantwadi",
"state": "Maharashtra"
},
{
"name": "Pathardi",
"state": "Maharashtra"
},
{
"name": "Pauni",
"state": "Maharashtra"
},
{
"name": "Ramtek",
"state": "Maharashtra"
},
{
"name": "Mul",
"state": "Maharashtra"
},
{
"name": "Soyagaon",
"state": "Maharashtra"
},
{
"name": "Mangalvedhe",
"state": "Maharashtra"
},
{
"name": "Narkhed",
"state": "Maharashtra"
},
{
"name": "Shendurjana",
"state": "Maharashtra"
},
{
"name": "Patur",
"state": "Maharashtra"
},
{
"name": "Mhaswad",
"state": "Maharashtra"
},
{
"name": "Loha",
"state": "Maharashtra"
},
{
"name": "Nandgaon",
"state": "Maharashtra"
},
{
"name": "Warud",
"state": "Maharashtra"
}
]
\ No newline at end of file \ No newline at end of file
[
{
"name": "Gold"
},
{
"name": "Silver"
},
{
"name": "Rose"
},
{
"name": "Green"
},
{
"name": "Yellow"
}
]
[{
"name": "Afghanistan"
},
{
"name": "Åland Islands"
},
{
"name": "Albania"
},
{
"name": "Algeria"
},
{
"name": "American Samoa"
},
{
"name": "AndorrA"
},
{
"name": "Angola"
},
{
"name": "Anguilla"
},
{
"name": "Antarctica"
},
{
"name": "Antigua and Barbuda"
},
{
"name": "Argentina"
},
{
"name": "Armenia"
},
{
"name": "Aruba"
},
{
"name": "Australia"
},
{
"name": "Austria"
},
{
"name": "Azerbaijan"
},
{
"name": "Bahamas"
},
{
"name": "Bahrain"
},
{
"name": "Bangladesh"
},
{
"name": "Barbados"
},
{
"name": "Belarus"
},
{
"name": "Belgium"
},
{
"name": "Belize"
},
{
"name": "Benin"
},
{
"name": "Bermuda"
},
{
"name": "Bhutan"
},
{
"name": "Bolivia"
},
{
"name": "Bosnia and Herzegovina"
},
{
"name": "Botswana"
},
{
"name": "Bouvet Island"
},
{
"name": "Brazil"
},
{
"name": "British Indian Ocean Territory"
},
{
"name": "Brunei Darussalam"
},
{
"name": "Bulgaria"
},
{
"name": "Burkina Faso"
},
{
"name": "Burundi"
},
{
"name": "Cambodia"
},
{
"name": "Cameroon"
},
{
"name": "Canada"
},
{
"name": "Cape Verde"
},
{
"name": "Cayman Islands"
},
{
"name": "Central African Republic"
},
{
"name": "Chad"
},
{
"name": "Chile"
},
{
"name": "China"
},
{
"name": "Christmas Island"
},
{
"name": "Cocos (Keeling) Islands"
},
{
"name": "Colombia"
},
{
"name": "Comoros"
},
{
"name": "Congo"
},
{
"name": "Congo, The Democratic Republic of the"
},
{
"name": "Cook Islands"
},
{
"name": "Costa Rica"
},
{
"name": "Cote D\"Ivoire"
},
{
"name": "Croatia"
},
{
"name": "Cuba"
},
{
"name": "Cyprus"
},
{
"name": "Czech Republic"
},
{
"name": "Denmark"
},
{
"name": "Djibouti"
},
{
"name": "Dominica"
},
{
"name": "Dominican Republic"
},
{
"name": "Ecuador"
},
{
"name": "Egypt"
},
{
"name": "El Salvador"
},
{
"name": "Equatorial Guinea"
},
{
"name": "Eritrea"
},
{
"name": "Estonia"
},
{
"name": "Ethiopia"
},
{
"name": "Falkland Islands (Malvinas)"
},
{
"name": "Faroe Islands"
},
{
"name": "Fiji"
},
{
"name": "Finland"
},
{
"name": "France"
},
{
"name": "French Guiana"
},
{
"name": "French Polynesia"
},
{
"name": "French Southern Territories"
},
{
"name": "Gabon"
},
{
"name": "Gambia"
},
{
"name": "Georgia"
},
{
"name": "Germany"
},
{
"name": "Ghana"
},
{
"name": "Gibraltar"
},
{
"name": "Greece"
},
{
"name": "Greenland"
},
{
"name": "Grenada"
},
{
"name": "Guadeloupe"
},
{
"name": "Guam"
},
{
"name": "Guatemala"
},
{
"name": "Guernsey"
},
{
"name": "Guinea"
},
{
"name": "Guinea-Bissau"
},
{
"name": "Guyana"
},
{
"name": "Haiti"
},
{
"name": "Heard Island and Mcdonald Islands"
},
{
"name": "Holy See (Vatican City State)"
},
{
"name": "Honduras"
},
{
"name": "Hong Kong"
},
{
"name": "Hungary"
},
{
"name": "Iceland"
},
{
"name": "India"
},
{
"name": "Indonesia"
},
{
"name": "Iran, Islamic Republic Of"
},
{
"name": "Iraq"
},
{
"name": "Ireland"
},
{
"name": "Isle of Man"
},
{
"name": "Israel"
},
{
"name": "Italy"
},
{
"name": "Jamaica"
},
{
"name": "Japan"
},
{
"name": "Jersey"
},
{
"name": "Jordan"
},
{
"name": "Kazakhstan"
},
{
"name": "Kenya"
},
{
"name": "Kiribati"
},
{
"name": "Korea, Democratic People\"S Republic of"
},
{
"name": "Korea, Republic of"
},
{
"name": "Kuwait"
},
{
"name": "Kyrgyzstan"
},
{
"name": "Lao People\"S Democratic Republic"
},
{
"name": "Latvia"
},
{
"name": "Lebanon"
},
{
"name": "Lesotho"
},
{
"name": "Liberia"
},
{
"name": "Libyan Arab Jamahiriya"
},
{
"name": "Liechtenstein"
},
{
"name": "Lithuania"
},
{
"name": "Luxembourg"
},
{
"name": "Macao"
},
{
"name": "Macedonia, The Former Yugoslav Republic of"
},
{
"name": "Madagascar"
},
{
"name": "Malawi"
},
{
"name": "Malaysia"
},
{
"name": "Maldives"
},
{
"name": "Mali"
},
{
"name": "Malta"
},
{
"name": "Marshall Islands"
},
{
"name": "Martinique"
},
{
"name": "Mauritania"
},
{
"name": "Mauritius"
},
{
"name": "Mayotte"
},
{
"name": "Mexico"
},
{
"name": "Micronesia, Federated States of"
},
{
"name": "Moldova, Republic of"
},
{
"name": "Monaco"
},
{
"name": "Mongolia"
},
{
"name": "Montserrat"
},
{
"name": "Morocco"
},
{
"name": "Mozambique"
},
{
"name": "Myanmar"
},
{
"name": "Namibia"
},
{
"name": "Nauru"
},
{
"name": "Nepal"
},
{
"name": "Netherlands"
},
{
"name": "Netherlands Antilles"
},
{
"name": "New Caledonia"
},
{
"name": "New Zealand"
},
{
"name": "Nicaragua"
},
{
"name": "Niger"
},
{
"name": "Nigeria"
},
{
"name": "Niue"
},
{
"name": "Norfolk Island"
},
{
"name": "Northern Mariana Islands"
},
{
"name": "Norway"
},
{
"name": "Oman"
},
{
"name": "Pakistan"
},
{
"name": "Palau"
},
{
"name": "Palestinian Territory, Occupied"
},
{
"name": "Panama"
},
{
"name": "Papua New Guinea"
},
{
"name": "Paraguay"
},
{
"name": "Peru"
},
{
"name": "Philippines"
},
{
"name": "Pitcairn"
},
{
"name": "Poland"
},
{
"name": "Portugal"
},
{
"name": "Puerto Rico"
},
{
"name": "Qatar"
},
{
"name": "Reunion"
},
{
"name": "Romania"
},
{
"name": "Russian Federation"
},
{
"name": "RWANDA"
},
{
"name": "Saint Helena"
},
{
"name": "Saint Kitts and Nevis"
},
{
"name": "Saint Lucia"
},
{
"name": "Saint Pierre and Miquelon"
},
{
"name": "Saint Vincent and the Grenadines"
},
{
"name": "Samoa"
},
{
"name": "San Marino"
},
{
"name": "Sao Tome and Principe"
},
{
"name": "Saudi Arabia"
},
{
"name": "Senegal"
},
{
"name": "Serbia and Montenegro"
},
{
"name": "Seychelles"
},
{
"name": "Sierra Leone"
},
{
"name": "Singapore"
},
{
"name": "Slovakia"
},
{
"name": "Slovenia"
},
{
"name": "Solomon Islands"
},
{
"name": "Somalia"
},
{
"name": "South Africa"
},
{
"name": "South Georgia and the South Sandwich Islands"
},
{
"name": "Spain"
},
{
"name": "Sri Lanka"
},
{
"name": "Sudan"
},
{
"name": "Suriname"
},
{
"name": "Svalbard and Jan Mayen"
},
{
"name": "Swaziland"
},
{
"name": "Sweden"
},
{
"name": "Switzerland"
},
{
"name": "Syrian Arab Republic"
},
{
"name": "Taiwan, Province of China"
},
{
"name": "Tajikistan"
},
{
"name": "Tanzania, United Republic of"
},
{
"name": "Thailand"
},
{
"name": "Timor-Leste"
},
{
"name": "Togo"
},
{
"name": "Tokelau"
},
{
"name": "Tonga"
},
{
"name": "Trinidad and Tobago"
},
{
"name": "Tunisia"
},
{
"name": "Turkey"
},
{
"name": "Turkmenistan"
},
{
"name": "Turks and Caicos Islands"
},
{
"name": "Tuvalu"
},
{
"name": "Uganda"
},
{
"name": "Ukraine"
},
{
"name": "United Arab Emirates"
},
{
"name": "United Kingdom"
},
{
"name": "United States"
},
{
"name": "United States Minor Outlying Islands"
},
{
"name": "Uruguay"
},
{
"name": "Uzbekistan"
},
{
"name": "Vanuatu"
},
{
"name": "Venezuela"
},
{
"name": "Viet Nam"
},
{
"name": "Virgin Islands, British"
},
{
"name": "Virgin Islands, U.S."
},
{
"name": "Wallis and Futuna"
},
{
"name": "Western Sahara"
},
{
"name": "Yemen"
},
{
"name": "Zambia"
},
{
"name": "Zimbabwe"
}
]
\ No newline at end of file \ No newline at end of file
[
{
"businessEmail": "sales@kalyanjewels.com",
"businessPhoneNumber": "9892997823",
"businessName": "Kalyan Jewellers",
"pocFirstName": "Hardik",
"pocLastName": "Zaveri",
"pocEmail": "hzaveri@gmail.com",
"pocPhoneNumber": "876965489",
"pan": "ABCTY1234D",
"kycDone": true,
"user": "Hzaveri",
"address1": "Lokmanya Tilak Rd, Boriwali West",
"address2": "Mini Zaveri Bazaar",
"masterPincode": 400001,
"masterCity": "Mumbai",
"masterState": "Maharashtra",
"masterCountry": "India",
"approximateAnnualTurnover": "112 CR",
"ageOfBusiness": "25",
"brandName": "Kalyan Jewellers",
"isProfileCompleted": true,
"oneTimePassword": "",
"isConcentGiven": true,
"gstNumber": "18AABCU9603R1ZM"
},
{
"businessEmail": "enquiries@tanishq.com",
"businessPhoneNumber": "8977654789",
"businessName": "Tanishq",
"pocFirstName": "Rajesh ",
"pocLastName": "Patel",
"pocEmail": "rajesh.patel@tanishq.com",
"pocPhoneNumber": "9870098700",
"pan": "XYZXX1234A",
"kycDone": true,
"user": "Patel.Rajesh",
"address1": "Turner Rd, Bandra West",
"address2": "Near Tavaa Restaurant",
"masterPincode": 400002,
"masterCity": "Mumbai",
"masterState": "Maharashtra",
"masterCountry": "India",
"approximateAnnualTurnover": "405 CR",
"ageOfBusiness": "18",
"brandName": "Tanishq",
"isProfileCompleted": true,
"oneTimePassword": "",
"isConcentGiven": true,
"gstNumber": "14DDBXX8803B1PK"
}
]
[
{
"name": "22 Karat"
},
{
"name": "95 Karat"
},
{
"name": "18 Karat"
},
{
"name": "24 Karat"
}
]
\ No newline at end of file \ No newline at end of file
[
{
"name": "Traditional"
},
{
"name": "Casual Wear"
},
{
"name": "Wedding"
},
{
"name": "Office Wear"
},
{
"name": "Engagement"
},
{
"name": "Anniversary"
},
{
"name": "Modern Wear"
},
{
"name": "Anniversary"
},
{
"name": "Office Party"
},
{
"name": "Ethnic Wear"
}
]
[
{
"name": "Earrings"
},
{
"name": "Chain"
},
{
"name": "Nose Pin"
},
{
"name": "Necklace"
},
{
"name": "Bracelet"
},
{
"name": "Pendant"
},
{
"name": "Anklet"
},
{
"name": "Necklace & Earrings Set"
},
{
"name": "Earrings & Pendant Set"
},
{
"name": "Ring"
}
]
\ No newline at end of file \ No newline at end of file
[{
"name": "400001",
"city": "Mumbai"
},
{
"name": "400002",
"city": "Mumbai"
},
{
"name": "400003",
"city": "Mumbai"
},
{
"name": "400004",
"city": "Mumbai"
},
{
"name": "400005",
"city": "Mumbai"
},
{
"name": "400006",
"city": "Mumbai"
},
{
"name": "400007",
"city": "Mumbai"
},
{
"name": "400008",
"city": "Mumbai"
},
{
"name": "400009",
"city": "Mumbai"
},
{
"name": "400010",
"city": "Mumbai"
},
{
"name": "400011",
"city": "Mumbai"
},
{
"name": "400012",
"city": "Mumbai"
},
{
"name": "400013",
"city": "Mumbai"
},
{
"name": "400014",
"city": "Mumbai"
},
{
"name": "400015",
"city": "Mumbai"
},
{
"name": "400016",
"city": "Mumbai"
},
{
"name": "400017",
"city": "Mumbai"
},
{
"name": "400018",
"city": "Mumbai"
},
{
"name": "400019",
"city": "Mumbai"
},
{
"name": "400020",
"city": "Mumbai"
}
]
\ No newline at end of file \ No newline at end of file
[
{
"title": "Gold Earrings",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum",
"masterOrnamentType": "Earrings",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Party", "Wedding"],
"masterColors": ["Gold"],
"masterKarat": "22 Karat",
"netWeight": 20.0,
"mrp": 100000.00,
"makingCharges": 10000,
"gstIncluded": false,
"rent": 10000,
"status": "available",
"sku": "SKU1234",
"sizeUom": "mm",
"sizeNumber": 10.5,
"isFeatured": true,
"jeweler": "9892997823",
"shop": "8877995467",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"20% off",
"offerType":"percentage",
"offerValue":"20"
},
{
"title": "Silver Chain",
"description": " Beauty lies in simplicity. Forged with glimmering silver this dainty pendant features a serene contemporary design and comes with a sleek silver chain. Versatile and elegant this can be your go-to jewellery for any occasion.",
"masterOrnamentType": "Chain",
"masterTypeOfMetal": "Silver",
"masterOccassions": ["Party", "Office Wear"],
"masterColors": ["Silver"],
"masterKarat": "95 Karat",
"netWeight": 12.33,
"mrp": 120000,
"makingCharges": 10000,
"gstIncluded": false,
"rent": 12000,
"status": "available",
"sku": "SKU1235",
"sizeUom": "mm",
"sizeNumber": 11,
"isFeatured": true,
"jeweler": "9892997823",
"shop": "8877995467",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"10% off",
"offerType":"percentage",
"offerValue":"10"
},
{
"title": "Charming Diamond Nose Pin",
"description": "Rosebud Nose Pin Crafted in 18 Karat Yellow Gold and Studded with Diamonds",
"masterOrnamentType": "Nose Pin",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Traditional", "Casual Wear"],
"masterColors": ["Gold"],
"masterKarat": "18 Karat",
"netWeight": 0.562,
"mrp": 150000,
"makingCharges": 11000,
"gstIncluded": false,
"rent": 15000,
"status": "available",
"sku": "SKU1236",
"sizeUom": "mm",
"sizeNumber": 12,
"isFeatured": true,
"jeweler": "9892997823",
"shop": "8877995467",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"15% off",
"offerType":"percentage",
"offerValue":"15"
},
{
"title": "Stately Gold Thusi Necklace For The Maharashtrian Bride",
"description": "Radiant and Luminous Beaded Thusi Necklace with Coloured Stones crafted in 22 Karat Yellow Gold. Reckon the radiance of the season, adorning heritage pieces that marvellously capture the magnificence and artistry of bygone era with this Thusi Necklace.",
"masterOrnamentType": "Necklace",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Bridal", "Wedding"],
"masterColors": ["Gold"],
"masterKarat": "22 Karat",
"netWeight": 30,
"mrp": 200000,
"makingCharges": 12000,
"gstIncluded": false,
"rent": 13500,
"status": "available",
"sku": "SKU1237",
"sizeUom": "mm",
"sizeNumber": 13,
"isFeatured": true,
"jeweler": "9892997823",
"shop": "8877995467",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"20% off",
"offerType":"percentage",
"offerValue":"20"
},
{
"title": "Slender Gold Bracelet",
"description": "Beaded bracelet with light rhodium finish set in 22 karat yellow gold. The textured beads add a surreal charm to this bracelet. Textured beads of gold and rhodium lend a mesmerising brilliance to this bracelet. Move effortlessly from work to special gatherings with this dazzling piece of jewellery.",
"masterOrnamentType": "Bracelet",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Office Wear"],
"masterColors": ["Gold"],
"masterKarat": "22 Karat",
"netWeight": 10.545,
"mrp": 125000,
"makingCharges": 12500,
"gstIncluded": false,
"rent": 12000,
"status": "available",
"sku": "SKU1238",
"sizeUom": "mm",
"sizeNumber": 12,
"isFeatured": true,
"jeweler": "8977654789",
"shop": "9863359584",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"20% off",
"offerType":"percentage",
"offerValue":"20"
},
{
"title": "Diamond Cluster Ring",
"description": "This elegant 950 Pure platinum ring features a diamond cluster flanked by 2 diamond-studded ramps in a polished ring. Stone Clarity: VS. The perfect love story deserves the perfect token of love. This stunning platinum ring studded with shimmering diamonds will make for the ultimate symbol to commemorate your love and immortalise the bond you share.",
"masterOrnamentType": "Ring",
"masterTypeOfMetal": "Platinum",
"masterOccassions": ["Engagement"],
"masterColors": ["Silver"],
"masterKarat": "95 Karat",
"netWeight": 4.394,
"mrp": 100000,
"makingCharges": 10000,
"gstIncluded": false,
"rent": 10000,
"status": "available",
"sku": "SKU1239",
"sizeUom": "mm",
"sizeNumber": 11,
"isFeatured": true,
"jeweler": "8977654789",
"shop": "9823456789",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"15% off",
"offerType":"percentage",
"offerValue":"15"
},
{
"title": "Love Story Gold Pendant",
"description": "Here's a modern love letter to the one who has the keys to your heart. A beautiful script pendant engraved with poetic lines to make you and your loved adorn a piece of everlasting love today and everyday. Pendants are without chain. Chain shown in the images are for pictorial representation only.",
"masterOrnamentType": "Pendant",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Anniversary", "Valentine", "Wedding"],
"masterColors": ["Rose"],
"masterKarat": "18 Karat",
"netWeight": 3.55,
"mrp": 200000,
"makingCharges": 20000,
"gstIncluded": true,
"rent": 11000,
"status": "available",
"sku": "SKU1240",
"sizeUom": "mm",
"sizeNumber": 8,
"isFeatured": true,
"jeweler": "8977654789",
"shop": "9863359584",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"10% off",
"offerType":"percentage",
"offerValue":"10"
},
{
"title": "Petite Glam Anklet",
"description": "Add subtle glamour to your little one's outfit with this petite anklet crafted in 22 karat yellow gold. This anklet is perfect for those whose prefer all things subtle but stylish. The petite pattern makes it unique without trying too hard.",
"masterOrnamentType": "Anklet",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Modern Wear"],
"masterColors": ["Gold"],
"masterKarat": "22 Karat",
"netWeight": 15.348,
"mrp": 10000,
"makingCharges": 2000,
"gstIncluded": true,
"rent": 1250,
"status": "available",
"sku": "SKU1241",
"sizeUom": "mm",
"sizeNumber": 11,
"isFeatured": true,
"jeweler": "8977654789",
"shop": "9823456789",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"18% off",
"offerType":"percentage",
"offerValue":"18"
},
{
"title": "Magnificent Gold Necklace And Earrings Set",
"description": "Set the stage on fire with this magnificent Necklace and earrings set crafted in 22 Karat Yellow Gold. Made with love by our master craftsmen, this Necklace and earrings set defines traditional magnificence. This is the ideal jewellery for larger than life celebrations.",
"masterOrnamentType": "Necklace & Earrings Set",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Traditional" , "Ethnic Wear"],
"masterColors": ["Rose"],
"masterKarat": "24 Karat",
"netWeight": 24.798,
"mrp": 20000,
"makingCharges": 3000,
"gstIncluded": true,
"rent": 1500,
"status": "available",
"sku": "SKU1242",
"sizeUom": "mm",
"sizeNumber": 13,
"isFeatured": true,
"jeweler": "8977654789",
"shop": "9863359584",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"10% off",
"offerType":"percentage",
"offerValue":"10"
},
{
"title": "Enchanting Gold Pendant And Earrings Set",
"description": "Enhance your ethereal beauty with this stunning pendant and earrings set crafted in 22 Karat Yellow Gold. Enchant onlookers with the ethereal beauty of this pendant and earrings set. It'll complement western as well as ethnic ensembles effortlessly.",
"masterOrnamentType": "Earrings & Pendant Set",
"masterTypeOfMetal": "Gold",
"masterOccassions": ["Modern Wear", "Office Party"],
"masterColors": ["Gold"],
"masterKarat": "22 Karat",
"netWeight": 7.472,
"mrp": 50000,
"makingCharges": 10000,
"gstIncluded": true,
"rent": 3000,
"status": "available",
"sku": "SKU1243",
"sizeUom": "mm",
"sizeNumber": 10.5,
"isFeatured": true,
"jeweler": "8977654789",
"shop": "9823456789",
"expertNotes":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"offerText":"20% off",
"offerType":"percentage",
"offerValue":"20"
}
]
\ No newline at end of file \ No newline at end of file
[
{
"title": "Minimalistic Traditional Diamond Ring",
"description": "Minimalistic and brimming with beauty, this ring is crafted in 18 karat yellow gold studded with diamonds in glossy rhodium finish. Stone Clarity I1I2",
"masterOrnamentType": "Ring",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Engagement",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Finger",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "Flat 5% Off",
"offerType": "percentage",
"offerValue": "5",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TRN2400269",
"productSizes": [
{
"product": "",
"length": "",
"width": "16.4",
"mrp": "31750",
"makingCharges": "2385",
"rent": "4999",
"sizeUom": "mm",
"netWeight": "1.95g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1069"
},
{
"shop": "6",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1070"
}
]
},
{
"product": "",
"length": "",
"width": "18.4",
"mrp": "42800",
"makingCharges": "3215",
"rent": "6499",
"sizeUom": "mm",
"netWeight": "2.35g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1071"
}
]
},
{
"product": "",
"length": "",
"width": "20.4",
"mrp": "51650",
"makingCharges": "3875",
"rent": "7999",
"sizeUom": "mm",
"netWeight": "3.05g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1072"
},
{
"shop": "6",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1073"
}
]
}
]
},
{
"title": "Dainty Elegance Diamond Ring",
"description": "Never go unnoticed when you adorn this dainty ring, crafted in 18 karat yellow gold, studded with diamonds. Stone Clarity: SI2",
"masterOrnamentType": "Ring",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Corporate Event",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Finger",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 6,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "Upto 20% Off",
"offerType": "percentage",
"offerValue": "11",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "KJR3600266",
"productSizes": [
{
"product": "",
"length": "",
"width": "16.4",
"mrp": "47258",
"makingCharges": "3545",
"rent": "7299",
"sizeUom": "mm",
"netWeight": "1.985g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1074"
}
]
},
{
"product": "",
"length": "",
"width": "18.4",
"mrp": "58348",
"makingCharges": "4375",
"rent": "8999",
"sizeUom": "mm",
"netWeight": "2.75g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1075"
}
]
},
{
"product": "",
"length": "",
"width": "20.4",
"mrp": "67538",
"makingCharges": "5065",
"rent": "10999",
"sizeUom": "mm",
"netWeight": "3.55g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1076"
}
]
},
{
"product": "",
"length": "",
"width": "22.4",
"mrp": "78238",
"makingCharges": "5875",
"rent": "12099",
"sizeUom": "mm",
"netWeight": "4.35g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1077"
}
]
}
]
},
{
"title": "Trinkle Pink Diamond Ring",
"description": "Be a presence of joy and amusement when you adorn the brilliance of this charming ring, with glinting diamonds and pink colour stone!",
"masterOrnamentType": "Ring",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Bridal",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Finger",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TRN1400369",
"productSizes": [
{
"product": "",
"length": "",
"width": "16.4",
"mrp": "32671",
"makingCharges": "2450",
"rent": "5199",
"sizeUom": "mm",
"netWeight": "2.798g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1078"
},
{
"shop": "6",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1079"
}
]
},
{
"product": "",
"length": "",
"width": "20.4",
"mrp": "51051",
"makingCharges": "3820",
"rent": "7999",
"sizeUom": "mm",
"netWeight": "4.02g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1080"
},
{
"shop": "6",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1081"
}
]
}
]
},
{
"title": "Sunflower Charn Diamond Ring",
"description": "Perfect for the sunshine girl, this sunflower ring is crafted in 18 karat rose gold, studded with diamonds. Stone Clarity: I1/I2",
"masterOrnamentType": "Ring",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Festival",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Finger",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 6,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "KJR5600333",
"productSizes": [
{
"product": "",
"length": "",
"width": "17.4",
"mrp": "40469",
"makingCharges": "3035",
"rent": "5999",
"sizeUom": "mm",
"netWeight": "1.835g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1082"
}
]
},
{
"product": "",
"length": "",
"width": "19.4",
"mrp": "50890",
"makingCharges": "3850",
"rent": "7999",
"sizeUom": "mm",
"netWeight": "2.75g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1083"
}
]
},
{
"product": "",
"length": "",
"width": "21.4",
"mrp": "61390",
"makingCharges": "4605",
"rent": "9999",
"sizeUom": "mm",
"netWeight": "3.8g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "1",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1084"
}
]
}
]
},
{
"title": "Clean Cuts Diamond Ring",
"description": "For the woman with a fuss-free approach, this clean-cut ring with gleaming diamonds makes the perfect match!",
"masterOrnamentType": "Ring",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Casual",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Finger",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "Flat 10% Off",
"offerType": "percentage",
"offerValue": "10",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TRN0400209",
"productSizes": [
{
"product": "",
"length": "",
"width": "16.4",
"mrp": "32125",
"makingCharges": "2405",
"rent": "5199",
"sizeUom": "mm",
"netWeight": "2.206g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "1",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1085"
},
{
"shop": "6",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1086"
}
]
},
{
"product": "",
"length": "",
"width": "18.4",
"mrp": "42125",
"makingCharges": "3165",
"rent": "6499",
"sizeUom": "mm",
"netWeight": "2.85g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1087"
},
{
"shop": "6",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1088"
}
]
}
]
},
{
"title": "Pink Champagne Diamond Bracelet",
"description": "Let the celebration of your love begin with this enticing bracelet, crafted beautifully with pink colour stone and dazzling diamonds!",
"masterOrnamentType": "Bracelet",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Engagement",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Hand",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 6,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "KBR2609AB1",
"productSizes": [
{
"product": "",
"length": "18",
"width": "",
"mrp": "38950",
"makingCharges": "2925",
"rent": "7999",
"sizeUom": "cm",
"netWeight": "2.715g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1089"
}
]
}
]
},
{
"title": "Stylish Cluster Diamond Bracelet",
"description": "Be a stylish presence with this subtle bracelet with a centre of diamond cluster, crafted in 18 karat white and rose gold. Stone Clarity: I1/I2",
"masterOrnamentType": "Bracelet",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Corporate Event",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Hand",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TBR100AF01",
"productSizes": [
{
"product": "",
"length": "18",
"width": "",
"mrp": "46520",
"makingCharges": "3450",
"rent": "9199",
"sizeUom": "cm",
"netWeight": "3.032g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1090"
},
{
"shop": "6",
"totalQuantity": "1",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1091"
}
]
}
]
},
{
"title": "Dolled Up! Diamond Bracelet",
"description": "Styled in a classic design, this bracelet with an array of dazzling diamonds around the pink stone is the perfect accessory to doll up for any party!",
"masterOrnamentType": "Bracelet",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Party",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Hand",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TBR100BF02",
"productSizes": [
{
"product": "",
"length": "18",
"width": "",
"mrp": "31700",
"makingCharges": "2350",
"rent": "6499",
"sizeUom": "cm",
"netWeight": "3.032g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "2",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1092"
},
{
"shop": "6",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1093"
}
]
}
]
},
{
"title": "Sunshine on Wings Diamond Bracelet",
"description": "Catch the glorious sunshine on the wings of this charming butterfly, in this gorgeous diamond-studded bracelet!",
"masterOrnamentType": "Bracelet",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Casual",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Hand",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TBR100CF03",
"productSizes": [
{
"product": "",
"length": "",
"width": "18",
"mrp": "51950",
"makingCharges": "4000",
"rent": "10999",
"sizeUom": "cm",
"netWeight": "4.730g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1094"
}
]
}
]
},
{
"title": "Hypnotic Yellow Gold Floral Chain Bracelet",
"description": "This unique 22 Karat yellow gold bracelet features a chain of 3 charms of 3 concentric circles each with a matte, 4-petaled flower at the center",
"masterOrnamentType": "Bracelet",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Engagement",
"masterColors": "Yellow",
"masterKarat": "22 Karat",
"masterBodyPart": "Hand",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TBR100DF04",
"productSizes": [
{
"product": "",
"length": "18",
"width": "",
"mrp": "21150",
"makingCharges": "1600",
"rent": "4299",
"sizeUom": "cm",
"netWeight": "2.822g",
"productSizeShops": [
{
"shop": "6",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1095"
}
]
}
]
},
{
"title": "Elegant Gold Chain",
"description": "Elegant 22 Karat Gold Chain",
"masterOrnamentType": "Chain",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Casual",
"masterColors": "Yellow",
"masterKarat": "22 Karat",
"masterBodyPart": "Neck",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 6,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "KCH1C01102",
"productSizes": [
{
"product": "",
"length": "43.18",
"width": "",
"mrp": "37150",
"makingCharges": "2850",
"rent": "7499",
"sizeUom": "cm",
"netWeight": "5.590g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1096"
}
]
},
{
"product": "",
"length": "48.26",
"width": "",
"mrp": "39225",
"makingCharges": "2950",
"rent": "7999",
"sizeUom": "cm",
"netWeight": "5.622g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1097"
}
]
},
{
"product": "",
"length": "50.83",
"width": "",
"mrp": "37150",
"makingCharges": "2950",
"rent": "7999",
"sizeUom": "cm",
"netWeight": "5.839g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1098"
}
]
},
{
"product": "",
"length": "55.88",
"width": "",
"mrp": "40925",
"makingCharges": "3050",
"rent": "8199",
"sizeUom": "cm",
"netWeight": "5.95g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1099"
}
]
}
]
},
{
"title": "Alluring Beaded Gold Chain",
"description": "Add a timeless allure to your work wear with this beads pattern chain crafted in 18 karat yellow gold",
"masterOrnamentType": "Chain",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Corporate Event",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Neck",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TCH100CH01",
"productSizes": [
{
"product": "",
"length": "45.72",
"width": "",
"mrp": "28750",
"makingCharges": "2150",
"rent": "5999",
"sizeUom": "cm",
"netWeight": "4.717g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1100"
},
{
"shop": "6",
"totalQuantity": "6",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1101"
}
]
}
]
},
{
"title": "Majestic Gold Chain",
"description": "Royal Kamal Chain set in 22 Karat Yellow Gold",
"masterOrnamentType": "Chain",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Casual",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Neck",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 6,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "KCH1C01103",
"productSizes": [
{
"product": "",
"length": "60.96",
"width": "",
"mrp": "86305",
"makingCharges": "6500",
"rent": "17999",
"sizeUom": "cm",
"netWeight": "12.754g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1102"
}
]
}
]
},
{
"title": "Traditional Opulent Gold Nath",
"description": "Complete your bridal look with the grace and elegance of this opulent nathini crafted in 22 Karat Yellow Gold.",
"masterOrnamentType": "Nosepin",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Bridal",
"masterColors": "Yellow",
"masterKarat": "22 Karat",
"masterBodyPart": "Nose",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TNP01P1128",
"productSizes": [
{
"product": "",
"length": "10",
"width": "",
"mrp": "122605",
"makingCharges": "9150",
"rent": "24999",
"sizeUom": "mm",
"netWeight": "15.390g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "3",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1103"
},
{
"shop": "6",
"totalQuantity": "4",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1104"
}
]
}
]
},
{
"title": "Stunning Bright Gold and Diamond Nose Pin",
"description": "Add glam to your daily ensembles with this bright diamond nose pin crafted in 18 Karat Yellow Gold. Stone Clarity SI2",
"masterOrnamentType": "Nosepin",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Engagement",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Nose",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 6,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "KKP010034P",
"productSizes": [
{
"product": "",
"length": "10",
"width": "",
"mrp": "25950",
"makingCharges": "2000",
"rent": "5199",
"sizeUom": "mm",
"netWeight": "0.591g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1104"
}
]
},
{
"product": "",
"length": "10",
"width": "",
"mrp": "26950",
"makingCharges": "2025",
"rent": "5499",
"sizeUom": "mm",
"netWeight": "0.622g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1105"
}
]
},
{
"product": "",
"length": "10",
"width": "",
"mrp": "27950",
"makingCharges": "2100",
"rent": "5999",
"sizeUom": "mm",
"netWeight": "0.638g",
"productSizeShops": [
{
"shop": "5",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1106"
}
]
}
]
},
{
"title": "Opulent Gold and Diamond Nose Pin",
"description": "This sleek and contemporary nose pin crafted in 18 Karat Yellow Gold will amplify your daily ensembles. Stone Clarity SI2",
"masterOrnamentType": "Nosepin",
"masterTypeOfMetal": "Gold",
"masterOccassions": "Corporate Event",
"masterColors": "Yellow",
"masterKarat": "18 Karat",
"masterBodyPart": "Nose",
"gstIncluded": "true",
"isFeatured": "true",
"status": "available",
"jeweler": 7,
"expertNotes": "Get on live video call with our design experts, or try on feature to get an closer look and know more about the product.",
"offerText": "",
"offerType": "",
"offerValue": "",
"newArrival": "true",
"setProducts": "",
"mirrarSKU": "TNP01P1129",
"productSizes": [
{
"product": "",
"length": "10",
"width": "",
"mrp": "45925",
"makingCharges": "3450",
"rent": "9199",
"sizeUom": "mm",
"netWeight": "0.273g",
"productSizeShops": [
{
"shop": "4",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1107"
}
]
},
{
"product": "",
"length": "10",
"width": "",
"mrp": "48625",
"makingCharges": "3750",
"rent": "9999",
"sizeUom": "mm",
"netWeight": "0.278g",
"productSizeShops": [
{
"shop": "6",
"totalQuantity": "5",
"currentlyOnRentQuantity": "",
"currentlyAvailableQuantity": "",
"productSize": "",
"sku": "JWC0123R1108"
}
]
}
]
}
]
[
{
"shop": "",
"totalQuantity": "Jamshedji Tata",
"currentlyOnRentQuantity": "8977654789",
"currentlyAvailableQuantity": "Tanishq",
"productSize": "Linking Rd, Santacruz West"
}
]
[
{
"product": "Diamond Cluster Ring",
"length": "16",
"width": "22",
"mrp": "100000",
"makingCharges": "10000",
"rent": "10000",
"sizeUom": "mm",
"netWeight": "4.394",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "3",
"currentlyOnRentQuantity": "3",
"currentlyAvailableQuantity": "0",
"sku": "SKU169"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "3",
"sku": "SKU170"
}
]
},
{
"product": "Diamond Cluster Ring",
"length": "18",
"width": "24",
"mrp": "110000",
"makingCharges": "14500",
"rent": "17000",
"sizeUom": "mm",
"netWeight": "6.394",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "1",
"sku": "SKU171"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "4",
"sku": "SKU172"
}
]
},
{
"product": "Diamond Cluster Ring",
"length": "20",
"width": "26",
"mrp": "120000",
"makingCharges": "19000",
"rent": "24000",
"sizeUom": "mm",
"netWeight": "8.394",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "3",
"sku": "SKU173"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "2",
"sku": "SKU174"
}
]
},
{
"product": "Diamond Cluster Ring",
"length": "22",
"width": "28",
"mrp": "130000",
"makingCharges": "23500",
"rent": "31000",
"sizeUom": "mm",
"netWeight": "10.394",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "2",
"currentlyAvailableQuantity": "0",
"sku": "SKU173"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "2",
"currentlyAvailableQuantity": "2",
"sku": "SKU174"
}
]
},
{
"product": "Love Story Gold Pendant",
"length": "14",
"width": "40",
"mrp": "200000",
"makingCharges": "20000",
"rent": "11000",
"sizeUom": "mm",
"netWeight": "3.55",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "8",
"currentlyOnRentQuantity": "3",
"currentlyAvailableQuantity": "5",
"sku": "SKU1987"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "3",
"sku": "SKU1988"
}
]
},
{
"product": "Love Story Gold Pendant",
"length": "16",
"width": "44",
"mrp": "215000",
"makingCharges": "25000",
"rent": "18000",
"sizeUom": "mm",
"netWeight": "5.55",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "5",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "4",
"sku": "SKU1989"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "2",
"sku": "SKU1990"
}
]
},
{
"product": "Love Story Gold Pendant",
"length": "18",
"width": "48",
"mrp": "230000",
"makingCharges": "30000",
"rent": "25000",
"sizeUom": "mm",
"netWeight": "7.55",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "6",
"currentlyOnRentQuantity": "5",
"currentlyAvailableQuantity": "1",
"sku": "SKU1991"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU1992"
}
]
},
{
"product": "Love Story Gold Pendant",
"length": "20",
"width": "52",
"mrp": "245000",
"makingCharges": "35000",
"rent": "32000",
"sizeUom": "mm",
"netWeight": "9.55",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "2",
"currentlyAvailableQuantity": "0",
"sku": "SKU1993"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "2",
"currentlyAvailableQuantity": "2",
"sku": "SKU1994"
}
]
},
{
"product": "Petite Glam Anklet",
"length": "20",
"width": "2",
"mrp": "10000",
"makingCharges": "2000",
"rent": "1250",
"sizeUom": "cm",
"netWeight": "15.348",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "5",
"currentlyOnRentQuantity": "3",
"currentlyAvailableQuantity": "2",
"sku": "SKU765"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "1",
"sku": "SKU766"
}
]
},
{
"product": "Petite Glam Anklet",
"length": "24",
"width": "3",
"mrp": "13500",
"makingCharges": "2750",
"rent": "2500",
"sizeUom": "cm",
"netWeight": "18.348",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "3",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "3",
"sku": "SKU767"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "2",
"sku": "SKU768"
}
]
},
{
"product": "Petite Glam Anklet",
"length": "28",
"width": "4",
"mrp": "10001",
"makingCharges": "3500",
"rent": "3750",
"sizeUom": "cm",
"netWeight": "21.348",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU769"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU770"
}
]
},
{
"product": "Petite Glam Anklet",
"length": "32",
"width": "5",
"mrp": "13501",
"makingCharges": "4250",
"rent": "5000",
"sizeUom": "cm",
"netWeight": "24.348",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU771"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU772"
}
]
},
{
"product": "Gold Earrings",
"length": "18",
"width": "12",
"mrp": "100000",
"makingCharges": "10000",
"rent": "10000",
"sizeUom": "mm",
"netWeight": "20",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "2",
"sku": "SKU542"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU543"
}
]
},
{
"product": "Gold Earrings",
"length": "20",
"width": "14",
"mrp": "111000",
"makingCharges": "11500",
"rent": "11500",
"sizeUom": "mm",
"netWeight": "25",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "1",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "0",
"sku": "SKU544"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "2",
"currentlyAvailableQuantity": "0",
"sku": "SKU545"
}
]
},
{
"product": "Gold Earrings",
"length": "22",
"width": "16",
"mrp": "122000",
"makingCharges": "13000",
"rent": "13000",
"sizeUom": "mm",
"netWeight": "29",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU546"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "0",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "0",
"sku": "SKU547"
}
]
},
{
"product": "Gold Earrings",
"length": "24",
"width": "18",
"mrp": "133000",
"makingCharges": "14500",
"rent": "14500",
"sizeUom": "mm",
"netWeight": "35",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "5",
"currentlyOnRentQuantity": "3",
"currentlyAvailableQuantity": "2",
"sku": "SKU548"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "3",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "3",
"sku": "SKU549"
}
]
},
{
"product": "Charming Diamond Nose Pin",
"length": "10",
"width": "22",
"mrp": "150000",
"makingCharges": "11000",
"rent": "15000",
"sizeUom": "mm",
"netWeight": "0.562",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "3",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "2",
"sku": "SKU1236"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "3",
"sku": "SKU1244"
}
]
},
{
"product": "Charming Diamond Nose Pin",
"length": "12",
"width": "24",
"mrp": "159000",
"makingCharges": "13500",
"rent": "20000",
"sizeUom": "mm",
"netWeight": "0.862",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "1",
"sku": "SKU1245"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "4",
"sku": "SKU1246"
}
]
},
{
"product": "Charming Diamond Nose Pin",
"length": "14",
"width": "26",
"mrp": "168000",
"makingCharges": "16000",
"rent": "25000",
"sizeUom": "mm",
"netWeight": "1.062",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "3",
"sku": "SKU1247"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "0",
"currentlyAvailableQuantity": "2",
"sku": "SKU1248"
}
]
},
{
"product": "Charming Diamond Nose Pin",
"length": "16",
"width": "28",
"mrp": "177000",
"makingCharges": "18500",
"rent": "30000",
"sizeUom": "mm",
"netWeight": "1.362",
"productSizeShops": [
{
"shop": "Jamshedji Tata (Scruz West)",
"totalQuantity": "2",
"currentlyOnRentQuantity": "1",
"currentlyAvailableQuantity": "1",
"sku": "SKU1249"
},
{
"shop": "Jamshedji Tata (Bandra West)",
"totalQuantity": "4",
"currentlyOnRentQuantity": "2",
"currentlyAvailableQuantity": "2",
"sku": "SKU1250"
}
]
}
]
[
{
"name": "Jamshedji Tata",
"jeweler": "8977654789",
"brandName": "Tanishq",
"address1": "Linking Rd, Santacruz West",
"address2": "Near Benetton",
"masterPincode": "400005",
"masterCity": "Mumbai",
"masterState": "Maharashtra",
"masterCountry": "India",
"shopEmail": "sales@tanishq.com",
"pocFirstName": "Om",
"pocLastName": "Prakash",
"pocPhoneNumber": "9868933584",
"pocEmail": "omprakash@gmail.com",
"geographicalAreaServed": "Area 1",
"workingHoursFrom": "9",
"workingHoursTo": "10",
"termsAndConditions": "Terms of service are the legal agreements between a service provider and a person who wants to use that service. The person must agree to abide by the terms of service in order to use the offered service. Terms of service can also be merely a disclaimer, especially regarding the use of websites",
"shopPhoneNumber": "9863359584",
"bankAccountHolderName": "Om Prakash",
"bankAccountType": "current",
"bankAccountNumber": "858587474859669",
"bankIfscCode": "HDFC0000128"
},
{
"name": "T.S. Kalyanaraman",
"jeweler": "9892997823",
"brandName": "Kalyan Jewellers",
"address1": "Lokmanya Tilak Rd, Boriwali West",
"address2": "Mini Zaveri Bazaar",
"masterPincode": "400006",
"masterCity": "Mumbai",
"masterState": "Maharashtra",
"masterCountry": "India",
"shopEmail": "enquiry@kalyanjewellers.com",
"pocFirstName": "Hardik",
"pocLastName": "Zaveri",
"pocPhoneNumber": "7788956546",
"pocEmail": "hzaveri@gmail.com",
"geographicalAreaServed": "Area 2",
"workingHoursFrom": "7",
"workingHoursTo": "8",
"termsAndConditions": "Please read these Terms of Use carefully before using the Platform. By using the Platform, you signify your assent and agreement to these Terms of Use. If you do not agree to these Terms of Use, then you are not authorised to continue use of the Platform.",
"shopPhoneNumber": "8877995467",
"bankAccountHolderName": "Hardik Zaveri",
"bankAccountType": "current",
"bankAccountNumber": "454537868709898",
"bankIfscCode": "UTIB0000400"
},
{
"name": "Jamshedji Tata",
"jeweler": "8977654789",
"brandName": "Tanishq",
"address1": "Turner Rd, Bandra West",
"address2": "Near Tavaa Restaurant",
"masterPincode": "400007",
"masterCity": "Mumbai",
"masterState": "Maharashtra",
"masterCountry": "India",
"shopEmail": "sales@tanishq.com",
"pocFirstName": "Rajesh ",
"pocLastName": "Patel",
"pocPhoneNumber": "9870098700",
"pocEmail": "rajesh.patel@gmail.com",
"geographicalAreaServed": "Area 1",
"workingHoursFrom": "8",
"workingHoursTo": "9",
"termsAndConditions": "The term Tanishq was coined by Mr. Xerxes Desai by marrying the words ‘Tan’ meaning body and ‘Nishk’ meaning a gold ornament and Tanishq’s very first state-of-art jewellery factory with a proper karigaar park was set up in Hosur in Tamil Nadu. ",
"shopPhoneNumber": "9823456789",
"bankAccountHolderName": "Rajesh Patel",
"bankAccountType": "current",
"bankAccountNumber": "5445567557880909",
"bankIfscCode": "SBIN0005943"
}
]
[{
"name": "Andaman and Nicobar Islands",
"country": "India"
},
{
"name": "Andhra Pradesh",
"country": "India"
},
{
"name": "Arunachal Pradesh",
"country": "India"
},
{
"name": "Assam",
"country": "India"
},
{
"name": "Bihar",
"country": "India"
},
{
"name": "Chandigarh",
"country": "India"
},
{
"name": "Chhattisgarh",
"country": "India"
},
{
"name": "Dadra and Nagar Haveli",
"country": "India"
},
{
"name": "Daman and Diu",
"country": "India"
},
{
"name": "Delhi",
"country": "India"
},
{
"name": "Goa",
"country": "India"
},
{
"name": "Gujarat",
"country": "India"
},
{
"name": "Haryana",
"country": "India"
},
{
"name": "Himachal Pradesh",
"country": "India"
},
{
"name": "Jammu and Kashmir",
"country": "India"
},
{
"name": "Jharkhand",
"country": "India"
},
{
"name": "Karnataka",
"country": "India"
},
{
"name": "Kerala",
"country": "India"
},
{
"name": "Ladakh",
"country": "India"
},
{
"name": "Lakshadweep",
"country": "India"
},
{
"name": "Madhya Pradesh",
"country": "India"
},
{
"name": "Maharashtra",
"country": "India"
},
{
"name": "Manipur",
"country": "India"
},
{
"name": "Meghalaya",
"country": "India"
},
{
"name": "Mizoram",
"country": "India"
},
{
"name": "Nagaland",
"country": "India"
},
{
"name": "Odisha",
"country": "India"
},
{
"name": "Puducherry",
"country": "India"
},
{
"name": "Punjab",
"country": "India"
},
{
"name": "Rajasthan",
"country": "India"
},
{
"name": "Sikkim",
"country": "India"
},
{
"name": "Tamil Nadu",
"country": "India"
},
{
"name": "Telangana",
"country": "India"
},
{
"name": "Tripura",
"country": "India"
},
{
"name": "Uttar Pradesh",
"country": "India"
},
{
"name": "Uttarakhand",
"country": "India"
},
{
"name": "West Bengal",
"country": "India"
}
]
\ No newline at end of file \ No newline at end of file
[
{
"name": "Gold"
},
{
"name": "Silver"
},
{
"name": "Platinum"
}
]
\ No newline at end of file \ No newline at end of file
'use strict'; "use strict";
/** /**
* vendor service * vendor service
*/ */
const { createCoreService } = require('@strapi/strapi').factories; const { createCoreService } = require("@strapi/strapi").factories;
const { factories } = require("@strapi/strapi");
const fs = require("fs");
const { parse } = require("csv-parse");
module.exports = createCoreService('api::vendor.vendor'); module.exports = createCoreService(
"api::vendor.vendor",
({ strapi: Strapi }) => ({
async importCountrySeedData() {
const countryData = await fs.promises.readFile(
`${__dirname}/../seed-data/country.json`,
"utf8"
);
const countries = JSON.parse(countryData);
// console.log(countries);
// get rid of all existing countries.
const deletedCnt = await strapi.db
.query("api::master-country.master-country")
.deleteMany({ where: {} });
// console.log(`Bulk deleted existing countries, got rid of: ${deletedCnt.count} country records.`);
// re-create them again.
for (let i = 0; i < countries.length; i++) {
const country = countries[i];
// console.log(`Attempting to create country: `, country);
await strapi.entityService.create(
"api::master-country.master-country",
{
data: {
name: country.name,
},
}
);
}
},
async importStateSeedData() {
const stateData = await fs.promises.readFile(
`${__dirname}/../seed-data/state.json`,
"utf8"
);
const states = JSON.parse(stateData);
// console.log(states);
// get rid of all existing states.
const deletedCnt = await strapi.db
.query("api::master-state.master-state")
.deleteMany({ where: {} });
// console.log(`Bulk deleted existing states, got rid of: ${deletedCnt.count} state records.`);
// re-create them again.
for (let i = 0; i < states.length; i++) {
const state = states[i];
const matchingCountries = await strapi.entityService.findMany(
"api::master-country.master-country",
{
fields: ["id"],
filters: { name: state.country },
}
);
let statefinal;
if (!matchingCountries || matchingCountries.length === 0) {
console.log(
`Unable to resolve a country with name ${
state.country
}, skipping creation of state ${JSON.stringify(state)}`
);
} else {
// console.log(`Attempting to create state: `, state);
statefinal = await strapi.entityService.create(
"api::master-state.master-state",
{
data: {
name: state.name,
masterCountry: matchingCountries[0].id,
},
}
);
// console.log("state", statefinal);
}
}
},
async importCitySeedData() {
const cityData = await fs.promises.readFile(
`${__dirname}/../seed-data/city.json`,
"utf8"
);
const cities = JSON.parse(cityData);
// console.log(citys);
// get rid of all existing citys.
const deletedCnt = await strapi.db
.query("api::master-city.master-city")
.deleteMany({ where: {} });
// console.log(`Bulk deleted existing citys, got rid of: ${deletedCnt.count} city records.`);
// re-create them again.
for (let i = 0; i < cities.length; i++) {
const city = cities[i];
const matchingStates = await strapi.entityService.findMany(
"api::master-state.master-state",
{
fields: ["id"],
filters: { name: city.state },
}
);
if (!matchingStates || matchingStates.length === 0) {
console.log(
`Unable to resolve a state with name ${
city.state
}, skipping creation of city ${JSON.stringify(city)}`
);
} else {
// console.log(`Attempting to create city: `, city);
await strapi.entityService.create("api::master-city.master-city", {
data: {
name: city.name,
masterState: matchingStates[0].id,
},
});
}
}
},
async importPincodeSeedData() {
// const pincodeData = await fs.readFile(`${__dirname}/../seed-data/StateCityPinMasterSeeder.csv`);
// const records = parse(fileContent, );
// const pincodes = parse(pincodeData,{columns: true});
// console.log(citys);
let pincodeData = [];
const deletedCnt = await strapi.db
.query("api::master-pincode.master-pincode")
.deleteMany({ where: {} });
const deletedStateCnt = await strapi.db
.query("api::master-state.master-state")
.deleteMany({ where: {} });
const deletedCityCnt = await strapi.db
.query("api::master-city.master-city")
.deleteMany({ where: {} });
// const pincodeData = fs.createReadStream(`${__dirname}/../seed-data/StateCityPinMasterSeeder.csv`).pipe(parse({ delimiter: ",", from_line: 1 }));
fs.createReadStream(
`${__dirname}/../seed-data/StateCityPinMasterSeeder.csv`
)
.pipe(parse({}))
.on("data", (data) => {
// console.log("data", data);
pincodeData.push(data);
})
.on("end", () => {
resolveSeedData(pincodeData);
});
const resolveSeedData = async (seedData) => {
console.log("pincode data", seedData);
for (let i = 0; i < seedData.length; i++) {
const singleData = seedData[i];
const pincode = singleData[0];
const city = singleData[1];
const state = singleData[2];
let stateId;
let cityId;
console.log("pincode", pincode);
console.log("city", city);
console.log("state", state);
const resolveCountry = await strapi
.query("api::master-country.master-country")
.findOne({
where: {
$and: [{ name: "India" }],
},
});
console.log("resolveCountry", resolveCountry);
let resolveState = await strapi
.query("api::master-state.master-state")
.findOne({
where: {
$and: [{ name: state }],
},
});
console.log("resolveState", resolveState);
if (resolveState == null) {
resolveState = await strapi.entityService.create(
"api::master-state.master-state",
{
data: {
name: state,
masterCountry: resolveCountry.id,
},
}
);
console.log("resolveState", resolveState);
stateId = resolveState.id;
} else {
stateId = resolveState.id;
}
let resolveCity = await strapi
.query("api::master-city.master-city")
.findOne({
where: {
$and: [{ name: city, masterState: stateId }],
},
});
console.log("resolveCity", resolveCity);
if (resolveCity == null) {
resolveCity = await strapi.entityService.create(
"api::master-city.master-city",
{
data: {
name: city,
masterState: stateId,
},
}
);
console.log("resolveCity", resolveCity);
cityId = resolveCity.id;
} else {
cityId = resolveCity.id;
}
let resolvePincode = await strapi
.query("api::master-pincode.master-pincode")
.findOne({
where: {
$and: [{ name: state }],
},
});
let currentCity = await strapi
.query("api::master-city.master-city")
.findOne({
where: {
$and: [{ name: city }],
},
});
if (resolvePincode == null) {
resolvePincode = await strapi.entityService.create(
"api::master-pincode.master-pincode",
{
data: {
name: pincode,
masterCity: currentCity.id,
},
}
);
}
}
};
},
})
);
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"type": "string", "type": "string",
"private": true "private": true
}, },
"dialCode": { "phone": {
"type": "string" "type": "string"
} }
} }
......
...@@ -59,13 +59,14 @@ const userPermissionExtension = (plugin) => { ...@@ -59,13 +59,14 @@ const userPermissionExtension = (plugin) => {
throw new ApplicationError("Please find a valid user role."); throw new ApplicationError("Please find a valid user role.");
} }
const { email, username, provider } = params; const { email, username, provider, phone } = params;
const identifierFilter = { const identifierFilter = {
$or: [ $or: [
{ email: email }, { email: email },
{ username: email }, { username: email },
{ username }, { username },
{ email: username }, { email: username },
{phone: phone}
], ],
}; };
const conflictingUserCount = await strapi const conflictingUserCount = await strapi
...@@ -102,6 +103,7 @@ const userPermissionExtension = (plugin) => { ...@@ -102,6 +103,7 @@ const userPermissionExtension = (plugin) => {
email: email, email: email,
username, username,
confirmed: false, confirmed: false,
phone: phone
}; };
const user = await strapi const user = await strapi
......
...@@ -3877,6 +3877,11 @@ ...@@ -3877,6 +3877,11 @@
"resolved" "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz" "resolved" "https://registry.npmjs.org/csstype/-/csstype-3.1.0.tgz"
"version" "3.1.0" "version" "3.1.0"
"csv-parse@^5.5.5":
"integrity" "sha512-erCk7tyU3yLWAhk6wvKxnyPtftuy/6Ak622gOO7BCJ05+TYffnPCJF905wmOQm+BpkX54OdAl8pveJwUdpnCXQ=="
"resolved" "https://registry.npmjs.org/csv-parse/-/csv-parse-5.5.5.tgz"
"version" "5.5.5"
"dashdash@^1.12.0": "dashdash@^1.12.0":
"integrity" "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==" "integrity" "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g=="
"resolved" "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz" "resolved" "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!