@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
|
@@ -0,0 +1,139 @@
|
|
|
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 { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
19
|
+
import { handlerApiCall, updateAgendaItems } from '@axelor/aos-mobile-core';
|
|
20
|
+
import { searchProspect, getProspect, updateProspectScoring, updateProspect as _updateProspect, } from '../api/prospect-api';
|
|
21
|
+
export const fetchProspects = createAsyncThunk('prospect/fetchProspects', async function (data, { getState }) {
|
|
22
|
+
return handlerApiCall({
|
|
23
|
+
fetchFunction: searchProspect,
|
|
24
|
+
data,
|
|
25
|
+
action: 'fetch crm prospect',
|
|
26
|
+
getState,
|
|
27
|
+
responseOptions: { isArrayResponse: true },
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export const fetchProspectById = createAsyncThunk('prospect/fetchProspectById', async function (data = {}, { getState }) {
|
|
31
|
+
return handlerApiCall({
|
|
32
|
+
fetchFunction: getProspect,
|
|
33
|
+
data,
|
|
34
|
+
action: 'get prospect by id',
|
|
35
|
+
getState,
|
|
36
|
+
responseOptions: { isArrayResponse: false },
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
export const updateProspectScore = createAsyncThunk('lead/updateProspectScore', async function (data = {}, { getState }) {
|
|
40
|
+
return handlerApiCall({
|
|
41
|
+
fetchFunction: updateProspectScoring,
|
|
42
|
+
data,
|
|
43
|
+
action: 'update crm prospect score',
|
|
44
|
+
getState,
|
|
45
|
+
responseOptions: { isArrayResponse: false },
|
|
46
|
+
}).then(res => {
|
|
47
|
+
return handlerApiCall({
|
|
48
|
+
fetchFunction: getProspect,
|
|
49
|
+
data: { partnerId: res?.id },
|
|
50
|
+
action: 'get prospect by id',
|
|
51
|
+
getState,
|
|
52
|
+
responseOptions: { isArrayResponse: false },
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
export const updateProspect = createAsyncThunk('prospect/updateProspect', async function (data = {}, { getState }) {
|
|
57
|
+
return handlerApiCall({
|
|
58
|
+
fetchFunction: _updateProspect,
|
|
59
|
+
data,
|
|
60
|
+
action: 'update crm prospect ',
|
|
61
|
+
getState,
|
|
62
|
+
responseOptions: { isArrayResponse: false },
|
|
63
|
+
}).then(res => {
|
|
64
|
+
return handlerApiCall({
|
|
65
|
+
fetchFunction: getProspect,
|
|
66
|
+
data: { partnerId: res?.id },
|
|
67
|
+
action: 'get prospect by id',
|
|
68
|
+
getState,
|
|
69
|
+
responseOptions: { isArrayResponse: false },
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
const initialState = {
|
|
74
|
+
loading: false,
|
|
75
|
+
moreLoading: false,
|
|
76
|
+
isListEnd: false,
|
|
77
|
+
prospectList: [],
|
|
78
|
+
prospect: {},
|
|
79
|
+
};
|
|
80
|
+
const prospectSlice = createSlice({
|
|
81
|
+
name: 'prospect',
|
|
82
|
+
initialState,
|
|
83
|
+
extraReducers: builder => {
|
|
84
|
+
builder.addCase(fetchProspects.pending, (state, action) => {
|
|
85
|
+
if (action.meta.arg.page === 0) {
|
|
86
|
+
state.loading = true;
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
state.moreLoading = true;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
builder.addCase(fetchProspects.fulfilled, (state, action) => {
|
|
93
|
+
state.loading = false;
|
|
94
|
+
state.moreLoading = false;
|
|
95
|
+
if (action.meta.arg.page === 0 || action.meta.arg.page == null) {
|
|
96
|
+
state.prospectList = action.payload;
|
|
97
|
+
state.isListEnd = false;
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (action.payload != null) {
|
|
101
|
+
state.isListEnd = false;
|
|
102
|
+
state.prospectList = [...state.prospectList, ...action.payload];
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
state.isListEnd = true;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
builder.addCase(fetchProspectById.pending, (state, action) => {
|
|
110
|
+
state.loading = true;
|
|
111
|
+
});
|
|
112
|
+
builder.addCase(fetchProspectById.fulfilled, (state, action) => {
|
|
113
|
+
state.loading = false;
|
|
114
|
+
state.prospect = action.payload;
|
|
115
|
+
});
|
|
116
|
+
builder.addCase(updateProspectScore.pending, (state, action) => {
|
|
117
|
+
state.loading = true;
|
|
118
|
+
});
|
|
119
|
+
builder.addCase(updateProspectScore.fulfilled, (state, action) => {
|
|
120
|
+
state.loading = false;
|
|
121
|
+
state.prospect = action.payload;
|
|
122
|
+
state.prospectList = updateAgendaItems(state.prospectList, [
|
|
123
|
+
action.payload,
|
|
124
|
+
]);
|
|
125
|
+
});
|
|
126
|
+
builder.addCase(updateProspect.pending, (state, action) => {
|
|
127
|
+
state.loading = true;
|
|
128
|
+
});
|
|
129
|
+
builder.addCase(updateProspect.fulfilled, (state, action) => {
|
|
130
|
+
state.loading = false;
|
|
131
|
+
state.prospect = action.payload;
|
|
132
|
+
state.prospectList = updateAgendaItems(state.prospectList, [
|
|
133
|
+
action.payload,
|
|
134
|
+
]);
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
export const prospectReducer = prospectSlice.reducer;
|
|
139
|
+
//# sourceMappingURL=prospectSlice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prospectSlice.js","sourceRoot":"","sources":["../../src/features/prospectSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EACL,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,cAAc,IAAI,eAAe,GAClC,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAC5C,yBAAyB,EACzB,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,cAAc;QAC7B,IAAI;QACJ,MAAM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QACL,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACxD,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC1D,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;YAChC,KAAK,CAAC,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,YAAY,EAAE;gBACzD,MAAM,CAAC,OAAO;aACf,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,OAAO,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { useTranslator } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { useMemo } from 'react';
|
|
20
|
+
export const useCivilityList = () => {
|
|
21
|
+
const I18n = useTranslator();
|
|
22
|
+
return useMemo(() => ({
|
|
23
|
+
civilityList: [
|
|
24
|
+
{ id: 1, name: I18n.t('Crm_Civility_M') },
|
|
25
|
+
{ id: 2, name: I18n.t('Crm_Civility_Mme') },
|
|
26
|
+
{ id: 3, name: I18n.t('Crm_Civility_Dr') },
|
|
27
|
+
{ id: 4, name: I18n.t('Crm_Civility_Prof') },
|
|
28
|
+
],
|
|
29
|
+
}), [I18n]);
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=use-civility-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-civility-list.js","sourceRoot":"","sources":["../../src/hooks/use-civility-list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AAE9B,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IAClC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC;QACL,YAAY,EAAE;YACZ,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,EAAC;YACvC,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,EAAC;YACzC,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,EAAC;YACxC,EAAC,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,EAAC;SAC3C;KACF,CAAC,EACF,CAAC,IAAI,CAAC,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/i18n/en.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Crm_Crm": "CRM",
|
|
3
|
+
"Crm_Leads": "Leads",
|
|
4
|
+
"Crm_Lead": "Lead",
|
|
5
|
+
"Crm_AssignedToMe": "Assigned to me",
|
|
6
|
+
"Crm_All": "All",
|
|
7
|
+
"Crm_ThisLeadDoesNotAcceptEmails": "This lead does not accept emails",
|
|
8
|
+
"Crm_ThisLeadDoesNotAcceptCall": "This lead does not accept call",
|
|
9
|
+
"Crm_Description": "Description",
|
|
10
|
+
"Crm_Contact": "Contact",
|
|
11
|
+
"Crm_Adress": "Adress",
|
|
12
|
+
"Crm_Phone": "Phone number",
|
|
13
|
+
"Crm_MobilePhone": "Mobile phone",
|
|
14
|
+
"Crm_Email": "Mail address",
|
|
15
|
+
"Crm_WebSite": "Web site",
|
|
16
|
+
"Crm_GeneralInformation": "General informations",
|
|
17
|
+
"Crm_Informations": "Informations",
|
|
18
|
+
"Crm_AssignedTo": "Assigned to",
|
|
19
|
+
"Crm_Category": "Category",
|
|
20
|
+
"Crm_Sector": "Sector",
|
|
21
|
+
"Crm_Prospects": "Prospects",
|
|
22
|
+
"Crm_Prospect": "Prospect",
|
|
23
|
+
"Crm_Notes": "Notes",
|
|
24
|
+
"Crm_Events": "Events",
|
|
25
|
+
"Crm_Event": "Event",
|
|
26
|
+
"Crm_Clients": "Clients",
|
|
27
|
+
"Crm_PriceList": "Price list",
|
|
28
|
+
"Crm_Employees": "Employees",
|
|
29
|
+
"Crm_Sun": "Sun",
|
|
30
|
+
"Crm_Mon": "Mon",
|
|
31
|
+
"Crm_Tue": "Tue",
|
|
32
|
+
"Crm_Wed": "Wed",
|
|
33
|
+
"Crm_Thu": "Thu",
|
|
34
|
+
"Crm_Fri": "Fri",
|
|
35
|
+
"Crm_Sat": "Sat",
|
|
36
|
+
"Crm_Event_Status_Planned": "Planned",
|
|
37
|
+
"Crm_Event_Status_Realized": "Realized",
|
|
38
|
+
"Crm_Event_Status_Canceled": "Canceled",
|
|
39
|
+
"Crm_Event_Category_Event": "Event",
|
|
40
|
+
"Crm_Event_Category_Call": "Call",
|
|
41
|
+
"Crm_Event_Category_Meeting": "Meeting",
|
|
42
|
+
"Crm_Event_Category_Task": "Task",
|
|
43
|
+
"Crm_Event_Category_Leave": "Leave",
|
|
44
|
+
"Crm_Event_Category_Note": "Note",
|
|
45
|
+
"Crm_LastEvent": "Last event",
|
|
46
|
+
"Crm_NextEvent": "Next event",
|
|
47
|
+
"Crm_NoEventPlanned": "No event planned",
|
|
48
|
+
"Crm_Opportunities": "Opportunities",
|
|
49
|
+
"Crm_Opportunity": "Opportunity",
|
|
50
|
+
"Crm_Opportunity_Amount": "Amount",
|
|
51
|
+
"Crm_Opportunity_ExpectedCloseDate": "Expected close date",
|
|
52
|
+
"Crm_Contacts": "Contacts",
|
|
53
|
+
"Crm_Language": "Language",
|
|
54
|
+
"Crm_Opportunity_AssignedTo": "Assigned to",
|
|
55
|
+
"Crm_Opportunity_RecurrentAmount": "Recurrent amount",
|
|
56
|
+
"Crm_Opportunity_Status": "Status",
|
|
57
|
+
"Crm_Catalogs": "Catalogs",
|
|
58
|
+
"Crm_NoContactAssociated": "No contact associated",
|
|
59
|
+
"Crm_NoGeneralInformation": "No general information",
|
|
60
|
+
"Crm_NoContactInformation": "No contact information",
|
|
61
|
+
"Crm_Civility": "Civility",
|
|
62
|
+
"Crm_Civility_M": "M.",
|
|
63
|
+
"Crm_Civility_Mme": "Ms.",
|
|
64
|
+
"Crm_Civility_Dr": "Dr",
|
|
65
|
+
"Crm_Civility_Prof": "Prof.",
|
|
66
|
+
"Crm_FirstName": "First name",
|
|
67
|
+
"Crm_Name": "Name",
|
|
68
|
+
"Crm_NoEmail": "No email",
|
|
69
|
+
"Crm_NoPhoneCall": "No phone call",
|
|
70
|
+
"Crm_Company": "Company",
|
|
71
|
+
"Crm_JobTitle": "Job",
|
|
72
|
+
"Crm_ClientProspect": "Client / Prospect",
|
|
73
|
+
"Crm_Organisator": "Organisator",
|
|
74
|
+
"Crm_Start": "Start",
|
|
75
|
+
"Crm_End": "End"
|
|
76
|
+
}
|
package/lib/i18n/fr.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Crm_Crm": "CRM",
|
|
3
|
+
"Crm_Leads": "Pistes",
|
|
4
|
+
"Crm_Lead": "Piste",
|
|
5
|
+
"Crm_AssignedToMe": "Assigné à moi",
|
|
6
|
+
"Crm_All": "Tout",
|
|
7
|
+
"Crm_ThisLeadDoesNotAcceptEmails": "Cette piste n'accepte pas les emails",
|
|
8
|
+
"Crm_ThisLeadDoesNotAcceptCall": "Cette piste n'accepte pas d'appel",
|
|
9
|
+
"Crm_Description": "Description",
|
|
10
|
+
"Crm_Contact": "Contact",
|
|
11
|
+
"Crm_Adress": "Adresse",
|
|
12
|
+
"Crm_Phone": "Numéro de téléphone",
|
|
13
|
+
"Crm_MobilePhone": "Téléphone mobile",
|
|
14
|
+
"Crm_Email": "Email",
|
|
15
|
+
"Crm_WebSite": "Site internet",
|
|
16
|
+
"Crm_GeneralInformation": "Informations générales",
|
|
17
|
+
"Crm_Informations": "Informations",
|
|
18
|
+
"Crm_AssignedTo": "Assigné à ",
|
|
19
|
+
"Crm_Category": "Catégorie",
|
|
20
|
+
"Crm_Sector": "Secteur",
|
|
21
|
+
"Crm_Prospects": "Prospects",
|
|
22
|
+
"Crm_Prospect": "Prospect",
|
|
23
|
+
"Crm_Notes": "Notes",
|
|
24
|
+
"Crm_Events": "Événements",
|
|
25
|
+
"Crm_Event": "Événement",
|
|
26
|
+
"Crm_Clients": "Clients",
|
|
27
|
+
"Crm_PriceList": "Liste de prix",
|
|
28
|
+
"Crm_Employees": "Employés",
|
|
29
|
+
"Crm_Sun": "Dim",
|
|
30
|
+
"Crm_Mon": "Lun",
|
|
31
|
+
"Crm_Tue": "Mar",
|
|
32
|
+
"Crm_Wed": "Mer",
|
|
33
|
+
"Crm_Thu": "Jeu",
|
|
34
|
+
"Crm_Fri": "Ven",
|
|
35
|
+
"Crm_Sat": "Sam",
|
|
36
|
+
"Crm_Event_Status_Planned": "Planifié",
|
|
37
|
+
"Crm_Event_Status_Realized": "Réalisé",
|
|
38
|
+
"Crm_Event_Status_Canceled": "Annulé",
|
|
39
|
+
"Crm_Event_Category_Event": "Événement",
|
|
40
|
+
"Crm_Event_Category_Call": "Appel",
|
|
41
|
+
"Crm_Event_Category_Meeting": "Réunion",
|
|
42
|
+
"Crm_Event_Category_Task": "Tâche",
|
|
43
|
+
"Crm_Event_Category_Leave": "Absence",
|
|
44
|
+
"Crm_Event_Category_Note": "Note",
|
|
45
|
+
"Crm_LastEvent": "Dernier événement",
|
|
46
|
+
"Crm_NextEvent": "Prochain événement",
|
|
47
|
+
"Crm_NoEventPlanned": "Aucun événement planifié",
|
|
48
|
+
"Crm_Opportunities": "Opportunités",
|
|
49
|
+
"Crm_Opportunity": "Opportunité",
|
|
50
|
+
"Crm_Opportunity_Amount": "Montant",
|
|
51
|
+
"Crm_Opportunity_ExpectedCloseDate": "Date prévue clotûre",
|
|
52
|
+
"Crm_Contacts": "Contacts",
|
|
53
|
+
"Crm_Language": "Langage",
|
|
54
|
+
"Crm_Opportunity_AssignedTo": "Assigné à",
|
|
55
|
+
"Crm_Opportunity_RecurrentAmount": "Montant récurrent",
|
|
56
|
+
"Crm_Opportunity_Status": "Statut",
|
|
57
|
+
"Crm_Catalogs": "Catalogues",
|
|
58
|
+
"Crm_NoContactAssociated": "Aucun contact associé",
|
|
59
|
+
"Crm_NoGeneralInformation": "Pas d'information générale",
|
|
60
|
+
"Crm_NoContactInformation": "Pas d'information sur le contact",
|
|
61
|
+
"Crm_Civility": "Civilité",
|
|
62
|
+
"Crm_Civility_M": "M.",
|
|
63
|
+
"Crm_Civility_Mme": "Mme.",
|
|
64
|
+
"Crm_Civility_Dr": "Dr",
|
|
65
|
+
"Crm_Civility_Prof": "Prof.",
|
|
66
|
+
"Crm_FirstName": "Prénom",
|
|
67
|
+
"Crm_Name": "Nom",
|
|
68
|
+
"Crm_NoEmail": "pas d'email",
|
|
69
|
+
"Crm_NoPhoneCall": "pas d'appel",
|
|
70
|
+
"Crm_Company": "Entreprise",
|
|
71
|
+
"Crm_JobTitle": "Fonction",
|
|
72
|
+
"Crm_ClientProspect": "Client / Prospect",
|
|
73
|
+
"Crm_Organisator": "Organisateur",
|
|
74
|
+
"Crm_Start": "Début",
|
|
75
|
+
"Crm_End": "Fin"
|
|
76
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Module } from '@axelor/aos-mobile-core';
|
|
2
|
+
export declare const CrmModule: Module;
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './components';
|
|
5
|
+
export * from './api';
|
|
6
|
+
export * from './features/asyncFunctions-index';
|
|
7
|
+
export * from './screens/lead';
|
|
8
|
+
export * from './screens/prospect';
|
|
9
|
+
export * from './screens/opportunity';
|
|
10
|
+
export * from './screens/client';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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 LeadScreens from './screens/lead';
|
|
19
|
+
import ProspectScreens from './screens/prospect';
|
|
20
|
+
import OpportunityScreens from './screens/opportunity';
|
|
21
|
+
import ContactScreens from './screens/contact/';
|
|
22
|
+
import ClientScreens from './screens/client';
|
|
23
|
+
import CatalogScreen from './screens/catalog';
|
|
24
|
+
import EventScreen from './screens/event';
|
|
25
|
+
import enTranslations from './i18n/en.json';
|
|
26
|
+
import frTranslations from './i18n/fr.json';
|
|
27
|
+
import * as crmReducers from './features';
|
|
28
|
+
import { crm_modelAPI, crm_searchFields, crm_sortFields } from './models';
|
|
29
|
+
export const CrmModule = {
|
|
30
|
+
name: 'app-crm',
|
|
31
|
+
title: 'Crm_Crm',
|
|
32
|
+
subtitle: 'Crm_Crm',
|
|
33
|
+
icon: 'users',
|
|
34
|
+
menus: {
|
|
35
|
+
crm_menu_lead: {
|
|
36
|
+
title: 'Crm_Leads',
|
|
37
|
+
icon: 'address-card',
|
|
38
|
+
screen: 'LeadListScreen',
|
|
39
|
+
},
|
|
40
|
+
crm_menu_prospect: {
|
|
41
|
+
title: 'Crm_Prospects',
|
|
42
|
+
icon: 'user-tie',
|
|
43
|
+
screen: 'ProspectsListScreen',
|
|
44
|
+
},
|
|
45
|
+
crm_menu_opportunity: {
|
|
46
|
+
title: 'Crm_Opportunities',
|
|
47
|
+
icon: 'search-dollar',
|
|
48
|
+
screen: 'OpportunityListScreen',
|
|
49
|
+
},
|
|
50
|
+
crm_menu_client: {
|
|
51
|
+
title: 'Crm_Clients',
|
|
52
|
+
icon: 'users',
|
|
53
|
+
screen: 'ClientsListScreen',
|
|
54
|
+
},
|
|
55
|
+
crm_menu_contact: {
|
|
56
|
+
title: 'Crm_Contacts',
|
|
57
|
+
icon: 'address-book',
|
|
58
|
+
screen: 'ContactListScreen',
|
|
59
|
+
},
|
|
60
|
+
crm_menu_catalog: {
|
|
61
|
+
title: 'Crm_Catalogs',
|
|
62
|
+
icon: 'swatchbook',
|
|
63
|
+
screen: 'CatalogListScreen',
|
|
64
|
+
},
|
|
65
|
+
crm_menu_event: {
|
|
66
|
+
title: 'Crm_Events',
|
|
67
|
+
icon: 'calendar-alt',
|
|
68
|
+
screen: 'EventPlanningScreen',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
screens: {
|
|
72
|
+
...LeadScreens,
|
|
73
|
+
...ProspectScreens,
|
|
74
|
+
...OpportunityScreens,
|
|
75
|
+
...ClientScreens,
|
|
76
|
+
...ContactScreens,
|
|
77
|
+
...CatalogScreen,
|
|
78
|
+
...EventScreen,
|
|
79
|
+
},
|
|
80
|
+
translations: {
|
|
81
|
+
en: enTranslations,
|
|
82
|
+
fr: frTranslations,
|
|
83
|
+
},
|
|
84
|
+
reducers: { ...crmReducers },
|
|
85
|
+
models: {
|
|
86
|
+
objectFields: { ...crm_modelAPI },
|
|
87
|
+
sortFields: { ...crm_sortFields },
|
|
88
|
+
searchFields: { ...crm_searchFields },
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export * from './types';
|
|
92
|
+
export * from './components';
|
|
93
|
+
export * from './api';
|
|
94
|
+
export * from './features/asyncFunctions-index';
|
|
95
|
+
export * from './screens/lead';
|
|
96
|
+
export * from './screens/prospect';
|
|
97
|
+
export * from './screens/opportunity';
|
|
98
|
+
export * from './screens/client';
|
|
99
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,cAAc,MAAM,gBAAgB,CAAC;AAC5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AQ,EAAE,EAAC,GAAG,WAAW,EAAC;IAC1B,MAAM,EAAE;QACN,YAAY,EAAE,EAAC,GAAG,YAAY,EAAC;QAC/B,UAAU,EAAE,EAAC,GAAG,cAAc,EAAC;QAC/B,YAAY,EAAE,EAAC,GAAG,gBAAgB,EAAC;KACpC;CACF,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,iCAAiC,CAAC;AAEhD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { crm_searchFields } from './searchFields';
|
|
19
|
+
export { crm_sortFields } from './sortFields';
|
|
20
|
+
export { crm_modelAPI } from './objectFields';
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
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 { schemaContructor } from '@axelor/aos-mobile-core';
|
|
19
|
+
export const crm_modelAPI = {
|
|
20
|
+
crm_catalog: schemaContructor.object({
|
|
21
|
+
name: schemaContructor.string(),
|
|
22
|
+
pdfFile: schemaContructor.subObject('fileName'),
|
|
23
|
+
description: schemaContructor.string(),
|
|
24
|
+
catalogType: schemaContructor.subObject('name'),
|
|
25
|
+
}),
|
|
26
|
+
crm_client: schemaContructor.object({
|
|
27
|
+
simpleFullName: schemaContructor.string(),
|
|
28
|
+
name: schemaContructor.string(),
|
|
29
|
+
fullName: schemaContructor.string(),
|
|
30
|
+
partnerSeq: schemaContructor.string(),
|
|
31
|
+
mainAddress: schemaContructor.subObject('fullName'),
|
|
32
|
+
fixedPhone: schemaContructor.string(),
|
|
33
|
+
mobilePhone: schemaContructor.string(),
|
|
34
|
+
leadScoring: schemaContructor.number(),
|
|
35
|
+
emailAddress: schemaContructor.subObject('fullName'),
|
|
36
|
+
'emailAddress.address': schemaContructor.string(),
|
|
37
|
+
user: schemaContructor.subObject('fullName'),
|
|
38
|
+
industrySector: schemaContructor.subObject('name'),
|
|
39
|
+
partnerCategory: schemaContructor.subObject('name'),
|
|
40
|
+
description: schemaContructor.string(),
|
|
41
|
+
webSite: schemaContructor.string(),
|
|
42
|
+
contactPartnerSet: schemaContructor
|
|
43
|
+
.array()
|
|
44
|
+
.of(schemaContructor.subObject()),
|
|
45
|
+
picture: schemaContructor.subObject('fileName'),
|
|
46
|
+
salePartnerPriceList: schemaContructor.subObject('label'),
|
|
47
|
+
}),
|
|
48
|
+
crm_contact: schemaContructor.object({
|
|
49
|
+
simpleFullName: schemaContructor.string(),
|
|
50
|
+
name: schemaContructor.string(),
|
|
51
|
+
firstName: schemaContructor.string(),
|
|
52
|
+
partnerSeq: schemaContructor.string(),
|
|
53
|
+
mainAddress: schemaContructor.subObject('fullName'),
|
|
54
|
+
fixedPhone: schemaContructor.string(),
|
|
55
|
+
mobilePhone: schemaContructor.string(),
|
|
56
|
+
emailAddress: schemaContructor.subObject('fullName'),
|
|
57
|
+
'emailAddress.address': schemaContructor.string(),
|
|
58
|
+
mainPartner: schemaContructor.subObject('fullName'),
|
|
59
|
+
picture: schemaContructor.subObject('fileName'),
|
|
60
|
+
jobTitleFunction: schemaContructor.subObject('name'),
|
|
61
|
+
description: schemaContructor.string(),
|
|
62
|
+
webSite: schemaContructor.string(),
|
|
63
|
+
language: schemaContructor.subObject('name'),
|
|
64
|
+
titleSelect: schemaContructor.number(),
|
|
65
|
+
}),
|
|
66
|
+
crm_event: schemaContructor.object({
|
|
67
|
+
startDateTime: schemaContructor.string(),
|
|
68
|
+
endDateTime: schemaContructor.string(),
|
|
69
|
+
statusSelect: schemaContructor.number(),
|
|
70
|
+
typeSelect: schemaContructor.number(),
|
|
71
|
+
subject: schemaContructor.string(),
|
|
72
|
+
location: schemaContructor.string(),
|
|
73
|
+
organizer: schemaContructor.subObject('name'),
|
|
74
|
+
user: schemaContructor.subObject('fullName'),
|
|
75
|
+
lead: schemaContructor.subObject(),
|
|
76
|
+
partner: schemaContructor.subObject(),
|
|
77
|
+
contactPartner: schemaContructor.subObject(),
|
|
78
|
+
description: schemaContructor.string(),
|
|
79
|
+
}),
|
|
80
|
+
crm_lead: schemaContructor.object({
|
|
81
|
+
name: schemaContructor.string(),
|
|
82
|
+
enterpriseName: schemaContructor.string(),
|
|
83
|
+
firstName: schemaContructor.string(),
|
|
84
|
+
simpleFullName: schemaContructor.string(),
|
|
85
|
+
leadStatus: schemaContructor.subObject('name'),
|
|
86
|
+
primaryAddress: schemaContructor.string(),
|
|
87
|
+
emailAddress: schemaContructor.subObject('fullName'),
|
|
88
|
+
'emailAddress.address': schemaContructor.string(),
|
|
89
|
+
mobilePhone: schemaContructor.string(),
|
|
90
|
+
fixedPhone: schemaContructor.string(),
|
|
91
|
+
webSite: schemaContructor.string(),
|
|
92
|
+
user: schemaContructor.subObject('fullName'),
|
|
93
|
+
isDoNotSendEmail: schemaContructor.boolean(),
|
|
94
|
+
isDoNotCall: schemaContructor.boolean(),
|
|
95
|
+
jobTitleFunction: schemaContructor.subObject('name'),
|
|
96
|
+
description: schemaContructor.string(),
|
|
97
|
+
type: schemaContructor.subObject('name'),
|
|
98
|
+
industrySector: schemaContructor.subObject('name'),
|
|
99
|
+
eventList: schemaContructor.array().of(schemaContructor.subObject()),
|
|
100
|
+
leadScoringSelect: schemaContructor.number(),
|
|
101
|
+
titleSelect: schemaContructor.number(),
|
|
102
|
+
}),
|
|
103
|
+
crm_leadStatus: schemaContructor.object({
|
|
104
|
+
name: schemaContructor.string(),
|
|
105
|
+
}),
|
|
106
|
+
crm_opportunity: schemaContructor.object({
|
|
107
|
+
'currency.symbol': schemaContructor.string(),
|
|
108
|
+
description: schemaContructor.string(),
|
|
109
|
+
expectedCloseDate: schemaContructor.string(),
|
|
110
|
+
name: schemaContructor.string(),
|
|
111
|
+
opportunitySeq: schemaContructor.string(),
|
|
112
|
+
opportunityStatus: schemaContructor.subObject('name'),
|
|
113
|
+
opportunityRating: schemaContructor.number(),
|
|
114
|
+
partner: schemaContructor.subObject('partnerSeq'),
|
|
115
|
+
amount: schemaContructor.number(),
|
|
116
|
+
recurrentAmount: schemaContructor.number(),
|
|
117
|
+
user: schemaContructor.subObject('fullName'),
|
|
118
|
+
}),
|
|
119
|
+
crm_opportunityStatus: schemaContructor.object({
|
|
120
|
+
name: schemaContructor.string(),
|
|
121
|
+
}),
|
|
122
|
+
crm_partner: schemaContructor.object({
|
|
123
|
+
simpleFullName: schemaContructor.string(),
|
|
124
|
+
name: schemaContructor.string(),
|
|
125
|
+
partnerSeq: schemaContructor.string(),
|
|
126
|
+
mainAddress: schemaContructor.subObject('fullName'),
|
|
127
|
+
fixedPhone: schemaContructor.string(),
|
|
128
|
+
mobilePhone: schemaContructor.string(),
|
|
129
|
+
emailAddress: schemaContructor.subObject('fullName'),
|
|
130
|
+
'emailAddress.address': schemaContructor.string(),
|
|
131
|
+
user: schemaContructor.subObject('fullName'),
|
|
132
|
+
industrySector: schemaContructor.subObject('name'),
|
|
133
|
+
partnerCategory: schemaContructor.subObject('name'),
|
|
134
|
+
description: schemaContructor.string(),
|
|
135
|
+
webSite: schemaContructor.string(),
|
|
136
|
+
picture: schemaContructor.subObject('fileName'),
|
|
137
|
+
isCustomer: schemaContructor.boolean(),
|
|
138
|
+
isProspect: schemaContructor.boolean(),
|
|
139
|
+
salePartnerPriceList: schemaContructor.subObject('label'),
|
|
140
|
+
contactPartnerSet: schemaContructor
|
|
141
|
+
.array()
|
|
142
|
+
.of(schemaContructor.subObject()),
|
|
143
|
+
}),
|
|
144
|
+
crm_prospect: schemaContructor.object({
|
|
145
|
+
simpleFullName: schemaContructor.string(),
|
|
146
|
+
name: schemaContructor.string(),
|
|
147
|
+
partnerSeq: schemaContructor.string(),
|
|
148
|
+
mainAddress: schemaContructor.subObject('fullName'),
|
|
149
|
+
fixedPhone: schemaContructor.string(),
|
|
150
|
+
mobilePhone: schemaContructor.string(),
|
|
151
|
+
emailAddress: schemaContructor.subObject('fullName'),
|
|
152
|
+
'emailAddress.address': schemaContructor.string(),
|
|
153
|
+
user: schemaContructor.subObject('fullName'),
|
|
154
|
+
industrySector: schemaContructor.subObject('name'),
|
|
155
|
+
partnerCategory: schemaContructor.subObject('name'),
|
|
156
|
+
description: schemaContructor.string(),
|
|
157
|
+
webSite: schemaContructor.string(),
|
|
158
|
+
picture: schemaContructor.subObject('fileName'),
|
|
159
|
+
contactPartnerSet: schemaContructor
|
|
160
|
+
.array()
|
|
161
|
+
.of(schemaContructor.subObject()),
|
|
162
|
+
leadScoringSelect: schemaContructor.number(),
|
|
163
|
+
}),
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=objectFields.js.map
|