@axelor/aos-mobile-crm 8.2.9 → 8.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/client-api.js +22 -39
- package/lib/api/client-api.js.map +1 -1
- package/lib/api/contact-api.js +25 -46
- package/lib/api/contact-api.js.map +1 -1
- package/lib/api/contact-info-api.d.ts +56 -0
- package/lib/api/contact-info-api.js +223 -0
- package/lib/api/contact-info-api.js.map +1 -0
- package/lib/api/index.d.ts +2 -1
- package/lib/api/index.js +2 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/leads-api.js +15 -31
- package/lib/api/leads-api.js.map +1 -1
- package/lib/api/partner-api.d.ts +3 -0
- package/lib/api/partner-api.js +19 -0
- package/lib/api/partner-api.js.map +1 -1
- package/lib/api/prospect-api.js +22 -40
- package/lib/api/prospect-api.js.map +1 -1
- package/lib/components/molecules/AddressListCard/AddressListCard.d.ts +19 -0
- package/lib/components/molecules/AddressListCard/AddressListCard.js +113 -0
- package/lib/components/molecules/AddressListCard/AddressListCard.js.map +1 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoAlert.d.ts +21 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoAlert.js +189 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoAlert.js.map +1 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +17 -4
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.js +41 -37
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.js.map +1 -1
- package/lib/components/molecules/ContactInfoCard/ContactInfoFormButtons.d.ts +12 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoFormButtons.js +52 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoFormButtons.js.map +1 -0
- package/lib/components/molecules/ContactInfoCard/contactInfoHelper.d.ts +19 -0
- package/lib/components/molecules/ContactInfoCard/contactInfoHelper.js +68 -0
- package/lib/components/molecules/ContactInfoCard/contactInfoHelper.js.map +1 -0
- package/lib/components/molecules/ContactInfoCard/index.d.ts +3 -0
- package/lib/components/molecules/ContactInfoCard/index.js +21 -0
- package/lib/components/molecules/ContactInfoCard/index.js.map +1 -0
- package/lib/components/molecules/SocialNetworksInfoCard/SocialNetworksInfoCard.js +1 -1
- package/lib/components/molecules/SocialNetworksInfoCard/SocialNetworksInfoCard.js.map +1 -1
- package/lib/components/molecules/index.d.ts +2 -1
- package/lib/components/molecules/index.js +2 -1
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.js +34 -9
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.js.map +1 -1
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.js +4 -2
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.js.map +1 -1
- package/lib/components/organisms/DropdownAddressesView/DropdownAddressesView.d.ts +8 -0
- package/lib/components/organisms/DropdownAddressesView/DropdownAddressesView.js +83 -0
- package/lib/components/organisms/DropdownAddressesView/DropdownAddressesView.js.map +1 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.d.ts +14 -6
- package/lib/components/organisms/DropdownContactView/DropdownContactView.js +64 -31
- package/lib/components/organisms/DropdownContactView/DropdownContactView.js.map +1 -1
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.js +1 -1
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.js.map +1 -1
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.js +3 -1
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.js.map +1 -1
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.js +26 -12
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.js.map +1 -1
- package/lib/components/organisms/index.d.ts +1 -0
- package/lib/components/organisms/index.js +1 -0
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/features/asyncFunctions-index.d.ts +1 -1
- package/lib/features/asyncFunctions-index.js +1 -1
- package/lib/features/asyncFunctions-index.js.map +1 -1
- package/lib/features/eventSlice.js +3 -0
- package/lib/features/eventSlice.js.map +1 -1
- package/lib/features/partnerSlice.d.ts +11 -0
- package/lib/features/partnerSlice.js +14 -1
- package/lib/features/partnerSlice.js.map +1 -1
- package/lib/hooks/use-crm-header-actions.js +1 -7
- package/lib/hooks/use-crm-header-actions.js.map +1 -1
- package/lib/i18n/en.json +14 -1
- package/lib/i18n/fr.json +14 -1
- package/lib/models/forms.js +0 -5
- package/lib/models/forms.js.map +1 -1
- package/lib/models/objectFields.js +18 -23
- package/lib/models/objectFields.js.map +1 -1
- package/lib/models/searchFields.js +1 -1
- package/lib/models/searchFields.js.map +1 -1
- package/lib/screens/client/ClientDetailsScreen.js +1 -1
- package/lib/screens/client/ClientDetailsScreen.js.map +1 -1
- package/lib/screens/event/EventFormScreen.js +8 -2
- package/lib/screens/event/EventFormScreen.js.map +1 -1
- package/lib/screens/event/EventPlanningScreen.js +19 -1
- package/lib/screens/event/EventPlanningScreen.js.map +1 -1
- package/lib/screens/event/index.d.ts +3 -1
- package/lib/screens/event/index.js +1 -0
- package/lib/screens/event/index.js.map +1 -1
- package/lib/screens/lead/LeadListScreen.js +1 -1
- package/lib/screens/lead/LeadListScreen.js.map +1 -1
- package/package.json +3 -3
package/lib/api/client-api.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { createStandardFetch, createStandardSearch, getActionApi, getSearchCriterias,
|
|
18
|
+
import { createStandardFetch, createStandardSearch, formatRequestBody, getActionApi, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { updateEmail } from './contact-info-api';
|
|
19
20
|
const createClientCriteria = (searchValue, userId, assigned) => {
|
|
20
21
|
const criteria = [
|
|
21
22
|
{
|
|
@@ -65,52 +66,34 @@ export async function getClient({ clientId }) {
|
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
export async function updateClient({ id, version, name, fixedPhone, website, description, email, emailId, emailVersion, }) {
|
|
68
|
-
const
|
|
69
|
-
|
|
69
|
+
const body = {
|
|
70
|
+
id,
|
|
71
|
+
version,
|
|
72
|
+
name,
|
|
73
|
+
fixedPhone,
|
|
74
|
+
website,
|
|
75
|
+
description,
|
|
76
|
+
};
|
|
77
|
+
const { matchers } = formatRequestBody(body, 'data');
|
|
70
78
|
return getActionApi()
|
|
71
79
|
.send({
|
|
72
|
-
url: route,
|
|
73
|
-
method: 'post',
|
|
74
|
-
body: {
|
|
75
|
-
data: {
|
|
76
|
-
id: emailId,
|
|
77
|
-
version: emailVersion,
|
|
78
|
-
address: email,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
description: 'update client email',
|
|
82
|
-
matchers: {
|
|
83
|
-
modelName: modelName,
|
|
84
|
-
id: emailId,
|
|
85
|
-
fields: {
|
|
86
|
-
'data.address': 'address',
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
})
|
|
90
|
-
.then(() => getActionApi().send({
|
|
91
80
|
url: '/ws/rest/com.axelor.apps.base.db.Partner',
|
|
92
81
|
method: 'post',
|
|
93
82
|
body: {
|
|
94
|
-
data:
|
|
95
|
-
id,
|
|
96
|
-
version,
|
|
97
|
-
name,
|
|
98
|
-
fixedPhone,
|
|
99
|
-
website,
|
|
100
|
-
description,
|
|
101
|
-
},
|
|
83
|
+
data: body,
|
|
102
84
|
},
|
|
103
|
-
description: 'update
|
|
85
|
+
description: 'update client',
|
|
104
86
|
matchers: {
|
|
105
87
|
modelName: 'com.axelor.apps.base.db.Partner',
|
|
106
|
-
id
|
|
107
|
-
fields:
|
|
108
|
-
'data.name': 'name',
|
|
109
|
-
'data.fixedPhone': 'fixedPhone',
|
|
110
|
-
'data.webSite': 'webSite',
|
|
111
|
-
'data.description': 'description',
|
|
112
|
-
},
|
|
88
|
+
id,
|
|
89
|
+
fields: matchers,
|
|
113
90
|
},
|
|
114
|
-
})
|
|
91
|
+
})
|
|
92
|
+
.then(() => emailId &&
|
|
93
|
+
updateEmail({
|
|
94
|
+
id: emailId,
|
|
95
|
+
version: emailVersion,
|
|
96
|
+
email,
|
|
97
|
+
}));
|
|
115
98
|
}
|
|
116
99
|
//# sourceMappingURL=client-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-api.js","sourceRoot":"","sources":["../../src/api/client-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,
|
|
1
|
+
{"version":3,"file":"client-api.js","sourceRoot":"","sources":["../../src/api/client-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE/C,MAAM,oBAAoB,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;IAC7D,MAAM,QAAQ,GAAG;QACf;YACE,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE;gBACR;oBACE,SAAS,EAAE,WAAW;oBACtB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,KAAK;iBACb;gBACD;oBACE,SAAS,EAAE,YAAY;oBACvB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,IAAI;iBACZ;aACF;SACF;QACD,kBAAkB,CAAC,YAAY,EAAE,WAAW,CAAC;KAC9C,CAAC;IAEF,IAAI,MAAM,IAAI,IAAI,IAAI,QAAQ,EAAE;QAC9B,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,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CAAiC;YAC5C,EAAE;YACF,MAAM,EAAE,QAAQ;SACjB;KACF,CAAC;SACD,IAAI,CACH,GAAG,EAAE,CACH,OAAO;QACP,WAAW,CAAC;YACV,EAAE,EAAE,OAAO;YACX,OAAO,EAAE,YAAY;YACrB,KAAK;SACN,CAAC,CACL,CAAC;AACN,CAAC"}
|
package/lib/api/contact-api.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { createStandardFetch, createStandardSearch, getActionApi, getSearchCriterias,
|
|
18
|
+
import { createStandardFetch, createStandardSearch, formatRequestBody, getActionApi, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { updateEmail } from './contact-info-api';
|
|
19
20
|
const createContactCriteria = (searchValue, userId, assigned, mainPartnerId) => {
|
|
20
21
|
const criteria = [
|
|
21
22
|
{
|
|
@@ -98,60 +99,38 @@ export async function getContact({ contactId }) {
|
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
101
|
export async function updateContact({ id, version, titleSelect, firstName, name, fixedPhone, mobilePhone, webSite, description, mainPartner, email, emailId, emailVersion, }) {
|
|
101
|
-
const
|
|
102
|
-
|
|
102
|
+
const body = {
|
|
103
|
+
id,
|
|
104
|
+
version,
|
|
105
|
+
titleSelect,
|
|
106
|
+
firstName,
|
|
107
|
+
name,
|
|
108
|
+
fixedPhone,
|
|
109
|
+
mobilePhone,
|
|
110
|
+
webSite,
|
|
111
|
+
description,
|
|
112
|
+
mainPartner,
|
|
113
|
+
};
|
|
114
|
+
const { matchers } = formatRequestBody(body, 'data');
|
|
103
115
|
return getActionApi()
|
|
104
116
|
.send({
|
|
105
|
-
url: route,
|
|
106
|
-
method: 'post',
|
|
107
|
-
body: {
|
|
108
|
-
data: {
|
|
109
|
-
id: emailId,
|
|
110
|
-
version: emailVersion,
|
|
111
|
-
address: email,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
description: 'update contact email',
|
|
115
|
-
matchers: {
|
|
116
|
-
modelName: modelName,
|
|
117
|
-
id: emailId,
|
|
118
|
-
fields: {
|
|
119
|
-
'data.address': 'address',
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
})
|
|
123
|
-
.then(() => getActionApi().send({
|
|
124
117
|
url: '/ws/rest/com.axelor.apps.base.db.Partner',
|
|
125
118
|
method: 'post',
|
|
126
119
|
body: {
|
|
127
|
-
data:
|
|
128
|
-
id,
|
|
129
|
-
version,
|
|
130
|
-
titleSelect,
|
|
131
|
-
firstName,
|
|
132
|
-
name,
|
|
133
|
-
fixedPhone,
|
|
134
|
-
mobilePhone,
|
|
135
|
-
webSite,
|
|
136
|
-
description,
|
|
137
|
-
mainPartner,
|
|
138
|
-
},
|
|
120
|
+
data: body,
|
|
139
121
|
},
|
|
140
122
|
description: 'update contact',
|
|
141
123
|
matchers: {
|
|
142
124
|
modelName: 'com.axelor.apps.base.db.Partner',
|
|
143
|
-
id
|
|
144
|
-
fields:
|
|
145
|
-
'data.titleSelect': 'titleSelect',
|
|
146
|
-
'data.firstName': 'firstName',
|
|
147
|
-
'data.name': 'name',
|
|
148
|
-
'data.fixedPhone': 'fixedPhone',
|
|
149
|
-
'data.mobilePhone': 'mobilePhone',
|
|
150
|
-
'data.webSite': 'webSite',
|
|
151
|
-
'data.description': 'description',
|
|
152
|
-
'data.mainPartner': 'mainPartner',
|
|
153
|
-
},
|
|
125
|
+
id,
|
|
126
|
+
fields: matchers,
|
|
154
127
|
},
|
|
155
|
-
})
|
|
128
|
+
})
|
|
129
|
+
.then(() => emailId &&
|
|
130
|
+
updateEmail({
|
|
131
|
+
id: emailId,
|
|
132
|
+
version: emailVersion,
|
|
133
|
+
email,
|
|
134
|
+
}));
|
|
156
135
|
}
|
|
157
136
|
//# sourceMappingURL=contact-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-api.js","sourceRoot":"","sources":["../../src/api/contact-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,
|
|
1
|
+
{"version":3,"file":"contact-api.js","sourceRoot":"","sources":["../../src/api/contact-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE/C,MAAM,qBAAqB,GAAG,CAC5B,WAAW,EACX,MAAM,EACN,QAAQ,EACR,aAAa,EACb,EAAE;IACF,MAAM,QAAQ,GAAG;QACf;YACE,QAAQ,EAAE,KAAK;YACf,QAAQ,EAAE;gBACR;oBACE,SAAS,EAAE,WAAW;oBACtB,QAAQ,EAAE,GAAG;oBACb,KAAK,EAAE,IAAI;iBACZ;gBACD;oBACE,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE;wBACR;4BACE,SAAS,EAAE,wBAAwB;4BACnC,QAAQ,EAAE,GAAG;4BACb,KAAK,EAAE,IAAI;yBACZ;wBACD;4BACE,SAAS,EAAE,wBAAwB;4BACnC,QAAQ,EAAE,GAAG;4BACb,KAAK,EAAE,IAAI;yBACZ;qBACF;iBACF;aACF;SACF;QACD,kBAAkB,CAAC,aAAa,EAAE,WAAW,CAAC;KAC/C,CAAC;IAEF,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,gBAAgB;YAC3B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,aAAa;SACrB,CAAC,CAAC;KACJ;IAED,IAAI,MAAM,IAAI,IAAI,IAAI,QAAQ,EAAE;QAC9B,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,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X,WAAW,EACX,KAAK,EACL,OAAO,EACP,YAAY,GACb;IACC,MAAM,IAAI,GAAG;QACX,EAAE;QACF,OAAO;QACP,WAAW;QACX,SAAS;QACT,IAAI;QACJ,UAAU;QACV,WAAW;QACX,OAAO;QACP,WAAW;QACX,WAAW;KACZ,CAAC;IACF,MAAM,EAAC,QAAQ,EAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEnD,OAAO,YAAY,EAAE;SAClB,IAAI,CAAC;QACJ,GAAG,EAAE,0CAA0C;QAC/C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;QACD,WAAW,EAAE,gBAAgB;QAC7B,QAAQ,EAAE;YACR,SAAS,EAAE,iCAAiC;YAC5C,EAAE;YACF,MAAM,EAAE,QAAQ;SACjB;KACF,CAAC;SACD,IAAI,CACH,GAAG,EAAE,CACH,OAAO;QACP,WAAW,CAAC;YACV,EAAE,EAAE,OAAO;YACX,OAAO,EAAE,YAAY;YACrB,KAAK;SACN,CAAC,CACL,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export function getAddress({ country, city, zip, streetName }: {
|
|
2
|
+
country: any;
|
|
3
|
+
city: any;
|
|
4
|
+
zip: any;
|
|
5
|
+
streetName: any;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export function updateAddress({ isLead, id, version, partnerAddress, country, city, zip, streetName, }: {
|
|
8
|
+
isLead: any;
|
|
9
|
+
id: any;
|
|
10
|
+
version: any;
|
|
11
|
+
partnerAddress: any;
|
|
12
|
+
country: any;
|
|
13
|
+
city: any;
|
|
14
|
+
zip: any;
|
|
15
|
+
streetName: any;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
export function updatePartnerAddress({ id, version, address }: {
|
|
18
|
+
id: any;
|
|
19
|
+
version: any;
|
|
20
|
+
address: any;
|
|
21
|
+
}): Promise<void>;
|
|
22
|
+
export function updateMainAddress({ modelName, id, body }: {
|
|
23
|
+
modelName: any;
|
|
24
|
+
id: any;
|
|
25
|
+
body: any;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
export function deletePartnerAddress({ id }: {
|
|
28
|
+
id: any;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
export function addPartnerAddress({ partnerId, partnerVersion, country, city, zip, streetName, }: {
|
|
31
|
+
partnerId: any;
|
|
32
|
+
partnerVersion: any;
|
|
33
|
+
country: any;
|
|
34
|
+
city: any;
|
|
35
|
+
zip: any;
|
|
36
|
+
streetName: any;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
export function updateEmail({ id, version, email, partner }: {
|
|
39
|
+
id: any;
|
|
40
|
+
version: any;
|
|
41
|
+
email: any;
|
|
42
|
+
partner: any;
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
export function linkEmail({ id, version, email, isLead }: {
|
|
45
|
+
id: any;
|
|
46
|
+
version: any;
|
|
47
|
+
email: any;
|
|
48
|
+
isLead: any;
|
|
49
|
+
}): Promise<void>;
|
|
50
|
+
export function updatePartner({ id, version, mobilePhone, fixedPhone, webSite, }: {
|
|
51
|
+
id: any;
|
|
52
|
+
version: any;
|
|
53
|
+
mobilePhone: any;
|
|
54
|
+
fixedPhone: any;
|
|
55
|
+
webSite: any;
|
|
56
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2025 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import { createStandardSearch, formatRequestBody, getActionApi, RouterProvider, } from '@axelor/aos-mobile-core';
|
|
19
|
+
const createPartnerAddressCriteria = partnerId => {
|
|
20
|
+
return [
|
|
21
|
+
{
|
|
22
|
+
fieldName: 'partner.id',
|
|
23
|
+
operator: '=',
|
|
24
|
+
value: partnerId,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
fieldName: 'isDefaultAddr',
|
|
28
|
+
operator: '=',
|
|
29
|
+
value: true,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
fieldName: 'isDeliveryAddr',
|
|
33
|
+
operator: '=',
|
|
34
|
+
value: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
fieldName: 'isInvoicingAddr',
|
|
38
|
+
operator: '=',
|
|
39
|
+
value: true,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
};
|
|
43
|
+
export async function getAddress({ country, city, zip, streetName }) {
|
|
44
|
+
return getActionApi().send({
|
|
45
|
+
url: '/ws/aos/address',
|
|
46
|
+
method: 'post',
|
|
47
|
+
body: {
|
|
48
|
+
country,
|
|
49
|
+
city,
|
|
50
|
+
zip,
|
|
51
|
+
streetName,
|
|
52
|
+
},
|
|
53
|
+
description: 'find/create address',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export async function updateAddress({ isLead, id, version, partnerAddress, country, city, zip, streetName, }) {
|
|
57
|
+
return getAddress({
|
|
58
|
+
country,
|
|
59
|
+
city,
|
|
60
|
+
zip,
|
|
61
|
+
streetName,
|
|
62
|
+
}).then(async (resAddress) => {
|
|
63
|
+
if (!isLead) {
|
|
64
|
+
let _partnerAddress = partnerAddress;
|
|
65
|
+
if (_partnerAddress == null) {
|
|
66
|
+
const res = await createStandardSearch({
|
|
67
|
+
model: 'com.axelor.apps.base.db.PartnerAddress',
|
|
68
|
+
criteria: createPartnerAddressCriteria(id),
|
|
69
|
+
fieldKey: 'crm_partnerAddress',
|
|
70
|
+
page: 0,
|
|
71
|
+
numberElementsByPage: null,
|
|
72
|
+
provider: 'model',
|
|
73
|
+
});
|
|
74
|
+
_partnerAddress = res?.data?.data?.[0];
|
|
75
|
+
}
|
|
76
|
+
await updatePartnerAddress({
|
|
77
|
+
id: _partnerAddress?.id,
|
|
78
|
+
version: _partnerAddress?.version,
|
|
79
|
+
address: resAddress.data?.object,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return updateMainAddress({
|
|
83
|
+
modelName: isLead
|
|
84
|
+
? 'com.axelor.apps.crm.db.Lead'
|
|
85
|
+
: 'com.axelor.apps.base.db.Partner',
|
|
86
|
+
id,
|
|
87
|
+
body: {
|
|
88
|
+
id,
|
|
89
|
+
version,
|
|
90
|
+
[isLead ? 'address' : 'mainAddress']: resAddress.data?.object,
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export async function updatePartnerAddress({ id, version, address }) {
|
|
96
|
+
if (id == null) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
return getActionApi().send({
|
|
100
|
+
url: '/ws/rest/com.axelor.apps.base.db.PartnerAddress',
|
|
101
|
+
method: 'post',
|
|
102
|
+
body: { data: { id, version, address } },
|
|
103
|
+
description: 'update partner address',
|
|
104
|
+
matchers: {
|
|
105
|
+
modelName: 'com.axelor.apps.base.db.PartnerAddress',
|
|
106
|
+
id,
|
|
107
|
+
fields: {
|
|
108
|
+
'data.address': 'address',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
export async function updateMainAddress({ modelName, id, body }) {
|
|
114
|
+
const { matchers } = formatRequestBody(body, 'data');
|
|
115
|
+
return getActionApi().send({
|
|
116
|
+
url: `/ws/rest/${modelName}`,
|
|
117
|
+
method: 'post',
|
|
118
|
+
body: { data: body },
|
|
119
|
+
description: 'update address',
|
|
120
|
+
matchers: { modelName, id, fields: matchers },
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export async function deletePartnerAddress({ id }) {
|
|
124
|
+
return getActionApi().send({
|
|
125
|
+
url: `/ws/rest/com.axelor.apps.base.db.PartnerAddress/${id}`,
|
|
126
|
+
method: 'delete',
|
|
127
|
+
description: 'delete partner address',
|
|
128
|
+
matchers: {
|
|
129
|
+
modelName: 'com.axelor.apps.base.db.PartnerAddress',
|
|
130
|
+
id,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
export async function addPartnerAddress({ partnerId, partnerVersion, country, city, zip, streetName, }) {
|
|
135
|
+
return getAddress({
|
|
136
|
+
country,
|
|
137
|
+
city,
|
|
138
|
+
zip,
|
|
139
|
+
streetName,
|
|
140
|
+
}).then(async (resAddress) => {
|
|
141
|
+
return getActionApi().send({
|
|
142
|
+
url: `/ws/aos/partner/${partnerId}/address/${resAddress.data?.object?.id}`,
|
|
143
|
+
method: 'put',
|
|
144
|
+
body: {
|
|
145
|
+
version: partnerVersion,
|
|
146
|
+
},
|
|
147
|
+
description: 'add partner address',
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
export async function updateEmail({ id, version, email, partner }) {
|
|
152
|
+
const route = await RouterProvider.get('EmailAddress');
|
|
153
|
+
const modelName = route.replace('/ws/rest/', '');
|
|
154
|
+
return getActionApi().send({
|
|
155
|
+
url: route,
|
|
156
|
+
method: 'post',
|
|
157
|
+
body: {
|
|
158
|
+
data: {
|
|
159
|
+
id,
|
|
160
|
+
version,
|
|
161
|
+
address: email,
|
|
162
|
+
partner,
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
description: 'update email',
|
|
166
|
+
matchers: {
|
|
167
|
+
modelName: modelName,
|
|
168
|
+
id: id ?? Date.now(),
|
|
169
|
+
fields: {
|
|
170
|
+
'data.address': 'address',
|
|
171
|
+
'data.partner': 'partner',
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
export async function linkEmail({ id, version, email, isLead }) {
|
|
177
|
+
return updateEmail({ email, ...(isLead ? {} : { partner: { id } }) }).then(res => {
|
|
178
|
+
if (!isLead) {
|
|
179
|
+
return res;
|
|
180
|
+
}
|
|
181
|
+
const body = {
|
|
182
|
+
id,
|
|
183
|
+
version,
|
|
184
|
+
emailAddress: res?.data?.data?.[0],
|
|
185
|
+
};
|
|
186
|
+
const { matchers } = formatRequestBody(body, 'data');
|
|
187
|
+
return getActionApi().send({
|
|
188
|
+
url: '/ws/rest/com.axelor.apps.crm.db.Lead',
|
|
189
|
+
method: 'post',
|
|
190
|
+
body: { data: body },
|
|
191
|
+
description: 'update email address',
|
|
192
|
+
matchers: {
|
|
193
|
+
modelName: 'com.axelor.apps.crm.db.Lead',
|
|
194
|
+
id,
|
|
195
|
+
fields: matchers,
|
|
196
|
+
},
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
export async function updatePartner({ id, version, mobilePhone, fixedPhone, webSite, }) {
|
|
201
|
+
const body = {
|
|
202
|
+
id,
|
|
203
|
+
version,
|
|
204
|
+
mobilePhone,
|
|
205
|
+
fixedPhone,
|
|
206
|
+
webSite,
|
|
207
|
+
};
|
|
208
|
+
const { matchers } = formatRequestBody(body, 'data');
|
|
209
|
+
return getActionApi().send({
|
|
210
|
+
url: '/ws/rest/com.axelor.apps.base.db.Partner',
|
|
211
|
+
method: 'post',
|
|
212
|
+
body: {
|
|
213
|
+
data: body,
|
|
214
|
+
},
|
|
215
|
+
description: 'update partner',
|
|
216
|
+
matchers: {
|
|
217
|
+
modelName: 'com.axelor.apps.base.db.Partner',
|
|
218
|
+
id,
|
|
219
|
+
fields: matchers,
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=contact-info-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-info-api.js","sourceRoot":"","sources":["../../src/api/contact-info-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,yBAAyB,CAAC;AAEjC,MAAM,4BAA4B,GAAG,SAAS,CAAC,EAAE;IAC/C,OAAO;QACL;YACE,SAAS,EAAE,YAAY;YACvB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,SAAS;SACjB;QACD;YACE,SAAS,EAAE,eAAe;YAC1B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,IAAI;SACZ;QACD;YACE,SAAS,EAAE,gBAAgB;YAC3B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,IAAI;SACZ;QACD;YACE,SAAS,EAAE,iBAAiB;YAC5B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,IAAI;SACZ;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAC;IAC/D,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,iBAAiB;QACtB,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,OAAO;YACP,IAAI;YACJ,GAAG;YACH,UAAU;SACX;QACD,WAAW,EAAE,qBAAqB;KACnC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAClC,MAAM,EACN,EAAE,EACF,OAAO,EACP,cAAc,EACd,OAAO,EACP,IAAI,EACJ,GAAG,EACH,UAAU,GACX;IACC,OAAO,UAAU,CAAC;QAChB,OAAO;QACP,IAAI;QACJ,GAAG;QACH,UAAU;KACX,CAAC,CAAC,IAAI,CAAC,KA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YACX,OAAO,GAAG,CAAC;SACZ;QAED,MAAM,IAAI,GAAG;YACX,EAAE;YACF,OAAO;YACP,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;SACnC,CAAC;QAEF,MAAM,EAAC,QAAQ,EAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAEnD,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;YACzB,GAAG,EAAE,sCAAsC;YAC3C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC;YAClB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE;gBACR,SAAS,EAAE,6BAA6B;gBACxC,EAAE;gBACF,MAAM,EAAE,QAAQ;aACjB;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAClC,EAAE,EACF,OAAO,EACP,WAAW,EACX,UAAU,EACV,OAAO,GACR;IACC,MAAM,IAAI,GAAG;QACX,EAAE;QACF,OAAO;QACP,WAAW;QACX,UAAU;QACV,OAAO;KACR,CAAC;IACF,MAAM,EAAC,QAAQ,EAAC,GAAG,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEnD,OAAO,YAAY,EAAE,CAAC,IAAI,CAAC;QACzB,GAAG,EAAE,0CAA0C;QAC/C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;QACD,WAAW,EAAE,gBAAgB;QAC7B,QAAQ,EAAE;YACR,SAAS,EAAE,iCAAiC;YAC5C,EAAE;YACF,MAAM,EAAE,QAAQ;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/lib/api/index.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ export { createCatalog as createCatalogApi, getCatalogType, searchCatalog, } fro
|
|
|
2
2
|
export { getClient, searchClient, updateClient as updateClientApi, } from './client-api';
|
|
3
3
|
export * from './company-api';
|
|
4
4
|
export { getContact as getContactApi, searchContact, searchContactWithIds, updateContact as updateContactApi, } from './contact-api';
|
|
5
|
+
export { addPartnerAddress as addPartnerAddressApi, deletePartnerAddress as deletePartnerAddressApi, getAddress as getAddressApi, linkEmail as linkEmailApi, updateAddress as updateAddressApi, updateEmail as updateEmailApi, updateMainAddress as updateMainAddressApi, updatePartnerAddress as updatePartnerAddressApi, updatePartner as updatePartnerApi, } from './contact-info-api';
|
|
5
6
|
export { contactEventById, createEvent as createEventApi, getEvent, getPlannedEvent, partnerEventById, searchEventsByIds, updateEvent as updateEventApi, } from './event-api';
|
|
6
7
|
export * from './function-api';
|
|
7
8
|
export { createLead as createLeadApi, getLead, getLeadStatus, searchLeads, updateLead as updateLeadApi, updateLeadScoring, } from './leads-api';
|
|
8
9
|
export { createOpportunity as createOpportunityApi, getOpportunity as getOpportunityApi, getOpportunityStatus, getPartnerOpportunities as getPartnerOpportunitiesApi, searchOpportunities, updateOpportunity as updateOpportunityApi, updateOpportunityScoring, updateOpportunityStatus as updateOpportunityStatusApi, } from './opportunities-api';
|
|
9
|
-
export { getPartner, searchClientAndProspect, searchLinkedPartnersOfContact as searchLinkedPartnersOfContactApi, searchPartner as searchPartnerApi, } from './partner-api';
|
|
10
|
+
export { fetchPartnerAddresses as fetchPartnerAddressesApi, getPartner, searchClientAndProspect, searchLinkedPartnersOfContact as searchLinkedPartnersOfContactApi, searchPartner as searchPartnerApi, } from './partner-api';
|
|
10
11
|
export { getProspect, getProspectStatus, searchProspect, updateProspect as updateProspectApi, updateProspectScoring, } from './prospect-api';
|
|
11
12
|
export { fetchTourById as fetchTourByIdApi, searchTour as searchTourApi, validateTour as validateTourApi, } from './tour-api';
|
|
12
13
|
export { searchTourLine as searchTourLineApi, updateTourLine as updateTourLineApi, validateTourLine as validateTourLineApi, } from './tour-line-api';
|
package/lib/api/index.js
CHANGED
|
@@ -19,11 +19,12 @@ export { createCatalog as createCatalogApi, getCatalogType, searchCatalog, } fro
|
|
|
19
19
|
export { getClient, searchClient, updateClient as updateClientApi, } from './client-api';
|
|
20
20
|
export * from './company-api';
|
|
21
21
|
export { getContact as getContactApi, searchContact, searchContactWithIds, updateContact as updateContactApi, } from './contact-api';
|
|
22
|
+
export { addPartnerAddress as addPartnerAddressApi, deletePartnerAddress as deletePartnerAddressApi, getAddress as getAddressApi, linkEmail as linkEmailApi, updateAddress as updateAddressApi, updateEmail as updateEmailApi, updateMainAddress as updateMainAddressApi, updatePartnerAddress as updatePartnerAddressApi, updatePartner as updatePartnerApi, } from './contact-info-api';
|
|
22
23
|
export { contactEventById, createEvent as createEventApi, getEvent, getPlannedEvent, partnerEventById, searchEventsByIds, updateEvent as updateEventApi, } from './event-api';
|
|
23
24
|
export * from './function-api';
|
|
24
25
|
export { createLead as createLeadApi, getLead, getLeadStatus, searchLeads, updateLead as updateLeadApi, updateLeadScoring, } from './leads-api';
|
|
25
26
|
export { createOpportunity as createOpportunityApi, getOpportunity as getOpportunityApi, getOpportunityStatus, getPartnerOpportunities as getPartnerOpportunitiesApi, searchOpportunities, updateOpportunity as updateOpportunityApi, updateOpportunityScoring, updateOpportunityStatus as updateOpportunityStatusApi, } from './opportunities-api';
|
|
26
|
-
export { getPartner, searchClientAndProspect, searchLinkedPartnersOfContact as searchLinkedPartnersOfContactApi, searchPartner as searchPartnerApi, } from './partner-api';
|
|
27
|
+
export { fetchPartnerAddresses as fetchPartnerAddressesApi, getPartner, searchClientAndProspect, searchLinkedPartnersOfContact as searchLinkedPartnersOfContactApi, searchPartner as searchPartnerApi, } from './partner-api';
|
|
27
28
|
export { getProspect, getProspectStatus, searchProspect, updateProspect as updateProspectApi, updateProspectScoring, } from './prospect-api';
|
|
28
29
|
export { fetchTourById as fetchTourByIdApi, searchTour as searchTourApi, validateTour as validateTourApi, } from './tour-api';
|
|
29
30
|
export { searchTourLine as searchTourLineApi, updateTourLine as updateTourLineApi, validateTourLine as validateTourLineApi, } from './tour-line-api';
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,cAAc,EACd,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,SAAS,EACT,YAAY,EACZ,YAAY,IAAI,eAAe,GAChC,MAAM,cAAc,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,UAAU,IAAI,aAAa,EAC3B,aAAa,EACb,oBAAoB,EACpB,aAAa,IAAI,gBAAgB,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,WAAW,IAAI,cAAc,EAC7B,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,IAAI,cAAc,GAC9B,MAAM,aAAa,CAAC;AACrB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EACL,UAAU,IAAI,aAAa,EAC3B,OAAO,EACP,aAAa,EACb,WAAW,EACX,UAAU,IAAI,aAAa,EAC3B,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,iBAAiB,IAAI,oBAAoB,EACzC,cAAc,IAAI,iBAAiB,EACnC,oBAAoB,EACpB,uBAAuB,IAAI,0BAA0B,EACrD,mBAAmB,EACnB,iBAAiB,IAAI,oBAAoB,EACzC,wBAAwB,EACxB,uBAAuB,IAAI,0BAA0B,GACtD,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,uBAAuB,EACvB,6BAA6B,IAAI,gCAAgC,EACjE,aAAa,IAAI,gBAAgB,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,cAAc,IAAI,iBAAiB,EACnC,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL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L,iBAAiB,IAAI,oBAAoB,EACzC,cAAc,IAAI,iBAAiB,EACnC,oBAAoB,EACpB,uBAAuB,IAAI,0BAA0B,EACrD,mBAAmB,EACnB,iBAAiB,IAAI,oBAAoB,EACzC,wBAAwB,EACxB,uBAAuB,IAAI,0BAA0B,GACtD,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,UAAU,EACV,uBAAuB,EACvB,6BAA6B,IAAI,gCAAgC,EACjE,aAAa,IAAI,gBAAgB,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,cAAc,IAAI,iBAAiB,EACnC,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,aAAa,IAAI,gBAAgB,EACjC,UAAU,IAAI,aAAa,EAC3B,YAAY,IAAI,eAAe,GAChC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,IAAI,iBAAiB,EACnC,cAAc,IAAI,iBAAiB,EACnC,gBAAgB,IAAI,mBAAmB,GACxC,MAAM,iBAAiB,CAAC"}
|
package/lib/api/leads-api.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
-
import { createStandardFetch, createStandardSearch, formatRequestBody, getActionApi, getSearchCriterias,
|
|
18
|
+
import { createStandardFetch, createStandardSearch, formatRequestBody, getActionApi, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { updateEmail } from './contact-info-api';
|
|
19
20
|
const createLeadCriteria = (searchValue, userId, assigned, statusList) => {
|
|
20
21
|
const criteria = [
|
|
21
22
|
{
|
|
@@ -101,44 +102,27 @@ export async function updateLeadScoring({ leadId, leadVersion, newScore }) {
|
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
export async function updateLead({ lead, emailId, emailVersion }) {
|
|
104
|
-
const
|
|
105
|
-
const modelName = route.replace('/ws/rest/', '');
|
|
105
|
+
const { matchers } = formatRequestBody(lead, 'data');
|
|
106
106
|
return getActionApi()
|
|
107
107
|
.send({
|
|
108
|
-
url:
|
|
108
|
+
url: '/ws/rest/com.axelor.apps.crm.db.Lead',
|
|
109
109
|
method: 'post',
|
|
110
110
|
body: {
|
|
111
|
-
data:
|
|
112
|
-
id: emailId,
|
|
113
|
-
version: emailVersion,
|
|
114
|
-
address: lead.emailAddress?.address,
|
|
115
|
-
},
|
|
111
|
+
data: lead,
|
|
116
112
|
},
|
|
117
|
-
description: 'update lead
|
|
113
|
+
description: 'update lead',
|
|
118
114
|
matchers: {
|
|
119
|
-
modelName:
|
|
120
|
-
id:
|
|
121
|
-
fields:
|
|
122
|
-
'data.address': 'address',
|
|
123
|
-
},
|
|
115
|
+
modelName: 'com.axelor.apps.crm.db.Lead',
|
|
116
|
+
id: lead.id,
|
|
117
|
+
fields: matchers,
|
|
124
118
|
},
|
|
125
119
|
})
|
|
126
|
-
.then(() =>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
data: lead,
|
|
133
|
-
},
|
|
134
|
-
description: 'update lead',
|
|
135
|
-
matchers: {
|
|
136
|
-
modelName: 'com.axelor.apps.crm.db.Lead',
|
|
137
|
-
id: lead.id,
|
|
138
|
-
fields: matchers,
|
|
139
|
-
},
|
|
140
|
-
});
|
|
141
|
-
});
|
|
120
|
+
.then(() => emailId &&
|
|
121
|
+
updateEmail({
|
|
122
|
+
id: emailId,
|
|
123
|
+
version: emailVersion,
|
|
124
|
+
email: lead.emailAddress?.address,
|
|
125
|
+
}));
|
|
142
126
|
}
|
|
143
127
|
export async function createLead({ lead }) {
|
|
144
128
|
const { matchers } = formatRequestBody(lead, 'data');
|
package/lib/api/leads-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leads-api.js","sourceRoot":"","sources":["../../src/api/leads-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,
|
|
1
|
+
{"version":3,"file":"leads-api.js","sourceRoot":"","sources":["../../src/api/leads-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE/C,MAAM,kBAAkB,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE;IACvE,MAAM,QAAQ,GAAG;QACf;YACE,SAAS,EAAE,mBAAmB;YAC9B,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,IAAI;SACZ;QACD,kBAAkB,CAAC,UAAU,EAAE,WAAW,CAAC;KAC5C,CAAC;IAEF,IAAI,MAAM,IAAI,IAAI,IAAI,QAAQ,EAAE;QAC9B,QAAQ,CAAC,IAAI,CAAC;YACZ,SAAS,EAAE,SAAS;YACpB,QAAQ,EAAE,GAAG;YACb,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;KACJ;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QACtD,QAAQ,CAAC,IAAI,CAAC;YACZ,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBAClC,SAAS,EAAE,eAAe;gBAC1B,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,MAAM,CAAC,GAAG;aAClB,CAAC,CAAC;SACJ,CAAC,CAAC;KACJ;IAED,OAAO,QAAQ,CAAC;A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;YACd,MAAM,EAAE,QAAQ;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/lib/api/partner-api.d.ts
CHANGED
|
@@ -14,3 +14,6 @@ export function searchClientAndProspect({ searchValue, companyId, page, }: {
|
|
|
14
14
|
export function searchLinkedPartnersOfContact({ contactId }: {
|
|
15
15
|
contactId: any;
|
|
16
16
|
}): Promise<any>;
|
|
17
|
+
export function fetchPartnerAddresses({ partnerId }: {
|
|
18
|
+
partnerId: any;
|
|
19
|
+
}): Promise<any>;
|