Commit 5a81b9d5 by jay

.

1 parent f300bfa0
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// const { default: axios } = require("axios"); // const { default: axios } = require("axios");
const axios = require("axios"); const axios = require("axios");
/** /**
* channel-partner service * channel-partner service
*/ */
...@@ -20,7 +19,7 @@ module.exports = createCoreService( ...@@ -20,7 +19,7 @@ module.exports = createCoreService(
api_key: process.env.SPERTO_API_KEY, api_key: process.env.SPERTO_API_KEY,
name: data.contactPersonName, name: data.contactPersonName,
firm_type: data.firm_type, // -- firm_type: data.firm_type, // --
address: null, address: data.communicationAddress,
mobile_number: data.mobileNo, mobile_number: data.mobileNo,
email: data.email, email: data.email,
city: data.city, city: data.city,
...@@ -33,7 +32,7 @@ module.exports = createCoreService( ...@@ -33,7 +32,7 @@ module.exports = createCoreService(
// scanned_pan_url: data.panFile, // scanned_pan_url: data.panFile,
// rera_certificate_url: // rera_certificate_url:
firm_name: data.companyName, firm_name: data.companyName,
sourcing_manager_id: 85 sourcing_manager_id: Number(data.sourcingManager),
// gst_certificate_path: data. // gst_certificate_path: data.
}; };
const spertoResponse = await axios.post( const spertoResponse = await axios.post(
...@@ -41,7 +40,7 @@ module.exports = createCoreService( ...@@ -41,7 +40,7 @@ module.exports = createCoreService(
cpData, cpData,
{ headers: headers } { headers: headers }
); );
console.log("cp response", spertoResponse); // console.log("cp response", spertoResponse);
return spertoResponse; return spertoResponse;
}, },
async getCPDataFromSperto(data) { async getCPDataFromSperto(data) {
...@@ -51,7 +50,7 @@ module.exports = createCoreService( ...@@ -51,7 +50,7 @@ module.exports = createCoreService(
api_key: process.env.SPERTO_API_KEY, api_key: process.env.SPERTO_API_KEY,
// cp_rera_no: "RE12389222" // cp_rera_no: "RE12389222"
cp_rera_no: data.mahareraNumber cp_rera_no: data.mahareraNumber,
// sourcing_manager_id // sourcing_manager_id
// gst_certificate_path: data. // gst_certificate_path: data.
}; };
...@@ -60,7 +59,7 @@ module.exports = createCoreService( ...@@ -60,7 +59,7 @@ module.exports = createCoreService(
cpData, cpData,
{ headers: headers } { headers: headers }
); );
console.log("cp response",spertoCPOTPResponse); // console.log("cp response", spertoCPOTPResponse);
return spertoCPOTPResponse; return spertoCPOTPResponse;
}, },
}) })
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"info": { "info": {
"singularName": "cp-connect-page", "singularName": "cp-connect-page",
"pluralName": "cp-connect-pages", "pluralName": "cp-connect-pages",
"displayName": "Cp Connect Page" "displayName": "Cp Connect Page",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
...@@ -12,12 +13,12 @@ ...@@ -12,12 +13,12 @@
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
"banner": { "banner": {
"allowedTypes": [
"images"
],
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"required": true "required": true,
"allowedTypes": [
"images"
]
}, },
"content": { "content": {
"type": "richtext", "type": "richtext",
...@@ -26,6 +27,16 @@ ...@@ -26,6 +27,16 @@
"disclaimer": { "disclaimer": {
"type": "richtext", "type": "richtext",
"required": true "required": true
},
"cpGuidelines": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
} }
} }
} }
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!