@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.
Files changed (271) hide show
  1. package/README.md +46 -0
  2. package/lib/api/client-and-prospect-api.d.ts +4 -0
  3. package/lib/api/client-and-prospect-api.js +57 -0
  4. package/lib/api/client-and-prospect-api.js.map +1 -0
  5. package/lib/api/contract-api.d.ts +5 -0
  6. package/lib/api/contract-api.js +45 -0
  7. package/lib/api/contract-api.js.map +1 -0
  8. package/lib/api/equipment-api.d.ts +43 -0
  9. package/lib/api/equipment-api.js +212 -0
  10. package/lib/api/equipment-api.js.map +1 -0
  11. package/lib/api/equipment-family-api.d.ts +4 -0
  12. package/lib/api/equipment-family-api.js +28 -0
  13. package/lib/api/equipment-family-api.js.map +1 -0
  14. package/lib/api/equipment-line-api.d.ts +4 -0
  15. package/lib/api/equipment-line-api.js +38 -0
  16. package/lib/api/equipment-line-api.js.map +1 -0
  17. package/lib/api/equipment-picture-api.d.ts +14 -0
  18. package/lib/api/equipment-picture-api.js +56 -0
  19. package/lib/api/equipment-picture-api.js.map +1 -0
  20. package/lib/api/index.d.ts +9 -0
  21. package/lib/api/index.js +27 -0
  22. package/lib/api/index.js.map +1 -0
  23. package/lib/api/intervention-api.d.ts +34 -0
  24. package/lib/api/intervention-api.js +149 -0
  25. package/lib/api/intervention-api.js.map +1 -0
  26. package/lib/api/intervention-note-api.d.ts +19 -0
  27. package/lib/api/intervention-note-api.js +79 -0
  28. package/lib/api/intervention-note-api.js.map +1 -0
  29. package/lib/api/question-api.d.ts +14 -0
  30. package/lib/api/question-api.js +78 -0
  31. package/lib/api/question-api.js.map +1 -0
  32. package/lib/components/atoms/EquipmentCard/EquipmentCard.d.ts +11 -0
  33. package/lib/components/atoms/EquipmentCard/EquipmentCard.js +65 -0
  34. package/lib/components/atoms/EquipmentCard/EquipmentCard.js.map +1 -0
  35. package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.d.ts +12 -0
  36. package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.js +42 -0
  37. package/lib/components/atoms/EquipmentLineCard/EquipmentLineCard.js.map +1 -0
  38. package/lib/components/atoms/InterventionCard/InterventionCard.d.ts +15 -0
  39. package/lib/components/atoms/InterventionCard/InterventionCard.js +97 -0
  40. package/lib/components/atoms/InterventionCard/InterventionCard.js.map +1 -0
  41. package/lib/components/atoms/NoteCard/NoteCard.d.ts +12 -0
  42. package/lib/components/atoms/NoteCard/NoteCard.js +65 -0
  43. package/lib/components/atoms/NoteCard/NoteCard.js.map +1 -0
  44. package/lib/components/atoms/PictureCard/PictureCard.d.ts +10 -0
  45. package/lib/components/atoms/PictureCard/PictureCard.js +71 -0
  46. package/lib/components/atoms/PictureCard/PictureCard.js.map +1 -0
  47. package/lib/components/atoms/QuestionCard/QuestionCard.d.ts +10 -0
  48. package/lib/components/atoms/QuestionCard/QuestionCard.js +67 -0
  49. package/lib/components/atoms/QuestionCard/QuestionCard.js.map +1 -0
  50. package/lib/components/atoms/index.d.ts +6 -0
  51. package/lib/components/atoms/index.js +24 -0
  52. package/lib/components/atoms/index.js.map +1 -0
  53. package/lib/components/index.d.ts +5 -0
  54. package/lib/components/index.js +23 -0
  55. package/lib/components/index.js.map +1 -0
  56. package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.d.ts +9 -0
  57. package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.js +32 -0
  58. package/lib/components/molecules/DropdownGeneralView/DropdownGeneralView.js.map +1 -0
  59. package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.d.ts +19 -0
  60. package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.js +77 -0
  61. package/lib/components/molecules/EquipmentActionCard/EquipmentActionCard.js.map +1 -0
  62. package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.d.ts +3 -0
  63. package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.js +48 -0
  64. package/lib/components/molecules/EquipmentDetailsHeader/EquipmentDetailsHeader.js.map +1 -0
  65. package/lib/components/molecules/GtCard/GtCard.d.ts +11 -0
  66. package/lib/components/molecules/GtCard/GtCard.js +76 -0
  67. package/lib/components/molecules/GtCard/GtCard.js.map +1 -0
  68. package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.d.ts +19 -0
  69. package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.js +52 -0
  70. package/lib/components/molecules/InterventionDetailCard/InterventionDetailCard.js.map +1 -0
  71. package/lib/components/molecules/InterventionHeader/InterventionHeader.d.ts +6 -0
  72. package/lib/components/molecules/InterventionHeader/InterventionHeader.js +52 -0
  73. package/lib/components/molecules/InterventionHeader/InterventionHeader.js.map +1 -0
  74. package/lib/components/molecules/NoteDetailCard/NoteDetailCard.d.ts +19 -0
  75. package/lib/components/molecules/NoteDetailCard/NoteDetailCard.js +68 -0
  76. package/lib/components/molecules/NoteDetailCard/NoteDetailCard.js.map +1 -0
  77. package/lib/components/molecules/PicturesRow/PicturesRow.d.ts +10 -0
  78. package/lib/components/molecules/PicturesRow/PicturesRow.js +36 -0
  79. package/lib/components/molecules/PicturesRow/PicturesRow.js.map +1 -0
  80. package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.d.ts +9 -0
  81. package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.js +31 -0
  82. package/lib/components/molecules/QuestionAdvancedMonitoring/QuestionAdvancedMonitoring.js.map +1 -0
  83. package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.d.ts +7 -0
  84. package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.js +36 -0
  85. package/lib/components/molecules/QuestionCheckbox/QuestionCheckbox.js.map +1 -0
  86. package/lib/components/molecules/QuestionList/QuestionList.d.ts +9 -0
  87. package/lib/components/molecules/QuestionList/QuestionList.js +29 -0
  88. package/lib/components/molecules/QuestionList/QuestionList.js.map +1 -0
  89. package/lib/components/molecules/QuestionMeasure/QuestionMeasure.d.ts +9 -0
  90. package/lib/components/molecules/QuestionMeasure/QuestionMeasure.js +39 -0
  91. package/lib/components/molecules/QuestionMeasure/QuestionMeasure.js.map +1 -0
  92. package/lib/components/molecules/index.d.ts +12 -0
  93. package/lib/components/molecules/index.js +30 -0
  94. package/lib/components/molecules/index.js.map +1 -0
  95. package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.d.ts +4 -0
  96. package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.js +32 -0
  97. package/lib/components/organisms/ClientProspectSearchBar/ClientProspectSearchBar.js.map +1 -0
  98. package/lib/components/organisms/ContractSearchBar/ContractSearchBar.d.ts +4 -0
  99. package/lib/components/organisms/ContractSearchBar/ContractSearchBar.js +35 -0
  100. package/lib/components/organisms/ContractSearchBar/ContractSearchBar.js.map +1 -0
  101. package/lib/components/organisms/DropdownCards/DropdownCards.d.ts +6 -0
  102. package/lib/components/organisms/DropdownCards/DropdownCards.js +45 -0
  103. package/lib/components/organisms/DropdownCards/DropdownCards.js.map +1 -0
  104. package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.d.ts +4 -0
  105. package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.js +35 -0
  106. package/lib/components/organisms/EquipmentFamilySearchBar/EquipmentFamilySearchBar.js.map +1 -0
  107. package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.d.ts +5 -0
  108. package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.js +50 -0
  109. package/lib/components/organisms/EquipmentModeSwitch/EquipmentModeSwitch.js.map +1 -0
  110. package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.d.ts +8 -0
  111. package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.js +32 -0
  112. package/lib/components/organisms/InterventionNoteTypePicker/InterventionNoteTypePicker.js.map +1 -0
  113. package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.d.ts +4 -0
  114. package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.js +36 -0
  115. package/lib/components/organisms/PlaceEquipmentSearchBar/PlaceEquipmentSearchBar.js.map +1 -0
  116. package/lib/components/organisms/TypePicker/TypePicker.d.ts +4 -0
  117. package/lib/components/organisms/TypePicker/TypePicker.js +29 -0
  118. package/lib/components/organisms/TypePicker/TypePicker.js.map +1 -0
  119. package/lib/components/organisms/index.d.ts +8 -0
  120. package/lib/components/organisms/index.js +26 -0
  121. package/lib/components/organisms/index.js.map +1 -0
  122. package/lib/components/pages/EquipmentView/EquipmentView.d.ts +3 -0
  123. package/lib/components/pages/EquipmentView/EquipmentView.js +161 -0
  124. package/lib/components/pages/EquipmentView/EquipmentView.js.map +1 -0
  125. package/lib/components/pages/GeneralInformationView/GeneralInformationView.d.ts +3 -0
  126. package/lib/components/pages/GeneralInformationView/GeneralInformationView.js +94 -0
  127. package/lib/components/pages/GeneralInformationView/GeneralInformationView.js.map +1 -0
  128. package/lib/components/pages/HistoryView/HistoryView.d.ts +3 -0
  129. package/lib/components/pages/HistoryView/HistoryView.js +33 -0
  130. package/lib/components/pages/HistoryView/HistoryView.js.map +1 -0
  131. package/lib/components/pages/NoteView/NoteView.d.ts +3 -0
  132. package/lib/components/pages/NoteView/NoteView.js +47 -0
  133. package/lib/components/pages/NoteView/NoteView.js.map +1 -0
  134. package/lib/components/pages/SurveyView/SurveyView.d.ts +7 -0
  135. package/lib/components/pages/SurveyView/SurveyView.js +60 -0
  136. package/lib/components/pages/SurveyView/SurveyView.js.map +1 -0
  137. package/lib/components/pages/index.d.ts +5 -0
  138. package/lib/components/pages/index.js +23 -0
  139. package/lib/components/pages/index.js.map +1 -0
  140. package/lib/components/templates/InterventionsListView/InterventionsListView.d.ts +7 -0
  141. package/lib/components/templates/InterventionsListView/InterventionsListView.js +73 -0
  142. package/lib/components/templates/InterventionsListView/InterventionsListView.js.map +1 -0
  143. package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.d.ts +7 -0
  144. package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.js +70 -0
  145. package/lib/components/templates/LinkEquipmentPopup/LinkEquipmentPopup.js.map +1 -0
  146. package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.d.ts +7 -0
  147. package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.js +76 -0
  148. package/lib/components/templates/SurveyRangeNavigation/SurveyRangeNavigation.js.map +1 -0
  149. package/lib/components/templates/index.d.ts +3 -0
  150. package/lib/components/templates/index.js +21 -0
  151. package/lib/components/templates/index.js.map +1 -0
  152. package/lib/features/asyncFunctions-index.d.ts +9 -0
  153. package/lib/features/asyncFunctions-index.js +27 -0
  154. package/lib/features/asyncFunctions-index.js.map +1 -0
  155. package/lib/features/clientAndProspectSlice.d.ts +7 -0
  156. package/lib/features/clientAndProspectSlice.js +49 -0
  157. package/lib/features/clientAndProspectSlice.js.map +1 -0
  158. package/lib/features/contractSlice.d.ts +7 -0
  159. package/lib/features/contractSlice.js +49 -0
  160. package/lib/features/contractSlice.js.map +1 -0
  161. package/lib/features/equipmentFamilySlice.d.ts +7 -0
  162. package/lib/features/equipmentFamilySlice.js +49 -0
  163. package/lib/features/equipmentFamilySlice.js.map +1 -0
  164. package/lib/features/equipmentLineSlice.d.ts +7 -0
  165. package/lib/features/equipmentLineSlice.js +49 -0
  166. package/lib/features/equipmentLineSlice.js.map +1 -0
  167. package/lib/features/equipmentPictureSlice.d.ts +37 -0
  168. package/lib/features/equipmentPictureSlice.js +67 -0
  169. package/lib/features/equipmentPictureSlice.js.map +1 -0
  170. package/lib/features/equipmentSlice.d.ts +34 -0
  171. package/lib/features/equipmentSlice.js +205 -0
  172. package/lib/features/equipmentSlice.js.map +1 -0
  173. package/lib/features/index.d.ts +9 -0
  174. package/lib/features/index.js +27 -0
  175. package/lib/features/index.js.map +1 -0
  176. package/lib/features/interventionNoteSlice.d.ts +16 -0
  177. package/lib/features/interventionNoteSlice.js +114 -0
  178. package/lib/features/interventionNoteSlice.js.map +1 -0
  179. package/lib/features/interventionSlice.d.ts +21 -0
  180. package/lib/features/interventionSlice.js +140 -0
  181. package/lib/features/interventionSlice.js.map +1 -0
  182. package/lib/features/questionSlice.d.ts +14 -0
  183. package/lib/features/questionSlice.js +104 -0
  184. package/lib/features/questionSlice.js.map +1 -0
  185. package/lib/hooks/use-intervention-header-actions.d.ts +1 -0
  186. package/lib/hooks/use-intervention-header-actions.js +141 -0
  187. package/lib/hooks/use-intervention-header-actions.js.map +1 -0
  188. package/lib/i18n/en.json +106 -0
  189. package/lib/i18n/fr.json +106 -0
  190. package/lib/index.d.ts +7 -0
  191. package/lib/index.js +94 -0
  192. package/lib/index.js.map +1 -0
  193. package/lib/models/forms.d.ts +2 -0
  194. package/lib/models/forms.js +333 -0
  195. package/lib/models/forms.js.map +1 -0
  196. package/lib/models/index.d.ts +5 -0
  197. package/lib/models/index.js +23 -0
  198. package/lib/models/index.js.map +1 -0
  199. package/lib/models/objectFields.d.ts +2 -0
  200. package/lib/models/objectFields.js +143 -0
  201. package/lib/models/objectFields.js.map +1 -0
  202. package/lib/models/searchFields.d.ts +2 -0
  203. package/lib/models/searchFields.js +33 -0
  204. package/lib/models/searchFields.js.map +1 -0
  205. package/lib/models/sortFields.d.ts +2 -0
  206. package/lib/models/sortFields.js +28 -0
  207. package/lib/models/sortFields.js.map +1 -0
  208. package/lib/models/typeObjects.d.ts +2 -0
  209. package/lib/models/typeObjects.js +205 -0
  210. package/lib/models/typeObjects.js.map +1 -0
  211. package/lib/screens/equipment/CustomerParkScreen.d.ts +3 -0
  212. package/lib/screens/equipment/CustomerParkScreen.js +56 -0
  213. package/lib/screens/equipment/CustomerParkScreen.js.map +1 -0
  214. package/lib/screens/equipment/EquipmentFormView.d.ts +6 -0
  215. package/lib/screens/equipment/EquipmentFormView.js +104 -0
  216. package/lib/screens/equipment/EquipmentFormView.js.map +1 -0
  217. package/lib/screens/equipment/EquipmentInterventionListScreen.d.ts +3 -0
  218. package/lib/screens/equipment/EquipmentInterventionListScreen.js +43 -0
  219. package/lib/screens/equipment/EquipmentInterventionListScreen.js.map +1 -0
  220. package/lib/screens/equipment/EquipmentLineListScreen.d.ts +3 -0
  221. package/lib/screens/equipment/EquipmentLineListScreen.js +37 -0
  222. package/lib/screens/equipment/EquipmentLineListScreen.js.map +1 -0
  223. package/lib/screens/equipment/EquipmentPictureScreen.d.ts +3 -0
  224. package/lib/screens/equipment/EquipmentPictureScreen.js +113 -0
  225. package/lib/screens/equipment/EquipmentPictureScreen.js.map +1 -0
  226. package/lib/screens/equipment/index.d.ts +45 -0
  227. package/lib/screens/equipment/index.js +61 -0
  228. package/lib/screens/equipment/index.js.map +1 -0
  229. package/lib/screens/intervention/ActiveInterventionScreen.d.ts +3 -0
  230. package/lib/screens/intervention/ActiveInterventionScreen.js +72 -0
  231. package/lib/screens/intervention/ActiveInterventionScreen.js.map +1 -0
  232. package/lib/screens/intervention/DayInterventionsScreen.d.ts +3 -0
  233. package/lib/screens/intervention/DayInterventionsScreen.js +33 -0
  234. package/lib/screens/intervention/DayInterventionsScreen.js.map +1 -0
  235. package/lib/screens/intervention/InterventionDetailsScreen.d.ts +7 -0
  236. package/lib/screens/intervention/InterventionDetailsScreen.js +83 -0
  237. package/lib/screens/intervention/InterventionDetailsScreen.js.map +1 -0
  238. package/lib/screens/intervention/InterventionNoteFormScreen.d.ts +6 -0
  239. package/lib/screens/intervention/InterventionNoteFormScreen.js +81 -0
  240. package/lib/screens/intervention/InterventionNoteFormScreen.js.map +1 -0
  241. package/lib/screens/intervention/InterventionQuestionFormScreen.d.ts +6 -0
  242. package/lib/screens/intervention/InterventionQuestionFormScreen.js +114 -0
  243. package/lib/screens/intervention/InterventionQuestionFormScreen.js.map +1 -0
  244. package/lib/screens/intervention/InterventionsHistoryScreen.d.ts +3 -0
  245. package/lib/screens/intervention/InterventionsHistoryScreen.js +29 -0
  246. package/lib/screens/intervention/InterventionsHistoryScreen.js.map +1 -0
  247. package/lib/screens/intervention/PlannedInterventionsScreen.d.ts +3 -0
  248. package/lib/screens/intervention/PlannedInterventionsScreen.js +29 -0
  249. package/lib/screens/intervention/PlannedInterventionsScreen.js.map +1 -0
  250. package/lib/screens/intervention/index.d.ts +79 -0
  251. package/lib/screens/intervention/index.js +89 -0
  252. package/lib/screens/intervention/index.js.map +1 -0
  253. package/lib/types/equipment.d.ts +7 -0
  254. package/lib/types/equipment.js +25 -0
  255. package/lib/types/equipment.js.map +1 -0
  256. package/lib/types/index.d.ts +3 -0
  257. package/lib/types/index.js +21 -0
  258. package/lib/types/index.js.map +1 -0
  259. package/lib/types/intervention.d.ts +4 -0
  260. package/lib/types/intervention.js +38 -0
  261. package/lib/types/intervention.js.map +1 -0
  262. package/lib/types/question.d.ts +4 -0
  263. package/lib/types/question.js +44 -0
  264. package/lib/types/question.js.map +1 -0
  265. package/lib/utils/form-types.d.ts +9 -0
  266. package/lib/utils/form-types.js +19 -0
  267. package/lib/utils/form-types.js.map +1 -0
  268. package/lib/utils/index.d.ts +1 -0
  269. package/lib/utils/index.js +19 -0
  270. package/lib/utils/index.js.map +1 -0
  271. package/package.json +47 -0
