@spytecgps/nova-orm 1.2.26 → 1.2.28

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 (1071) hide show
  1. package/dist/entities/acumaticaAmazonProduct.d.ts +8 -8
  2. package/dist/entities/acumaticaAmazonProduct.js +46 -46
  3. package/dist/entities/acumaticaImeiIccidData.d.ts +17 -17
  4. package/dist/entities/acumaticaImeiIccidData.js +92 -92
  5. package/dist/entities/acumaticaOrderShipmentDetails.d.ts +11 -11
  6. package/dist/entities/acumaticaOrderShipmentDetails.js +62 -62
  7. package/dist/entities/acumaticaShipment.d.ts +5 -5
  8. package/dist/entities/acumaticaShipment.js +31 -31
  9. package/dist/entities/acumaticaShipmentAmazon.d.ts +4 -4
  10. package/dist/entities/acumaticaShipmentAmazon.js +26 -26
  11. package/dist/entities/aempToken.d.ts +10 -10
  12. package/dist/entities/aempToken.js +47 -47
  13. package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.d.ts +15 -15
  14. package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js +81 -81
  15. package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.d.ts +28 -28
  16. package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js +146 -146
  17. package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.d.ts +7 -7
  18. package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js +41 -41
  19. package/dist/entities/alert.d.ts +28 -28
  20. package/dist/entities/alert.js +136 -136
  21. package/dist/entities/alertType.d.ts +14 -14
  22. package/dist/entities/alertType.js +83 -83
  23. package/dist/entities/appFeatureType.d.ts +6 -6
  24. package/dist/entities/appFeatureType.js +36 -36
  25. package/dist/entities/asinPromotion.d.ts +7 -7
  26. package/dist/entities/asinPromotion.js +36 -36
  27. package/dist/entities/assetCategory.d.ts +5 -5
  28. package/dist/entities/assetCategory.js +32 -32
  29. package/dist/entities/beaconBleMesh.d.ts +11 -11
  30. package/dist/entities/beaconBleMesh.js +62 -62
  31. package/dist/entities/billing.d.ts +20 -20
  32. package/dist/entities/billing.js +108 -108
  33. package/dist/entities/billingCustomerAmazon.d.ts +14 -14
  34. package/dist/entities/billingCustomerAmazon.js +82 -82
  35. package/dist/entities/billingCustomerBraintree.d.ts +11 -11
  36. package/dist/entities/billingCustomerBraintree.js +62 -62
  37. package/dist/entities/billingDeviceHistory.d.ts +11 -11
  38. package/dist/entities/billingDeviceHistory.js +61 -61
  39. package/dist/entities/billingDeviceTypePlan.d.ts +12 -12
  40. package/dist/entities/billingDeviceTypePlan.js +63 -63
  41. package/dist/entities/billingHubspotPaymentLog.d.ts +50 -50
  42. package/dist/entities/billingHubspotPaymentLog.js +256 -256
  43. package/dist/entities/billingKlarnaCustomer.d.ts +14 -14
  44. package/dist/entities/billingKlarnaCustomer.js +76 -76
  45. package/dist/entities/billingKlarnaOrder.d.ts +17 -17
  46. package/dist/entities/billingKlarnaOrder.js +114 -114
  47. package/dist/entities/billingPlanFeatures.d.ts +6 -6
  48. package/dist/entities/billingPlanFeatures.js +36 -36
  49. package/dist/entities/billingPlans.d.ts +22 -22
  50. package/dist/entities/billingPlans.js +126 -126
  51. package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -10
  52. package/dist/entities/billingStatusHistoryBraintree.js +63 -63
  53. package/dist/entities/billingSubscriptionAmazon.d.ts +22 -22
  54. package/dist/entities/billingSubscriptionAmazon.js +161 -161
  55. package/dist/entities/billingSubscriptionBraintree.d.ts +34 -34
  56. package/dist/entities/billingSubscriptionBraintree.js +229 -229
  57. package/dist/entities/blacklist.d.ts +9 -9
  58. package/dist/entities/blacklist.js +51 -51
  59. package/dist/entities/blacklistType.d.ts +5 -5
  60. package/dist/entities/blacklistType.js +31 -31
  61. package/dist/entities/bleMesh.d.ts +15 -15
  62. package/dist/entities/bleMesh.js +73 -73
  63. package/dist/entities/bleMeshConfiguration.d.ts +9 -9
  64. package/dist/entities/bleMeshConfiguration.js +56 -56
  65. package/dist/entities/boundary.d.ts +23 -23
  66. package/dist/entities/boundary.js +120 -120
  67. package/dist/entities/boundaryEvent.d.ts +20 -20
  68. package/dist/entities/boundaryEvent.js +105 -105
  69. package/dist/entities/cellTower.d.ts +12 -12
  70. package/dist/entities/cellTower.js +66 -66
  71. package/dist/entities/client.d.ts +34 -34
  72. package/dist/entities/client.js +147 -147
  73. package/dist/entities/clientAlertConfiguration.d.ts +18 -18
  74. package/dist/entities/clientAlertConfiguration.js +101 -89
  75. package/dist/entities/clientAlertConfiguration.js.map +1 -1
  76. package/dist/entities/clientAlertRecipient.d.ts +16 -16
  77. package/dist/entities/clientAlertRecipient.js +97 -97
  78. package/dist/entities/clientAppFeature.d.ts +9 -9
  79. package/dist/entities/clientAppFeature.js +47 -47
  80. package/dist/entities/clientConfiguration.d.ts +9 -9
  81. package/dist/entities/clientConfiguration.js +58 -58
  82. package/dist/entities/clientDeviceSetting.d.ts +14 -14
  83. package/dist/entities/clientDeviceSetting.js +95 -95
  84. package/dist/entities/clientIngestorConfiguration.d.ts +8 -8
  85. package/dist/entities/clientIngestorConfiguration.js +47 -47
  86. package/dist/entities/clientType.d.ts +6 -6
  87. package/dist/entities/clientType.js +36 -36
  88. package/dist/entities/country.d.ts +16 -16
  89. package/dist/entities/country.js +91 -91
  90. package/dist/entities/customerAttribute.d.ts +15 -15
  91. package/dist/entities/customerAttribute.js +80 -80
  92. package/dist/entities/dataExport.d.ts +17 -17
  93. package/dist/entities/dataExport.js +73 -73
  94. package/dist/entities/dataSourceType.d.ts +5 -5
  95. package/dist/entities/dataSourceType.js +31 -31
  96. package/dist/entities/deactivation.d.ts +14 -14
  97. package/dist/entities/deactivation.js +83 -83
  98. package/dist/entities/deactivationReason.d.ts +6 -6
  99. package/dist/entities/deactivationReason.js +40 -40
  100. package/dist/entities/device.d.ts +38 -38
  101. package/dist/entities/device.js +173 -173
  102. package/dist/entities/deviceBehavior.d.ts +25 -25
  103. package/dist/entities/deviceBehavior.js +147 -147
  104. package/dist/entities/deviceBleMesh.d.ts +14 -14
  105. package/dist/entities/deviceBleMesh.js +77 -77
  106. package/dist/entities/deviceBleMeshUpdateTask.d.ts +18 -18
  107. package/dist/entities/deviceBleMeshUpdateTask.js +82 -82
  108. package/dist/entities/deviceChangesHistory.d.ts +8 -8
  109. package/dist/entities/deviceChangesHistory.js +47 -47
  110. package/dist/entities/deviceCustomConfiguration.d.ts +13 -13
  111. package/dist/entities/deviceCustomConfiguration.js +76 -76
  112. package/dist/entities/deviceHistory.d.ts +8 -8
  113. package/dist/entities/deviceHistory.js +46 -46
  114. package/dist/entities/deviceModelListener.d.ts +8 -8
  115. package/dist/entities/deviceModelListener.js +46 -46
  116. package/dist/entities/devicePairing.d.ts +14 -14
  117. package/dist/entities/devicePairing.js +82 -82
  118. package/dist/entities/devicePromotion.d.ts +7 -7
  119. package/dist/entities/devicePromotion.js +36 -36
  120. package/dist/entities/deviceReplacement.d.ts +12 -12
  121. package/dist/entities/deviceReplacement.js +57 -57
  122. package/dist/entities/deviceStatus.d.ts +13 -13
  123. package/dist/entities/deviceStatus.js +60 -60
  124. package/dist/entities/deviceTask.d.ts +8 -8
  125. package/dist/entities/deviceTask.js +44 -44
  126. package/dist/entities/deviceType.d.ts +26 -26
  127. package/dist/entities/deviceType.js +143 -143
  128. package/dist/entities/deviceTypeFeature.d.ts +5 -5
  129. package/dist/entities/deviceTypeFeature.js +32 -32
  130. package/dist/entities/deviceTypeFirmware.d.ts +21 -21
  131. package/dist/entities/deviceTypeFirmware.js +117 -117
  132. package/dist/entities/deviceTypePromotion.d.ts +7 -7
  133. package/dist/entities/deviceTypePromotion.js +36 -36
  134. package/dist/entities/emailDomain.d.ts +5 -5
  135. package/dist/entities/emailDomain.js +38 -38
  136. package/dist/entities/entityTag.d.ts +12 -12
  137. package/dist/entities/entityTag.js +71 -71
  138. package/dist/entities/entityType.d.ts +5 -5
  139. package/dist/entities/entityType.js +31 -31
  140. package/dist/entities/feature.d.ts +6 -6
  141. package/dist/entities/feature.js +36 -36
  142. package/dist/entities/firmwareAutoUpgradeBlacklist.d.ts +5 -5
  143. package/dist/entities/firmwareAutoUpgradeBlacklist.js +35 -35
  144. package/dist/entities/firmwareUpgradeTask.d.ts +23 -23
  145. package/dist/entities/firmwareUpgradeTask.js +107 -107
  146. package/dist/entities/iccidStatus.d.ts +7 -7
  147. package/dist/entities/iccidStatus.js +49 -49
  148. package/dist/entities/imeiIccidCarrier.d.ts +21 -21
  149. package/dist/entities/imeiIccidCarrier.js +125 -125
  150. package/dist/entities/imeiIccidHistory.d.ts +7 -7
  151. package/dist/entities/imeiIccidHistory.js +43 -43
  152. package/dist/entities/imeiIccidImport.d.ts +5 -5
  153. package/dist/entities/imeiIccidImport.js +31 -31
  154. package/dist/entities/index.d.ts +121 -120
  155. package/dist/entities/index.js +121 -120
  156. package/dist/entities/index.js.map +1 -1
  157. package/dist/entities/industry.d.ts +8 -8
  158. package/dist/entities/industry.js +46 -46
  159. package/dist/entities/latestPosition.d.ts +21 -21
  160. package/dist/entities/latestPosition.js +105 -105
  161. package/dist/entities/latestPositionMigration.d.ts +20 -20
  162. package/dist/entities/latestPositionMigration.js +96 -96
  163. package/dist/entities/latestPositionMigrationBatch.d.ts +3 -3
  164. package/dist/entities/latestPositionMigrationBatch.js +21 -21
  165. package/dist/entities/latestUserAppInfo.d.ts +9 -9
  166. package/dist/entities/latestUserAppInfo.js +42 -42
  167. package/dist/entities/liveLink.d.ts +17 -17
  168. package/dist/entities/liveLink.js +125 -125
  169. package/dist/entities/magento2Gps.d.ts +50 -50
  170. package/dist/entities/magento2Gps.js +258 -258
  171. package/dist/entities/magento2Plan.d.ts +6 -6
  172. package/dist/entities/magento2Plan.js +41 -41
  173. package/dist/entities/marketplacePromotion.d.ts +7 -7
  174. package/dist/entities/marketplacePromotion.js +36 -36
  175. package/dist/entities/mobileNetwork.d.ts +9 -9
  176. package/dist/entities/mobileNetwork.js +51 -51
  177. package/dist/entities/notificationRecipient.d.ts +23 -23
  178. package/dist/entities/notificationRecipient.js +127 -127
  179. package/dist/entities/orderShipmentInternational.d.ts +12 -12
  180. package/dist/entities/orderShipmentInternational.js +66 -66
  181. package/dist/entities/organization.d.ts +10 -10
  182. package/dist/entities/organization.js +46 -46
  183. package/dist/entities/plan.d.ts +16 -16
  184. package/dist/entities/plan.js +86 -86
  185. package/dist/entities/position.d.ts +21 -21
  186. package/dist/entities/position.js +105 -105
  187. package/dist/entities/positionMigration.d.ts +20 -20
  188. package/dist/entities/positionMigration.js +96 -96
  189. package/dist/entities/positionMigrationBatch.d.ts +3 -3
  190. package/dist/entities/positionMigrationBatch.js +21 -21
  191. package/dist/entities/promotion.d.ts +24 -24
  192. package/dist/entities/promotion.js +135 -135
  193. package/dist/entities/promotionHistory.d.ts +12 -12
  194. package/dist/entities/promotionHistory.js +89 -89
  195. package/dist/entities/securityRole.d.ts +10 -10
  196. package/dist/entities/securityRole.js +47 -47
  197. package/dist/entities/serviceProvider.d.ts +7 -7
  198. package/dist/entities/serviceProvider.js +41 -41
  199. package/dist/entities/serviceProviderProduct.d.ts +9 -9
  200. package/dist/entities/serviceProviderProduct.js +61 -61
  201. package/dist/entities/serviceProviderProductNetwork.d.ts +5 -5
  202. package/dist/entities/serviceProviderProductNetwork.js +31 -31
  203. package/dist/entities/serviceProviderProductType.d.ts +5 -5
  204. package/dist/entities/serviceProviderProductType.js +31 -31
  205. package/dist/entities/sim.d.ts +16 -16
  206. package/dist/entities/sim.js +92 -92
  207. package/dist/entities/subscriptionHistoricalPrice.d.ts +20 -20
  208. package/dist/entities/subscriptionHistoricalPrice.js +150 -150
  209. package/dist/entities/tag.d.ts +12 -12
  210. package/dist/entities/tag.js +67 -67
  211. package/dist/entities/task.d.ts +36 -36
  212. package/dist/entities/task.js +184 -184
  213. package/dist/entities/taskSchedule.d.ts +29 -29
  214. package/dist/entities/taskSchedule.js +146 -146
  215. package/dist/entities/trip.d.ts +27 -27
  216. package/dist/entities/trip.js +138 -138
  217. package/dist/entities/tripCompletionStatus.d.ts +6 -6
  218. package/dist/entities/tripCompletionStatus.js +36 -36
  219. package/dist/entities/tripPosition.d.ts +4 -4
  220. package/dist/entities/tripPosition.js +26 -26
  221. package/dist/entities/user.d.ts +48 -48
  222. package/dist/entities/user.js +217 -217
  223. package/dist/entities/userActivation.d.ts +10 -10
  224. package/dist/entities/userActivation.js +52 -52
  225. package/dist/entities/userActivationDevice.d.ts +28 -28
  226. package/dist/entities/userActivationDevice.js +164 -164
  227. package/dist/entities/userActivationEvent.d.ts +13 -13
  228. package/dist/entities/userActivationEvent.js +61 -61
  229. package/dist/entities/userActivationMetric.d.ts +39 -39
  230. package/dist/entities/userActivationMetric.js +208 -208
  231. package/dist/entities/userAlertComplain.d.ts +18 -18
  232. package/dist/entities/userAlertComplain.js +78 -78
  233. package/dist/entities/userAlertConfiguration.d.ts +25 -25
  234. package/dist/entities/userAlertConfiguration.js +142 -142
  235. package/dist/entities/userAlertNotificationsConfig.d.ts +14 -14
  236. package/dist/entities/userAlertNotificationsConfig.js +90 -90
  237. package/dist/entities/userAppFeedback.d.ts +11 -11
  238. package/dist/entities/userAppFeedback.js +52 -52
  239. package/dist/entities/userAppIncident.d.ts +30 -30
  240. package/dist/entities/userAppIncident.js +176 -176
  241. package/dist/entities/userConfiguration.d.ts +21 -21
  242. package/dist/entities/userConfiguration.js +109 -109
  243. package/dist/entities/userDataDeletionRequest.d.ts +12 -12
  244. package/dist/entities/userDataDeletionRequest.js +57 -57
  245. package/dist/entities/userDeviceBehaviorTask.d.ts +16 -16
  246. package/dist/entities/userDeviceBehaviorTask.js +80 -80
  247. package/dist/entities/userInvitation.d.ts +20 -20
  248. package/dist/entities/userInvitation.js +101 -101
  249. package/dist/entities/userRatingRequest.d.ts +14 -14
  250. package/dist/entities/userRatingRequest.js +75 -75
  251. package/dist/entities/userRegistrationAttempt.d.ts +36 -36
  252. package/dist/entities/userRegistrationAttempt.js +177 -177
  253. package/dist/entities/userSecurityRole.d.ts +12 -12
  254. package/dist/entities/userSecurityRole.js +45 -45
  255. package/dist/index.d.ts +24 -24
  256. package/dist/index.js +1 -1
  257. package/dist/migration/1684483704434-addLowerCaseIndex.d.ts +5 -5
  258. package/dist/migration/1684483704434-addLowerCaseIndex.js +16 -16
  259. package/dist/novaDataSource.d.ts +88 -88
  260. package/dist/novaDataSource.js +192 -194
  261. package/dist/novaDataSource.js.map +1 -1
  262. package/dist/repositories/acumatica/getAcumaticaImeiIccidData.d.ts +5 -5
  263. package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +46 -46
  264. package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.d.ts +5 -5
  265. package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js +22 -22
  266. package/dist/repositories/acumatica/getAcumaticaShipmentDetails.d.ts +4 -4
  267. package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +55 -55
  268. package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.d.ts +4 -4
  269. package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +32 -32
  270. package/dist/repositories/acumatica/getOrderShipmentInternational.d.ts +5 -5
  271. package/dist/repositories/acumatica/getOrderShipmentInternational.js +22 -22
  272. package/dist/repositories/acumatica/index.d.ts +47 -47
  273. package/dist/repositories/acumatica/index.js +80 -80
  274. package/dist/repositories/aempToken/createAempToken.d.ts +5 -5
  275. package/dist/repositories/aempToken/createAempToken.js +26 -26
  276. package/dist/repositories/aempToken/deleteAempTokens.d.ts +4 -4
  277. package/dist/repositories/aempToken/deleteAempTokens.js +30 -30
  278. package/dist/repositories/aempToken/getAempTokens.d.ts +5 -5
  279. package/dist/repositories/aempToken/getAempTokens.js +34 -34
  280. package/dist/repositories/aempToken/index.d.ts +33 -33
  281. package/dist/repositories/aempToken/index.js +53 -53
  282. package/dist/repositories/alertTypes/getAlertTypes.d.ts +4 -4
  283. package/dist/repositories/alertTypes/getAlertTypes.js +18 -18
  284. package/dist/repositories/alertTypes/index.d.ts +6 -6
  285. package/dist/repositories/alertTypes/index.js +18 -18
  286. package/dist/repositories/alerts/createAlert.d.ts +6 -6
  287. package/dist/repositories/alerts/createAlert.js +98 -98
  288. package/dist/repositories/alerts/createUserAlertComplain.d.ts +4 -4
  289. package/dist/repositories/alerts/createUserAlertComplain.js +26 -26
  290. package/dist/repositories/alerts/getAlertsReportByClient.d.ts +7 -7
  291. package/dist/repositories/alerts/getAlertsReportByClient.js +69 -69
  292. package/dist/repositories/alerts/getAlertsReportByUser.d.ts +4 -4
  293. package/dist/repositories/alerts/getAlertsReportByUser.js +131 -131
  294. package/dist/repositories/alerts/index.d.ts +78 -78
  295. package/dist/repositories/alerts/index.js +104 -104
  296. package/dist/repositories/appFeatures/createAppFeatureType.d.ts +5 -5
  297. package/dist/repositories/appFeatures/createAppFeatureType.js +15 -15
  298. package/dist/repositories/appFeatures/createClientAppFeature.d.ts +5 -5
  299. package/dist/repositories/appFeatures/createClientAppFeature.js +15 -15
  300. package/dist/repositories/appFeatures/getClientAppFeatures.d.ts +5 -5
  301. package/dist/repositories/appFeatures/getClientAppFeatures.js +44 -44
  302. package/dist/repositories/appFeatures/index.d.ts +37 -37
  303. package/dist/repositories/appFeatures/index.js +57 -57
  304. package/dist/repositories/assetCategories/getAssetCategories.d.ts +3 -3
  305. package/dist/repositories/assetCategories/getAssetCategories.js +18 -18
  306. package/dist/repositories/assetCategories/index.d.ts +9 -9
  307. package/dist/repositories/assetCategories/index.js +16 -16
  308. package/dist/repositories/baseRepository.d.ts +21 -21
  309. package/dist/repositories/baseRepository.js +23 -23
  310. package/dist/repositories/billing/createBilling.d.ts +5 -5
  311. package/dist/repositories/billing/createBilling.js +37 -37
  312. package/dist/repositories/billing/createBillingDeviceHistory.d.ts +5 -5
  313. package/dist/repositories/billing/createBillingDeviceHistory.js +30 -30
  314. package/dist/repositories/billing/createBillingHubspotPaymentLog.d.ts +5 -5
  315. package/dist/repositories/billing/createBillingHubspotPaymentLog.js +61 -61
  316. package/dist/repositories/billing/createBillingStatusHistoryBraintree.d.ts +5 -5
  317. package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +32 -32
  318. package/dist/repositories/billing/getBillingCustomerBraintreeById.d.ts +5 -5
  319. package/dist/repositories/billing/getBillingCustomerBraintreeById.js +23 -23
  320. package/dist/repositories/billing/getBillingDeviceTypePlans.d.ts +5 -5
  321. package/dist/repositories/billing/getBillingDeviceTypePlans.js +21 -21
  322. package/dist/repositories/billing/getBillingKlarnaOrderByImei.d.ts +5 -5
  323. package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +23 -23
  324. package/dist/repositories/billing/getBillingPlans.d.ts +4 -4
  325. package/dist/repositories/billing/getBillingPlans.js +67 -67
  326. package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.d.ts +5 -5
  327. package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +23 -23
  328. package/dist/repositories/billing/getBillingSubscriptionsBraintree.d.ts +5 -5
  329. package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +30 -30
  330. package/dist/repositories/billing/getBillings.d.ts +5 -5
  331. package/dist/repositories/billing/getBillings.js +47 -47
  332. package/dist/repositories/billing/getBraintreePastDueSubscriptions.d.ts +4 -4
  333. package/dist/repositories/billing/getBraintreePastDueSubscriptions.js +13 -13
  334. package/dist/repositories/billing/getCanceledImeis.d.ts +4 -4
  335. package/dist/repositories/billing/getCanceledImeis.js +95 -95
  336. package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.d.ts +4 -4
  337. package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +65 -65
  338. package/dist/repositories/billing/getChurnStatusByClientId.d.ts +4 -4
  339. package/dist/repositories/billing/getChurnStatusByClientId.js +36 -36
  340. package/dist/repositories/billing/getClientIdFromBraintreeCustomer.d.ts +4 -4
  341. package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +25 -25
  342. package/dist/repositories/billing/getMagentoPlan.d.ts +5 -5
  343. package/dist/repositories/billing/getMagentoPlan.js +26 -26
  344. package/dist/repositories/billing/getUserByBraintreeCustomerId.d.ts +5 -5
  345. package/dist/repositories/billing/getUserByBraintreeCustomerId.js +27 -27
  346. package/dist/repositories/billing/index.d.ts +243 -243
  347. package/dist/repositories/billing/index.js +424 -424
  348. package/dist/repositories/billing/updateBilling.d.ts +4 -4
  349. package/dist/repositories/billing/updateBilling.js +43 -43
  350. package/dist/repositories/billing/updateBillingCustomerBraintree.d.ts +4 -4
  351. package/dist/repositories/billing/updateBillingCustomerBraintree.js +37 -37
  352. package/dist/repositories/billing/upsertBillingCustomerBraintree.d.ts +5 -5
  353. package/dist/repositories/billing/upsertBillingCustomerBraintree.js +48 -48
  354. package/dist/repositories/billing/upsertBillingDeviceTypePlan.d.ts +5 -5
  355. package/dist/repositories/billing/upsertBillingDeviceTypePlan.js +66 -66
  356. package/dist/repositories/billing/upsertBillingKlarnaCustomer.d.ts +5 -5
  357. package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +52 -52
  358. package/dist/repositories/billing/upsertBillingKlarnaOrder.d.ts +5 -5
  359. package/dist/repositories/billing/upsertBillingKlarnaOrder.js +58 -58
  360. package/dist/repositories/billing/upsertBillingPlans.d.ts +5 -5
  361. package/dist/repositories/billing/upsertBillingPlans.js +53 -53
  362. package/dist/repositories/billing/upsertBillingSubscriptionBraintree.d.ts +4 -4
  363. package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +20 -20
  364. package/dist/repositories/blacklist/deleteBlackList.d.ts +4 -4
  365. package/dist/repositories/blacklist/deleteBlackList.js +19 -19
  366. package/dist/repositories/blacklist/getBlacklists.d.ts +5 -5
  367. package/dist/repositories/blacklist/getBlacklists.js +24 -24
  368. package/dist/repositories/blacklist/index.d.ts +43 -43
  369. package/dist/repositories/blacklist/index.js +70 -70
  370. package/dist/repositories/blacklist/updateBlackList.d.ts +4 -4
  371. package/dist/repositories/blacklist/updateBlackList.js +30 -30
  372. package/dist/repositories/blacklist/upsertBlackList.d.ts +5 -5
  373. package/dist/repositories/blacklist/upsertBlackList.js +40 -40
  374. package/dist/repositories/bleMesh/addBeaconBLEMesh.d.ts +5 -5
  375. package/dist/repositories/bleMesh/addBeaconBLEMesh.js +28 -28
  376. package/dist/repositories/bleMesh/addDevicesToBLEMesh.d.ts +5 -5
  377. package/dist/repositories/bleMesh/addDevicesToBLEMesh.js +37 -37
  378. package/dist/repositories/bleMesh/createBLEMesh.d.ts +5 -5
  379. package/dist/repositories/bleMesh/createBLEMesh.js +18 -18
  380. package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.d.ts +5 -5
  381. package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js +46 -46
  382. package/dist/repositories/bleMesh/getBLEMeshes.d.ts +4 -4
  383. package/dist/repositories/bleMesh/getBLEMeshes.js +45 -45
  384. package/dist/repositories/bleMesh/getBeaconBLEMeshes.d.ts +4 -4
  385. package/dist/repositories/bleMesh/getBeaconBLEMeshes.js +43 -43
  386. package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.d.ts +4 -4
  387. package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js +55 -55
  388. package/dist/repositories/bleMesh/getDeviceBLEMeshes.d.ts +4 -4
  389. package/dist/repositories/bleMesh/getDeviceBLEMeshes.js +49 -49
  390. package/dist/repositories/bleMesh/index.d.ts +157 -157
  391. package/dist/repositories/bleMesh/index.js +268 -268
  392. package/dist/repositories/bleMesh/removeBLEMesh.d.ts +4 -4
  393. package/dist/repositories/bleMesh/removeBLEMesh.js +21 -21
  394. package/dist/repositories/bleMesh/removeBeaconBLEMeshes.d.ts +4 -4
  395. package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js +20 -20
  396. package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.d.ts +4 -4
  397. package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js +27 -27
  398. package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.d.ts +4 -4
  399. package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js +24 -24
  400. package/dist/repositories/bleMesh/updateBLEMesh.d.ts +4 -4
  401. package/dist/repositories/bleMesh/updateBLEMesh.js +31 -31
  402. package/dist/repositories/bleMesh/updateBeaconBLEMesh.d.ts +4 -4
  403. package/dist/repositories/bleMesh/updateBeaconBLEMesh.js +26 -26
  404. package/dist/repositories/bleMesh/updateDevicesBLEMesh.d.ts +4 -4
  405. package/dist/repositories/bleMesh/updateDevicesBLEMesh.js +29 -29
  406. package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.d.ts +4 -4
  407. package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js +26 -26
  408. package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.d.ts +5 -5
  409. package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js +18 -18
  410. package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.d.ts +4 -4
  411. package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js +16 -16
  412. package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.d.ts +5 -5
  413. package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js +28 -28
  414. package/dist/repositories/bleMeshConfiguration/index.d.ts +46 -46
  415. package/dist/repositories/bleMeshConfiguration/index.js +73 -73
  416. package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.d.ts +4 -4
  417. package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js +30 -30
  418. package/dist/repositories/boundaries/createBoundary.d.ts +5 -5
  419. package/dist/repositories/boundaries/createBoundary.js +52 -52
  420. package/dist/repositories/boundaries/deleteBoundary.d.ts +4 -4
  421. package/dist/repositories/boundaries/deleteBoundary.js +23 -23
  422. package/dist/repositories/boundaries/getBoundariesByClientId.d.ts +5 -5
  423. package/dist/repositories/boundaries/getBoundariesByClientId.js +51 -51
  424. package/dist/repositories/boundaries/getBoundariesIdsByClientId.d.ts +4 -4
  425. package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +23 -23
  426. package/dist/repositories/boundaries/getBoundariesReport.d.ts +4 -4
  427. package/dist/repositories/boundaries/getBoundariesReport.js +129 -129
  428. package/dist/repositories/boundaries/getBoundaryById.d.ts +5 -5
  429. package/dist/repositories/boundaries/getBoundaryById.js +22 -22
  430. package/dist/repositories/boundaries/index.d.ts +106 -106
  431. package/dist/repositories/boundaries/index.js +178 -178
  432. package/dist/repositories/boundaries/processBoundaryEvent.d.ts +4 -4
  433. package/dist/repositories/boundaries/processBoundaryEvent.js +211 -211
  434. package/dist/repositories/boundaries/updateBoundary.d.ts +4 -4
  435. package/dist/repositories/boundaries/updateBoundary.js +53 -53
  436. package/dist/repositories/boundaries/upsertBoundaryEvent.d.ts +4 -4
  437. package/dist/repositories/boundaries/upsertBoundaryEvent.js +23 -23
  438. package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.d.ts +5 -5
  439. package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js +24 -24
  440. package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.d.ts +4 -4
  441. package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js +24 -24
  442. package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.d.ts +5 -5
  443. package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js +43 -43
  444. package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.d.ts +4 -4
  445. package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js +39 -39
  446. package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.d.ts +4 -4
  447. package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js +72 -72
  448. package/dist/repositories/clientAlertConfiguration/index.d.ts +13 -13
  449. package/dist/repositories/clientAlertConfiguration/index.js +138 -138
  450. package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.d.ts +4 -4
  451. package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js +50 -50
  452. package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.d.ts +4 -4
  453. package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js +174 -174
  454. package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.d.ts +4 -4
  455. package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js +42 -42
  456. package/dist/repositories/clients/createClient.d.ts +5 -5
  457. package/dist/repositories/clients/createClient.js +35 -35
  458. package/dist/repositories/clients/createClientConfiguration.d.ts +5 -5
  459. package/dist/repositories/clients/createClientConfiguration.js +20 -20
  460. package/dist/repositories/clients/createClientIngestorConfiguration.d.ts +5 -5
  461. package/dist/repositories/clients/createClientIngestorConfiguration.js +20 -20
  462. package/dist/repositories/clients/createCustomerAttribute.d.ts +5 -5
  463. package/dist/repositories/clients/createCustomerAttribute.js +21 -21
  464. package/dist/repositories/clients/deleteClientAndConfiguration.d.ts +4 -4
  465. package/dist/repositories/clients/deleteClientAndConfiguration.js +25 -25
  466. package/dist/repositories/clients/getClient.d.ts +5 -5
  467. package/dist/repositories/clients/getClient.js +37 -37
  468. package/dist/repositories/clients/getClientConfiguration.d.ts +5 -5
  469. package/dist/repositories/clients/getClientConfiguration.js +30 -30
  470. package/dist/repositories/clients/getClientIngestorConfigurations.d.ts +4 -4
  471. package/dist/repositories/clients/getClientIngestorConfigurations.js +24 -24
  472. package/dist/repositories/clients/getClients.d.ts +5 -5
  473. package/dist/repositories/clients/getClients.js +31 -31
  474. package/dist/repositories/clients/getCustomerAttribute.d.ts +5 -5
  475. package/dist/repositories/clients/getCustomerAttribute.js +22 -22
  476. package/dist/repositories/clients/index.d.ts +138 -138
  477. package/dist/repositories/clients/index.js +227 -227
  478. package/dist/repositories/clients/updateClient.d.ts +4 -4
  479. package/dist/repositories/clients/updateClient.js +52 -52
  480. package/dist/repositories/clients/updateClientConfiguration.d.ts +4 -4
  481. package/dist/repositories/clients/updateClientConfiguration.js +28 -28
  482. package/dist/repositories/clients/updateCustomerAttribute.d.ts +4 -4
  483. package/dist/repositories/clients/updateCustomerAttribute.js +26 -26
  484. package/dist/repositories/countries/getCountries.d.ts +4 -4
  485. package/dist/repositories/countries/getCountries.js +19 -19
  486. package/dist/repositories/countries/getCountry.d.ts +5 -5
  487. package/dist/repositories/countries/getCountry.js +28 -28
  488. package/dist/repositories/countries/index.d.ts +20 -20
  489. package/dist/repositories/countries/index.js +33 -33
  490. package/dist/repositories/dataExports/createDataExports.d.ts +5 -5
  491. package/dist/repositories/dataExports/createDataExports.js +31 -31
  492. package/dist/repositories/dataExports/getDataExports.d.ts +4 -4
  493. package/dist/repositories/dataExports/getDataExports.js +46 -46
  494. package/dist/repositories/dataExports/index.d.ts +38 -38
  495. package/dist/repositories/dataExports/index.js +58 -58
  496. package/dist/repositories/dataExports/updateDataExports.d.ts +4 -4
  497. package/dist/repositories/dataExports/updateDataExports.js +25 -25
  498. package/dist/repositories/deactivations/createDeactivation.d.ts +5 -5
  499. package/dist/repositories/deactivations/createDeactivation.js +16 -16
  500. package/dist/repositories/deactivations/getDeactivationReasons.d.ts +5 -5
  501. package/dist/repositories/deactivations/getDeactivationReasons.js +29 -29
  502. package/dist/repositories/deactivations/getLatestDeactivationByImei.d.ts +5 -5
  503. package/dist/repositories/deactivations/getLatestDeactivationByImei.js +24 -24
  504. package/dist/repositories/deactivations/index.d.ts +38 -38
  505. package/dist/repositories/deactivations/index.js +58 -58
  506. package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.d.ts +5 -5
  507. package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +48 -48
  508. package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.d.ts +5 -5
  509. package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +45 -45
  510. package/dist/repositories/deviceBehaviors/getDeviceBehaviors.d.ts +5 -5
  511. package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +46 -46
  512. package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.d.ts +5 -5
  513. package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +21 -21
  514. package/dist/repositories/deviceBehaviors/index.d.ts +70 -70
  515. package/dist/repositories/deviceBehaviors/index.js +111 -111
  516. package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.d.ts +4 -4
  517. package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +27 -27
  518. package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.d.ts +5 -5
  519. package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +20 -20
  520. package/dist/repositories/devicePairings/createDevicePairing.d.ts +5 -5
  521. package/dist/repositories/devicePairings/createDevicePairing.js +21 -21
  522. package/dist/repositories/devicePairings/deleteDevicePairing.d.ts +4 -4
  523. package/dist/repositories/devicePairings/deleteDevicePairing.js +16 -16
  524. package/dist/repositories/devicePairings/getDevicePairings.d.ts +5 -5
  525. package/dist/repositories/devicePairings/getDevicePairings.js +41 -41
  526. package/dist/repositories/devicePairings/getDevicePairingsByClientId.d.ts +5 -5
  527. package/dist/repositories/devicePairings/getDevicePairingsByClientId.js +27 -27
  528. package/dist/repositories/devicePairings/getDevicePairingsByImei.d.ts +5 -5
  529. package/dist/repositories/devicePairings/getDevicePairingsByImei.js +25 -25
  530. package/dist/repositories/devicePairings/index.d.ts +65 -65
  531. package/dist/repositories/devicePairings/index.js +106 -106
  532. package/dist/repositories/devicePairings/updateDevicePairing.d.ts +4 -4
  533. package/dist/repositories/devicePairings/updateDevicePairing.js +35 -35
  534. package/dist/repositories/deviceStatus/extendedDeviceStatus.d.ts +12 -12
  535. package/dist/repositories/deviceStatus/extendedDeviceStatus.js +206 -206
  536. package/dist/repositories/deviceStatus/getDeviceStatuses.d.ts +4 -4
  537. package/dist/repositories/deviceStatus/getDeviceStatuses.js +87 -87
  538. package/dist/repositories/deviceStatus/getDeviceStatusesCount.d.ts +4 -4
  539. package/dist/repositories/deviceStatus/getDeviceStatusesCount.js +41 -41
  540. package/dist/repositories/deviceStatus/index.d.ts +35 -35
  541. package/dist/repositories/deviceStatus/index.js +62 -62
  542. package/dist/repositories/deviceStatus/upsertDeviceStatuses.d.ts +4 -4
  543. package/dist/repositories/deviceStatus/upsertDeviceStatuses.js +39 -39
  544. package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.d.ts +5 -5
  545. package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js +19 -19
  546. package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.d.ts +4 -4
  547. package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js +21 -21
  548. package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.d.ts +4 -4
  549. package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js +24 -24
  550. package/dist/repositories/deviceTypeFeature/index.d.ts +27 -27
  551. package/dist/repositories/deviceTypeFeature/index.js +47 -47
  552. package/dist/repositories/devices/addDeviceChangesHistory.d.ts +5 -5
  553. package/dist/repositories/devices/addDeviceChangesHistory.js +34 -34
  554. package/dist/repositories/devices/allImeisAreActiveForClient.d.ts +4 -4
  555. package/dist/repositories/devices/allImeisAreActiveForClient.js +29 -29
  556. package/dist/repositories/devices/createClientDeviceSetting.d.ts +5 -5
  557. package/dist/repositories/devices/createClientDeviceSetting.js +26 -26
  558. package/dist/repositories/devices/createDevice.d.ts +5 -5
  559. package/dist/repositories/devices/createDevice.js +30 -30
  560. package/dist/repositories/devices/createDeviceReplacement.d.ts +5 -5
  561. package/dist/repositories/devices/createDeviceReplacement.js +34 -34
  562. package/dist/repositories/devices/createDeviceType.d.ts +5 -5
  563. package/dist/repositories/devices/createDeviceType.js +15 -15
  564. package/dist/repositories/devices/createImeiIccidCarrier.d.ts +5 -5
  565. package/dist/repositories/devices/createImeiIccidCarrier.js +18 -18
  566. package/dist/repositories/devices/deleteDevice.d.ts +4 -4
  567. package/dist/repositories/devices/deleteDevice.js +16 -16
  568. package/dist/repositories/devices/generateDeviceIdentifierKey.d.ts +4 -4
  569. package/dist/repositories/devices/generateDeviceIdentifierKey.js +18 -18
  570. package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.d.ts +4 -4
  571. package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +49 -49
  572. package/dist/repositories/devices/getCarrierStatusUpdatedBefore.d.ts +4 -4
  573. package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +45 -45
  574. package/dist/repositories/devices/getClientDeviceSetting.d.ts +5 -5
  575. package/dist/repositories/devices/getClientDeviceSetting.js +25 -25
  576. package/dist/repositories/devices/getClientDeviceSettings.d.ts +5 -5
  577. package/dist/repositories/devices/getClientDeviceSettings.js +22 -22
  578. package/dist/repositories/devices/getDevice.d.ts +5 -5
  579. package/dist/repositories/devices/getDevice.js +38 -38
  580. package/dist/repositories/devices/getDeviceChangesHistory.d.ts +5 -5
  581. package/dist/repositories/devices/getDeviceChangesHistory.js +27 -27
  582. package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.d.ts +4 -4
  583. package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js +23 -23
  584. package/dist/repositories/devices/getDeviceCustomConfig.d.ts +5 -5
  585. package/dist/repositories/devices/getDeviceCustomConfig.js +42 -42
  586. package/dist/repositories/devices/getDeviceTypeByImei.d.ts +5 -5
  587. package/dist/repositories/devices/getDeviceTypeByImei.js +23 -23
  588. package/dist/repositories/devices/getDeviceTypes.d.ts +4 -4
  589. package/dist/repositories/devices/getDeviceTypes.js +52 -52
  590. package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -3
  591. package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +32 -32
  592. package/dist/repositories/devices/getDeviceWithUsersInfo.d.ts +4 -4
  593. package/dist/repositories/devices/getDeviceWithUsersInfo.js +61 -61
  594. package/dist/repositories/devices/getDevices.d.ts +5 -5
  595. package/dist/repositories/devices/getDevices.js +92 -92
  596. package/dist/repositories/devices/getDevicesCountByStatus.d.ts +4 -4
  597. package/dist/repositories/devices/getDevicesCountByStatus.js +31 -31
  598. package/dist/repositories/devices/getFilteredImeisWithStatus.d.ts +4 -4
  599. package/dist/repositories/devices/getFilteredImeisWithStatus.js +25 -25
  600. package/dist/repositories/devices/getIccidStatus.d.ts +5 -5
  601. package/dist/repositories/devices/getIccidStatus.js +22 -22
  602. package/dist/repositories/devices/getImeiIccidCarrier.d.ts +5 -5
  603. package/dist/repositories/devices/getImeiIccidCarrier.js +28 -28
  604. package/dist/repositories/devices/getImeiIccidCarriers.d.ts +5 -5
  605. package/dist/repositories/devices/getImeiIccidCarriers.js +22 -22
  606. package/dist/repositories/devices/getServiceProviderProduct.d.ts +5 -5
  607. package/dist/repositories/devices/getServiceProviderProduct.js +22 -22
  608. package/dist/repositories/devices/index.d.ts +331 -331
  609. package/dist/repositories/devices/index.js +562 -562
  610. package/dist/repositories/devices/updateClientDeviceSetting.d.ts +4 -4
  611. package/dist/repositories/devices/updateClientDeviceSetting.js +40 -40
  612. package/dist/repositories/devices/updateDevice.d.ts +4 -4
  613. package/dist/repositories/devices/updateDevice.js +46 -46
  614. package/dist/repositories/devices/updateDeviceType.d.ts +4 -4
  615. package/dist/repositories/devices/updateDeviceType.js +43 -43
  616. package/dist/repositories/devices/updateIccidStatus.d.ts +4 -4
  617. package/dist/repositories/devices/updateIccidStatus.js +28 -28
  618. package/dist/repositories/devices/updateImeiIccidCarrier.d.ts +4 -4
  619. package/dist/repositories/devices/updateImeiIccidCarrier.js +43 -43
  620. package/dist/repositories/devices/upsertDeviceCustomConfig.d.ts +4 -4
  621. package/dist/repositories/devices/upsertDeviceCustomConfig.js +14 -14
  622. package/dist/repositories/devices/upsertIccidStatus.d.ts +4 -4
  623. package/dist/repositories/devices/upsertIccidStatus.js +36 -36
  624. package/dist/repositories/entityTags/bulkCreateEntityTag.d.ts +5 -5
  625. package/dist/repositories/entityTags/bulkCreateEntityTag.js +20 -20
  626. package/dist/repositories/entityTags/bulkDeleteEntityTag.d.ts +4 -4
  627. package/dist/repositories/entityTags/bulkDeleteEntityTag.js +27 -27
  628. package/dist/repositories/entityTags/createEntityTag.d.ts +5 -5
  629. package/dist/repositories/entityTags/createEntityTag.js +19 -19
  630. package/dist/repositories/entityTags/deleteEntityTag.d.ts +4 -4
  631. package/dist/repositories/entityTags/deleteEntityTag.js +21 -21
  632. package/dist/repositories/entityTags/deleteEntityTagById.d.ts +3 -3
  633. package/dist/repositories/entityTags/deleteEntityTagById.js +12 -12
  634. package/dist/repositories/entityTags/enforceEntityTagsByEntity.d.ts +4 -4
  635. package/dist/repositories/entityTags/enforceEntityTagsByEntity.js +37 -37
  636. package/dist/repositories/entityTags/getEntityTagById.d.ts +5 -5
  637. package/dist/repositories/entityTags/getEntityTagById.js +22 -22
  638. package/dist/repositories/entityTags/index.d.ts +48 -48
  639. package/dist/repositories/entityTags/index.js +103 -103
  640. package/dist/repositories/entityTags/searchEntityTags.d.ts +4 -4
  641. package/dist/repositories/entityTags/searchEntityTags.js +45 -45
  642. package/dist/repositories/features/createFeature.d.ts +5 -5
  643. package/dist/repositories/features/createFeature.js +20 -20
  644. package/dist/repositories/features/deleteFeature.d.ts +4 -4
  645. package/dist/repositories/features/deleteFeature.js +16 -16
  646. package/dist/repositories/features/getFeatures.d.ts +4 -4
  647. package/dist/repositories/features/getFeatures.js +24 -24
  648. package/dist/repositories/features/index.d.ts +33 -33
  649. package/dist/repositories/features/index.js +60 -60
  650. package/dist/repositories/features/upsertFeature.d.ts +4 -4
  651. package/dist/repositories/features/upsertFeature.js +22 -22
  652. package/dist/repositories/firmwares/createDeviceFirmware.d.ts +5 -5
  653. package/dist/repositories/firmwares/createDeviceFirmware.js +37 -37
  654. package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.d.ts +5 -5
  655. package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +16 -16
  656. package/dist/repositories/firmwares/createFirmwareUpgradeTask.d.ts +5 -5
  657. package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +36 -36
  658. package/dist/repositories/firmwares/getDeviceFirmwares.d.ts +4 -4
  659. package/dist/repositories/firmwares/getDeviceFirmwares.js +28 -28
  660. package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.d.ts +5 -5
  661. package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +28 -28
  662. package/dist/repositories/firmwares/getFirmwareUpgradeTasks.d.ts +5 -5
  663. package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +110 -110
  664. package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.d.ts +4 -4
  665. package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +61 -61
  666. package/dist/repositories/firmwares/index.d.ts +132 -132
  667. package/dist/repositories/firmwares/index.js +194 -194
  668. package/dist/repositories/firmwares/updateDeviceFirmware.d.ts +4 -4
  669. package/dist/repositories/firmwares/updateDeviceFirmware.js +41 -41
  670. package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.d.ts +4 -4
  671. package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +37 -37
  672. package/dist/repositories/index.d.ts +42 -42
  673. package/dist/repositories/index.js +42 -43
  674. package/dist/repositories/index.js.map +1 -1
  675. package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.d.ts +5 -5
  676. package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js +26 -26
  677. package/dist/repositories/latestUserAppInfo/index.d.ts +23 -23
  678. package/dist/repositories/latestUserAppInfo/index.js +36 -36
  679. package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.d.ts +4 -4
  680. package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js +28 -28
  681. package/dist/repositories/notificationRecipients/createNotificationRecipient.d.ts +5 -5
  682. package/dist/repositories/notificationRecipients/createNotificationRecipient.js +38 -38
  683. package/dist/repositories/notificationRecipients/deleteNotificationRecipients.d.ts +4 -4
  684. package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +31 -31
  685. package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.d.ts +4 -4
  686. package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +28 -28
  687. package/dist/repositories/notificationRecipients/getNotificationRecipients.d.ts +5 -5
  688. package/dist/repositories/notificationRecipients/getNotificationRecipients.js +35 -35
  689. package/dist/repositories/notificationRecipients/index.d.ts +83 -83
  690. package/dist/repositories/notificationRecipients/index.js +131 -131
  691. package/dist/repositories/notificationRecipients/updateNotificationRecipient.d.ts +4 -4
  692. package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +37 -37
  693. package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.d.ts +4 -4
  694. package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +65 -65
  695. package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.d.ts +4 -4
  696. package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +28 -28
  697. package/dist/repositories/positions/createPosition.d.ts +6 -6
  698. package/dist/repositories/positions/createPosition.js +102 -102
  699. package/dist/repositories/positions/getBatteryReportForDevice.d.ts +4 -4
  700. package/dist/repositories/positions/getBatteryReportForDevice.js +46 -46
  701. package/dist/repositories/positions/getLatestPositionByImei.d.ts +5 -5
  702. package/dist/repositories/positions/getLatestPositionByImei.js +32 -32
  703. package/dist/repositories/positions/getPositionsByImei.d.ts +5 -5
  704. package/dist/repositories/positions/getPositionsByImei.js +29 -29
  705. package/dist/repositories/positions/getPositionsReportByClient.d.ts +4 -4
  706. package/dist/repositories/positions/getPositionsReportByClient.js +95 -95
  707. package/dist/repositories/positions/index.d.ts +69 -69
  708. package/dist/repositories/positions/index.js +109 -109
  709. package/dist/repositories/positions/mapping/mapToPositionReport.d.ts +5 -5
  710. package/dist/repositories/positions/mapping/mapToPositionReport.js +20 -20
  711. package/dist/repositories/positions/upsertLatestPosition.d.ts +4 -4
  712. package/dist/repositories/positions/upsertLatestPosition.js +41 -41
  713. package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.d.ts +5 -5
  714. package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js +14 -14
  715. package/dist/repositories/promotions/bulkInsertMarketplacePromotion.d.ts +5 -5
  716. package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js +14 -14
  717. package/dist/repositories/promotions/createPromotion.d.ts +5 -5
  718. package/dist/repositories/promotions/createPromotion.js +29 -29
  719. package/dist/repositories/promotions/createPromotionHistory.d.ts +5 -5
  720. package/dist/repositories/promotions/createPromotionHistory.js +17 -17
  721. package/dist/repositories/promotions/deleteDeviceTypePromotion.d.ts +4 -4
  722. package/dist/repositories/promotions/deleteDeviceTypePromotion.js +21 -21
  723. package/dist/repositories/promotions/deleteMarketplacePromotion.d.ts +4 -4
  724. package/dist/repositories/promotions/deleteMarketplacePromotion.js +23 -23
  725. package/dist/repositories/promotions/getDeviceTypePromotion.d.ts +5 -5
  726. package/dist/repositories/promotions/getDeviceTypePromotion.js +27 -27
  727. package/dist/repositories/promotions/getMarketplacePromotion.d.ts +5 -5
  728. package/dist/repositories/promotions/getMarketplacePromotion.js +27 -27
  729. package/dist/repositories/promotions/getPromotions.d.ts +5 -5
  730. package/dist/repositories/promotions/getPromotions.js +63 -63
  731. package/dist/repositories/promotions/index.d.ts +72 -72
  732. package/dist/repositories/promotions/index.js +139 -139
  733. package/dist/repositories/promotions/promotionValidator.d.ts +3 -3
  734. package/dist/repositories/promotions/promotionValidator.js +16 -16
  735. package/dist/repositories/promotions/updatePromotion.d.ts +4 -4
  736. package/dist/repositories/promotions/updatePromotion.js +35 -35
  737. package/dist/repositories/security/createUserRole.d.ts +5 -5
  738. package/dist/repositories/security/createUserRole.js +30 -30
  739. package/dist/repositories/security/getAllRoles.d.ts +3 -3
  740. package/dist/repositories/security/getAllRoles.js +18 -18
  741. package/dist/repositories/security/getUserRoles.d.ts +5 -5
  742. package/dist/repositories/security/getUserRoles.js +23 -23
  743. package/dist/repositories/security/getUserRolesByClientId.d.ts +5 -5
  744. package/dist/repositories/security/getUserRolesByClientId.js +25 -25
  745. package/dist/repositories/security/index.d.ts +56 -56
  746. package/dist/repositories/security/index.js +111 -111
  747. package/dist/repositories/security/removeUserRoles.d.ts +4 -4
  748. package/dist/repositories/security/removeUserRoles.js +21 -21
  749. package/dist/repositories/security/updateUserRole.d.ts +4 -4
  750. package/dist/repositories/security/updateUserRole.js +27 -27
  751. package/dist/repositories/security/userIsAdminOrOwner.d.ts +4 -4
  752. package/dist/repositories/security/userIsAdminOrOwner.js +25 -25
  753. package/dist/repositories/security/userIsInRole.d.ts +4 -4
  754. package/dist/repositories/security/userIsInRole.js +22 -22
  755. package/dist/repositories/tags/bulkCreateTags.d.ts +5 -5
  756. package/dist/repositories/tags/bulkCreateTags.js +24 -24
  757. package/dist/repositories/tags/createTag.d.ts +5 -5
  758. package/dist/repositories/tags/createTag.js +20 -20
  759. package/dist/repositories/tags/deleteTag.d.ts +4 -4
  760. package/dist/repositories/tags/deleteTag.js +19 -19
  761. package/dist/repositories/tags/index.d.ts +41 -41
  762. package/dist/repositories/tags/index.js +82 -82
  763. package/dist/repositories/tags/searchTags.d.ts +4 -4
  764. package/dist/repositories/tags/searchTags.js +43 -43
  765. package/dist/repositories/tags/searchTagsByUser.d.ts +4 -4
  766. package/dist/repositories/tags/searchTagsByUser.js +45 -45
  767. package/dist/repositories/tags/updateTag.d.ts +4 -4
  768. package/dist/repositories/tags/updateTag.js +31 -31
  769. package/dist/repositories/tasks/addTaskScheduleDevices.d.ts +4 -4
  770. package/dist/repositories/tasks/addTaskScheduleDevices.js +37 -37
  771. package/dist/repositories/tasks/completeTask.d.ts +4 -4
  772. package/dist/repositories/tasks/completeTask.js +34 -34
  773. package/dist/repositories/tasks/createTask.d.ts +5 -5
  774. package/dist/repositories/tasks/createTask.js +22 -22
  775. package/dist/repositories/tasks/createTaskSchedule.d.ts +5 -5
  776. package/dist/repositories/tasks/createTaskSchedule.js +33 -33
  777. package/dist/repositories/tasks/deleteTask.d.ts +4 -4
  778. package/dist/repositories/tasks/deleteTask.js +22 -22
  779. package/dist/repositories/tasks/deleteTaskSchedule.d.ts +4 -4
  780. package/dist/repositories/tasks/deleteTaskSchedule.js +22 -22
  781. package/dist/repositories/tasks/deleteTaskScheduleDevices.d.ts +4 -4
  782. package/dist/repositories/tasks/deleteTaskScheduleDevices.js +17 -17
  783. package/dist/repositories/tasks/getDeviceTasks.d.ts +5 -5
  784. package/dist/repositories/tasks/getDeviceTasks.js +33 -33
  785. package/dist/repositories/tasks/getTaskSchedule.d.ts +5 -5
  786. package/dist/repositories/tasks/getTaskSchedule.js +42 -42
  787. package/dist/repositories/tasks/getTaskSchedules.d.ts +5 -5
  788. package/dist/repositories/tasks/getTaskSchedules.js +90 -90
  789. package/dist/repositories/tasks/getTaskSchedulesCount.d.ts +4 -4
  790. package/dist/repositories/tasks/getTaskSchedulesCount.js +34 -34
  791. package/dist/repositories/tasks/getTasks.d.ts +5 -5
  792. package/dist/repositories/tasks/getTasks.js +76 -76
  793. package/dist/repositories/tasks/getTasksCount.d.ts +4 -4
  794. package/dist/repositories/tasks/getTasksCount.js +30 -30
  795. package/dist/repositories/tasks/index.d.ts +325 -325
  796. package/dist/repositories/tasks/index.js +443 -443
  797. package/dist/repositories/tasks/setTaskAsPastDue.d.ts +4 -4
  798. package/dist/repositories/tasks/setTaskAsPastDue.js +23 -23
  799. package/dist/repositories/tasks/setTaskScheduleDevices.d.ts +4 -4
  800. package/dist/repositories/tasks/setTaskScheduleDevices.js +43 -43
  801. package/dist/repositories/tasks/updateTask.d.ts +4 -4
  802. package/dist/repositories/tasks/updateTask.js +21 -21
  803. package/dist/repositories/tasks/updateTaskSchedule.d.ts +4 -4
  804. package/dist/repositories/tasks/updateTaskSchedule.js +35 -35
  805. package/dist/repositories/trips/createTrip.d.ts +5 -5
  806. package/dist/repositories/trips/createTrip.js +29 -29
  807. package/dist/repositories/trips/getDeviceTripConfiguration.d.ts +4 -4
  808. package/dist/repositories/trips/getDeviceTripConfiguration.js +51 -51
  809. package/dist/repositories/trips/getTripById.d.ts +4 -4
  810. package/dist/repositories/trips/getTripById.js +21 -21
  811. package/dist/repositories/trips/getTrips.d.ts +4 -4
  812. package/dist/repositories/trips/getTrips.js +124 -124
  813. package/dist/repositories/trips/index.d.ts +36 -36
  814. package/dist/repositories/trips/index.js +77 -77
  815. package/dist/repositories/trips/updateTripEndValues.d.ts +4 -4
  816. package/dist/repositories/trips/updateTripEndValues.js +36 -36
  817. package/dist/repositories/trips/upsertTrip.d.ts +4 -4
  818. package/dist/repositories/trips/upsertTrip.js +31 -31
  819. package/dist/repositories/userActivations/createUserActivation.d.ts +5 -5
  820. package/dist/repositories/userActivations/createUserActivation.js +26 -26
  821. package/dist/repositories/userActivations/createUserActivationDevice.d.ts +5 -5
  822. package/dist/repositories/userActivations/createUserActivationDevice.js +35 -35
  823. package/dist/repositories/userActivations/createUserActivationEvent.d.ts +5 -5
  824. package/dist/repositories/userActivations/createUserActivationEvent.js +34 -34
  825. package/dist/repositories/userActivations/createUserActivationMetric.d.ts +5 -5
  826. package/dist/repositories/userActivations/createUserActivationMetric.js +28 -28
  827. package/dist/repositories/userActivations/deleteUserActivation.d.ts +4 -4
  828. package/dist/repositories/userActivations/deleteUserActivation.js +22 -22
  829. package/dist/repositories/userActivations/getLastActivationDevice.d.ts +5 -5
  830. package/dist/repositories/userActivations/getLastActivationDevice.js +31 -31
  831. package/dist/repositories/userActivations/getUserActivationById.d.ts +5 -5
  832. package/dist/repositories/userActivations/getUserActivationById.js +21 -21
  833. package/dist/repositories/userActivations/getUserActivationDevices.d.ts +5 -5
  834. package/dist/repositories/userActivations/getUserActivationDevices.js +29 -29
  835. package/dist/repositories/userActivations/getUserActivationDevicesByClientId.d.ts +5 -5
  836. package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +22 -22
  837. package/dist/repositories/userActivations/getUserActivationMetrics.d.ts +5 -5
  838. package/dist/repositories/userActivations/getUserActivationMetrics.js +29 -29
  839. package/dist/repositories/userActivations/getUserActivations.d.ts +5 -5
  840. package/dist/repositories/userActivations/getUserActivations.js +34 -34
  841. package/dist/repositories/userActivations/index.d.ts +147 -147
  842. package/dist/repositories/userActivations/index.js +237 -237
  843. package/dist/repositories/userActivations/updateUserActivationDevice.d.ts +4 -4
  844. package/dist/repositories/userActivations/updateUserActivationDevice.js +39 -39
  845. package/dist/repositories/userActivations/updateUserActivationMetrics.d.ts +4 -4
  846. package/dist/repositories/userActivations/updateUserActivationMetrics.js +61 -61
  847. package/dist/repositories/userAppFeedback/createUserAppFeedback.d.ts +5 -5
  848. package/dist/repositories/userAppFeedback/createUserAppFeedback.js +26 -26
  849. package/dist/repositories/userAppFeedback/index.d.ts +17 -17
  850. package/dist/repositories/userAppFeedback/index.js +23 -23
  851. package/dist/repositories/userAppIncidents/getUserAppIncidents.d.ts +5 -5
  852. package/dist/repositories/userAppIncidents/getUserAppIncidents.js +33 -33
  853. package/dist/repositories/userAppIncidents/index.d.ts +50 -50
  854. package/dist/repositories/userAppIncidents/index.js +63 -63
  855. package/dist/repositories/userAppIncidents/upsertUserAppIncident.d.ts +4 -4
  856. package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +53 -53
  857. package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.d.ts +5 -5
  858. package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +45 -45
  859. package/dist/repositories/userConfigurations/createUserAlertConfiguration.d.ts +5 -5
  860. package/dist/repositories/userConfigurations/createUserAlertConfiguration.js +33 -33
  861. package/dist/repositories/userConfigurations/createUserConfiguration.d.ts +5 -5
  862. package/dist/repositories/userConfigurations/createUserConfiguration.js +34 -34
  863. package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.d.ts +4 -4
  864. package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +29 -29
  865. package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.d.ts +4 -4
  866. package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js +29 -29
  867. package/dist/repositories/userConfigurations/deleteUserConfiguration.d.ts +4 -4
  868. package/dist/repositories/userConfigurations/deleteUserConfiguration.js +23 -23
  869. package/dist/repositories/userConfigurations/getUserAlertConfigurations.d.ts +5 -5
  870. package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +33 -33
  871. package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.d.ts +5 -5
  872. package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js +148 -148
  873. package/dist/repositories/userConfigurations/getUserConfigurations.d.ts +5 -5
  874. package/dist/repositories/userConfigurations/getUserConfigurations.js +36 -36
  875. package/dist/repositories/userConfigurations/index.d.ts +170 -170
  876. package/dist/repositories/userConfigurations/index.js +260 -260
  877. package/dist/repositories/userConfigurations/updateUserAlertConfigurations.d.ts +4 -4
  878. package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +46 -46
  879. package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.d.ts +4 -4
  880. package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js +52 -52
  881. package/dist/repositories/userConfigurations/updateUserConfiguration.d.ts +4 -4
  882. package/dist/repositories/userConfigurations/updateUserConfiguration.js +49 -49
  883. package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.d.ts +4 -4
  884. package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js +29 -29
  885. package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.d.ts +5 -5
  886. package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +28 -28
  887. package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.d.ts +5 -5
  888. package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +34 -34
  889. package/dist/repositories/userDataDeletionRequests/index.d.ts +39 -39
  890. package/dist/repositories/userDataDeletionRequests/index.js +66 -66
  891. package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.d.ts +4 -4
  892. package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +17 -17
  893. package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.d.ts +4 -4
  894. package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +38 -38
  895. package/dist/repositories/userInvitations/createUserInvitation.d.ts +5 -5
  896. package/dist/repositories/userInvitations/createUserInvitation.js +44 -44
  897. package/dist/repositories/userInvitations/getUserInvitationById.d.ts +5 -5
  898. package/dist/repositories/userInvitations/getUserInvitationById.js +27 -27
  899. package/dist/repositories/userInvitations/getUserInvitations.d.ts +5 -5
  900. package/dist/repositories/userInvitations/getUserInvitations.js +51 -51
  901. package/dist/repositories/userInvitations/index.d.ts +55 -55
  902. package/dist/repositories/userInvitations/index.js +82 -82
  903. package/dist/repositories/userInvitations/updateUserInvitation.d.ts +4 -4
  904. package/dist/repositories/userInvitations/updateUserInvitation.js +52 -52
  905. package/dist/repositories/userRatingRequests/createUserRatingRequest.d.ts +5 -5
  906. package/dist/repositories/userRatingRequests/createUserRatingRequest.js +34 -34
  907. package/dist/repositories/userRatingRequests/getUserRatingRequests.d.ts +5 -5
  908. package/dist/repositories/userRatingRequests/getUserRatingRequests.js +28 -28
  909. package/dist/repositories/userRatingRequests/index.d.ts +28 -28
  910. package/dist/repositories/userRatingRequests/index.js +41 -41
  911. package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.d.ts +5 -5
  912. package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +40 -40
  913. package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.d.ts +5 -5
  914. package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +34 -34
  915. package/dist/repositories/userRegistrationAttempts/index.d.ts +50 -50
  916. package/dist/repositories/userRegistrationAttempts/index.js +70 -70
  917. package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.d.ts +4 -4
  918. package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +40 -40
  919. package/dist/repositories/users/createUser.d.ts +5 -5
  920. package/dist/repositories/users/createUser.js +47 -47
  921. package/dist/repositories/users/deleteAccount.d.ts +4 -4
  922. package/dist/repositories/users/deleteAccount.js +98 -98
  923. package/dist/repositories/users/deleteUser.d.ts +4 -4
  924. package/dist/repositories/users/deleteUser.js +22 -22
  925. package/dist/repositories/users/getUserById.d.ts +5 -5
  926. package/dist/repositories/users/getUserById.js +36 -36
  927. package/dist/repositories/users/getUserClientRelatedEntitiesCount.d.ts +4 -4
  928. package/dist/repositories/users/getUserClientRelatedEntitiesCount.js +57 -57
  929. package/dist/repositories/users/getUserData.d.ts +4 -4
  930. package/dist/repositories/users/getUserData.js +26 -26
  931. package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.d.ts +4 -4
  932. package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js +86 -86
  933. package/dist/repositories/users/getUsers.d.ts +5 -5
  934. package/dist/repositories/users/getUsers.js +96 -96
  935. package/dist/repositories/users/getUsersConfigurationByImei.d.ts +5 -5
  936. package/dist/repositories/users/getUsersConfigurationByImei.js +30 -30
  937. package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.d.ts +4 -4
  938. package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +26 -26
  939. package/dist/repositories/users/getUsersInfoWithActivationInfo.d.ts +4 -4
  940. package/dist/repositories/users/getUsersInfoWithActivationInfo.js +24 -24
  941. package/dist/repositories/users/getUsersInfoWithDevicesInfo.d.ts +4 -4
  942. package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +58 -58
  943. package/dist/repositories/users/getUsersWithRoles.d.ts +4 -4
  944. package/dist/repositories/users/getUsersWithRoles.js +39 -39
  945. package/dist/repositories/users/index.d.ts +154 -154
  946. package/dist/repositories/users/index.js +251 -251
  947. package/dist/repositories/users/updateUser.d.ts +4 -4
  948. package/dist/repositories/users/updateUser.js +109 -109
  949. package/dist/subscribers/allEntitiesSubscriber.d.ts +13 -13
  950. package/dist/subscribers/allEntitiesSubscriber.js +52 -52
  951. package/dist/subscribers/index.d.ts +2 -2
  952. package/dist/subscribers/index.js +2 -2
  953. package/dist/types/acumatica.d.ts +42 -42
  954. package/dist/types/acumatica.js +1 -1
  955. package/dist/types/aempToken.d.ts +20 -20
  956. package/dist/types/aempToken.js +1 -1
  957. package/dist/types/alert.d.ts +87 -87
  958. package/dist/types/alert.js +1 -1
  959. package/dist/types/alertTypes.d.ts +6 -6
  960. package/dist/types/alertTypes.js +1 -1
  961. package/dist/types/appFeatures.d.ts +24 -24
  962. package/dist/types/appFeatures.js +1 -1
  963. package/dist/types/billing.d.ts +342 -342
  964. package/dist/types/billing.js +1 -1
  965. package/dist/types/blacklist.d.ts +32 -32
  966. package/dist/types/blacklist.js +1 -1
  967. package/dist/types/bleMesh.d.ts +157 -157
  968. package/dist/types/bleMesh.js +1 -1
  969. package/dist/types/bleMeshConfiguration.d.ts +30 -30
  970. package/dist/types/bleMeshConfiguration.js +1 -1
  971. package/dist/types/boundaries.d.ts +125 -125
  972. package/dist/types/boundaries.js +1 -1
  973. package/dist/types/clientAlertConfiguration.d.ts +100 -100
  974. package/dist/types/clientAlertConfiguration.js +1 -1
  975. package/dist/types/clients.d.ts +137 -137
  976. package/dist/types/clients.js +34 -34
  977. package/dist/types/common.d.ts +17 -17
  978. package/dist/types/common.js +1 -1
  979. package/dist/types/countries.d.ts +12 -12
  980. package/dist/types/countries.js +1 -1
  981. package/dist/types/dataExports.d.ts +43 -43
  982. package/dist/types/dataExports.js +1 -1
  983. package/dist/types/deactivations.d.ts +25 -25
  984. package/dist/types/deactivations.js +1 -1
  985. package/dist/types/deviceBehaviors.d.ts +97 -97
  986. package/dist/types/deviceBehaviors.js +1 -1
  987. package/dist/types/devicePairings.d.ts +56 -56
  988. package/dist/types/devicePairings.js +1 -1
  989. package/dist/types/deviceStatus.d.ts +84 -84
  990. package/dist/types/deviceStatus.js +1 -1
  991. package/dist/types/deviceTypeFeature.d.ts +23 -23
  992. package/dist/types/deviceTypeFeature.js +3 -3
  993. package/dist/types/devices.d.ts +408 -408
  994. package/dist/types/devices.js +24 -24
  995. package/dist/types/entitiesTags.d.ts +63 -63
  996. package/dist/types/entitiesTags.js +25 -25
  997. package/dist/types/enums.d.ts +85 -85
  998. package/dist/types/enums.js +102 -102
  999. package/dist/types/feature.d.ts +20 -20
  1000. package/dist/types/feature.js +2 -2
  1001. package/dist/types/firmwares.d.ts +129 -129
  1002. package/dist/types/firmwares.js +17 -17
  1003. package/dist/types/index.d.ts +38 -38
  1004. package/dist/types/index.js +38 -38
  1005. package/dist/types/latestUserAppInfo.d.ts +12 -12
  1006. package/dist/types/latestUserAppInfo.js +1 -1
  1007. package/dist/types/liveLinks.d.ts +92 -92
  1008. package/dist/types/liveLinks.js +1 -1
  1009. package/dist/types/logger.d.ts +68 -68
  1010. package/dist/types/logger.js +9 -9
  1011. package/dist/types/notificationRecipients.d.ts +72 -72
  1012. package/dist/types/notificationRecipients.js +1 -1
  1013. package/dist/types/position.d.ts +71 -71
  1014. package/dist/types/position.js +1 -1
  1015. package/dist/types/promotion.d.ts +121 -121
  1016. package/dist/types/promotion.js +41 -41
  1017. package/dist/types/security.d.ts +42 -42
  1018. package/dist/types/security.js +1 -1
  1019. package/dist/types/tag.d.ts +65 -65
  1020. package/dist/types/tag.js +14 -14
  1021. package/dist/types/tasks.d.ts +228 -228
  1022. package/dist/types/tasks.js +1 -1
  1023. package/dist/types/trip.d.ts +92 -92
  1024. package/dist/types/trip.js +30 -30
  1025. package/dist/types/user.d.ts +252 -252
  1026. package/dist/types/user.js +1 -1
  1027. package/dist/types/userActivations.d.ts +143 -143
  1028. package/dist/types/userActivations.js +1 -1
  1029. package/dist/types/userAppFeedback.d.ts +8 -8
  1030. package/dist/types/userAppFeedback.js +1 -1
  1031. package/dist/types/userAppIncidents.d.ts +35 -35
  1032. package/dist/types/userAppIncidents.js +1 -1
  1033. package/dist/types/userConfigurations.d.ts +127 -127
  1034. package/dist/types/userConfigurations.js +1 -1
  1035. package/dist/types/userDataDeletionRequests.d.ts +29 -29
  1036. package/dist/types/userDataDeletionRequests.js +1 -1
  1037. package/dist/types/userInvitations.d.ts +48 -48
  1038. package/dist/types/userInvitations.js +1 -1
  1039. package/dist/types/userRatingRequests.d.ts +18 -18
  1040. package/dist/types/userRatingRequests.js +1 -1
  1041. package/dist/types/userRegistrationAttempts.d.ts +36 -36
  1042. package/dist/types/userRegistrationAttempts.js +1 -1
  1043. package/dist/utils/anyAttributeHasValue.d.ts +1 -1
  1044. package/dist/utils/anyAttributeHasValue.js +20 -20
  1045. package/dist/utils/billingPlansHelper.d.ts +3 -3
  1046. package/dist/utils/billingPlansHelper.js +49 -49
  1047. package/dist/utils/boolToNumberTransformer.d.ts +5 -5
  1048. package/dist/utils/boolToNumberTransformer.js +23 -23
  1049. package/dist/utils/consoleLogger.d.ts +10 -10
  1050. package/dist/utils/consoleLogger.js +42 -42
  1051. package/dist/utils/dateTool.d.ts +2 -2
  1052. package/dist/utils/dateTool.js +8 -8
  1053. package/dist/utils/filterTools.d.ts +12 -12
  1054. package/dist/utils/filterTools.js +299 -299
  1055. package/dist/utils/mapRawEntityToEntity.d.ts +1 -1
  1056. package/dist/utils/mapRawEntityToEntity.js +12 -12
  1057. package/dist/utils/paramsValidators.d.ts +3 -3
  1058. package/dist/utils/paramsValidators.js +16 -16
  1059. package/dist/utils/parsingTools.d.ts +3 -3
  1060. package/dist/utils/parsingTools.js +21 -21
  1061. package/dist/utils/queryLogger.d.ts +13 -13
  1062. package/dist/utils/queryLogger.js +49 -49
  1063. package/dist/utils/randomizer.d.ts +5 -5
  1064. package/dist/utils/randomizer.js +39 -39
  1065. package/dist/utils/stringToDateTransformer.d.ts +5 -5
  1066. package/dist/utils/stringToDateTransformer.js +16 -16
  1067. package/dist/utils/uuidHelpers.d.ts +2 -2
  1068. package/dist/utils/uuidHelpers.js +30 -30
  1069. package/dist/utils/uuidTransformer.d.ts +5 -5
  1070. package/dist/utils/uuidTransformer.js +37 -37
  1071. package/package.json +2 -2
