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 @@
// const { default: axios } = require("axios");
const
axios
=
require
(
"axios"
);
/**
* channel-partner service
*/
...
...
@@ -20,7 +19,7 @@ module.exports = createCoreService(
api_key
:
process
.
env
.
SPERTO_API_KEY
,
name
:
data
.
contactPersonName
,
firm_type
:
data
.
firm_type
,
// --
address
:
null
,
address
:
data
.
communicationAddress
,
mobile_number
:
data
.
mobileNo
,
email
:
data
.
email
,
city
:
data
.
city
,
...
...
@@ -33,7 +32,7 @@ module.exports = createCoreService(
// scanned_pan_url: data.panFile,
// rera_certificate_url:
firm_name
:
data
.
companyName
,
sourcing_manager_id
:
85
sourcing_manager_id
:
Number
(
data
.
sourcingManager
),
// gst_certificate_path: data.
};
const
spertoResponse
=
await
axios
.
post
(
...
...
@@ -41,7 +40,7 @@ module.exports = createCoreService(
cpData
,
{
headers
:
headers
}
);
console
.
log
(
"cp response"
,
spertoResponse
);
//
console.log("cp response", spertoResponse);
return
spertoResponse
;
},
async
getCPDataFromSperto
(
data
)
{
...
...
@@ -51,7 +50,7 @@ module.exports = createCoreService(
api_key
:
process
.
env
.
SPERTO_API_KEY
,
// cp_rera_no: "RE12389222"
cp_rera_no
:
data
.
mahareraNumber
cp_rera_no
:
data
.
mahareraNumber
,
// sourcing_manager_id
// gst_certificate_path: data.
};
...
...
@@ -60,7 +59,7 @@ module.exports = createCoreService(
cpData
,
{
headers
:
headers
}
);
console
.
log
(
"cp response"
,
spertoCPOTPResponse
);
// console.log("cp response",
spertoCPOTPResponse);
return
spertoCPOTPResponse
;
},
})
...
...
src/api/cp-connect-page/content-types/cp-connect-page/schema.json
View file @
5a81b9d
...
...
@@ -4,7 +4,8 @@
"info"
:
{
"singularName"
:
"cp-connect-page"
,
"pluralName"
:
"cp-connect-pages"
,
"displayName"
:
"Cp Connect Page"
"displayName"
:
"Cp Connect Page"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
true
...
...
@@ -12,12 +13,12 @@
"pluginOptions"
:
{},
"attributes"
:
{
"banner"
:
{
"allowedTypes"
:
[
"images"
],
"type"
:
"media"
,
"multiple"
:
false
,
"required"
:
true
"required"
:
true
,
"allowedTypes"
:
[
"images"
]
},
"content"
:
{
"type"
:
"richtext"
,
...
...
@@ -26,6 +27,16 @@
"disclaimer"
:
{
"type"
:
"richtext"
,
"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