@axelor/aos-mobile-crm 6.5.0
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/README.md +44 -0
- package/lib/api/catalog-api.d.ts +5 -0
- package/lib/api/catalog-api.js +36 -0
- package/lib/api/catalog-api.js.map +1 -0
- package/lib/api/client-api.d.ts +18 -0
- package/lib/api/client-api.js +81 -0
- package/lib/api/client-api.js.map +1 -0
- package/lib/api/contact-api.d.ts +23 -0
- package/lib/api/contact-api.js +110 -0
- package/lib/api/contact-api.js.map +1 -0
- package/lib/api/event-api.d.ts +10 -0
- package/lib/api/event-api.js +128 -0
- package/lib/api/event-api.js.map +1 -0
- package/lib/api/function-api.d.ts +1 -0
- package/lib/api/function-api.js +24 -0
- package/lib/api/function-api.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +19 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/leads-api.d.ts +33 -0
- package/lib/api/leads-api.js +109 -0
- package/lib/api/leads-api.js.map +1 -0
- package/lib/api/opportunities-api.d.ts +29 -0
- package/lib/api/opportunities-api.js +102 -0
- package/lib/api/opportunities-api.js.map +1 -0
- package/lib/api/partner-api.d.ts +7 -0
- package/lib/api/partner-api.js +74 -0
- package/lib/api/partner-api.js.map +1 -0
- package/lib/api/prospect-api.d.ts +24 -0
- package/lib/api/prospect-api.js +94 -0
- package/lib/api/prospect-api.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +20 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/CatalogCard/CatalogCard.d.ts +13 -0
- package/lib/components/molecules/CatalogCard/CatalogCard.js +94 -0
- package/lib/components/molecules/CatalogCard/CatalogCard.js.map +1 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +14 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.js +69 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.js.map +1 -0
- package/lib/components/molecules/EventCard/EventCard.d.ts +11 -0
- package/lib/components/molecules/EventCard/EventCard.js +114 -0
- package/lib/components/molecules/EventCard/EventCard.js.map +1 -0
- package/lib/components/molecules/LeadsCard/LeadsCard.d.ts +19 -0
- package/lib/components/molecules/LeadsCard/LeadsCard.js +88 -0
- package/lib/components/molecules/LeadsCard/LeadsCard.js.map +1 -0
- package/lib/components/molecules/LiteContactCard/LiteContactCard.d.ts +10 -0
- package/lib/components/molecules/LiteContactCard/LiteContactCard.js +47 -0
- package/lib/components/molecules/LiteContactCard/LiteContactCard.js.map +1 -0
- package/lib/components/molecules/OpportunityCard/OpportunityCard.d.ts +14 -0
- package/lib/components/molecules/OpportunityCard/OpportunityCard.js +72 -0
- package/lib/components/molecules/OpportunityCard/OpportunityCard.js.map +1 -0
- package/lib/components/molecules/PartnerCard/PartnerCard.d.ts +15 -0
- package/lib/components/molecules/PartnerCard/PartnerCard.js +89 -0
- package/lib/components/molecules/PartnerCard/PartnerCard.js.map +1 -0
- package/lib/components/molecules/PartnerInfoCard/PartnerInfoCard.d.ts +9 -0
- package/lib/components/molecules/PartnerInfoCard/PartnerInfoCard.js +67 -0
- package/lib/components/molecules/PartnerInfoCard/PartnerInfoCard.js.map +1 -0
- package/lib/components/molecules/PlanningEventCard/PlanningEventCard.d.ts +10 -0
- package/lib/components/molecules/PlanningEventCard/PlanningEventCard.js +41 -0
- package/lib/components/molecules/PlanningEventCard/PlanningEventCard.js.map +1 -0
- package/lib/components/molecules/index.d.ts +9 -0
- package/lib/components/molecules/index.js +27 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/Client/ClientBottom/ClientBottom.d.ts +5 -0
- package/lib/components/organisms/Client/ClientBottom/ClientBottom.js +26 -0
- package/lib/components/organisms/Client/ClientBottom/ClientBottom.js.map +1 -0
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.js +72 -0
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.js.map +1 -0
- package/lib/components/organisms/Client/ClientHeader/ClientHeader.d.ts +2 -0
- package/lib/components/organisms/Client/ClientHeader/ClientHeader.js +49 -0
- package/lib/components/organisms/Client/ClientHeader/ClientHeader.js.map +1 -0
- package/lib/components/organisms/Client/index.d.ts +3 -0
- package/lib/components/organisms/Client/index.js +21 -0
- package/lib/components/organisms/Client/index.js.map +1 -0
- package/lib/components/organisms/Contact/ContactBottom/ContactBottom.d.ts +5 -0
- package/lib/components/organisms/Contact/ContactBottom/ContactBottom.js +26 -0
- package/lib/components/organisms/Contact/ContactBottom/ContactBottom.js.map +1 -0
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.js +61 -0
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.js.map +1 -0
- package/lib/components/organisms/Contact/ContactHeader/ContactHeader.d.ts +2 -0
- package/lib/components/organisms/Contact/ContactHeader/ContactHeader.js +50 -0
- package/lib/components/organisms/Contact/ContactHeader/ContactHeader.js.map +1 -0
- package/lib/components/organisms/Contact/ContactPartnerCard/ContactPartnerCard.d.ts +4 -0
- package/lib/components/organisms/Contact/ContactPartnerCard/ContactPartnerCard.js +55 -0
- package/lib/components/organisms/Contact/ContactPartnerCard/ContactPartnerCard.js.map +1 -0
- package/lib/components/organisms/Contact/index.d.ts +4 -0
- package/lib/components/organisms/Contact/index.js +22 -0
- package/lib/components/organisms/Contact/index.js.map +1 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.d.ts +9 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.js +48 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.js.map +1 -0
- package/lib/components/organisms/DropdownEmployeeView/DropdownEmployeeView.d.ts +12 -0
- package/lib/components/organisms/DropdownEmployeeView/DropdownEmployeeView.js +43 -0
- package/lib/components/organisms/DropdownEmployeeView/DropdownEmployeeView.js.map +1 -0
- package/lib/components/organisms/DropdownEventView/DropdownEventView.d.ts +14 -0
- package/lib/components/organisms/DropdownEventView/DropdownEventView.js +59 -0
- package/lib/components/organisms/DropdownEventView/DropdownEventView.js.map +1 -0
- package/lib/components/organisms/DropdownGeneralView/DropdownGeneralView.d.ts +9 -0
- package/lib/components/organisms/DropdownGeneralView/DropdownGeneralView.js +42 -0
- package/lib/components/organisms/DropdownGeneralView/DropdownGeneralView.js.map +1 -0
- package/lib/components/organisms/EditButton/EditButton.d.ts +4 -0
- package/lib/components/organisms/EditButton/EditButton.js +32 -0
- package/lib/components/organisms/EditButton/EditButton.js.map +1 -0
- package/lib/components/organisms/Event/EventContactCard/EventContactCard.d.ts +4 -0
- package/lib/components/organisms/Event/EventContactCard/EventContactCard.js +49 -0
- package/lib/components/organisms/Event/EventContactCard/EventContactCard.js.map +1 -0
- package/lib/components/organisms/Event/EventDatesCard/EventDatesCard.d.ts +2 -0
- package/lib/components/organisms/Event/EventDatesCard/EventDatesCard.js +38 -0
- package/lib/components/organisms/Event/EventDatesCard/EventDatesCard.js.map +1 -0
- package/lib/components/organisms/Event/EventHeader/EventHeader.d.ts +2 -0
- package/lib/components/organisms/Event/EventHeader/EventHeader.js +55 -0
- package/lib/components/organisms/Event/EventHeader/EventHeader.js.map +1 -0
- package/lib/components/organisms/Event/EventLabelsCard/EventLabelsCard.d.ts +2 -0
- package/lib/components/organisms/Event/EventLabelsCard/EventLabelsCard.js +41 -0
- package/lib/components/organisms/Event/EventLabelsCard/EventLabelsCard.js.map +1 -0
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.d.ts +4 -0
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.js +52 -0
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.js.map +1 -0
- package/lib/components/organisms/Event/EventPartnerCard/EventPartnerCard.d.ts +4 -0
- package/lib/components/organisms/Event/EventPartnerCard/EventPartnerCard.js +54 -0
- package/lib/components/organisms/Event/EventPartnerCard/EventPartnerCard.js.map +1 -0
- package/lib/components/organisms/Event/index.d.ts +6 -0
- package/lib/components/organisms/Event/index.js +24 -0
- package/lib/components/organisms/Event/index.js.map +1 -0
- package/lib/components/organisms/Lead/LeadBottom/LeadBottom.d.ts +5 -0
- package/lib/components/organisms/Lead/LeadBottom/LeadBottom.js +26 -0
- package/lib/components/organisms/Lead/LeadBottom/LeadBottom.js.map +1 -0
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.js +62 -0
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.js.map +1 -0
- package/lib/components/organisms/Lead/LeadHeader/LeadHeader.d.ts +6 -0
- package/lib/components/organisms/Lead/LeadHeader/LeadHeader.js +71 -0
- package/lib/components/organisms/Lead/LeadHeader/LeadHeader.js.map +1 -0
- package/lib/components/organisms/Lead/index.d.ts +3 -0
- package/lib/components/organisms/Lead/index.js +21 -0
- package/lib/components/organisms/Lead/index.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityBottom/OpportunityBottom.d.ts +5 -0
- package/lib/components/organisms/Opportunity/OpportunityBottom/OpportunityBottom.js +26 -0
- package/lib/components/organisms/Opportunity/OpportunityBottom/OpportunityBottom.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityDropdownInfo/OpportunityDropdownInfo.d.ts +2 -0
- package/lib/components/organisms/Opportunity/OpportunityDropdownInfo/OpportunityDropdownInfo.js +55 -0
- package/lib/components/organisms/Opportunity/OpportunityDropdownInfo/OpportunityDropdownInfo.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityHeader/OpportunityHeader.d.ts +2 -0
- package/lib/components/organisms/Opportunity/OpportunityHeader/OpportunityHeader.js +63 -0
- package/lib/components/organisms/Opportunity/OpportunityHeader/OpportunityHeader.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityPartnerCard/OpportunityPartnerCard.d.ts +5 -0
- package/lib/components/organisms/Opportunity/OpportunityPartnerCard/OpportunityPartnerCard.js +46 -0
- package/lib/components/organisms/Opportunity/OpportunityPartnerCard/OpportunityPartnerCard.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityUpdateStatusPicker/OpportunityUpdateStatusPicker.d.ts +7 -0
- package/lib/components/organisms/Opportunity/OpportunityUpdateStatusPicker/OpportunityUpdateStatusPicker.js +41 -0
- package/lib/components/organisms/Opportunity/OpportunityUpdateStatusPicker/OpportunityUpdateStatusPicker.js.map +1 -0
- package/lib/components/organisms/Opportunity/index.d.ts +5 -0
- package/lib/components/organisms/Opportunity/index.js +23 -0
- package/lib/components/organisms/Opportunity/index.js.map +1 -0
- package/lib/components/organisms/Prospect/ProspectBottom/ProspectBottom.d.ts +5 -0
- package/lib/components/organisms/Prospect/ProspectBottom/ProspectBottom.js +26 -0
- package/lib/components/organisms/Prospect/ProspectBottom/ProspectBottom.js.map +1 -0
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.js +76 -0
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.js.map +1 -0
- package/lib/components/organisms/Prospect/ProspectHeader/ProspectHeader.d.ts +2 -0
- package/lib/components/organisms/Prospect/ProspectHeader/ProspectHeader.js +75 -0
- package/lib/components/organisms/Prospect/ProspectHeader/ProspectHeader.js.map +1 -0
- package/lib/components/organisms/Prospect/index.d.ts +3 -0
- package/lib/components/organisms/Prospect/index.js +21 -0
- package/lib/components/organisms/Prospect/index.js.map +1 -0
- package/lib/components/organisms/index.d.ts +11 -0
- package/lib/components/organisms/index.js +29 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +1 -0
- package/lib/features/asyncFunctions-index.js +19 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/catalogSlice.d.ts +28 -0
- package/lib/features/catalogSlice.js +86 -0
- package/lib/features/catalogSlice.js.map +1 -0
- package/lib/features/clientSlice.d.ts +37 -0
- package/lib/features/clientSlice.js +110 -0
- package/lib/features/clientSlice.js.map +1 -0
- package/lib/features/contactSlice.d.ts +49 -0
- package/lib/features/contactSlice.js +130 -0
- package/lib/features/contactSlice.js.map +1 -0
- package/lib/features/eventSlice.d.ts +61 -0
- package/lib/features/eventSlice.js +137 -0
- package/lib/features/eventSlice.js.map +1 -0
- package/lib/features/functionSlice.d.ts +14 -0
- package/lib/features/functionSlice.js +48 -0
- package/lib/features/functionSlice.js.map +1 -0
- package/lib/features/index.d.ts +10 -0
- package/lib/features/index.js +27 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/leadSlice.d.ts +59 -0
- package/lib/features/leadSlice.js +153 -0
- package/lib/features/leadSlice.js.map +1 -0
- package/lib/features/opportunitySlice.d.ts +70 -0
- package/lib/features/opportunitySlice.js +187 -0
- package/lib/features/opportunitySlice.js.map +1 -0
- package/lib/features/partnerSlice.d.ts +28 -0
- package/lib/features/partnerSlice.js +89 -0
- package/lib/features/partnerSlice.js.map +1 -0
- package/lib/features/prospectSlice.d.ts +47 -0
- package/lib/features/prospectSlice.js +139 -0
- package/lib/features/prospectSlice.js.map +1 -0
- package/lib/hooks/use-civility-list.d.ts +6 -0
- package/lib/hooks/use-civility-list.js +31 -0
- package/lib/hooks/use-civility-list.js.map +1 -0
- package/lib/i18n/en.json +76 -0
- package/lib/i18n/fr.json +76 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +99 -0
- package/lib/index.js.map +1 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.js +21 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +165 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +62 -0
- package/lib/models/searchFields.js.map +1 -0
- package/lib/models/sortFields.d.ts +2 -0
- package/lib/models/sortFields.js +28 -0
- package/lib/models/sortFields.js.map +1 -0
- package/lib/screens/catalog/CatalogListScreen.d.ts +4 -0
- package/lib/screens/catalog/CatalogListScreen.js +94 -0
- package/lib/screens/catalog/CatalogListScreen.js.map +1 -0
- package/lib/screens/catalog/index.d.ts +11 -0
- package/lib/screens/catalog/index.js +28 -0
- package/lib/screens/catalog/index.js.map +1 -0
- package/lib/screens/client/ClientDetailsScreen.d.ts +5 -0
- package/lib/screens/client/ClientDetailsScreen.js +48 -0
- package/lib/screens/client/ClientDetailsScreen.js.map +1 -0
- package/lib/screens/client/ClientFormScreen.d.ts +5 -0
- package/lib/screens/client/ClientFormScreen.js +99 -0
- package/lib/screens/client/ClientFormScreen.js.map +1 -0
- package/lib/screens/client/ClientsListScreen.d.ts +4 -0
- package/lib/screens/client/ClientsListScreen.js +87 -0
- package/lib/screens/client/ClientsListScreen.js.map +1 -0
- package/lib/screens/client/index.d.ts +28 -0
- package/lib/screens/client/index.js +41 -0
- package/lib/screens/client/index.js.map +1 -0
- package/lib/screens/contact/ContactDetailsScreen.d.ts +5 -0
- package/lib/screens/contact/ContactDetailsScreen.js +49 -0
- package/lib/screens/contact/ContactDetailsScreen.js.map +1 -0
- package/lib/screens/contact/ContactFormScreen.d.ts +5 -0
- package/lib/screens/contact/ContactFormScreen.js +129 -0
- package/lib/screens/contact/ContactFormScreen.js.map +1 -0
- package/lib/screens/contact/ContactListScreen.d.ts +4 -0
- package/lib/screens/contact/ContactListScreen.js +87 -0
- package/lib/screens/contact/ContactListScreen.js.map +1 -0
- package/lib/screens/contact/index.d.ts +28 -0
- package/lib/screens/contact/index.js +41 -0
- package/lib/screens/contact/index.js.map +1 -0
- package/lib/screens/event/EventDetailsScreen.d.ts +5 -0
- package/lib/screens/event/EventDetailsScreen.js +48 -0
- package/lib/screens/event/EventDetailsScreen.js.map +1 -0
- package/lib/screens/event/EventPlanningScreen.d.ts +4 -0
- package/lib/screens/event/EventPlanningScreen.js +152 -0
- package/lib/screens/event/EventPlanningScreen.js.map +1 -0
- package/lib/screens/event/index.d.ts +22 -0
- package/lib/screens/event/index.js +36 -0
- package/lib/screens/event/index.js.map +1 -0
- package/lib/screens/lead/LeadDetailsScreen.d.ts +5 -0
- package/lib/screens/lead/LeadDetailsScreen.js +50 -0
- package/lib/screens/lead/LeadDetailsScreen.js.map +1 -0
- package/lib/screens/lead/LeadFormScreen.d.ts +5 -0
- package/lib/screens/lead/LeadFormScreen.js +171 -0
- package/lib/screens/lead/LeadFormScreen.js.map +1 -0
- package/lib/screens/lead/LeadListScreen.d.ts +4 -0
- package/lib/screens/lead/LeadListScreen.js +104 -0
- package/lib/screens/lead/LeadListScreen.js.map +1 -0
- package/lib/screens/lead/index.d.ts +28 -0
- package/lib/screens/lead/index.js +41 -0
- package/lib/screens/lead/index.js.map +1 -0
- package/lib/screens/opportunity/OpportunityDetailsScreen.d.ts +5 -0
- package/lib/screens/opportunity/OpportunityDetailsScreen.js +51 -0
- package/lib/screens/opportunity/OpportunityDetailsScreen.js.map +1 -0
- package/lib/screens/opportunity/OpportunityFormScreen.d.ts +5 -0
- package/lib/screens/opportunity/OpportunityFormScreen.js +126 -0
- package/lib/screens/opportunity/OpportunityFormScreen.js.map +1 -0
- package/lib/screens/opportunity/OpportunityListScreen.d.ts +4 -0
- package/lib/screens/opportunity/OpportunityListScreen.js +107 -0
- package/lib/screens/opportunity/OpportunityListScreen.js.map +1 -0
- package/lib/screens/opportunity/index.d.ts +28 -0
- package/lib/screens/opportunity/index.js +41 -0
- package/lib/screens/opportunity/index.js.map +1 -0
- package/lib/screens/prospect/ProspectDetailsScreen.d.ts +5 -0
- package/lib/screens/prospect/ProspectDetailsScreen.js +48 -0
- package/lib/screens/prospect/ProspectDetailsScreen.js.map +1 -0
- package/lib/screens/prospect/ProspectFormScreen.d.ts +5 -0
- package/lib/screens/prospect/ProspectFormScreen.js +112 -0
- package/lib/screens/prospect/ProspectFormScreen.js.map +1 -0
- package/lib/screens/prospect/ProspectsListScreen.d.ts +4 -0
- package/lib/screens/prospect/ProspectsListScreen.js +87 -0
- package/lib/screens/prospect/ProspectsListScreen.js.map +1 -0
- package/lib/screens/prospect/index.d.ts +28 -0
- package/lib/screens/prospect/index.js +41 -0
- package/lib/screens/prospect/index.js.map +1 -0
- package/lib/types/catalog.d.ts +5 -0
- package/lib/types/catalog.js +47 -0
- package/lib/types/catalog.js.map +1 -0
- package/lib/types/event-type.d.ts +26 -0
- package/lib/types/event-type.js +121 -0
- package/lib/types/event-type.js.map +1 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/index.js +22 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/lead.d.ts +5 -0
- package/lib/types/lead.js +47 -0
- package/lib/types/lead.js.map +1 -0
- package/lib/types/opportunity.d.ts +6 -0
- package/lib/types/opportunity.js +47 -0
- package/lib/types/opportunity.js.map +1 -0
- package/lib/utils/dateEvent.d.ts +2 -0
- package/lib/utils/dateEvent.js +34 -0
- package/lib/utils/dateEvent.js.map +1 -0
- package/package.json +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CRM
|
|
3
|
+
tags: Readme
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<h1 align="center">@axelor/aos-mobile-crm</h1>
|
|
7
|
+
|
|
8
|
+
<div align="center">
|
|
9
|
+
<img src="https://i.imgur.com/KJAAFlT.png" width="30%"/>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
## Presentation
|
|
13
|
+
|
|
14
|
+
This package was developed for the [Axelor Open Mobile](https://github.com/axelor/axelor-mobile) application.
|
|
15
|
+
|
|
16
|
+
The purpose of this package is to link with the CRM module of the [Axelor Open Suite (AOS)](https://github.com/axelor/axelor-open-suite) ERP. It provides a simplified version of a number of processes available on the webapp. This package is compatible with AOS from version 6.5.0.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
Install the library :
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
yarn add @axelor/aos-mobile-crm
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Compatibility with React v18.2.x and React Native v0.68.x.
|
|
27
|
+
|
|
28
|
+
To add this package in your application, you need to add it the _modules_ props of the component `Application` from @axelor/aos-mobile-core package.
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
import React from 'react';
|
|
32
|
+
import {Application} from '@axelor/aos-mobile-core';
|
|
33
|
+
import {CrmModule} from '@axelor/aos-mobile-crm';
|
|
34
|
+
|
|
35
|
+
const App = () => {
|
|
36
|
+
return <Application modules={[CrmModule]} mainMenu="auth_menu_user" />;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default App;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Developpment
|
|
43
|
+
|
|
44
|
+
This package is developed as part of the Axelor Open Mobile application. To contribute, please go to the [Github project](https://github.com/axelor/axelor-mobile) and follow the guidelines. You will also find an installation guide to help you configure your environment.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { axiosApiProvider, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
const createCatalogCriteria = searchValue => {
|
|
20
|
+
return [getSearchCriterias('crm_catalog', searchValue)];
|
|
21
|
+
};
|
|
22
|
+
export async function searchCatalog({ searchValue, page = 0 }) {
|
|
23
|
+
return createStandardSearch({
|
|
24
|
+
model: 'com.axelor.apps.crm.db.Catalog',
|
|
25
|
+
criteria: createCatalogCriteria(searchValue),
|
|
26
|
+
fieldKey: 'crm_catalog',
|
|
27
|
+
sortKey: 'crm_catalog',
|
|
28
|
+
page,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export async function getCatalogType() {
|
|
32
|
+
return axiosApiProvider.get({
|
|
33
|
+
url: '/ws/rest/com.axelor.apps.crm.db.CatalogType/',
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=catalog-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog-api.js","sourceRoot":"","sources":["../../src/api/catalog-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,qBAAqB,GAAG,WAAW,CAAC,EAAE;IAC1C,OAAO,CAAC,kBAAkB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IACzD,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,gCAAgC;QACvC,QAAQ,EAAE,qBAAqB,CAAC,WAAW,CAAC;QAC5C,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,aAAa;QACtB,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,8CAA8C;KACpD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function searchClient({ searchValue, page }: {
|
|
2
|
+
searchValue: any;
|
|
3
|
+
page?: number;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function getClient({ clientId }: {
|
|
6
|
+
clientId: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export function updateClient({ clientId, clientVersion, clientName, clientFixedPhone, clientWebsite, clientDescription, clientEmail, emailId, emailVersion, }: {
|
|
9
|
+
clientId: any;
|
|
10
|
+
clientVersion: any;
|
|
11
|
+
clientName: any;
|
|
12
|
+
clientFixedPhone: any;
|
|
13
|
+
clientWebsite: any;
|
|
14
|
+
clientDescription: any;
|
|
15
|
+
clientEmail: any;
|
|
16
|
+
emailId: any;
|
|
17
|
+
emailVersion: any;
|
|
18
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { axiosApiProvider, createStandardFetch, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
const createClientCriteria = searchValue => {
|
|
20
|
+
return [
|
|
21
|
+
{
|
|
22
|
+
operator: 'and',
|
|
23
|
+
criteria: [
|
|
24
|
+
{
|
|
25
|
+
fieldName: 'isContact',
|
|
26
|
+
operator: '=',
|
|
27
|
+
value: false,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
fieldName: 'isCustomer',
|
|
31
|
+
operator: '=',
|
|
32
|
+
value: true,
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
getSearchCriterias('crm_client', searchValue),
|
|
37
|
+
];
|
|
38
|
+
};
|
|
39
|
+
export async function searchClient({ searchValue, page = 0 }) {
|
|
40
|
+
return createStandardSearch({
|
|
41
|
+
model: 'com.axelor.apps.base.db.Partner',
|
|
42
|
+
criteria: createClientCriteria(searchValue),
|
|
43
|
+
fieldKey: 'crm_client',
|
|
44
|
+
sortKey: 'crm_client',
|
|
45
|
+
page,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
export async function getClient({ clientId }) {
|
|
49
|
+
return createStandardFetch({
|
|
50
|
+
model: 'com.axelor.apps.base.db.Partner',
|
|
51
|
+
id: clientId,
|
|
52
|
+
fieldKey: 'crm_client',
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
export async function updateClient({ clientId, clientVersion, clientName, clientFixedPhone, clientWebsite, clientDescription, clientEmail, emailId, emailVersion, }) {
|
|
56
|
+
return axiosApiProvider
|
|
57
|
+
.post({
|
|
58
|
+
url: '/ws/rest/com.axelor.apps.message.db.EmailAddress',
|
|
59
|
+
data: {
|
|
60
|
+
data: {
|
|
61
|
+
id: emailId,
|
|
62
|
+
version: emailVersion,
|
|
63
|
+
address: clientEmail,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
})
|
|
67
|
+
.then(res => axiosApiProvider.post({
|
|
68
|
+
url: '/ws/rest/com.axelor.apps.base.db.Partner',
|
|
69
|
+
data: {
|
|
70
|
+
data: {
|
|
71
|
+
id: clientId,
|
|
72
|
+
version: clientVersion,
|
|
73
|
+
name: clientName,
|
|
74
|
+
fixedPhone: clientFixedPhone,
|
|
75
|
+
webSite: clientWebsite,
|
|
76
|
+
description: clientDescription,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=client-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-api.js","sourceRoot":"","sources":["../../src/api/client-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,OAAO;QACL;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;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IACxD,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,iCAAiC;QACxC,QAAQ,EAAE,oBAAoB,CAAC,WAAW,CAAC;QAC3C,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE,YAAY;QACrB,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,EAAC,QAAQ,EAAC;IACxC,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,iCAAiC;QACxC,EAAE,EAAE,QAAQ;QACZ,QAAQ,EAAE,YAAY;KACvB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,EACjC,QAAQ,EACR,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,YAAY,GACb;IACC,OAAO,gBAAgB;SACpB,IAAI,CAAC;QACJ,GAAG,EAAE,kDAAkD;QACvD,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,OAAO;gBACX,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE,WAAW;aACrB;SACF;KACF,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,EAAE,CACV,gBAAgB,CAAC,IAAI,CAAC;QACpB,GAAG,EAAE,0CAA0C;QAC/C,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,QAAQ;gBACZ,OAAO,EAAE,aAAa;gBACtB,IAAI,EAAE,UAAU;gBAChB,UAAU,EAAE,gBAAgB;gBAC5B,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,iBAAiB;aAC/B;SACF;KACF,CAAC,CACH,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function searchContactWithIds(idList: any): Promise<any>;
|
|
2
|
+
export function searchContact({ searchValue, page }: {
|
|
3
|
+
searchValue: any;
|
|
4
|
+
page?: number;
|
|
5
|
+
}): Promise<any>;
|
|
6
|
+
export function getContact({ contactId }: {
|
|
7
|
+
contactId: any;
|
|
8
|
+
}): Promise<any>;
|
|
9
|
+
export function updateContact({ contactId, contactVersion, contactCivility, contactFirstname, contactName, contactFixedPhone, contactMobilePhone, contactWebsite, contactDescription, mainPartnerId, contactEmail, emailId, emailVersion, }: {
|
|
10
|
+
contactId: any;
|
|
11
|
+
contactVersion: any;
|
|
12
|
+
contactCivility: any;
|
|
13
|
+
contactFirstname: any;
|
|
14
|
+
contactName: any;
|
|
15
|
+
contactFixedPhone: any;
|
|
16
|
+
contactMobilePhone: any;
|
|
17
|
+
contactWebsite: any;
|
|
18
|
+
contactDescription: any;
|
|
19
|
+
mainPartnerId: any;
|
|
20
|
+
contactEmail: any;
|
|
21
|
+
emailId: any;
|
|
22
|
+
emailVersion: any;
|
|
23
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { axiosApiProvider, createStandardFetch, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
const createContactCriteria = searchValue => {
|
|
20
|
+
return [
|
|
21
|
+
{
|
|
22
|
+
operator: 'and',
|
|
23
|
+
criteria: [
|
|
24
|
+
{
|
|
25
|
+
fieldName: 'isContact',
|
|
26
|
+
operator: '=',
|
|
27
|
+
value: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
operator: 'or',
|
|
31
|
+
criteria: [
|
|
32
|
+
{
|
|
33
|
+
fieldName: 'mainPartner.isCustomer',
|
|
34
|
+
operator: '=',
|
|
35
|
+
value: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
fieldName: 'mainPartner.isProspect',
|
|
39
|
+
operator: '=',
|
|
40
|
+
value: true,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
getSearchCriterias('crm_contact', searchValue),
|
|
47
|
+
];
|
|
48
|
+
};
|
|
49
|
+
export async function searchContactWithIds(idList) {
|
|
50
|
+
return createStandardSearch({
|
|
51
|
+
model: 'com.axelor.apps.base.db.Partner',
|
|
52
|
+
criteria: [
|
|
53
|
+
{
|
|
54
|
+
fieldName: 'id',
|
|
55
|
+
operator: 'in',
|
|
56
|
+
value: idList,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
fieldKey: 'crm_contact',
|
|
60
|
+
numberElementsByPage: null,
|
|
61
|
+
page: 0,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
export async function searchContact({ searchValue, page = 0 }) {
|
|
65
|
+
return createStandardSearch({
|
|
66
|
+
model: 'com.axelor.apps.base.db.Partner',
|
|
67
|
+
criteria: createContactCriteria(searchValue),
|
|
68
|
+
fieldKey: 'crm_contact',
|
|
69
|
+
sortKey: 'crm_contact',
|
|
70
|
+
page,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export async function getContact({ contactId }) {
|
|
74
|
+
return createStandardFetch({
|
|
75
|
+
model: 'com.axelor.apps.base.db.Partner',
|
|
76
|
+
id: contactId,
|
|
77
|
+
fieldKey: 'crm_contact',
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export async function updateContact({ contactId, contactVersion, contactCivility, contactFirstname, contactName, contactFixedPhone, contactMobilePhone, contactWebsite, contactDescription, mainPartnerId, contactEmail, emailId, emailVersion, }) {
|
|
81
|
+
return axiosApiProvider
|
|
82
|
+
.post({
|
|
83
|
+
url: '/ws/rest/com.axelor.apps.message.db.EmailAddress',
|
|
84
|
+
data: {
|
|
85
|
+
data: {
|
|
86
|
+
id: emailId,
|
|
87
|
+
version: emailVersion,
|
|
88
|
+
address: contactEmail,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
})
|
|
92
|
+
.then(res => axiosApiProvider.post({
|
|
93
|
+
url: '/ws/rest/com.axelor.apps.base.db.Partner',
|
|
94
|
+
data: {
|
|
95
|
+
data: {
|
|
96
|
+
id: contactId,
|
|
97
|
+
version: contactVersion,
|
|
98
|
+
titleSelect: contactCivility,
|
|
99
|
+
firstName: contactFirstname,
|
|
100
|
+
name: contactName,
|
|
101
|
+
fixedPhone: contactFixedPhone,
|
|
102
|
+
mobilePhone: contactMobilePhone,
|
|
103
|
+
webSite: contactWebsite,
|
|
104
|
+
description: contactDescription,
|
|
105
|
+
mainPartner: { id: mainPartnerId },
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=contact-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-api.js","sourceRoot":"","sources":["../../src/api/contact-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,qBAAqB,GAAG,WAAW,CAAC,EAAE;IAC1C,OAAO;QACL;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;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,MAAM;IAC/C,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,iCAAiC;QACxC,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,IAAI;gBACf,QAAQ,EAAE,IAAI;gBACd,KAAK,EAAE,MAAM;aACd;SACF;QACD,QAAQ,EAAE,aAAa;QACvB,oBAAoB,EAAE,IAAI;QAC1B,IAAI,EAAE,CAAC;KACR,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAAC,WAAW,EAAE,IAAI,GAAG,CAAC,EAAC;IACzD,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,iCAAiC;QACxC,QAAQ,EAAE,qBAAqB,CAAC,WAAW,CAAC;QAC5C,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,aAAa;QACtB,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAC,SAAS,EAAC;IAC1C,OAAO,mBAAmB,CAAC;QACzB,KAAK,EAAE,iCAAiC;QACxC,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE,aAAa;KACxB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,EAClC,SAAS,EACT,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,YAAY,GACb;IACC,OAAO,gBAAgB;SACpB,IAAI,CAAC;QACJ,GAAG,EAAE,kDAAkD;QACvD,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,OAAO;gBACX,OAAO,EAAE,YAAY;gBACrB,OAAO,EAAE,YAAY;aACtB;SACF;KACF,CAAC;SACD,IAAI,CAAC,GAAG,CAAC,EAAE,CACV,gBAAgB,CAAC,IAAI,CAAC;QACpB,GAAG,EAAE,0CAA0C;QAC/C,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,EAAE,EAAE,SAAS;gBACb,OAAO,EAAE,cAAc;gBACvB,WAAW,EAAE,eAAe;gBAC5B,SAAS,EAAE,gBAAgB;gBAC3B,IAAI,EAAE,WAAW;gBACjB,UAAU,EAAE,iBAAiB;gBAC7B,WAAW,EAAE,kBAAkB;gBAC/B,OAAO,EAAE,cAAc;gBACvB,WAAW,EAAE,kBAAkB;gBAC/B,WAAW,EAAE,EAAC,EAAE,EAAE,aAAa,EAAC;aACjC;SACF;KACF,CAAC,CACH,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function searchEventsByIds(idList: any): Promise<any>;
|
|
2
|
+
export function partnerEventById(id: any): Promise<any>;
|
|
3
|
+
export function contactEventById(id: any): Promise<any>;
|
|
4
|
+
export function getPlannedEvent({ date, searchValue }: {
|
|
5
|
+
date: any;
|
|
6
|
+
searchValue?: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export function getEvent({ eventId }: {
|
|
9
|
+
eventId: any;
|
|
10
|
+
}): Promise<any>;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { createStandardFetch, createStandardSearch, getNextMonth, getPreviousMonth, getSearchCriterias, } from '@axelor/aos-mobile-core';
|
|
19
|
+
const createEventCriteria = (searchValue, date) => {
|
|
20
|
+
const startDate = getPreviousMonth(date).toISOString();
|
|
21
|
+
const endDate = getNextMonth(date).toISOString();
|
|
22
|
+
return [
|
|
23
|
+
{
|
|
24
|
+
operator: 'and',
|
|
25
|
+
criteria: [
|
|
26
|
+
{
|
|
27
|
+
operator: 'or',
|
|
28
|
+
criteria: [
|
|
29
|
+
{
|
|
30
|
+
operator: 'and',
|
|
31
|
+
criteria: [
|
|
32
|
+
{
|
|
33
|
+
fieldName: 'startDateTime',
|
|
34
|
+
operator: '>=',
|
|
35
|
+
value: startDate,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
fieldName: 'startDateTime',
|
|
39
|
+
operator: '<=',
|
|
40
|
+
value: endDate,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
operator: 'and',
|
|
46
|
+
criteria: [
|
|
47
|
+
{
|
|
48
|
+
fieldName: 'endDateTime',
|
|
49
|
+
operator: '>=',
|
|
50
|
+
value: startDate,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
fieldName: 'startDateTime',
|
|
54
|
+
operator: '<=',
|
|
55
|
+
value: endDate,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
getSearchCriterias('crm_event', searchValue),
|
|
64
|
+
];
|
|
65
|
+
};
|
|
66
|
+
export async function searchEventsByIds(idList) {
|
|
67
|
+
return createStandardSearch({
|
|
68
|
+
model: 'com.axelor.apps.crm.db.Event',
|
|
69
|
+
criteria: [
|
|
70
|
+
{
|
|
71
|
+
fieldName: 'id',
|
|
72
|
+
operator: 'in',
|
|
73
|
+
value: idList,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
fieldKey: 'crm_event',
|
|
77
|
+
numberElementsByPage: null,
|
|
78
|
+
page: 0,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export async function partnerEventById(id) {
|
|
82
|
+
return createStandardSearch({
|
|
83
|
+
model: 'com.axelor.apps.crm.db.Event',
|
|
84
|
+
criteria: [
|
|
85
|
+
{
|
|
86
|
+
fieldName: 'partner.id',
|
|
87
|
+
operator: '=',
|
|
88
|
+
value: id,
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
fieldKey: 'crm_event',
|
|
92
|
+
numberElementsByPage: null,
|
|
93
|
+
page: 0,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
export async function contactEventById(id) {
|
|
97
|
+
return createStandardSearch({
|
|
98
|
+
model: 'com.axelor.apps.crm.db.Event',
|
|
99
|
+
criteria: [
|
|
100
|
+
{
|
|
101
|
+
fieldName: 'contactPartner.id',
|
|
102
|
+
operator: '=',
|
|
103
|
+
value: id,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
fieldKey: 'crm_event',
|
|
107
|
+
numberElementsByPage: null,
|
|
108
|
+
page: 0,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
export async function getPlannedEvent({ date, searchValue = null }) {
|
|
112
|
+
return createStandardSearch({
|
|
113
|
+
model: 'com.axelor.apps.crm.db.Event',
|
|
114
|
+
criteria: createEventCriteria(searchValue, date),
|
|
115
|
+
fieldKey: 'crm_event',
|
|
116
|
+
sortKey: 'crm_event',
|
|
117
|
+
numberElementsByPage: null,
|
|
118
|
+
page: 0,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
export async function getEvent({ eventId }) {
|
|
122
|
+
return createStandardFetch({
|
|
123
|
+
model: 'com.axelor.apps.crm.db.Event',
|
|
124
|
+
id: eventId,
|
|
125
|
+
fieldKey: 'crm_event',
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=event-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-api.js","sourceRoot":"","sources":["../../src/api/event-api.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getFunction(): Promise<any>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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 { axiosApiProvider } from '@axelor/aos-mobile-core';
|
|
19
|
+
export async function getFunction() {
|
|
20
|
+
return axiosApiProvider.get({
|
|
21
|
+
url: '/ws/rest/com.axelor.apps.base.db.Function/',
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=function-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-api.js","sourceRoot":"","sources":["../../src/api/function-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,4CAA4C;KAClD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './leads-api';
|
package/lib/api/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 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
|
+
export * from './leads-api';
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export function searchLeads({ searchValue, page }: {
|
|
2
|
+
searchValue: any;
|
|
3
|
+
page?: number;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function getLead({ leadId }: {
|
|
6
|
+
leadId: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
export function getLeadStatus(): Promise<any>;
|
|
9
|
+
export function updateLeadScoring({ leadId, leadVersion, newScore }: {
|
|
10
|
+
leadId: any;
|
|
11
|
+
leadVersion: any;
|
|
12
|
+
newScore: any;
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
export function updateLead({ leadId, leadVersion, leadScore, leadCivility, leadFirstname, leadName, leadNoCall, leadNoEmail, leadCompany, leadJob, leadAdress, leadFixedPhone, leadMobilePhone, leadEmail, leadWebsite, leadDescription, emailId, emailVersion, }: {
|
|
15
|
+
leadId: any;
|
|
16
|
+
leadVersion: any;
|
|
17
|
+
leadScore: any;
|
|
18
|
+
leadCivility: any;
|
|
19
|
+
leadFirstname: any;
|
|
20
|
+
leadName: any;
|
|
21
|
+
leadNoCall: any;
|
|
22
|
+
leadNoEmail: any;
|
|
23
|
+
leadCompany: any;
|
|
24
|
+
leadJob: any;
|
|
25
|
+
leadAdress: any;
|
|
26
|
+
leadFixedPhone: any;
|
|
27
|
+
leadMobilePhone: any;
|
|
28
|
+
leadEmail: any;
|
|
29
|
+
leadWebsite: any;
|
|
30
|
+
leadDescription: any;
|
|
31
|
+
emailId: any;
|
|
32
|
+
emailVersion: any;
|
|
33
|
+
}): Promise<any>;
|