@spytecgps/nova-orm 1.4.8 → 1.4.10

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 (525) hide show
  1. package/README.md +1 -1
  2. package/dist/entities/acumaticaAmazonProduct.d.ts +8 -8
  3. package/dist/entities/acumaticaImeiIccidData.d.ts +17 -17
  4. package/dist/entities/acumaticaOrderShipmentDetails.d.ts +11 -11
  5. package/dist/entities/acumaticaShipment.d.ts +5 -5
  6. package/dist/entities/acumaticaShipmentAmazon.d.ts +4 -4
  7. package/dist/entities/aempToken.d.ts +10 -10
  8. package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.d.ts +15 -15
  9. package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.d.ts +28 -28
  10. package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.d.ts +7 -7
  11. package/dist/entities/alert.d.ts +29 -29
  12. package/dist/entities/alertType.d.ts +14 -14
  13. package/dist/entities/appFeatureType.d.ts +6 -6
  14. package/dist/entities/asinPromotion.d.ts +7 -7
  15. package/dist/entities/assetCategory.d.ts +5 -5
  16. package/dist/entities/assetProfile.d.ts +24 -24
  17. package/dist/entities/assetProfileCategory.d.ts +7 -7
  18. package/dist/entities/assetProfileCustomField.d.ts +11 -11
  19. package/dist/entities/assetProfileMedia.d.ts +12 -12
  20. package/dist/entities/assetProfileNote.d.ts +12 -12
  21. package/dist/entities/assetProfileType.d.ts +9 -9
  22. package/dist/entities/avalaraExemptCert.d.ts +7 -7
  23. package/dist/entities/avalaraQueue.d.ts +10 -10
  24. package/dist/entities/beaconBleMesh.d.ts +11 -11
  25. package/dist/entities/billing.d.ts +20 -20
  26. package/dist/entities/billingCustomerAmazon.d.ts +13 -13
  27. package/dist/entities/billingCustomerBraintree.d.ts +11 -11
  28. package/dist/entities/billingDeviceHistory.d.ts +11 -11
  29. package/dist/entities/billingDeviceTypePlan.d.ts +12 -12
  30. package/dist/entities/billingHubspotPaymentLog.d.ts +50 -50
  31. package/dist/entities/billingKlarnaCustomer.d.ts +14 -14
  32. package/dist/entities/billingKlarnaOrder.d.ts +18 -18
  33. package/dist/entities/billingPlanFeatures.d.ts +6 -6
  34. package/dist/entities/billingPlans.d.ts +22 -22
  35. package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -10
  36. package/dist/entities/billingSubscriptionAmazon.d.ts +21 -21
  37. package/dist/entities/billingSubscriptionBraintree.d.ts +34 -34
  38. package/dist/entities/blacklist.d.ts +9 -9
  39. package/dist/entities/blacklistType.d.ts +5 -5
  40. package/dist/entities/bleMesh.d.ts +15 -15
  41. package/dist/entities/bleMeshConfiguration.d.ts +9 -9
  42. package/dist/entities/boundary.d.ts +23 -23
  43. package/dist/entities/boundaryEvent.d.ts +21 -21
  44. package/dist/entities/cellTower.d.ts +12 -12
  45. package/dist/entities/client.d.ts +34 -34
  46. package/dist/entities/clientAlertConfiguration.d.ts +20 -20
  47. package/dist/entities/clientAlertRecipient.d.ts +16 -16
  48. package/dist/entities/clientAppFeature.d.ts +9 -9
  49. package/dist/entities/clientConfiguration.d.ts +10 -10
  50. package/dist/entities/clientDeviceIcon.d.ts +9 -9
  51. package/dist/entities/clientDeviceSetting.d.ts +15 -15
  52. package/dist/entities/clientIngestorConfiguration.d.ts +11 -11
  53. package/dist/entities/clientType.d.ts +6 -6
  54. package/dist/entities/country.d.ts +16 -16
  55. package/dist/entities/customerAttribute.d.ts +15 -15
  56. package/dist/entities/dataExport.d.ts +17 -17
  57. package/dist/entities/dataSourceType.d.ts +5 -5
  58. package/dist/entities/deactivation.d.ts +14 -14
  59. package/dist/entities/deactivationReason.d.ts +6 -6
  60. package/dist/entities/device.d.ts +43 -43
  61. package/dist/entities/deviceBehavior.d.ts +26 -26
  62. package/dist/entities/deviceBleMesh.d.ts +14 -14
  63. package/dist/entities/deviceBleMeshUpdateTask.d.ts +18 -18
  64. package/dist/entities/deviceCameraMedia.d.ts +30 -30
  65. package/dist/entities/deviceCameraMediaEventType.d.ts +6 -6
  66. package/dist/entities/deviceCameraMediaStreamingData.d.ts +17 -17
  67. package/dist/entities/deviceCameraMediaSyncStatus.d.ts +14 -14
  68. package/dist/entities/deviceCameraRequestedPictureData.d.ts +14 -14
  69. package/dist/entities/deviceCameraRequestedVideoData.d.ts +19 -19
  70. package/dist/entities/deviceChangesHistory.d.ts +8 -8
  71. package/dist/entities/deviceCustomConfiguration.d.ts +13 -13
  72. package/dist/entities/deviceEventsTriggerConfiguration.d.ts +11 -11
  73. package/dist/entities/deviceHistory.d.ts +8 -8
  74. package/dist/entities/deviceModelListener.d.ts +8 -8
  75. package/dist/entities/devicePairing.d.ts +14 -14
  76. package/dist/entities/devicePromotion.d.ts +7 -7
  77. package/dist/entities/deviceReplacement.d.ts +12 -12
  78. package/dist/entities/deviceStatus.d.ts +13 -13
  79. package/dist/entities/deviceTask.d.ts +8 -8
  80. package/dist/entities/deviceType.d.ts +27 -27
  81. package/dist/entities/deviceTypeFeature.d.ts +5 -5
  82. package/dist/entities/deviceTypeFirmware.d.ts +28 -28
  83. package/dist/entities/deviceTypePromotion.d.ts +7 -7
  84. package/dist/entities/emailDomain.d.ts +5 -5
  85. package/dist/entities/entityTag.d.ts +19 -19
  86. package/dist/entities/entityType.d.ts +5 -5
  87. package/dist/entities/feature.d.ts +6 -6
  88. package/dist/entities/firmwareAutoUpgradeBlacklist.d.ts +6 -6
  89. package/dist/entities/firmwareUpgradeTask.d.ts +23 -23
  90. package/dist/entities/historicalBillingPlan.d.ts +22 -22
  91. package/dist/entities/iccidStatus.d.ts +7 -7
  92. package/dist/entities/imeiIccidCarrier.d.ts +23 -23
  93. package/dist/entities/imeiIccidHistory.d.ts +7 -7
  94. package/dist/entities/imeiIccidImport.d.ts +5 -5
  95. package/dist/entities/index.d.ts +148 -145
  96. package/dist/entities/industry.d.ts +8 -8
  97. package/dist/entities/latestPosition.d.ts +22 -22
  98. package/dist/entities/latestUserAppInfo.d.ts +9 -9
  99. package/dist/entities/liveLink.d.ts +23 -23
  100. package/dist/entities/liveLinkMedia.d.ts +11 -11
  101. package/dist/entities/m2Sync.d.ts +16 -16
  102. package/dist/entities/magento2Gps.d.ts +51 -51
  103. package/dist/entities/magento2Plan.d.ts +6 -6
  104. package/dist/entities/marketplacePromotion.d.ts +7 -7
  105. package/dist/entities/mobileNetwork.d.ts +9 -9
  106. package/dist/entities/notificationRecipient.d.ts +23 -23
  107. package/dist/entities/orderShipmentInternational.d.ts +12 -12
  108. package/dist/entities/organization.d.ts +10 -10
  109. package/dist/entities/plan.d.ts +16 -16
  110. package/dist/entities/position.d.ts +23 -23
  111. package/dist/entities/promotion.d.ts +24 -24
  112. package/dist/entities/promotionHistory.d.ts +12 -12
  113. package/dist/entities/region.d.ts +10 -10
  114. package/dist/entities/reportScheduleConfiguration.d.ts +17 -17
  115. package/dist/entities/securityRole.d.ts +10 -10
  116. package/dist/entities/serviceProvider.d.ts +7 -7
  117. package/dist/entities/serviceProviderProduct.d.ts +9 -9
  118. package/dist/entities/serviceProviderProductNetwork.d.ts +5 -5
  119. package/dist/entities/serviceProviderProductType.d.ts +5 -5
  120. package/dist/entities/sim.d.ts +16 -16
  121. package/dist/entities/tag.d.ts +13 -13
  122. package/dist/entities/task.d.ts +36 -36
  123. package/dist/entities/taskSchedule.d.ts +29 -29
  124. package/dist/entities/trip.d.ts +30 -30
  125. package/dist/entities/tripCompletionStatus.d.ts +6 -6
  126. package/dist/entities/tripPosition.d.ts +4 -4
  127. package/dist/entities/tripStatus.d.ts +6 -6
  128. package/dist/entities/user.d.ts +48 -48
  129. package/dist/entities/userActivation.d.ts +10 -10
  130. package/dist/entities/userActivationDevice.d.ts +28 -28
  131. package/dist/entities/userActivationEvent.d.ts +13 -13
  132. package/dist/entities/userActivationMetric.d.ts +39 -39
  133. package/dist/entities/userAlertComplain.d.ts +18 -18
  134. package/dist/entities/userAlertConfiguration.d.ts +25 -25
  135. package/dist/entities/userAlertNotificationsConfig.d.ts +14 -14
  136. package/dist/entities/userAppFeedback.d.ts +11 -11
  137. package/dist/entities/userAppIncident.d.ts +30 -30
  138. package/dist/entities/userAuthorizedBoundary.d.ts +8 -8
  139. package/dist/entities/userAuthorizedBoundarySecurityView.d.ts +5 -5
  140. package/dist/entities/userAuthorizedDevice.d.ts +8 -8
  141. package/dist/entities/userAuthorizedDeviceSecurityView.d.ts +5 -5
  142. package/dist/entities/userCancellationDueDevice.d.ts +8 -0
  143. package/dist/entities/userCarrierDeactivateDevice.d.ts +12 -0
  144. package/dist/entities/userCarrierReactivateDevice.d.ts +12 -0
  145. package/dist/entities/userConfiguration.d.ts +21 -21
  146. package/dist/entities/userDataDeletionRequest.d.ts +12 -12
  147. package/dist/entities/userDeviceBehaviorTask.d.ts +16 -16
  148. package/dist/entities/userInvitation.d.ts +21 -21
  149. package/dist/entities/userRatingRequest.d.ts +14 -14
  150. package/dist/entities/userRegistrationAttempt.d.ts +36 -36
  151. package/dist/entities/userSecurityRole.d.ts +22 -22
  152. package/dist/entities/websocketConnection.d.ts +7 -7
  153. package/dist/index.d.ts +27 -27
  154. package/dist/index.js +1 -1
  155. package/dist/index.js.map +1 -1
  156. package/dist/migration/1684483704434-addLowerCaseIndex.d.ts +5 -5
  157. package/dist/migration/1684483704434-addLowerCaseIndex.js +21 -21
  158. package/dist/novaDataSource.d.ts +94 -94
  159. package/dist/repositories/acumatica/getAcumaticaImeiIccidData.d.ts +5 -5
  160. package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.d.ts +5 -5
  161. package/dist/repositories/acumatica/getAcumaticaShipmentDetails.d.ts +4 -4
  162. package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.d.ts +4 -4
  163. package/dist/repositories/acumatica/getOrderShipmentInternational.d.ts +5 -5
  164. package/dist/repositories/acumatica/index.d.ts +47 -47
  165. package/dist/repositories/aempToken/createAempToken.d.ts +5 -5
  166. package/dist/repositories/aempToken/deleteAempTokens.d.ts +4 -4
  167. package/dist/repositories/aempToken/getAempTokens.d.ts +5 -5
  168. package/dist/repositories/aempToken/index.d.ts +33 -33
  169. package/dist/repositories/appFeatures/createAppFeatureType.d.ts +5 -5
  170. package/dist/repositories/appFeatures/createClientAppFeature.d.ts +5 -5
  171. package/dist/repositories/appFeatures/getClientAppFeatures.d.ts +5 -5
  172. package/dist/repositories/appFeatures/index.d.ts +37 -37
  173. package/dist/repositories/baseRepository.d.ts +21 -21
  174. package/dist/repositories/billing/createBilling.d.ts +5 -5
  175. package/dist/repositories/billing/createBillingDeviceHistory.d.ts +5 -5
  176. package/dist/repositories/billing/createBillingHubspotPaymentLog.d.ts +5 -5
  177. package/dist/repositories/billing/createBillingStatusHistoryBraintree.d.ts +5 -5
  178. package/dist/repositories/billing/getBillingCustomerBraintreeById.d.ts +5 -5
  179. package/dist/repositories/billing/getBillingDeviceTypePlans.d.ts +5 -5
  180. package/dist/repositories/billing/getBillingPlans.d.ts +4 -4
  181. package/dist/repositories/billing/getBillingSubscriptionsBraintree.d.ts +5 -5
  182. package/dist/repositories/billing/getBillings.d.ts +5 -5
  183. package/dist/repositories/billing/getBraintreePastDueSubscriptions.d.ts +4 -4
  184. package/dist/repositories/billing/getCanceledImeis.d.ts +4 -4
  185. package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.d.ts +4 -4
  186. package/dist/repositories/billing/getChurnStatusByClientId.d.ts +4 -4
  187. package/dist/repositories/billing/getClientIdFromBraintreeCustomer.d.ts +4 -4
  188. package/dist/repositories/billing/getMagentoPlan.d.ts +5 -5
  189. package/dist/repositories/billing/getUserByBraintreeCustomerId.d.ts +5 -5
  190. package/dist/repositories/billing/index.d.ts +217 -217
  191. package/dist/repositories/billing/updateBilling.d.ts +4 -4
  192. package/dist/repositories/billing/updateBillingCustomerBraintree.d.ts +4 -4
  193. package/dist/repositories/billing/upsertBillingCustomerBraintree.d.ts +5 -5
  194. package/dist/repositories/billing/upsertBillingDeviceTypePlan.d.ts +5 -5
  195. package/dist/repositories/billing/upsertBillingPlans.d.ts +5 -5
  196. package/dist/repositories/billing/upsertBillingSubscriptionBraintree.d.ts +4 -4
  197. package/dist/repositories/blacklist/deleteBlackList.d.ts +4 -4
  198. package/dist/repositories/blacklist/getBlacklists.d.ts +5 -5
  199. package/dist/repositories/blacklist/index.d.ts +43 -43
  200. package/dist/repositories/blacklist/updateBlackList.d.ts +4 -4
  201. package/dist/repositories/blacklist/upsertBlackList.d.ts +5 -5
  202. package/dist/repositories/boundaries/createBoundary.d.ts +5 -5
  203. package/dist/repositories/boundaries/deleteBoundary.d.ts +4 -4
  204. package/dist/repositories/boundaries/getBoundariesByClientId.d.ts +5 -5
  205. package/dist/repositories/boundaries/getBoundariesIdsByClientId.d.ts +4 -4
  206. package/dist/repositories/boundaries/getBoundariesReport.d.ts +4 -4
  207. package/dist/repositories/boundaries/getBoundaryById.d.ts +5 -5
  208. package/dist/repositories/boundaries/index.d.ts +106 -106
  209. package/dist/repositories/boundaries/processBoundaryEvent.d.ts +4 -4
  210. package/dist/repositories/boundaries/updateBoundary.d.ts +4 -4
  211. package/dist/repositories/boundaries/upsertBoundaryEvent.d.ts +4 -4
  212. package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.d.ts +5 -5
  213. package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.d.ts +4 -4
  214. package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.d.ts +5 -5
  215. package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.d.ts +4 -4
  216. package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.d.ts +4 -4
  217. package/dist/repositories/clientAlertConfiguration/index.d.ts +13 -13
  218. package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.d.ts +4 -4
  219. package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.d.ts +4 -4
  220. package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.d.ts +4 -4
  221. package/dist/repositories/clients/createClient.d.ts +5 -5
  222. package/dist/repositories/clients/createClientConfiguration.d.ts +5 -5
  223. package/dist/repositories/clients/createClientIngestorConfiguration.d.ts +5 -5
  224. package/dist/repositories/clients/createCustomerAttribute.d.ts +5 -5
  225. package/dist/repositories/clients/deleteClientAndConfiguration.d.ts +4 -4
  226. package/dist/repositories/clients/getClient.d.ts +5 -5
  227. package/dist/repositories/clients/getClientConfiguration.d.ts +5 -5
  228. package/dist/repositories/clients/getClientIngestorConfigurations.d.ts +4 -4
  229. package/dist/repositories/clients/getClients.d.ts +5 -5
  230. package/dist/repositories/clients/getCustomerAttribute.d.ts +5 -5
  231. package/dist/repositories/clients/index.d.ts +138 -138
  232. package/dist/repositories/clients/updateClient.d.ts +4 -4
  233. package/dist/repositories/clients/updateClientConfiguration.d.ts +4 -4
  234. package/dist/repositories/clients/updateCustomerAttribute.d.ts +4 -4
  235. package/dist/repositories/countries/getCountries.d.ts +4 -4
  236. package/dist/repositories/countries/getCountry.d.ts +5 -5
  237. package/dist/repositories/countries/index.d.ts +20 -20
  238. package/dist/repositories/deactivations/createDeactivation.d.ts +5 -5
  239. package/dist/repositories/deactivations/getDeactivationReasons.d.ts +5 -5
  240. package/dist/repositories/deactivations/getLatestDeactivationByImei.d.ts +5 -5
  241. package/dist/repositories/deactivations/index.d.ts +38 -38
  242. package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.d.ts +5 -5
  243. package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.d.ts +5 -5
  244. package/dist/repositories/deviceBehaviors/getDeviceBehaviors.d.ts +5 -5
  245. package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.d.ts +5 -5
  246. package/dist/repositories/deviceBehaviors/index.d.ts +70 -70
  247. package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.d.ts +4 -4
  248. package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.d.ts +5 -5
  249. package/dist/repositories/devicePairings/createDevicePairing.d.ts +5 -5
  250. package/dist/repositories/devicePairings/deleteDevicePairing.d.ts +4 -4
  251. package/dist/repositories/devicePairings/getDevicePairings.d.ts +5 -5
  252. package/dist/repositories/devicePairings/getDevicePairingsByClientId.d.ts +5 -5
  253. package/dist/repositories/devicePairings/getDevicePairingsByImei.d.ts +5 -5
  254. package/dist/repositories/devicePairings/index.d.ts +65 -65
  255. package/dist/repositories/devicePairings/updateDevicePairing.d.ts +4 -4
  256. package/dist/repositories/deviceStatus/extendedDeviceStatus.d.ts +12 -12
  257. package/dist/repositories/deviceStatus/getDeviceStatuses.d.ts +4 -4
  258. package/dist/repositories/deviceStatus/getDeviceStatusesCount.d.ts +4 -4
  259. package/dist/repositories/deviceStatus/index.d.ts +35 -35
  260. package/dist/repositories/deviceStatus/upsertDeviceStatuses.d.ts +4 -4
  261. package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.d.ts +5 -5
  262. package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.d.ts +4 -4
  263. package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.d.ts +4 -4
  264. package/dist/repositories/deviceTypeFeature/index.d.ts +27 -27
  265. package/dist/repositories/devices/addDeviceChangesHistory.d.ts +5 -5
  266. package/dist/repositories/devices/allImeisAreActiveForClient.d.ts +4 -4
  267. package/dist/repositories/devices/createClientDeviceSetting.d.ts +5 -5
  268. package/dist/repositories/devices/createDevice.d.ts +5 -5
  269. package/dist/repositories/devices/createDeviceReplacement.d.ts +5 -5
  270. package/dist/repositories/devices/createDeviceType.d.ts +5 -5
  271. package/dist/repositories/devices/createImeiIccidCarrier.d.ts +5 -5
  272. package/dist/repositories/devices/deleteDevice.d.ts +4 -4
  273. package/dist/repositories/devices/generateDeviceIdentifierKey.d.ts +4 -4
  274. package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.d.ts +4 -4
  275. package/dist/repositories/devices/getCarrierStatusUpdatedBefore.d.ts +4 -4
  276. package/dist/repositories/devices/getClientDeviceSetting.d.ts +5 -5
  277. package/dist/repositories/devices/getClientDeviceSettings.d.ts +5 -5
  278. package/dist/repositories/devices/getDevice.d.ts +5 -5
  279. package/dist/repositories/devices/getDeviceChangesHistory.d.ts +5 -5
  280. package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.d.ts +4 -4
  281. package/dist/repositories/devices/getDeviceCustomConfig.d.ts +5 -5
  282. package/dist/repositories/devices/getDeviceTypeByImei.d.ts +5 -5
  283. package/dist/repositories/devices/getDeviceTypes.d.ts +4 -4
  284. package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -3
  285. package/dist/repositories/devices/getDeviceWithUsersInfo.d.ts +4 -4
  286. package/dist/repositories/devices/getDevices.d.ts +5 -5
  287. package/dist/repositories/devices/getDevicesCountByStatus.d.ts +4 -4
  288. package/dist/repositories/devices/getFilteredImeisWithStatus.d.ts +4 -4
  289. package/dist/repositories/devices/getIccidStatus.d.ts +5 -5
  290. package/dist/repositories/devices/getImeiIccidCarrier.d.ts +5 -5
  291. package/dist/repositories/devices/getImeiIccidCarriers.d.ts +5 -5
  292. package/dist/repositories/devices/getServiceProviderProduct.d.ts +5 -5
  293. package/dist/repositories/devices/index.d.ts +331 -331
  294. package/dist/repositories/devices/updateClientDeviceSetting.d.ts +4 -4
  295. package/dist/repositories/devices/updateDevice.d.ts +4 -4
  296. package/dist/repositories/devices/updateDeviceType.d.ts +4 -4
  297. package/dist/repositories/devices/updateIccidStatus.d.ts +4 -4
  298. package/dist/repositories/devices/updateImeiIccidCarrier.d.ts +4 -4
  299. package/dist/repositories/devices/upsertDeviceCustomConfig.d.ts +4 -4
  300. package/dist/repositories/devices/upsertIccidStatus.d.ts +4 -4
  301. package/dist/repositories/entityTags/bulkCreateEntityTag.d.ts +5 -5
  302. package/dist/repositories/entityTags/bulkDeleteEntityTag.d.ts +4 -4
  303. package/dist/repositories/entityTags/createEntityTag.d.ts +5 -5
  304. package/dist/repositories/entityTags/deleteEntityTag.d.ts +4 -4
  305. package/dist/repositories/entityTags/deleteEntityTagById.d.ts +3 -3
  306. package/dist/repositories/entityTags/enforceEntityTagsByEntity.d.ts +4 -4
  307. package/dist/repositories/entityTags/getEntityTagById.d.ts +5 -5
  308. package/dist/repositories/entityTags/index.d.ts +48 -48
  309. package/dist/repositories/entityTags/searchEntityTags.d.ts +4 -4
  310. package/dist/repositories/features/createFeature.d.ts +5 -5
  311. package/dist/repositories/features/deleteFeature.d.ts +4 -4
  312. package/dist/repositories/features/getFeatures.d.ts +4 -4
  313. package/dist/repositories/features/index.d.ts +33 -33
  314. package/dist/repositories/features/upsertFeature.d.ts +4 -4
  315. package/dist/repositories/firmwares/createDeviceFirmware.d.ts +5 -5
  316. package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.d.ts +5 -5
  317. package/dist/repositories/firmwares/createFirmwareUpgradeTask.d.ts +5 -5
  318. package/dist/repositories/firmwares/getDeviceFirmwares.d.ts +4 -4
  319. package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.d.ts +5 -5
  320. package/dist/repositories/firmwares/getFirmwareUpgradeTasks.d.ts +5 -5
  321. package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.d.ts +4 -4
  322. package/dist/repositories/firmwares/index.d.ts +132 -132
  323. package/dist/repositories/firmwares/updateDeviceFirmware.d.ts +4 -4
  324. package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.d.ts +4 -4
  325. package/dist/repositories/index.d.ts +34 -34
  326. package/dist/repositories/notificationRecipients/createNotificationRecipient.d.ts +5 -5
  327. package/dist/repositories/notificationRecipients/deleteNotificationRecipients.d.ts +4 -4
  328. package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.d.ts +4 -4
  329. package/dist/repositories/notificationRecipients/getNotificationRecipients.d.ts +5 -5
  330. package/dist/repositories/notificationRecipients/index.d.ts +83 -83
  331. package/dist/repositories/notificationRecipients/updateNotificationRecipient.d.ts +4 -4
  332. package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.d.ts +4 -4
  333. package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.d.ts +4 -4
  334. package/dist/repositories/positions/createPosition.d.ts +6 -6
  335. package/dist/repositories/positions/getBatteryReportForDevice.d.ts +4 -4
  336. package/dist/repositories/positions/getLatestPositionByImei.d.ts +5 -5
  337. package/dist/repositories/positions/getPositionsByImei.d.ts +5 -5
  338. package/dist/repositories/positions/getPositionsReportByClient.d.ts +4 -4
  339. package/dist/repositories/positions/index.d.ts +69 -69
  340. package/dist/repositories/positions/mapping/mapToPositionReport.d.ts +5 -5
  341. package/dist/repositories/positions/upsertLatestPosition.d.ts +4 -4
  342. package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.d.ts +5 -5
  343. package/dist/repositories/promotions/bulkInsertMarketplacePromotion.d.ts +5 -5
  344. package/dist/repositories/promotions/createPromotion.d.ts +5 -5
  345. package/dist/repositories/promotions/createPromotionHistory.d.ts +5 -5
  346. package/dist/repositories/promotions/deleteDeviceTypePromotion.d.ts +4 -4
  347. package/dist/repositories/promotions/deleteMarketplacePromotion.d.ts +4 -4
  348. package/dist/repositories/promotions/getDeviceTypePromotion.d.ts +5 -5
  349. package/dist/repositories/promotions/getMarketplacePromotion.d.ts +5 -5
  350. package/dist/repositories/promotions/getPromotions.d.ts +5 -5
  351. package/dist/repositories/promotions/index.d.ts +72 -72
  352. package/dist/repositories/promotions/promotionValidator.d.ts +3 -3
  353. package/dist/repositories/promotions/updatePromotion.d.ts +4 -4
  354. package/dist/repositories/security/bulkCreateUserAuthorizedBoundaries.d.ts +4 -4
  355. package/dist/repositories/security/bulkCreateUserAuthorizedDevices.d.ts +4 -4
  356. package/dist/repositories/security/bulkRemoveUserAuthorizedBoundaries.d.ts +4 -4
  357. package/dist/repositories/security/bulkRemoveUserAuthorizedDevices.d.ts +4 -4
  358. package/dist/repositories/security/createUserRole.d.ts +5 -5
  359. package/dist/repositories/security/getAllRoles.d.ts +3 -3
  360. package/dist/repositories/security/getAuthorizedBoundariesByUserId.d.ts +5 -5
  361. package/dist/repositories/security/getAuthorizedDevicesByUserId.d.ts +5 -5
  362. package/dist/repositories/security/getUserIdsByClientIdAndAuthorizedBoundaries.d.ts +4 -4
  363. package/dist/repositories/security/getUserIdsByClientIdAndAuthorizedDevices.d.ts +4 -4
  364. package/dist/repositories/security/getUserRoles.d.ts +5 -5
  365. package/dist/repositories/security/getUserRolesByClientId.d.ts +5 -5
  366. package/dist/repositories/security/index.d.ts +66 -66
  367. package/dist/repositories/security/removeUserRoles.d.ts +4 -4
  368. package/dist/repositories/security/updateUserRole.d.ts +4 -4
  369. package/dist/repositories/security/userIsAdminOrOwner.d.ts +4 -4
  370. package/dist/repositories/security/userIsInRole.d.ts +4 -4
  371. package/dist/repositories/tags/bulkCreateTags.d.ts +5 -5
  372. package/dist/repositories/tags/createTag.d.ts +5 -5
  373. package/dist/repositories/tags/deleteTag.d.ts +4 -4
  374. package/dist/repositories/tags/index.d.ts +41 -41
  375. package/dist/repositories/tags/searchTags.d.ts +4 -4
  376. package/dist/repositories/tags/searchTagsByUser.d.ts +4 -4
  377. package/dist/repositories/tags/updateTag.d.ts +4 -4
  378. package/dist/repositories/tasks/addTaskScheduleDevices.d.ts +4 -4
  379. package/dist/repositories/tasks/completeTask.d.ts +4 -4
  380. package/dist/repositories/tasks/createTask.d.ts +5 -5
  381. package/dist/repositories/tasks/createTaskSchedule.d.ts +5 -5
  382. package/dist/repositories/tasks/deleteTask.d.ts +4 -4
  383. package/dist/repositories/tasks/deleteTaskSchedule.d.ts +4 -4
  384. package/dist/repositories/tasks/deleteTaskScheduleDevices.d.ts +4 -4
  385. package/dist/repositories/tasks/getDeviceTasks.d.ts +5 -5
  386. package/dist/repositories/tasks/getTaskSchedule.d.ts +5 -5
  387. package/dist/repositories/tasks/getTaskSchedules.d.ts +5 -5
  388. package/dist/repositories/tasks/getTaskSchedulesCount.d.ts +4 -4
  389. package/dist/repositories/tasks/getTasks.d.ts +5 -5
  390. package/dist/repositories/tasks/getTasksCount.d.ts +4 -4
  391. package/dist/repositories/tasks/index.d.ts +325 -325
  392. package/dist/repositories/tasks/setTaskAsPastDue.d.ts +4 -4
  393. package/dist/repositories/tasks/setTaskScheduleDevices.d.ts +4 -4
  394. package/dist/repositories/tasks/updateTask.d.ts +4 -4
  395. package/dist/repositories/tasks/updateTaskSchedule.d.ts +4 -4
  396. package/dist/repositories/userActivations/createUserActivation.d.ts +5 -5
  397. package/dist/repositories/userActivations/createUserActivationDevice.d.ts +5 -5
  398. package/dist/repositories/userActivations/createUserActivationEvent.d.ts +5 -5
  399. package/dist/repositories/userActivations/createUserActivationMetric.d.ts +5 -5
  400. package/dist/repositories/userActivations/deleteUserActivation.d.ts +4 -4
  401. package/dist/repositories/userActivations/getLastActivationDevice.d.ts +5 -5
  402. package/dist/repositories/userActivations/getUserActivationById.d.ts +5 -5
  403. package/dist/repositories/userActivations/getUserActivationDevices.d.ts +5 -5
  404. package/dist/repositories/userActivations/getUserActivationDevicesByClientId.d.ts +5 -5
  405. package/dist/repositories/userActivations/getUserActivationMetrics.d.ts +5 -5
  406. package/dist/repositories/userActivations/getUserActivations.d.ts +5 -5
  407. package/dist/repositories/userActivations/index.d.ts +147 -147
  408. package/dist/repositories/userActivations/updateUserActivationDevice.d.ts +4 -4
  409. package/dist/repositories/userActivations/updateUserActivationMetrics.d.ts +4 -4
  410. package/dist/repositories/userAppFeedback/createUserAppFeedback.d.ts +5 -5
  411. package/dist/repositories/userAppFeedback/index.d.ts +17 -17
  412. package/dist/repositories/userAppIncidents/getUserAppIncidents.d.ts +5 -5
  413. package/dist/repositories/userAppIncidents/index.d.ts +50 -50
  414. package/dist/repositories/userAppIncidents/upsertUserAppIncident.d.ts +4 -4
  415. package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.d.ts +5 -5
  416. package/dist/repositories/userConfigurations/createUserAlertConfiguration.d.ts +5 -5
  417. package/dist/repositories/userConfigurations/createUserConfiguration.d.ts +5 -5
  418. package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.d.ts +4 -4
  419. package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.d.ts +4 -4
  420. package/dist/repositories/userConfigurations/deleteUserConfiguration.d.ts +4 -4
  421. package/dist/repositories/userConfigurations/getUserAlertConfigurations.d.ts +5 -5
  422. package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.d.ts +5 -5
  423. package/dist/repositories/userConfigurations/getUserConfigurations.d.ts +5 -5
  424. package/dist/repositories/userConfigurations/index.d.ts +170 -170
  425. package/dist/repositories/userConfigurations/updateUserAlertConfigurations.d.ts +4 -4
  426. package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.d.ts +4 -4
  427. package/dist/repositories/userConfigurations/updateUserConfiguration.d.ts +4 -4
  428. package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.d.ts +4 -4
  429. package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.d.ts +5 -5
  430. package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.d.ts +5 -5
  431. package/dist/repositories/userDataDeletionRequests/index.d.ts +39 -39
  432. package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.d.ts +4 -4
  433. package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.d.ts +4 -4
  434. package/dist/repositories/userInvitations/createUserInvitation.d.ts +5 -5
  435. package/dist/repositories/userInvitations/getUserInvitationById.d.ts +5 -5
  436. package/dist/repositories/userInvitations/getUserInvitations.d.ts +5 -5
  437. package/dist/repositories/userInvitations/index.d.ts +58 -58
  438. package/dist/repositories/userInvitations/updateUserInvitation.d.ts +4 -4
  439. package/dist/repositories/userRatingRequests/createUserRatingRequest.d.ts +5 -5
  440. package/dist/repositories/userRatingRequests/getUserRatingRequests.d.ts +5 -5
  441. package/dist/repositories/userRatingRequests/index.d.ts +28 -28
  442. package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.d.ts +5 -5
  443. package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.d.ts +5 -5
  444. package/dist/repositories/userRegistrationAttempts/index.d.ts +50 -50
  445. package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.d.ts +4 -4
  446. package/dist/repositories/users/createUser.d.ts +5 -5
  447. package/dist/repositories/users/deleteAccount.d.ts +4 -4
  448. package/dist/repositories/users/deleteUser.d.ts +4 -4
  449. package/dist/repositories/users/deleteUserData.d.ts +4 -4
  450. package/dist/repositories/users/getUserById.d.ts +5 -5
  451. package/dist/repositories/users/getUserClientRelatedEntitiesCount.d.ts +4 -4
  452. package/dist/repositories/users/getUserData.d.ts +4 -4
  453. package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.d.ts +4 -4
  454. package/dist/repositories/users/getUsers.d.ts +5 -5
  455. package/dist/repositories/users/getUsersConfigurationByImei.d.ts +5 -5
  456. package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.d.ts +4 -4
  457. package/dist/repositories/users/getUsersInfoWithDevicesInfo.d.ts +4 -4
  458. package/dist/repositories/users/getUsersWithRoles.d.ts +4 -4
  459. package/dist/repositories/users/index.d.ts +154 -154
  460. package/dist/repositories/users/updateUser.d.ts +4 -4
  461. package/dist/subscribers/allEntitiesSubscriber.d.ts +13 -13
  462. package/dist/subscribers/index.d.ts +2 -2
  463. package/dist/types/acumatica.d.ts +42 -42
  464. package/dist/types/aempToken.d.ts +20 -20
  465. package/dist/types/alert.d.ts +87 -87
  466. package/dist/types/alertTypes.d.ts +6 -6
  467. package/dist/types/appFeatures.d.ts +24 -24
  468. package/dist/types/billing.d.ts +308 -308
  469. package/dist/types/blacklist.d.ts +32 -32
  470. package/dist/types/bleMesh.d.ts +157 -157
  471. package/dist/types/bleMeshConfiguration.d.ts +30 -30
  472. package/dist/types/boundaries.d.ts +125 -125
  473. package/dist/types/clientAlertConfiguration.d.ts +103 -103
  474. package/dist/types/clients.d.ts +140 -140
  475. package/dist/types/common.d.ts +23 -23
  476. package/dist/types/countries.d.ts +12 -12
  477. package/dist/types/dataExports.d.ts +43 -43
  478. package/dist/types/deactivations.d.ts +25 -25
  479. package/dist/types/deviceBehaviors.d.ts +97 -97
  480. package/dist/types/devicePairings.d.ts +56 -56
  481. package/dist/types/deviceStatus.d.ts +86 -86
  482. package/dist/types/deviceTypeFeature.d.ts +23 -23
  483. package/dist/types/devices.d.ts +419 -419
  484. package/dist/types/entitiesTags.d.ts +67 -67
  485. package/dist/types/enums.d.ts +244 -224
  486. package/dist/types/feature.d.ts +20 -20
  487. package/dist/types/firmwares.d.ts +132 -132
  488. package/dist/types/index.d.ts +39 -39
  489. package/dist/types/latestUserAppInfo.d.ts +12 -12
  490. package/dist/types/liveLinks.d.ts +92 -92
  491. package/dist/types/logger.d.ts +68 -68
  492. package/dist/types/notificationRecipients.d.ts +72 -72
  493. package/dist/types/position.d.ts +72 -72
  494. package/dist/types/promotion.d.ts +121 -121
  495. package/dist/types/security.d.ts +100 -100
  496. package/dist/types/tag.d.ts +65 -65
  497. package/dist/types/tasks.d.ts +228 -228
  498. package/dist/types/trip.d.ts +98 -98
  499. package/dist/types/user.d.ts +256 -256
  500. package/dist/types/userActivations.d.ts +143 -143
  501. package/dist/types/userAppFeedback.d.ts +8 -8
  502. package/dist/types/userAppIncidents.d.ts +35 -35
  503. package/dist/types/userConfigurations.d.ts +127 -127
  504. package/dist/types/userDataDeletionRequests.d.ts +29 -29
  505. package/dist/types/userInvitations.d.ts +48 -48
  506. package/dist/types/userRatingRequests.d.ts +18 -18
  507. package/dist/types/userRegistrationAttempts.d.ts +36 -36
  508. package/dist/utils/anyAttributeHasValue.d.ts +1 -1
  509. package/dist/utils/billingPlansHelper.d.ts +3 -3
  510. package/dist/utils/boolToNumberTransformer.d.ts +5 -5
  511. package/dist/utils/commaSeparatedTransformer.d.ts +9 -9
  512. package/dist/utils/consoleLogger.d.ts +10 -10
  513. package/dist/utils/createBatchesWithMapping.d.ts +1 -1
  514. package/dist/utils/dateTool.d.ts +2 -2
  515. package/dist/utils/dayjs/utc.d.ts +2 -2
  516. package/dist/utils/filterTools.d.ts +12 -12
  517. package/dist/utils/mapRawEntityToEntity.d.ts +1 -1
  518. package/dist/utils/paramsValidators.d.ts +3 -3
  519. package/dist/utils/parsingTools.d.ts +3 -3
  520. package/dist/utils/queryLogger.d.ts +15 -15
  521. package/dist/utils/randomizer.d.ts +5 -5
  522. package/dist/utils/stringToDateTransformer.d.ts +5 -5
  523. package/dist/utils/uuidHelpers.d.ts +4 -4
  524. package/dist/utils/uuidTransformer.d.ts +5 -5
  525. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { User } from '../../entities';
