@spytecgps/nova-orm 1.2.29-rc7 → 1.2.29-rc8
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.js +2 -1
- package/dist/entities/acumaticaAmazonProduct.js.map +1 -0
- package/dist/entities/acumaticaImeiIccidData.js +4 -2
- package/dist/entities/acumaticaImeiIccidData.js.map +1 -0
- package/dist/entities/acumaticaOrderShipmentDetails.js +5 -3
- package/dist/entities/acumaticaOrderShipmentDetails.js.map +1 -0
- package/dist/entities/acumaticaShipment.js +1 -0
- package/dist/entities/acumaticaShipment.js.map +1 -0
- package/dist/entities/acumaticaShipmentAmazon.js +1 -0
- package/dist/entities/acumaticaShipmentAmazon.js.map +1 -0
- package/dist/entities/aempToken.d.ts +1 -0
- package/dist/entities/aempToken.js +1 -0
- package/dist/entities/aempToken.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js +82 -0
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js +147 -0
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js +42 -0
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js.map +1 -0
- package/dist/entities/alert.d.ts +1 -0
- package/dist/entities/alert.js +11 -3
- package/dist/entities/alert.js.map +1 -0
- package/dist/entities/alertType.js +1 -0
- package/dist/entities/alertType.js.map +1 -0
- package/dist/entities/appFeatureType.js +1 -0
- package/dist/entities/appFeatureType.js.map +1 -0
- package/dist/entities/{deviceTypeEvent.js → asinPromotion.js} +24 -19
- package/dist/entities/asinPromotion.js.map +1 -0
- package/dist/entities/assetCategory.js +1 -0
- package/dist/entities/assetCategory.js.map +1 -0
- package/dist/entities/beaconBleMesh.js +63 -0
- package/dist/entities/beaconBleMesh.js.map +1 -0
- package/dist/entities/billing.js +1 -0
- package/dist/entities/billing.js.map +1 -0
- package/dist/entities/billingCustomerAmazon.js +83 -0
- package/dist/entities/billingCustomerAmazon.js.map +1 -0
- package/dist/entities/billingCustomerBraintree.js +1 -0
- package/dist/entities/billingCustomerBraintree.js.map +1 -0
- package/dist/entities/billingDeviceHistory.js +1 -0
- package/dist/entities/billingDeviceHistory.js.map +1 -0
- package/dist/entities/billingDeviceTypePlan.js +64 -0
- package/dist/entities/billingDeviceTypePlan.js.map +1 -0
- package/dist/entities/billingHubspotPaymentLog.js +1 -0
- package/dist/entities/billingHubspotPaymentLog.js.map +1 -0
- package/dist/entities/billingKlarnaCustomer.js +1 -0
- package/dist/entities/billingKlarnaCustomer.js.map +1 -0
- package/dist/entities/billingKlarnaOrder.js +1 -0
- package/dist/entities/billingKlarnaOrder.js.map +1 -0
- package/dist/entities/billingPlanFeatures.js +37 -0
- package/dist/entities/billingPlanFeatures.js.map +1 -0
- package/dist/entities/billingPlans.js +127 -0
- package/dist/entities/billingPlans.js.map +1 -0
- package/dist/entities/billingStatusHistoryBraintree.js +1 -0
- package/dist/entities/billingStatusHistoryBraintree.js.map +1 -0
- package/dist/entities/billingSubscriptionAmazon.js +162 -0
- package/dist/entities/billingSubscriptionAmazon.js.map +1 -0
- package/dist/entities/billingSubscriptionBraintree.js +1 -0
- package/dist/entities/billingSubscriptionBraintree.js.map +1 -0
- package/dist/entities/blacklist.js +1 -0
- package/dist/entities/blacklist.js.map +1 -0
- package/dist/entities/blacklistType.js +1 -0
- package/dist/entities/blacklistType.js.map +1 -0
- package/dist/entities/bleMesh.js +74 -0
- package/dist/entities/bleMesh.js.map +1 -0
- package/dist/entities/bleMeshConfiguration.js +1 -1
- package/dist/entities/bleMeshConfiguration.js.map +1 -0
- package/dist/entities/boundary.js +2 -0
- package/dist/entities/boundary.js.map +1 -0
- package/dist/entities/boundaryEvent.d.ts +1 -0
- package/dist/entities/boundaryEvent.js +1 -0
- package/dist/entities/boundaryEvent.js.map +1 -0
- package/dist/entities/cellTower.js +1 -0
- package/dist/entities/cellTower.js.map +1 -0
- package/dist/entities/client.d.ts +1 -0
- package/dist/entities/client.js +1 -6
- package/dist/entities/client.js.map +1 -0
- package/dist/entities/clientAlertConfiguration.js +90 -0
- package/dist/entities/clientAlertConfiguration.js.map +1 -0
- package/dist/entities/clientAlertRecipient.d.ts +1 -0
- package/dist/entities/clientAlertRecipient.js +98 -0
- package/dist/entities/clientAlertRecipient.js.map +1 -0
- package/dist/entities/clientAppFeature.js +1 -0
- package/dist/entities/clientAppFeature.js.map +1 -0
- package/dist/entities/clientConfiguration.js +14 -2
- package/dist/entities/clientConfiguration.js.map +1 -0
- package/dist/entities/clientDeviceSetting.js +6 -0
- package/dist/entities/clientDeviceSetting.js.map +1 -0
- package/dist/entities/clientIngestorConfiguration.js +48 -0
- package/dist/entities/clientIngestorConfiguration.js.map +1 -0
- package/dist/entities/clientType.js +1 -0
- package/dist/entities/clientType.js.map +1 -0
- package/dist/entities/country.js +3 -1
- package/dist/entities/country.js.map +1 -0
- package/dist/entities/customerAttribute.js +29 -0
- package/dist/entities/customerAttribute.js.map +1 -0
- package/dist/entities/dataExport.d.ts +1 -0
- package/dist/entities/dataExport.js +74 -0
- package/dist/entities/dataExport.js.map +1 -0
- package/dist/entities/dataSourceType.js +1 -0
- package/dist/entities/dataSourceType.js.map +1 -0
- package/dist/entities/deactivation.js +1 -0
- package/dist/entities/deactivation.js.map +1 -0
- package/dist/entities/deactivationReason.js +1 -0
- package/dist/entities/deactivationReason.js.map +1 -0
- package/dist/entities/device.js +14 -0
- package/dist/entities/device.js.map +1 -0
- package/dist/entities/deviceBehavior.js +1 -0
- package/dist/entities/deviceBehavior.js.map +1 -0
- package/dist/entities/deviceBleMesh.js +78 -0
- package/dist/entities/deviceBleMesh.js.map +1 -0
- package/dist/entities/deviceBleMeshUpdateTask.d.ts +1 -0
- package/dist/entities/deviceBleMeshUpdateTask.js +83 -0
- package/dist/entities/deviceBleMeshUpdateTask.js.map +1 -0
- package/dist/entities/deviceChangesHistory.js +48 -0
- package/dist/entities/deviceChangesHistory.js.map +1 -0
- package/dist/entities/deviceCustomConfiguration.js +12 -2
- package/dist/entities/deviceCustomConfiguration.js.map +1 -0
- package/dist/entities/deviceHistory.js +1 -0
- package/dist/entities/deviceHistory.js.map +1 -0
- package/dist/entities/deviceModelListener.js +1 -0
- package/dist/entities/deviceModelListener.js.map +1 -0
- package/dist/entities/devicePairing.js +16 -0
- package/dist/entities/devicePairing.js.map +1 -0
- package/dist/entities/devicePromotion.js +6 -73
- package/dist/entities/devicePromotion.js.map +1 -0
- package/dist/entities/deviceReplacement.d.ts +1 -0
- package/dist/entities/deviceReplacement.js +1 -0
- package/dist/entities/deviceReplacement.js.map +1 -0
- package/dist/entities/deviceStatus.js +61 -0
- package/dist/entities/deviceStatus.js.map +1 -0
- package/dist/entities/deviceTask.js +1 -0
- package/dist/entities/deviceTask.js.map +1 -0
- package/dist/entities/deviceType.js +2 -7
- package/dist/entities/deviceType.js.map +1 -0
- package/dist/entities/deviceTypeFeature.js +1 -0
- package/dist/entities/deviceTypeFeature.js.map +1 -0
- package/dist/entities/deviceTypeFirmware.js +1 -0
- package/dist/entities/deviceTypeFirmware.js.map +1 -0
- package/dist/entities/deviceTypePromotion.js +37 -0
- package/dist/entities/deviceTypePromotion.js.map +1 -0
- package/dist/entities/emailDomain.js +39 -0
- package/dist/entities/emailDomain.js.map +1 -0
- package/dist/entities/entityTag.js +41 -17
- package/dist/entities/entityTag.js.map +1 -0
- package/dist/entities/entityType.js +1 -0
- package/dist/entities/entityType.js.map +1 -0
- package/dist/entities/feature.js +1 -0
- package/dist/entities/feature.js.map +1 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.js +1 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/entities/firmwareUpgradeTask.d.ts +1 -0
- package/dist/entities/firmwareUpgradeTask.js +3 -0
- package/dist/entities/firmwareUpgradeTask.js.map +1 -0
- package/dist/entities/iccidStatus.js +1 -0
- package/dist/entities/iccidStatus.js.map +1 -0
- package/dist/entities/imeiIccidCarrier.js +1 -0
- package/dist/entities/imeiIccidCarrier.js.map +1 -0
- package/dist/entities/imeiIccidHistory.js +1 -0
- package/dist/entities/imeiIccidHistory.js.map +1 -0
- package/dist/entities/{event.js → imeiIccidImport.js} +16 -20
- package/dist/entities/imeiIccidImport.js.map +1 -0
- package/dist/entities/index.js +29 -8
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/industry.js +1 -0
- package/dist/entities/industry.js.map +1 -0
- package/dist/entities/latestPosition.d.ts +1 -0
- package/dist/entities/latestPosition.js +6 -0
- package/dist/entities/latestPosition.js.map +1 -0
- package/dist/entities/latestPositionMigration.d.ts +1 -0
- package/dist/entities/latestPositionMigration.js +1 -0
- package/dist/entities/latestPositionMigration.js.map +1 -0
- package/dist/entities/latestPositionMigrationBatch.js +1 -0
- package/dist/entities/latestPositionMigrationBatch.js.map +1 -0
- package/dist/entities/latestUserAppInfo.d.ts +1 -0
- package/dist/entities/latestUserAppInfo.js +43 -0
- package/dist/entities/latestUserAppInfo.js.map +1 -0
- package/dist/entities/liveLink.js +126 -0
- package/dist/entities/liveLink.js.map +1 -0
- package/dist/entities/magento2Gps.js +7 -4
- package/dist/entities/magento2Gps.js.map +1 -0
- package/dist/entities/magento2Plan.js +1 -0
- package/dist/entities/magento2Plan.js.map +1 -0
- package/dist/entities/marketplacePromotion.js +37 -0
- package/dist/entities/marketplacePromotion.js.map +1 -0
- package/dist/entities/mobileNetwork.js +1 -0
- package/dist/entities/mobileNetwork.js.map +1 -0
- package/dist/entities/notificationRecipient.d.ts +1 -0
- package/dist/entities/notificationRecipient.js +29 -1
- package/dist/entities/notificationRecipient.js.map +1 -0
- package/dist/entities/orderShipmentInternational.js +67 -0
- package/dist/entities/orderShipmentInternational.js.map +1 -0
- package/dist/entities/organization.d.ts +1 -0
- package/dist/entities/organization.js +1 -0
- package/dist/entities/organization.js.map +1 -0
- package/dist/entities/plan.js +1 -0
- package/dist/entities/plan.js.map +1 -0
- package/dist/entities/position.d.ts +1 -0
- package/dist/entities/position.js +6 -2
- package/dist/entities/position.js.map +1 -0
- package/dist/entities/positionMigration.d.ts +1 -0
- package/dist/entities/positionMigration.js +1 -0
- package/dist/entities/positionMigration.js.map +1 -0
- package/dist/entities/positionMigrationBatch.js +1 -0
- package/dist/entities/positionMigrationBatch.js.map +1 -0
- package/dist/entities/promotion.js +47 -45
- package/dist/entities/promotion.js.map +1 -0
- package/dist/entities/promotionHistory.js +90 -0
- package/dist/entities/promotionHistory.js.map +1 -0
- package/dist/entities/securityRole.js +8 -1
- package/dist/entities/securityRole.js.map +1 -0
- package/dist/entities/serviceProvider.js +1 -0
- package/dist/entities/serviceProvider.js.map +1 -0
- package/dist/entities/serviceProviderProduct.js +2 -1
- package/dist/entities/serviceProviderProduct.js.map +1 -0
- package/dist/entities/serviceProviderProductNetwork.js +1 -0
- package/dist/entities/serviceProviderProductNetwork.js.map +1 -0
- package/dist/entities/serviceProviderProductType.js +1 -0
- package/dist/entities/serviceProviderProductType.js.map +1 -0
- package/dist/entities/sim.js +1 -0
- package/dist/entities/sim.js.map +1 -0
- package/dist/entities/subscriptionHistoricalPrice.js +151 -0
- package/dist/entities/subscriptionHistoricalPrice.js.map +1 -0
- package/dist/entities/tag.js +68 -0
- package/dist/entities/tag.js.map +1 -0
- package/dist/entities/task.js +41 -2
- package/dist/entities/task.js.map +1 -0
- package/dist/entities/taskSchedule.js +7 -1
- package/dist/entities/taskSchedule.js.map +1 -0
- package/dist/entities/trip.d.ts +1 -0
- package/dist/entities/trip.js +12 -0
- package/dist/entities/trip.js.map +1 -0
- package/dist/entities/tripCompletionStatus.js +1 -0
- package/dist/entities/tripCompletionStatus.js.map +1 -0
- package/dist/entities/tripPosition.js +1 -0
- package/dist/entities/tripPosition.js.map +1 -0
- package/dist/entities/user.d.ts +1 -0
- package/dist/entities/user.js +23 -1
- package/dist/entities/user.js.map +1 -0
- package/dist/entities/userActivation.d.ts +1 -0
- package/dist/entities/userActivation.js +1 -0
- package/dist/entities/userActivation.js.map +1 -0
- package/dist/entities/userActivationDevice.js +3 -2
- package/dist/entities/userActivationDevice.js.map +1 -0
- package/dist/entities/userActivationEvent.d.ts +1 -0
- package/dist/entities/userActivationEvent.js +1 -0
- package/dist/entities/userActivationEvent.js.map +1 -0
- package/dist/entities/userActivationMetric.d.ts +1 -0
- package/dist/entities/userActivationMetric.js +1 -0
- package/dist/entities/userActivationMetric.js.map +1 -0
- package/dist/entities/userAlertComplain.d.ts +1 -0
- package/dist/entities/userAlertComplain.js +1 -0
- package/dist/entities/userAlertComplain.js.map +1 -0
- package/dist/entities/userAlertConfiguration.d.ts +1 -0
- package/dist/entities/userAlertConfiguration.js +37 -3
- package/dist/entities/userAlertConfiguration.js.map +1 -0
- package/dist/entities/userAlertNotificationsConfig.d.ts +1 -0
- package/dist/entities/userAlertNotificationsConfig.js +91 -0
- package/dist/entities/userAlertNotificationsConfig.js.map +1 -0
- package/dist/entities/userAppFeedback.d.ts +1 -0
- package/dist/entities/userAppFeedback.js +1 -0
- package/dist/entities/userAppFeedback.js.map +1 -0
- package/dist/entities/userAppIncident.d.ts +1 -0
- package/dist/entities/userAppIncident.js +1 -0
- package/dist/entities/userAppIncident.js.map +1 -0
- package/dist/entities/userConfiguration.d.ts +1 -0
- package/dist/entities/userConfiguration.js +1 -0
- package/dist/entities/userConfiguration.js.map +1 -0
- package/dist/entities/userDataDeletionRequest.d.ts +1 -0
- package/dist/entities/userDataDeletionRequest.js +3 -1
- package/dist/entities/userDataDeletionRequest.js.map +1 -0
- package/dist/entities/userDeviceBehaviorTask.d.ts +1 -0
- package/dist/entities/userDeviceBehaviorTask.js +1 -0
- package/dist/entities/userDeviceBehaviorTask.js.map +1 -0
- package/dist/entities/userInvitation.js +14 -1
- package/dist/entities/userInvitation.js.map +1 -0
- package/dist/entities/userRatingRequest.d.ts +1 -0
- package/dist/entities/userRatingRequest.js +1 -0
- package/dist/entities/userRatingRequest.js.map +1 -0
- package/dist/entities/userRegistrationAttempt.d.ts +1 -0
- package/dist/entities/userRegistrationAttempt.js +1 -0
- package/dist/entities/userRegistrationAttempt.js.map +1 -0
- package/dist/entities/userSecurityRole.d.ts +1 -0
- package/dist/entities/userSecurityRole.js +14 -1
- package/dist/entities/userSecurityRole.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -0
- package/dist/migration/1684483704434-addLowerCaseIndex.js +1 -0
- package/dist/migration/1684483704434-addLowerCaseIndex.js.map +1 -0
- package/dist/novaDataSource.js +99 -16
- package/dist/novaDataSource.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +15 -3
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js +23 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +9 -3
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js.map +1 -0
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +8 -2
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js.map +1 -0
- package/dist/repositories/acumatica/getOrderShipmentInternational.js +23 -0
- package/dist/repositories/acumatica/getOrderShipmentInternational.js.map +1 -0
- package/dist/repositories/acumatica/index.js +32 -3
- package/dist/repositories/acumatica/index.js.map +1 -0
- package/dist/repositories/aempToken/createAempToken.js +1 -0
- package/dist/repositories/aempToken/createAempToken.js.map +1 -0
- package/dist/repositories/aempToken/deleteAempTokens.js +4 -3
- package/dist/repositories/aempToken/deleteAempTokens.js.map +1 -0
- package/dist/repositories/aempToken/getAempTokens.js +12 -4
- package/dist/repositories/aempToken/getAempTokens.js.map +1 -0
- package/dist/repositories/aempToken/index.js +4 -3
- package/dist/repositories/aempToken/index.js.map +1 -0
- package/dist/repositories/alertTypes/getAlertTypes.js +8 -2
- package/dist/repositories/alertTypes/getAlertTypes.js.map +1 -0
- package/dist/repositories/alertTypes/index.js +2 -1
- package/dist/repositories/alertTypes/index.js.map +1 -0
- package/dist/repositories/alerts/createAlert.js +5 -0
- package/dist/repositories/alerts/createAlert.js.map +1 -0
- package/dist/repositories/alerts/createUserAlertComplain.js +1 -0
- package/dist/repositories/alerts/createUserAlertComplain.js.map +1 -0
- package/dist/repositories/alerts/getAlertsReportByClient.js +5 -0
- package/dist/repositories/alerts/getAlertsReportByClient.js.map +1 -0
- package/dist/repositories/alerts/getAlertsReportByUser.js +5 -0
- package/dist/repositories/alerts/getAlertsReportByUser.js.map +1 -0
- package/dist/repositories/alerts/index.js +5 -4
- package/dist/repositories/alerts/index.js.map +1 -0
- package/dist/repositories/appFeatures/createAppFeatureType.js +1 -0
- package/dist/repositories/appFeatures/createAppFeatureType.js.map +1 -0
- package/dist/repositories/appFeatures/createClientAppFeature.js +1 -0
- package/dist/repositories/appFeatures/createClientAppFeature.js.map +1 -0
- package/dist/repositories/appFeatures/getClientAppFeatures.js +8 -2
- package/dist/repositories/appFeatures/getClientAppFeatures.js.map +1 -0
- package/dist/repositories/appFeatures/index.js +4 -3
- package/dist/repositories/appFeatures/index.js.map +1 -0
- package/dist/repositories/assetCategories/getAssetCategories.js +15 -4
- package/dist/repositories/assetCategories/getAssetCategories.js.map +1 -0
- package/dist/repositories/assetCategories/index.js +4 -3
- package/dist/repositories/assetCategories/index.js.map +1 -0
- package/dist/repositories/baseRepository.js +16 -1
- package/dist/repositories/baseRepository.js.map +1 -0
- package/dist/repositories/billing/createBilling.js +1 -0
- package/dist/repositories/billing/createBilling.js.map +1 -0
- package/dist/repositories/billing/createBillingDeviceHistory.js +2 -1
- package/dist/repositories/billing/createBillingDeviceHistory.js.map +1 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js +1 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js.map +1 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +1 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js.map +1 -0
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js +8 -2
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js.map +1 -0
- package/dist/repositories/billing/getBillingDeviceTypePlans.js +22 -0
- package/dist/repositories/billing/getBillingDeviceTypePlans.js.map +1 -0
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +8 -2
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js.map +1 -0
- package/dist/repositories/billing/getBillingPlans.js +68 -0
- package/dist/repositories/billing/getBillingPlans.js.map +1 -0
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +8 -2
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js.map +1 -0
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +10 -4
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js.map +1 -0
- package/dist/repositories/billing/getBillings.js +12 -6
- package/dist/repositories/billing/getBillings.js.map +1 -0
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js +49 -0
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js.map +1 -0
- package/dist/repositories/billing/getCanceledImeis.js +19 -7
- package/dist/repositories/billing/getCanceledImeis.js.map +1 -0
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +39 -19
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js.map +1 -0
- package/dist/repositories/billing/getChurnStatusByClientId.js +14 -4
- package/dist/repositories/billing/getChurnStatusByClientId.js.map +1 -0
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +8 -2
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js.map +1 -0
- package/dist/repositories/billing/getMagentoPlan.js +8 -2
- package/dist/repositories/billing/getMagentoPlan.js.map +1 -0
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js +8 -2
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js.map +1 -0
- package/dist/repositories/billing/index.js +93 -21
- package/dist/repositories/billing/index.js.map +1 -0
- package/dist/repositories/billing/updateBilling.js +1 -0
- package/dist/repositories/billing/updateBilling.js.map +1 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.js +1 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.js.map +1 -0
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js +11 -1
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js.map +1 -0
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js +67 -0
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js.map +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js.map +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js.map +1 -0
- package/dist/repositories/billing/upsertBillingPlans.js +54 -0
- package/dist/repositories/billing/upsertBillingPlans.js.map +1 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +1 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js.map +1 -0
- package/dist/repositories/blacklist/deleteBlackList.js +20 -0
- package/dist/repositories/blacklist/deleteBlackList.js.map +1 -0
- package/dist/repositories/blacklist/getBlacklists.js +8 -2
- package/dist/repositories/blacklist/getBlacklists.js.map +1 -0
- package/dist/repositories/blacklist/index.js +53 -1
- package/dist/repositories/blacklist/index.js.map +1 -0
- package/dist/repositories/blacklist/updateBlackList.js +31 -0
- package/dist/repositories/blacklist/updateBlackList.js.map +1 -0
- package/dist/repositories/blacklist/upsertBlackList.js +41 -0
- package/dist/repositories/blacklist/upsertBlackList.js.map +1 -0
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js +29 -0
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js +38 -0
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/createBLEMesh.js +19 -0
- package/dist/repositories/bleMesh/createBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js +47 -0
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js.map +1 -0
- package/dist/repositories/bleMesh/getBLEMeshes.js +46 -0
- package/dist/repositories/bleMesh/getBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js +44 -0
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js +56 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js.map +1 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js +50 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/index.js +269 -0
- package/dist/repositories/bleMesh/index.js.map +1 -0
- package/dist/repositories/bleMesh/removeBLEMesh.js +22 -0
- package/dist/repositories/bleMesh/removeBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js +21 -0
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js +28 -0
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js +25 -0
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateBLEMesh.js +32 -0
- package/dist/repositories/bleMesh/updateBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js +27 -0
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js +30 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js +27 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js +1 -0
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js +1 -0
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js +8 -2
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/index.js +8 -4
- package/dist/repositories/bleMeshConfiguration/index.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js +1 -0
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/boundaries/createBoundary.js +1 -0
- package/dist/repositories/boundaries/createBoundary.js.map +1 -0
- package/dist/repositories/boundaries/deleteBoundary.js +1 -0
- package/dist/repositories/boundaries/deleteBoundary.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesByClientId.js +45 -8
- package/dist/repositories/boundaries/getBoundariesByClientId.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +12 -7
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesReport.js +8 -2
- package/dist/repositories/boundaries/getBoundariesReport.js.map +1 -0
- package/dist/repositories/boundaries/getBoundaryById.js +14 -5
- package/dist/repositories/boundaries/getBoundaryById.js.map +1 -0
- package/dist/repositories/boundaries/index.js +10 -9
- package/dist/repositories/boundaries/index.js.map +1 -0
- package/dist/repositories/boundaries/processBoundaryEvent.js +1 -0
- package/dist/repositories/boundaries/processBoundaryEvent.js.map +1 -0
- package/dist/repositories/boundaries/updateBoundary.js +1 -0
- package/dist/repositories/boundaries/updateBoundary.js.map +1 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.js +1 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js +25 -0
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js +25 -0
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js +44 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js +40 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js +73 -0
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/index.js +139 -0
- package/dist/repositories/clientAlertConfiguration/index.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js +51 -0
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js +175 -0
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js +43 -0
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clients/createClient.js +1 -0
- package/dist/repositories/clients/createClient.js.map +1 -0
- package/dist/repositories/clients/createClientConfiguration.js +3 -0
- package/dist/repositories/clients/createClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/createClientIngestorConfiguration.js +21 -0
- package/dist/repositories/clients/createClientIngestorConfiguration.js.map +1 -0
- package/dist/repositories/clients/createCustomerAttribute.js +7 -1
- package/dist/repositories/clients/createCustomerAttribute.js.map +1 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.js +1 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.js.map +1 -0
- package/dist/repositories/clients/getClient.js +8 -2
- package/dist/repositories/clients/getClient.js.map +1 -0
- package/dist/repositories/clients/getClientConfiguration.js +23 -6
- package/dist/repositories/clients/getClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/getClientIngestorConfigurations.js +25 -0
- package/dist/repositories/clients/getClientIngestorConfigurations.js.map +1 -0
- package/dist/repositories/clients/getClients.js +8 -2
- package/dist/repositories/clients/getClients.js.map +1 -0
- package/dist/repositories/clients/getCustomerAttribute.js +13 -4
- package/dist/repositories/clients/getCustomerAttribute.js.map +1 -0
- package/dist/repositories/clients/index.js +47 -11
- package/dist/repositories/clients/index.js.map +1 -0
- package/dist/repositories/clients/updateClient.js +1 -0
- package/dist/repositories/clients/updateClient.js.map +1 -0
- package/dist/repositories/clients/updateClientConfiguration.js +8 -10
- package/dist/repositories/clients/updateClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/updateCustomerAttribute.js +7 -7
- package/dist/repositories/clients/updateCustomerAttribute.js.map +1 -0
- package/dist/repositories/countries/getCountries.js +8 -2
- package/dist/repositories/countries/getCountries.js.map +1 -0
- package/dist/repositories/countries/getCountry.js +10 -4
- package/dist/repositories/countries/getCountry.js.map +1 -0
- package/dist/repositories/countries/index.js +3 -2
- package/dist/repositories/countries/index.js.map +1 -0
- package/dist/repositories/dataExports/createDataExports.js +32 -0
- package/dist/repositories/dataExports/createDataExports.js.map +1 -0
- package/dist/repositories/dataExports/getDataExports.js +47 -0
- package/dist/repositories/dataExports/getDataExports.js.map +1 -0
- package/dist/repositories/dataExports/index.js +59 -0
- package/dist/repositories/dataExports/index.js.map +1 -0
- package/dist/repositories/dataExports/updateDataExports.js +26 -0
- package/dist/repositories/dataExports/updateDataExports.js.map +1 -0
- package/dist/repositories/deactivations/createDeactivation.js +1 -0
- package/dist/repositories/deactivations/createDeactivation.js.map +1 -0
- package/dist/repositories/deactivations/getDeactivationReasons.js +8 -2
- package/dist/repositories/deactivations/getDeactivationReasons.js.map +1 -0
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js +8 -2
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js.map +1 -0
- package/dist/repositories/deactivations/index.js +4 -3
- package/dist/repositories/deactivations/index.js.map +1 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +1 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +8 -2
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +9 -3
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +8 -2
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js.map +1 -0
- package/dist/repositories/deviceBehaviors/index.js +7 -42
- package/dist/repositories/deviceBehaviors/index.js.map +1 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +1 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js.map +1 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +1 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js.map +1 -0
- package/dist/repositories/devicePairings/createDevicePairing.js +1 -0
- package/dist/repositories/devicePairings/createDevicePairing.js.map +1 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.js +1 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairings.js +8 -2
- package/dist/repositories/devicePairings/getDevicePairings.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js +28 -0
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js +8 -2
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js.map +1 -0
- package/dist/repositories/devicePairings/index.js +22 -5
- package/dist/repositories/devicePairings/index.js.map +1 -0
- package/dist/repositories/devicePairings/updateDevicePairing.js +5 -1
- package/dist/repositories/devicePairings/updateDevicePairing.js.map +1 -0
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js +207 -0
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js.map +1 -0
- package/dist/repositories/deviceStatus/getDeviceStatuses.js +88 -0
- package/dist/repositories/deviceStatus/getDeviceStatuses.js.map +1 -0
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js +42 -0
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js.map +1 -0
- package/dist/repositories/deviceStatus/index.js +63 -0
- package/dist/repositories/deviceStatus/index.js.map +1 -0
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js +47 -0
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js +20 -0
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js +22 -0
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js +25 -0
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/index.js +48 -0
- package/dist/repositories/deviceTypeFeature/index.js.map +1 -0
- package/dist/repositories/devices/addDeviceChangesHistory.js +35 -0
- package/dist/repositories/devices/addDeviceChangesHistory.js.map +1 -0
- package/dist/repositories/devices/allImeisAreActiveForClient.js +8 -2
- package/dist/repositories/devices/allImeisAreActiveForClient.js.map +1 -0
- package/dist/repositories/devices/createClientDeviceSetting.js +3 -1
- package/dist/repositories/devices/createClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/createDevice.js +2 -1
- package/dist/repositories/devices/createDevice.js.map +1 -0
- package/dist/repositories/devices/createDeviceReplacement.js +2 -1
- package/dist/repositories/devices/createDeviceReplacement.js.map +1 -0
- package/dist/repositories/devices/createDeviceType.js +2 -1
- package/dist/repositories/devices/createDeviceType.js.map +1 -0
- package/dist/repositories/devices/createImeiIccidCarrier.js +19 -0
- package/dist/repositories/devices/createImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/deleteDevice.js +2 -1
- package/dist/repositories/devices/deleteDevice.js.map +1 -0
- package/dist/repositories/devices/generateDeviceIdentifierKey.js +2 -1
- package/dist/repositories/devices/generateDeviceIdentifierKey.js.map +1 -0
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +13 -3
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js.map +1 -0
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +8 -2
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js.map +1 -0
- package/dist/repositories/devices/getClientDeviceSetting.js +8 -2
- package/dist/repositories/devices/getClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/getClientDeviceSettings.js +8 -2
- package/dist/repositories/devices/getClientDeviceSettings.js.map +1 -0
- package/dist/repositories/devices/getDevice.js +8 -2
- package/dist/repositories/devices/getDevice.js.map +1 -0
- package/dist/repositories/devices/getDeviceChangesHistory.js +28 -0
- package/dist/repositories/devices/getDeviceChangesHistory.js.map +1 -0
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js +24 -0
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js.map +1 -0
- package/dist/repositories/devices/getDeviceCustomConfig.js +8 -2
- package/dist/repositories/devices/getDeviceCustomConfig.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypeByImei.js +8 -2
- package/dist/repositories/devices/getDeviceTypeByImei.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypes.js +41 -18
- package/dist/repositories/devices/getDeviceTypes.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +8 -2
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js.map +1 -0
- package/dist/repositories/devices/getDeviceWithUsersInfo.js +8 -2
- package/dist/repositories/devices/getDeviceWithUsersInfo.js.map +1 -0
- package/dist/repositories/devices/getDevices.js +56 -7
- package/dist/repositories/devices/getDevices.js.map +1 -0
- package/dist/repositories/devices/getDevicesCountByStatus.js +34 -0
- package/dist/repositories/devices/getDevicesCountByStatus.js.map +1 -0
- package/dist/repositories/devices/getFilteredImeisWithStatus.js +8 -2
- package/dist/repositories/devices/getFilteredImeisWithStatus.js.map +1 -0
- package/dist/repositories/devices/getIccidStatus.js +8 -2
- package/dist/repositories/devices/getIccidStatus.js.map +1 -0
- package/dist/repositories/devices/getImeiIccidCarrier.js +8 -2
- package/dist/repositories/devices/getImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/getImeiIccidCarriers.js +8 -2
- package/dist/repositories/devices/getImeiIccidCarriers.js.map +1 -0
- package/dist/repositories/devices/getServiceProviderProduct.js +23 -0
- package/dist/repositories/devices/getServiceProviderProduct.js.map +1 -0
- package/dist/repositories/devices/index.js +143 -59
- package/dist/repositories/devices/index.js.map +1 -0
- package/dist/repositories/devices/updateClientDeviceSetting.js +5 -2
- package/dist/repositories/devices/updateClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/updateDevice.js +5 -14
- package/dist/repositories/devices/updateDevice.js.map +1 -0
- package/dist/repositories/devices/updateDeviceType.js +2 -1
- package/dist/repositories/devices/updateDeviceType.js.map +1 -0
- package/dist/repositories/devices/updateIccidStatus.js +2 -1
- package/dist/repositories/devices/updateIccidStatus.js.map +1 -0
- package/dist/repositories/devices/updateImeiIccidCarrier.js +2 -1
- package/dist/repositories/devices/updateImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/upsertDeviceCustomConfig.js +15 -0
- package/dist/repositories/devices/upsertDeviceCustomConfig.js.map +1 -0
- package/dist/repositories/devices/upsertIccidStatus.js +2 -1
- package/dist/repositories/devices/upsertIccidStatus.js.map +1 -0
- package/dist/repositories/entityTags/bulkCreateEntityTag.js +21 -0
- package/dist/repositories/entityTags/bulkCreateEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js +28 -0
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/createEntityTag.js +20 -0
- package/dist/repositories/entityTags/createEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/deleteEntityTag.js +22 -0
- package/dist/repositories/entityTags/deleteEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/deleteEntityTagById.js +13 -0
- package/dist/repositories/entityTags/deleteEntityTagById.js.map +1 -0
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js +38 -0
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js.map +1 -0
- package/dist/repositories/entityTags/getEntityTagById.js +23 -0
- package/dist/repositories/entityTags/getEntityTagById.js.map +1 -0
- package/dist/repositories/entityTags/index.js +104 -0
- package/dist/repositories/entityTags/index.js.map +1 -0
- package/dist/repositories/entityTags/searchEntityTags.js +46 -0
- package/dist/repositories/entityTags/searchEntityTags.js.map +1 -0
- package/dist/repositories/features/createFeature.js +21 -0
- package/dist/repositories/features/createFeature.js.map +1 -0
- package/dist/repositories/features/deleteFeature.js +17 -0
- package/dist/repositories/features/deleteFeature.js.map +1 -0
- package/dist/repositories/features/getFeatures.js +25 -0
- package/dist/repositories/features/getFeatures.js.map +1 -0
- package/dist/repositories/features/index.js +61 -0
- package/dist/repositories/features/index.js.map +1 -0
- package/dist/repositories/features/upsertFeature.js +23 -0
- package/dist/repositories/features/upsertFeature.js.map +1 -0
- package/dist/repositories/firmwares/createDeviceFirmware.js +1 -0
- package/dist/repositories/firmwares/createDeviceFirmware.js.map +1 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +1 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +1 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js.map +1 -0
- package/dist/repositories/firmwares/getDeviceFirmwares.js +28 -20
- package/dist/repositories/firmwares/getDeviceFirmwares.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +8 -2
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +8 -2
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +8 -2
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js.map +1 -0
- package/dist/repositories/firmwares/index.js +10 -9
- package/dist/repositories/firmwares/index.js.map +1 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.js +1 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.js.map +1 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +1 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js.map +1 -0
- package/dist/repositories/index.js +13 -1
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js +27 -0
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/index.js +37 -0
- package/dist/repositories/latestUserAppInfo/index.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js +29 -0
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js.map +1 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js +2 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js.map +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +9 -3
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js.map +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js.map +1 -0
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js +22 -2
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js.map +1 -0
- package/dist/repositories/notificationRecipients/index.js +8 -7
- package/dist/repositories/notificationRecipients/index.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +1 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js.map +1 -0
- package/dist/repositories/positions/createPosition.js +3 -0
- package/dist/repositories/positions/createPosition.js.map +1 -0
- package/dist/repositories/positions/getBatteryReportForDevice.js +47 -0
- package/dist/repositories/positions/getBatteryReportForDevice.js.map +1 -0
- package/dist/repositories/positions/getLatestPositionByImei.js +9 -2
- package/dist/repositories/positions/getLatestPositionByImei.js.map +1 -0
- package/dist/repositories/positions/getPositionsByImei.js +9 -2
- package/dist/repositories/positions/getPositionsByImei.js.map +1 -0
- package/dist/repositories/positions/getPositionsReportByClient.js +10 -1
- package/dist/repositories/positions/getPositionsReportByClient.js.map +1 -0
- package/dist/repositories/positions/index.js +17 -8
- package/dist/repositories/positions/index.js.map +1 -0
- package/dist/repositories/positions/mapping/mapToPositionReport.js +21 -0
- package/dist/repositories/positions/mapping/mapToPositionReport.js.map +1 -0
- package/dist/repositories/positions/upsertLatestPosition.js +1 -0
- package/dist/repositories/positions/upsertLatestPosition.js.map +1 -0
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js +15 -0
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js +15 -0
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/createPromotion.js +30 -0
- package/dist/repositories/promotions/createPromotion.js.map +1 -0
- package/dist/repositories/promotions/createPromotionHistory.js +18 -0
- package/dist/repositories/promotions/createPromotionHistory.js.map +1 -0
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js +22 -0
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/deleteMarketplacePromotion.js +24 -0
- package/dist/repositories/promotions/deleteMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/getDeviceTypePromotion.js +28 -0
- package/dist/repositories/promotions/getDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/getMarketplacePromotion.js +28 -0
- package/dist/repositories/promotions/getMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/getPromotions.js +64 -0
- package/dist/repositories/promotions/getPromotions.js.map +1 -0
- package/dist/repositories/promotions/index.js +140 -0
- package/dist/repositories/promotions/index.js.map +1 -0
- package/dist/repositories/promotions/promotionValidator.js +17 -0
- package/dist/repositories/promotions/promotionValidator.js.map +1 -0
- package/dist/repositories/promotions/updatePromotion.js +36 -0
- package/dist/repositories/promotions/updatePromotion.js.map +1 -0
- package/dist/repositories/security/createUserRole.js +1 -0
- package/dist/repositories/security/createUserRole.js.map +1 -0
- package/dist/repositories/security/getAllRoles.js +15 -4
- package/dist/repositories/security/getAllRoles.js.map +1 -0
- package/dist/repositories/security/getUserRoles.js +14 -5
- package/dist/repositories/security/getUserRoles.js.map +1 -0
- package/dist/repositories/security/getUserRolesByClientId.js +17 -8
- package/dist/repositories/security/getUserRolesByClientId.js.map +1 -0
- package/dist/repositories/security/index.js +11 -10
- package/dist/repositories/security/index.js.map +1 -0
- package/dist/repositories/security/removeUserRoles.js +1 -0
- package/dist/repositories/security/removeUserRoles.js.map +1 -0
- package/dist/repositories/security/updateUserRole.js +1 -0
- package/dist/repositories/security/updateUserRole.js.map +1 -0
- package/dist/repositories/security/userIsAdminOrOwner.js +15 -9
- package/dist/repositories/security/userIsAdminOrOwner.js.map +1 -0
- package/dist/repositories/security/userIsInRole.js +13 -8
- package/dist/repositories/security/userIsInRole.js.map +1 -0
- package/dist/repositories/tags/bulkCreateTags.js +25 -0
- package/dist/repositories/tags/bulkCreateTags.js.map +1 -0
- package/dist/repositories/tags/createTag.js +21 -0
- package/dist/repositories/tags/createTag.js.map +1 -0
- package/dist/repositories/tags/deleteTag.js +20 -0
- package/dist/repositories/tags/deleteTag.js.map +1 -0
- package/dist/repositories/tags/index.js +83 -0
- package/dist/repositories/tags/index.js.map +1 -0
- package/dist/repositories/tags/searchTags.js +44 -0
- package/dist/repositories/tags/searchTags.js.map +1 -0
- package/dist/repositories/tags/searchTagsByUser.js +46 -0
- package/dist/repositories/tags/searchTagsByUser.js.map +1 -0
- package/dist/repositories/tags/updateTag.js +32 -0
- package/dist/repositories/tags/updateTag.js.map +1 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.js +1 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/completeTask.js +12 -2
- package/dist/repositories/tasks/completeTask.js.map +1 -0
- package/dist/repositories/tasks/createTask.js +1 -0
- package/dist/repositories/tasks/createTask.js.map +1 -0
- package/dist/repositories/tasks/createTaskSchedule.js +1 -0
- package/dist/repositories/tasks/createTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/deleteTask.js +1 -0
- package/dist/repositories/tasks/deleteTask.js.map +1 -0
- package/dist/repositories/tasks/deleteTaskSchedule.js +1 -0
- package/dist/repositories/tasks/deleteTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js +1 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/getDeviceTasks.js +8 -2
- package/dist/repositories/tasks/getDeviceTasks.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedule.js +22 -10
- package/dist/repositories/tasks/getTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedules.js +35 -8
- package/dist/repositories/tasks/getTaskSchedules.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedulesCount.js +26 -7
- package/dist/repositories/tasks/getTaskSchedulesCount.js.map +1 -0
- package/dist/repositories/tasks/getTasks.js +70 -5
- package/dist/repositories/tasks/getTasks.js.map +1 -0
- package/dist/repositories/tasks/getTasksCount.js +18 -2
- package/dist/repositories/tasks/getTasksCount.js.map +1 -0
- package/dist/repositories/tasks/index.js +20 -17
- package/dist/repositories/tasks/index.js.map +1 -0
- package/dist/repositories/tasks/setTaskAsPastDue.js +1 -0
- package/dist/repositories/tasks/setTaskAsPastDue.js.map +1 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.js +1 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/updateTask.js +1 -0
- package/dist/repositories/tasks/updateTask.js.map +1 -0
- package/dist/repositories/tasks/updateTaskSchedule.js +1 -0
- package/dist/repositories/tasks/updateTaskSchedule.js.map +1 -0
- package/dist/repositories/trips/createTrip.js +2 -1
- package/dist/repositories/trips/createTrip.js.map +1 -0
- package/dist/repositories/trips/getDeviceTripConfiguration.js +52 -0
- package/dist/repositories/trips/getDeviceTripConfiguration.js.map +1 -0
- package/dist/repositories/trips/getTripById.js +13 -6
- package/dist/repositories/trips/getTripById.js.map +1 -0
- package/dist/repositories/trips/getTrips.js +74 -14
- package/dist/repositories/trips/getTrips.js.map +1 -0
- package/dist/repositories/trips/index.js +19 -10
- package/dist/repositories/trips/index.js.map +1 -0
- package/dist/repositories/trips/updateTripEndValues.js +2 -1
- package/dist/repositories/trips/updateTripEndValues.js.map +1 -0
- package/dist/repositories/trips/upsertTrip.js +2 -1
- package/dist/repositories/trips/upsertTrip.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivation.js +1 -0
- package/dist/repositories/userActivations/createUserActivation.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationDevice.js +1 -0
- package/dist/repositories/userActivations/createUserActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationEvent.js +1 -0
- package/dist/repositories/userActivations/createUserActivationEvent.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationMetric.js +1 -0
- package/dist/repositories/userActivations/createUserActivationMetric.js.map +1 -0
- package/dist/repositories/userActivations/deleteUserActivation.js +1 -0
- package/dist/repositories/userActivations/deleteUserActivation.js.map +1 -0
- package/dist/repositories/userActivations/getLastActivationDevice.js +8 -2
- package/dist/repositories/userActivations/getLastActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationById.js +22 -0
- package/dist/repositories/userActivations/getUserActivationById.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationDevices.js +8 -2
- package/dist/repositories/userActivations/getUserActivationDevices.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +8 -3
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationMetrics.js +8 -2
- package/dist/repositories/userActivations/getUserActivationMetrics.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivations.js +8 -2
- package/dist/repositories/userActivations/getUserActivations.js.map +1 -0
- package/dist/repositories/userActivations/index.js +21 -12
- package/dist/repositories/userActivations/index.js.map +1 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.js +1 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.js +1 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.js.map +1 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js +1 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js.map +1 -0
- package/dist/repositories/userAppFeedback/index.js +2 -1
- package/dist/repositories/userAppFeedback/index.js.map +1 -0
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js +8 -2
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js.map +1 -0
- package/dist/repositories/userAppIncidents/index.js +3 -2
- package/dist/repositories/userAppIncidents/index.js.map +1 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +1 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js.map +1 -0
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +11 -11
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js +34 -0
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.js +1 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +11 -5
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js +30 -0
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js +1 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +11 -2
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js +149 -0
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserConfigurations.js +8 -2
- package/dist/repositories/userConfigurations/getUserConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/index.js +99 -136
- package/dist/repositories/userConfigurations/index.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js +53 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.js +1 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js +30 -0
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +1 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +10 -4
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/index.js +5 -4
- package/dist/repositories/userDataDeletionRequests/index.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +1 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +1 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userInvitations/createUserInvitation.js +2 -0
- package/dist/repositories/userInvitations/createUserInvitation.js.map +1 -0
- package/dist/repositories/userInvitations/getUserInvitationById.js +8 -2
- package/dist/repositories/userInvitations/getUserInvitationById.js.map +1 -0
- package/dist/repositories/userInvitations/getUserInvitations.js +29 -4
- package/dist/repositories/userInvitations/getUserInvitations.js.map +1 -0
- package/dist/repositories/userInvitations/index.js +5 -4
- package/dist/repositories/userInvitations/index.js.map +1 -0
- package/dist/repositories/userInvitations/updateUserInvitation.js +4 -1
- package/dist/repositories/userInvitations/updateUserInvitation.js.map +1 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js +1 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js.map +1 -0
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js +8 -2
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js.map +1 -0
- package/dist/repositories/userRatingRequests/index.js +3 -2
- package/dist/repositories/userRatingRequests/index.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +1 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +10 -4
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/index.js +4 -3
- package/dist/repositories/userRegistrationAttempts/index.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +1 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js.map +1 -0
- package/dist/repositories/users/createUser.js +1 -0
- package/dist/repositories/users/createUser.js.map +1 -0
- package/dist/repositories/users/deleteAccount.js +1 -0
- package/dist/repositories/users/deleteAccount.js.map +1 -0
- package/dist/repositories/users/deleteUser.js +1 -0
- package/dist/repositories/users/deleteUser.js.map +1 -0
- package/dist/repositories/users/getUserById.js +26 -11
- package/dist/repositories/users/getUserById.js.map +1 -0
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js +64 -0
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js.map +1 -0
- package/dist/repositories/users/getUserData.js +12 -8
- package/dist/repositories/users/getUserData.js.map +1 -0
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js +88 -0
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js.map +1 -0
- package/dist/repositories/users/getUsers.js +59 -6
- package/dist/repositories/users/getUsers.js.map +1 -0
- package/dist/repositories/users/getUsersConfigurationByImei.js +15 -13
- package/dist/repositories/users/getUsersConfigurationByImei.js.map +1 -0
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +8 -2
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js.map +1 -0
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js +101 -0
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js.map +1 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +59 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js.map +1 -0
- package/dist/repositories/users/getUsersWithRoles.js +11 -3
- package/dist/repositories/users/getUsersWithRoles.js.map +1 -0
- package/dist/repositories/users/index.js +68 -11
- package/dist/repositories/users/index.js.map +1 -0
- package/dist/repositories/users/updateUser.js +1 -0
- package/dist/repositories/users/updateUser.js.map +1 -0
- package/dist/subscribers/allEntitiesSubscriber.js +1 -0
- package/dist/subscribers/allEntitiesSubscriber.js.map +1 -0
- package/dist/subscribers/index.js +1 -0
- package/dist/subscribers/index.js.map +1 -0
- package/dist/types/acumatica.js +1 -0
- package/dist/types/acumatica.js.map +1 -0
- package/dist/types/aempToken.js +1 -0
- package/dist/types/aempToken.js.map +1 -0
- package/dist/types/alert.d.ts +1 -0
- package/dist/types/alert.js +1 -0
- package/dist/types/alert.js.map +1 -0
- package/dist/types/alertTypes.js +1 -0
- package/dist/types/alertTypes.js.map +1 -0
- package/dist/types/appFeatures.js +1 -0
- package/dist/types/appFeatures.js.map +1 -0
- package/dist/types/billing.js +1 -0
- package/dist/types/billing.js.map +1 -0
- package/dist/types/blacklist.js +1 -0
- package/dist/types/blacklist.js.map +1 -0
- package/dist/types/bleMesh.js +2 -0
- package/dist/types/bleMesh.js.map +1 -0
- package/dist/types/bleMeshConfiguration.js +1 -0
- package/dist/types/bleMeshConfiguration.js.map +1 -0
- package/dist/types/boundaries.js +1 -0
- package/dist/types/boundaries.js.map +1 -0
- package/dist/types/clientAlertConfiguration.js +2 -0
- package/dist/types/clientAlertConfiguration.js.map +1 -0
- package/dist/types/clients.js +35 -1
- package/dist/types/clients.js.map +1 -0
- package/dist/types/common.js +1 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/countries.js +1 -0
- package/dist/types/countries.js.map +1 -0
- package/dist/types/dataExports.js +2 -0
- package/dist/types/dataExports.js.map +1 -0
- package/dist/types/deactivations.js +1 -0
- package/dist/types/deactivations.js.map +1 -0
- package/dist/types/deviceBehaviors.js +1 -0
- package/dist/types/deviceBehaviors.js.map +1 -0
- package/dist/types/devicePairings.js +1 -0
- package/dist/types/devicePairings.js.map +1 -0
- package/dist/types/deviceStatus.js +2 -0
- package/dist/types/deviceStatus.js.map +1 -0
- package/dist/types/deviceTypeFeature.js +4 -0
- package/dist/types/deviceTypeFeature.js.map +1 -0
- package/dist/types/devices.js +25 -1
- package/dist/types/devices.js.map +1 -0
- package/dist/types/entitiesTags.js +26 -0
- package/dist/types/entitiesTags.js.map +1 -0
- package/dist/types/enums.js +29 -0
- package/dist/types/enums.js.map +1 -0
- package/dist/types/feature.js +3 -0
- package/dist/types/feature.js.map +1 -0
- package/dist/types/firmwares.js +1 -0
- package/dist/types/firmwares.js.map +1 -0
- package/dist/types/index.js +9 -1
- package/dist/types/index.js.map +1 -0
- package/dist/types/latestUserAppInfo.js +2 -0
- package/dist/types/latestUserAppInfo.js.map +1 -0
- package/dist/types/liveLinks.js +2 -0
- package/dist/types/liveLinks.js.map +1 -0
- package/dist/types/logger.js +1 -0
- package/dist/types/logger.js.map +1 -0
- package/dist/types/notificationRecipients.js +1 -0
- package/dist/types/notificationRecipients.js.map +1 -0
- package/dist/types/position.js +1 -0
- package/dist/types/position.js.map +1 -0
- package/dist/types/promotion.js +42 -0
- package/dist/types/promotion.js.map +1 -0
- package/dist/types/security.js +1 -0
- package/dist/types/security.js.map +1 -0
- package/dist/types/tag.js +15 -0
- package/dist/types/tag.js.map +1 -0
- package/dist/types/tasks.js +1 -0
- package/dist/types/tasks.js.map +1 -0
- package/dist/types/trip.js +2 -0
- package/dist/types/trip.js.map +1 -0
- package/dist/types/user.js +2 -1
- package/dist/types/user.js.map +1 -0
- package/dist/types/userActivations.js +1 -0
- package/dist/types/userActivations.js.map +1 -0
- package/dist/types/userAppFeedback.js +1 -0
- package/dist/types/userAppFeedback.js.map +1 -0
- package/dist/types/userAppIncidents.js +1 -0
- package/dist/types/userAppIncidents.js.map +1 -0
- package/dist/types/userConfigurations.js +1 -0
- package/dist/types/userConfigurations.js.map +1 -0
- package/dist/types/userDataDeletionRequests.js +1 -0
- package/dist/types/userDataDeletionRequests.js.map +1 -0
- package/dist/types/userInvitations.js +1 -0
- package/dist/types/userInvitations.js.map +1 -0
- package/dist/types/userRatingRequests.js +1 -0
- package/dist/types/userRatingRequests.js.map +1 -0
- package/dist/types/userRegistrationAttempts.js +1 -0
- package/dist/types/userRegistrationAttempts.js.map +1 -0
- package/dist/utils/anyAttributeHasValue.js +1 -0
- package/dist/utils/anyAttributeHasValue.js.map +1 -0
- package/dist/utils/billingPlansHelper.js +50 -0
- package/dist/utils/billingPlansHelper.js.map +1 -0
- package/dist/utils/boolToNumberTransformer.js +1 -0
- package/dist/utils/boolToNumberTransformer.js.map +1 -0
- package/dist/utils/consoleLogger.js +1 -0
- package/dist/utils/consoleLogger.js.map +1 -0
- package/dist/utils/dateTool.js +9 -0
- package/dist/utils/dateTool.js.map +1 -0
- package/dist/utils/filterTools.js +1 -0
- package/dist/utils/filterTools.js.map +1 -0
- package/dist/utils/mapRawEntityToEntity.js +1 -0
- package/dist/utils/mapRawEntityToEntity.js.map +1 -0
- package/dist/utils/{anyAttributeIsNull.js → paramsValidators.js} +5 -0
- package/dist/utils/paramsValidators.js.map +1 -0
- package/dist/utils/parsingTools.js +22 -0
- package/dist/utils/parsingTools.js.map +1 -0
- package/dist/utils/queryLogger.js +3 -1
- package/dist/utils/queryLogger.js.map +1 -0
- package/dist/utils/randomizer.js +1 -0
- package/dist/utils/randomizer.js.map +1 -0
- package/dist/utils/stringToDateTransformer.js +1 -0
- package/dist/utils/stringToDateTransformer.js.map +1 -0
- package/dist/utils/uuidHelpers.js +1 -0
- package/dist/utils/uuidHelpers.js.map +1 -0
- package/dist/utils/uuidTransformer.js +38 -0
- package/dist/utils/uuidTransformer.js.map +1 -0
- package/package.json +1 -1
- package/dist/entities/alertMigration.d.ts +0 -22
- package/dist/entities/alertMigration.js +0 -115
- package/dist/entities/alertMigrationBatch.d.ts +0 -3
- package/dist/entities/alertMigrationBatch.js +0 -21
- package/dist/entities/alertTimeWindowConfiguration.d.ts +0 -12
- package/dist/entities/alertTimeWindowConfiguration.js +0 -61
- package/dist/entities/deviceAlertConfiguration.d.ts +0 -14
- package/dist/entities/deviceAlertConfiguration.js +0 -71
- package/dist/entities/deviceTypeEvent.d.ts +0 -5
- package/dist/entities/event.d.ts +0 -6
- package/dist/entities/svrPairingRequest.d.ts +0 -21
- package/dist/entities/svrPairingRequest.js +0 -174
- package/dist/repositories/deviceBehaviors/getDevicesLastBehaviorTask.d.ts +0 -5
- package/dist/repositories/deviceBehaviors/getDevicesLastBehaviorTask.js +0 -42
- package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.d.ts +0 -4
- package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.js +0 -40
- package/dist/repositories/userConfigurations/createDeviceAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/createDeviceAlertTimeWindows.js +0 -36
- package/dist/repositories/userConfigurations/createUserAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/createUserAlertTimeWindows.js +0 -33
- package/dist/repositories/userConfigurations/deleteDeviceAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/deleteDeviceAlertTimeWindows.js +0 -17
- package/dist/repositories/userConfigurations/deleteUserAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/deleteUserAlertTimeWindows.js +0 -17
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.js +0 -43
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.js +0 -35
- package/dist/repositories/userConfigurations/updateDeviceAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/updateDeviceAlertTimeWindows.js +0 -29
- package/dist/repositories/userConfigurations/updateUserAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/updateUserAlertTimeWindows.js +0 -28
- package/dist/utils/anyAttributeIsNull.d.ts +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BaseRepository2 } from './../baseRepository';
|
|
2
|
+
import { addDeviceChangesHistory } from './addDeviceChangesHistory';
|
|
3
3
|
import { allImeisAreActiveForClient } from './allImeisAreActiveForClient';
|
|
4
4
|
import { createClientDeviceSetting } from './createClientDeviceSetting';
|
|
5
5
|
import { createDevice } from './createDevice';
|
|
6
6
|
import { createDeviceReplacement } from './createDeviceReplacement';
|
|
7
7
|
import { createDeviceType } from './createDeviceType';
|
|
8
|
+
import { createImeiIccidCarrier } from './createImeiIccidCarrier';
|
|
8
9
|
import { deleteDevice } from './deleteDevice';
|
|
9
10
|
import { generateDeviceIdentifierKey } from './generateDeviceIdentifierKey';
|
|
10
11
|
import { getCanceledDevicesWithActiveSimCards } from './getCanceledDevicesWithActiveSimCards';
|
|
@@ -12,8 +13,11 @@ import { getCarrierStatusUpdatedBefore } from './getCarrierStatusUpdatedBefore';
|
|
|
12
13
|
import { getClientDeviceSetting } from './getClientDeviceSetting';
|
|
13
14
|
import { getClientDeviceSettings } from './getClientDeviceSettings';
|
|
14
15
|
import { getDevice } from './getDevice';
|
|
16
|
+
import { getDeviceChangesHistory } from './getDeviceChangesHistory';
|
|
17
|
+
import { getDeviceChangesHistoryAssignedToValuesByClient } from './getDeviceChangesHistoryAssignedToValuesByClient';
|
|
15
18
|
import { getDeviceCustomConfigs } from './getDeviceCustomConfig';
|
|
16
19
|
import { getDevices } from './getDevices';
|
|
20
|
+
import { getDevicesCountByStatus } from './getDevicesCountByStatus';
|
|
17
21
|
import { getDeviceTypeByImei } from './getDeviceTypeByImei';
|
|
18
22
|
import { getDeviceTypes } from './getDeviceTypes';
|
|
19
23
|
import { getDeviceTypesModelsOrderedByDeviceCount } from './getDeviceTypesModelsOrderedByDeviceCount';
|
|
@@ -22,13 +26,15 @@ import { getFilteredImeisWithStatus } from './getFilteredImeisWithStatus';
|
|
|
22
26
|
import { getIccidStatus } from './getIccidStatus';
|
|
23
27
|
import { getImeiIccidCarrier } from './getImeiIccidCarrier';
|
|
24
28
|
import { getImeiIccidCarriers } from './getImeiIccidCarriers';
|
|
29
|
+
import { getServiceProviderProduct } from './getServiceProviderProduct';
|
|
25
30
|
import { updateClientDeviceSetting } from './updateClientDeviceSetting';
|
|
26
31
|
import { updateDevice } from './updateDevice';
|
|
27
32
|
import { updateDeviceType } from './updateDeviceType';
|
|
28
33
|
import { updateIccidStatus } from './updateIccidStatus';
|
|
29
34
|
import { updateImeiIccidCarrier } from './updateImeiIccidCarrier';
|
|
35
|
+
import { upsertDeviceCustomConfigInternal } from './upsertDeviceCustomConfig';
|
|
30
36
|
import { upsertIccidStatus } from './upsertIccidStatus';
|
|
31
|
-
export class DevicesRepository extends
|
|
37
|
+
export class DevicesRepository extends BaseRepository2 {
|
|
32
38
|
/**
|
|
33
39
|
* Get device with filters
|
|
34
40
|
* @param {GetDeviceParams} params containing information to get a device with filters
|
|
@@ -39,8 +45,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
39
45
|
*/
|
|
40
46
|
async getDevice(params) {
|
|
41
47
|
this.logger.trace(params, 'DevicesRepository::getDevice started with params');
|
|
42
|
-
const
|
|
43
|
-
const result = await getDevice(novaDataSource, params, this.logger);
|
|
48
|
+
const result = await getDevice(this.dataSource, params, this.logger);
|
|
44
49
|
this.logger.trace(result, 'DevicesRepository::getDevice result');
|
|
45
50
|
return result;
|
|
46
51
|
}
|
|
@@ -56,8 +61,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
56
61
|
*/
|
|
57
62
|
async getDevices(params) {
|
|
58
63
|
this.logger.trace(params, 'DevicesRepository::getDevices started with params');
|
|
59
|
-
const
|
|
60
|
-
const result = await getDevices(novaDataSource, params, this.logger);
|
|
64
|
+
const result = await getDevices(this.dataSource, params, this.logger);
|
|
61
65
|
this.logger.trace(result, 'DevicesRepository::getDevices result');
|
|
62
66
|
return result;
|
|
63
67
|
}
|
|
@@ -70,8 +74,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
70
74
|
*/
|
|
71
75
|
async allImeisAreActiveForClient(params) {
|
|
72
76
|
this.logger.trace(params, 'DevicesRepository::allImeisAreActiveForClient started with params');
|
|
73
|
-
const
|
|
74
|
-
const result = await allImeisAreActiveForClient(novaDataSource, params, this.logger);
|
|
77
|
+
const result = await allImeisAreActiveForClient(this.dataSource, params, this.logger);
|
|
75
78
|
this.logger.trace({ result }, 'DevicesRepository::allImeisAreActiveForClient result');
|
|
76
79
|
return result;
|
|
77
80
|
}
|
|
@@ -84,8 +87,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
84
87
|
*/
|
|
85
88
|
async getFilteredImeisWithStatus(params) {
|
|
86
89
|
this.logger.trace(params, 'DevicesRepository::getFilteredImeisWithStatus started with params');
|
|
87
|
-
const
|
|
88
|
-
const result = await getFilteredImeisWithStatus(novaDataSource, params, this.logger);
|
|
90
|
+
const result = await getFilteredImeisWithStatus(this.dataSource, params, this.logger);
|
|
89
91
|
this.logger.trace(result, 'DevicesRepository::getFilteredImeisWithStatus result');
|
|
90
92
|
return result;
|
|
91
93
|
}
|
|
@@ -112,8 +114,16 @@ export class DevicesRepository extends BaseRepository {
|
|
|
112
114
|
*/
|
|
113
115
|
async createDevice(params) {
|
|
114
116
|
this.logger.trace(params, 'DevicesRepository::createDevice started with params');
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
+
const result = await createDevice(this.dataSource, params, this.logger);
|
|
118
|
+
if (params.assignedTo) {
|
|
119
|
+
const deviceChangesHistory = await this.addDeviceChangesHistory({
|
|
120
|
+
assignedTo: params.assignedTo,
|
|
121
|
+
clientId: params.clientId,
|
|
122
|
+
imei: params.imei,
|
|
123
|
+
action: 'create',
|
|
124
|
+
});
|
|
125
|
+
this.logger.trace({ deviceChangesHistory }, 'DevicesRepository::createDevice deviceChangesHistory');
|
|
126
|
+
}
|
|
117
127
|
this.logger.trace(result, 'DevicesRepository::createDevice result');
|
|
118
128
|
return result;
|
|
119
129
|
}
|
|
@@ -122,6 +132,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
122
132
|
* @param {UpdateDeviceParams} params containing information to update a device
|
|
123
133
|
* - filters.imei: The imei of the device
|
|
124
134
|
* - filters.status: The status of the device
|
|
135
|
+
* - filters.clientId: The client id
|
|
125
136
|
* - values.clientId: The client id
|
|
126
137
|
* - values.deviceTypeId: The device type id
|
|
127
138
|
* - values.iccid: The iccid of the device
|
|
@@ -139,9 +150,22 @@ export class DevicesRepository extends BaseRepository {
|
|
|
139
150
|
*/
|
|
140
151
|
async updateDevice(params) {
|
|
141
152
|
this.logger.trace(params, 'DevicesRepository::updateDevice started with params');
|
|
142
|
-
const
|
|
143
|
-
const result = await updateDevice(novaDataSource, params, this.logger);
|
|
153
|
+
const result = await updateDevice(this.dataSource, params, this.logger);
|
|
144
154
|
this.logger.trace({ result }, 'DevicesRepository::updateDevice result');
|
|
155
|
+
if (params.values.assignedTo) {
|
|
156
|
+
if (params.filters.clientId) {
|
|
157
|
+
const deviceChangesHistory = await this.addDeviceChangesHistory({
|
|
158
|
+
clientId: params.filters.clientId,
|
|
159
|
+
imei: params.filters.imei,
|
|
160
|
+
assignedTo: params.values.assignedTo,
|
|
161
|
+
action: 'update',
|
|
162
|
+
});
|
|
163
|
+
this.logger.trace({ deviceChangesHistory }, 'DevicesRepository::updateDevice deviceChangesHistory');
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
this.logger.warn('DevicesRepository::updateDevice clientId is required to add deviceChangesHistory');
|
|
167
|
+
}
|
|
168
|
+
}
|
|
145
169
|
return result;
|
|
146
170
|
}
|
|
147
171
|
/**
|
|
@@ -153,8 +177,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
153
177
|
*/
|
|
154
178
|
async deleteDevice(params) {
|
|
155
179
|
this.logger.trace(params, 'DevicesRepository::deleteDevice started with params');
|
|
156
|
-
const
|
|
157
|
-
const result = await deleteDevice(novaDataSource, params, this.logger);
|
|
180
|
+
const result = await deleteDevice(this.dataSource, params, this.logger);
|
|
158
181
|
this.logger.trace({ result }, 'DevicesRepository::deleteDevice result');
|
|
159
182
|
return result;
|
|
160
183
|
}
|
|
@@ -167,8 +190,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
167
190
|
*/
|
|
168
191
|
async generateDeviceIdentifierKey(params) {
|
|
169
192
|
this.logger.trace(params, 'DevicesRepository::generateDeviceIdentifierKey started with params');
|
|
170
|
-
const
|
|
171
|
-
const result = await generateDeviceIdentifierKey(novaDataSource, params, this.logger);
|
|
193
|
+
const result = await generateDeviceIdentifierKey(this.dataSource, params, this.logger);
|
|
172
194
|
this.logger.trace(result, 'DevicesRepository::generateDeviceIdentifierKey result');
|
|
173
195
|
return result;
|
|
174
196
|
}
|
|
@@ -179,8 +201,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
179
201
|
*/
|
|
180
202
|
async getDeviceTypes(params) {
|
|
181
203
|
this.logger.trace(params, 'DevicesRepository::getDeviceTypes started with params');
|
|
182
|
-
const
|
|
183
|
-
const result = await getDeviceTypes(novaDataSource, params);
|
|
204
|
+
const result = await getDeviceTypes(this.dataSource, params);
|
|
184
205
|
this.logger.trace(result, 'DevicesRepository::getDeviceTypes result');
|
|
185
206
|
return result;
|
|
186
207
|
}
|
|
@@ -193,8 +214,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
193
214
|
*/
|
|
194
215
|
async getImeiIccidCarrier(params) {
|
|
195
216
|
this.logger.trace(params, 'DevicesRepository::getImeiIccidCarrier started with params');
|
|
196
|
-
const
|
|
197
|
-
const result = await getImeiIccidCarrier(novaDataSource, params, this.logger);
|
|
217
|
+
const result = await getImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
198
218
|
this.logger.trace(result, 'DevicesRepository::getImeiIccidCarrier result');
|
|
199
219
|
return result;
|
|
200
220
|
}
|
|
@@ -206,8 +226,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
206
226
|
*/
|
|
207
227
|
async getDeviceTypeByImei(params) {
|
|
208
228
|
this.logger.trace(params, 'DevicesRepository::getDeviceTypeByImei started with params');
|
|
209
|
-
const
|
|
210
|
-
const result = await getDeviceTypeByImei(novaDataSource, params, this.logger);
|
|
229
|
+
const result = await getDeviceTypeByImei(this.dataSource, params, this.logger);
|
|
211
230
|
this.logger.trace(result, 'DevicesRepository::getDeviceTypeByImei result');
|
|
212
231
|
return result;
|
|
213
232
|
}
|
|
@@ -219,8 +238,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
219
238
|
*/
|
|
220
239
|
async getImeiIccidCarriers(params) {
|
|
221
240
|
this.logger.trace(params, 'DevicesRepository::getImeiIccidCarriers started with params');
|
|
222
|
-
const
|
|
223
|
-
const result = await getImeiIccidCarriers(novaDataSource, params, this.logger);
|
|
241
|
+
const result = await getImeiIccidCarriers(this.dataSource, params, this.logger);
|
|
224
242
|
this.logger.trace(result, 'DevicesRepository::getImeiIccidCarriers result');
|
|
225
243
|
return result;
|
|
226
244
|
}
|
|
@@ -243,8 +261,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
243
261
|
*/
|
|
244
262
|
async updateImeiIccidCarrier(params) {
|
|
245
263
|
this.logger.trace(params, 'DevicesRepository::updateImeiIccidCarrier started with params');
|
|
246
|
-
const
|
|
247
|
-
const result = await updateImeiIccidCarrier(novaDataSource, params, this.logger);
|
|
264
|
+
const result = await updateImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
248
265
|
this.logger.trace({ result }, 'DevicesRepository::updateImeiIccidCarrier result');
|
|
249
266
|
return result;
|
|
250
267
|
}
|
|
@@ -257,8 +274,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
257
274
|
*/
|
|
258
275
|
async getClientDeviceSetting(params) {
|
|
259
276
|
this.logger.trace(params, 'DevicesRepository::getClientDeviceSetting with params');
|
|
260
|
-
const
|
|
261
|
-
const result = await getClientDeviceSetting(novaDataSource, params, this.logger);
|
|
277
|
+
const result = await getClientDeviceSetting(this.dataSource, params, this.logger);
|
|
262
278
|
this.logger.info(result, 'DevicesRepository::getClientDeviceSetting result');
|
|
263
279
|
return result;
|
|
264
280
|
}
|
|
@@ -270,8 +286,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
270
286
|
*/
|
|
271
287
|
async getClientDeviceSettings(params) {
|
|
272
288
|
this.logger.trace(params, 'DevicesRepository::getClientDeviceSettings started with params');
|
|
273
|
-
const
|
|
274
|
-
const result = await getClientDeviceSettings(novaDataSource, params, this.logger);
|
|
289
|
+
const result = await getClientDeviceSettings(this.dataSource, params, this.logger);
|
|
275
290
|
this.logger.trace(result, 'DevicesRepository::getClientDeviceSettings result');
|
|
276
291
|
return result;
|
|
277
292
|
}
|
|
@@ -292,8 +307,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
292
307
|
*/
|
|
293
308
|
async createClientDeviceSetting(params) {
|
|
294
309
|
this.logger.trace(params, 'DevicesRepository::createClientDeviceSetting started with params');
|
|
295
|
-
const
|
|
296
|
-
const result = await createClientDeviceSetting(novaDataSource, params, this.logger);
|
|
310
|
+
const result = await createClientDeviceSetting(this.dataSource, params, this.logger);
|
|
297
311
|
this.logger.trace(result, 'DevicesRepository::createClientDeviceSetting result');
|
|
298
312
|
return result;
|
|
299
313
|
}
|
|
@@ -314,8 +328,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
314
328
|
*/
|
|
315
329
|
async updateClientDeviceSetting(params) {
|
|
316
330
|
this.logger.trace(params, 'DevicesRepository::updateClientDeviceSetting started with params');
|
|
317
|
-
const
|
|
318
|
-
const result = await updateClientDeviceSetting(novaDataSource, params, this.logger);
|
|
331
|
+
const result = await updateClientDeviceSetting(this.dataSource, params, this.logger);
|
|
319
332
|
this.logger.trace({ result }, 'DevicesRepository::updateClientDeviceSetting result');
|
|
320
333
|
return result;
|
|
321
334
|
}
|
|
@@ -326,8 +339,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
326
339
|
*/
|
|
327
340
|
async getDeviceTypesModelsOrderedByDeviceCount(params) {
|
|
328
341
|
this.logger.trace(params, 'DevicesRepository::getDeviceTypesOrderedByDeviceCount started with params');
|
|
329
|
-
const
|
|
330
|
-
const result = await getDeviceTypesModelsOrderedByDeviceCount(novaDataSource, params);
|
|
342
|
+
const result = await getDeviceTypesModelsOrderedByDeviceCount(this.dataSource, params);
|
|
331
343
|
this.logger.trace({ result }, 'DevicesRepository::getDeviceTypesOrderedByDeviceCount result');
|
|
332
344
|
return result;
|
|
333
345
|
}
|
|
@@ -341,11 +353,28 @@ export class DevicesRepository extends BaseRepository {
|
|
|
341
353
|
*/
|
|
342
354
|
async getDeviceCustomConfigs(params) {
|
|
343
355
|
this.logger.trace(params, 'DevicesRepository::getDeviceCustomConfig started with params');
|
|
344
|
-
const
|
|
345
|
-
const result = await getDeviceCustomConfigs(novaDataSource, params, this.logger);
|
|
356
|
+
const result = await getDeviceCustomConfigs(this.dataSource, params, this.logger);
|
|
346
357
|
this.logger.trace({ result }, 'DevicesRepository::getDeviceCustomConfig result');
|
|
347
358
|
return result;
|
|
348
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* Upsert device custom configurations for activation
|
|
362
|
+
* @param {UpsertDeviceCustomConfigParams[]} params containing information to upsert device custom configurations
|
|
363
|
+
* - id: The id of the device custom configuration, optional
|
|
364
|
+
* - clientId: The client id. Required
|
|
365
|
+
* - deviceTypeId: The device type id. Required
|
|
366
|
+
* - imei: The imei of the device. Optional
|
|
367
|
+
* - po: The purchase order number of the device. Optional
|
|
368
|
+
* - configFileUrl: The url of the configuration file. Optional
|
|
369
|
+
* - skipActivationDefaults: Whether to skip activation defaults. Optional
|
|
370
|
+
* @returns Whether the device custom configurations were upserted or not
|
|
371
|
+
*/
|
|
372
|
+
async upsertDeviceCustomConfigs(params) {
|
|
373
|
+
this.logger.trace(params, 'DevicesRepository::upsertDeviceCustomConfigs started with params');
|
|
374
|
+
const result = await upsertDeviceCustomConfigInternal(this.dataSource, params, this.logger);
|
|
375
|
+
this.logger.trace({ result }, 'DevicesRepository::upsertDeviceCustomConfigs result');
|
|
376
|
+
return result;
|
|
377
|
+
}
|
|
349
378
|
/**
|
|
350
379
|
* Create a device replacement
|
|
351
380
|
* @param {CreateDeviceReplacementParams} params containing information to create a device replacement
|
|
@@ -360,8 +389,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
360
389
|
*/
|
|
361
390
|
async createDeviceReplacement(params) {
|
|
362
391
|
this.logger.trace(params, 'DevicesRepository::createDeviceReplacement started with params');
|
|
363
|
-
const
|
|
364
|
-
const result = await createDeviceReplacement(novaDataSource, params, this.logger);
|
|
392
|
+
const result = await createDeviceReplacement(this.dataSource, params, this.logger);
|
|
365
393
|
this.logger.trace(result, 'DevicesRepository::createDeviceReplacement result');
|
|
366
394
|
return result;
|
|
367
395
|
}
|
|
@@ -373,8 +401,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
373
401
|
*/
|
|
374
402
|
async getIccidStatus(params) {
|
|
375
403
|
this.logger.trace(params, 'DevicesRepository::getIccidStatus started with params');
|
|
376
|
-
const
|
|
377
|
-
const result = await getIccidStatus(novaDataSource, params, this.logger);
|
|
404
|
+
const result = await getIccidStatus(this.dataSource, params, this.logger);
|
|
378
405
|
this.logger.trace(result, 'DevicesRepository::getIccidStatus result');
|
|
379
406
|
return result;
|
|
380
407
|
}
|
|
@@ -389,8 +416,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
389
416
|
*/
|
|
390
417
|
async updateIccidStatus(params) {
|
|
391
418
|
this.logger.trace(params, 'DevicesRepository::updateIccidStatus started with params');
|
|
392
|
-
const
|
|
393
|
-
const result = await updateIccidStatus(novaDataSource, params, this.logger);
|
|
419
|
+
const result = await updateIccidStatus(this.dataSource, params, this.logger);
|
|
394
420
|
this.logger.trace({ result }, 'DevicesRepository::updateIccidStatus result');
|
|
395
421
|
return result;
|
|
396
422
|
}
|
|
@@ -403,8 +429,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
403
429
|
*/
|
|
404
430
|
async getCanceledDevicesWithActiveSimCards(params) {
|
|
405
431
|
this.logger.trace(params, 'DevicesRepository::getCanceledDevicesWithActiveSimCards started with params');
|
|
406
|
-
const
|
|
407
|
-
const result = await getCanceledDevicesWithActiveSimCards(novaDataSource, params, this.logger);
|
|
432
|
+
const result = await getCanceledDevicesWithActiveSimCards(this.dataSource, params, this.logger);
|
|
408
433
|
this.logger.trace(result, 'DevicesRepository::getCanceledDevicesWithActiveSimCards result');
|
|
409
434
|
return result;
|
|
410
435
|
}
|
|
@@ -417,8 +442,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
417
442
|
*/
|
|
418
443
|
async getCarrierStatusUpdatedBefore(params) {
|
|
419
444
|
this.logger.trace(params, 'DevicesRepository::getCarrierStatusUpdatedBefore started with params');
|
|
420
|
-
const
|
|
421
|
-
const result = await getCarrierStatusUpdatedBefore(novaDataSource, params, this.logger);
|
|
445
|
+
const result = await getCarrierStatusUpdatedBefore(this.dataSource, params, this.logger);
|
|
422
446
|
this.logger.trace(result, 'DevicesRepository::getCarrierStatusUpdatedBefore result');
|
|
423
447
|
return result;
|
|
424
448
|
}
|
|
@@ -432,8 +456,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
432
456
|
*/
|
|
433
457
|
async upsertIccidStatus(params) {
|
|
434
458
|
this.logger.trace(params, 'DevicesRepository::upsertIccidStatus started with params');
|
|
435
|
-
const
|
|
436
|
-
const result = await upsertIccidStatus(novaDataSource, params, this.logger);
|
|
459
|
+
const result = await upsertIccidStatus(this.dataSource, params, this.logger);
|
|
437
460
|
this.logger.trace({ result }, 'DevicesRepository::upsertIccidStatus result');
|
|
438
461
|
return result;
|
|
439
462
|
}
|
|
@@ -445,8 +468,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
445
468
|
*/
|
|
446
469
|
async getDeviceWithUsersInfo(params) {
|
|
447
470
|
this.logger.trace(params, 'DevicesRepository::getDeviceWithUsersInfo started with params');
|
|
448
|
-
const
|
|
449
|
-
const result = await getDeviceWithUsersInfo(novaDataSource, params, this.logger);
|
|
471
|
+
const result = await getDeviceWithUsersInfo(this.dataSource, params, this.logger);
|
|
450
472
|
this.logger.trace(result, 'DevicesRepository::getDeviceWithUsersInfo result');
|
|
451
473
|
return result;
|
|
452
474
|
}
|
|
@@ -457,8 +479,7 @@ export class DevicesRepository extends BaseRepository {
|
|
|
457
479
|
*/
|
|
458
480
|
async createDeviceType(params) {
|
|
459
481
|
this.logger.trace(params, 'DevicesRepository::createDeviceType started with params');
|
|
460
|
-
const
|
|
461
|
-
const result = await createDeviceType(novaDataSource, params, this.logger);
|
|
482
|
+
const result = await createDeviceType(this.dataSource, params, this.logger);
|
|
462
483
|
this.logger.trace(result, 'DevicesRepository::createDeviceType result');
|
|
463
484
|
return result;
|
|
464
485
|
}
|
|
@@ -471,9 +492,72 @@ export class DevicesRepository extends BaseRepository {
|
|
|
471
492
|
*/
|
|
472
493
|
async updateDeviceType(params) {
|
|
473
494
|
this.logger.trace(params, 'DevicesRepository::updateDeviceType started with params');
|
|
474
|
-
const
|
|
475
|
-
const result = await updateDeviceType(novaDataSource, params, this.logger);
|
|
495
|
+
const result = await updateDeviceType(this.dataSource, params, this.logger);
|
|
476
496
|
this.logger.trace({ result }, 'DevicesRepository::updateDeviceType result');
|
|
477
497
|
return result;
|
|
478
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* Get the count of devices by status
|
|
501
|
+
* @param {GetDevicesCountByStatusParams} params containing information to get the count of devices by status
|
|
502
|
+
* - filters.clientId: The client id
|
|
503
|
+
* @returns {Promise<DevicesCountByStatus>} The count of devices by statuses
|
|
504
|
+
*/
|
|
505
|
+
async getDevicesCountByStatus(params) {
|
|
506
|
+
this.logger.trace(params, 'DevicesRepository::getDevicesCountByStatus started with params');
|
|
507
|
+
const result = await getDevicesCountByStatus(this.dataSource, params, this.logger);
|
|
508
|
+
this.logger.trace(result, 'DevicesRepository::getDevicesCountByStatus result');
|
|
509
|
+
return result;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Get a service provider product
|
|
513
|
+
* @param {GetServiceProviderProductParams} params containing information to get a service provider product
|
|
514
|
+
* - filters.id: The id of the service provider product
|
|
515
|
+
* @returns {Promise<ServiceProviderProduct>} The service provider product
|
|
516
|
+
*/
|
|
517
|
+
async getServiceProviderProduct(params) {
|
|
518
|
+
this.logger.trace(params, 'DevicesRepository::getServiceProviderProduct started with params');
|
|
519
|
+
const result = await getServiceProviderProduct(this.dataSource, params, this.logger);
|
|
520
|
+
this.logger.trace(result, 'DevicesRepository::getServiceProviderProduct result');
|
|
521
|
+
return result;
|
|
522
|
+
}
|
|
523
|
+
async createImeiIccidCarrier(params) {
|
|
524
|
+
this.logger.trace(params, 'DevicesRepository::createImeiIccidCarrier started with params');
|
|
525
|
+
const result = await createImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
526
|
+
this.logger.trace(result, 'DevicesRepository::createImeiIccidCarrier result');
|
|
527
|
+
return result;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Get the unique assigned to values from the device changes history by client
|
|
531
|
+
* @param params containing information to get the unique assigned to values from the device changes history by client
|
|
532
|
+
* @returns The unique assigned to values from the device changes history by client
|
|
533
|
+
*/
|
|
534
|
+
async getDeviceChangesHistoryAssignedToValuesByClient(params) {
|
|
535
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceChangesHistoryAssignedToValuesByClient started with params');
|
|
536
|
+
const result = await getDeviceChangesHistoryAssignedToValuesByClient(this.dataSource, params, this.logger);
|
|
537
|
+
this.logger.trace(result, 'DevicesRepository::getDeviceChangesHistoryAssignedToValuesByClient result');
|
|
538
|
+
return result;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Get the device changes history
|
|
542
|
+
* @param params containing information to get the device changes history
|
|
543
|
+
* @returns The device changes history
|
|
544
|
+
*/
|
|
545
|
+
async getDeviceChangesHistory(params) {
|
|
546
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceChangesHistory started with params');
|
|
547
|
+
const result = await getDeviceChangesHistory(this.dataSource, params, this.logger);
|
|
548
|
+
this.logger.trace(result, 'DevicesRepository::getDeviceChangesHistory result');
|
|
549
|
+
return result;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Will add a new record to the device changes history table and update the endDate of the previous record if it exists
|
|
553
|
+
* @param params containing information to add a new record to the device changes history table
|
|
554
|
+
* @returns The new device changes history
|
|
555
|
+
*/
|
|
556
|
+
async addDeviceChangesHistory(params) {
|
|
557
|
+
this.logger.trace(params, 'DevicesRepository::addDeviceChangesHistory started with params');
|
|
558
|
+
const result = await addDeviceChangesHistory(this.dataSource, params, this.logger);
|
|
559
|
+
this.logger.trace(result, 'DevicesRepository::addDeviceChangesHistory result');
|
|
560
|
+
return result;
|
|
561
|
+
}
|
|
479
562
|
}
|
|
563
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/devices/index.ts"],"names":[],"mappings":"AAqDA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAA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C,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAElF,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,mDAAmD,CAAC,CAAA;QAE9E,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -11,11 +11,12 @@ export const updateClientDeviceSetting = async (novaDataSource, params, logger)
|
|
|
11
11
|
!params?.values?.stopThresholdMinutes &&
|
|
12
12
|
!params?.values?.offlineThresholdMinutes &&
|
|
13
13
|
!params?.values?.movementThresholdSpeed &&
|
|
14
|
-
params?.values?.externalBatteryInformation == null
|
|
14
|
+
params?.values?.externalBatteryInformation == null &&
|
|
15
|
+
!params?.values?.reportingMode) {
|
|
15
16
|
logger.warn({ params }, 'DevicesRepository::updateClientDeviceSetting missing required parameters');
|
|
16
17
|
return false;
|
|
17
18
|
}
|
|
18
|
-
return novaDataSource.
|
|
19
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
19
20
|
const clientDeviceSettingRepository = dataSource.getRepository(ClientDeviceSetting);
|
|
20
21
|
const queryBuilder = clientDeviceSettingRepository
|
|
21
22
|
.createQueryBuilder()
|
|
@@ -29,6 +30,7 @@ export const updateClientDeviceSetting = async (novaDataSource, params, logger)
|
|
|
29
30
|
offlineThresholdMinutes: params.values.offlineThresholdMinutes,
|
|
30
31
|
movementThresholdSpeed: params.values.movementThresholdSpeed,
|
|
31
32
|
externalBatteryInformation: params.values.externalBatteryInformation,
|
|
33
|
+
reportingMode: params.values.reportingMode,
|
|
32
34
|
})
|
|
33
35
|
.where('imei = :imei', { imei: params.filters.imei })
|
|
34
36
|
.andWhere('clientId = :clientId', { clientId: params.filters.clientId });
|
|
@@ -36,3 +38,4 @@ export const updateClientDeviceSetting = async (novaDataSource, params, logger)
|
|
|
36
38
|
return result.affected > 0;
|
|
37
39
|
}, 'DevicesRepository::updateClientDeviceSetting');
|
|
38
40
|
};
|
|
41
|
+
//# sourceMappingURL=updateClientDeviceSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateClientDeviceSetting.js","sourceRoot":"","sources":["../../../src/repositories/devices/updateClientDeviceSetting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAKpD,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,EAC5C,cAA8B,EAC9B,MAAuC,EACvC,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;QACxD,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,0EAA0E,CAC3E,CAAA;QACD,OAAO,KAAK,CAAA;KACb;IAED,IACE,MAAM,EAAE,MAAM,EAAE,aAAa,IAAI,IAAI;QACrC,CAAC,MAAM,EAAE,MAAM,EAAE,mBAAmB;QACpC,CAAC,MAAM,EAAE,MAAM,EAAE,oBAAoB;QACrC,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW;QAC5B,CAAC,MAAM,EAAE,MAAM,EAAE,oBAAoB;QACrC,CAAC,MAAM,EAAE,MAAM,EAAE,uBAAuB;QACxC,CAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB;QACvC,MAAM,EAAE,MAAM,EAAE,0BAA0B,IAAI,IAAI;QAClD,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAC9B;QACA,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,0EAA0E,CAC3E,CAAA;QACD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,UAAU,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACtF,MAAM,6BAA6B,GAAG,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;QAEnF,MAAM,YAAY,GAAG,6BAA6B;aAC/C,kBAAkB,EAAE;aACpB,MAAM,CAAC,mBAAmB,CAAC;aAC3B,GAAG,CAAC;YACH,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa;YAC1C,mBAAmB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB;YACtD,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAoB;YACxD,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW;YACtC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,oBAAoB;YACxD,uBAAuB,EAAE,MAAM,CAAC,MAAM,CAAC,uBAAuB;YAC9D,sBAAsB,EAAE,MAAM,CAAC,MAAM,CAAC,sBAAsB;YAC5D,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,0BAA0B;YACpE,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa;SAC3C,CAAC;aACD,KAAK,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;aACpD,QAAQ,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;QAE1E,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,8CAA8C,CAAC,CAAA;AACpD,CAAC,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Device } from '../../entities';
|
|
2
|
+
import { oneRequiredUpdateDeviceParamsValue } from '../../types/devices';
|
|
3
|
+
import { allAttributesAreNull } from '../../utils/paramsValidators';
|
|
2
4
|
import { generateDeviceIdentifierKey } from './generateDeviceIdentifierKey';
|
|
3
5
|
export const updateDevice = async (novaDataSource, params, logger) => {
|
|
4
6
|
// imei is required
|
|
@@ -7,19 +9,7 @@ export const updateDevice = async (novaDataSource, params, logger) => {
|
|
|
7
9
|
return false;
|
|
8
10
|
}
|
|
9
11
|
// at least one field to update is required
|
|
10
|
-
if (
|
|
11
|
-
!params?.values?.deviceTypeId &&
|
|
12
|
-
!params?.values?.iccid &&
|
|
13
|
-
!params?.values?.name &&
|
|
14
|
-
!params?.values?.color &&
|
|
15
|
-
!params?.values?.icon &&
|
|
16
|
-
!params?.values?.status &&
|
|
17
|
-
params?.values?.forward == null &&
|
|
18
|
-
!params?.values?.description &&
|
|
19
|
-
!params?.values?.dataSourceTypeId &&
|
|
20
|
-
!params?.values?.assetCategoryId &&
|
|
21
|
-
!params?.values?.usageRegion &&
|
|
22
|
-
!params?.values?.btmac) {
|
|
12
|
+
if (allAttributesAreNull(params.values, oneRequiredUpdateDeviceParamsValue)) {
|
|
23
13
|
logger.warn({ params }, 'DevicesRepository::updateDevice missing required parameters');
|
|
24
14
|
return false;
|
|
25
15
|
}
|
|
@@ -35,7 +25,7 @@ export const updateDevice = async (novaDataSource, params, logger) => {
|
|
|
35
25
|
return false;
|
|
36
26
|
}
|
|
37
27
|
}
|
|
38
|
-
return novaDataSource.
|
|
28
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
39
29
|
const devicesRepository = dataSource.getRepository(Device);
|
|
40
30
|
const now = new Date();
|
|
41
31
|
let queryBuilder = devicesRepository
|
|
@@ -54,3 +44,4 @@ export const updateDevice = async (novaDataSource, params, logger) => {
|
|
|
54
44
|
return result.affected > 0;
|
|
55
45
|
}, 'DevicesRepository::updateDevice');
|
|
56
46
|
};
|
|
47
|
+
//# sourceMappingURL=updateDevice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateDevice.js","sourceRoot":"","sources":["../../../src/repositories/devices/updateDevice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC,OAAO,EAAE,kCAAkC,EAAsB,MAAM,qBAAqB,CAAA;AAE5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA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AAE,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;QAEvD,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE;YACzB,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;SAC5F;QAED,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,iCAAiC,CAAC,CAAA;AACvC,CAAC,CAAA"}
|
|
@@ -28,7 +28,7 @@ export const updateDeviceType = async (novaDataSource, params, logger) => {
|
|
|
28
28
|
logger.warn({ params }, 'DevicesRepository::updateIccidStatus missing required parameters');
|
|
29
29
|
return false;
|
|
30
30
|
}
|
|
31
|
-
return novaDataSource.
|
|
31
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
32
32
|
const deviceTypesRepository = dataSource.getRepository(DeviceType);
|
|
33
33
|
const queryBuilder = deviceTypesRepository
|
|
34
34
|
.createQueryBuilder('deviceType')
|
|
@@ -41,3 +41,4 @@ export const updateDeviceType = async (novaDataSource, params, logger) => {
|
|
|
41
41
|
return result.affected > 0;
|
|
42
42
|
}, 'DevicesRepository::updateDeviceType');
|
|
43
43
|
};
|
|
44
|
+
//# sourceMappingURL=updateDeviceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateDeviceType.js","sourceRoot":"","sources":["../../../src/repositories/devices/updateDeviceType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAK3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,cAA8B,EAC9B,MAA8B,EAC9B,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,E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CAAC,CAAA;QAElE,MAAM,YAAY,GAAG,qBAAqB;aACvC,kBAAkB,CAAC,YAAY,CAAC;aAChC,MAAM,CAAC,UAAU,CAAC;aAClB,GAAG,CAAC;YACH,GAAG,MAAM,CAAC,MAAM;SACjB,CAAC;aACD,KAAK,CAAC,UAAU,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAA;QAE/C,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,qCAAqC,CAAC,CAAA;AAC3C,CAAC,CAAA"}
|
|
@@ -11,7 +11,7 @@ export const updateIccidStatus = async (novaDataSource, params, logger) => {
|
|
|
11
11
|
logger.warn({ params }, 'DevicesRepository::updateIccidStatus missing required parameters');
|
|
12
12
|
return false;
|
|
13
13
|
}
|
|
14
|
-
return novaDataSource.
|
|
14
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
15
15
|
const iccidStatusRepository = dataSource.getRepository(IccidStatus);
|
|
16
16
|
const queryBuilder = iccidStatusRepository
|
|
17
17
|
.createQueryBuilder('iccidStatus')
|
|
@@ -26,3 +26,4 @@ export const updateIccidStatus = async (novaDataSource, params, logger) => {
|
|
|
26
26
|
return result.affected > 0;
|
|
27
27
|
}, 'DevicesRepository::updateIccidStatus');
|
|
28
28
|
};
|
|
29
|
+
//# sourceMappingURL=updateIccidStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateIccidStatus.js","sourceRoot":"","sources":["../../../src/repositories/devices/updateIccidStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAK5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,cAA8B,EAC9B,MAA+B,EAC/B,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3B,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,kEAAkE,CAAC,CAAA;QAC3F,OAAO,KAAK,CAAA;KACb;IAED,2CAA2C;IAC3C,IACE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM;QACvB,MAAM,EAAE,MAAM,EAAE,UAAU,IAAI,IAAI;QAClC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAC7B;QACA,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,kEAAkE,CAAC,CAAA;QAC3F,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,UAAU,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACtF,MAAM,qBAAqB,GAAG,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAA;QAEnE,MAAM,YAAY,GAAG,qBAAqB;aACvC,kBAAkB,CAAC,aAAa,CAAC;aACjC,MAAM,CAAC,WAAW,CAAC;aACnB,GAAG,CAAC;YACH,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM;YAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;YACpC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY;SACzC,CAAC;aACD,KAAK,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;QAE3D,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -21,7 +21,7 @@ export const updateImeiIccidCarrier = async (novaDataSource, params, logger) =>
|
|
|
21
21
|
logger.warn({ params }, 'DevicesRepository::updateImeiIccidCarrier missing required parameters');
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
24
|
-
return novaDataSource.
|
|
24
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
25
25
|
const imeiIccidCarrierRepository = dataSource.getRepository(ImeiIccidCarrier);
|
|
26
26
|
const now = new Date();
|
|
27
27
|
let queryBuilder = imeiIccidCarrierRepository
|
|
@@ -41,3 +41,4 @@ export const updateImeiIccidCarrier = async (novaDataSource, params, logger) =>
|
|
|
41
41
|
return result.affected > 0;
|
|
42
42
|
}, 'DevicesRepository::updateImeiIccidCarrier');
|
|
43
43
|
};
|
|
44
|
+
//# sourceMappingURL=updateImeiIccidCarrier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateImeiIccidCarrier.js","sourceRoot":"","sources":["../../../src/repositories/devices/updateImeiIccidCarrier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAKjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,cAA8B,EAC9B,MAAoC,EACpC,MAAc,EACI,EAAE;IACpB,6BAA6B;IAC7B,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QACrD,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,uEAAuE,CAAC,CAAA;QAChG,OAAO,KAAK,CAAA;KACb;IAED,2CAA2C;IAC3C,IACE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO;QACxB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK;QACtB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY;QAC7B,CAAC,MAAM,EAAE,MAAM,EAAE,wBAAwB;QACzC,MAAM,EAAE,MAAM,EAAE,OAAO,IAAI,IAAI;QAC/B,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK;QACtB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS;QAC1B,CAAC,MAAM,EAAE,MAAM,EAAE,E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figuration } from '../../entities';
|
|
2
|
+
export const upsertDeviceCustomConfigInternal = async (novaDataSource, params, logger) => {
|
|
3
|
+
if (params?.some(p => p.id == null && p.deviceTypeId == null)) {
|
|
4
|
+
logger.warn({ params }, 'DevicesRepository::upsertDeviceCustomConfig missing required params');
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
8
|
+
const deviceCustomConfigRepository = dataSource.getRepository(DeviceCustomConfiguration);
|
|
9
|
+
const result = await deviceCustomConfigRepository.upsert(params, {
|
|
10
|
+
conflictPaths: ['id'],
|
|
11
|
+
});
|
|
12
|
+
return result?.raw?.affectedRows > 0;
|
|
13
|
+
}, 'DevicesRepository::upsertDeviceCustomConfig');
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=upsertDeviceCustomConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsertDeviceCustomConfig.js","sourceRoot":"","sources":["../../../src/repositories/devices/upsertDeviceCustomConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAK1D,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,EACnD,cAA8B,EAC9B,MAAwC,EACxC,MAAc,EACI,EAAE;IACpB,IAAI,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC,YAAY,IAAI,IAAI,CAAC,EAAE;QAC7D,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,qEAAqE,CAAC,CAAA;QAC9F,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,UAAU,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACtF,MAAM,4BAA4B,GAAG,UAAU,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAA;QAExF,MAAM,MAAM,GAAG,MAAM,4BAA4B,CAAC,MAAM,CAAC,MAAM,EAAE;YAC/D,aAAa,EAAE,CAAC,IAAI,CAAC;SACtB,CAAC,CAAA;QAEF,OAAO,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,CAAA;IACtC,CAAC,EAAE,6CAA6C,CAAC,CAAA;AACnD,CAAC,CAAA"}
|