@spytecgps/nova-orm 1.2.23 → 1.2.24

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