@spytecgps/nova-orm 1.2.15-rc8 → 1.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/acumaticaAmazonProduct.d.ts +8 -8
- package/dist/entities/acumaticaAmazonProduct.js +47 -0
- package/dist/entities/acumaticaAmazonProduct.js.map +1 -0
- package/dist/entities/acumaticaImeiIccidData.d.ts +17 -17
- package/dist/entities/acumaticaImeiIccidData.js +93 -0
- package/dist/entities/acumaticaImeiIccidData.js.map +1 -0
- package/dist/entities/acumaticaOrderShipmentDetails.d.ts +11 -11
- package/dist/entities/acumaticaOrderShipmentDetails.js +63 -0
- package/dist/entities/acumaticaOrderShipmentDetails.js.map +1 -0
- package/dist/entities/acumaticaShipment.d.ts +5 -5
- package/dist/entities/acumaticaShipment.js +32 -0
- package/dist/entities/acumaticaShipment.js.map +1 -0
- package/dist/entities/acumaticaShipmentAmazon.d.ts +4 -4
- package/dist/entities/acumaticaShipmentAmazon.js +27 -0
- package/dist/entities/acumaticaShipmentAmazon.js.map +1 -0
- package/dist/entities/aempToken.d.ts +10 -10
- package/dist/entities/aempToken.js +48 -0
- package/dist/entities/aempToken.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.d.ts +15 -15
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js +82 -0
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.d.ts +28 -28
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js +147 -0
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.d.ts +7 -7
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js +42 -0
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js.map +1 -0
- package/dist/entities/alert.d.ts +28 -28
- package/dist/entities/alert.js +137 -0
- package/dist/entities/alert.js.map +1 -0
- package/dist/entities/alertType.d.ts +14 -14
- package/dist/entities/alertType.js +84 -0
- package/dist/entities/alertType.js.map +1 -0
- package/dist/entities/appFeatureType.d.ts +6 -6
- package/dist/entities/appFeatureType.js +37 -0
- package/dist/entities/appFeatureType.js.map +1 -0
- package/dist/entities/asinPromotion.d.ts +7 -7
- package/dist/entities/asinPromotion.js +37 -0
- package/dist/entities/asinPromotion.js.map +1 -0
- package/dist/entities/assetCategory.d.ts +5 -5
- package/dist/entities/assetCategory.js +33 -0
- package/dist/entities/assetCategory.js.map +1 -0
- package/dist/entities/beaconBleMesh.d.ts +11 -11
- package/dist/entities/beaconBleMesh.js +63 -0
- package/dist/entities/beaconBleMesh.js.map +1 -0
- package/dist/entities/billing.d.ts +20 -20
- package/dist/entities/billing.js +109 -0
- package/dist/entities/billing.js.map +1 -0
- package/dist/entities/billingCustomerAmazon.d.ts +14 -14
- package/dist/entities/billingCustomerAmazon.js +83 -0
- package/dist/entities/billingCustomerAmazon.js.map +1 -0
- package/dist/entities/billingCustomerBraintree.d.ts +11 -11
- package/dist/entities/billingCustomerBraintree.js +63 -0
- package/dist/entities/billingCustomerBraintree.js.map +1 -0
- package/dist/entities/billingDeviceHistory.d.ts +11 -11
- package/dist/entities/billingDeviceHistory.js +62 -0
- package/dist/entities/billingDeviceHistory.js.map +1 -0
- package/dist/entities/billingDeviceTypePlan.d.ts +12 -12
- package/dist/entities/billingDeviceTypePlan.js +64 -0
- package/dist/entities/billingDeviceTypePlan.js.map +1 -0
- package/dist/entities/billingHubspotPaymentLog.d.ts +50 -50
- package/dist/entities/billingHubspotPaymentLog.js +257 -0
- package/dist/entities/billingHubspotPaymentLog.js.map +1 -0
- package/dist/entities/billingKlarnaCustomer.d.ts +14 -14
- package/dist/entities/billingKlarnaCustomer.js +77 -0
- package/dist/entities/billingKlarnaCustomer.js.map +1 -0
- package/dist/entities/billingKlarnaOrder.d.ts +17 -17
- package/dist/entities/billingKlarnaOrder.js +115 -0
- package/dist/entities/billingKlarnaOrder.js.map +1 -0
- package/dist/entities/billingPlanFeatures.d.ts +6 -6
- package/dist/entities/billingPlanFeatures.js +37 -0
- package/dist/entities/billingPlanFeatures.js.map +1 -0
- package/dist/entities/billingPlans.d.ts +22 -22
- package/dist/entities/billingPlans.js +127 -0
- package/dist/entities/billingPlans.js.map +1 -0
- package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -10
- package/dist/entities/billingStatusHistoryBraintree.js +64 -0
- package/dist/entities/billingStatusHistoryBraintree.js.map +1 -0
- package/dist/entities/billingSubscriptionAmazon.d.ts +22 -22
- package/dist/entities/billingSubscriptionAmazon.js +162 -0
- package/dist/entities/billingSubscriptionAmazon.js.map +1 -0
- package/dist/entities/billingSubscriptionBraintree.d.ts +34 -34
- package/dist/entities/billingSubscriptionBraintree.js +230 -0
- package/dist/entities/billingSubscriptionBraintree.js.map +1 -0
- package/dist/entities/blacklist.d.ts +9 -9
- package/dist/entities/blacklist.js +52 -0
- package/dist/entities/blacklist.js.map +1 -0
- package/dist/entities/blacklistType.d.ts +5 -5
- package/dist/entities/blacklistType.js +32 -0
- package/dist/entities/blacklistType.js.map +1 -0
- package/dist/entities/bleMesh.d.ts +15 -15
- package/dist/entities/bleMesh.js +74 -0
- package/dist/entities/bleMesh.js.map +1 -0
- package/dist/entities/bleMeshConfiguration.d.ts +9 -9
- package/dist/entities/bleMeshConfiguration.js +57 -0
- package/dist/entities/bleMeshConfiguration.js.map +1 -0
- package/dist/entities/boundary.d.ts +23 -23
- package/dist/entities/boundary.js +121 -0
- package/dist/entities/boundary.js.map +1 -0
- package/dist/entities/boundaryEvent.d.ts +20 -20
- package/dist/entities/boundaryEvent.js +106 -0
- package/dist/entities/boundaryEvent.js.map +1 -0
- package/dist/entities/cellTower.d.ts +12 -12
- package/dist/entities/cellTower.js +67 -0
- package/dist/entities/cellTower.js.map +1 -0
- package/dist/entities/client.d.ts +34 -34
- package/dist/entities/client.js +148 -0
- package/dist/entities/client.js.map +1 -0
- package/dist/entities/clientAlertConfiguration.d.ts +17 -17
- package/dist/entities/clientAlertConfiguration.js +90 -0
- package/dist/entities/clientAlertConfiguration.js.map +1 -0
- package/dist/entities/clientAlertRecipient.d.ts +16 -16
- package/dist/entities/clientAlertRecipient.js +98 -0
- package/dist/entities/clientAlertRecipient.js.map +1 -0
- package/dist/entities/clientAppFeature.d.ts +9 -9
- package/dist/entities/clientAppFeature.js +48 -0
- package/dist/entities/clientAppFeature.js.map +1 -0
- package/dist/entities/clientConfiguration.d.ts +9 -9
- package/dist/entities/clientConfiguration.js +59 -0
- package/dist/entities/clientConfiguration.js.map +1 -0
- package/dist/entities/clientDeviceSetting.d.ts +14 -14
- package/dist/entities/clientDeviceSetting.js +96 -0
- package/dist/entities/clientDeviceSetting.js.map +1 -0
- package/dist/entities/clientIngestorConfiguration.d.ts +8 -8
- package/dist/entities/clientIngestorConfiguration.js +48 -0
- package/dist/entities/clientIngestorConfiguration.js.map +1 -0
- package/dist/entities/clientType.d.ts +6 -6
- package/dist/entities/clientType.js +37 -0
- package/dist/entities/clientType.js.map +1 -0
- package/dist/entities/country.d.ts +16 -16
- package/dist/entities/country.js +92 -0
- package/dist/entities/country.js.map +1 -0
- package/dist/entities/customerAttribute.d.ts +15 -15
- package/dist/entities/customerAttribute.js +81 -0
- package/dist/entities/customerAttribute.js.map +1 -0
- package/dist/entities/dataExport.d.ts +17 -17
- package/dist/entities/dataExport.js +74 -0
- package/dist/entities/dataExport.js.map +1 -0
- package/dist/entities/dataSourceType.d.ts +5 -5
- package/dist/entities/dataSourceType.js +32 -0
- package/dist/entities/dataSourceType.js.map +1 -0
- package/dist/entities/deactivation.d.ts +14 -14
- package/dist/entities/deactivation.js +84 -0
- package/dist/entities/deactivation.js.map +1 -0
- package/dist/entities/deactivationReason.d.ts +6 -6
- package/dist/entities/deactivationReason.js +41 -0
- package/dist/entities/deactivationReason.js.map +1 -0
- package/dist/entities/device.d.ts +38 -36
- package/dist/entities/device.js +174 -0
- package/dist/entities/device.js.map +1 -0
- package/dist/entities/deviceBehavior.d.ts +25 -25
- package/dist/entities/deviceBehavior.js +148 -0
- package/dist/entities/deviceBehavior.js.map +1 -0
- package/dist/entities/deviceBleMesh.d.ts +14 -14
- package/dist/entities/deviceBleMesh.js +78 -0
- package/dist/entities/deviceBleMesh.js.map +1 -0
- package/dist/entities/deviceBleMeshUpdateTask.d.ts +18 -18
- package/dist/entities/deviceBleMeshUpdateTask.js +83 -0
- package/dist/entities/deviceBleMeshUpdateTask.js.map +1 -0
- package/dist/entities/deviceChangesHistory.d.ts +8 -8
- package/dist/entities/deviceChangesHistory.js +48 -0
- package/dist/entities/deviceChangesHistory.js.map +1 -0
- package/dist/entities/deviceCustomConfiguration.d.ts +13 -13
- package/dist/entities/deviceCustomConfiguration.js +77 -0
- package/dist/entities/deviceCustomConfiguration.js.map +1 -0
- package/dist/entities/deviceHistory.d.ts +8 -8
- package/dist/entities/deviceHistory.js +47 -0
- package/dist/entities/deviceHistory.js.map +1 -0
- package/dist/entities/deviceModelListener.d.ts +8 -8
- package/dist/entities/deviceModelListener.js +47 -0
- package/dist/entities/deviceModelListener.js.map +1 -0
- package/dist/entities/devicePairing.d.ts +14 -14
- package/dist/entities/devicePairing.js +83 -0
- package/dist/entities/devicePairing.js.map +1 -0
- package/dist/entities/devicePromotion.d.ts +7 -7
- package/dist/entities/devicePromotion.js +37 -0
- package/dist/entities/devicePromotion.js.map +1 -0
- package/dist/entities/deviceReplacement.d.ts +12 -12
- package/dist/entities/deviceReplacement.js +58 -0
- package/dist/entities/deviceReplacement.js.map +1 -0
- package/dist/entities/deviceStatus.d.ts +13 -13
- package/dist/entities/deviceStatus.js +61 -0
- package/dist/entities/deviceStatus.js.map +1 -0
- package/dist/entities/deviceTask.d.ts +8 -8
- package/dist/entities/deviceTask.js +45 -0
- package/dist/entities/deviceTask.js.map +1 -0
- package/dist/entities/deviceType.d.ts +26 -26
- package/dist/entities/deviceType.js +144 -0
- package/dist/entities/deviceType.js.map +1 -0
- package/dist/entities/deviceTypeFeature.d.ts +5 -5
- package/dist/entities/deviceTypeFeature.js +33 -0
- package/dist/entities/deviceTypeFeature.js.map +1 -0
- package/dist/entities/deviceTypeFirmware.d.ts +21 -21
- package/dist/entities/deviceTypeFirmware.js +118 -0
- package/dist/entities/deviceTypeFirmware.js.map +1 -0
- package/dist/entities/deviceTypePromotion.d.ts +7 -7
- package/dist/entities/deviceTypePromotion.js +37 -0
- package/dist/entities/deviceTypePromotion.js.map +1 -0
- package/dist/entities/emailDomain.d.ts +5 -5
- package/dist/entities/emailDomain.js +39 -0
- package/dist/entities/emailDomain.js.map +1 -0
- package/dist/entities/entityTag.d.ts +12 -12
- package/dist/entities/entityTag.js +72 -0
- package/dist/entities/entityTag.js.map +1 -0
- package/dist/entities/entityType.d.ts +5 -5
- package/dist/entities/entityType.js +32 -0
- package/dist/entities/entityType.js.map +1 -0
- package/dist/entities/feature.d.ts +6 -6
- package/dist/entities/feature.js +37 -0
- package/dist/entities/feature.js.map +1 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/entities/firmwareAutoUpgradeBlacklist.js +36 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/entities/firmwareUpgradeTask.d.ts +23 -23
- package/dist/entities/firmwareUpgradeTask.js +108 -0
- package/dist/entities/firmwareUpgradeTask.js.map +1 -0
- package/dist/entities/iccidStatus.d.ts +7 -7
- package/dist/entities/iccidStatus.js +50 -0
- package/dist/entities/iccidStatus.js.map +1 -0
- package/dist/entities/imeiIccidCarrier.d.ts +21 -21
- package/dist/entities/imeiIccidCarrier.js +126 -0
- package/dist/entities/imeiIccidCarrier.js.map +1 -0
- package/dist/entities/imeiIccidHistory.d.ts +7 -7
- package/dist/entities/imeiIccidHistory.js +44 -0
- package/dist/entities/imeiIccidHistory.js.map +1 -0
- package/dist/entities/imeiIccidImport.d.ts +5 -5
- package/dist/entities/imeiIccidImport.js +32 -0
- package/dist/entities/imeiIccidImport.js.map +1 -0
- package/dist/entities/index.d.ts +120 -120
- package/dist/entities/index.js +121 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/industry.d.ts +8 -8
- package/dist/entities/industry.js +47 -0
- package/dist/entities/industry.js.map +1 -0
- package/dist/entities/latestPosition.d.ts +21 -21
- package/dist/entities/latestPosition.js +106 -0
- package/dist/entities/latestPosition.js.map +1 -0
- package/dist/entities/latestPositionMigration.d.ts +20 -20
- package/dist/entities/latestPositionMigration.js +97 -0
- package/dist/entities/latestPositionMigration.js.map +1 -0
- package/dist/entities/latestPositionMigrationBatch.d.ts +3 -3
- package/dist/entities/latestPositionMigrationBatch.js +22 -0
- package/dist/entities/latestPositionMigrationBatch.js.map +1 -0
- package/dist/entities/latestUserAppInfo.d.ts +9 -9
- package/dist/entities/latestUserAppInfo.js +43 -0
- package/dist/entities/latestUserAppInfo.js.map +1 -0
- package/dist/entities/liveLink.d.ts +17 -17
- package/dist/entities/liveLink.js +93 -0
- package/dist/entities/liveLink.js.map +1 -0
- package/dist/entities/magento2Gps.d.ts +50 -50
- package/dist/entities/magento2Gps.js +258 -0
- package/dist/entities/magento2Gps.js.map +1 -0
- package/dist/entities/magento2Plan.d.ts +6 -6
- package/dist/entities/magento2Plan.js +42 -0
- package/dist/entities/magento2Plan.js.map +1 -0
- package/dist/entities/marketplacePromotion.d.ts +7 -7
- package/dist/entities/marketplacePromotion.js +37 -0
- package/dist/entities/marketplacePromotion.js.map +1 -0
- package/dist/entities/mobileNetwork.d.ts +9 -9
- package/dist/entities/mobileNetwork.js +52 -0
- package/dist/entities/mobileNetwork.js.map +1 -0
- package/dist/entities/notificationRecipient.d.ts +23 -23
- package/dist/entities/notificationRecipient.js +128 -0
- package/dist/entities/notificationRecipient.js.map +1 -0
- package/dist/entities/orderShipmentInternational.d.ts +12 -12
- package/dist/entities/orderShipmentInternational.js +67 -0
- package/dist/entities/orderShipmentInternational.js.map +1 -0
- package/dist/entities/organization.d.ts +10 -10
- package/dist/entities/organization.js +47 -0
- package/dist/entities/organization.js.map +1 -0
- package/dist/entities/plan.d.ts +16 -16
- package/dist/entities/plan.js +87 -0
- package/dist/entities/plan.js.map +1 -0
- package/dist/entities/position.d.ts +21 -21
- package/dist/entities/position.js +106 -0
- package/dist/entities/position.js.map +1 -0
- package/dist/entities/positionMigration.d.ts +20 -20
- package/dist/entities/positionMigration.js +97 -0
- package/dist/entities/positionMigration.js.map +1 -0
- package/dist/entities/positionMigrationBatch.d.ts +3 -3
- package/dist/entities/positionMigrationBatch.js +22 -0
- package/dist/entities/positionMigrationBatch.js.map +1 -0
- package/dist/entities/promotion.d.ts +24 -24
- package/dist/entities/promotion.js +136 -0
- package/dist/entities/promotion.js.map +1 -0
- package/dist/entities/promotionHistory.d.ts +12 -12
- package/dist/entities/promotionHistory.js +90 -0
- package/dist/entities/promotionHistory.js.map +1 -0
- package/dist/entities/securityRole.d.ts +10 -10
- package/dist/entities/securityRole.js +48 -0
- package/dist/entities/securityRole.js.map +1 -0
- package/dist/entities/serviceProvider.d.ts +7 -7
- package/dist/entities/serviceProvider.js +42 -0
- package/dist/entities/serviceProvider.js.map +1 -0
- package/dist/entities/serviceProviderProduct.d.ts +9 -9
- package/dist/entities/serviceProviderProduct.js +62 -0
- package/dist/entities/serviceProviderProduct.js.map +1 -0
- package/dist/entities/serviceProviderProductNetwork.d.ts +5 -5
- package/dist/entities/serviceProviderProductNetwork.js +32 -0
- package/dist/entities/serviceProviderProductNetwork.js.map +1 -0
- package/dist/entities/serviceProviderProductType.d.ts +5 -5
- package/dist/entities/serviceProviderProductType.js +32 -0
- package/dist/entities/serviceProviderProductType.js.map +1 -0
- package/dist/entities/sim.d.ts +16 -16
- package/dist/entities/sim.js +93 -0
- package/dist/entities/sim.js.map +1 -0
- package/dist/entities/subscriptionHistoricalPrice.d.ts +18 -18
- package/dist/entities/subscriptionHistoricalPrice.js +133 -0
- package/dist/entities/subscriptionHistoricalPrice.js.map +1 -0
- package/dist/entities/tag.d.ts +12 -12
- package/dist/entities/tag.js +68 -0
- package/dist/entities/tag.js.map +1 -0
- package/dist/entities/task.d.ts +36 -36
- package/dist/entities/task.js +185 -0
- package/dist/entities/task.js.map +1 -0
- package/dist/entities/taskSchedule.d.ts +29 -29
- package/dist/entities/taskSchedule.js +147 -0
- package/dist/entities/taskSchedule.js.map +1 -0
- package/dist/entities/trip.d.ts +27 -27
- package/dist/entities/trip.js +139 -0
- package/dist/entities/trip.js.map +1 -0
- package/dist/entities/tripCompletionStatus.d.ts +6 -6
- package/dist/entities/tripCompletionStatus.js +37 -0
- package/dist/entities/tripCompletionStatus.js.map +1 -0
- package/dist/entities/tripPosition.d.ts +4 -4
- package/dist/entities/tripPosition.js +27 -0
- package/dist/entities/tripPosition.js.map +1 -0
- package/dist/entities/user.d.ts +48 -48
- package/dist/entities/user.js +218 -0
- package/dist/entities/user.js.map +1 -0
- package/dist/entities/userActivation.d.ts +10 -10
- package/dist/entities/userActivation.js +53 -0
- package/dist/entities/userActivation.js.map +1 -0
- package/dist/entities/userActivationDevice.d.ts +28 -28
- package/dist/entities/userActivationDevice.js +165 -0
- package/dist/entities/userActivationDevice.js.map +1 -0
- package/dist/entities/userActivationEvent.d.ts +13 -13
- package/dist/entities/userActivationEvent.js +62 -0
- package/dist/entities/userActivationEvent.js.map +1 -0
- package/dist/entities/userActivationMetric.d.ts +39 -39
- package/dist/entities/userActivationMetric.js +209 -0
- package/dist/entities/userActivationMetric.js.map +1 -0
- package/dist/entities/userAlertComplain.d.ts +18 -18
- package/dist/entities/userAlertComplain.js +79 -0
- package/dist/entities/userAlertComplain.js.map +1 -0
- package/dist/entities/userAlertConfiguration.d.ts +25 -25
- package/dist/entities/userAlertConfiguration.js +143 -0
- package/dist/entities/userAlertConfiguration.js.map +1 -0
- package/dist/entities/userAlertNotificationsConfig.d.ts +14 -14
- package/dist/entities/userAlertNotificationsConfig.js +91 -0
- package/dist/entities/userAlertNotificationsConfig.js.map +1 -0
- package/dist/entities/userAppFeedback.d.ts +11 -11
- package/dist/entities/userAppFeedback.js +53 -0
- package/dist/entities/userAppFeedback.js.map +1 -0
- package/dist/entities/userAppIncident.d.ts +30 -30
- package/dist/entities/userAppIncident.js +177 -0
- package/dist/entities/userAppIncident.js.map +1 -0
- package/dist/entities/userConfiguration.d.ts +21 -21
- package/dist/entities/userConfiguration.js +110 -0
- package/dist/entities/userConfiguration.js.map +1 -0
- package/dist/entities/userDataDeletionRequest.d.ts +12 -12
- package/dist/entities/userDataDeletionRequest.js +58 -0
- package/dist/entities/userDataDeletionRequest.js.map +1 -0
- package/dist/entities/userDeviceBehaviorTask.d.ts +16 -16
- package/dist/entities/userDeviceBehaviorTask.js +81 -0
- package/dist/entities/userDeviceBehaviorTask.js.map +1 -0
- package/dist/entities/userInvitation.d.ts +20 -20
- package/dist/entities/userInvitation.js +102 -0
- package/dist/entities/userInvitation.js.map +1 -0
- package/dist/entities/userRatingRequest.d.ts +14 -14
- package/dist/entities/userRatingRequest.js +76 -0
- package/dist/entities/userRatingRequest.js.map +1 -0
- package/dist/entities/userRegistrationAttempt.d.ts +36 -36
- package/dist/entities/userRegistrationAttempt.js +178 -0
- package/dist/entities/userRegistrationAttempt.js.map +1 -0
- package/dist/entities/userSecurityRole.d.ts +12 -12
- package/dist/entities/userSecurityRole.js +46 -0
- package/dist/entities/userSecurityRole.js.map +1 -0
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -0
- package/dist/migration/1684483704434-addLowerCaseIndex.d.ts +5 -5
- package/dist/migration/1684483704434-addLowerCaseIndex.js +17 -0
- package/dist/migration/1684483704434-addLowerCaseIndex.js.map +1 -0
- package/dist/novaDataSource.d.ts +82 -88
- package/dist/novaDataSource.js +200 -0
- package/dist/novaDataSource.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.d.ts +5 -5
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +47 -0
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.d.ts +4 -4
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +56 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js.map +1 -0
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.d.ts +4 -4
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +33 -0
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js.map +1 -0
- package/dist/repositories/acumatica/getOrderShipmentInternational.d.ts +5 -5
- package/dist/repositories/acumatica/getOrderShipmentInternational.js +23 -0
- package/dist/repositories/acumatica/getOrderShipmentInternational.js.map +1 -0
- package/dist/repositories/acumatica/index.d.ts +40 -40
- package/dist/repositories/acumatica/index.js +67 -0
- package/dist/repositories/acumatica/index.js.map +1 -0
- package/dist/repositories/aempToken/createAempToken.d.ts +5 -5
- package/dist/repositories/aempToken/createAempToken.js +27 -0
- package/dist/repositories/aempToken/createAempToken.js.map +1 -0
- package/dist/repositories/aempToken/deleteAempTokens.d.ts +4 -4
- package/dist/repositories/aempToken/deleteAempTokens.js +31 -0
- package/dist/repositories/aempToken/deleteAempTokens.js.map +1 -0
- package/dist/repositories/aempToken/getAempTokens.d.ts +5 -5
- package/dist/repositories/aempToken/getAempTokens.js +35 -0
- package/dist/repositories/aempToken/getAempTokens.js.map +1 -0
- package/dist/repositories/aempToken/index.d.ts +33 -33
- package/dist/repositories/aempToken/index.js +54 -0
- package/dist/repositories/aempToken/index.js.map +1 -0
- package/dist/repositories/alertTypes/getAlertTypes.d.ts +4 -4
- package/dist/repositories/alertTypes/getAlertTypes.js +19 -0
- package/dist/repositories/alertTypes/getAlertTypes.js.map +1 -0
- package/dist/repositories/alertTypes/index.d.ts +6 -6
- package/dist/repositories/alertTypes/index.js +19 -0
- package/dist/repositories/alertTypes/index.js.map +1 -0
- package/dist/repositories/alerts/createAlert.d.ts +6 -6
- package/dist/repositories/alerts/createAlert.js +99 -0
- package/dist/repositories/alerts/createAlert.js.map +1 -0
- package/dist/repositories/alerts/createUserAlertComplain.d.ts +4 -4
- package/dist/repositories/alerts/createUserAlertComplain.js +27 -0
- package/dist/repositories/alerts/createUserAlertComplain.js.map +1 -0
- package/dist/repositories/alerts/getAlertsReportByClient.d.ts +7 -7
- package/dist/repositories/alerts/getAlertsReportByClient.js +70 -0
- package/dist/repositories/alerts/getAlertsReportByClient.js.map +1 -0
- package/dist/repositories/alerts/getAlertsReportByUser.d.ts +4 -4
- package/dist/repositories/alerts/getAlertsReportByUser.js +132 -0
- package/dist/repositories/alerts/getAlertsReportByUser.js.map +1 -0
- package/dist/repositories/alerts/index.d.ts +78 -78
- package/dist/repositories/alerts/index.js +105 -0
- package/dist/repositories/alerts/index.js.map +1 -0
- package/dist/repositories/appFeatures/createAppFeatureType.d.ts +5 -5
- package/dist/repositories/appFeatures/createAppFeatureType.js +16 -0
- package/dist/repositories/appFeatures/createAppFeatureType.js.map +1 -0
- package/dist/repositories/appFeatures/createClientAppFeature.d.ts +5 -5
- package/dist/repositories/appFeatures/createClientAppFeature.js +16 -0
- package/dist/repositories/appFeatures/createClientAppFeature.js.map +1 -0
- package/dist/repositories/appFeatures/getClientAppFeatures.d.ts +5 -5
- package/dist/repositories/appFeatures/getClientAppFeatures.js +45 -0
- package/dist/repositories/appFeatures/getClientAppFeatures.js.map +1 -0
- package/dist/repositories/appFeatures/index.d.ts +37 -37
- package/dist/repositories/appFeatures/index.js +58 -0
- package/dist/repositories/appFeatures/index.js.map +1 -0
- package/dist/repositories/assetCategories/getAssetCategories.d.ts +3 -3
- package/dist/repositories/assetCategories/getAssetCategories.js +19 -0
- package/dist/repositories/assetCategories/getAssetCategories.js.map +1 -0
- package/dist/repositories/assetCategories/index.d.ts +9 -9
- package/dist/repositories/assetCategories/index.js +17 -0
- package/dist/repositories/assetCategories/index.js.map +1 -0
- package/dist/repositories/baseRepository.d.ts +21 -21
- package/dist/repositories/baseRepository.js +24 -0
- package/dist/repositories/baseRepository.js.map +1 -0
- package/dist/repositories/billing/createBilling.d.ts +5 -5
- package/dist/repositories/billing/createBilling.js +38 -0
- package/dist/repositories/billing/createBilling.js.map +1 -0
- package/dist/repositories/billing/createBillingDeviceHistory.d.ts +5 -5
- package/dist/repositories/billing/createBillingDeviceHistory.js +31 -0
- package/dist/repositories/billing/createBillingDeviceHistory.js.map +1 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.d.ts +5 -5
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js +62 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js.map +1 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.d.ts +5 -5
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +33 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js.map +1 -0
- package/dist/repositories/billing/getBillingCustomerBraintreeById.d.ts +5 -5
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js +24 -0
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js.map +1 -0
- package/dist/repositories/billing/getBillingDeviceTypePlans.d.ts +5 -5
- package/dist/repositories/billing/getBillingDeviceTypePlans.js +22 -0
- package/dist/repositories/billing/getBillingDeviceTypePlans.js.map +1 -0
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.d.ts +5 -5
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +24 -0
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js.map +1 -0
- package/dist/repositories/billing/getBillingPlans.d.ts +4 -4
- package/dist/repositories/billing/getBillingPlans.js +68 -0
- package/dist/repositories/billing/getBillingPlans.js.map +1 -0
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.d.ts +5 -5
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +24 -0
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js.map +1 -0
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.d.ts +5 -5
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +31 -0
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js.map +1 -0
- package/dist/repositories/billing/getBillings.d.ts +5 -5
- package/dist/repositories/billing/getBillings.js +48 -0
- package/dist/repositories/billing/getBillings.js.map +1 -0
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.d.ts +4 -4
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js +49 -0
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js.map +1 -0
- package/dist/repositories/billing/getCanceledImeis.d.ts +4 -4
- package/dist/repositories/billing/getCanceledImeis.js +95 -0
- package/dist/repositories/billing/getCanceledImeis.js.map +1 -0
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.d.ts +4 -4
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +114 -0
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js.map +1 -0
- package/dist/repositories/billing/getChurnStatusByClientId.d.ts +4 -4
- package/dist/repositories/billing/getChurnStatusByClientId.js +37 -0
- package/dist/repositories/billing/getChurnStatusByClientId.js.map +1 -0
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.d.ts +4 -4
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +26 -0
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js.map +1 -0
- package/dist/repositories/billing/getMagentoPlan.d.ts +5 -5
- package/dist/repositories/billing/getMagentoPlan.js +27 -0
- package/dist/repositories/billing/getMagentoPlan.js.map +1 -0
- package/dist/repositories/billing/getUserByBraintreeCustomerId.d.ts +5 -5
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js +28 -0
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js.map +1 -0
- package/dist/repositories/billing/index.d.ts +243 -243
- package/dist/repositories/billing/index.js +425 -0
- package/dist/repositories/billing/index.js.map +1 -0
- package/dist/repositories/billing/updateBilling.d.ts +4 -4
- package/dist/repositories/billing/updateBilling.js +44 -0
- package/dist/repositories/billing/updateBilling.js.map +1 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.d.ts +4 -4
- package/dist/repositories/billing/updateBillingCustomerBraintree.js +38 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.js.map +1 -0
- package/dist/repositories/billing/upsertBillingCustomerBraintree.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js +49 -0
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js.map +1 -0
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js +67 -0
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js.map +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +53 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js.map +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js +59 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js.map +1 -0
- package/dist/repositories/billing/upsertBillingPlans.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingPlans.js +54 -0
- package/dist/repositories/billing/upsertBillingPlans.js.map +1 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.d.ts +4 -4
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +21 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js.map +1 -0
- package/dist/repositories/blacklist/deleteBlackList.d.ts +4 -4
- package/dist/repositories/blacklist/deleteBlackList.js +20 -0
- package/dist/repositories/blacklist/deleteBlackList.js.map +1 -0
- package/dist/repositories/blacklist/getBlacklists.d.ts +5 -5
- package/dist/repositories/blacklist/getBlacklists.js +25 -0
- package/dist/repositories/blacklist/getBlacklists.js.map +1 -0
- package/dist/repositories/blacklist/index.d.ts +43 -43
- package/dist/repositories/blacklist/index.js +71 -0
- package/dist/repositories/blacklist/index.js.map +1 -0
- package/dist/repositories/blacklist/updateBlackList.d.ts +4 -4
- package/dist/repositories/blacklist/updateBlackList.js +31 -0
- package/dist/repositories/blacklist/updateBlackList.js.map +1 -0
- package/dist/repositories/blacklist/upsertBlackList.d.ts +5 -5
- package/dist/repositories/blacklist/upsertBlackList.js +41 -0
- package/dist/repositories/blacklist/upsertBlackList.js.map +1 -0
- package/dist/repositories/bleMesh/addBeaconsToBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/addBeaconsToBLEMesh.js +22 -0
- package/dist/repositories/bleMesh/addBeaconsToBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js +38 -0
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/createBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/createBLEMesh.js +19 -0
- package/dist/repositories/bleMesh/createBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.d.ts +5 -5
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js +47 -0
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js.map +1 -0
- package/dist/repositories/bleMesh/getBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getBLEMeshes.js +46 -0
- package/dist/repositories/bleMesh/getBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.d.ts +4 -4
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js +56 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js.map +1 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js +50 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/index.d.ts +130 -130
- package/dist/repositories/bleMesh/index.js +221 -0
- package/dist/repositories/bleMesh/index.js.map +1 -0
- package/dist/repositories/bleMesh/removeBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBLEMesh.js +22 -0
- package/dist/repositories/bleMesh/removeBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js +24 -0
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js +25 -0
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateBLEMesh.js +32 -0
- package/dist/repositories/bleMesh/updateBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js +30 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.d.ts +4 -4
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js +27 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.d.ts +5 -5
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js +19 -0
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.d.ts +4 -4
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js +17 -0
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.d.ts +5 -5
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js +29 -0
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/index.d.ts +46 -46
- package/dist/repositories/bleMeshConfiguration/index.js +74 -0
- package/dist/repositories/bleMeshConfiguration/index.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.d.ts +4 -4
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js +31 -0
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/boundaries/createBoundary.d.ts +5 -5
- package/dist/repositories/boundaries/createBoundary.js +53 -0
- package/dist/repositories/boundaries/createBoundary.js.map +1 -0
- package/dist/repositories/boundaries/deleteBoundary.d.ts +4 -4
- package/dist/repositories/boundaries/deleteBoundary.js +24 -0
- package/dist/repositories/boundaries/deleteBoundary.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesByClientId.d.ts +5 -5
- package/dist/repositories/boundaries/getBoundariesByClientId.js +54 -0
- package/dist/repositories/boundaries/getBoundariesByClientId.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +24 -0
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesReport.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundariesReport.js +147 -0
- package/dist/repositories/boundaries/getBoundariesReport.js.map +1 -0
- package/dist/repositories/boundaries/getBoundaryById.d.ts +5 -5
- package/dist/repositories/boundaries/getBoundaryById.js +23 -0
- package/dist/repositories/boundaries/getBoundaryById.js.map +1 -0
- package/dist/repositories/boundaries/index.d.ts +106 -106
- package/dist/repositories/boundaries/index.js +179 -0
- package/dist/repositories/boundaries/index.js.map +1 -0
- package/dist/repositories/boundaries/processBoundaryEvent.d.ts +4 -4
- package/dist/repositories/boundaries/processBoundaryEvent.js +212 -0
- package/dist/repositories/boundaries/processBoundaryEvent.js.map +1 -0
- package/dist/repositories/boundaries/updateBoundary.d.ts +4 -4
- package/dist/repositories/boundaries/updateBoundary.js +54 -0
- package/dist/repositories/boundaries/updateBoundary.js.map +1 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.d.ts +4 -4
- package/dist/repositories/boundaries/upsertBoundaryEvent.js +24 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.d.ts +5 -5
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js +25 -0
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js +25 -0
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.d.ts +5 -5
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js +44 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js +40 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js +73 -0
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/index.d.ts +13 -13
- package/dist/repositories/clientAlertConfiguration/index.js +139 -0
- package/dist/repositories/clientAlertConfiguration/index.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js +51 -0
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js +175 -0
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js +43 -0
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clients/createClient.d.ts +5 -5
- package/dist/repositories/clients/createClient.js +36 -0
- package/dist/repositories/clients/createClient.js.map +1 -0
- package/dist/repositories/clients/createClientConfiguration.d.ts +5 -5
- package/dist/repositories/clients/createClientConfiguration.js +21 -0
- package/dist/repositories/clients/createClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/createClientIngestorConfiguration.d.ts +5 -5
- package/dist/repositories/clients/createClientIngestorConfiguration.js +21 -0
- package/dist/repositories/clients/createClientIngestorConfiguration.js.map +1 -0
- package/dist/repositories/clients/createCustomerAttribute.d.ts +5 -5
- package/dist/repositories/clients/createCustomerAttribute.js +22 -0
- package/dist/repositories/clients/createCustomerAttribute.js.map +1 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.d.ts +4 -4
- package/dist/repositories/clients/deleteClientAndConfiguration.js +26 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.js.map +1 -0
- package/dist/repositories/clients/getClient.d.ts +5 -5
- package/dist/repositories/clients/getClient.js +38 -0
- package/dist/repositories/clients/getClient.js.map +1 -0
- package/dist/repositories/clients/getClientConfiguration.d.ts +5 -5
- package/dist/repositories/clients/getClientConfiguration.js +31 -0
- package/dist/repositories/clients/getClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/getClientIngestorConfigurations.d.ts +4 -4
- package/dist/repositories/clients/getClientIngestorConfigurations.js +25 -0
- package/dist/repositories/clients/getClientIngestorConfigurations.js.map +1 -0
- package/dist/repositories/clients/getClients.d.ts +5 -5
- package/dist/repositories/clients/getClients.js +32 -0
- package/dist/repositories/clients/getClients.js.map +1 -0
- package/dist/repositories/clients/getCustomerAttribute.d.ts +5 -5
- package/dist/repositories/clients/getCustomerAttribute.js +23 -0
- package/dist/repositories/clients/getCustomerAttribute.js.map +1 -0
- package/dist/repositories/clients/index.d.ts +138 -138
- package/dist/repositories/clients/index.js +228 -0
- package/dist/repositories/clients/index.js.map +1 -0
- package/dist/repositories/clients/updateClient.d.ts +4 -4
- package/dist/repositories/clients/updateClient.js +53 -0
- package/dist/repositories/clients/updateClient.js.map +1 -0
- package/dist/repositories/clients/updateClientConfiguration.d.ts +4 -4
- package/dist/repositories/clients/updateClientConfiguration.js +29 -0
- package/dist/repositories/clients/updateClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/updateCustomerAttribute.d.ts +4 -4
- package/dist/repositories/clients/updateCustomerAttribute.js +27 -0
- package/dist/repositories/clients/updateCustomerAttribute.js.map +1 -0
- package/dist/repositories/countries/getCountries.d.ts +4 -4
- package/dist/repositories/countries/getCountries.js +20 -0
- package/dist/repositories/countries/getCountries.js.map +1 -0
- package/dist/repositories/countries/getCountry.d.ts +5 -5
- package/dist/repositories/countries/getCountry.js +29 -0
- package/dist/repositories/countries/getCountry.js.map +1 -0
- package/dist/repositories/countries/index.d.ts +20 -20
- package/dist/repositories/countries/index.js +34 -0
- package/dist/repositories/countries/index.js.map +1 -0
- package/dist/repositories/dataExports/createDataExports.d.ts +5 -5
- package/dist/repositories/dataExports/createDataExports.js +32 -0
- package/dist/repositories/dataExports/createDataExports.js.map +1 -0
- package/dist/repositories/dataExports/getDataExports.d.ts +4 -4
- package/dist/repositories/dataExports/getDataExports.js +47 -0
- package/dist/repositories/dataExports/getDataExports.js.map +1 -0
- package/dist/repositories/dataExports/index.d.ts +38 -38
- package/dist/repositories/dataExports/index.js +59 -0
- package/dist/repositories/dataExports/index.js.map +1 -0
- package/dist/repositories/dataExports/updateDataExports.d.ts +4 -4
- package/dist/repositories/dataExports/updateDataExports.js +26 -0
- package/dist/repositories/dataExports/updateDataExports.js.map +1 -0
- package/dist/repositories/deactivations/createDeactivation.d.ts +5 -5
- package/dist/repositories/deactivations/createDeactivation.js +17 -0
- package/dist/repositories/deactivations/createDeactivation.js.map +1 -0
- package/dist/repositories/deactivations/getDeactivationReasons.d.ts +5 -5
- package/dist/repositories/deactivations/getDeactivationReasons.js +30 -0
- package/dist/repositories/deactivations/getDeactivationReasons.js.map +1 -0
- package/dist/repositories/deactivations/getLatestDeactivationByImei.d.ts +5 -5
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js +25 -0
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js.map +1 -0
- package/dist/repositories/deactivations/index.d.ts +38 -38
- package/dist/repositories/deactivations/index.js +59 -0
- package/dist/repositories/deactivations/index.js.map +1 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +49 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +46 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +47 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +22 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js.map +1 -0
- package/dist/repositories/deviceBehaviors/index.d.ts +70 -70
- package/dist/repositories/deviceBehaviors/index.js +112 -0
- package/dist/repositories/deviceBehaviors/index.js.map +1 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.d.ts +4 -4
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +28 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js.map +1 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +21 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js.map +1 -0
- package/dist/repositories/devicePairings/createDevicePairing.d.ts +5 -5
- package/dist/repositories/devicePairings/createDevicePairing.js +22 -0
- package/dist/repositories/devicePairings/createDevicePairing.js.map +1 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.d.ts +4 -4
- package/dist/repositories/devicePairings/deleteDevicePairing.js +17 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairings.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairings.js +42 -0
- package/dist/repositories/devicePairings/getDevicePairings.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js +28 -0
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairingsByImei.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js +26 -0
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js.map +1 -0
- package/dist/repositories/devicePairings/index.d.ts +65 -65
- package/dist/repositories/devicePairings/index.js +107 -0
- package/dist/repositories/devicePairings/index.js.map +1 -0
- package/dist/repositories/devicePairings/updateDevicePairing.d.ts +4 -4
- package/dist/repositories/devicePairings/updateDevicePairing.js +36 -0
- package/dist/repositories/devicePairings/updateDevicePairing.js.map +1 -0
- package/dist/repositories/deviceStatus/extendedDeviceStatus.d.ts +12 -12
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js +207 -0
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js.map +1 -0
- package/dist/repositories/deviceStatus/getDeviceStatuses.d.ts +4 -4
- package/dist/repositories/deviceStatus/getDeviceStatuses.js +88 -0
- package/dist/repositories/deviceStatus/getDeviceStatuses.js.map +1 -0
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.d.ts +4 -4
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js +42 -0
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js.map +1 -0
- package/dist/repositories/deviceStatus/index.d.ts +35 -35
- package/dist/repositories/deviceStatus/index.js +63 -0
- package/dist/repositories/deviceStatus/index.js.map +1 -0
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.d.ts +4 -4
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js +47 -0
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.d.ts +5 -5
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js +20 -0
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js +22 -0
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js +25 -0
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/index.d.ts +27 -27
- package/dist/repositories/deviceTypeFeature/index.js +48 -0
- package/dist/repositories/deviceTypeFeature/index.js.map +1 -0
- package/dist/repositories/devices/addDeviceChangesHistory.d.ts +5 -5
- package/dist/repositories/devices/addDeviceChangesHistory.js +35 -0
- package/dist/repositories/devices/addDeviceChangesHistory.js.map +1 -0
- package/dist/repositories/devices/allImeisAreActiveForClient.d.ts +4 -4
- package/dist/repositories/devices/allImeisAreActiveForClient.js +30 -0
- package/dist/repositories/devices/allImeisAreActiveForClient.js.map +1 -0
- package/dist/repositories/devices/createClientDeviceSetting.d.ts +5 -5
- package/dist/repositories/devices/createClientDeviceSetting.js +27 -0
- package/dist/repositories/devices/createClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/createDevice.d.ts +5 -5
- package/dist/repositories/devices/createDevice.js +31 -0
- package/dist/repositories/devices/createDevice.js.map +1 -0
- package/dist/repositories/devices/createDeviceReplacement.d.ts +5 -5
- package/dist/repositories/devices/createDeviceReplacement.js +35 -0
- package/dist/repositories/devices/createDeviceReplacement.js.map +1 -0
- package/dist/repositories/devices/createDeviceType.d.ts +5 -5
- package/dist/repositories/devices/createDeviceType.js +16 -0
- package/dist/repositories/devices/createDeviceType.js.map +1 -0
- package/dist/repositories/devices/createImeiIccidCarrier.d.ts +5 -5
- package/dist/repositories/devices/createImeiIccidCarrier.js +19 -0
- package/dist/repositories/devices/createImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/deleteDevice.d.ts +4 -4
- package/dist/repositories/devices/deleteDevice.js +17 -0
- package/dist/repositories/devices/deleteDevice.js.map +1 -0
- package/dist/repositories/devices/generateDeviceIdentifierKey.d.ts +4 -4
- package/dist/repositories/devices/generateDeviceIdentifierKey.js +19 -0
- package/dist/repositories/devices/generateDeviceIdentifierKey.js.map +1 -0
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.d.ts +4 -4
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +50 -0
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js.map +1 -0
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.d.ts +4 -4
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +46 -0
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js.map +1 -0
- package/dist/repositories/devices/getClientDeviceSetting.d.ts +5 -5
- package/dist/repositories/devices/getClientDeviceSetting.js +26 -0
- package/dist/repositories/devices/getClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/getClientDeviceSettings.d.ts +5 -5
- package/dist/repositories/devices/getClientDeviceSettings.js +23 -0
- package/dist/repositories/devices/getClientDeviceSettings.js.map +1 -0
- package/dist/repositories/devices/getDevice.d.ts +5 -5
- package/dist/repositories/devices/getDevice.js +39 -0
- package/dist/repositories/devices/getDevice.js.map +1 -0
- package/dist/repositories/devices/getDeviceChangesHistory.d.ts +5 -5
- package/dist/repositories/devices/getDeviceChangesHistory.js +28 -0
- package/dist/repositories/devices/getDeviceChangesHistory.js.map +1 -0
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.d.ts +4 -4
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js +24 -0
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js.map +1 -0
- package/dist/repositories/devices/getDeviceCustomConfig.d.ts +5 -5
- package/dist/repositories/devices/getDeviceCustomConfig.js +43 -0
- package/dist/repositories/devices/getDeviceCustomConfig.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypeByImei.d.ts +5 -5
- package/dist/repositories/devices/getDeviceTypeByImei.js +24 -0
- package/dist/repositories/devices/getDeviceTypeByImei.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypes.d.ts +4 -4
- package/dist/repositories/devices/getDeviceTypes.js +53 -0
- package/dist/repositories/devices/getDeviceTypes.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -3
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +33 -0
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js.map +1 -0
- package/dist/repositories/devices/getDeviceWithUsersInfo.d.ts +4 -4
- package/dist/repositories/devices/getDeviceWithUsersInfo.js +65 -0
- package/dist/repositories/devices/getDeviceWithUsersInfo.js.map +1 -0
- package/dist/repositories/devices/getDevices.d.ts +5 -5
- package/dist/repositories/devices/getDevices.js +95 -0
- package/dist/repositories/devices/getDevices.js.map +1 -0
- package/dist/repositories/devices/getDevicesCountByStatus.d.ts +4 -4
- package/dist/repositories/devices/getDevicesCountByStatus.js +34 -0
- package/dist/repositories/devices/getDevicesCountByStatus.js.map +1 -0
- package/dist/repositories/devices/getFilteredImeisWithStatus.d.ts +4 -4
- package/dist/repositories/devices/getFilteredImeisWithStatus.js +26 -0
- package/dist/repositories/devices/getFilteredImeisWithStatus.js.map +1 -0
- package/dist/repositories/devices/getIccidStatus.d.ts +5 -5
- package/dist/repositories/devices/getIccidStatus.js +23 -0
- package/dist/repositories/devices/getIccidStatus.js.map +1 -0
- package/dist/repositories/devices/getImeiIccidCarrier.d.ts +5 -5
- package/dist/repositories/devices/getImeiIccidCarrier.js +29 -0
- package/dist/repositories/devices/getImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/getImeiIccidCarriers.d.ts +5 -5
- package/dist/repositories/devices/getImeiIccidCarriers.js +23 -0
- package/dist/repositories/devices/getImeiIccidCarriers.js.map +1 -0
- package/dist/repositories/devices/getServiceProviderProduct.d.ts +5 -5
- package/dist/repositories/devices/getServiceProviderProduct.js +23 -0
- package/dist/repositories/devices/getServiceProviderProduct.js.map +1 -0
- package/dist/repositories/devices/index.d.ts +331 -331
- package/dist/repositories/devices/index.js +563 -0
- package/dist/repositories/devices/index.js.map +1 -0
- package/dist/repositories/devices/updateClientDeviceSetting.d.ts +4 -4
- package/dist/repositories/devices/updateClientDeviceSetting.js +41 -0
- package/dist/repositories/devices/updateClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/updateDevice.d.ts +4 -4
- package/dist/repositories/devices/updateDevice.js +47 -0
- package/dist/repositories/devices/updateDevice.js.map +1 -0
- package/dist/repositories/devices/updateDeviceType.d.ts +4 -4
- package/dist/repositories/devices/updateDeviceType.js +44 -0
- package/dist/repositories/devices/updateDeviceType.js.map +1 -0
- package/dist/repositories/devices/updateIccidStatus.d.ts +4 -4
- package/dist/repositories/devices/updateIccidStatus.js +29 -0
- package/dist/repositories/devices/updateIccidStatus.js.map +1 -0
- package/dist/repositories/devices/updateImeiIccidCarrier.d.ts +4 -4
- package/dist/repositories/devices/updateImeiIccidCarrier.js +44 -0
- package/dist/repositories/devices/updateImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/upsertDeviceCustomConfig.d.ts +4 -4
- package/dist/repositories/devices/upsertDeviceCustomConfig.js +15 -0
- package/dist/repositories/devices/upsertDeviceCustomConfig.js.map +1 -0
- package/dist/repositories/devices/upsertIccidStatus.d.ts +4 -4
- package/dist/repositories/devices/upsertIccidStatus.js +37 -0
- package/dist/repositories/devices/upsertIccidStatus.js.map +1 -0
- package/dist/repositories/entityTags/bulkCreateEntityTag.d.ts +5 -5
- package/dist/repositories/entityTags/bulkCreateEntityTag.js +21 -0
- package/dist/repositories/entityTags/bulkCreateEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/bulkDeleteEntityTag.d.ts +4 -4
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js +28 -0
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/createEntityTag.d.ts +5 -5
- package/dist/repositories/entityTags/createEntityTag.js +20 -0
- package/dist/repositories/entityTags/createEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/deleteEntityTag.d.ts +4 -4
- package/dist/repositories/entityTags/deleteEntityTag.js +22 -0
- package/dist/repositories/entityTags/deleteEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/deleteEntityTagById.d.ts +3 -3
- package/dist/repositories/entityTags/deleteEntityTagById.js +13 -0
- package/dist/repositories/entityTags/deleteEntityTagById.js.map +1 -0
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.d.ts +4 -4
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js +38 -0
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js.map +1 -0
- package/dist/repositories/entityTags/getEntityTagById.d.ts +5 -5
- package/dist/repositories/entityTags/getEntityTagById.js +23 -0
- package/dist/repositories/entityTags/getEntityTagById.js.map +1 -0
- package/dist/repositories/entityTags/index.d.ts +48 -48
- package/dist/repositories/entityTags/index.js +104 -0
- package/dist/repositories/entityTags/index.js.map +1 -0
- package/dist/repositories/entityTags/searchEntityTags.d.ts +4 -4
- package/dist/repositories/entityTags/searchEntityTags.js +46 -0
- package/dist/repositories/entityTags/searchEntityTags.js.map +1 -0
- package/dist/repositories/features/createFeature.d.ts +5 -5
- package/dist/repositories/features/createFeature.js +21 -0
- package/dist/repositories/features/createFeature.js.map +1 -0
- package/dist/repositories/features/deleteFeature.d.ts +4 -4
- package/dist/repositories/features/deleteFeature.js +17 -0
- package/dist/repositories/features/deleteFeature.js.map +1 -0
- package/dist/repositories/features/getFeatures.d.ts +4 -4
- package/dist/repositories/features/getFeatures.js +25 -0
- package/dist/repositories/features/getFeatures.js.map +1 -0
- package/dist/repositories/features/index.d.ts +33 -33
- package/dist/repositories/features/index.js +61 -0
- package/dist/repositories/features/index.js.map +1 -0
- package/dist/repositories/features/upsertFeature.d.ts +4 -4
- package/dist/repositories/features/upsertFeature.js +23 -0
- package/dist/repositories/features/upsertFeature.js.map +1 -0
- package/dist/repositories/firmwares/createDeviceFirmware.d.ts +5 -5
- package/dist/repositories/firmwares/createDeviceFirmware.js +38 -0
- package/dist/repositories/firmwares/createDeviceFirmware.js.map +1 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +17 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.d.ts +5 -5
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +37 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js.map +1 -0
- package/dist/repositories/firmwares/getDeviceFirmwares.d.ts +4 -4
- package/dist/repositories/firmwares/getDeviceFirmwares.js +29 -0
- package/dist/repositories/firmwares/getDeviceFirmwares.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +29 -0
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.d.ts +5 -5
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +111 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.d.ts +4 -4
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +62 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js.map +1 -0
- package/dist/repositories/firmwares/index.d.ts +132 -132
- package/dist/repositories/firmwares/index.js +195 -0
- package/dist/repositories/firmwares/index.js.map +1 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.d.ts +4 -4
- package/dist/repositories/firmwares/updateDeviceFirmware.js +42 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.js.map +1 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.d.ts +4 -4
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +38 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js.map +1 -0
- package/dist/repositories/index.d.ts +43 -43
- package/dist/repositories/index.js +44 -0
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.d.ts +5 -5
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js +27 -0
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/index.d.ts +23 -23
- package/dist/repositories/latestUserAppInfo/index.js +37 -0
- package/dist/repositories/latestUserAppInfo/index.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.d.ts +4 -4
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js +29 -0
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js.map +1 -0
- package/dist/repositories/liveLinks/createLiveLink.d.ts +5 -5
- package/dist/repositories/liveLinks/createLiveLink.js +30 -0
- package/dist/repositories/liveLinks/createLiveLink.js.map +1 -0
- package/dist/repositories/liveLinks/getLiveLinkData.d.ts +5 -5
- package/dist/repositories/liveLinks/getLiveLinkData.js +105 -0
- package/dist/repositories/liveLinks/getLiveLinkData.js.map +1 -0
- package/dist/repositories/liveLinks/getLiveLinkDataCount.d.ts +5 -5
- package/dist/repositories/liveLinks/getLiveLinkDataCount.js +49 -0
- package/dist/repositories/liveLinks/getLiveLinkDataCount.js.map +1 -0
- package/dist/repositories/liveLinks/getLiveLinks.d.ts +5 -5
- package/dist/repositories/liveLinks/getLiveLinks.js +60 -0
- package/dist/repositories/liveLinks/getLiveLinks.js.map +1 -0
- package/dist/repositories/liveLinks/getLiveLinksCount.d.ts +4 -4
- package/dist/repositories/liveLinks/getLiveLinksCount.js +38 -0
- package/dist/repositories/liveLinks/getLiveLinksCount.js.map +1 -0
- package/dist/repositories/liveLinks/index.d.ts +80 -80
- package/dist/repositories/liveLinks/index.js +124 -0
- package/dist/repositories/liveLinks/index.js.map +1 -0
- package/dist/repositories/liveLinks/updateLiveLink.d.ts +4 -4
- package/dist/repositories/liveLinks/updateLiveLink.js +36 -0
- package/dist/repositories/liveLinks/updateLiveLink.js.map +1 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.d.ts +5 -5
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js +39 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js.map +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.d.ts +4 -4
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +32 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js.map +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.d.ts +4 -4
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +29 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js.map +1 -0
- package/dist/repositories/notificationRecipients/getNotificationRecipients.d.ts +5 -5
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js +36 -0
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js.map +1 -0
- package/dist/repositories/notificationRecipients/index.d.ts +83 -83
- package/dist/repositories/notificationRecipients/index.js +132 -0
- package/dist/repositories/notificationRecipients/index.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +38 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +99 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +36 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js.map +1 -0
- package/dist/repositories/positions/createPosition.d.ts +6 -6
- package/dist/repositories/positions/createPosition.js +103 -0
- package/dist/repositories/positions/createPosition.js.map +1 -0
- package/dist/repositories/positions/getBatteryReportForDevice.d.ts +4 -4
- package/dist/repositories/positions/getBatteryReportForDevice.js +47 -0
- package/dist/repositories/positions/getBatteryReportForDevice.js.map +1 -0
- package/dist/repositories/positions/getLatestPositionByImei.d.ts +5 -5
- package/dist/repositories/positions/getLatestPositionByImei.js +33 -0
- package/dist/repositories/positions/getLatestPositionByImei.js.map +1 -0
- package/dist/repositories/positions/getPositionsByImei.d.ts +5 -5
- package/dist/repositories/positions/getPositionsByImei.js +30 -0
- package/dist/repositories/positions/getPositionsByImei.js.map +1 -0
- package/dist/repositories/positions/getPositionsReportByClient.d.ts +4 -4
- package/dist/repositories/positions/getPositionsReportByClient.js +96 -0
- package/dist/repositories/positions/getPositionsReportByClient.js.map +1 -0
- package/dist/repositories/positions/index.d.ts +69 -69
- package/dist/repositories/positions/index.js +110 -0
- package/dist/repositories/positions/index.js.map +1 -0
- package/dist/repositories/positions/mapping/mapToPositionReport.d.ts +5 -5
- package/dist/repositories/positions/mapping/mapToPositionReport.js +21 -0
- package/dist/repositories/positions/mapping/mapToPositionReport.js.map +1 -0
- package/dist/repositories/positions/upsertLatestPosition.d.ts +4 -4
- package/dist/repositories/positions/upsertLatestPosition.js +42 -0
- package/dist/repositories/positions/upsertLatestPosition.js.map +1 -0
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.d.ts +5 -5
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js +15 -0
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.d.ts +5 -5
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js +15 -0
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/createPromotion.d.ts +5 -5
- package/dist/repositories/promotions/createPromotion.js +30 -0
- package/dist/repositories/promotions/createPromotion.js.map +1 -0
- package/dist/repositories/promotions/createPromotionHistory.d.ts +5 -5
- package/dist/repositories/promotions/createPromotionHistory.js +18 -0
- package/dist/repositories/promotions/createPromotionHistory.js.map +1 -0
- package/dist/repositories/promotions/deleteDeviceTypePromotion.d.ts +4 -4
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js +22 -0
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/deleteMarketplacePromotion.d.ts +4 -4
- package/dist/repositories/promotions/deleteMarketplacePromotion.js +24 -0
- package/dist/repositories/promotions/deleteMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/getDeviceTypePromotion.d.ts +5 -5
- package/dist/repositories/promotions/getDeviceTypePromotion.js +28 -0
- package/dist/repositories/promotions/getDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/getMarketplacePromotion.d.ts +5 -5
- package/dist/repositories/promotions/getMarketplacePromotion.js +28 -0
- package/dist/repositories/promotions/getMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/getPromotions.d.ts +5 -5
- package/dist/repositories/promotions/getPromotions.js +64 -0
- package/dist/repositories/promotions/getPromotions.js.map +1 -0
- package/dist/repositories/promotions/index.d.ts +72 -72
- package/dist/repositories/promotions/index.js +140 -0
- package/dist/repositories/promotions/index.js.map +1 -0
- package/dist/repositories/promotions/promotionValidator.d.ts +3 -3
- package/dist/repositories/promotions/promotionValidator.js +17 -0
- package/dist/repositories/promotions/promotionValidator.js.map +1 -0
- package/dist/repositories/promotions/updatePromotion.d.ts +4 -4
- package/dist/repositories/promotions/updatePromotion.js +36 -0
- package/dist/repositories/promotions/updatePromotion.js.map +1 -0
- package/dist/repositories/security/createUserRole.d.ts +5 -5
- package/dist/repositories/security/createUserRole.js +31 -0
- package/dist/repositories/security/createUserRole.js.map +1 -0
- package/dist/repositories/security/getAllRoles.d.ts +3 -3
- package/dist/repositories/security/getAllRoles.js +19 -0
- package/dist/repositories/security/getAllRoles.js.map +1 -0
- package/dist/repositories/security/getUserRoles.d.ts +5 -5
- package/dist/repositories/security/getUserRoles.js +24 -0
- package/dist/repositories/security/getUserRoles.js.map +1 -0
- package/dist/repositories/security/getUserRolesByClientId.d.ts +5 -5
- package/dist/repositories/security/getUserRolesByClientId.js +26 -0
- package/dist/repositories/security/getUserRolesByClientId.js.map +1 -0
- package/dist/repositories/security/index.d.ts +56 -56
- package/dist/repositories/security/index.js +112 -0
- package/dist/repositories/security/index.js.map +1 -0
- package/dist/repositories/security/removeUserRoles.d.ts +4 -4
- package/dist/repositories/security/removeUserRoles.js +22 -0
- package/dist/repositories/security/removeUserRoles.js.map +1 -0
- package/dist/repositories/security/updateUserRole.d.ts +4 -4
- package/dist/repositories/security/updateUserRole.js +28 -0
- package/dist/repositories/security/updateUserRole.js.map +1 -0
- package/dist/repositories/security/userIsAdminOrOwner.d.ts +4 -4
- package/dist/repositories/security/userIsAdminOrOwner.js +26 -0
- package/dist/repositories/security/userIsAdminOrOwner.js.map +1 -0
- package/dist/repositories/security/userIsInRole.d.ts +4 -4
- package/dist/repositories/security/userIsInRole.js +23 -0
- package/dist/repositories/security/userIsInRole.js.map +1 -0
- package/dist/repositories/tags/bulkCreateTags.d.ts +5 -5
- package/dist/repositories/tags/bulkCreateTags.js +25 -0
- package/dist/repositories/tags/bulkCreateTags.js.map +1 -0
- package/dist/repositories/tags/createTag.d.ts +5 -5
- package/dist/repositories/tags/createTag.js +21 -0
- package/dist/repositories/tags/createTag.js.map +1 -0
- package/dist/repositories/tags/deleteTag.d.ts +4 -4
- package/dist/repositories/tags/deleteTag.js +20 -0
- package/dist/repositories/tags/deleteTag.js.map +1 -0
- package/dist/repositories/tags/index.d.ts +41 -41
- package/dist/repositories/tags/index.js +83 -0
- package/dist/repositories/tags/index.js.map +1 -0
- package/dist/repositories/tags/searchTags.d.ts +4 -4
- package/dist/repositories/tags/searchTags.js +44 -0
- package/dist/repositories/tags/searchTags.js.map +1 -0
- package/dist/repositories/tags/searchTagsByUser.d.ts +4 -4
- package/dist/repositories/tags/searchTagsByUser.js +46 -0
- package/dist/repositories/tags/searchTagsByUser.js.map +1 -0
- package/dist/repositories/tags/updateTag.d.ts +4 -4
- package/dist/repositories/tags/updateTag.js +32 -0
- package/dist/repositories/tags/updateTag.js.map +1 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/addTaskScheduleDevices.js +38 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/completeTask.d.ts +4 -4
- package/dist/repositories/tasks/completeTask.js +35 -0
- package/dist/repositories/tasks/completeTask.js.map +1 -0
- package/dist/repositories/tasks/createTask.d.ts +5 -5
- package/dist/repositories/tasks/createTask.js +23 -0
- package/dist/repositories/tasks/createTask.js.map +1 -0
- package/dist/repositories/tasks/createTaskSchedule.d.ts +5 -5
- package/dist/repositories/tasks/createTaskSchedule.js +34 -0
- package/dist/repositories/tasks/createTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/deleteTask.d.ts +4 -4
- package/dist/repositories/tasks/deleteTask.js +23 -0
- package/dist/repositories/tasks/deleteTask.js.map +1 -0
- package/dist/repositories/tasks/deleteTaskSchedule.d.ts +4 -4
- package/dist/repositories/tasks/deleteTaskSchedule.js +23 -0
- package/dist/repositories/tasks/deleteTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js +18 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/getDeviceTasks.d.ts +5 -5
- package/dist/repositories/tasks/getDeviceTasks.js +34 -0
- package/dist/repositories/tasks/getDeviceTasks.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedule.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedule.js +43 -0
- package/dist/repositories/tasks/getTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedules.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedules.js +105 -0
- package/dist/repositories/tasks/getTaskSchedules.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedulesCount.d.ts +4 -4
- package/dist/repositories/tasks/getTaskSchedulesCount.js +42 -0
- package/dist/repositories/tasks/getTaskSchedulesCount.js.map +1 -0
- package/dist/repositories/tasks/getTasks.d.ts +5 -5
- package/dist/repositories/tasks/getTasks.js +94 -0
- package/dist/repositories/tasks/getTasks.js.map +1 -0
- package/dist/repositories/tasks/getTasksCount.d.ts +4 -4
- package/dist/repositories/tasks/getTasksCount.js +36 -0
- package/dist/repositories/tasks/getTasksCount.js.map +1 -0
- package/dist/repositories/tasks/index.d.ts +325 -325
- package/dist/repositories/tasks/index.js +444 -0
- package/dist/repositories/tasks/index.js.map +1 -0
- package/dist/repositories/tasks/setTaskAsPastDue.d.ts +4 -4
- package/dist/repositories/tasks/setTaskAsPastDue.js +24 -0
- package/dist/repositories/tasks/setTaskAsPastDue.js.map +1 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/setTaskScheduleDevices.js +44 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/updateTask.d.ts +4 -4
- package/dist/repositories/tasks/updateTask.js +22 -0
- package/dist/repositories/tasks/updateTask.js.map +1 -0
- package/dist/repositories/tasks/updateTaskSchedule.d.ts +4 -4
- package/dist/repositories/tasks/updateTaskSchedule.js +36 -0
- package/dist/repositories/tasks/updateTaskSchedule.js.map +1 -0
- package/dist/repositories/trips/createTrip.d.ts +5 -5
- package/dist/repositories/trips/createTrip.js +30 -0
- package/dist/repositories/trips/createTrip.js.map +1 -0
- package/dist/repositories/trips/getDeviceTripConfiguration.d.ts +4 -4
- package/dist/repositories/trips/getDeviceTripConfiguration.js +52 -0
- package/dist/repositories/trips/getDeviceTripConfiguration.js.map +1 -0
- package/dist/repositories/trips/getTripById.d.ts +4 -4
- package/dist/repositories/trips/getTripById.js +22 -0
- package/dist/repositories/trips/getTripById.js.map +1 -0
- package/dist/repositories/trips/getTrips.d.ts +4 -4
- package/dist/repositories/trips/getTrips.js +125 -0
- package/dist/repositories/trips/getTrips.js.map +1 -0
- package/dist/repositories/trips/index.d.ts +36 -36
- package/dist/repositories/trips/index.js +78 -0
- package/dist/repositories/trips/index.js.map +1 -0
- package/dist/repositories/trips/updateTripEndValues.d.ts +4 -4
- package/dist/repositories/trips/updateTripEndValues.js +37 -0
- package/dist/repositories/trips/updateTripEndValues.js.map +1 -0
- package/dist/repositories/trips/upsertTrip.d.ts +4 -4
- package/dist/repositories/trips/upsertTrip.js +32 -0
- package/dist/repositories/trips/upsertTrip.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivation.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivation.js +27 -0
- package/dist/repositories/userActivations/createUserActivation.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationDevice.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationDevice.js +36 -0
- package/dist/repositories/userActivations/createUserActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationEvent.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationEvent.js +35 -0
- package/dist/repositories/userActivations/createUserActivationEvent.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationMetric.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationMetric.js +29 -0
- package/dist/repositories/userActivations/createUserActivationMetric.js.map +1 -0
- package/dist/repositories/userActivations/deleteUserActivation.d.ts +4 -4
- package/dist/repositories/userActivations/deleteUserActivation.js +23 -0
- package/dist/repositories/userActivations/deleteUserActivation.js.map +1 -0
- package/dist/repositories/userActivations/getLastActivationDevice.d.ts +5 -5
- package/dist/repositories/userActivations/getLastActivationDevice.js +32 -0
- package/dist/repositories/userActivations/getLastActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationById.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationById.js +22 -0
- package/dist/repositories/userActivations/getUserActivationById.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationDevices.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationDevices.js +30 -0
- package/dist/repositories/userActivations/getUserActivationDevices.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +31 -0
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationMetrics.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationMetrics.js +30 -0
- package/dist/repositories/userActivations/getUserActivationMetrics.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivations.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivations.js +35 -0
- package/dist/repositories/userActivations/getUserActivations.js.map +1 -0
- package/dist/repositories/userActivations/index.d.ts +147 -147
- package/dist/repositories/userActivations/index.js +238 -0
- package/dist/repositories/userActivations/index.js.map +1 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.d.ts +4 -4
- package/dist/repositories/userActivations/updateUserActivationDevice.js +40 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.d.ts +4 -4
- package/dist/repositories/userActivations/updateUserActivationMetrics.js +62 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.js.map +1 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.d.ts +5 -5
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js +27 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js.map +1 -0
- package/dist/repositories/userAppFeedback/index.d.ts +17 -17
- package/dist/repositories/userAppFeedback/index.js +24 -0
- package/dist/repositories/userAppFeedback/index.js.map +1 -0
- package/dist/repositories/userAppIncidents/getUserAppIncidents.d.ts +5 -5
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js +34 -0
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js.map +1 -0
- package/dist/repositories/userAppIncidents/index.d.ts +50 -50
- package/dist/repositories/userAppIncidents/index.js +64 -0
- package/dist/repositories/userAppIncidents/index.js.map +1 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.d.ts +4 -4
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +54 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js.map +1 -0
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +46 -0
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.d.ts +5 -5
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js +34 -0
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.d.ts +5 -5
- package/dist/repositories/userConfigurations/createUserConfiguration.js +35 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +30 -0
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js +30 -0
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js +24 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +34 -0
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js +149 -0
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserConfigurations.js +37 -0
- package/dist/repositories/userConfigurations/getUserConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/index.d.ts +170 -170
- package/dist/repositories/userConfigurations/index.js +261 -0
- package/dist/repositories/userConfigurations/index.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +47 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js +53 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserConfiguration.js +50 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.d.ts +4 -4
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js +30 -0
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.d.ts +5 -5
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +29 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.d.ts +5 -5
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +35 -0
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/index.d.ts +39 -39
- package/dist/repositories/userDataDeletionRequests/index.js +67 -0
- package/dist/repositories/userDataDeletionRequests/index.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.d.ts +4 -4
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +18 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.d.ts +4 -4
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +39 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userInvitations/createUserInvitation.d.ts +5 -5
- package/dist/repositories/userInvitations/createUserInvitation.js +45 -0
- package/dist/repositories/userInvitations/createUserInvitation.js.map +1 -0
- package/dist/repositories/userInvitations/getUserInvitationById.d.ts +5 -5
- package/dist/repositories/userInvitations/getUserInvitationById.js +28 -0
- package/dist/repositories/userInvitations/getUserInvitationById.js.map +1 -0
- package/dist/repositories/userInvitations/getUserInvitations.d.ts +5 -5
- package/dist/repositories/userInvitations/getUserInvitations.js +56 -0
- package/dist/repositories/userInvitations/getUserInvitations.js.map +1 -0
- package/dist/repositories/userInvitations/index.d.ts +55 -55
- package/dist/repositories/userInvitations/index.js +83 -0
- package/dist/repositories/userInvitations/index.js.map +1 -0
- package/dist/repositories/userInvitations/updateUserInvitation.d.ts +4 -4
- package/dist/repositories/userInvitations/updateUserInvitation.js +53 -0
- package/dist/repositories/userInvitations/updateUserInvitation.js.map +1 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.d.ts +5 -5
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js +35 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js.map +1 -0
- package/dist/repositories/userRatingRequests/getUserRatingRequests.d.ts +5 -5
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js +29 -0
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js.map +1 -0
- package/dist/repositories/userRatingRequests/index.d.ts +28 -28
- package/dist/repositories/userRatingRequests/index.js +42 -0
- package/dist/repositories/userRatingRequests/index.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.d.ts +5 -5
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +41 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.d.ts +5 -5
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +35 -0
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/index.d.ts +50 -50
- package/dist/repositories/userRegistrationAttempts/index.js +71 -0
- package/dist/repositories/userRegistrationAttempts/index.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.d.ts +4 -4
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +41 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js.map +1 -0
- package/dist/repositories/users/createUser.d.ts +5 -5
- package/dist/repositories/users/createUser.js +48 -0
- package/dist/repositories/users/createUser.js.map +1 -0
- package/dist/repositories/users/deleteAccount.d.ts +4 -4
- package/dist/repositories/users/deleteAccount.js +99 -0
- package/dist/repositories/users/deleteAccount.js.map +1 -0
- package/dist/repositories/users/deleteUser.d.ts +4 -4
- package/dist/repositories/users/deleteUser.js +23 -0
- package/dist/repositories/users/deleteUser.js.map +1 -0
- package/dist/repositories/users/getUserById.d.ts +5 -5
- package/dist/repositories/users/getUserById.js +37 -0
- package/dist/repositories/users/getUserById.js.map +1 -0
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.d.ts +4 -4
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js +64 -0
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js.map +1 -0
- package/dist/repositories/users/getUserData.d.ts +4 -4
- package/dist/repositories/users/getUserData.js +70 -0
- package/dist/repositories/users/getUserData.js.map +1 -0
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.d.ts +4 -4
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js +88 -0
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js.map +1 -0
- package/dist/repositories/users/getUsers.d.ts +5 -5
- package/dist/repositories/users/getUsers.js +102 -0
- package/dist/repositories/users/getUsers.js.map +1 -0
- package/dist/repositories/users/getUsersConfigurationByImei.d.ts +5 -5
- package/dist/repositories/users/getUsersConfigurationByImei.js +31 -0
- package/dist/repositories/users/getUsersConfigurationByImei.js.map +1 -0
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.d.ts +4 -4
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +27 -0
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js.map +1 -0
- package/dist/repositories/users/getUsersInfoWithActivationInfo.d.ts +4 -4
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js +101 -0
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js.map +1 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.d.ts +4 -4
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +59 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js.map +1 -0
- package/dist/repositories/users/getUsersWithRoles.d.ts +4 -4
- package/dist/repositories/users/getUsersWithRoles.js +40 -0
- package/dist/repositories/users/getUsersWithRoles.js.map +1 -0
- package/dist/repositories/users/index.d.ts +154 -154
- package/dist/repositories/users/index.js +252 -0
- package/dist/repositories/users/index.js.map +1 -0
- package/dist/repositories/users/updateUser.d.ts +4 -4
- package/dist/repositories/users/updateUser.js +110 -0
- package/dist/repositories/users/updateUser.js.map +1 -0
- package/dist/subscribers/allEntitiesSubscriber.d.ts +13 -13
- package/dist/subscribers/allEntitiesSubscriber.js +53 -0
- package/dist/subscribers/allEntitiesSubscriber.js.map +1 -0
- package/dist/subscribers/index.d.ts +2 -2
- package/dist/subscribers/index.js +3 -0
- package/dist/subscribers/index.js.map +1 -0
- package/dist/types/acumatica.d.ts +37 -37
- package/dist/types/acumatica.js +2 -0
- package/dist/types/acumatica.js.map +1 -0
- package/dist/types/aempToken.d.ts +20 -20
- package/dist/types/aempToken.js +2 -0
- package/dist/types/aempToken.js.map +1 -0
- package/dist/types/alert.d.ts +87 -87
- package/dist/types/alert.js +2 -0
- package/dist/types/alert.js.map +1 -0
- package/dist/types/alertTypes.d.ts +6 -6
- package/dist/types/alertTypes.js +2 -0
- package/dist/types/alertTypes.js.map +1 -0
- package/dist/types/appFeatures.d.ts +24 -24
- package/dist/types/appFeatures.js +2 -0
- package/dist/types/appFeatures.js.map +1 -0
- package/dist/types/billing.d.ts +341 -341
- package/dist/types/billing.js +2 -0
- package/dist/types/billing.js.map +1 -0
- package/dist/types/blacklist.d.ts +32 -32
- package/dist/types/blacklist.js +2 -0
- package/dist/types/blacklist.js.map +1 -0
- package/dist/types/bleMesh.d.ts +129 -129
- package/dist/types/bleMesh.js +2 -0
- package/dist/types/bleMesh.js.map +1 -0
- package/dist/types/bleMeshConfiguration.d.ts +30 -30
- package/dist/types/bleMeshConfiguration.js +2 -0
- package/dist/types/bleMeshConfiguration.js.map +1 -0
- package/dist/types/boundaries.d.ts +125 -125
- package/dist/types/boundaries.js +2 -0
- package/dist/types/boundaries.js.map +1 -0
- package/dist/types/clientAlertConfiguration.d.ts +100 -100
- package/dist/types/clientAlertConfiguration.js +2 -0
- package/dist/types/clientAlertConfiguration.js.map +1 -0
- package/dist/types/clients.d.ts +137 -137
- package/dist/types/clients.js +35 -0
- package/dist/types/clients.js.map +1 -0
- package/dist/types/common.d.ts +17 -17
- package/dist/types/common.js +2 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/countries.d.ts +12 -12
- package/dist/types/countries.js +2 -0
- package/dist/types/countries.js.map +1 -0
- package/dist/types/dataExports.d.ts +43 -43
- package/dist/types/dataExports.js +2 -0
- package/dist/types/dataExports.js.map +1 -0
- package/dist/types/deactivations.d.ts +25 -25
- package/dist/types/deactivations.js +2 -0
- package/dist/types/deactivations.js.map +1 -0
- package/dist/types/deviceBehaviors.d.ts +97 -97
- package/dist/types/deviceBehaviors.js +2 -0
- package/dist/types/deviceBehaviors.js.map +1 -0
- package/dist/types/devicePairings.d.ts +56 -56
- package/dist/types/devicePairings.js +2 -0
- package/dist/types/devicePairings.js.map +1 -0
- package/dist/types/deviceStatus.d.ts +84 -84
- package/dist/types/deviceStatus.js +2 -0
- package/dist/types/deviceStatus.js.map +1 -0
- package/dist/types/deviceTypeFeature.d.ts +23 -23
- package/dist/types/deviceTypeFeature.js +4 -0
- package/dist/types/deviceTypeFeature.js.map +1 -0
- package/dist/types/devices.d.ts +408 -407
- package/dist/types/devices.js +25 -0
- package/dist/types/devices.js.map +1 -0
- package/dist/types/entitiesTags.d.ts +63 -63
- package/dist/types/entitiesTags.js +26 -0
- package/dist/types/entitiesTags.js.map +1 -0
- package/dist/types/enums.d.ts +85 -85
- package/dist/types/enums.js +103 -0
- package/dist/types/enums.js.map +1 -0
- package/dist/types/feature.d.ts +20 -20
- package/dist/types/feature.js +3 -0
- package/dist/types/feature.js.map +1 -0
- package/dist/types/firmwares.d.ts +129 -129
- package/dist/types/firmwares.js +18 -0
- package/dist/types/firmwares.js.map +1 -0
- package/dist/types/index.d.ts +38 -38
- package/dist/types/index.js +39 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/latestUserAppInfo.d.ts +12 -12
- package/dist/types/latestUserAppInfo.js +2 -0
- package/dist/types/latestUserAppInfo.js.map +1 -0
- package/dist/types/liveLinks.d.ts +92 -92
- package/dist/types/liveLinks.js +2 -0
- package/dist/types/liveLinks.js.map +1 -0
- package/dist/types/logger.d.ts +68 -68
- package/dist/types/logger.js +10 -0
- package/dist/types/logger.js.map +1 -0
- package/dist/types/notificationRecipients.d.ts +72 -72
- package/dist/types/notificationRecipients.js +2 -0
- package/dist/types/notificationRecipients.js.map +1 -0
- package/dist/types/position.d.ts +71 -71
- package/dist/types/position.js +2 -0
- package/dist/types/position.js.map +1 -0
- package/dist/types/promotion.d.ts +121 -121
- package/dist/types/promotion.js +42 -0
- package/dist/types/promotion.js.map +1 -0
- package/dist/types/security.d.ts +42 -42
- package/dist/types/security.js +2 -0
- package/dist/types/security.js.map +1 -0
- package/dist/types/tag.d.ts +65 -65
- package/dist/types/tag.js +15 -0
- package/dist/types/tag.js.map +1 -0
- package/dist/types/tasks.d.ts +228 -228
- package/dist/types/tasks.js +2 -0
- package/dist/types/tasks.js.map +1 -0
- package/dist/types/trip.d.ts +92 -92
- package/dist/types/trip.js +31 -0
- package/dist/types/trip.js.map +1 -0
- package/dist/types/user.d.ts +252 -252
- package/dist/types/user.js +2 -0
- package/dist/types/user.js.map +1 -0
- package/dist/types/userActivations.d.ts +143 -143
- package/dist/types/userActivations.js +2 -0
- package/dist/types/userActivations.js.map +1 -0
- package/dist/types/userAppFeedback.d.ts +8 -8
- package/dist/types/userAppFeedback.js +2 -0
- package/dist/types/userAppFeedback.js.map +1 -0
- package/dist/types/userAppIncidents.d.ts +35 -35
- package/dist/types/userAppIncidents.js +2 -0
- package/dist/types/userAppIncidents.js.map +1 -0
- package/dist/types/userConfigurations.d.ts +127 -127
- package/dist/types/userConfigurations.js +2 -0
- package/dist/types/userConfigurations.js.map +1 -0
- package/dist/types/userDataDeletionRequests.d.ts +29 -29
- package/dist/types/userDataDeletionRequests.js +2 -0
- package/dist/types/userDataDeletionRequests.js.map +1 -0
- package/dist/types/userInvitations.d.ts +48 -48
- package/dist/types/userInvitations.js +2 -0
- package/dist/types/userInvitations.js.map +1 -0
- package/dist/types/userRatingRequests.d.ts +18 -18
- package/dist/types/userRatingRequests.js +2 -0
- package/dist/types/userRatingRequests.js.map +1 -0
- package/dist/types/userRegistrationAttempts.d.ts +36 -36
- package/dist/types/userRegistrationAttempts.js +2 -0
- package/dist/types/userRegistrationAttempts.js.map +1 -0
- package/dist/utils/anyAttributeHasValue.d.ts +1 -1
- package/dist/utils/anyAttributeHasValue.js +21 -0
- package/dist/utils/anyAttributeHasValue.js.map +1 -0
- package/dist/utils/billingPlansHelper.d.ts +3 -3
- package/dist/utils/billingPlansHelper.js +50 -0
- package/dist/utils/billingPlansHelper.js.map +1 -0
- package/dist/utils/boolToNumberTransformer.d.ts +5 -5
- package/dist/utils/boolToNumberTransformer.js +24 -0
- package/dist/utils/boolToNumberTransformer.js.map +1 -0
- package/dist/utils/consoleLogger.d.ts +10 -10
- package/dist/utils/consoleLogger.js +43 -0
- package/dist/utils/consoleLogger.js.map +1 -0
- package/dist/utils/dateTool.d.ts +2 -2
- package/dist/utils/dateTool.js +9 -0
- package/dist/utils/dateTool.js.map +1 -0
- package/dist/utils/filterTools.d.ts +12 -12
- package/dist/utils/filterTools.js +300 -0
- package/dist/utils/filterTools.js.map +1 -0
- package/dist/utils/mapRawEntityToEntity.d.ts +1 -1
- package/dist/utils/mapRawEntityToEntity.js +13 -0
- package/dist/utils/mapRawEntityToEntity.js.map +1 -0
- package/dist/utils/paramsValidators.d.ts +3 -3
- package/dist/utils/paramsValidators.js +17 -0
- package/dist/utils/paramsValidators.js.map +1 -0
- package/dist/utils/parsingTools.d.ts +3 -3
- package/dist/utils/parsingTools.js +22 -0
- package/dist/utils/parsingTools.js.map +1 -0
- package/dist/utils/queryLogger.d.ts +13 -13
- package/dist/utils/queryLogger.js +49 -0
- package/dist/utils/queryLogger.js.map +1 -0
- package/dist/utils/randomizer.d.ts +5 -5
- package/dist/utils/randomizer.js +40 -0
- package/dist/utils/randomizer.js.map +1 -0
- package/dist/utils/stringToDateTransformer.d.ts +5 -5
- package/dist/utils/stringToDateTransformer.js +17 -0
- package/dist/utils/stringToDateTransformer.js.map +1 -0
- package/dist/utils/uuidHelpers.d.ts +2 -2
- package/dist/utils/uuidHelpers.js +31 -0
- package/dist/utils/uuidHelpers.js.map +1 -0
- package/package.json +3 -4
- package/dist/entities/alertBeta.d.ts +0 -27
- package/dist/entities/alertMigration.d.ts +0 -23
- package/dist/entities/alertMigrationBatch.d.ts +0 -3
- package/dist/entities/alertTimeWindowConfiguration.d.ts +0 -12
- package/dist/entities/deviceAlertConfiguration.d.ts +0 -14
- package/dist/entities/deviceTypeEvent.d.ts +0 -5
- package/dist/entities/event.d.ts +0 -6
- package/dist/entities/hapnBaseEntity.d.ts +0 -7
- package/dist/entities/svrPairingRequest.d.ts +0 -21
- package/dist/repositories/alerts/createRepository.d.ts +0 -4
- package/dist/repositories/deviceBehaviors/getDevicesLastBehaviorTask.d.ts +0 -5
- package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.d.ts +0 -4
- package/dist/repositories/userConfigurations/createDeviceAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/createUserAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/deleteDeviceAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/deleteUserAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/updateDeviceAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/updateUserAlertTimeWindows.d.ts +0 -4
- package/dist/utils/anyAttributeIsNull.d.ts +0 -1
- package/dist/utils/uuidTransformer.d.ts +0 -5
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { BaseRepository } from '../baseRepository';
|
|
3
|
+
import { createBoundary } from './createBoundary';
|
|
4
|
+
import { deleteBoundary } from './deleteBoundary';
|
|
5
|
+
import { getBoundariesByClientId } from './getBoundariesByClientId';
|
|
6
|
+
import { getBoundariesIdsByClientId } from './getBoundariesIdsByClientId';
|
|
7
|
+
import { getBoundariesReport } from './getBoundariesReport';
|
|
8
|
+
import { getBoundaryById } from './getBoundaryById';
|
|
9
|
+
import { processBoundaryEvent } from './processBoundaryEvent';
|
|
10
|
+
import { updateBoundary } from './updateBoundary';
|
|
11
|
+
import { upsertBoundaryEvent } from './upsertBoundaryEvent';
|
|
12
|
+
export class BoundariesRepository extends BaseRepository {
|
|
13
|
+
/**
|
|
14
|
+
* Get all boundaries by client id
|
|
15
|
+
* @param {GetBoundariesByClientIdParams} params containing information to get boundaries by clientId
|
|
16
|
+
* - filters.clientId: The client id
|
|
17
|
+
* - filters.status: The status to only obtain boundaries with that status, optional
|
|
18
|
+
*/
|
|
19
|
+
async getBoundariesByClientId(params) {
|
|
20
|
+
this.logger.trace(params, 'BoundariesRepository::getBoundariesByClientId started with params');
|
|
21
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
22
|
+
const result = await getBoundariesByClientId(novaDataSource, params, this.logger);
|
|
23
|
+
this.logger.trace({ result: result.map(x => x.id) }, 'BoundariesRepository::getBoundariesByClientId result');
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get all boundaries ids by client id
|
|
28
|
+
* @param {GetBoundariesByClientIdParams} params containing information to get boundaries ids by clientId
|
|
29
|
+
* - filters.clientId: The client id
|
|
30
|
+
* - filters.status: The status to only obtain boundaries with that status, optional
|
|
31
|
+
*/
|
|
32
|
+
async getBoundariesIdsByClientId(params) {
|
|
33
|
+
this.logger.trace(params, 'BoundariesRepository::getBoundariesIdsByClientId started with params');
|
|
34
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
35
|
+
const result = await getBoundariesIdsByClientId(novaDataSource, params, this.logger);
|
|
36
|
+
this.logger.trace(result, 'BoundariesRepository::getBoundariesIdsByClientId result');
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get a boundary by id
|
|
41
|
+
* @param {GetBoundaryByIdParams} params containing information to get a boundary by id
|
|
42
|
+
* - filters.boundaryId: The boundary id
|
|
43
|
+
*/
|
|
44
|
+
async getBoundaryById(params) {
|
|
45
|
+
this.logger.trace(params, 'BoundariesRepository::getBoundaryById started with params');
|
|
46
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
47
|
+
const result = await getBoundaryById(novaDataSource, params, this.logger);
|
|
48
|
+
this.logger.trace({
|
|
49
|
+
result: {
|
|
50
|
+
...result,
|
|
51
|
+
geometry: undefined,
|
|
52
|
+
},
|
|
53
|
+
}, 'BoundariesRepository::getBoundaryById result');
|
|
54
|
+
return result;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create a boundary
|
|
58
|
+
* @param {CreateBoundaryParams} params containing information to create a boundary
|
|
59
|
+
* - name: boundary name
|
|
60
|
+
* - type: boundary type
|
|
61
|
+
* - clientId: id of the client that owns the boundary
|
|
62
|
+
* - createdBy: id of the user that created the boundary
|
|
63
|
+
* - location: location of the boundary
|
|
64
|
+
* - buffer: buffer of the boundary
|
|
65
|
+
* - radiusDisplayUnit: radius display unit of the boundary
|
|
66
|
+
* - color: color of the boundary
|
|
67
|
+
* - geometry: geometry of the boundary
|
|
68
|
+
* - status: status of the boundary
|
|
69
|
+
* - dataSourceTypeId: data source type id of the boundary, optional
|
|
70
|
+
* - isUserCreated: if the boundary was created by a user, optional
|
|
71
|
+
* - area: area of the boundary, optional
|
|
72
|
+
*/
|
|
73
|
+
async createBoundary(params) {
|
|
74
|
+
this.logger.trace(params, 'BoundariesRepository::createBoundary started with params');
|
|
75
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
76
|
+
const result = await createBoundary(novaDataSource, params, this.logger);
|
|
77
|
+
this.logger.trace({
|
|
78
|
+
result: {
|
|
79
|
+
...result,
|
|
80
|
+
geometry: undefined,
|
|
81
|
+
},
|
|
82
|
+
}, 'BoundariesRepository::createBoundary result');
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Update a boundary
|
|
87
|
+
* @param {UpdateBoundaryParams} params containing information to update a boundary
|
|
88
|
+
* - filters.boundaryId: The id of the boundary to update
|
|
89
|
+
* - values.name: The name of the boundary. Optional, if undefined, the name will not be updated.
|
|
90
|
+
* - values.type: The type of the boundary. Optional, if undefined, the type will not be updated.
|
|
91
|
+
* - values.modifiedBy: The user id of the user that modified the boundary. Optional, if undefined, the modifiedBy will not be updated.
|
|
92
|
+
* - values.location: The location of the boundary. Optional, if undefined, the location will not be updated.
|
|
93
|
+
* - values.geometry: The geometry of the boundary. Optional, if undefined, the geometry will not be updated.
|
|
94
|
+
* - values.status: The status of the boundary. Optional, if undefined, the status will not be updated.
|
|
95
|
+
* - values.buffer: The buffer of the boundary. Optional, if undefined, the buffer will not be updated.
|
|
96
|
+
* - values.radiusDisplayUnit: The radius display unit of the boundary. Optional, if undefined, the radius display unit will not be updated.
|
|
97
|
+
* - values.color: The color of the boundary. Optional, if undefined, the color will not be updated.
|
|
98
|
+
* - values.area: The area of the boundary. Optional, if undefined, the area will not be updated.
|
|
99
|
+
*/
|
|
100
|
+
async updateBoundary(params) {
|
|
101
|
+
this.logger.trace(params, 'BoundariesRepository::updateBoundary started with params');
|
|
102
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
103
|
+
const result = await updateBoundary(novaDataSource, params, this.logger);
|
|
104
|
+
this.logger.trace({ result }, 'BoundariesRepository::updateBoundary result');
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Delete a boundary
|
|
109
|
+
* @param {DeleteBoundaryParams} params containing information to delete a boundary
|
|
110
|
+
* The boundary will not be removed from the database, it will only be marked as deleted
|
|
111
|
+
* - filters.boundaryId: The id of the boundary to delete
|
|
112
|
+
* - values.modifiedBy: The user id of the user that deleted the boundary
|
|
113
|
+
*/
|
|
114
|
+
async deleteBoundary(params) {
|
|
115
|
+
this.logger.trace(params, 'BoundariesRepository::deleteBoundary started with params');
|
|
116
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
117
|
+
const result = await deleteBoundary(novaDataSource, params, this.logger);
|
|
118
|
+
this.logger.trace({ result }, 'BoundariesRepository::deleteBoundary result');
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Get boundaries report
|
|
123
|
+
* @param {GetBoundariesReportParams} params containing information to get boundaries report
|
|
124
|
+
* - filters.userId: The user id
|
|
125
|
+
* - filters.boundaryId: The boundary id, optional
|
|
126
|
+
* - filters.boundaryName: The boundary name, optional
|
|
127
|
+
* - filters.imeis: The imeis, optional
|
|
128
|
+
* - filters.boundaryInStartDate: The boundary in start date, optional
|
|
129
|
+
* - filters.boundaryInEndDate: The boundary in end date, optional
|
|
130
|
+
* - filters.boundaryOutStartDate: The boundary out start date, optional
|
|
131
|
+
* - filters.boundaryOutEndDate: The boundary out end date, optional
|
|
132
|
+
* - pagingOptions.pageSize: The page size of the pagination, required
|
|
133
|
+
* - pagingOptions.pageIndex: The page index of the pagination, required
|
|
134
|
+
* - sortOptions.sortField: The field to sort the pagination, optional
|
|
135
|
+
* - sortOptions.sortOrder: The order to sort the pagination, optional
|
|
136
|
+
* @returns The boundaries report
|
|
137
|
+
*/
|
|
138
|
+
async getBoundariesReport(params) {
|
|
139
|
+
this.logger.trace(params, 'BoundariesRepository::getBoundariesReport started with params');
|
|
140
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
141
|
+
const result = await getBoundariesReport(novaDataSource, params, this.logger);
|
|
142
|
+
this.logger.trace(result, 'BoundariesRepository::getBoundariesReport result');
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Process boundary event
|
|
147
|
+
* @param {ProcessBoundaryEventParams} params containing information to process boundary event
|
|
148
|
+
* - boundaryId: The boundary id
|
|
149
|
+
* - imei: The imei of the device
|
|
150
|
+
* - userId: The user id
|
|
151
|
+
* - sendTime: The event date
|
|
152
|
+
* - eventType: The event type (enter or exit)
|
|
153
|
+
* - lat: The latitude of the event
|
|
154
|
+
* - lon: The longitude of the event
|
|
155
|
+
* - address: The address of the event
|
|
156
|
+
* @returns true if the event was processed, false otherwise
|
|
157
|
+
*/
|
|
158
|
+
async processBoundaryEvent(params) {
|
|
159
|
+
this.logger.trace(params, 'BoundariesRepository::processBoundaryEvent started with params');
|
|
160
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
161
|
+
const result = await processBoundaryEvent(novaDataSource, params, this.logger);
|
|
162
|
+
this.logger.trace({ result }, 'BoundariesRepository::processBoundaryEvent result');
|
|
163
|
+
return result;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Upsert boundary event
|
|
167
|
+
* @param {UpsertBoundaryEventParams} params containing information to upsert boundary event
|
|
168
|
+
* - id: The id of the boundary event
|
|
169
|
+
* @returns true if the event was upserted, false otherwise
|
|
170
|
+
*/
|
|
171
|
+
async upsertBoundaryEvent(params) {
|
|
172
|
+
this.logger.trace(params, 'BoundariesRepository::upsertBoundaryEvent started with params');
|
|
173
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
174
|
+
const result = await upsertBoundaryEvent(novaDataSource, params, this.logger);
|
|
175
|
+
this.logger.trace({ result }, 'BoundariesRepository::upsertBoundaryEvent result');
|
|
176
|
+
return result;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/boundaries/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAYrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,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QAEjF,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { ProcessBoundaryEventParams } from '../../types/boundaries';
|
|
3
|
-
import { Logger } from '../../types/logger';
|
|
4
|
-
export declare const processBoundaryEvent: (novaDataSource: NovaDataSource, params: ProcessBoundaryEventParams, logger: Logger) => Promise<boolean>;
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { ProcessBoundaryEventParams } from '../../types/boundaries';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const processBoundaryEvent: (novaDataSource: NovaDataSource, params: ProcessBoundaryEventParams, logger: Logger) => Promise<boolean>;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { BoundaryEvent, Device } from '../../entities';
|
|
2
|
+
import { BoundaryEventType } from '../../types/enums';
|
|
3
|
+
import { uuidStringToBinaryBuffer } from '../../utils/uuidHelpers';
|
|
4
|
+
const createBoundaryEvent = async (novaDataSource, params, deviceId) => {
|
|
5
|
+
const boundaryEventsRepository = novaDataSource.getRepository(BoundaryEvent);
|
|
6
|
+
const newBoundaryEvent = {
|
|
7
|
+
deviceId,
|
|
8
|
+
boundaryId: params.boundaryId,
|
|
9
|
+
userId: uuidStringToBinaryBuffer(params.userId),
|
|
10
|
+
inDate: params.eventType === BoundaryEventType.Enter ? params.sendTime : null,
|
|
11
|
+
inLat: params.eventType === BoundaryEventType.Enter ? params.lat : null,
|
|
12
|
+
inLon: params.eventType === BoundaryEventType.Enter ? params.lon : null,
|
|
13
|
+
inAddress: params.eventType === BoundaryEventType.Enter ? params.address : null,
|
|
14
|
+
outDate: params.eventType === BoundaryEventType.Exit ? params.sendTime : null,
|
|
15
|
+
outLat: params.eventType === BoundaryEventType.Exit ? params.lat : null,
|
|
16
|
+
outLon: params.eventType === BoundaryEventType.Exit ? params.lon : null,
|
|
17
|
+
outAddress: params.eventType === BoundaryEventType.Exit ? params.address : null,
|
|
18
|
+
};
|
|
19
|
+
const result = await boundaryEventsRepository.insert(newBoundaryEvent);
|
|
20
|
+
return result?.raw.affectedRows > 0;
|
|
21
|
+
};
|
|
22
|
+
const getPreviousEventDate = async (novaDataSource, params, deviceId) => {
|
|
23
|
+
let result = null;
|
|
24
|
+
const boundaryEventsRepository = novaDataSource.getRepository(BoundaryEvent);
|
|
25
|
+
// boundary events for this device, boundary and userId
|
|
26
|
+
const queryBuilder = boundaryEventsRepository
|
|
27
|
+
.createQueryBuilder('boundaryEvent')
|
|
28
|
+
.where('boundaryEvent.deviceId = :deviceId', { deviceId })
|
|
29
|
+
.andWhere('boundaryEvent.boundaryId = :boundaryId', { boundaryId: params.boundaryId })
|
|
30
|
+
.andWhere('boundaryEvent.userId = :userId', {
|
|
31
|
+
userId: uuidStringToBinaryBuffer(params.userId),
|
|
32
|
+
});
|
|
33
|
+
if (params.eventType === BoundaryEventType.Enter) {
|
|
34
|
+
// if eventType is enter, let's find the previous entry event
|
|
35
|
+
result = (await queryBuilder
|
|
36
|
+
.andWhere('boundaryEvent.inDate < :sendTime', { sendTime: params.sendTime })
|
|
37
|
+
.orderBy('boundaryEvent.inDate', 'DESC')
|
|
38
|
+
.select('boundaryEvent.inDate')
|
|
39
|
+
.limit(1)
|
|
40
|
+
.getOne())?.inDate;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
// if eventType is exit, let's find the previous exit event
|
|
44
|
+
result = (await queryBuilder
|
|
45
|
+
.andWhere('boundaryEvent.outDate < :sendTime', { sendTime: params.sendTime })
|
|
46
|
+
.orderBy('boundaryEvent.outDate', 'DESC')
|
|
47
|
+
.select('boundaryEvent.outDate')
|
|
48
|
+
.limit(1)
|
|
49
|
+
.getOne())?.outDate;
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
const getNextEventDate = async (novaDataSource, params, deviceId) => {
|
|
54
|
+
let result = null;
|
|
55
|
+
const boundaryEventsRepository = novaDataSource.getRepository(BoundaryEvent);
|
|
56
|
+
// boundary events for this device, boundary and userId
|
|
57
|
+
const queryBuilder = boundaryEventsRepository
|
|
58
|
+
.createQueryBuilder('boundaryEvent')
|
|
59
|
+
.where('boundaryEvent.deviceId = :deviceId', { deviceId })
|
|
60
|
+
.andWhere('boundaryEvent.boundaryId = :boundaryId', { boundaryId: params.boundaryId })
|
|
61
|
+
.andWhere('boundaryEvent.userId = :userId', {
|
|
62
|
+
userId: uuidStringToBinaryBuffer(params.userId),
|
|
63
|
+
});
|
|
64
|
+
if (params.eventType === BoundaryEventType.Enter) {
|
|
65
|
+
// if eventType is enter, let's find the next entry event
|
|
66
|
+
result = (await queryBuilder
|
|
67
|
+
.andWhere('boundaryEvent.inDate > :sendTime', { sendTime: params.sendTime })
|
|
68
|
+
.orderBy('boundaryEvent.inDate', 'ASC')
|
|
69
|
+
.select('boundaryEvent.inDate')
|
|
70
|
+
.limit(1)
|
|
71
|
+
.getOne())?.inDate;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
// if eventType is exit, let's find the next exit event
|
|
75
|
+
result = (await queryBuilder
|
|
76
|
+
.andWhere('boundaryEvent.outDate > :sendTime', { sendTime: params.sendTime })
|
|
77
|
+
.orderBy('boundaryEvent.outDate', 'ASC')
|
|
78
|
+
.select('boundaryEvent.outDate')
|
|
79
|
+
.limit(1)
|
|
80
|
+
.getOne())?.outDate;
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
};
|
|
84
|
+
const calculateSecondsBetween = (date1, date2) => {
|
|
85
|
+
// Convert dates to milliseconds since the Unix epoch
|
|
86
|
+
const time1 = date1.getTime();
|
|
87
|
+
const time2 = date2.getTime();
|
|
88
|
+
// Calculate the difference in milliseconds
|
|
89
|
+
const differenceInMilliseconds = Math.abs(time2 - time1);
|
|
90
|
+
// Convert milliseconds to seconds
|
|
91
|
+
const differenceInSeconds = differenceInMilliseconds / 1000;
|
|
92
|
+
return differenceInSeconds;
|
|
93
|
+
};
|
|
94
|
+
const getOrphanEventBetweenDates = async (novaDataSource, params, deviceId, previousEventDate, nextEventDate) => {
|
|
95
|
+
let result = null;
|
|
96
|
+
const boundaryEventsRepository = novaDataSource.getRepository(BoundaryEvent);
|
|
97
|
+
// events for this device, boundary and userId
|
|
98
|
+
const queryBuilder = boundaryEventsRepository
|
|
99
|
+
.createQueryBuilder('boundaryEvent')
|
|
100
|
+
.where('boundaryEvent.deviceId = :deviceId', { deviceId })
|
|
101
|
+
.andWhere('boundaryEvent.boundaryId = :boundaryId', { boundaryId: params.boundaryId })
|
|
102
|
+
.andWhere('boundaryEvent.userId = :userId', {
|
|
103
|
+
userId: uuidStringToBinaryBuffer(params.userId),
|
|
104
|
+
});
|
|
105
|
+
if (params.eventType === BoundaryEventType.Enter) {
|
|
106
|
+
// let's find newer orphan exits (with null inDate)
|
|
107
|
+
queryBuilder
|
|
108
|
+
.andWhere('boundaryEvent.inDate IS NULL')
|
|
109
|
+
.andWhere('boundaryEvent.outDate > :sendTime', { sendTime: params.sendTime });
|
|
110
|
+
// if nextEventDate is not null, we only use orphan exits that are older than nextEventDate
|
|
111
|
+
if (nextEventDate) {
|
|
112
|
+
queryBuilder.andWhere('boundaryEvent.outDate <= :nextEventDate', { nextEventDate });
|
|
113
|
+
}
|
|
114
|
+
// order by outDate ASC, so the first result is the closests newer orphan exit
|
|
115
|
+
queryBuilder.orderBy('boundaryEvent.outDate', 'ASC');
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
// let's find older orphan entries (with null outDate)
|
|
119
|
+
queryBuilder
|
|
120
|
+
.andWhere('boundaryEvent.outDate IS NULL')
|
|
121
|
+
.andWhere('boundaryEvent.inDate < :sendTime', { sendTime: params.sendTime });
|
|
122
|
+
// if previousEventDate is available, we only use orphan entries that are newer than previousEventDate
|
|
123
|
+
if (previousEventDate) {
|
|
124
|
+
queryBuilder.andWhere('boundaryEvent.inDate >= :previousEventDate', { previousEventDate });
|
|
125
|
+
}
|
|
126
|
+
if (!previousEventDate && !nextEventDate) {
|
|
127
|
+
// if no other exit exist, we use the last orphan entry
|
|
128
|
+
queryBuilder.orderBy('boundaryEvent.inDate', 'DESC');
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
// if there are other exits (previous or next), we use the first orphan entry
|
|
132
|
+
queryBuilder.orderBy('boundaryEvent.inDate', 'ASC');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// select the closest orphan entry / exit
|
|
136
|
+
result = await queryBuilder.limit(1).getOne();
|
|
137
|
+
return result;
|
|
138
|
+
};
|
|
139
|
+
export const processBoundaryEvent = async (novaDataSource, params, logger) => {
|
|
140
|
+
if (!params?.imei ||
|
|
141
|
+
!params?.boundaryId ||
|
|
142
|
+
!params?.userId ||
|
|
143
|
+
!params?.sendTime ||
|
|
144
|
+
!params?.lat ||
|
|
145
|
+
!params?.lon ||
|
|
146
|
+
!params?.address ||
|
|
147
|
+
!params?.eventType) {
|
|
148
|
+
logger.warn({ params }, 'BoundariesRepository::processBoundaryEvent - missing required parameters');
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
const userIdBinaryBuffer = uuidStringToBinaryBuffer(params.userId);
|
|
152
|
+
if (!userIdBinaryBuffer) {
|
|
153
|
+
logger.warn({ params }, 'BoundariesRepository::processBoundaryEvent - userId should be a valid uuid');
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
157
|
+
const devicesRepository = dataSource.getRepository(Device);
|
|
158
|
+
const device = await devicesRepository.findOne({
|
|
159
|
+
where: {
|
|
160
|
+
imei: params.imei,
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
// if device is not found, we can't process the event
|
|
164
|
+
if (!device) {
|
|
165
|
+
logger.warn({ params }, 'BoundariesRepository::processBoundaryEvent - device not found');
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
const boundaryEventsRepository = dataSource.getRepository(BoundaryEvent);
|
|
169
|
+
// we check if there is at least one event for this device, boundary and userId
|
|
170
|
+
const boundaryEvent = await boundaryEventsRepository.findOne({
|
|
171
|
+
where: {
|
|
172
|
+
deviceId: device.id,
|
|
173
|
+
boundaryId: params.boundaryId,
|
|
174
|
+
userId: userIdBinaryBuffer,
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
if (!boundaryEvent) {
|
|
178
|
+
// if no event exist for this device, boundary and userId, we create a new one
|
|
179
|
+
return await createBoundaryEvent(dataSource, params, device.id);
|
|
180
|
+
}
|
|
181
|
+
// at least one event exist, we obtain dates for events sorrounding the sendTime
|
|
182
|
+
const previousEventDate = await getPreviousEventDate(dataSource, params, device.id);
|
|
183
|
+
const nextEventDate = await getNextEventDate(dataSource, params, device.id);
|
|
184
|
+
logger.trace({ previousEventDate, nextEventDate }, 'BoundariesRepository::processBoundaryEvent - previousEventDate, nextEventDate');
|
|
185
|
+
// we check if there is an orphan event (entry or exit) between the previous and next event dates
|
|
186
|
+
const existingOrphanEvent = await getOrphanEventBetweenDates(dataSource, params, device.id, previousEventDate, nextEventDate);
|
|
187
|
+
logger.trace({ existingOrphanEventId: existingOrphanEvent?.id }, 'BoundariesRepository::processBoundaryEvent - existingOrphanEventId');
|
|
188
|
+
if (existingOrphanEvent != null) {
|
|
189
|
+
// an orphan event is available, let's update the entry or the exit part
|
|
190
|
+
const result = await boundaryEventsRepository.update({ id: existingOrphanEvent.id }, {
|
|
191
|
+
inDate: params.eventType === BoundaryEventType.Enter ? params.sendTime : undefined,
|
|
192
|
+
inLat: params.eventType === BoundaryEventType.Enter ? params.lat : undefined,
|
|
193
|
+
inLon: params.eventType === BoundaryEventType.Enter ? params.lon : undefined,
|
|
194
|
+
inAddress: params.eventType === BoundaryEventType.Enter ? params.address : undefined,
|
|
195
|
+
outDate: params.eventType === BoundaryEventType.Exit ? params.sendTime : undefined,
|
|
196
|
+
outLat: params.eventType === BoundaryEventType.Exit ? params.lat : undefined,
|
|
197
|
+
outLon: params.eventType === BoundaryEventType.Exit ? params.lon : undefined,
|
|
198
|
+
outAddress: params.eventType === BoundaryEventType.Exit ? params.address : undefined,
|
|
199
|
+
modifiedAt: new Date(),
|
|
200
|
+
inOutDuration: params.eventType === BoundaryEventType.Enter
|
|
201
|
+
? calculateSecondsBetween(params.sendTime, existingOrphanEvent.outDate)
|
|
202
|
+
: calculateSecondsBetween(existingOrphanEvent.inDate, params.sendTime),
|
|
203
|
+
});
|
|
204
|
+
return result.affected > 0;
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
// no orphan event is available, create a new one
|
|
208
|
+
return await createBoundaryEvent(dataSource, params, device.id);
|
|
209
|
+
}
|
|
210
|
+
}, 'BoundariesRepository::processBoundaryEvent');
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=processBoundaryEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processBoundaryEvent.js","sourceRoot":"","sources":["../../../src/repositories/boundaries/processBoundaryEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAGtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,mBAAmB,GAAG,KAAK,EAC/B,cAA8B,EAC9B,MAAkC,EAClC,QAAgB,EACE,EAAE;IACpB,MAAM,wBAAwB,GAAG,cAAc,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;IAE5E,MAAM,gBAAgB,GAAG;QACvB,QAAQ;QACR,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC,MAAM,CAAC;QAC/C,MAAM,EAAE,MAAM,CAAC,SAAS,KAAK,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAA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AAC,CAAC,CAAC,SAAS;gBACpF,UAAU,EAAE,IAAI,IAAI,EAAE;gBACtB,aAAa,EACX,MAAM,CAAC,SAAS,KAAK,iBAAiB,CAAC,KAAK;oBAC1C,CAAC,CAAC,uBAAuB,CAAC,MAAM,CAAC,QAAQ,EAAE,mBAAmB,CAAC,OAAO,CAAC;oBACvE,CAAC,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;aAC3E,CACF,CAAA;YAED,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;SAC3B;aAAM;YACL,iDAAiD;YACjD,OAAO,MAAM,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAA;SAChE;IACH,CAAC,EAAE,4CAA4C,CAAC,CAAA;AAClD,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { UpdateBoundaryParams } from '../../types/boundaries';
|
|
3
|
-
import { Logger } from '../../types/logger';
|
|
4
|
-
export declare const updateBoundary: (novaDataSource: NovaDataSource, params: UpdateBoundaryParams, logger: Logger) => Promise<boolean>;
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { UpdateBoundaryParams } from '../../types/boundaries';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const updateBoundary: (novaDataSource: NovaDataSource, params: UpdateBoundaryParams, logger: Logger) => Promise<boolean>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Boundary } from '../../entities';
|
|
2
|
+
export const updateBoundary = async (novaDataSource, params, logger) => {
|
|
3
|
+
// boundaryId is required
|
|
4
|
+
if (!params?.filters?.boundaryId) {
|
|
5
|
+
logger.warn({ params }, 'BoundariesRepository::updateBoundary - missing required parameters');
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
// status
|
|
9
|
+
const status = params?.values?.status > 0 && params?.values?.status < 4 ? params.values.status : undefined;
|
|
10
|
+
// radius
|
|
11
|
+
let buffer = params?.values?.buffer;
|
|
12
|
+
if (buffer) {
|
|
13
|
+
const bufferFloat = parseFloat(params.values.buffer);
|
|
14
|
+
if (Number.isNaN(bufferFloat)) {
|
|
15
|
+
buffer = undefined;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
// at least one field to update is required
|
|
19
|
+
if (!params?.values?.name &&
|
|
20
|
+
!params?.values?.type &&
|
|
21
|
+
!params?.values?.location &&
|
|
22
|
+
!buffer &&
|
|
23
|
+
!params?.values?.radiusDisplayUnit &&
|
|
24
|
+
!params?.values?.color &&
|
|
25
|
+
!params?.values?.geometry &&
|
|
26
|
+
!status &&
|
|
27
|
+
!params?.values?.area) {
|
|
28
|
+
logger.warn({ params }, 'BoundariesRepository::updateBoundary - missing required parameters');
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
32
|
+
const boundariesRepository = dataSource.getRepository(Boundary);
|
|
33
|
+
const now = new Date();
|
|
34
|
+
const result = await boundariesRepository
|
|
35
|
+
.createQueryBuilder()
|
|
36
|
+
.update(Boundary)
|
|
37
|
+
.set({
|
|
38
|
+
name: params.values.name,
|
|
39
|
+
type: params.values.type,
|
|
40
|
+
modifiedBy: params.values.modifiedBy,
|
|
41
|
+
location: params.values.location,
|
|
42
|
+
buffer,
|
|
43
|
+
radiusDisplayUnit: params.values.radiusDisplayUnit,
|
|
44
|
+
color: params.values.color,
|
|
45
|
+
geometry: params.values.geometry,
|
|
46
|
+
status,
|
|
47
|
+
modifiedAt: now,
|
|
48
|
+
})
|
|
49
|
+
.where('id = :id', { id: params.filters.boundaryId })
|
|
50
|
+
.execute();
|
|
51
|
+
return result.affected > 0;
|
|
52
|
+
}, 'BoundariesRepository::updateBoundary');
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=updateBoundary.js.map
|
|
@@ -0,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,MAAM,EAAE,IAAI,EACrB;QACA,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;QAE/D,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,MAAM,GAAG,MAAM,oBAAoB;aACtC,kBAAkB,EAAE;aACpB,MAAM,CAAC,QAAQ,CAAC;aAChB,GAAG,CAAC;YACH,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI;YACxB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI;YACxB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;YACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ;YAChC,MAAM;YACN,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,iBAAiB;YAClD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;YAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ;YAChC,MAAM;YACN,UAAU,EAAE,GAAG;SAChB,CAAC;aACD,KAAK,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;aACpD,OAAO,EAAE,CAAA;QAEZ,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { UpsertBoundaryEventParams } from '../../types/boundaries';
|
|
3
|
-
import { Logger } from '../../types/logger';
|
|
4
|
-
export declare const upsertBoundaryEvent: (novaDataSource: NovaDataSource, params: UpsertBoundaryEventParams, logger: Logger) => Promise<boolean>;
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { UpsertBoundaryEventParams } from '../../types/boundaries';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const upsertBoundaryEvent: (novaDataSource: NovaDataSource, params: UpsertBoundaryEventParams, logger: Logger) => Promise<boolean>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BoundaryEvent } from '../../entities';
|
|
2
|
+
import { uuidStringToBinaryBuffer } from '../../utils/uuidHelpers';
|
|
3
|
+
export const upsertBoundaryEvent = async (novaDataSource, params, logger) => {
|
|
4
|
+
if (!params?.id || !params?.boundaryId || !params?.deviceId || !params?.imei) {
|
|
5
|
+
logger.warn({ params }, 'BoundariesRepository::upsertBoundaryEvent missing required parameters');
|
|
6
|
+
return false;
|
|
7
|
+
}
|
|
8
|
+
const userIdBinaryBuffer = uuidStringToBinaryBuffer(params.userId);
|
|
9
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
10
|
+
const boundaryEventRepository = dataSource.getRepository(BoundaryEvent);
|
|
11
|
+
const now = new Date();
|
|
12
|
+
const boundaryEvent = {
|
|
13
|
+
...params,
|
|
14
|
+
userId: userIdBinaryBuffer,
|
|
15
|
+
createdAt: params.createdAt ?? now,
|
|
16
|
+
modifiedAt: params.modifiedAt ?? now,
|
|
17
|
+
};
|
|
18
|
+
const result = await boundaryEventRepository.upsert(boundaryEvent, {
|
|
19
|
+
conflictPaths: ['id'],
|
|
20
|
+
});
|
|
21
|
+
return result?.raw?.affectedRows > 0;
|
|
22
|
+
}, 'BoundariesRepository::upsertBoundaryEvent');
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=upsertBoundaryEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsertBoundaryEvent.js","sourceRoot":"","sources":["../../../src/repositories/boundaries/upsertBoundaryEvent.ts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|
|
3
|
-
import { CreateClientAlertConfigurationParams } from '../../types/clientAlertConfiguration';
|
|
4
|
-
import { Logger } from '../../types/logger';
|
|
5
|
-
export declare const createClientAlertConfiguration: (novaDataSource: NovaDataSource, params: CreateClientAlertConfigurationParams, logger: Logger) => Promise<ClientAlertConfiguration>;
|
|
1
|
+
import { ClientAlertConfiguration } from '../../entities';
|
|
2
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
3
|
+
import { CreateClientAlertConfigurationParams } from '../../types/clientAlertConfiguration';
|
|
4
|
+
import { Logger } from '../../types/logger';
|
|
5
|
+
export declare const createClientAlertConfiguration: (novaDataSource: NovaDataSource, params: CreateClientAlertConfigurationParams, logger: Logger) => Promise<ClientAlertConfiguration>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ClientAlertConfiguration } from '../../entities';
|
|
2
|
+
export const createClientAlertConfiguration = async (novaDataSource, params, logger) => {
|
|
3
|
+
if (!params?.clientId || !params?.alertTypeId || !params?.name || !params?.description) {
|
|
4
|
+
logger.warn({ params }, 'ClientAlertConfigurationRepository::createClientAlertConfiguration - missing required parameters');
|
|
5
|
+
return null;
|
|
6
|
+
}
|
|
7
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
+
const clientAlertConfigurationsRepository = dataSource.getRepository(ClientAlertConfiguration);
|
|
9
|
+
const newClientAlertConfiguration = {
|
|
10
|
+
id: params.id,
|
|
11
|
+
clientId: params.clientId,
|
|
12
|
+
alertTypeId: params.alertTypeId,
|
|
13
|
+
name: params.name,
|
|
14
|
+
description: params.description,
|
|
15
|
+
status: params.status || 'active',
|
|
16
|
+
alertValue: params.alertValue,
|
|
17
|
+
alertMetadata: params.alertMetadata,
|
|
18
|
+
filter: params.filter,
|
|
19
|
+
readOnly: params.readOnly || false,
|
|
20
|
+
};
|
|
21
|
+
const result = await clientAlertConfigurationsRepository.save(newClientAlertConfiguration);
|
|
22
|
+
return result;
|
|
23
|
+
}, 'ClientAlertConfigurationRepository::createClientAlertConfiguration');
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=createClientAlertConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createClientAlertConfiguration.js","sourceRoot":"","sources":["../../../src/repositories/clientAlertConfiguration/createClientAlertConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAKzD,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAK,EACjD,cAA8B,EAC9B,MAA4C,EAC5C,MAAc,EACqB,EAAE;IACrC,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,CAAC,MAAM,EAAE,WAAW,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,WAAW,EAAE;QACtF,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,kGAAkG,CACnG,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAE/D,EAAE;QACF,MAAM,mCAAmC,GAAG,UAAU,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAA;QAE9F,MAAM,2BAA2B,GAAG;YAClC,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,QAAQ;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,KAAK;SACnC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,mCAAmC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAA;QAE1F,OAAO,MAAM,CAAA;IACf,CAAC,EAAE,oEAAoE,CAAC,CAAA;AAC1E,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { DeleteClientAlertConfigurationsParams } from '../../types/clientAlertConfiguration';
|
|
3
|
-
import { Logger } from '../../types/logger';
|
|
4
|
-
export declare const deleteClientAlertConfigurations: (novaDataSource: NovaDataSource, params: DeleteClientAlertConfigurationsParams, logger: Logger) => Promise<boolean>;
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { DeleteClientAlertConfigurationsParams } from '../../types/clientAlertConfiguration';
|
|
3
|
+
import { Logger } from '../../types/logger';
|
|
4
|
+
export declare const deleteClientAlertConfigurations: (novaDataSource: NovaDataSource, params: DeleteClientAlertConfigurationsParams, logger: Logger) => Promise<boolean>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ClientAlertConfiguration } from '../../entities';
|
|
2
|
+
export const deleteClientAlertConfigurations = async (novaDataSource, params, logger) => {
|
|
3
|
+
if (!params?.filters?.clientId || !params?.filters?.clientAlertConfigurationIds?.length) {
|
|
4
|
+
logger.warn({ params }, 'ClientAlertConfigurationRepository::deleteClientAlertConfiguration - missing required parameters');
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
+
const clientAlertConfigurationsRepository = dataSource.getRepository(ClientAlertConfiguration);
|
|
9
|
+
const queryBuilder = clientAlertConfigurationsRepository
|
|
10
|
+
.createQueryBuilder()
|
|
11
|
+
.update(ClientAlertConfiguration)
|
|
12
|
+
.set({
|
|
13
|
+
status: 'deleted',
|
|
14
|
+
})
|
|
15
|
+
.where('clientId = :clientId', {
|
|
16
|
+
clientId: params.filters.clientId,
|
|
17
|
+
})
|
|
18
|
+
.andWhere('id IN (:...clientAlertConfigurationIds)', {
|
|
19
|
+
clientAlertConfigurationIds: params.filters.clientAlertConfigurationIds,
|
|
20
|
+
});
|
|
21
|
+
const result = await queryBuilder.execute();
|
|
22
|
+
return result.affected > 0;
|
|
23
|
+
}, 'ClientAlertConfigurationRepository::deleteClientAlertConfiguration');
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=deleteClientAlertConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteClientAlertConfiguration.js","sourceRoot":"","sources":["../../../src/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAKzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,EAClD,cAA8B,EAC9B,MAA6C,EAC7C,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,EAAE;QACvF,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,kGAAkG,CACnG,CAAA;QACD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,mCAAmC,GAAG,UAAU,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAA;QAE9F,MAAM,YAAY,GAAG,mCAAmC;aACrD,kBAAkB,EAAE;aACpB,MAAM,CAAC,wBAAwB,CAAC;aAChC,GAAG,CAAC;YACH,MAAM,EAAE,SAAS;SAClB,CAAC;aACD,KAAK,CAAC,sBAAsB,EAAE;YAC7B,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ;SAClC,CAAC;aACD,QAAQ,CAAC,yCAAyC,EAAE;YACnD,2BAA2B,EAAE,MAAM,CAAC,OAAO,CAAC,2BAA2B;SACxE,CAAC,CAAA;QAEJ,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,oEAAoE,CAAC,CAAA;AAC1E,CAAC,CAAA"}
|