@@ -0,0 +1,34 @@
1
+ export function fetchIntervention({ searchValue, userId, deliveredPartnerId, date, statusList, page, }: {
2
+ searchValue: any;
3
+ userId: any;
4
+ deliveredPartnerId: any;
5
+ date: any;
6
+ statusList: any;
7
+ page?: number;
8
+ }): Promise<any>;
9
+ export function fetchInterventionById({ interventionId }: {
10
+ interventionId: any;
11
+ }): Promise<any>;
12
+ export function searchHistoryInterventionByEquipment({ page, statusList, equipmentId, }: {
13
+ page: any;
14
+ statusList: any;
15
+ equipmentId: any;
16
+ }): Promise<any>;
17
+ export function fetchActiveIntervention({ userId }: {
18
+ userId: any;
19
+ }): Promise<any>;
20
+ export function updateInterventionStatus({ interventionId, version, targetStatus, }: {
21
+ interventionId: any;
22
+ version: any;
23
+ targetStatus: any;
24
+ }): Promise<any>;
25
+ export function linkEquipment({ interventionId, interventionVersion, equipmentId, }: {
26
+ interventionId: any;
27
+ interventionVersion: any;
28
+ equipmentId: any;
29
+ }): Promise<any>;
30
+ export function unlinkEquipment({ interventionId, interventionVersion, equipmentId, }: {
31
+ interventionId: any;
32
+ interventionVersion: any;
33
+ equipmentId: any;
34
+ }): Promise<any>;
@@ -0,0 +1,149 @@
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 { axiosApiProvider, createStandardFetch, createStandardSearch, getEndOfDay, getNowDateZonesISOString, getSearchCriterias, getStartOfDay, getTypes, } from '@axelor/aos-mobile-core';
19
+ const createInterventionCriteria = (searchValue, userId, deliveredPartnerId, date, statusList) => {
20
+ const criteria = [
21
+ getSearchCriterias('intervention_intervention', searchValue),
22
+ ];
23
+ if (userId != null) {
24
+ criteria.push({
25
+ fieldName: 'assignedTo.employee.user.id',
26
+ operator: '=',
27
+ value: userId,
28
+ });
29
+ }
30
+ if (deliveredPartnerId != null) {
31
+ criteria.push({
32
+ fieldName: 'deliveredPartner.id',
33
+ operator: '=',
34
+ value: deliveredPartnerId,
35
+ });
36
+ }
37
+ if (date != null) {
38
+ const startDate = getStartOfDay(date).toISOString();
39
+ const endDate = getEndOfDay(date).toISOString();
40
+ criteria.push({
41
+ operator: 'and',
42
+ criteria: [
43
+ {
44
+ fieldName: 'planifStartDateTime',
45
+ operator: '>=',
46
+ value: startDate,
47
+ },
48
+ {
49
+ fieldName: 'planifStartDateTime',
50
+ operator: '<=',
51
+ value: endDate,
52
+ },
53
+ ],
54
+ });
55
+ }
56
+ if (Array.isArray(statusList) && statusList.length > 0) {
57
+ criteria.push({
58
+ operator: 'or',
59
+ criteria: statusList.map(status => ({
60
+ fieldName: 'statusSelect',
61
+ operator: '=',
62
+ value: status,
63
+ })),
64
+ });
65
+ }
66
+ return criteria;
67
+ };
68
+ const createInterventionHistoryCriteria = (statusList, equipmentId) => {
69
+ const criteria = [];
70
+ if (Array.isArray(statusList) && statusList.length > 0) {
71
+ criteria.push({
72
+ operator: 'or',
73
+ criteria: statusList.map(status => ({
74
+ fieldName: 'statusSelect',
75
+ operator: '=',
76
+ value: status,
77
+ })),
78
+ });
79
+ }
80
+ return criteria;
81
+ };
82
+ export async function fetchIntervention({ searchValue, userId, deliveredPartnerId, date, statusList, page = 0, }) {
83
+ return createStandardSearch({
84
+ model: 'com.axelor.apps.intervention.db.Intervention',
85
+ criteria: createInterventionCriteria(searchValue, userId, deliveredPartnerId, date, statusList),
86
+ fieldKey: 'intervention_intervention',
87
+ sortKey: 'intervention_intervention',
88
+ page,
89
+ });
90
+ }
91
+ export async function fetchInterventionById({ interventionId }) {
92
+ return createStandardFetch({
93
+ model: 'com.axelor.apps.intervention.db.Intervention',
94
+ id: interventionId,
95
+ fieldKey: 'intervention_intervention',
96
+ });
97
+ }
98
+ export async function searchHistoryInterventionByEquipment({ page, statusList, equipmentId, }) {
99
+ return createStandardSearch({
100
+ model: 'com.axelor.apps.intervention.db.Intervention',
101
+ criteria: createInterventionHistoryCriteria(statusList, equipmentId),
102
+ domain: ':equipment MEMBER OF self.equipmentSet',
103
+ domainContext: {
104
+ equipment: {
105
+ id: equipmentId,
106
+ },
107
+ },
108
+ fieldKey: 'intervention_intervention',
109
+ sortKey: 'intervention_intervention',
110
+ page,
111
+ });
112
+ }
113
+ export async function fetchActiveIntervention({ userId }) {
114
+ const Intervention = getTypes().Intervention;
115
+ return createStandardSearch({
116
+ model: 'com.axelor.apps.intervention.db.Intervention',
117
+ criteria: createInterventionCriteria(null, userId, null, null, [
118
+ Intervention?.statusSelect.Started,
119
+ Intervention?.statusSelect.Suspended,
120
+ ]),
121
+ fieldKey: 'intervention_intervention',
122
+ sortKey: 'intervention_activeIntervention',
123
+ numberElementsByPage: 1,
124
+ page: 0,
125
+ });
126
+ }
127
+ export async function updateInterventionStatus({ interventionId, version, targetStatus, }) {
128
+ return axiosApiProvider.put({
129
+ url: `ws/aos/intervention/status/${interventionId}`,
130
+ data: {
131
+ toStatus: targetStatus,
132
+ dateTime: getNowDateZonesISOString(),
133
+ version,
134
+ },
135
+ });
136
+ }
137
+ export async function linkEquipment({ interventionId, interventionVersion, equipmentId, }) {
138
+ return axiosApiProvider.put({
139
+ url: `ws/aos/intervention/add-equipment/${interventionId}`,
140
+ data: { equipmentId, version: interventionVersion },
141
+ });
142
+ }
143
+ export async function unlinkEquipment({ interventionId, interventionVersion, equipmentId, }) {
144
+ return axiosApiProvider.put({
145
+ url: `ws/aos/intervention/remove-equipment/${interventionId}`,
146
+ data: { equipmentId, version: interventionVersion },
147
+ });
148
+ }
149
+ //# sourceMappingURL=intervention-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intervention-api.js","sourceRoot":"","sources":["../../src/api/intervention-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACb,QAAQ,GACT,MAAM,yBAAyB,CAAC;AAEjC,MAAM,0BAA0B,GAAG,CACjC,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,IAAI,EACJ,UAAU,EACV,EAAE;IACF,MAAM,QAAQ,GAAG;QACf,kBAAkB,CAAC,2BAA2B,EAAE,WAAW,CAAC;KAC7D,CAAC;IAEF,IAAI,MAAM,IAAI,IAAI,EAAE;QAClB,QAAQ,CA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AAE,wCAAwC,cAAc,EAAE;QAC7D,IAAI,EAAE,EAAC,WAAW,EAAE,OAAO,EAAE,mBAAmB,EAAC;KAClD,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,19 @@
1
+ export function fetchInterventionNote({ searchValue, deliveredPartnerId, noteTypeId, page, }: {
2
+ searchValue: any;
3
+ deliveredPartnerId: any;
4
+ noteTypeId: any;
5
+ page?: number;
6
+ }): Promise<any>;
7
+ export function fetchInterventionNoteById({ interventionNoteId }: {
8
+ interventionNoteId: any;
9
+ }): Promise<any>;
10
+ export function fetchInterventionNoteType(): Promise<any>;
11
+ export function createInterventionNote({ interventionNote }: {
12
+ interventionNote: any;
13
+ }): Promise<any>;
14
+ export function updateInterventionNote({ interventionNote }: {
15
+ interventionNote: any;
16
+ }): Promise<any>;
17
+ export function deleteInterventionNote({ interventionNoteId }: {
18
+ interventionNoteId: any;
19
+ }): Promise<any>;
@@ -0,0 +1,79 @@
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 { axiosApiProvider, createStandardFetch, createStandardSearch, getSearchCriterias, } from '@axelor/aos-mobile-core';
19
+ const createInterventionNoteCriteria = (searchValue, deliveredPartnerId, noteTypeId) => {
20
+ const criteria = [
21
+ getSearchCriterias('intervention_interventionNote', searchValue),
22
+ {
23
+ fieldName: 'partner.id',
24
+ operator: '=',
25
+ value: deliveredPartnerId,
26
+ },
27
+ ];
28
+ if (noteTypeId != null) {
29
+ criteria.push({
30
+ fieldName: 'type.id',
31
+ operator: '=',
32
+ value: noteTypeId,
33
+ });
34
+ }
35
+ return criteria;
36
+ };
37
+ export async function fetchInterventionNote({ searchValue, deliveredPartnerId, noteTypeId, page = 0, }) {
38
+ return createStandardSearch({
39
+ model: 'com.axelor.apps.intervention.db.InterventionNote',
40
+ criteria: createInterventionNoteCriteria(searchValue, deliveredPartnerId, noteTypeId),
41
+ fieldKey: 'intervention_interventionNote',
42
+ sortKey: 'intervention_interventionNote',
43
+ page,
44
+ });
45
+ }
46
+ export async function fetchInterventionNoteById({ interventionNoteId }) {
47
+ return createStandardFetch({
48
+ model: 'com.axelor.apps.intervention.db.InterventionNote',
49
+ id: interventionNoteId,
50
+ fieldKey: 'intervention_interventionNote',
51
+ });
52
+ }
53
+ export async function fetchInterventionNoteType() {
54
+ return axiosApiProvider.get({
55
+ url: '/ws/rest/com.axelor.apps.intervention.db.InterventionNoteType',
56
+ });
57
+ }
58
+ export async function createInterventionNote({ interventionNote }) {
59
+ return axiosApiProvider.post({
60
+ url: 'ws/rest/com.axelor.apps.intervention.db.InterventionNote',
61
+ data: {
62
+ data: interventionNote,
63
+ },
64
+ });
65
+ }
66
+ export async function updateInterventionNote({ interventionNote }) {
67
+ return axiosApiProvider.post({
68
+ url: `ws/rest/com.axelor.apps.intervention.db.InterventionNote/${interventionNote.id}`,
69
+ data: {
70
+ data: interventionNote,
71
+ },
72
+ });
73
+ }
74
+ export async function deleteInterventionNote({ interventionNoteId }) {
75
+ return axiosApiProvider.delete({
76
+ url: `ws/rest/com.axelor.apps.intervention.db.InterventionNote/${interventionNoteId}`,
77
+ });
78
+ }
79
+ //# sourceMappingURL=intervention-note-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intervention-note-api.js","sourceRoot":"","sources":["../../src/api/intervention-note-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,gBAAgB,EA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B,EAAC;IAC7D,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,0DAA0D;QAC/D,IAAI,EAAE;YACJ,IAAI,EAAE,gBAAgB;SACvB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAAC,gBAAgB,EAAC;IAC7D,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,4DAA4D,gBAAgB,CAAC,EAAE,EAAE;QACtF,IAAI,EAAE;YACJ,IAAI,EAAE,gBAAgB;SACvB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAAC,kBAAkB,EAAC;IAC/D,OAAO,gBAAgB,CAAC,MAAM,CAAC;QAC7B,GAAG,EAAE,4DAA4D,kBAAkB,EAAE;KACtF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,14 @@
1
+ export function fetchQuestion({ interventionId, rangeId, page }: {
2
+ interventionId: any;
3
+ rangeId: any;
4
+ page?: number;
5
+ }): Promise<any>;
6
+ export function fetchQuestionById({ questionId }: {
7
+ questionId: any;
8
+ }): Promise<any>;
9
+ export function updateQuestion({ question }: {
10
+ question: any;
11
+ }): Promise<any>;
12
+ export function fetchRange({ interventionId }: {
13
+ interventionId: any;
14
+ }): Promise<any>;
@@ -0,0 +1,78 @@
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 { axiosApiProvider, createStandardFetch, createStandardSearch, } from '@axelor/aos-mobile-core';
19
+ const createQuestionCriteria = (interventionId, rangeId) => {
20
+ const criteria = [
21
+ {
22
+ fieldName: 'interventionRange.intervention.id',
23
+ operator: '=',
24
+ value: interventionId,
25
+ },
26
+ ];
27
+ if (rangeId != null) {
28
+ criteria.push({
29
+ fieldName: 'interventionRange.id',
30
+ operator: '=',
31
+ value: rangeId,
32
+ });
33
+ }
34
+ return criteria;
35
+ };
36
+ const createRangeCriteria = interventionId => {
37
+ return [
38
+ {
39
+ fieldName: 'intervention.id',
40
+ operator: '=',
41
+ value: interventionId,
42
+ },
43
+ ];
44
+ };
45
+ export async function fetchQuestion({ interventionId, rangeId, page = 0 }) {
46
+ return createStandardSearch({
47
+ model: 'com.axelor.apps.intervention.db.InterventionQuestion',
48
+ criteria: createQuestionCriteria(interventionId, rangeId),
49
+ fieldKey: 'intervention_question',
50
+ sortKey: 'intervention_question',
51
+ page,
52
+ });
53
+ }
54
+ export async function fetchQuestionById({ questionId }) {
55
+ return createStandardFetch({
56
+ model: 'com.axelor.apps.intervention.db.InterventionQuestion',
57
+ id: questionId,
58
+ fieldKey: 'intervention_question',
59
+ });
60
+ }
61
+ export async function updateQuestion({ question }) {
62
+ return axiosApiProvider.post({
63
+ url: `ws/rest/com.axelor.apps.intervention.db.InterventionQuestion/${question.id}`,
64
+ data: {
65
+ data: question,
66
+ },
67
+ });
68
+ }
69
+ export async function fetchRange({ interventionId }) {
70
+ return createStandardSearch({
71
+ model: 'com.axelor.apps.intervention.db.InterventionRange',
72
+ criteria: createRangeCriteria(interventionId),
73
+ fieldKey: 'intervention_range',
74
+ page: 0,
75
+ numberElementsByPage: null,
76
+ });
77
+ }
78
+ //# sourceMappingURL=question-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-api.js","sourceRoot":"","sources":["../../src/api/question-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;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AAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,gEAAgE,QAAQ,CAAC,EAAE,EAAE;QAClF,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAAC,cAAc,EAAC;IAC/C,OAAO,oBAAoB,CAAC;QAC1B,KAAK,EAAE,mDAAmD;QAC1D,QAAQ,EAAE,mBAAmB,CAAC,cAAc,CAAC;QAC7C,QAAQ,EAAE,oBAAoB;QAC9B,IAAI,EAAE,CAAC;QACP,oBAAoB,EAAE,IAAI;KAC3B,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface EquipmentCardProps {
3
+ style?: any;
4
+ sequence: string;
5
+ name: string;
6
+ code: string;
7
+ equipmentFamily: string;
8
+ inService: boolean;
9
+ }
10
+ declare const EquipmentCard: ({ style, sequence, name, code, equipmentFamily, inService, }: EquipmentCardProps) => React.JSX.Element;
11
+ export default EquipmentCard;
@@ -0,0 +1,65 @@
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 React, { useMemo } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { useTypes, useTypeHelpers } from '@axelor/aos-mobile-core';
21
+ import { ObjectCard } from '@axelor/aos-mobile-ui';
22
+ const EquipmentCard = ({ style, sequence, name, code, equipmentFamily, inService = false, }) => {
23
+ const { Equipment } = useTypes();
24
+ const { getItemColor } = useTypeHelpers();
25
+ const borderStyle = useMemo(() => {
26
+ return getStyles(getItemColor(Equipment?.serviceSelect, inService)?.background)?.border;
27
+ }, [Equipment?.serviceSelect, getItemColor, inService]);
28
+ return (<View style={style}>
29
+ <ObjectCard showArrow={false} style={[styles.objectCard, borderStyle]} upperTexts={{
30
+ items: [
31
+ { displayText: sequence, isTitle: true, numberOfLines: 1 },
32
+ {
33
+ indicatorText: code,
34
+ hideIfNull: true,
35
+ },
36
+ {
37
+ displayText: name,
38
+ hideIfNull: true,
39
+ },
40
+ {
41
+ indicatorText: equipmentFamily,
42
+ hideIfNull: true,
43
+ iconName: 'palette2',
44
+ },
45
+ ],
46
+ }}/>
47
+ </View>);
48
+ };
49
+ const getStyles = color => StyleSheet.create({
50
+ border: {
51
+ borderLeftWidth: 7,
52
+ borderLeftColor: color,
53
+ },
54
+ });
55
+ const styles = StyleSheet.create({
56
+ objectCard: {
57
+ minHeight: 100,
58
+ marginHorizontal: 0,
59
+ marginRight: 2,
60
+ marginVertical: 0,
61
+ paddingRight: 10,
62
+ },
63
+ });
64
+ export default EquipmentCard;
65
+ //# sourceMappingURL=EquipmentCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EquipmentCard.js","sourceRoot":"","sources":["../../../../src/components/atoms/EquipmentCard/EquipmentCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AAWjD,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ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C;IAC/B,UAAU,EAAE;QACV,SAAS,EAAE,GAAG;QACd,gBAAgB,EAAE,CAAC;QACnB,WAAW,EAAE,CAAC;QACd,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,EAAE;KACjB;CACF,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface EquipmentLineCardProps {
3
+ style?: any;
4
+ productName: string;
5
+ productCode: string;
6
+ trackingNumber: string;
7
+ comments: string;
8
+ quantity: string;
9
+ unit: string;
10
+ }
11
+ declare const EquipmentLineCard: ({ style, productName, productCode, trackingNumber, comments, quantity, unit, }: EquipmentLineCardProps) => React.JSX.Element;
12
+ export default EquipmentLineCard;
@@ -0,0 +1,42 @@
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 React from 'react';
19
+ import { ObjectCard, Text, useThemeColor } from '@axelor/aos-mobile-ui';
20
+ const EquipmentLineCard = ({ style, productName, productCode, trackingNumber, comments, quantity, unit, }) => {
21
+ const Colors = useThemeColor();
22
+ return (<ObjectCard style={style} showArrow={false} sideBadges={{
23
+ items: [
24
+ {
25
+ customComponent: (<Text writingType="important" textColor={Colors.successColor.background}>{`${quantity} ${unit}`}</Text>),
26
+ },
27
+ ],
28
+ }} upperTexts={{
29
+ items: [
30
+ { isTitle: true, displayText: productName },
31
+ { displayText: productCode },
32
+ {
33
+ iconName: 'qr-code',
34
+ indicatorText: trackingNumber,
35
+ hideIfNull: true,
36
+ },
37
+ { displayText: comments, numberOfLines: 2, hideIfNull: true },
38
+ ],
39
+ }}/>);
40
+ };
41
+ export default EquipmentLineCard;
42
+ //# sourceMappingURL=EquipmentLineCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EquipmentLineCard.js","sourceRoot":"","sources":["../../../../src/components/atoms/EquipmentLineCard/EquipmentLineCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAYtE,MAAM,iBAAiB,GAAG,CAAC,EACzB,KAAK,EACL,WAAW,EACX,WAAW,EACX,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,IAAI,GACmB,EAAE,EAAE;IAC3B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAE/B,OAAO,CACL,CAAC,UAAU,CACT,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,SAAS,CAAC,CAAC,KAAK,CAAC,CACjB,UAAU,CAAC,CAAC;YACV,KAAK,EAAE;gBACL;oBACE,eAAe,EAAE,CACf,CAAC,IAAI,CACH,WAAW,CAAC,WAAW,CACvB,SAAS,CAAC,CACR,MAAM,CAAC,YAAY,CAAC,UAAU,CAC/B,CAAC,CAAC,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,CACnC;iBACF;aACF;SACF,CAAC,CACF,UAAU,CAAC,CAAC;YACV,KAAK,EAAE;gBACL,EAAC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAC;gBACzC,EAAC,WAAW,EAAE,WAAW,EAAC;gBAC1B;oBACE,QAAQ,EAAE,SAAS;oBACnB,aAAa,EAAE,cAAc;oBAC7B,UAAU,EAAE,IAAI;iBACjB;gBACD,EAAC,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAC;aAC5D;SACF,CAAC,EACF,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ interface InterventionCardProps {
3
+ style?: any;
4
+ statusSelect: number;
5
+ deliveredPartner: any;
6
+ sequence: string;
7
+ planifStartDateTime: string;
8
+ interventionType: any;
9
+ address: any;
10
+ assignedTo: any;
11
+ isCopyCard?: boolean;
12
+ onPress: () => void;
13
+ }
14
+ declare const InterventionCard: ({ style, statusSelect, deliveredPartner, sequence, planifStartDateTime, interventionType, address, assignedTo, isCopyCard, onPress, }: InterventionCardProps) => React.JSX.Element;
15
+ export default InterventionCard;
@@ -0,0 +1,97 @@
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 React, { useMemo } from 'react';
19
+ import { StyleSheet, View } from 'react-native';
20
+ import { formatDateTime, useMetafileUri, useSelector, useTranslator, useTypes, useTypeHelpers, } from '@axelor/aos-mobile-core';
21
+ import { Icon, ObjectCard, useThemeColor } from '@axelor/aos-mobile-ui';
22
+ const InterventionCard = ({ style, statusSelect, deliveredPartner, sequence, planifStartDateTime, interventionType, address, assignedTo, isCopyCard = false, onPress, }) => {
23
+ const I18n = useTranslator();
24
+ const Colors = useThemeColor();
25
+ const formatMetaFile = useMetafileUri();
26
+ const { Intervention } = useTypes();
27
+ const { getItemColor } = useTypeHelpers();
28
+ const { userId } = useSelector((state) => state.auth);
29
+ const borderStyle = useMemo(() => getStyles(getItemColor(Intervention?.statusSelect, statusSelect)?.background)?.border, [Intervention?.statusSelect, getItemColor, statusSelect]);
30
+ return (<View style={style}>
31
+ <ObjectCard style={[styles.container, borderStyle]} showArrow={!isCopyCard} leftContainerFlex={6} onPress={onPress} image={{
32
+ defaultIconSize: 50,
33
+ imageSize: styles.imageSize,
34
+ resizeMode: 'contain',
35
+ source: formatMetaFile(deliveredPartner.picture?.id),
36
+ }} upperTexts={{
37
+ items: [
38
+ { displayText: sequence, isTitle: true },
39
+ {
40
+ displayText: deliveredPartner.fullName,
41
+ numberOfLines: 2,
42
+ },
43
+ ],
44
+ }} lowerTexts={{
45
+ items: [
46
+ {
47
+ indicatorText: formatDateTime(planifStartDateTime, I18n.t('Base_DateTimeFormat')),
48
+ iconName: 'calendar-event',
49
+ },
50
+ {
51
+ indicatorText: interventionType.name,
52
+ iconName: 'tools',
53
+ },
54
+ {
55
+ indicatorText: address.fullName,
56
+ iconName: 'geo-alt-fill',
57
+ hideIfNull: true,
58
+ },
59
+ {
60
+ indicatorText: assignedTo.fullName,
61
+ iconName: 'person-fill',
62
+ hideIf: assignedTo.id === userId,
63
+ },
64
+ ],
65
+ }} sideBadges={{
66
+ style: styles.badges,
67
+ items: [
68
+ isCopyCard && {
69
+ customComponent: (<Icon name="copy" color={Colors.secondaryColor.background}/>),
70
+ },
71
+ ],
72
+ }}/>
73
+ </View>);
74
+ };
75
+ const getStyles = color => StyleSheet.create({
76
+ border: {
77
+ borderLeftWidth: 7,
78
+ borderLeftColor: color,
79
+ },
80
+ });
81
+ const styles = StyleSheet.create({
82
+ container: {
83
+ flex: 1,
84
+ marginHorizontal: 1,
85
+ marginVertical: 1,
86
+ },
87
+ imageSize: {
88
+ height: 50,
89
+ width: 50,
90
+ },
91
+ badges: {
92
+ justifyContent: 'flex-end',
93
+ alignItems: 'flex-end',
94
+ },
95
+ });
96
+ export default InterventionCard;
97
+ //# sourceMappingURL=InterventionCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterventionCard.js","sourceRoot":"","sources":["../../../../src/components/atoms/InterventionCard/InterventionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACb,QAAQ,EACR,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,IAAI,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AAetE,MAAM,gBAAgB,GAAG,CAAC,EACxB,KAAK,EACL,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,EACP,UAAU,EACV,UAAU,GAAG,KAAK,EAClB,OAAO,GACe,EAAE,EAAE;IAC1B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,cAAc,GAAG,cAAc,EAAE,CAAC;IACxC,MAAM,EAAC,YAAY,EAAC,GAAG,QAAQ,EAAE,CAAC;IAClC,MAAM,EAAC,YAAY,EAAC,GAAG,cAAc,EAAE,CAAC;IAExC,MAAM,EAAC,MAAM,EAAC,GAAG,WAAW,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEzD,MAAM,WAAW,GAAG,OAAO,CACzB,GAAG,EAAE,CACH,SAAS,CACP,YAAY,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,UAAU,CACnE,EAAE,MAAM,EACX,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,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