@@ -1,444 +1,444 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { BaseRepository } from '../baseRepository';
3
- import { addTaskScheduleDevices } from './addTaskScheduleDevices';
4
- import { completeTask } from './completeTask';
5
- import { createTask } from './createTask';
6
- import { createTaskSchedule } from './createTaskSchedule';
7
- import { deleteTask } from './deleteTask';
8
- import { deleteTaskSchedule } from './deleteTaskSchedule';
9
- import { deleteTaskScheduleDevices } from './deleteTaskScheduleDevices';
10
- import { getDeviceTasks } from './getDeviceTasks';
11
- import { getTasks } from './getTasks';
12
- import { getTaskSchedule } from './getTaskSchedule';
13
- import { getTaskSchedules } from './getTaskSchedules';
14
- import { getTaskSchedulesCount } from './getTaskSchedulesCount';
15
- import { getTasksCount } from './getTasksCount';
16
- import { setTaskAsPastDue } from './setTaskAsPastDue';
17
- import { setTaskScheduleDevices } from './setTaskScheduleDevices';
18
- import { updateTask } from './updateTask';
19
- import { updateTaskSchedule } from './updateTaskSchedule';
20
- export class TasksRepository extends BaseRepository {
21
- /**
22
- * Create a new task schedule
23
- * @param params params containing information to create task schedule
24
- * params.id: the ID, optional. If not provided, a new ID will be generated
25
- * params.clientId: the client ID, required
26
- * params.title: the title, required
27
- * params.description: the description, required
28
- * params.repeats: whether the task repeats, required
29
- * params.dueDate: the due date, optional
30
- * params.dueOdometer: the due odometer, optional
31
- * params.dueActiveHours: the due active hours, optional
32
- * params.intervalDays: the interval days, optional
33
- * params.intervalOdometer: the interval odometer, optional
34
- * params.intervalActiveHours: the interval active hours, optional
35
- * params.intervalStartDate: the interval start date, optional
36
- * params.intervalStartingOdometer: the interval starting odometer, optional
37
- * params.intervalStartingActiveHours: the interval starting active hours, optional
38
- * params.notes: the notes, optional
39
- * params.createdBy: the created by, required
40
- * @returns Promise<TaskSchedule> the created task schedule
41
- */
42
- async createTaskSchedule(params) {
43
- this.logger.trace(params, 'TasksRepository::createTaskSchedule started with params');
44
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
45
- const result = await createTaskSchedule(novaDataSource, params, this.logger);
46
- this.logger.trace(result, 'TasksRepository::createTaskSchedule result');
47
- return result;
48
- }
49
- /**
50
- * Get a task schedule
51
- * @param params params containing information to get task schedule
52
- * params.filters.id: the ID, required
53
- * @returns Promise<TaskSchedule> the task schedule
54
- */
55
- async getTaskSchedule(params) {
56
- this.logger.trace(params, 'TasksRepository::getTaskSchedule started with params');
57
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
58
- const result = await getTaskSchedule(novaDataSource, params, this.logger);
59
- this.logger.trace(result, 'TasksRepository::getTaskSchedule result');
60
- return result;
61
- }
62
- /**
63
- * Update an existing task schedule
64
- * @param params params containing information to update task schedule
65
- * params.filters.id: the ID, required
66
- * params.values.clientId: the client ID, optional
67
- * params.values.title: the title, optional
68
- * params.values.description: the description, optional
69
- * params.values.repeats: whether the task repeats, optional
70
- * params.values.dueDate: the due date, optional
71
- * params.values.dueOdometer: the due odometer, optional
72
- * params.values.dueActiveHours: the due active hours, optional
73
- * params.values.intervalDays: the interval days, optional
74
- * params.values.intervalOdometer: the interval odometer, optional
75
- * params.values.intervalActiveHours: the interval active hours, optional
76
- * params.values.intervalStartDate: the interval start date, optional
77
- * params.values.intervalStartingOdometer: the interval starting odometer, optional
78
- * params.values.intervalStartingActiveHours: the interval starting active hours, optional
79
- * params.values.notes: the notes, optional
80
- * params.values.modifiedBy: the modified by, required
81
- * @returns Promise<boolean> whether the task schedule was updated
82
- */
83
- async updateTaskSchedule(params) {
84
- this.logger.trace(params, 'TasksRepository::updateTaskSchedule started with params');
85
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
86
- const result = await updateTaskSchedule(novaDataSource, params, this.logger);
87
- this.logger.trace({ result }, 'TasksRepository::updateTaskSchedule result');
88
- return result;
89
- }
90
- /**
91
- * Delete an existing task schedule
92
- * @param params params containing information to delete task schedule
93
- * params.id: the ID, required
94
- * params.deletedBy: the user performing the delete action, required
95
- * @returns Promise<boolean> whether the task schedule was deleted
96
- */
97
- async deleteTaskSchedule(params) {
98
- this.logger.trace(params, 'TasksRepository::deleteTaskSchedule started with params');
99
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
100
- const result = await deleteTaskSchedule(novaDataSource, params, this.logger);
101
- this.logger.trace({ result }, 'TasksRepository::deleteTaskSchedule result');
102
- return result;
103
- }
104
- /**
105
- * Get task schedules with filters
106
- * @param params params containing information to get task schedules
107
- * At least one of the following filters is required:
108
- * params.filters.imei: the IMEI, if provided, will return task schedules associated to the device
109
- * params.filters.clientId: the client ID
110
- * params.filters.title: the title for partial match search
111
- * params.filters.description: the description for partial match search
112
- * params.filters.repeats: filter for tasks that repeat or not
113
- * params.filters.minDueDate: the minimum due date
114
- * params.filters.maxDueDate: the maximum due date
115
- * params.filters.minDueOdometer: the minimum due odometer
116
- * params.filters.maxDueOdometer: the maximum due odometer
117
- * params.filters.minDueActiveHours: the minimum due active hours
118
- * params.filters.maxDueActiveHours: the maximum due active hours
119
- * params.filters.minIntervalDays: the minimum interval days
120
- * params.filters.maxIntervalDays: the maximum interval days
121
- * params.filters.minIntervalStartDate: the minimum interval start date
122
- * params.filters.maxIntervalStartDate: the maximum interval start date
123
- * params.filters.minIntervalOdometer: the minimum interval odometer
124
- * params.filters.maxIntervalOdometer: the maximum interval odometer
125
- * params.filters.minIntervalActiveHours: the minimum interval active hours
126
- * params.filters.maxIntervalActiveHours: the maximum interval active hours
127
- * params.filters.minIntervalStartingOdometer: the minimum interval starting odometer
128
- * params.filters.maxIntervalStartingOdometer: the maximum interval starting odometer
129
- * params.filters.minIntervalStartingActiveHours: the minimum interval starting active hours
130
- * params.filters.maxIntervalStartingActiveHours: the maximum interval starting active hours
131
- * params.filters.notes: the notes for partial match search
132
- * params.filters.createdBy: the created by, exact match search
133
- * params.filters.minCreatedAt: the minimum created at
134
- * params.filters.maxCreatedAt: the maximum created at
135
- * params.filters.modifiedBy: the modified by, exact match search
136
- * params.filters.minModifiedAt: the minimum modified at
137
- * params.filters.maxModifiedAt: the maximum modified at
138
- * params.filters.deletedBy: the deleted by, exact match search
139
- * params.filters.minDeletedAt: the minimum deleted at
140
- * params.filters.maxDeletedAt: the maximum deleted at
141
- * params.filters.status: the status (active or deleted)
142
- * params.projectionOptions:
143
- * - numberOfDevicesToGet: the number of devices to get for each task schedule. By default, no device is returned.
144
- * params.sortOptions:
145
- * - sortField: field to order by
146
- * - sortDirection: order direction (asc or desc)
147
- * params.pagingOptions:
148
- * - pageSize: the page size
149
- * - pageIndex: the page index
150
- * @returns Promise<TaskSchedule[]> the task schedules corresponding to the filters
151
- */
152
- async getTaskSchedules(params) {
153
- this.logger.trace(params, 'TasksRepository::getTaskSchedules started with params');
154
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
155
- const result = await getTaskSchedules(novaDataSource, params, this.logger);
156
- this.logger.trace(result, 'TasksRepository::getTaskSchedules result');
157
- return result;
158
- }
159
- /**
160
- * Get the count of task schedules with filters
161
- * @param params params containing information to get task schedules count
162
- * At least one of the following filters is required:
163
- * params.filters.imei: the IMEI, if provided, will return task schedules associated to the device
164
- * params.filters.clientId: the client ID
165
- * params.filters.title: the title for partial match search
166
- * params.filters.description: the description for partial match search
167
- * params.filters.repeats: filter for tasks that repeat or not
168
- * params.filters.minDueDate: the minimum due date
169
- * params.filters.maxDueDate: the maximum due date
170
- * params.filters.minDueOdometer: the minimum due odometer
171
- * params.filters.maxDueOdometer: the maximum due odometer
172
- * params.filters.minDueActiveHours: the minimum due active hours
173
- * params.filters.maxDueActiveHours: the maximum due active hours
174
- * params.filters.minIntervalDays: the minimum interval days
175
- * params.filters.maxIntervalDays: the maximum interval days
176
- * params.filters.minIntervalStartDate: the minimum interval start date
177
- * params.filters.maxIntervalStartDate: the maximum interval start date
178
- * params.filters.minIntervalOdometer: the minimum interval odometer
179
- * params.filters.maxIntervalOdometer: the maximum interval odometer
180
- * params.filters.minIntervalActiveHours: the minimum interval active hours
181
- * params.filters.maxIntervalActiveHours: the maximum interval active hours
182
- * params.filters.minIntervalStartingOdometer: the minimum interval starting odometer
183
- * params.filters.maxIntervalStartingOdometer: the maximum interval starting odometer
184
- * params.filters.minIntervalStartingActiveHours: the minimum interval starting active hours
185
- * params.filters.maxIntervalStartingActiveHours: the maximum interval starting active hours
186
- * params.filters.notes: the notes for partial match search
187
- * params.filters.createdBy: the created by, exact match search
188
- * params.filters.minCreatedAt: the minimum created at
189
- * params.filters.maxCreatedAt: the maximum created at
190
- * params.filters.modifiedBy: the modified by, exact match search
191
- * params.filters.minModifiedAt: the minimum modified at
192
- * params.filters.maxModifiedAt: the maximum modified at
193
- * params.filters.deletedBy: the deleted by, exact match search
194
- * params.filters.minDeletedAt: the minimum deleted at
195
- * params.filters.maxDeletedAt: the maximum deleted at
196
- * params.filters.status: the status (active or deleted)
197
- * @returns Promise<number> the count of task schedules corresponding to the filters
198
- */
199
- async getTaskSchedulesCount(params) {
200
- this.logger.trace(params, 'TasksRepository::getTaskSchedulesCount started with params');
201
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
202
- const result = await getTaskSchedulesCount(novaDataSource, params, this.logger);
203
- this.logger.trace({ result }, 'TasksRepository::getTaskSchedulesCount result');
204
- return result;
205
- }
206
- /**
207
- * Get device tasks
208
- * @param params params containing information to get device tasks
209
- * At least one of the following filters is required:
210
- * params.filters.taskScheduleId: the task schedule ID
211
- * params.filters.imei: the IMEI
212
- * params.filters.clientId: the client ID
213
- * @returns Promise<DeviceTask[]> the device tasks corresponding to the filters
214
- */
215
- async getDeviceTasks(params) {
216
- this.logger.trace(params, 'TasksRepository::getDeviceTasks started with params');
217
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
218
- const result = await getDeviceTasks(novaDataSource, params, this.logger);
219
- this.logger.trace(result, 'TasksRepository::getDeviceTasks result');
220
- return result;
221
- }
222
- /**
223
- * Sets the imeis associated with a task schedule.
224
- * This operation replaces all the existing records associated with the taskScheduleId, with the supplied imeis.
225
- * @param params params containing information to set task schedule devices
226
- * params.taskScheduleId: the task schedule ID, required.
227
- * params.imeis: the IMEIs, optional. If not provided, all the existing records associated with the taskScheduleId will be deleted.
228
- * @returns Promise<boolean> whether the task schedule devices were set
229
- * If the task schedule does not exist, the function will return false
230
- */
231
- async setTaskScheduleDevices(params) {
232
- this.logger.trace(params, 'TasksRepository::setTaskScheduleDevices started with params');
233
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
234
- const result = await setTaskScheduleDevices(novaDataSource, params, this.logger);
235
- this.logger.trace({ result }, 'TasksRepository::setTaskScheduleDevices result');
236
- return result;
237
- }
238
- /**
239
- * Adds the supplied imeis to the DeviceTask table, associated with a task schedule id.
240
- * This operation adds the imeis if they do not exist and does not remove or modifies other records.
241
- * @param params params containing information to add task schedule devices
242
- * params.taskScheduleId: the task schedule ID, required.
243
- * params.imeis: the IMEIs, required.
244
- * @returns Promise<boolean> whether the task schedule devices were added
245
- * If the task schedule does not exist, the function will return false
246
- */
247
- async addTaskScheduleDevices(params) {
248
- this.logger.trace(params, 'TasksRepository::addTaskScheduleDevices started with params');
249
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
250
- const result = await addTaskScheduleDevices(novaDataSource, params, this.logger);
251
- this.logger.trace({ result }, 'TasksRepository::addTaskScheduleDevices result');
252
- return result;
253
- }
254
- /**
255
- * Deletes the supplied imeis from the DeviceTask table, associated with a task schedule id.
256
- * This operation deletes the imeis if they exist and does not remove or modifies other records.
257
- * @param params params containing information to delete task schedule devices
258
- * params.taskScheduleId: the task schedule ID, required.
259
- * params.imeis: the IMEIs, required.
260
- * @returns Promise<boolean> whether the task schedule devices were deleted
261
- */
262
- async deleteTaskScheduleDevices(params) {
263
- this.logger.trace(params, 'TasksRepository::deleteTaskScheduleDevices started with params');
264
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
265
- const result = await deleteTaskScheduleDevices(novaDataSource, params, this.logger);
266
- this.logger.trace({ result }, 'TasksRepository::deleteTaskScheduleDevices result');
267
- return result;
268
- }
269
- /**
270
- * Create a new task
271
- * @param params params containing information to create task
272
- * params.id: the ID, optional. If not provided, a new ID will be generated
273
- * params.taskScheduleId: the task schedule ID, required
274
- * params.imei: the IMEI, required
275
- * params.clientId: the client ID, required
276
- * params.startDate: the starting date, optional
277
- * params.startingOdometer: the starting odometer, optional
278
- * params.startingActiveHours: the starting active hours, optional
279
- * One of the following is required:
280
- * params.dueDate: the due date, required
281
- * params.dueOdometer: the due odometer, required
282
- * params.dueActiveHours: the due active hours, required
283
- * @returns Promise<Task> the created task
284
- */
285
- async createTask(params) {
286
- this.logger.trace(params, 'TasksRepository::createTask started with params');
287
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
288
- const result = await createTask(novaDataSource, params, this.logger);
289
- this.logger.trace(result, 'TasksRepository::createTask result');
290
- return result;
291
- }
292
- /**
293
- * Get tasks with filters
294
- * @param params params containing information to get tasks
295
- * At least one of the following filters is required:
296
- * params.filters.taskId: the task ID
297
- * params.filters.taskScheduleId: the task schedule ID
298
- * params.filters.imei: the IMEI
299
- * params.filters.clientId: the client ID
300
- * params.filters.dueDateFilter: the due date range filter
301
- * params.filters.dueOdometerFilter: the due odometer range filter
302
- * params.filters.dueActiveHoursFilter: the due active hours range filter
303
- * params.filters.startDateFilter: the start date range filter
304
- * params.filters.startingOdometerFilter: the starting odometer range filter
305
- * params.filters.startingActiveHoursFilter: the starting active hours range filter
306
- * params.filters.status: the status (pending, past_due, completed, deleted)
307
- * params.filters.pastDueAtFilter: the past due at range filter
308
- * params.filters.createdAtFilter: the created at range filter
309
- * params.filters.completedAtFilter: the completed at range filter
310
- * params.filters.completionNotes: the completion notes for partial match search
311
- * params.filters.completionOdometerFilter: the completion odometer range filter
312
- * params.filters.completionActiveHoursFilter: the completion active hours range filter
313
- * params.filters.completedBy: the completed by, partial match search
314
- * params.filters.modifiedBy: the modified by, partial match search
315
- * params.filters.modifiedAtFilter: the modified at range filter
316
- * params.filters.queuedAtFilter: the queued at range filter
317
- * params.filters.predictedDueDateFilter: the predicted due date range filter
318
- * params.filters.deletedAtFilter: the deleted at range filter
319
- * params.filters.deletedBy: the deleted by, partial match search
320
- * params.sortOptions:
321
- * - sortField: field to order by
322
- * - sortDirection: order direction (asc or desc)
323
- * params.pagingOptions:
324
- * - pageSize: the page size
325
- * - pageIndex: the page index
326
- * @returns Promise<Task[]> the tasks corresponding to the filters
327
- */
328
- async getTasks(params) {
329
- this.logger.trace(params, 'TasksRepository::getTasks started with params');
330
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
331
- const result = await getTasks(novaDataSource, params, this.logger);
332
- this.logger.trace(result, 'TasksRepository::getTasks result');
333
- return result;
334
- }
335
- /**
336
- * Get the count of tasks with filters
337
- * @param params params containing information to get tasks count
338
- * At least one of the following filters is required:
339
- * params.filters.taskId: the task ID
340
- * params.filters.taskScheduleId: the task schedule ID
341
- * params.filters.imei: the IMEI
342
- * params.filters.clientId: the client ID
343
- * params.filters.dueDateFilter: the due date range filter
344
- * params.filters.dueOdometerFilter: the due odometer range filter
345
- * params.filters.dueActiveHoursFilter: the due active hours range filter
346
- * params.filters.startDateFilter: the start date range filter
347
- * params.filters.startingOdometerFilter: the starting odometer range filter
348
- * params.filters.startingActiveHoursFilter: the starting active hours range filter
349
- * params.filters.status: the status (pending, past_due, completed, deleted)
350
- * params.filters.pastDueAtFilter: the past due at range filter
351
- * params.filters.createdAtFilter: the created at range filter
352
- * params.filters.completedAtFilter: the completed at range filter
353
- * params.filters.completionNotes: the completion notes for partial match search
354
- * params.filters.completionOdometerFilter: the completion odometer range filter
355
- * params.filters.completionActiveHoursFilter: the completion active hours range filter
356
- * params.filters.completedBy: the completed by, partial match search
357
- * params.filters.modifiedBy: the modified by, partial match search
358
- * params.filters.modifiedAtFilter: the modified at range filter
359
- * params.filters.queuedAtFilter: the queued at range filter
360
- * params.filters.predictedDueDateFilter: the predicted due date range filter
361
- * params.filters.deletedAtFilter: the deleted at range filter
362
- * params.filters.deletedBy: the deleted by, partial match search
363
- * @returns Promise<number> the count of tasks corresponding to the filters
364
- */
365
- async getTasksCount(params) {
366
- this.logger.trace(params, 'TasksRepository::getTasksCount started with params');
367
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
368
- const result = await getTasksCount(novaDataSource, params, this.logger);
369
- this.logger.trace({ result }, 'TasksRepository::getTasksCount result');
370
- return result;
371
- }
372
- /**
373
- * Update an existing task
374
- * @param params params containing information to update task
375
- * params.filters.id: the ID, required
376
- * params.values.modifiedBy: the modified by, required
377
- * One of dueDate, dueOdometer, or dueActiveHours is required:
378
- * params.values.dueDate: the due date, optional
379
- * params.values.dueOdometer: the due odometer, optional
380
- * params.values.dueActiveHours: the due active hours, optional
381
- * params.values.startDate: the starting date, optional
382
- * params.values.startingOdometer: the starting odometer, optional
383
- * params.values.startingActiveHours: the starting active hours, optional
384
- * params.values.predictedDueDate: the predicted due date, optional
385
- * params.values.queuedAt: the queued at, optional
386
- * @returns Promise<boolean> whether the task was updated
387
- */
388
- async updateTask(params) {
389
- this.logger.trace(params, 'TasksRepository::updateTask started with params');
390
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
391
- const result = await updateTask(novaDataSource, params, this.logger);
392
- this.logger.trace({ result }, 'TasksRepository::updateTask result');
393
- return result;
394
- }
395
- /**
396
- * Set a task as past due
397
- * @param params params containing information to set task as past due
398
- * params.id: the task ID, required
399
- * params.pastDueAt: the past due at, optional. If not provided, the current date will be used
400
- * params.modifiedBy: the modified by, required
401
- * @returns Promise<boolean> whether the task was set as past due
402
- */
403
- async setTaskAsPastDue(params) {
404
- this.logger.trace(params, 'TasksRepository::setTaskAsPastDue started with params');
405
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
406
- const result = await setTaskAsPastDue(novaDataSource, params, this.logger);
407
- this.logger.trace({ result }, 'TasksRepository::setTaskAsPastDue result');
408
- return result;
409
- }
410
- /**
411
- * Complete a task
412
- * @param params params containing information to complete task
413
- * params.id: the ID, required
414
- * params.completedBy: the completed by, required
415
- * params.completionNotes: the completion notes, optional
416
- * params.completionOdometer: the completion odometer, optional
417
- * params.completionActiveHours: the completion active hours, optional
418
- * params.completionMetadata: the completion metadata, optional
419
- * params.includeTimeInCompletedAt: whether to include time in completed at, optional. Default is false
420
- * @returns Promise<boolean> whether the task was completed
421
- */
422
- async completeTask(params) {
423
- this.logger.trace(params, 'TasksRepository::completeTask started with params');
424
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
425
- const result = await completeTask(novaDataSource, params, this.logger);
426
- this.logger.trace({ result }, 'TasksRepository::completeTask result');
427
- return result;
428
- }
429
- /**
430
- * Delete an existing task
431
- * @param params params containing information to delete task
432
- * params.id: the ID, required
433
- * params.deletedBy: the user performing the delete action, required
434
- * @returns Promise<boolean> whether the task was deleted
435
- */
436
- async deleteTask(params) {
437
- this.logger.trace(params, 'TasksRepository::deleteTask started with params');
438
- const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
439
- const result = await deleteTask(novaDataSource, params, this.logger);
440
- this.logger.trace({ result }, 'TasksRepository::deleteTask result');
441
- return result;
442
- }
443
- }
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { BaseRepository } from '../baseRepository';
3
+ import { addTaskScheduleDevices } from './addTaskScheduleDevices';
4
+ import { completeTask } from './completeTask';
5
+ import { createTask } from './createTask';
6
+ import { createTaskSchedule } from './createTaskSchedule';
7
+ import { deleteTask } from './deleteTask';
8
+ import { deleteTaskSchedule } from './deleteTaskSchedule';
9
+ import { deleteTaskScheduleDevices } from './deleteTaskScheduleDevices';
10
+ import { getDeviceTasks } from './getDeviceTasks';
11
+ import { getTasks } from './getTasks';
12
+ import { getTaskSchedule } from './getTaskSchedule';
13
+ import { getTaskSchedules } from './getTaskSchedules';
14
+ import { getTaskSchedulesCount } from './getTaskSchedulesCount';
15
+ import { getTasksCount } from './getTasksCount';
16
+ import { setTaskAsPastDue } from './setTaskAsPastDue';
17
+ import { setTaskScheduleDevices } from './setTaskScheduleDevices';
18
+ import { updateTask } from './updateTask';
19
+ import { updateTaskSchedule } from './updateTaskSchedule';
20
+ export class TasksRepository extends BaseRepository {
21
+ /**
22
+ * Create a new task schedule
23
+ * @param params params containing information to create task schedule
24
+ * params.id: the ID, optional. If not provided, a new ID will be generated
25
+ * params.clientId: the client ID, required
26
+ * params.title: the title, required
27
+ * params.description: the description, required
28
+ * params.repeats: whether the task repeats, required
29
+ * params.dueDate: the due date, optional
30
+ * params.dueOdometer: the due odometer, optional
31
+ * params.dueActiveHours: the due active hours, optional
32
+ * params.intervalDays: the interval days, optional
33
+ * params.intervalOdometer: the interval odometer, optional
34
+ * params.intervalActiveHours: the interval active hours, optional
35
+ * params.intervalStartDate: the interval start date, optional
36
+ * params.intervalStartingOdometer: the interval starting odometer, optional
37
+ * params.intervalStartingActiveHours: the interval starting active hours, optional
38
+ * params.notes: the notes, optional
39
+ * params.createdBy: the created by, required
40
+ * @returns Promise<TaskSchedule> the created task schedule
41
+ */
42
+ async createTaskSchedule(params) {
43
+ this.logger.trace(params, 'TasksRepository::createTaskSchedule started with params');
44
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
45
+ const result = await createTaskSchedule(novaDataSource, params, this.logger);
46
+ this.logger.trace(result, 'TasksRepository::createTaskSchedule result');
47
+ return result;
48
+ }
49
+ /**
50
+ * Get a task schedule
51
+ * @param params params containing information to get task schedule
52
+ * params.filters.id: the ID, required
53
+ * @returns Promise<TaskSchedule> the task schedule
54
+ */
55
+ async getTaskSchedule(params) {
56
+ this.logger.trace(params, 'TasksRepository::getTaskSchedule started with params');
57
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
58
+ const result = await getTaskSchedule(novaDataSource, params, this.logger);
59
+ this.logger.trace(result, 'TasksRepository::getTaskSchedule result');
60
+ return result;
61
+ }
62
+ /**
63
+ * Update an existing task schedule
64
+ * @param params params containing information to update task schedule
65
+ * params.filters.id: the ID, required
66
+ * params.values.clientId: the client ID, optional
67
+ * params.values.title: the title, optional
68
+ * params.values.description: the description, optional
69
+ * params.values.repeats: whether the task repeats, optional
70
+ * params.values.dueDate: the due date, optional
71
+ * params.values.dueOdometer: the due odometer, optional
72
+ * params.values.dueActiveHours: the due active hours, optional
73
+ * params.values.intervalDays: the interval days, optional
74
+ * params.values.intervalOdometer: the interval odometer, optional
75
+ * params.values.intervalActiveHours: the interval active hours, optional
76
+ * params.values.intervalStartDate: the interval start date, optional
77
+ * params.values.intervalStartingOdometer: the interval starting odometer, optional
78
+ * params.values.intervalStartingActiveHours: the interval starting active hours, optional
79
+ * params.values.notes: the notes, optional
80
+ * params.values.modifiedBy: the modified by, required
81
+ * @returns Promise<boolean> whether the task schedule was updated
82
+ */
83
+ async updateTaskSchedule(params) {
84
+ this.logger.trace(params, 'TasksRepository::updateTaskSchedule started with params');
85
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
86
+ const result = await updateTaskSchedule(novaDataSource, params, this.logger);
87
+ this.logger.trace({ result }, 'TasksRepository::updateTaskSchedule result');
88
+ return result;
89
+ }
90
+ /**
91
+ * Delete an existing task schedule
92
+ * @param params params containing information to delete task schedule
93
+ * params.id: the ID, required
94
+ * params.deletedBy: the user performing the delete action, required
95
+ * @returns Promise<boolean> whether the task schedule was deleted
96
+ */
97
+ async deleteTaskSchedule(params) {
98
+ this.logger.trace(params, 'TasksRepository::deleteTaskSchedule started with params');
99
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
100
+ const result = await deleteTaskSchedule(novaDataSource, params, this.logger);
101
+ this.logger.trace({ result }, 'TasksRepository::deleteTaskSchedule result');
102
+ return result;
103
+ }
104
+ /**
105
+ * Get task schedules with filters
106
+ * @param params params containing information to get task schedules
107
+ * At least one of the following filters is required:
108
+ * params.filters.imei: the IMEI, if provided, will return task schedules associated to the device
109
+ * params.filters.clientId: the client ID
110
+ * params.filters.title: the title for partial match search
111
+ * params.filters.description: the description for partial match search
112
+ * params.filters.repeats: filter for tasks that repeat or not
113
+ * params.filters.minDueDate: the minimum due date
114
+ * params.filters.maxDueDate: the maximum due date
115
+ * params.filters.minDueOdometer: the minimum due odometer
116
+ * params.filters.maxDueOdometer: the maximum due odometer
117
+ * params.filters.minDueActiveHours: the minimum due active hours
118
+ * params.filters.maxDueActiveHours: the maximum due active hours
119
+ * params.filters.minIntervalDays: the minimum interval days
120
+ * params.filters.maxIntervalDays: the maximum interval days
121
+ * params.filters.minIntervalStartDate: the minimum interval start date
122
+ * params.filters.maxIntervalStartDate: the maximum interval start date
123
+ * params.filters.minIntervalOdometer: the minimum interval odometer
124
+ * params.filters.maxIntervalOdometer: the maximum interval odometer
125
+ * params.filters.minIntervalActiveHours: the minimum interval active hours
126
+ * params.filters.maxIntervalActiveHours: the maximum interval active hours
127
+ * params.filters.minIntervalStartingOdometer: the minimum interval starting odometer
128
+ * params.filters.maxIntervalStartingOdometer: the maximum interval starting odometer
129
+ * params.filters.minIntervalStartingActiveHours: the minimum interval starting active hours
130
+ * params.filters.maxIntervalStartingActiveHours: the maximum interval starting active hours
131
+ * params.filters.notes: the notes for partial match search
132
+ * params.filters.createdBy: the created by, exact match search
133
+ * params.filters.minCreatedAt: the minimum created at
134
+ * params.filters.maxCreatedAt: the maximum created at
135
+ * params.filters.modifiedBy: the modified by, exact match search
136
+ * params.filters.minModifiedAt: the minimum modified at
137
+ * params.filters.maxModifiedAt: the maximum modified at
138
+ * params.filters.deletedBy: the deleted by, exact match search
139
+ * params.filters.minDeletedAt: the minimum deleted at
140
+ * params.filters.maxDeletedAt: the maximum deleted at
141
+ * params.filters.status: the status (active or deleted)
142
+ * params.projectionOptions:
143
+ * - numberOfDevicesToGet: the number of devices to get for each task schedule. By default, no device is returned.
144
+ * params.sortOptions:
145
+ * - sortField: field to order by
146
+ * - sortDirection: order direction (asc or desc)
147
+ * params.pagingOptions:
148
+ * - pageSize: the page size
149
+ * - pageIndex: the page index
150
+ * @returns Promise<TaskSchedule[]> the task schedules corresponding to the filters
151
+ */
152
+ async getTaskSchedules(params) {
153
+ this.logger.trace(params, 'TasksRepository::getTaskSchedules started with params');
154
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
155
+ const result = await getTaskSchedules(novaDataSource, params, this.logger);
156
+ this.logger.trace(result, 'TasksRepository::getTaskSchedules result');
157
+ return result;
158
+ }
159
+ /**
160
+ * Get the count of task schedules with filters
161
+ * @param params params containing information to get task schedules count
162
+ * At least one of the following filters is required:
163
+ * params.filters.imei: the IMEI, if provided, will return task schedules associated to the device
164
+ * params.filters.clientId: the client ID
165
+ * params.filters.title: the title for partial match search
166
+ * params.filters.description: the description for partial match search
167
+ * params.filters.repeats: filter for tasks that repeat or not
168
+ * params.filters.minDueDate: the minimum due date
169
+ * params.filters.maxDueDate: the maximum due date
170
+ * params.filters.minDueOdometer: the minimum due odometer
171
+ * params.filters.maxDueOdometer: the maximum due odometer
172
+ * params.filters.minDueActiveHours: the minimum due active hours
173
+ * params.filters.maxDueActiveHours: the maximum due active hours
174
+ * params.filters.minIntervalDays: the minimum interval days
175
+ * params.filters.maxIntervalDays: the maximum interval days
176
+ * params.filters.minIntervalStartDate: the minimum interval start date
177
+ * params.filters.maxIntervalStartDate: the maximum interval start date
178
+ * params.filters.minIntervalOdometer: the minimum interval odometer
179
+ * params.filters.maxIntervalOdometer: the maximum interval odometer
180
+ * params.filters.minIntervalActiveHours: the minimum interval active hours
181
+ * params.filters.maxIntervalActiveHours: the maximum interval active hours
182
+ * params.filters.minIntervalStartingOdometer: the minimum interval starting odometer
183
+ * params.filters.maxIntervalStartingOdometer: the maximum interval starting odometer
184
+ * params.filters.minIntervalStartingActiveHours: the minimum interval starting active hours
185
+ * params.filters.maxIntervalStartingActiveHours: the maximum interval starting active hours
186
+ * params.filters.notes: the notes for partial match search
187
+ * params.filters.createdBy: the created by, exact match search
188
+ * params.filters.minCreatedAt: the minimum created at
189
+ * params.filters.maxCreatedAt: the maximum created at
190
+ * params.filters.modifiedBy: the modified by, exact match search
191
+ * params.filters.minModifiedAt: the minimum modified at
192
+ * params.filters.maxModifiedAt: the maximum modified at
193
+ * params.filters.deletedBy: the deleted by, exact match search
194
+ * params.filters.minDeletedAt: the minimum deleted at
195
+ * params.filters.maxDeletedAt: the maximum deleted at
196
+ * params.filters.status: the status (active or deleted)
197
+ * @returns Promise<number> the count of task schedules corresponding to the filters
198
+ */
199
+ async getTaskSchedulesCount(params) {
200
+ this.logger.trace(params, 'TasksRepository::getTaskSchedulesCount started with params');
201
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
202
+ const result = await getTaskSchedulesCount(novaDataSource, params, this.logger);
203
+ this.logger.trace({ result }, 'TasksRepository::getTaskSchedulesCount result');
204
+ return result;
205
+ }
206
+ /**
207
+ * Get device tasks
208
+ * @param params params containing information to get device tasks
209
+ * At least one of the following filters is required:
210
+ * params.filters.taskScheduleId: the task schedule ID
211
+ * params.filters.imei: the IMEI
212
+ * params.filters.clientId: the client ID
213
+ * @returns Promise<DeviceTask[]> the device tasks corresponding to the filters
214
+ */
215
+ async getDeviceTasks(params) {
216
+ this.logger.trace(params, 'TasksRepository::getDeviceTasks started with params');
217
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
218
+ const result = await getDeviceTasks(novaDataSource, params, this.logger);
219
+ this.logger.trace(result, 'TasksRepository::getDeviceTasks result');
220
+ return result;
221
+ }
222
+ /**
223
+ * Sets the imeis associated with a task schedule.
224
+ * This operation replaces all the existing records associated with the taskScheduleId, with the supplied imeis.
225
+ * @param params params containing information to set task schedule devices
226
+ * params.taskScheduleId: the task schedule ID, required.
227
+ * params.imeis: the IMEIs, optional. If not provided, all the existing records associated with the taskScheduleId will be deleted.
228
+ * @returns Promise<boolean> whether the task schedule devices were set
229
+ * If the task schedule does not exist, the function will return false
230
+ */
231
+ async setTaskScheduleDevices(params) {
232
+ this.logger.trace(params, 'TasksRepository::setTaskScheduleDevices started with params');
233
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
234
+ const result = await setTaskScheduleDevices(novaDataSource, params, this.logger);
235
+ this.logger.trace({ result }, 'TasksRepository::setTaskScheduleDevices result');
236
+ return result;
237
+ }
238
+ /**
239
+ * Adds the supplied imeis to the DeviceTask table, associated with a task schedule id.
240
+ * This operation adds the imeis if they do not exist and does not remove or modifies other records.
241
+ * @param params params containing information to add task schedule devices
242
+ * params.taskScheduleId: the task schedule ID, required.
243
+ * params.imeis: the IMEIs, required.
244
+ * @returns Promise<boolean> whether the task schedule devices were added
245
+ * If the task schedule does not exist, the function will return false
246
+ */
247
+ async addTaskScheduleDevices(params) {
248
+ this.logger.trace(params, 'TasksRepository::addTaskScheduleDevices started with params');
249
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
250
+ const result = await addTaskScheduleDevices(novaDataSource, params, this.logger);
251
+ this.logger.trace({ result }, 'TasksRepository::addTaskScheduleDevices result');
252
+ return result;
253
+ }
254
+ /**
255
+ * Deletes the supplied imeis from the DeviceTask table, associated with a task schedule id.
256
+ * This operation deletes the imeis if they exist and does not remove or modifies other records.
257
+ * @param params params containing information to delete task schedule devices
258
+ * params.taskScheduleId: the task schedule ID, required.
259
+ * params.imeis: the IMEIs, required.
260
+ * @returns Promise<boolean> whether the task schedule devices were deleted
261
+ */
262
+ async deleteTaskScheduleDevices(params) {
263
+ this.logger.trace(params, 'TasksRepository::deleteTaskScheduleDevices started with params');
264
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
265
+ const result = await deleteTaskScheduleDevices(novaDataSource, params, this.logger);
266
+ this.logger.trace({ result }, 'TasksRepository::deleteTaskScheduleDevices result');
267
+ return result;
268
+ }
269
+ /**
270
+ * Create a new task
271
+ * @param params params containing information to create task
272
+ * params.id: the ID, optional. If not provided, a new ID will be generated
273
+ * params.taskScheduleId: the task schedule ID, required
274
+ * params.imei: the IMEI, required
275
+ * params.clientId: the client ID, required
276
+ * params.startDate: the starting date, optional
277
+ * params.startingOdometer: the starting odometer, optional
278
+ * params.startingActiveHours: the starting active hours, optional
279
+ * One of the following is required:
280
+ * params.dueDate: the due date, required
281
+ * params.dueOdometer: the due odometer, required
282
+ * params.dueActiveHours: the due active hours, required
283
+ * @returns Promise<Task> the created task
284
+ */
285
+ async createTask(params) {
286
+ this.logger.trace(params, 'TasksRepository::createTask started with params');
287
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
288
+ const result = await createTask(novaDataSource, params, this.logger);
289
+ this.logger.trace(result, 'TasksRepository::createTask result');
290
+ return result;
291
+ }
292
+ /**
293
+ * Get tasks with filters
294
+ * @param params params containing information to get tasks
295
+ * At least one of the following filters is required:
296
+ * params.filters.taskId: the task ID
297
+ * params.filters.taskScheduleId: the task schedule ID
298
+ * params.filters.imei: the IMEI
299
+ * params.filters.clientId: the client ID
300
+ * params.filters.dueDateFilter: the due date range filter
301
+ * params.filters.dueOdometerFilter: the due odometer range filter
302
+ * params.filters.dueActiveHoursFilter: the due active hours range filter
303
+ * params.filters.startDateFilter: the start date range filter
304
+ * params.filters.startingOdometerFilter: the starting odometer range filter
305
+ * params.filters.startingActiveHoursFilter: the starting active hours range filter
306
+ * params.filters.status: the status (pending, past_due, completed, deleted)
307
+ * params.filters.pastDueAtFilter: the past due at range filter
308
+ * params.filters.createdAtFilter: the created at range filter
309
+ * params.filters.completedAtFilter: the completed at range filter
310
+ * params.filters.completionNotes: the completion notes for partial match search
311
+ * params.filters.completionOdometerFilter: the completion odometer range filter
312
+ * params.filters.completionActiveHoursFilter: the completion active hours range filter
313
+ * params.filters.completedBy: the completed by, partial match search
314
+ * params.filters.modifiedBy: the modified by, partial match search
315
+ * params.filters.modifiedAtFilter: the modified at range filter
316
+ * params.filters.queuedAtFilter: the queued at range filter
317
+ * params.filters.predictedDueDateFilter: the predicted due date range filter
318
+ * params.filters.deletedAtFilter: the deleted at range filter
319
+ * params.filters.deletedBy: the deleted by, partial match search
320
+ * params.sortOptions:
321
+ * - sortField: field to order by
322
+ * - sortDirection: order direction (asc or desc)
323
+ * params.pagingOptions:
324
+ * - pageSize: the page size
325
+ * - pageIndex: the page index
326
+ * @returns Promise<Task[]> the tasks corresponding to the filters
327
+ */
328
+ async getTasks(params) {
329
+ this.logger.trace(params, 'TasksRepository::getTasks started with params');
330
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
331
+ const result = await getTasks(novaDataSource, params, this.logger);
332
+ this.logger.trace(result, 'TasksRepository::getTasks result');
333
+ return result;
334
+ }
335
+ /**
336
+ * Get the count of tasks with filters
337
+ * @param params params containing information to get tasks count
338
+ * At least one of the following filters is required:
339
+ * params.filters.taskId: the task ID
340
+ * params.filters.taskScheduleId: the task schedule ID
341
+ * params.filters.imei: the IMEI
342
+ * params.filters.clientId: the client ID
343
+ * params.filters.dueDateFilter: the due date range filter
344
+ * params.filters.dueOdometerFilter: the due odometer range filter
345
+ * params.filters.dueActiveHoursFilter: the due active hours range filter
346
+ * params.filters.startDateFilter: the start date range filter
347
+ * params.filters.startingOdometerFilter: the starting odometer range filter
348
+ * params.filters.startingActiveHoursFilter: the starting active hours range filter
349
+ * params.filters.status: the status (pending, past_due, completed, deleted)
350
+ * params.filters.pastDueAtFilter: the past due at range filter
351
+ * params.filters.createdAtFilter: the created at range filter
352
+ * params.filters.completedAtFilter: the completed at range filter
353
+ * params.filters.completionNotes: the completion notes for partial match search
354
+ * params.filters.completionOdometerFilter: the completion odometer range filter
355
+ * params.filters.completionActiveHoursFilter: the completion active hours range filter
356
+ * params.filters.completedBy: the completed by, partial match search
357
+ * params.filters.modifiedBy: the modified by, partial match search
358
+ * params.filters.modifiedAtFilter: the modified at range filter
359
+ * params.filters.queuedAtFilter: the queued at range filter
360
+ * params.filters.predictedDueDateFilter: the predicted due date range filter
361
+ * params.filters.deletedAtFilter: the deleted at range filter
362
+ * params.filters.deletedBy: the deleted by, partial match search
363
+ * @returns Promise<number> the count of tasks corresponding to the filters
364
+ */
365
+ async getTasksCount(params) {
366
+ this.logger.trace(params, 'TasksRepository::getTasksCount started with params');
367
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
368
+ const result = await getTasksCount(novaDataSource, params, this.logger);
369
+ this.logger.trace({ result }, 'TasksRepository::getTasksCount result');
370
+ return result;
371
+ }
372
+ /**
373
+ * Update an existing task
374
+ * @param params params containing information to update task
375
+ * params.filters.id: the ID, required
376
+ * params.values.modifiedBy: the modified by, required
377
+ * One of dueDate, dueOdometer, or dueActiveHours is required:
378
+ * params.values.dueDate: the due date, optional
379
+ * params.values.dueOdometer: the due odometer, optional
380
+ * params.values.dueActiveHours: the due active hours, optional
381
+ * params.values.startDate: the starting date, optional
382
+ * params.values.startingOdometer: the starting odometer, optional
383
+ * params.values.startingActiveHours: the starting active hours, optional
384
+ * params.values.predictedDueDate: the predicted due date, optional
385
+ * params.values.queuedAt: the queued at, optional
386
+ * @returns Promise<boolean> whether the task was updated
387
+ */
388
+ async updateTask(params) {
389
+ this.logger.trace(params, 'TasksRepository::updateTask started with params');
390
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
391
+ const result = await updateTask(novaDataSource, params, this.logger);
392
+ this.logger.trace({ result }, 'TasksRepository::updateTask result');
393
+ return result;
394
+ }
395
+ /**
396
+ * Set a task as past due
397
+ * @param params params containing information to set task as past due
398
+ * params.id: the task ID, required
399
+ * params.pastDueAt: the past due at, optional. If not provided, the current date will be used
400
+ * params.modifiedBy: the modified by, required
401
+ * @returns Promise<boolean> whether the task was set as past due
402
+ */
403
+ async setTaskAsPastDue(params) {
404
+ this.logger.trace(params, 'TasksRepository::setTaskAsPastDue started with params');
405
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
406
+ const result = await setTaskAsPastDue(novaDataSource, params, this.logger);
407
+ this.logger.trace({ result }, 'TasksRepository::setTaskAsPastDue result');
408
+ return result;
409
+ }
410
+ /**
411
+ * Complete a task
412
+ * @param params params containing information to complete task
413
+ * params.id: the ID, required
414
+ * params.completedBy: the completed by, required
415
+ * params.completionNotes: the completion notes, optional
416
+ * params.completionOdometer: the completion odometer, optional
417
+ * params.completionActiveHours: the completion active hours, optional
418
+ * params.completionMetadata: the completion metadata, optional
419
+ * params.includeTimeInCompletedAt: whether to include time in completed at, optional. Default is false
420
+ * @returns Promise<boolean> whether the task was completed
421
+ */
422
+ async completeTask(params) {
423
+ this.logger.trace(params, 'TasksRepository::completeTask started with params');
424
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
425
+ const result = await completeTask(novaDataSource, params, this.logger);
426
+ this.logger.trace({ result }, 'TasksRepository::completeTask result');
427
+ return result;
428
+ }
429
+ /**
430
+ * Delete an existing task
431
+ * @param params params containing information to delete task
432
+ * params.id: the ID, required
433
+ * params.deletedBy: the user performing the delete action, required
434
+ * @returns Promise<boolean> whether the task was deleted
435
+ */
436
+ async deleteTask(params) {
437
+ this.logger.trace(params, 'TasksRepository::deleteTask started with params');
438
+ const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
439
+ const result = await deleteTask(novaDataSource, params, this.logger);
440
+ this.logger.trace({ result }, 'TasksRepository::deleteTask result');
441
+ return result;
442
+ }
443
+ }
444
444
  //# sourceMappingURL=index.js.map