2
- import { NovaDataSource } from '../../novaDataSource';
3
- import { Logger } from '../../types/logger';
4
- import { GetUsersConfigurationByImeiParams } from '../../types/user';
5
- export declare const getUsersConfigurationByImei: (novaDataSource: NovaDataSource, params: GetUsersConfigurationByImeiParams, logger: Logger) => Promise<User[]>;
1
+ import { User } from '../../entities';
2
+ import { NovaDataSource } from '../../novaDataSource';
3
+ import { Logger } from '../../types/logger';
4
+ import { GetUsersConfigurationByImeiParams } from '../../types/user';
5
+ export declare const getUsersConfigurationByImei: (novaDataSource: NovaDataSource, params: GetUsersConfigurationByImeiParams, logger: Logger) => Promise<User[]>;
@@ -1,4 +1,4 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
- import { GetUsersIdsByPhoneAndCountryCodeParams } from '../../types/user';
4
- export declare const getUsersIdsByPhoneAndCountryCode: (novaDataSource: NovaDataSource, params: GetUsersIdsByPhoneAndCountryCodeParams, logger: Logger) => Promise<string[]>;
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { GetUsersIdsByPhoneAndCountryCodeParams } from '../../types/user';
4
+ export declare const getUsersIdsByPhoneAndCountryCode: (novaDataSource: NovaDataSource, params: GetUsersIdsByPhoneAndCountryCodeParams, logger: Logger) => Promise<string[]>;
@@ -1,4 +1,4 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
- import { GetUsersInfoWithDevicesInfoParams, UserInfoWithDevicesInfo } from '../../types/user';
4
- export declare const getUsersInfoWithDevicesInfo: (novaDataSource: NovaDataSource, params: GetUsersInfoWithDevicesInfoParams, logger: Logger) => Promise<UserInfoWithDevicesInfo[]>;
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { GetUsersInfoWithDevicesInfoParams, UserInfoWithDevicesInfo } from '../../types/user';
4
+ export declare const getUsersInfoWithDevicesInfo: (novaDataSource: NovaDataSource, params: GetUsersInfoWithDevicesInfoParams, logger: Logger) => Promise<UserInfoWithDevicesInfo[]>;
@@ -1,4 +1,4 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
- import { GetUsersWithRolesParams, UserWithRole } from '../../types/user';
4
- export declare const getUsersWithRoles: (novaDataSource: NovaDataSource, params: GetUsersWithRolesParams, logger: Logger) => Promise<UserWithRole[]>;
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { GetUsersWithRolesParams, UserWithRole } from '../../types/user';
4
+ export declare const getUsersWithRoles: (novaDataSource: NovaDataSource, params: GetUsersWithRolesParams, logger: Logger) => Promise<UserWithRole[]>;
@@ -1,154 +1,154 @@
1
- import { User } from '../../entities/user';
2
- import { CreateUserParams, DeleteAccountParams, DeleteUserParams, GetUserByIdParams, GetUserClientRelatedEntitiesCountParams, GetUserInfoWithAmazonDevicesInfoParams, GetUsersConfigurationByImeiParams, GetUsersDataParams, GetUsersIdsByPhoneAndCountryCodeParams, GetUsersInfoWithDevicesInfoParams, GetUsersParams, GetUsersWithRolesParams, UpdateUserParams, UserClientRelatedEntitiesCountResult, UserData, UserInfoWithAmazonDevicesInfo, UserInfoWithDevicesInfo, UserWithRole } from '../../types/user';
3
- import { BaseRepository } from '../baseRepository';
4
- export declare class UsersRepository extends BaseRepository {
5
- /**
6
- * Get user by id
7
- * @param {GetUserByIdParams} params containing information to get a user by id
8
- * - filters.id: The user id
9
- * @returns The user information
10
- */
11
- getUserById(params: GetUserByIdParams): Promise<User>;
12
- /**
13
- * Get users with filters
14
- * @param {GetUsersParams} params containing information to get users with filters
15
- * - filters.clientId: The client id to obtain all users from that client
16
- * - filters.email: The user email to obtain all users with that email (lower case and trimmed comparison)
17
- * - filters.userName: The userName to obtain all users with that userName (lower case and trimmed comparison, using userName and preferredUserName fields)
18
- * - filters.search: Search test to obtain all users with that search text (lower case and trimmed comparison, using userName, preferredUserName, email and id fields)
19
- * @returns The user information
20
- */
21
- getUsers(params: GetUsersParams): Promise<User[]>;
22
- /**
23
- * Get user data by imei
24
- * @param {GetUsersConfigurationByImeiParams} params containing information to get a device by imei
25
- * - filters.imei: The imei of the device
26
- */
27
- getUsersConfigurationByImei(params: GetUsersConfigurationByImeiParams): Promise<User[]>;
28
- /**
29
- * Get user ids by phone and country code
30
- * @param {GetUsersIdsByPhoneAndCountryCodeParams} params containing information to get a user by phone and country code
31
- * - filters.phone: The phone of the user. If the phone parameter is in the format +[internationalDirectDialing][phone], the +[internationalDirectDialing] should correspond to the internationalDirectDialing in the user's profile
32
- * - filters.countryCode: The country code of the user (US, MX, etc)
33
- */
34
- getUsersIdsByPhoneAndCountryCode(params: GetUsersIdsByPhoneAndCountryCodeParams): Promise<string[]>;
35
- /**
36
- * Get users with roles
37
- * @param {GetUsersWithRolesParams} params containing information to get users with roles
38
- * - filters.clientId: The client id to obtain all users from that client
39
- * - filters.roleId: The role id to obtain all users with that role, optional
40
- * - filters.status: The status to obtain all users with that status, optional
41
- * roleId or status must be provided
42
- * @returns The user information with the role name
43
- */
44
- getUsersWithRoles(params: GetUsersWithRolesParams): Promise<UserWithRole[]>;
45
- /**
46
- * Create a new user
47
- * @param {CreateUserParams} params containing information to create a new user
48
- * id: the user id, required
49
- * firstName: the first name, required
50
- * lastName: the last name, required
51
- * companyName: the company name, optional
52
- * telephone: the phone number, optional
53
- * street: the street from the user's address, optional
54
- * postalCode: the postal code from the user's address, optional
55
- * city: the city from the user's address, optional
56
- * region: the region from the user's address, optional
57
- * email: the email, required
58
- * userName: the user name, required
59
- * preferredUserName: the preferred user name, optional
60
- * status: the status, optional. If not provided, the default value is 'A' (active)
61
- * clientId: the client id, required
62
- * pinCode: the pin code, optional
63
- * isAdmin: whether the user is administrator, optional. If not provided, the default value is false
64
- * countryId: the country id, optional
65
- * telephoneCountryId: the country id corresponding to the phone number, optional
66
- * dataSourceTypeId?: the data source type id, optional
67
- * emailVerified: whether the email is verified, optional. If not provided, the default value is true
68
- * @returns The created user
69
- */
70
- createUser(params: CreateUserParams): Promise<User>;
71
- /**
72
- * Delete a user
73
- * @param {DeleteUserParams} params containing information to delete a user
74
- * id: the user id, required
75
- * @returns Whether the user was deleted or not
76
- */
77
- deleteUser(params: DeleteUserParams): Promise<boolean>;
78
- /**
79
- * Update a user
80
- * @param {UpdateUserParams} params containing information to update a user
81
- * At least one filter must be provided:
82
- * filters.userId: the user id to filter the users to update, optional
83
- * filters.email: the user email to filter the users to update, optional
84
- * filters.statusList: a list of status to filter the users to update, optional
85
- * At least one value must be provided:
86
- * values.firstName: the first name, optional
87
- * values.lastName: the last name, optional
88
- * values.companyName: the company name, optional
89
- * values.telephone: the phone number, optional
90
- * values.street: the street from the user's address, optional
91
- * values.postalCode: the postal code from the user's address, optional
92
- * values.city: the city from the user's address, optional
93
- * values.region: the region from the user's address, optional
94
- * values.email: the email, optional
95
- * values.userName: the user name, optional
96
- * values.preferredUserName: the preferred user name, optional
97
- * values.status: the status, optional
98
- * values.isAdmin: whether the user is administrator, optional
99
- * values.countryId: the country id, optional
100
- * values.countryCode: the country alpha2 code to find the countryId, optional (if countryId is provided, countryCode is ignored)
101
- * values.telephoneCountryId: the country id corresponding to the phone number, optional
102
- * values.telephoneCountryCode: the country alpha2 code to find the telephoneCountryId, optional (if telephoneCountryId is provided, telephoneCountryCode is ignored)
103
- * values.dataSourceTypeId?: the data source type id, optional
104
- * values.emailVerified: whether the email is verified, optional
105
- * values.latitude: the latitude, optional
106
- * values.longitude: the longitude, optional
107
- * values.lastLoginAt: the last login date, optional
108
- * @returns Whether the user was updated or not
109
- */
110
- updateUser(params: UpdateUserParams): Promise<boolean>;
111
- /**
112
- * Get users data
113
- * @param {GetUsersDataParams} params containing information to get users data
114
- * - filters.imei: The imei of the device to obtain users configurations
115
- * @returns The array of users data
116
- */
117
- getUsersData(params: GetUsersDataParams): Promise<UserData[]>;
118
- /**
119
- * Delete an account
120
- * @param {DeleteAccountParams} params containing information to delete an account
121
- * - filters.userId: The user id to delete the account
122
- * - filters.clientId: The client id to delete the account
123
- * @returns Whether the account was deleted or not
124
- */
125
- deleteAccount(params: DeleteAccountParams): Promise<boolean>;
126
- /**
127
- * Get user client related entities count
128
- * @param {GetUserClientRelatedEntitiesCountParams} params containing information to get user client related entities count
129
- * - filters.userId: The user id to get the count of related entities
130
- * @returns The user client related entities count
131
- */
132
- getUserClientRelatedEntitiesCount(params: GetUserClientRelatedEntitiesCountParams): Promise<UserClientRelatedEntitiesCountResult>;
133
- /**
134
- * Get users info with devices info
135
- * @param {GetUsersInfoWithDevicesInfoParams} params containing information to get users info with devices info
136
- * - filters.userName: The user name to obtain all users with that user name (lower case and trimmed comparison)
137
- * @returns The user information with the devices info
138
- */
139
- getUsersInfoWithDevicesInfo(params: GetUsersInfoWithDevicesInfoParams): Promise<UserInfoWithDevicesInfo[]>;
140
- /**
141
- * Get user info with amazon devices info
142
- * @param {GetUserInfoWithAmazonDevicesInfoParams} params containing information to get user info with amazon devices
143
- * - filters.userId: The user id to obtain the user info with amazon devices
144
- * @returns The user information with the amazon devices
145
- */
146
- getUserInfoWithAmazonDevicesInfo(params: GetUserInfoWithAmazonDevicesInfoParams): Promise<UserInfoWithAmazonDevicesInfo>;
147
- /**
148
- * Delete a user
149
- * @param {DeleteUserParams} params containing information to delete a user data
150
- * id: the user id, required
151
- * @returns Whether the user data was deleted or not
152
- */
153
- deleteUserData(params: DeleteUserParams): Promise<boolean>;
154
- }
1
+ import { User } from '../../entities/user';
2
+ import { CreateUserParams, DeleteAccountParams, DeleteUserParams, GetUserByIdParams, GetUserClientRelatedEntitiesCountParams, GetUserInfoWithAmazonDevicesInfoParams, GetUsersConfigurationByImeiParams, GetUsersDataParams, GetUsersIdsByPhoneAndCountryCodeParams, GetUsersInfoWithDevicesInfoParams, GetUsersParams, GetUsersWithRolesParams, UpdateUserParams, UserClientRelatedEntitiesCountResult, UserData, UserInfoWithAmazonDevicesInfo, UserInfoWithDevicesInfo, UserWithRole } from '../../types/user';
3
+ import { BaseRepository } from '../baseRepository';
4
+ export declare class UsersRepository extends BaseRepository {
5
+ /**
6
+ * Get user by id
7
+ * @param {GetUserByIdParams} params containing information to get a user by id
8
+ * - filters.id: The user id
9
+ * @returns The user information
10
+ */
11
+ getUserById(params: GetUserByIdParams): Promise<User>;
12
+ /**
13
+ * Get users with filters
14
+ * @param {GetUsersParams} params containing information to get users with filters
15
+ * - filters.clientId: The client id to obtain all users from that client
16
+ * - filters.email: The user email to obtain all users with that email (lower case and trimmed comparison)
17
+ * - filters.userName: The userName to obtain all users with that userName (lower case and trimmed comparison, using userName and preferredUserName fields)
18
+ * - filters.search: Search test to obtain all users with that search text (lower case and trimmed comparison, using userName, preferredUserName, email and id fields)
19
+ * @returns The user information
20
+ */
21
+ getUsers(params: GetUsersParams): Promise<User[]>;
22
+ /**
23
+ * Get user data by imei
24
+ * @param {GetUsersConfigurationByImeiParams} params containing information to get a device by imei
25
+ * - filters.imei: The imei of the device
26
+ */
27
+ getUsersConfigurationByImei(params: GetUsersConfigurationByImeiParams): Promise<User[]>;
28
+ /**
29
+ * Get user ids by phone and country code
30
+ * @param {GetUsersIdsByPhoneAndCountryCodeParams} params containing information to get a user by phone and country code
31
+ * - filters.phone: The phone of the user. If the phone parameter is in the format +[internationalDirectDialing][phone], the +[internationalDirectDialing] should correspond to the internationalDirectDialing in the user's profile
32
+ * - filters.countryCode: The country code of the user (US, MX, etc)
33
+ */
34
+ getUsersIdsByPhoneAndCountryCode(params: GetUsersIdsByPhoneAndCountryCodeParams): Promise<string[]>;
35
+ /**
36
+ * Get users with roles
37
+ * @param {GetUsersWithRolesParams} params containing information to get users with roles
38
+ * - filters.clientId: The client id to obtain all users from that client
39
+ * - filters.roleId: The role id to obtain all users with that role, optional
40
+ * - filters.status: The status to obtain all users with that status, optional
41
+ * roleId or status must be provided
42
+ * @returns The user information with the role name
43
+ */
44
+ getUsersWithRoles(params: GetUsersWithRolesParams): Promise<UserWithRole[]>;
45
+ /**
46
+ * Create a new user
47
+ * @param {CreateUserParams} params containing information to create a new user
48
+ * id: the user id, required
49
+ * firstName: the first name, required
50
+ * lastName: the last name, required
51
+ * companyName: the company name, optional
52
+ * telephone: the phone number, optional
53
+ * street: the street from the user's address, optional
54
+ * postalCode: the postal code from the user's address, optional
55
+ * city: the city from the user's address, optional
56
+ * region: the region from the user's address, optional
57
+ * email: the email, required
58
+ * userName: the user name, required
59
+ * preferredUserName: the preferred user name, optional
60
+ * status: the status, optional. If not provided, the default value is 'A' (active)
61
+ * clientId: the client id, required
62
+ * pinCode: the pin code, optional
63
+ * isAdmin: whether the user is administrator, optional. If not provided, the default value is false
64
+ * countryId: the country id, optional
65
+ * telephoneCountryId: the country id corresponding to the phone number, optional
66
+ * dataSourceTypeId?: the data source type id, optional
67
+ * emailVerified: whether the email is verified, optional. If not provided, the default value is true
68
+ * @returns The created user
69
+ */
70
+ createUser(params: CreateUserParams): Promise<User>;
71
+ /**
72
+ * Delete a user
73
+ * @param {DeleteUserParams} params containing information to delete a user
74
+ * id: the user id, required
75
+ * @returns Whether the user was deleted or not
76
+ */
77
+ deleteUser(params: DeleteUserParams): Promise<boolean>;
78
+ /**
79
+ * Update a user
80
+ * @param {UpdateUserParams} params containing information to update a user
81
+ * At least one filter must be provided:
82
+ * filters.userId: the user id to filter the users to update, optional
83
+ * filters.email: the user email to filter the users to update, optional
84
+ * filters.statusList: a list of status to filter the users to update, optional
85
+ * At least one value must be provided:
86
+ * values.firstName: the first name, optional
87
+ * values.lastName: the last name, optional
88
+ * values.companyName: the company name, optional
89
+ * values.telephone: the phone number, optional
90
+ * values.street: the street from the user's address, optional
91
+ * values.postalCode: the postal code from the user's address, optional
92
+ * values.city: the city from the user's address, optional
93
+ * values.region: the region from the user's address, optional
94
+ * values.email: the email, optional
95
+ * values.userName: the user name, optional
96
+ * values.preferredUserName: the preferred user name, optional
97
+ * values.status: the status, optional
98
+ * values.isAdmin: whether the user is administrator, optional
99
+ * values.countryId: the country id, optional
100
+ * values.countryCode: the country alpha2 code to find the countryId, optional (if countryId is provided, countryCode is ignored)
101
+ * values.telephoneCountryId: the country id corresponding to the phone number, optional
102
+ * values.telephoneCountryCode: the country alpha2 code to find the telephoneCountryId, optional (if telephoneCountryId is provided, telephoneCountryCode is ignored)
103
+ * values.dataSourceTypeId?: the data source type id, optional
104
+ * values.emailVerified: whether the email is verified, optional
105
+ * values.latitude: the latitude, optional
106
+ * values.longitude: the longitude, optional
107
+ * values.lastLoginAt: the last login date, optional
108
+ * @returns Whether the user was updated or not
109
+ */
110
+ updateUser(params: UpdateUserParams): Promise<boolean>;
111
+ /**
112
+ * Get users data
113
+ * @param {GetUsersDataParams} params containing information to get users data
114
+ * - filters.imei: The imei of the device to obtain users configurations
115
+ * @returns The array of users data
116
+ */
117
+ getUsersData(params: GetUsersDataParams): Promise<UserData[]>;
118
+ /**
119
+ * Delete an account
120
+ * @param {DeleteAccountParams} params containing information to delete an account
121
+ * - filters.userId: The user id to delete the account
122
+ * - filters.clientId: The client id to delete the account
123
+ * @returns Whether the account was deleted or not
124
+ */
125
+ deleteAccount(params: DeleteAccountParams): Promise<boolean>;
126
+ /**
127
+ * Get user client related entities count
128
+ * @param {GetUserClientRelatedEntitiesCountParams} params containing information to get user client related entities count
129
+ * - filters.userId: The user id to get the count of related entities
130
+ * @returns The user client related entities count
131
+ */
132
+ getUserClientRelatedEntitiesCount(params: GetUserClientRelatedEntitiesCountParams): Promise<UserClientRelatedEntitiesCountResult>;
133
+ /**
134
+ * Get users info with devices info
135
+ * @param {GetUsersInfoWithDevicesInfoParams} params containing information to get users info with devices info
136
+ * - filters.userName: The user name to obtain all users with that user name (lower case and trimmed comparison)
137
+ * @returns The user information with the devices info
138
+ */
139
+ getUsersInfoWithDevicesInfo(params: GetUsersInfoWithDevicesInfoParams): Promise<UserInfoWithDevicesInfo[]>;
140
+ /**
141
+ * Get user info with amazon devices info
142
+ * @param {GetUserInfoWithAmazonDevicesInfoParams} params containing information to get user info with amazon devices
143
+ * - filters.userId: The user id to obtain the user info with amazon devices
144
+ * @returns The user information with the amazon devices
145
+ */
146
+ getUserInfoWithAmazonDevicesInfo(params: GetUserInfoWithAmazonDevicesInfoParams): Promise<UserInfoWithAmazonDevicesInfo>;
147
+ /**
148
+ * Delete a user
149
+ * @param {DeleteUserParams} params containing information to delete a user data
150
+ * id: the user id, required
151
+ * @returns Whether the user data was deleted or not
152
+ */
153
+ deleteUserData(params: DeleteUserParams): Promise<boolean>;
154
+ }
@@ -1,4 +1,4 @@
1
- import { NovaDataSource } from '../../novaDataSource';
2
- import { Logger } from '../../types/logger';
3
- import { UpdateUserParams } from '../../types/user';
4
- export declare const updateUser: (novaDataSource: NovaDataSource, params: UpdateUserParams, logger: Logger) => Promise<boolean>;
1
+ import { NovaDataSource } from '../../novaDataSource';
2
+ import { Logger } from '../../types/logger';
3
+ import { UpdateUserParams } from '../../types/user';
4
+ export declare const updateUser: (novaDataSource: NovaDataSource, params: UpdateUserParams, logger: Logger) => Promise<boolean>;
@@ -1,13 +1,13 @@
1
- import { EntitySubscriberInterface, RemoveEvent } from 'typeorm';
2
- export declare class AllEntitiesSubscriber implements EntitySubscriberInterface<any> {
3
- /**
4
- * Called after entity insertion.
5
- */
6
- /**
7
- * Called after entity update.
8
- */
9
- /**
10
- * Called after entity removal.
11
- */
12
- afterRemove(event: RemoveEvent<any>): void;
13
- }
1
+ import { EntitySubscriberInterface, RemoveEvent } from 'typeorm';
2
+ export declare class AllEntitiesSubscriber implements EntitySubscriberInterface<any> {
3
+ /**
4
+ * Called after entity insertion.
5
+ */
6
+ /**
7
+ * Called after entity update.
8
+ */
9
+ /**
10
+ * Called after entity removal.
11
+ */
12
+ afterRemove(event: RemoveEvent<any>): void;
13
+ }
@@ -1,2 +1,2 @@
1
- import { AllEntitiesSubscriber } from './allEntitiesSubscriber';
2
- export { AllEntitiesSubscriber };
1
+ import { AllEntitiesSubscriber } from './allEntitiesSubscriber';
2
+ export { AllEntitiesSubscriber };
@@ -1,42 +1,42 @@
1
- import { BaseSelectQueryParams } from './common';
2
- export interface GetAcumaticaImeiIccidDataParams extends BaseSelectQueryParams {
3
- filters: {
4
- imei?: string;
5
- imeiList?: string[];
6
- excludeNullAsin?: boolean;
7
- excludeNullCountyCode?: boolean;
8
- excludeCountries?: string[];
9
- };
10
- sortOptions?: {
11
- sortField: 'createdDate' | 'shipDate';
12
- sortOrder: 'ASC' | 'DESC';
13
- };
14
- }
15
- export interface GetAcumaticaShipmentAmazonParams extends BaseSelectQueryParams {
16
- filters: {
17
- shipmentIds: string[];
18
- };
19
- }
20
- export interface GetLastAmazonDeviceShipmentDetailsParams extends BaseSelectQueryParams {
21
- filters: {
22
- clientId: number;
23
- };
24
- }
25
- export interface AmazonDeviceShipmentDetails {
26
- imei: string;
27
- iccid: string;
28
- shipmentDate: Date;
29
- orderType: string;
30
- reviewUrl?: string | null;
31
- productUrl?: string | null;
32
- }
33
- export interface GetAcumaticaShipmentDetailsParams extends BaseSelectQueryParams {
34
- filters: {
35
- imeiList: string[];
36
- };
37
- }
38
- export interface GetOrderShipmentInternationalParams extends BaseSelectQueryParams {
39
- filters: {
40
- imei: string;
41
- };
42
- }
1
+ import { BaseSelectQueryParams } from './common';
2
+ export interface GetAcumaticaImeiIccidDataParams extends BaseSelectQueryParams {
3
+ filters: {
4
+ imei?: string;
5
+ imeiList?: string[];
6
+ excludeNullAsin?: boolean;
7
+ excludeNullCountyCode?: boolean;
8
+ excludeCountries?: string[];
9
+ };
10
+ sortOptions?: {
11
+ sortField: 'createdDate' | 'shipDate';
12
+ sortOrder: 'ASC' | 'DESC';
13
+ };
14
+ }
15
+ export interface GetAcumaticaShipmentAmazonParams extends BaseSelectQueryParams {
16
+ filters: {
17
+ shipmentIds: string[];
18
+ };
19
+ }
20
+ export interface GetLastAmazonDeviceShipmentDetailsParams extends BaseSelectQueryParams {
21
+ filters: {
22
+ clientId: number;
23
+ };
24
+ }
25
+ export interface AmazonDeviceShipmentDetails {
26
+ imei: string;
27
+ iccid: string;
28
+ shipmentDate: Date;
29
+ orderType: string;
30
+ reviewUrl?: string | null;
31
+ productUrl?: string | null;
32
+ }
33
+ export interface GetAcumaticaShipmentDetailsParams extends BaseSelectQueryParams {
34
+ filters: {
35
+ imeiList: string[];
36
+ };
37
+ }
38
+ export interface GetOrderShipmentInternationalParams extends BaseSelectQueryParams {
39
+ filters: {
40
+ imei: string;
41
+ };
42
+ }
@@ -1,20 +1,20 @@
1
- import { BaseSelectQueryParams } from './common';
2
- export interface GetAempTokensParams extends BaseSelectQueryParams {
3
- filters: {
4
- clientId?: number;
5
- token?: string;
6
- };
7
- }
8
- export interface CreateAempTokenParams {
9
- id?: number;
10
- clientId: number;
11
- token: string;
12
- expiresAt?: Date;
13
- }
14
- export interface DeleteAempTokensParams {
15
- filters: {
16
- id?: number;
17
- clientId?: number;
18
- token?: string;
19
- };
20
- }
1
+ import { BaseSelectQueryParams } from './common';
2
+ export interface GetAempTokensParams extends BaseSelectQueryParams {
3
+ filters: {
4
+ clientId?: number;
5
+ token?: string;
6
+ };
7
+ }
8
+ export interface CreateAempTokenParams {
9
+ id?: number;
10
+ clientId: number;
11
+ token: string;
12
+ expiresAt?: Date;
13
+ }
14
+ export interface DeleteAempTokensParams {
15
+ filters: {
16
+ id?: number;
17
+ clientId?: number;
18
+ token?: string;
19
+ };
20
+ }