Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 5a81b9d5
authored
2023-02-20 20:26:50 +0530
by
jay
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
f300bfa0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
src/api/channel-partner/services/channel-partner.js
src/api/cp-connect-page/content-types/cp-connect-page/schema.json
src/api/channel-partner/services/channel-partner.js
View file @
5a81b9d
...
@@ -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
;
},
},
})
})
...
...
src/api/cp-connect-page/content-types/cp-connect-page/schema.json
View file @
5a81b9d
...
@@ -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
}
}
}
}
}
}
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment