@axelor/aos-mobile-intervention 8.1.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 +46 -0
- package/lib/api/client-and-prospect-api.d.ts +4 -0
- package/lib/api/client-and-prospect-api.js +57 -0
- package/lib/api/client-and-prospect-api.js.map +1 -0
- package/lib/api/contract-api.d.ts +5 -0
- package/lib/api/contract-api.js +45 -0
- package/lib/api/contract-api.js.map +1 -0
- package/lib/api/equipment-api.d.ts +43 -0
- package/lib/api/equipment-api.js +212 -0
- package/lib/api/equipment-api.js.map +1 -0
- package/lib/api/equipment-family-api.d.ts +4 -0
- package/lib/api/equipment-family-api.js +28 -0
- package/lib/api/equipment-family-api.js.map +1 -0
- package/lib/api/equipment-line-api.d.ts +4 -0
- package/lib/api/equipment-line-api.js +38 -0
- package/lib/api/equipment-line-api.js.map +1 -0
- package/lib/api/equipment-picture-api.d.ts +14 -0
- package/lib/api/equipment-picture-api.js +56 -0
- package/lib/api/equipment-picture-api.js.map +1 -0
- package/lib/api/index.d.ts +9 -0
- package/lib/api/index.js +27 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/intervention-api.d.ts +34 -0
- package/lib/api/intervention-api.js +149 -0
- package/lib/api/intervention-api.js.map +1 -0
- package/lib/api/intervention-note-api.d.ts +19 -0
- package/lib/api/intervention-note-api.js +79 -0
- package/lib/api/intervention-note-api.js.map +1 -0
- package/lib/api/question-api.d.ts +14 -0
- package/lib/api/question-api.js +78 -0
- package/lib/api/question-api.js.map +1 -0
- package/lib/components/atoms/EquipmentCard/EquipmentCard.d.ts +11 -0
- package/lib/components/atoms/EquipmentCard/EquipmentCard.js +65 -0
- package/lib/components/atoms/EquipmentCard/EquipmentCard.js.map +1 -0
- package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.d.ts +12 -0
- package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.js +42 -0
- package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.js.map +1 -0
- package/lib/components/atoms/InterventionCard/InterventionCard.d.ts +15 -0
- package/lib/components/atoms/InterventionCard/InterventionCard.js +97 -0
- package/lib/components/atoms/InterventionCard/InterventionCard.js.map +1 -0
- package/lib/components/atoms/NoteCard/NoteCard.d.ts +12 -0
- package/lib/components/atoms/NoteCard/NoteCard.js +65 -0
- package/lib/components/atoms/NoteCard/NoteCard.js.map +1 -0
- package/lib/components/atoms/PictureCard/PictureCard.d.ts +10 -0
- package/lib/components/atoms/PictureCard/PictureCard.js +71 -0
- package/lib/components/atoms/PictureCard/PictureCard.js.map +1 -0
- package/lib/components/atoms/QuestionCard/QuestionCard.d.ts +10 -0
- package/lib/components/atoms/QuestionCard/QuestionCard.js +67 -0
- package/lib/components/atoms/QuestionCard/QuestionCard.js.map +1 -0
- package/lib/components/atoms/index.d.ts +6 -0
- package/lib/components/atoms/index.js +24 -0
- package/lib/components/atoms/index.js.map +1 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +23 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.d.ts +9 -0
- package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.js +32 -0
- package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.js.map +1 -0
- package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.d.ts +19 -0
- package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.js +77 -0
- package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.js.map +1 -0
- package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.d.ts +3 -0
- package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.js +48 -0
- package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.js.map +1 -0
- package/lib/components/molecules/GtCard/GtCard.d.ts +11 -0
- package/lib/components/molecules/GtCard/GtCard.js +76 -0
- package/lib/components/molecules/GtCard/GtCard.js.map +1 -0
- package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.d.ts +19 -0
- package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.js +52 -0
- package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.js.map +1 -0
- package/lib/components/molecules/InterventionHeader/InterventionHeader.d.ts +6 -0
- package/lib/components/molecules/InterventionHeader/InterventionHeader.js +52 -0
- package/lib/components/molecules/InterventionHeader/InterventionHeader.js.map +1 -0
- package/lib/components/molecules/NoteDetailCard/NoteDetailCard.d.ts +19 -0
- package/lib/components/molecules/NoteDetailCard/NoteDetailCard.js +68 -0
- package/lib/components/molecules/NoteDetailCard/NoteDetailCard.js.map +1 -0
- package/lib/components/molecules/PicturesRow/PicturesRow.d.ts +10 -0
- package/lib/components/molecules/PicturesRow/PicturesRow.js +36 -0
- package/lib/components/molecules/PicturesRow/PicturesRow.js.map +1 -0
- package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.d.ts +9 -0
- package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.js +31 -0
- package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.js.map +1 -0
- package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.d.ts +7 -0
- package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.js +36 -0
- package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.js.map +1 -0
- package/lib/components/molecules/QuestionList/QuestionList.d.ts +9 -0
- package/lib/components/molecules/QuestionList/QuestionList.js +29 -0
- package/lib/components/molecules/QuestionList/QuestionList.js.map +1 -0
- package/lib/components/molecules/QuestionMeasure/QuestionMeasure.d.ts +9 -0
- package/lib/components/molecules/QuestionMeasure/QuestionMeasure.js +39 -0
- package/lib/components/molecules/QuestionMeasure/QuestionMeasure.js.map +1 -0
- package/lib/components/molecules/index.d.ts +12 -0
- package/lib/components/molecules/index.js +30 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.d.ts +4 -0
- package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.js +32 -0
- package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.js.map +1 -0
- package/lib/components/organisms/ContractSearchBar/ContractSearchBar.d.ts +4 -0
- package/lib/components/organisms/ContractSearchBar/ContractSearchBar.js +35 -0
- package/lib/components/organisms/ContractSearchBar/ContractSearchBar.js.map +1 -0
- package/lib/components/organisms/DropdownCards/DropdownCards.d.ts +6 -0
- package/lib/components/organisms/DropdownCards/DropdownCards.js +45 -0
- package/lib/components/organisms/DropdownCards/DropdownCards.js.map +1 -0
- package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.d.ts +4 -0
- package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.js +35 -0
- package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.js.map +1 -0
- package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.d.ts +5 -0
- package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.js +50 -0
- package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.js.map +1 -0
- package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.d.ts +8 -0
- package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.js +32 -0
- package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.js.map +1 -0
- package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.d.ts +4 -0
- package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.js +36 -0
- package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.js.map +1 -0
- package/lib/components/organisms/TypePicker/TypePicker.d.ts +4 -0
- package/lib/components/organisms/TypePicker/TypePicker.js +29 -0
- package/lib/components/organisms/TypePicker/TypePicker.js.map +1 -0
- package/lib/components/organisms/index.d.ts +8 -0
- package/lib/components/organisms/index.js +26 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/components/pages/EquipmentView/EquipmentView.d.ts +3 -0
- package/lib/components/pages/EquipmentView/EquipmentView.js +161 -0
- package/lib/components/pages/EquipmentView/EquipmentView.js.map +1 -0
- package/lib/components/pages/GeneralInformationView/GeneralInformationView.d.ts +3 -0
- package/lib/components/pages/GeneralInformationView/GeneralInformationView.js +94 -0
- package/lib/components/pages/GeneralInformationView/GeneralInformationView.js.map +1 -0
- package/lib/components/pages/HistoryView/HistoryView.d.ts +3 -0
- package/lib/components/pages/HistoryView/HistoryView.js +33 -0
- package/lib/components/pages/HistoryView/HistoryView.js.map +1 -0
- package/lib/components/pages/NoteView/NoteView.d.ts +3 -0
- package/lib/components/pages/NoteView/NoteView.js +47 -0
- package/lib/components/pages/NoteView/NoteView.js.map +1 -0
- package/lib/components/pages/SurveyView/SurveyView.d.ts +7 -0
- package/lib/components/pages/SurveyView/SurveyView.js +60 -0
- package/lib/components/pages/SurveyView/SurveyView.js.map +1 -0
- package/lib/components/pages/index.d.ts +5 -0
- package/lib/components/pages/index.js +23 -0
- package/lib/components/pages/index.js.map +1 -0
- package/lib/components/templates/InterventionsListView/InterventionsListView.d.ts +7 -0
- package/lib/components/templates/InterventionsListView/InterventionsListView.js +73 -0
- package/lib/components/templates/InterventionsListView/InterventionsListView.js.map +1 -0
- package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.d.ts +7 -0
- package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.js +70 -0
- package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.js.map +1 -0
- package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.d.ts +7 -0
- package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.js +76 -0
- package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.js.map +1 -0
- package/lib/components/templates/index.d.ts +3 -0
- package/lib/components/templates/index.js +21 -0
- package/lib/components/templates/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +9 -0
- package/lib/features/asyncFunctions-index.js +27 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/clientAndProspectSlice.d.ts +7 -0
- package/lib/features/clientAndProspectSlice.js +49 -0
- package/lib/features/clientAndProspectSlice.js.map +1 -0
- package/lib/features/contractSlice.d.ts +7 -0
- package/lib/features/contractSlice.js +49 -0
- package/lib/features/contractSlice.js.map +1 -0
- package/lib/features/equipmentFamilySlice.d.ts +7 -0
- package/lib/features/equipmentFamilySlice.js +49 -0
- package/lib/features/equipmentFamilySlice.js.map +1 -0
- package/lib/features/equipmentLineSlice.d.ts +7 -0
- package/lib/features/equipmentLineSlice.js +49 -0
- package/lib/features/equipmentLineSlice.js.map +1 -0
- package/lib/features/equipmentPictureSlice.d.ts +37 -0
- package/lib/features/equipmentPictureSlice.js +67 -0
- package/lib/features/equipmentPictureSlice.js.map +1 -0
- package/lib/features/equipmentSlice.d.ts +34 -0
- package/lib/features/equipmentSlice.js +205 -0
- package/lib/features/equipmentSlice.js.map +1 -0
- package/lib/features/index.d.ts +9 -0
- package/lib/features/index.js +27 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/interventionNoteSlice.d.ts +16 -0
- package/lib/features/interventionNoteSlice.js +114 -0
- package/lib/features/interventionNoteSlice.js.map +1 -0
- package/lib/features/interventionSlice.d.ts +21 -0
- package/lib/features/interventionSlice.js +140 -0
- package/lib/features/interventionSlice.js.map +1 -0
- package/lib/features/questionSlice.d.ts +14 -0
- package/lib/features/questionSlice.js +104 -0
- package/lib/features/questionSlice.js.map +1 -0
- package/lib/hooks/use-intervention-header-actions.d.ts +1 -0
- package/lib/hooks/use-intervention-header-actions.js +141 -0
- package/lib/hooks/use-intervention-header-actions.js.map +1 -0
- package/lib/i18n/en.json +106 -0
- package/lib/i18n/fr.json +106 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +94 -0
- package/lib/index.js.map +1 -0
- package/lib/models/forms.d.ts +2 -0
- package/lib/models/forms.js +333 -0
- package/lib/models/forms.js.map +1 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/index.js +23 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +143 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +33 -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/models/typeObjects.d.ts +2 -0
- package/lib/models/typeObjects.js +205 -0
- package/lib/models/typeObjects.js.map +1 -0
- package/lib/screens/equipment/CustomerParkScreen.d.ts +3 -0
- package/lib/screens/equipment/CustomerParkScreen.js +56 -0
- package/lib/screens/equipment/CustomerParkScreen.js.map +1 -0
- package/lib/screens/equipment/EquipmentFormView.d.ts +6 -0
- package/lib/screens/equipment/EquipmentFormView.js +104 -0
- package/lib/screens/equipment/EquipmentFormView.js.map +1 -0
- package/lib/screens/equipment/EquipmentInterventionListScreen.d.ts +3 -0
- package/lib/screens/equipment/EquipmentInterventionListScreen.js +43 -0
- package/lib/screens/equipment/EquipmentInterventionListScreen.js.map +1 -0
- package/lib/screens/equipment/EquipmentLineListScreen.d.ts +3 -0
- package/lib/screens/equipment/EquipmentLineListScreen.js +37 -0
- package/lib/screens/equipment/EquipmentLineListScreen.js.map +1 -0
- package/lib/screens/equipment/EquipmentPictureScreen.d.ts +3 -0
- package/lib/screens/equipment/EquipmentPictureScreen.js +113 -0
- package/lib/screens/equipment/EquipmentPictureScreen.js.map +1 -0
- package/lib/screens/equipment/index.d.ts +45 -0
- package/lib/screens/equipment/index.js +61 -0
- package/lib/screens/equipment/index.js.map +1 -0
- package/lib/screens/intervention/ActiveInterventionScreen.d.ts +3 -0
- package/lib/screens/intervention/ActiveInterventionScreen.js +72 -0
- package/lib/screens/intervention/ActiveInterventionScreen.js.map +1 -0
- package/lib/screens/intervention/DayInterventionsScreen.d.ts +3 -0
- package/lib/screens/intervention/DayInterventionsScreen.js +33 -0
- package/lib/screens/intervention/DayInterventionsScreen.js.map +1 -0
- package/lib/screens/intervention/InterventionDetailsScreen.d.ts +7 -0
- package/lib/screens/intervention/InterventionDetailsScreen.js +83 -0
- package/lib/screens/intervention/InterventionDetailsScreen.js.map +1 -0
- package/lib/screens/intervention/InterventionNoteFormScreen.d.ts +6 -0
- package/lib/screens/intervention/InterventionNoteFormScreen.js +81 -0
- package/lib/screens/intervention/InterventionNoteFormScreen.js.map +1 -0
- package/lib/screens/intervention/InterventionQuestionFormScreen.d.ts +6 -0
- package/lib/screens/intervention/InterventionQuestionFormScreen.js +114 -0
- package/lib/screens/intervention/InterventionQuestionFormScreen.js.map +1 -0
- package/lib/screens/intervention/InterventionsHistoryScreen.d.ts +3 -0
- package/lib/screens/intervention/InterventionsHistoryScreen.js +29 -0
- package/lib/screens/intervention/InterventionsHistoryScreen.js.map +1 -0
- package/lib/screens/intervention/PlannedInterventionsScreen.d.ts +3 -0
- package/lib/screens/intervention/PlannedInterventionsScreen.js +29 -0
- package/lib/screens/intervention/PlannedInterventionsScreen.js.map +1 -0
- package/lib/screens/intervention/index.d.ts +79 -0
- package/lib/screens/intervention/index.js +89 -0
- package/lib/screens/intervention/index.js.map +1 -0
- package/lib/types/equipment.d.ts +7 -0
- package/lib/types/equipment.js +25 -0
- package/lib/types/equipment.js.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.js +21 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/intervention.d.ts +4 -0
- package/lib/types/intervention.js +38 -0
- package/lib/types/intervention.js.map +1 -0
- package/lib/types/question.d.ts +4 -0
- package/lib/types/question.js +44 -0
- package/lib/types/question.js.map +1 -0
- package/lib/utils/form-types.d.ts +9 -0
- package/lib/utils/form-types.js +19 -0
- package/lib/utils/form-types.js.map +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +19 -0
- package/lib/utils/index.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 { getTypes, } from '@axelor/aos-mobile-core';
|
|
19
|
+
import { ClientProspectSearchBar, ContractSearchBar, EquipmentFamilySearchBar, InterventionNoteTypePicker, PlaceEquipmentSearchBar, QuestionAdvancedMonitoring, QuestionCheckbox, QuestionList, QuestionMeasure, TypePicker, } from '../components';
|
|
20
|
+
const CustomerComponentWrapper = component => {
|
|
21
|
+
return ({ objectState, ...props }) => component({ ...props, customerId: objectState.partner?.id });
|
|
22
|
+
};
|
|
23
|
+
export const intervention_formsRegister = {
|
|
24
|
+
intervention_equipment: {
|
|
25
|
+
modelName: 'com.axelor.apps.intervention.db.Equipment',
|
|
26
|
+
fields: {
|
|
27
|
+
partner: {
|
|
28
|
+
titleKey: 'Intervention_Customer',
|
|
29
|
+
type: 'object',
|
|
30
|
+
widget: 'custom',
|
|
31
|
+
required: true,
|
|
32
|
+
customComponent: ClientProspectSearchBar,
|
|
33
|
+
options: {
|
|
34
|
+
showTitle: true,
|
|
35
|
+
readonly: true,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
parentEquipment: {
|
|
39
|
+
titleKey: 'Intervention_ParentPlace',
|
|
40
|
+
type: 'object',
|
|
41
|
+
widget: 'custom',
|
|
42
|
+
customComponent: CustomerComponentWrapper(PlaceEquipmentSearchBar),
|
|
43
|
+
options: {
|
|
44
|
+
showTitle: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
code: {
|
|
48
|
+
titleKey: 'Intervention_Code',
|
|
49
|
+
type: 'string',
|
|
50
|
+
widget: 'default',
|
|
51
|
+
},
|
|
52
|
+
name: {
|
|
53
|
+
titleKey: 'Intervention_Designation',
|
|
54
|
+
type: 'string',
|
|
55
|
+
widget: 'default',
|
|
56
|
+
required: true,
|
|
57
|
+
},
|
|
58
|
+
typeSelect: {
|
|
59
|
+
titleKey: 'Intervention_Type',
|
|
60
|
+
type: 'string',
|
|
61
|
+
widget: 'custom',
|
|
62
|
+
customComponent: TypePicker,
|
|
63
|
+
required: true,
|
|
64
|
+
},
|
|
65
|
+
inService: {
|
|
66
|
+
titleKey: 'Intervention_EquipmentStatus_InService',
|
|
67
|
+
type: 'boolean',
|
|
68
|
+
widget: 'checkbox',
|
|
69
|
+
hideIf: ({ objectState }) => {
|
|
70
|
+
const Equipment = getTypes().Equipment;
|
|
71
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
commissioningDate: {
|
|
75
|
+
titleKey: 'Intervention_CommissioningDate',
|
|
76
|
+
type: 'date',
|
|
77
|
+
widget: 'date',
|
|
78
|
+
hideIf: ({ objectState }) => {
|
|
79
|
+
const Equipment = getTypes().Equipment;
|
|
80
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
customerWarrantyOnPartEndDate: {
|
|
84
|
+
titleKey: 'Intervention_CustomerWarrantyOnPartEndDate',
|
|
85
|
+
type: 'date',
|
|
86
|
+
widget: 'date',
|
|
87
|
+
hideIf: ({ objectState }) => {
|
|
88
|
+
const Equipment = getTypes().Equipment;
|
|
89
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
equipmentFamily: {
|
|
93
|
+
titleKey: 'Intervention_EquipmentFamily',
|
|
94
|
+
type: 'object',
|
|
95
|
+
widget: 'custom',
|
|
96
|
+
requiredIf: ({ objectState }) => {
|
|
97
|
+
const Equipment = getTypes().Equipment;
|
|
98
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Equipment;
|
|
99
|
+
},
|
|
100
|
+
customComponent: EquipmentFamilySearchBar,
|
|
101
|
+
hideIf: ({ objectState }) => {
|
|
102
|
+
const Equipment = getTypes().Equipment;
|
|
103
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
scheduleOfOperation: {
|
|
107
|
+
titleKey: 'Intervention_ScheduleOfOperation',
|
|
108
|
+
type: 'string',
|
|
109
|
+
widget: 'default',
|
|
110
|
+
hideIf: ({ objectState }) => {
|
|
111
|
+
const Equipment = getTypes().Equipment;
|
|
112
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
specificAccessSchedule: {
|
|
116
|
+
titleKey: 'Intervention_SpecificAccessSchedule',
|
|
117
|
+
type: 'string',
|
|
118
|
+
widget: 'default',
|
|
119
|
+
hideIf: ({ objectState }) => {
|
|
120
|
+
const Equipment = getTypes().Equipment;
|
|
121
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
contract: {
|
|
125
|
+
titleKey: 'Intervention_Contract',
|
|
126
|
+
type: 'object',
|
|
127
|
+
widget: 'custom',
|
|
128
|
+
customComponent: CustomerComponentWrapper(ContractSearchBar),
|
|
129
|
+
hideIf: ({ objectState }) => {
|
|
130
|
+
const Equipment = getTypes().Equipment;
|
|
131
|
+
return objectState?.typeSelect === Equipment?.typeSelect.Place;
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
comments: {
|
|
135
|
+
titleKey: 'Intervention_Comments',
|
|
136
|
+
type: 'string',
|
|
137
|
+
widget: 'default',
|
|
138
|
+
options: {
|
|
139
|
+
multiline: true,
|
|
140
|
+
adjustHeightWithLines: true,
|
|
141
|
+
style: { marginBottom: 100, width: '90%', alignSelf: 'center' },
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
intervention_interventionNote: {
|
|
147
|
+
modelName: 'com.axelor.apps.intervention.db.InterventionNote',
|
|
148
|
+
fields: {
|
|
149
|
+
type: {
|
|
150
|
+
titleKey: 'Intervention_Type',
|
|
151
|
+
type: 'object',
|
|
152
|
+
widget: 'custom',
|
|
153
|
+
required: true,
|
|
154
|
+
customComponent: InterventionNoteTypePicker,
|
|
155
|
+
options: {
|
|
156
|
+
isScrollViewContainer: true,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
description: {
|
|
160
|
+
titleKey: 'Intervention_Description',
|
|
161
|
+
type: 'string',
|
|
162
|
+
widget: 'default',
|
|
163
|
+
options: {
|
|
164
|
+
multiline: true,
|
|
165
|
+
adjustHeightWithLines: true,
|
|
166
|
+
},
|
|
167
|
+
requiredIf: ({ objectState }) => objectState.type && objectState.type.attachedFile === false,
|
|
168
|
+
hideIf: ({ objectState }) => !objectState.type || objectState.type.attachedFile === true,
|
|
169
|
+
},
|
|
170
|
+
metaFile: {
|
|
171
|
+
titleKey: 'Intervention_MetaFile',
|
|
172
|
+
type: 'object',
|
|
173
|
+
widget: 'file',
|
|
174
|
+
options: {
|
|
175
|
+
displayPreview: true,
|
|
176
|
+
},
|
|
177
|
+
requiredIf: ({ objectState }) => objectState.type && objectState.type.attachedFile === true,
|
|
178
|
+
hideIf: ({ objectState }) => !objectState.type || objectState.type.attachedFile === false,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
intervention_interventionQuestion: {
|
|
183
|
+
modelName: 'com.axelor.apps.intervention.db.InterventionQuestion',
|
|
184
|
+
fields: {
|
|
185
|
+
advancedMonitoringAnswer: {
|
|
186
|
+
type: 'string',
|
|
187
|
+
widget: 'custom',
|
|
188
|
+
customComponent: QuestionAdvancedMonitoring,
|
|
189
|
+
requiredIf: ({ objectState }) => {
|
|
190
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
191
|
+
return (objectState.answerTypeSelect ===
|
|
192
|
+
InterventionQuestion?.answerTypeSelect.AdvancedMonitoring &&
|
|
193
|
+
objectState.isRequired);
|
|
194
|
+
},
|
|
195
|
+
hideIf: ({ objectState }) => {
|
|
196
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
197
|
+
return (objectState.answerTypeSelect !==
|
|
198
|
+
InterventionQuestion?.answerTypeSelect.AdvancedMonitoring);
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
checkboxAnswer: {
|
|
202
|
+
type: 'boolean',
|
|
203
|
+
widget: 'custom',
|
|
204
|
+
customComponent: QuestionCheckbox,
|
|
205
|
+
requiredIf: ({ objectState }) => {
|
|
206
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
207
|
+
return (objectState.answerTypeSelect ===
|
|
208
|
+
InterventionQuestion?.answerTypeSelect.CheckBox &&
|
|
209
|
+
objectState.isRequired);
|
|
210
|
+
},
|
|
211
|
+
hideIf: ({ objectState }) => {
|
|
212
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
213
|
+
return (objectState.answerTypeSelect !==
|
|
214
|
+
InterventionQuestion?.answerTypeSelect.CheckBox);
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
dateAnswer: {
|
|
218
|
+
type: 'date',
|
|
219
|
+
widget: 'date',
|
|
220
|
+
options: {
|
|
221
|
+
popup: true,
|
|
222
|
+
},
|
|
223
|
+
requiredIf: ({ objectState }) => {
|
|
224
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
225
|
+
return (objectState.answerTypeSelect ===
|
|
226
|
+
InterventionQuestion?.answerTypeSelect.Date &&
|
|
227
|
+
objectState.isRequired);
|
|
228
|
+
},
|
|
229
|
+
hideIf: ({ objectState }) => {
|
|
230
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
231
|
+
return (objectState.answerTypeSelect !==
|
|
232
|
+
InterventionQuestion?.answerTypeSelect.Date);
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
indicationText: {
|
|
236
|
+
type: 'string',
|
|
237
|
+
widget: 'default',
|
|
238
|
+
readonly: true,
|
|
239
|
+
hideIf: ({ objectState }) => {
|
|
240
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
241
|
+
return (objectState.answerTypeSelect !==
|
|
242
|
+
InterventionQuestion?.answerTypeSelect.Indication);
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
measureAnswer: {
|
|
246
|
+
type: 'number',
|
|
247
|
+
widget: 'custom',
|
|
248
|
+
customComponent: QuestionMeasure,
|
|
249
|
+
requiredIf: ({ objectState }) => {
|
|
250
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
251
|
+
return (objectState.answerTypeSelect ===
|
|
252
|
+
InterventionQuestion?.answerTypeSelect.Measure &&
|
|
253
|
+
objectState.isRequired);
|
|
254
|
+
},
|
|
255
|
+
hideIf: ({ objectState }) => {
|
|
256
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
257
|
+
return (objectState.answerTypeSelect !==
|
|
258
|
+
InterventionQuestion?.answerTypeSelect.Measure);
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
pictureAnswer: {
|
|
262
|
+
type: 'object',
|
|
263
|
+
widget: 'file',
|
|
264
|
+
options: {
|
|
265
|
+
documentTypesAllowed: 'images',
|
|
266
|
+
displayPreview: true,
|
|
267
|
+
},
|
|
268
|
+
requiredIf: ({ objectState }) => {
|
|
269
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
270
|
+
return (objectState.answerTypeSelect ===
|
|
271
|
+
InterventionQuestion?.answerTypeSelect.Picture &&
|
|
272
|
+
objectState.isRequired);
|
|
273
|
+
},
|
|
274
|
+
hideIf: ({ objectState }) => {
|
|
275
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
276
|
+
return (objectState.answerTypeSelect !==
|
|
277
|
+
InterventionQuestion?.answerTypeSelect.Picture);
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
signatureAnswer: {
|
|
281
|
+
type: 'object',
|
|
282
|
+
widget: 'signature',
|
|
283
|
+
requiredIf: ({ objectState }) => {
|
|
284
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
285
|
+
return (objectState.answerTypeSelect ===
|
|
286
|
+
InterventionQuestion?.answerTypeSelect.Signature &&
|
|
287
|
+
objectState.isRequired);
|
|
288
|
+
},
|
|
289
|
+
hideIf: ({ objectState }) => {
|
|
290
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
291
|
+
return (objectState.answerTypeSelect !==
|
|
292
|
+
InterventionQuestion?.answerTypeSelect.Signature);
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
textAnswer: {
|
|
296
|
+
type: 'string',
|
|
297
|
+
widget: 'default',
|
|
298
|
+
options: {
|
|
299
|
+
multiline: true,
|
|
300
|
+
adjustHeightWithLines: true,
|
|
301
|
+
},
|
|
302
|
+
requiredIf: ({ objectState }) => {
|
|
303
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
304
|
+
return (objectState.answerTypeSelect ===
|
|
305
|
+
InterventionQuestion?.answerTypeSelect.Text &&
|
|
306
|
+
objectState.isRequired);
|
|
307
|
+
},
|
|
308
|
+
hideIf: ({ objectState }) => {
|
|
309
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
310
|
+
return (objectState.answerTypeSelect !==
|
|
311
|
+
InterventionQuestion?.answerTypeSelect.Text);
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
listAnswer: {
|
|
315
|
+
type: 'object',
|
|
316
|
+
widget: 'custom',
|
|
317
|
+
customComponent: QuestionList,
|
|
318
|
+
requiredIf: ({ objectState }) => {
|
|
319
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
320
|
+
return (objectState.answerTypeSelect ===
|
|
321
|
+
InterventionQuestion?.answerTypeSelect.ValueList &&
|
|
322
|
+
objectState.isRequired);
|
|
323
|
+
},
|
|
324
|
+
hideIf: ({ objectState }) => {
|
|
325
|
+
const InterventionQuestion = getTypes().InterventionQuestion;
|
|
326
|
+
return (objectState.answerTypeSelect !==
|
|
327
|
+
InterventionQuestion?.answerTypeSelect.ValueList);
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
};
|
|
333
|
+
//# sourceMappingURL=forms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forms.js","sourceRoot":"","sources":["../../src/models/forms.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAGL,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,UAAU,GACX,MAAM,eAAe,CAAC;AAEvB,MAAM,wBAAwB,GAAG,SAAS,CAAC,EAAE;IAC3C,OAAO,CAAC,EAAC,WAAW,EAAE,GAAG,KAAK,EAAyB,EAAE,EAAE,CACzD,SAAS,CAAC,EAAC,GAAG,KAAK,EAAE,UAAU,EAAE,WAAW,CAAC,OAAO,EAAE,EAAE,EAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAgB;IACrD,sBAAsB,EAAE;QACtB,SA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intervention_modelAPI } from './objectFields';
|
|
3
|
+
export { intervention_searchFields } from './searchFields';
|
|
4
|
+
export { intervention_sortFields } from './sortFields';
|
|
5
|
+
export { intervention_typeObjects } from './typeObjects';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 { intervention_formsRegister } from './forms';
|
|
19
|
+
export { intervention_modelAPI } from './objectFields';
|
|
20
|
+
export { intervention_searchFields } from './searchFields';
|
|
21
|
+
export { intervention_sortFields } from './sortFields';
|
|
22
|
+
export { intervention_typeObjects } from './typeObjects';
|
|
23
|
+
//# 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,0BAA0B,EAAC,MAAM,SAAS,CAAC;AACnD,OAAO,EAAC,qBAAqB,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,yBAAyB,EAAC,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAC,uBAAuB,EAAC,MAAM,cAAc,CAAC;AACrD,OAAO,EAAC,wBAAwB,EAAC,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 intervention_modelAPI = {
|
|
20
|
+
intervention_intervention: schemaContructor.object({
|
|
21
|
+
statusSelect: schemaContructor.number(),
|
|
22
|
+
deliveredPartner: schemaContructor.subObject().concat(schemaContructor.object({
|
|
23
|
+
fullName: schemaContructor.string(),
|
|
24
|
+
picture: schemaContructor.subObject(),
|
|
25
|
+
})),
|
|
26
|
+
sequence: schemaContructor.string(),
|
|
27
|
+
planifStartDateTime: schemaContructor.string(),
|
|
28
|
+
startDateTime: schemaContructor.string(),
|
|
29
|
+
totalDuration: schemaContructor.number(),
|
|
30
|
+
lastStartDateTime: schemaContructor.string(),
|
|
31
|
+
interventionType: schemaContructor.subObject().concat(schemaContructor.object({
|
|
32
|
+
name: schemaContructor.string(),
|
|
33
|
+
})),
|
|
34
|
+
address: schemaContructor.subObject().concat(schemaContructor.object({
|
|
35
|
+
fullName: schemaContructor.string(),
|
|
36
|
+
})),
|
|
37
|
+
assignedTo: schemaContructor.subObject(),
|
|
38
|
+
contact: schemaContructor.subObject().concat(schemaContructor.object({
|
|
39
|
+
mobilePhone: schemaContructor.string(),
|
|
40
|
+
fixedPhone: schemaContructor.string(),
|
|
41
|
+
emailAddress: schemaContructor.subObject('address'),
|
|
42
|
+
})),
|
|
43
|
+
customerRequest: schemaContructor.subObject().concat(schemaContructor.object({
|
|
44
|
+
maxGitDateTime: schemaContructor.string(),
|
|
45
|
+
maxGrtDateTime: schemaContructor.string(),
|
|
46
|
+
realGit: schemaContructor.number(),
|
|
47
|
+
realGrt: schemaContructor.number(),
|
|
48
|
+
onCallManagement: schemaContructor.boolean(),
|
|
49
|
+
})),
|
|
50
|
+
description: schemaContructor.string(),
|
|
51
|
+
contract: schemaContructor.subObject().concat(schemaContructor.object({
|
|
52
|
+
guaranteedInterventionTime: schemaContructor.number(),
|
|
53
|
+
guaranteedRecoveryTime: schemaContructor.number(),
|
|
54
|
+
})),
|
|
55
|
+
equipmentSet: schemaContructor.array().of(schemaContructor.subObject()),
|
|
56
|
+
updatedOn: schemaContructor.string(),
|
|
57
|
+
}),
|
|
58
|
+
intervention_equipment: schemaContructor.object({
|
|
59
|
+
sequence: schemaContructor.string(),
|
|
60
|
+
name: schemaContructor.string(),
|
|
61
|
+
code: schemaContructor.string(),
|
|
62
|
+
inService: schemaContructor.boolean(),
|
|
63
|
+
equipmentFamily: schemaContructor.subObject(),
|
|
64
|
+
parentEquipment: schemaContructor.subObject(),
|
|
65
|
+
partner: schemaContructor.subObject(),
|
|
66
|
+
typeSelect: schemaContructor.string(),
|
|
67
|
+
commissioningDate: schemaContructor.string(),
|
|
68
|
+
customerWarrantyOnPartEndDate: schemaContructor.string(),
|
|
69
|
+
scheduleOfOperation: schemaContructor.string(),
|
|
70
|
+
specificAccessSchedule: schemaContructor.string(),
|
|
71
|
+
comments: schemaContructor.string(),
|
|
72
|
+
contract: schemaContructor.subObject(),
|
|
73
|
+
}),
|
|
74
|
+
intervention_equipmentLine: schemaContructor.object({
|
|
75
|
+
trackingNumber: schemaContructor.subObject('trackingNumberSeq'),
|
|
76
|
+
product: schemaContructor.subObject().concat(schemaContructor.object({
|
|
77
|
+
name: schemaContructor.string(),
|
|
78
|
+
code: schemaContructor.string(),
|
|
79
|
+
unit: schemaContructor.subObject(),
|
|
80
|
+
})),
|
|
81
|
+
comments: schemaContructor.string(),
|
|
82
|
+
quantity: schemaContructor.string(),
|
|
83
|
+
}),
|
|
84
|
+
intervention_equipmentFamily: schemaContructor.object({
|
|
85
|
+
name: schemaContructor.string(),
|
|
86
|
+
}),
|
|
87
|
+
intervention_contract: schemaContructor.object({
|
|
88
|
+
name: schemaContructor.string(),
|
|
89
|
+
}),
|
|
90
|
+
intervention_partner: schemaContructor.object({
|
|
91
|
+
simpleFullName: schemaContructor.string(),
|
|
92
|
+
fullName: schemaContructor.string(),
|
|
93
|
+
name: schemaContructor.string(),
|
|
94
|
+
partnerSeq: schemaContructor.string(),
|
|
95
|
+
user: schemaContructor.subObject('fullName'),
|
|
96
|
+
}),
|
|
97
|
+
intervention_question: schemaContructor.object({
|
|
98
|
+
interventionRange: schemaContructor.subObject().concat(schemaContructor.object({
|
|
99
|
+
name: schemaContructor.string(),
|
|
100
|
+
equipment: schemaContructor.subObject('name'),
|
|
101
|
+
rangeVal: schemaContructor.subObject('title'),
|
|
102
|
+
})),
|
|
103
|
+
title: schemaContructor.string(),
|
|
104
|
+
isAnswered: schemaContructor.boolean(),
|
|
105
|
+
isConditional: schemaContructor.boolean(),
|
|
106
|
+
conditionalAnswerValueSet: schemaContructor.subObject(),
|
|
107
|
+
conditionalInterventionQuestion: schemaContructor.subObject(),
|
|
108
|
+
isRequired: schemaContructor.boolean(),
|
|
109
|
+
indicationText: schemaContructor.string(),
|
|
110
|
+
isPrivate: schemaContructor.boolean(),
|
|
111
|
+
listAnswer: schemaContructor.subObject(),
|
|
112
|
+
indication: schemaContructor.string(),
|
|
113
|
+
answerTypeSelect: schemaContructor.string(),
|
|
114
|
+
advancedMonitoringAnswer: schemaContructor.string(),
|
|
115
|
+
checkboxName: schemaContructor.string(),
|
|
116
|
+
checkboxAnswer: schemaContructor.boolean(),
|
|
117
|
+
dateAnswer: schemaContructor.string(),
|
|
118
|
+
desiredUnit: schemaContructor.subObject(),
|
|
119
|
+
measureAnswer: schemaContructor.number(),
|
|
120
|
+
pictureAnswer: schemaContructor.subObject(),
|
|
121
|
+
signatureAnswer: schemaContructor.subObject(),
|
|
122
|
+
textAnswer: schemaContructor.string(),
|
|
123
|
+
answerValueList: schemaContructor.array().of(schemaContructor.subObject()),
|
|
124
|
+
}),
|
|
125
|
+
intervention_range: schemaContructor.object({
|
|
126
|
+
equipment: schemaContructor.subObject('name'),
|
|
127
|
+
rangeVal: schemaContructor.subObject('title'),
|
|
128
|
+
}),
|
|
129
|
+
intervention_interventionNote: schemaContructor.object({
|
|
130
|
+
type: schemaContructor.subObject('attachedFile'),
|
|
131
|
+
partner: schemaContructor.subObject(),
|
|
132
|
+
metaFile: schemaContructor.subObject('fileName'),
|
|
133
|
+
description: schemaContructor.string(),
|
|
134
|
+
createdOn: schemaContructor.string(),
|
|
135
|
+
updatedOn: schemaContructor.string(),
|
|
136
|
+
createdBy: schemaContructor.subObject(),
|
|
137
|
+
updatedBy: schemaContructor.subObject(),
|
|
138
|
+
}),
|
|
139
|
+
intervention_equipmentPicture: schemaContructor.object({
|
|
140
|
+
pictureFile: schemaContructor.subObject(),
|
|
141
|
+
}),
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=objectFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectFields.js","sourceRoot":"","sources":["../../src/models/objectFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAe,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEvE,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,yBAAyB,EAAE,gBAAgB,CAAC,MAAM,CAAC;QACjD,YAAY,EAAE,gBAA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AC9C,CAAC;IACF,6BAA6B,EAAE,gBAAgB,CAAC,MAAM,CAAC;QACrD,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,cAAc,CAAC;QAChD,OAAO,EAAE,gBAAgB,CAAC,SAAS,EAAE;QACrC,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;QAChD,WAAW,EAAE,gBAAgB,CAAC,MAAM,EAAE;QACtC,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE;QACpC,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE;QACpC,SAAS,EAAE,gBAAgB,CAAC,SAAS,EAAE;QACvC,SAAS,EAAE,gBAAgB,CAAC,SAAS,EAAE;KACxC,CAAC;IACF,6BAA6B,EAAE,gBAAgB,CAAC,MAAM,CAAC;QACrD,WAAW,EAAE,gBAAgB,CAAC,SAAS,EAAE;KAC1C,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 const intervention_searchFields = {
|
|
19
|
+
intervention_intervention: ['sequence', 'deliveredPartner.fullName'],
|
|
20
|
+
intervention_contract: ['name'],
|
|
21
|
+
intervention_equipment: ['sequence', 'code', 'name', 'equipmentFamily.name'],
|
|
22
|
+
intervention_equipmentFamily: ['name'],
|
|
23
|
+
intervention_partner: [
|
|
24
|
+
'simpleFullName',
|
|
25
|
+
'partnerSeq',
|
|
26
|
+
'mainAddress.fullName',
|
|
27
|
+
'mobilePhone',
|
|
28
|
+
'fixedPhone',
|
|
29
|
+
'emailAddress.name',
|
|
30
|
+
],
|
|
31
|
+
intervention_interventionNote: ['description', 'metaFile.fileName'],
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=searchFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchFields.js","sourceRoot":"","sources":["../../src/models/searchFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAAiB;IACrD,yBAAyB,EAAE,CAAC,UAAU,EAAE,2BAA2B,CAAC;IACpE,qBAAqB,EAAE,CAAC,MAAM,CAAC;IAC/B,sBAAsB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,CAAC;IAC5E,4BAA4B,EAAE,CAAC,MAAM,CAAC;IACtC,oBAAoB,EAAE;QACpB,gBAAgB;QAChB,YAAY;QACZ,sBAAsB;QACtB,aAAa;QACb,YAAY;QACZ,mBAAmB;KACpB;IACD,6BAA6B,EAAE,CAAC,aAAa,EAAE,mBAAmB,CAAC;CACpE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2024 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 const intervention_sortFields = {
|
|
19
|
+
intervention_intervention: ['planifStartDateTime'],
|
|
20
|
+
intervention_activeIntervention: ['-updatedOn'],
|
|
21
|
+
intervention_contract: ['name'],
|
|
22
|
+
intervention_equipment: ['sequence'],
|
|
23
|
+
intervention_equipmentFamily: ['name'],
|
|
24
|
+
intervention_equipmentLine: ['product.name'],
|
|
25
|
+
intervention_question: ['interventionRange.orderSeq', 'orderSeq'],
|
|
26
|
+
intervention_interventionNote: ['-createdOn'],
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=sortFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortFields.js","sourceRoot":"","sources":["../../src/models/sortFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,CAAC,MAAM,uBAAuB,GAAe;IACjD,yBAAyB,EAAE,CAAC,qBAAqB,CAAC;IAClD,+BAA+B,EAAE,CAAC,YAAY,CAAC;IAC/C,qBAAqB,EAAE,CAAC,MAAM,CAAC;IAC/B,sBAAsB,EAAE,CAAC,UAAU,CAAC;IACpC,4BAA4B,EAAE,CAAC,MAAM,CAAC;IACtC,0BAA0B,EAAE,CAAC,cAAc,CAAC;IAC5C,qBAAqB,EAAE,CAAC,4BAA4B,EAAE,UAAU,CAAC;IACjE,6BAA6B,EAAE,CAAC,YAAY,CAAC;CAC9C,CAAC"}
|