@spytecgps/nova-orm 1.2.25 → 1.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/acumaticaAmazonProduct.d.ts +8 -8
- package/dist/entities/acumaticaAmazonProduct.js +46 -46
- package/dist/entities/acumaticaImeiIccidData.d.ts +17 -17
- package/dist/entities/acumaticaImeiIccidData.js +92 -92
- package/dist/entities/acumaticaOrderShipmentDetails.d.ts +11 -11
- package/dist/entities/acumaticaOrderShipmentDetails.js +62 -62
- package/dist/entities/acumaticaShipment.d.ts +5 -5
- package/dist/entities/acumaticaShipment.js +31 -31
- package/dist/entities/acumaticaShipmentAmazon.d.ts +4 -4
- package/dist/entities/acumaticaShipmentAmazon.js +26 -26
- package/dist/entities/aempToken.d.ts +10 -10
- package/dist/entities/aempToken.js +47 -47
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.d.ts +15 -15
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js +81 -81
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.d.ts +28 -28
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js +146 -146
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.d.ts +7 -7
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js +41 -41
- package/dist/entities/alert.d.ts +28 -28
- package/dist/entities/alert.js +136 -136
- package/dist/entities/alertType.d.ts +14 -14
- package/dist/entities/alertType.js +83 -83
- package/dist/entities/appFeatureType.d.ts +6 -6
- package/dist/entities/appFeatureType.js +36 -36
- package/dist/entities/asinPromotion.d.ts +7 -7
- package/dist/entities/asinPromotion.js +36 -36
- package/dist/entities/assetCategory.d.ts +5 -5
- package/dist/entities/assetCategory.js +32 -32
- package/dist/entities/beaconBleMesh.d.ts +11 -11
- package/dist/entities/beaconBleMesh.js +62 -62
- package/dist/entities/billing.d.ts +20 -20
- package/dist/entities/billing.js +108 -108
- package/dist/entities/billingCustomerAmazon.d.ts +14 -14
- package/dist/entities/billingCustomerAmazon.js +82 -82
- package/dist/entities/billingCustomerBraintree.d.ts +11 -11
- package/dist/entities/billingCustomerBraintree.js +62 -62
- package/dist/entities/billingDeviceHistory.d.ts +11 -11
- package/dist/entities/billingDeviceHistory.js +61 -61
- package/dist/entities/billingDeviceTypePlan.d.ts +12 -12
- package/dist/entities/billingDeviceTypePlan.js +63 -63
- package/dist/entities/billingHubspotPaymentLog.d.ts +50 -50
- package/dist/entities/billingHubspotPaymentLog.js +256 -256
- package/dist/entities/billingKlarnaCustomer.d.ts +14 -14
- package/dist/entities/billingKlarnaCustomer.js +76 -76
- package/dist/entities/billingKlarnaOrder.d.ts +17 -17
- package/dist/entities/billingKlarnaOrder.js +114 -114
- package/dist/entities/billingPlanFeatures.d.ts +6 -6
- package/dist/entities/billingPlanFeatures.js +36 -36
- package/dist/entities/billingPlans.d.ts +22 -22
- package/dist/entities/billingPlans.js +126 -126
- package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -10
- package/dist/entities/billingStatusHistoryBraintree.js +63 -63
- package/dist/entities/billingSubscriptionAmazon.d.ts +22 -22
- package/dist/entities/billingSubscriptionAmazon.js +161 -161
- package/dist/entities/billingSubscriptionBraintree.d.ts +34 -34
- package/dist/entities/billingSubscriptionBraintree.js +229 -229
- package/dist/entities/blacklist.d.ts +9 -9
- package/dist/entities/blacklist.js +51 -51
- package/dist/entities/blacklistType.d.ts +5 -5
- package/dist/entities/blacklistType.js +31 -31
- package/dist/entities/bleMesh.d.ts +15 -15
- package/dist/entities/bleMesh.js +73 -73
- package/dist/entities/bleMeshConfiguration.d.ts +9 -9
- package/dist/entities/bleMeshConfiguration.js +56 -56
- package/dist/entities/boundary.d.ts +23 -23
- package/dist/entities/boundary.js +120 -120
- package/dist/entities/boundaryEvent.d.ts +20 -20
- package/dist/entities/boundaryEvent.js +105 -105
- package/dist/entities/cellTower.d.ts +12 -12
- package/dist/entities/cellTower.js +66 -66
- package/dist/entities/client.d.ts +34 -34
- package/dist/entities/client.js +147 -147
- package/dist/entities/clientAlertConfiguration.d.ts +18 -17
- package/dist/entities/clientAlertConfiguration.js +101 -89
- package/dist/entities/clientAlertConfiguration.js.map +1 -1
- package/dist/entities/clientAlertRecipient.d.ts +16 -16
- package/dist/entities/clientAlertRecipient.js +97 -97
- package/dist/entities/clientAppFeature.d.ts +9 -9
- package/dist/entities/clientAppFeature.js +47 -47
- package/dist/entities/clientConfiguration.d.ts +9 -9
- package/dist/entities/clientConfiguration.js +58 -58
- package/dist/entities/clientDeviceSetting.d.ts +14 -14
- package/dist/entities/clientDeviceSetting.js +95 -95
- package/dist/entities/clientIngestorConfiguration.d.ts +8 -8
- package/dist/entities/clientIngestorConfiguration.js +47 -47
- package/dist/entities/clientType.d.ts +6 -6
- package/dist/entities/clientType.js +36 -36
- package/dist/entities/country.d.ts +16 -16
- package/dist/entities/country.js +91 -91
- package/dist/entities/customerAttribute.d.ts +15 -15
- package/dist/entities/customerAttribute.js +80 -80
- package/dist/entities/dataExport.d.ts +17 -17
- package/dist/entities/dataExport.js +73 -73
- package/dist/entities/dataSourceType.d.ts +5 -5
- package/dist/entities/dataSourceType.js +31 -31
- package/dist/entities/deactivation.d.ts +14 -14
- package/dist/entities/deactivation.js +83 -83
- package/dist/entities/deactivationReason.d.ts +6 -6
- package/dist/entities/deactivationReason.js +40 -40
- package/dist/entities/device.d.ts +38 -38
- package/dist/entities/device.js +173 -173
- package/dist/entities/deviceBehavior.d.ts +25 -25
- package/dist/entities/deviceBehavior.js +147 -147
- package/dist/entities/deviceBleMesh.d.ts +14 -14
- package/dist/entities/deviceBleMesh.js +77 -77
- package/dist/entities/deviceBleMeshUpdateTask.d.ts +18 -18
- package/dist/entities/deviceBleMeshUpdateTask.js +82 -82
- package/dist/entities/deviceChangesHistory.d.ts +8 -8
- package/dist/entities/deviceChangesHistory.js +47 -47
- package/dist/entities/deviceCustomConfiguration.d.ts +13 -13
- package/dist/entities/deviceCustomConfiguration.js +76 -76
- package/dist/entities/deviceHistory.d.ts +8 -8
- package/dist/entities/deviceHistory.js +46 -46
- package/dist/entities/deviceModelListener.d.ts +8 -8
- package/dist/entities/deviceModelListener.js +46 -46
- package/dist/entities/devicePairing.d.ts +14 -14
- package/dist/entities/devicePairing.js +82 -82
- package/dist/entities/devicePromotion.d.ts +7 -7
- package/dist/entities/devicePromotion.js +36 -36
- package/dist/entities/deviceReplacement.d.ts +12 -12
- package/dist/entities/deviceReplacement.js +57 -57
- package/dist/entities/deviceStatus.d.ts +13 -13
- package/dist/entities/deviceStatus.js +60 -60
- package/dist/entities/deviceTask.d.ts +8 -8
- package/dist/entities/deviceTask.js +44 -44
- package/dist/entities/deviceType.d.ts +26 -26
- package/dist/entities/deviceType.js +143 -143
- package/dist/entities/deviceTypeFeature.d.ts +5 -5
- package/dist/entities/deviceTypeFeature.js +32 -32
- package/dist/entities/deviceTypeFirmware.d.ts +21 -21
- package/dist/entities/deviceTypeFirmware.js +117 -117
- package/dist/entities/deviceTypePromotion.d.ts +7 -7
- package/dist/entities/deviceTypePromotion.js +36 -36
- package/dist/entities/emailDomain.d.ts +5 -5
- package/dist/entities/emailDomain.js +38 -38
- package/dist/entities/entityTag.d.ts +12 -12
- package/dist/entities/entityTag.js +71 -71
- package/dist/entities/entityType.d.ts +5 -5
- package/dist/entities/entityType.js +31 -31
- package/dist/entities/feature.d.ts +6 -6
- package/dist/entities/feature.js +36 -36
- package/dist/entities/firmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/entities/firmwareAutoUpgradeBlacklist.js +35 -35
- package/dist/entities/firmwareUpgradeTask.d.ts +23 -23
- package/dist/entities/firmwareUpgradeTask.js +107 -107
- package/dist/entities/iccidStatus.d.ts +7 -7
- package/dist/entities/iccidStatus.js +49 -49
- package/dist/entities/imeiIccidCarrier.d.ts +21 -21
- package/dist/entities/imeiIccidCarrier.js +125 -125
- package/dist/entities/imeiIccidHistory.d.ts +7 -7
- package/dist/entities/imeiIccidHistory.js +43 -43
- package/dist/entities/imeiIccidImport.d.ts +5 -5
- package/dist/entities/imeiIccidImport.js +31 -31
- package/dist/entities/index.d.ts +121 -120
- package/dist/entities/index.js +121 -120
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/industry.d.ts +8 -8
- package/dist/entities/industry.js +46 -46
- package/dist/entities/latestPosition.d.ts +21 -21
- package/dist/entities/latestPosition.js +105 -105
- package/dist/entities/latestPositionMigration.d.ts +20 -20
- package/dist/entities/latestPositionMigration.js +96 -96
- package/dist/entities/latestPositionMigrationBatch.d.ts +3 -3
- package/dist/entities/latestPositionMigrationBatch.js +21 -21
- package/dist/entities/latestUserAppInfo.d.ts +9 -9
- package/dist/entities/latestUserAppInfo.js +42 -42
- package/dist/entities/liveLink.d.ts +17 -17
- package/dist/entities/liveLink.js +125 -125
- package/dist/entities/magento2Gps.d.ts +50 -50
- package/dist/entities/magento2Gps.js +258 -258
- package/dist/entities/magento2Plan.d.ts +6 -6
- package/dist/entities/magento2Plan.js +41 -41
- package/dist/entities/marketplacePromotion.d.ts +7 -7
- package/dist/entities/marketplacePromotion.js +36 -36
- package/dist/entities/mobileNetwork.d.ts +9 -9
- package/dist/entities/mobileNetwork.js +51 -51
- package/dist/entities/notificationRecipient.d.ts +23 -23
- package/dist/entities/notificationRecipient.js +127 -127
- package/dist/entities/orderShipmentInternational.d.ts +12 -12
- package/dist/entities/orderShipmentInternational.js +66 -66
- package/dist/entities/organization.d.ts +10 -10
- package/dist/entities/organization.js +46 -46
- package/dist/entities/plan.d.ts +16 -16
- package/dist/entities/plan.js +86 -86
- package/dist/entities/position.d.ts +21 -21
- package/dist/entities/position.js +105 -105
- package/dist/entities/positionMigration.d.ts +20 -20
- package/dist/entities/positionMigration.js +96 -96
- package/dist/entities/positionMigrationBatch.d.ts +3 -3
- package/dist/entities/positionMigrationBatch.js +21 -21
- package/dist/entities/promotion.d.ts +24 -24
- package/dist/entities/promotion.js +135 -135
- package/dist/entities/promotionHistory.d.ts +12 -12
- package/dist/entities/promotionHistory.js +89 -89
- package/dist/entities/securityRole.d.ts +10 -10
- package/dist/entities/securityRole.js +47 -47
- package/dist/entities/serviceProvider.d.ts +7 -7
- package/dist/entities/serviceProvider.js +41 -41
- package/dist/entities/serviceProviderProduct.d.ts +9 -9
- package/dist/entities/serviceProviderProduct.js +61 -61
- package/dist/entities/serviceProviderProductNetwork.d.ts +5 -5
- package/dist/entities/serviceProviderProductNetwork.js +31 -31
- package/dist/entities/serviceProviderProductType.d.ts +5 -5
- package/dist/entities/serviceProviderProductType.js +31 -31
- package/dist/entities/sim.d.ts +16 -16
- package/dist/entities/sim.js +92 -92
- package/dist/entities/subscriptionHistoricalPrice.d.ts +20 -20
- package/dist/entities/subscriptionHistoricalPrice.js +150 -150
- package/dist/entities/tag.d.ts +12 -12
- package/dist/entities/tag.js +67 -67
- package/dist/entities/task.d.ts +36 -36
- package/dist/entities/task.js +184 -184
- package/dist/entities/taskSchedule.d.ts +29 -29
- package/dist/entities/taskSchedule.js +146 -146
- package/dist/entities/trip.d.ts +27 -27
- package/dist/entities/trip.js +138 -138
- package/dist/entities/tripCompletionStatus.d.ts +6 -6
- package/dist/entities/tripCompletionStatus.js +36 -36
- package/dist/entities/tripPosition.d.ts +4 -4
- package/dist/entities/tripPosition.js +26 -26
- package/dist/entities/user.d.ts +48 -48
- package/dist/entities/user.js +217 -217
- package/dist/entities/userActivation.d.ts +10 -10
- package/dist/entities/userActivation.js +52 -52
- package/dist/entities/userActivationDevice.d.ts +28 -28
- package/dist/entities/userActivationDevice.js +164 -164
- package/dist/entities/userActivationEvent.d.ts +13 -13
- package/dist/entities/userActivationEvent.js +61 -61
- package/dist/entities/userActivationMetric.d.ts +39 -39
- package/dist/entities/userActivationMetric.js +208 -208
- package/dist/entities/userAlertComplain.d.ts +18 -18
- package/dist/entities/userAlertComplain.js +78 -78
- package/dist/entities/userAlertConfiguration.d.ts +25 -25
- package/dist/entities/userAlertConfiguration.js +142 -142
- package/dist/entities/userAlertNotificationsConfig.d.ts +14 -14
- package/dist/entities/userAlertNotificationsConfig.js +90 -90
- package/dist/entities/userAppFeedback.d.ts +11 -11
- package/dist/entities/userAppFeedback.js +52 -52
- package/dist/entities/userAppIncident.d.ts +30 -30
- package/dist/entities/userAppIncident.js +176 -176
- package/dist/entities/userConfiguration.d.ts +21 -21
- package/dist/entities/userConfiguration.js +109 -109
- package/dist/entities/userDataDeletionRequest.d.ts +12 -12
- package/dist/entities/userDataDeletionRequest.js +57 -57
- package/dist/entities/userDeviceBehaviorTask.d.ts +16 -16
- package/dist/entities/userDeviceBehaviorTask.js +80 -80
- package/dist/entities/userInvitation.d.ts +20 -20
- package/dist/entities/userInvitation.js +101 -101
- package/dist/entities/userRatingRequest.d.ts +14 -14
- package/dist/entities/userRatingRequest.js +75 -75
- package/dist/entities/userRegistrationAttempt.d.ts +36 -36
- package/dist/entities/userRegistrationAttempt.js +177 -177
- package/dist/entities/userSecurityRole.d.ts +12 -12
- package/dist/entities/userSecurityRole.js +45 -45
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -1
- package/dist/migration/1684483704434-addLowerCaseIndex.d.ts +5 -5
- package/dist/migration/1684483704434-addLowerCaseIndex.js +16 -16
- package/dist/novaDataSource.d.ts +88 -88
- package/dist/novaDataSource.js +192 -194
- package/dist/novaDataSource.js.map +1 -1
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.d.ts +5 -5
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +46 -46
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.d.ts +5 -5
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js +22 -22
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.d.ts +4 -4
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +55 -55
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.d.ts +4 -4
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +32 -32
- package/dist/repositories/acumatica/getOrderShipmentInternational.d.ts +5 -5
- package/dist/repositories/acumatica/getOrderShipmentInternational.js +22 -22
- package/dist/repositories/acumatica/index.d.ts +47 -47
- package/dist/repositories/acumatica/index.js +80 -80
- package/dist/repositories/aempToken/createAempToken.d.ts +5 -5
- package/dist/repositories/aempToken/createAempToken.js +26 -26
- package/dist/repositories/aempToken/deleteAempTokens.d.ts +4 -4
- package/dist/repositories/aempToken/deleteAempTokens.js +30 -30
- package/dist/repositories/aempToken/getAempTokens.d.ts +5 -5
- package/dist/repositories/aempToken/getAempTokens.js +34 -34
- package/dist/repositories/aempToken/index.d.ts +33 -33
- package/dist/repositories/aempToken/index.js +53 -53
- package/dist/repositories/alertTypes/getAlertTypes.d.ts +4 -4
- package/dist/repositories/alertTypes/getAlertTypes.js +18 -18
- package/dist/repositories/alertTypes/index.d.ts +6 -6
- package/dist/repositories/alertTypes/index.js +18 -18
- package/dist/repositories/alerts/createAlert.d.ts +6 -6
- package/dist/repositories/alerts/createAlert.js +98 -98
- package/dist/repositories/alerts/createUserAlertComplain.d.ts +4 -4
- package/dist/repositories/alerts/createUserAlertComplain.js +26 -26
- package/dist/repositories/alerts/getAlertsReportByClient.d.ts +7 -7
- package/dist/repositories/alerts/getAlertsReportByClient.js +69 -69
- package/dist/repositories/alerts/getAlertsReportByUser.d.ts +4 -4
- package/dist/repositories/alerts/getAlertsReportByUser.js +131 -131
- package/dist/repositories/alerts/index.d.ts +78 -78
- package/dist/repositories/alerts/index.js +104 -104
- package/dist/repositories/appFeatures/createAppFeatureType.d.ts +5 -5
- package/dist/repositories/appFeatures/createAppFeatureType.js +15 -15
- package/dist/repositories/appFeatures/createClientAppFeature.d.ts +5 -5
- package/dist/repositories/appFeatures/createClientAppFeature.js +15 -15
- package/dist/repositories/appFeatures/getClientAppFeatures.d.ts +5 -5
- package/dist/repositories/appFeatures/getClientAppFeatures.js +44 -44
- package/dist/repositories/appFeatures/index.d.ts +37 -37
- package/dist/repositories/appFeatures/index.js +57 -57
- package/dist/repositories/assetCategories/getAssetCategories.d.ts +3 -3
- package/dist/repositories/assetCategories/getAssetCategories.js +18 -18
- package/dist/repositories/assetCategories/index.d.ts +9 -9
- package/dist/repositories/assetCategories/index.js +16 -16
- package/dist/repositories/baseRepository.d.ts +21 -21
- package/dist/repositories/baseRepository.js +23 -23
- package/dist/repositories/billing/createBilling.d.ts +5 -5
- package/dist/repositories/billing/createBilling.js +37 -37
- package/dist/repositories/billing/createBillingDeviceHistory.d.ts +5 -5
- package/dist/repositories/billing/createBillingDeviceHistory.js +30 -30
- package/dist/repositories/billing/createBillingHubspotPaymentLog.d.ts +5 -5
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js +61 -61
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.d.ts +5 -5
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +32 -32
- package/dist/repositories/billing/getBillingCustomerBraintreeById.d.ts +5 -5
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js +23 -23
- package/dist/repositories/billing/getBillingDeviceTypePlans.d.ts +5 -5
- package/dist/repositories/billing/getBillingDeviceTypePlans.js +21 -21
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.d.ts +5 -5
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +23 -23
- package/dist/repositories/billing/getBillingPlans.d.ts +4 -4
- package/dist/repositories/billing/getBillingPlans.js +67 -67
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.d.ts +5 -5
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +23 -23
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.d.ts +5 -5
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +30 -30
- package/dist/repositories/billing/getBillings.d.ts +5 -5
- package/dist/repositories/billing/getBillings.js +47 -47
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.d.ts +4 -4
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js +13 -13
- package/dist/repositories/billing/getCanceledImeis.d.ts +4 -4
- package/dist/repositories/billing/getCanceledImeis.js +95 -95
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.d.ts +4 -4
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +65 -65
- package/dist/repositories/billing/getChurnStatusByClientId.d.ts +4 -4
- package/dist/repositories/billing/getChurnStatusByClientId.js +36 -36
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.d.ts +4 -4
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +25 -25
- package/dist/repositories/billing/getMagentoPlan.d.ts +5 -5
- package/dist/repositories/billing/getMagentoPlan.js +26 -26
- package/dist/repositories/billing/getUserByBraintreeCustomerId.d.ts +5 -5
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js +27 -27
- package/dist/repositories/billing/index.d.ts +243 -243
- package/dist/repositories/billing/index.js +424 -424
- package/dist/repositories/billing/updateBilling.d.ts +4 -4
- package/dist/repositories/billing/updateBilling.js +43 -43
- package/dist/repositories/billing/updateBillingCustomerBraintree.d.ts +4 -4
- package/dist/repositories/billing/updateBillingCustomerBraintree.js +37 -37
- package/dist/repositories/billing/upsertBillingCustomerBraintree.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js +48 -48
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js +66 -66
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +52 -52
- package/dist/repositories/billing/upsertBillingKlarnaOrder.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js +58 -58
- package/dist/repositories/billing/upsertBillingPlans.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingPlans.js +53 -53
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.d.ts +4 -4
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +20 -20
- package/dist/repositories/blacklist/deleteBlackList.d.ts +4 -4
- package/dist/repositories/blacklist/deleteBlackList.js +19 -19
- package/dist/repositories/blacklist/getBlacklists.d.ts +5 -5
- package/dist/repositories/blacklist/getBlacklists.js +24 -24
- package/dist/repositories/blacklist/index.d.ts +43 -43
- package/dist/repositories/blacklist/index.js +70 -70
- package/dist/repositories/blacklist/updateBlackList.d.ts +4 -4
- package/dist/repositories/blacklist/updateBlackList.js +30 -30
- package/dist/repositories/blacklist/upsertBlackList.d.ts +5 -5
- package/dist/repositories/blacklist/upsertBlackList.js +40 -40
- package/dist/repositories/bleMesh/addBeaconBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js +28 -28
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js +37 -37
- package/dist/repositories/bleMesh/createBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/createBLEMesh.js +18 -18
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.d.ts +5 -5
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js +46 -46
- package/dist/repositories/bleMesh/getBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getBLEMeshes.js +45 -45
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js +43 -43
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.d.ts +4 -4
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js +55 -55
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js +49 -49
- package/dist/repositories/bleMesh/index.d.ts +157 -157
- package/dist/repositories/bleMesh/index.js +268 -268
- package/dist/repositories/bleMesh/removeBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBLEMesh.js +21 -21
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js +20 -20
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js +27 -27
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js +24 -24
- package/dist/repositories/bleMesh/updateBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateBLEMesh.js +31 -31
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js +26 -26
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js +29 -29
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.d.ts +4 -4
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js +26 -26
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.d.ts +5 -5
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js +18 -18
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.d.ts +4 -4
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js +16 -16
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.d.ts +5 -5
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js +28 -28
- package/dist/repositories/bleMeshConfiguration/index.d.ts +46 -46
- package/dist/repositories/bleMeshConfiguration/index.js +73 -73
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.d.ts +4 -4
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js +30 -30
- package/dist/repositories/boundaries/createBoundary.d.ts +5 -5
- package/dist/repositories/boundaries/createBoundary.js +52 -52
- package/dist/repositories/boundaries/deleteBoundary.d.ts +4 -4
- package/dist/repositories/boundaries/deleteBoundary.js +23 -23
- package/dist/repositories/boundaries/getBoundariesByClientId.d.ts +5 -5
- package/dist/repositories/boundaries/getBoundariesByClientId.js +51 -51
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +23 -23
- package/dist/repositories/boundaries/getBoundariesReport.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundariesReport.js +129 -129
- package/dist/repositories/boundaries/getBoundaryById.d.ts +5 -5
- package/dist/repositories/boundaries/getBoundaryById.js +22 -22
- package/dist/repositories/boundaries/index.d.ts +106 -106
- package/dist/repositories/boundaries/index.js +178 -178
- package/dist/repositories/boundaries/processBoundaryEvent.d.ts +4 -4
- package/dist/repositories/boundaries/processBoundaryEvent.js +211 -211
- package/dist/repositories/boundaries/updateBoundary.d.ts +4 -4
- package/dist/repositories/boundaries/updateBoundary.js +53 -53
- package/dist/repositories/boundaries/upsertBoundaryEvent.d.ts +4 -4
- package/dist/repositories/boundaries/upsertBoundaryEvent.js +23 -23
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.d.ts +5 -5
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js +24 -24
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js +24 -24
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.d.ts +5 -5
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js +43 -43
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js +39 -39
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js +72 -72
- package/dist/repositories/clientAlertConfiguration/index.d.ts +13 -13
- package/dist/repositories/clientAlertConfiguration/index.js +138 -138
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js +50 -50
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js +174 -174
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js +42 -42
- package/dist/repositories/clients/createClient.d.ts +5 -5
- package/dist/repositories/clients/createClient.js +35 -35
- package/dist/repositories/clients/createClientConfiguration.d.ts +5 -5
- package/dist/repositories/clients/createClientConfiguration.js +20 -20
- package/dist/repositories/clients/createClientIngestorConfiguration.d.ts +5 -5
- package/dist/repositories/clients/createClientIngestorConfiguration.js +20 -20
- package/dist/repositories/clients/createCustomerAttribute.d.ts +5 -5
- package/dist/repositories/clients/createCustomerAttribute.js +21 -21
- package/dist/repositories/clients/deleteClientAndConfiguration.d.ts +4 -4
- package/dist/repositories/clients/deleteClientAndConfiguration.js +25 -25
- package/dist/repositories/clients/getClient.d.ts +5 -5
- package/dist/repositories/clients/getClient.js +37 -37
- package/dist/repositories/clients/getClientConfiguration.d.ts +5 -5
- package/dist/repositories/clients/getClientConfiguration.js +30 -30
- package/dist/repositories/clients/getClientIngestorConfigurations.d.ts +4 -4
- package/dist/repositories/clients/getClientIngestorConfigurations.js +24 -24
- package/dist/repositories/clients/getClients.d.ts +5 -5
- package/dist/repositories/clients/getClients.js +31 -31
- package/dist/repositories/clients/getCustomerAttribute.d.ts +5 -5
- package/dist/repositories/clients/getCustomerAttribute.js +22 -22
- package/dist/repositories/clients/index.d.ts +138 -138
- package/dist/repositories/clients/index.js +227 -227
- package/dist/repositories/clients/updateClient.d.ts +4 -4
- package/dist/repositories/clients/updateClient.js +52 -52
- package/dist/repositories/clients/updateClientConfiguration.d.ts +4 -4
- package/dist/repositories/clients/updateClientConfiguration.js +28 -28
- package/dist/repositories/clients/updateCustomerAttribute.d.ts +4 -4
- package/dist/repositories/clients/updateCustomerAttribute.js +26 -26
- package/dist/repositories/countries/getCountries.d.ts +4 -4
- package/dist/repositories/countries/getCountries.js +19 -19
- package/dist/repositories/countries/getCountry.d.ts +5 -5
- package/dist/repositories/countries/getCountry.js +28 -28
- package/dist/repositories/countries/index.d.ts +20 -20
- package/dist/repositories/countries/index.js +33 -33
- package/dist/repositories/dataExports/createDataExports.d.ts +5 -5
- package/dist/repositories/dataExports/createDataExports.js +31 -31
- package/dist/repositories/dataExports/getDataExports.d.ts +4 -4
- package/dist/repositories/dataExports/getDataExports.js +46 -46
- package/dist/repositories/dataExports/index.d.ts +38 -38
- package/dist/repositories/dataExports/index.js +58 -58
- package/dist/repositories/dataExports/updateDataExports.d.ts +4 -4
- package/dist/repositories/dataExports/updateDataExports.js +25 -25
- package/dist/repositories/deactivations/createDeactivation.d.ts +5 -5
- package/dist/repositories/deactivations/createDeactivation.js +16 -16
- package/dist/repositories/deactivations/getDeactivationReasons.d.ts +5 -5
- package/dist/repositories/deactivations/getDeactivationReasons.js +29 -29
- package/dist/repositories/deactivations/getLatestDeactivationByImei.d.ts +5 -5
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js +24 -24
- package/dist/repositories/deactivations/index.d.ts +38 -38
- package/dist/repositories/deactivations/index.js +58 -58
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +48 -48
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +45 -45
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +46 -46
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +21 -21
- package/dist/repositories/deviceBehaviors/index.d.ts +70 -70
- package/dist/repositories/deviceBehaviors/index.js +111 -111
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.d.ts +4 -4
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +27 -27
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +20 -20
- package/dist/repositories/devicePairings/createDevicePairing.d.ts +5 -5
- package/dist/repositories/devicePairings/createDevicePairing.js +21 -21
- package/dist/repositories/devicePairings/deleteDevicePairing.d.ts +4 -4
- package/dist/repositories/devicePairings/deleteDevicePairing.js +16 -16
- package/dist/repositories/devicePairings/getDevicePairings.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairings.js +41 -41
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js +27 -27
- package/dist/repositories/devicePairings/getDevicePairingsByImei.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js +25 -25
- package/dist/repositories/devicePairings/index.d.ts +65 -65
- package/dist/repositories/devicePairings/index.js +106 -106
- package/dist/repositories/devicePairings/updateDevicePairing.d.ts +4 -4
- package/dist/repositories/devicePairings/updateDevicePairing.js +35 -35
- package/dist/repositories/deviceStatus/extendedDeviceStatus.d.ts +12 -12
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js +206 -206
- package/dist/repositories/deviceStatus/getDeviceStatuses.d.ts +4 -4
- package/dist/repositories/deviceStatus/getDeviceStatuses.js +87 -87
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.d.ts +4 -4
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js +41 -41
- package/dist/repositories/deviceStatus/index.d.ts +35 -35
- package/dist/repositories/deviceStatus/index.js +62 -62
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.d.ts +4 -4
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js +39 -39
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.d.ts +5 -5
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js +19 -19
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js +21 -21
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js +24 -24
- package/dist/repositories/deviceTypeFeature/index.d.ts +27 -27
- package/dist/repositories/deviceTypeFeature/index.js +47 -47
- package/dist/repositories/devices/addDeviceChangesHistory.d.ts +5 -5
- package/dist/repositories/devices/addDeviceChangesHistory.js +34 -34
- package/dist/repositories/devices/allImeisAreActiveForClient.d.ts +4 -4
- package/dist/repositories/devices/allImeisAreActiveForClient.js +29 -29
- package/dist/repositories/devices/createClientDeviceSetting.d.ts +5 -5
- package/dist/repositories/devices/createClientDeviceSetting.js +26 -26
- package/dist/repositories/devices/createDevice.d.ts +5 -5
- package/dist/repositories/devices/createDevice.js +30 -30
- package/dist/repositories/devices/createDeviceReplacement.d.ts +5 -5
- package/dist/repositories/devices/createDeviceReplacement.js +34 -34
- package/dist/repositories/devices/createDeviceType.d.ts +5 -5
- package/dist/repositories/devices/createDeviceType.js +15 -15
- package/dist/repositories/devices/createImeiIccidCarrier.d.ts +5 -5
- package/dist/repositories/devices/createImeiIccidCarrier.js +18 -18
- package/dist/repositories/devices/deleteDevice.d.ts +4 -4
- package/dist/repositories/devices/deleteDevice.js +16 -16
- package/dist/repositories/devices/generateDeviceIdentifierKey.d.ts +4 -4
- package/dist/repositories/devices/generateDeviceIdentifierKey.js +18 -18
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.d.ts +4 -4
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +49 -49
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.d.ts +4 -4
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +45 -45
- package/dist/repositories/devices/getClientDeviceSetting.d.ts +5 -5
- package/dist/repositories/devices/getClientDeviceSetting.js +25 -25
- package/dist/repositories/devices/getClientDeviceSettings.d.ts +5 -5
- package/dist/repositories/devices/getClientDeviceSettings.js +22 -22
- package/dist/repositories/devices/getDevice.d.ts +5 -5
- package/dist/repositories/devices/getDevice.js +38 -38
- package/dist/repositories/devices/getDeviceChangesHistory.d.ts +5 -5
- package/dist/repositories/devices/getDeviceChangesHistory.js +27 -27
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.d.ts +4 -4
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js +23 -23
- package/dist/repositories/devices/getDeviceCustomConfig.d.ts +5 -5
- package/dist/repositories/devices/getDeviceCustomConfig.js +42 -42
- package/dist/repositories/devices/getDeviceTypeByImei.d.ts +5 -5
- package/dist/repositories/devices/getDeviceTypeByImei.js +23 -23
- package/dist/repositories/devices/getDeviceTypes.d.ts +4 -4
- package/dist/repositories/devices/getDeviceTypes.js +52 -52
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -3
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +32 -32
- package/dist/repositories/devices/getDeviceWithUsersInfo.d.ts +4 -4
- package/dist/repositories/devices/getDeviceWithUsersInfo.js +61 -61
- package/dist/repositories/devices/getDevices.d.ts +5 -5
- package/dist/repositories/devices/getDevices.js +92 -92
- package/dist/repositories/devices/getDevicesCountByStatus.d.ts +4 -4
- package/dist/repositories/devices/getDevicesCountByStatus.js +31 -31
- package/dist/repositories/devices/getFilteredImeisWithStatus.d.ts +4 -4
- package/dist/repositories/devices/getFilteredImeisWithStatus.js +25 -25
- package/dist/repositories/devices/getIccidStatus.d.ts +5 -5
- package/dist/repositories/devices/getIccidStatus.js +22 -22
- package/dist/repositories/devices/getImeiIccidCarrier.d.ts +5 -5
- package/dist/repositories/devices/getImeiIccidCarrier.js +28 -28
- package/dist/repositories/devices/getImeiIccidCarriers.d.ts +5 -5
- package/dist/repositories/devices/getImeiIccidCarriers.js +22 -22
- package/dist/repositories/devices/getServiceProviderProduct.d.ts +5 -5
- package/dist/repositories/devices/getServiceProviderProduct.js +22 -22
- package/dist/repositories/devices/index.d.ts +331 -331
- package/dist/repositories/devices/index.js +562 -562
- package/dist/repositories/devices/updateClientDeviceSetting.d.ts +4 -4
- package/dist/repositories/devices/updateClientDeviceSetting.js +40 -40
- package/dist/repositories/devices/updateDevice.d.ts +4 -4
- package/dist/repositories/devices/updateDevice.js +46 -46
- package/dist/repositories/devices/updateDeviceType.d.ts +4 -4
- package/dist/repositories/devices/updateDeviceType.js +43 -43
- package/dist/repositories/devices/updateIccidStatus.d.ts +4 -4
- package/dist/repositories/devices/updateIccidStatus.js +28 -28
- package/dist/repositories/devices/updateImeiIccidCarrier.d.ts +4 -4
- package/dist/repositories/devices/updateImeiIccidCarrier.js +43 -43
- package/dist/repositories/devices/upsertDeviceCustomConfig.d.ts +4 -4
- package/dist/repositories/devices/upsertDeviceCustomConfig.js +14 -14
- package/dist/repositories/devices/upsertIccidStatus.d.ts +4 -4
- package/dist/repositories/devices/upsertIccidStatus.js +36 -36
- package/dist/repositories/entityTags/bulkCreateEntityTag.d.ts +5 -5
- package/dist/repositories/entityTags/bulkCreateEntityTag.js +20 -20
- package/dist/repositories/entityTags/bulkDeleteEntityTag.d.ts +4 -4
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js +27 -27
- package/dist/repositories/entityTags/createEntityTag.d.ts +5 -5
- package/dist/repositories/entityTags/createEntityTag.js +19 -19
- package/dist/repositories/entityTags/deleteEntityTag.d.ts +4 -4
- package/dist/repositories/entityTags/deleteEntityTag.js +21 -21
- package/dist/repositories/entityTags/deleteEntityTagById.d.ts +3 -3
- package/dist/repositories/entityTags/deleteEntityTagById.js +12 -12
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.d.ts +4 -4
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js +37 -37
- package/dist/repositories/entityTags/getEntityTagById.d.ts +5 -5
- package/dist/repositories/entityTags/getEntityTagById.js +22 -22
- package/dist/repositories/entityTags/index.d.ts +48 -48
- package/dist/repositories/entityTags/index.js +103 -103
- package/dist/repositories/entityTags/searchEntityTags.d.ts +4 -4
- package/dist/repositories/entityTags/searchEntityTags.js +45 -45
- package/dist/repositories/features/createFeature.d.ts +5 -5
- package/dist/repositories/features/createFeature.js +20 -20
- package/dist/repositories/features/deleteFeature.d.ts +4 -4
- package/dist/repositories/features/deleteFeature.js +16 -16
- package/dist/repositories/features/getFeatures.d.ts +4 -4
- package/dist/repositories/features/getFeatures.js +24 -24
- package/dist/repositories/features/index.d.ts +33 -33
- package/dist/repositories/features/index.js +60 -60
- package/dist/repositories/features/upsertFeature.d.ts +4 -4
- package/dist/repositories/features/upsertFeature.js +22 -22
- package/dist/repositories/firmwares/createDeviceFirmware.d.ts +5 -5
- package/dist/repositories/firmwares/createDeviceFirmware.js +37 -37
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +16 -16
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.d.ts +5 -5
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +36 -36
- package/dist/repositories/firmwares/getDeviceFirmwares.d.ts +4 -4
- package/dist/repositories/firmwares/getDeviceFirmwares.js +28 -28
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +28 -28
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.d.ts +5 -5
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +110 -110
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.d.ts +4 -4
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +61 -61
- package/dist/repositories/firmwares/index.d.ts +132 -132
- package/dist/repositories/firmwares/index.js +194 -194
- package/dist/repositories/firmwares/updateDeviceFirmware.d.ts +4 -4
- package/dist/repositories/firmwares/updateDeviceFirmware.js +41 -41
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.d.ts +4 -4
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +37 -37
- package/dist/repositories/index.d.ts +42 -42
- package/dist/repositories/index.js +42 -43
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.d.ts +5 -5
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js +26 -26
- package/dist/repositories/latestUserAppInfo/index.d.ts +23 -23
- package/dist/repositories/latestUserAppInfo/index.js +36 -36
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.d.ts +4 -4
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js +28 -28
- package/dist/repositories/notificationRecipients/createNotificationRecipient.d.ts +5 -5
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js +38 -38
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.d.ts +4 -4
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +31 -31
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.d.ts +4 -4
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +28 -28
- package/dist/repositories/notificationRecipients/getNotificationRecipients.d.ts +5 -5
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js +35 -35
- package/dist/repositories/notificationRecipients/index.d.ts +83 -83
- package/dist/repositories/notificationRecipients/index.js +131 -131
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +37 -37
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +65 -65
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +28 -28
- package/dist/repositories/positions/createPosition.d.ts +6 -6
- package/dist/repositories/positions/createPosition.js +102 -102
- package/dist/repositories/positions/getBatteryReportForDevice.d.ts +4 -4
- package/dist/repositories/positions/getBatteryReportForDevice.js +46 -46
- package/dist/repositories/positions/getLatestPositionByImei.d.ts +5 -5
- package/dist/repositories/positions/getLatestPositionByImei.js +32 -32
- package/dist/repositories/positions/getPositionsByImei.d.ts +5 -5
- package/dist/repositories/positions/getPositionsByImei.js +29 -29
- package/dist/repositories/positions/getPositionsReportByClient.d.ts +4 -4
- package/dist/repositories/positions/getPositionsReportByClient.js +95 -95
- package/dist/repositories/positions/index.d.ts +69 -69
- package/dist/repositories/positions/index.js +109 -109
- package/dist/repositories/positions/mapping/mapToPositionReport.d.ts +5 -5
- package/dist/repositories/positions/mapping/mapToPositionReport.js +20 -20
- package/dist/repositories/positions/upsertLatestPosition.d.ts +4 -4
- package/dist/repositories/positions/upsertLatestPosition.js +41 -41
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.d.ts +5 -5
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js +14 -14
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.d.ts +5 -5
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js +14 -14
- package/dist/repositories/promotions/createPromotion.d.ts +5 -5
- package/dist/repositories/promotions/createPromotion.js +29 -29
- package/dist/repositories/promotions/createPromotionHistory.d.ts +5 -5
- package/dist/repositories/promotions/createPromotionHistory.js +17 -17
- package/dist/repositories/promotions/deleteDeviceTypePromotion.d.ts +4 -4
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js +21 -21
- package/dist/repositories/promotions/deleteMarketplacePromotion.d.ts +4 -4
- package/dist/repositories/promotions/deleteMarketplacePromotion.js +23 -23
- package/dist/repositories/promotions/getDeviceTypePromotion.d.ts +5 -5
- package/dist/repositories/promotions/getDeviceTypePromotion.js +27 -27
- package/dist/repositories/promotions/getMarketplacePromotion.d.ts +5 -5
- package/dist/repositories/promotions/getMarketplacePromotion.js +27 -27
- package/dist/repositories/promotions/getPromotions.d.ts +5 -5
- package/dist/repositories/promotions/getPromotions.js +63 -63
- package/dist/repositories/promotions/index.d.ts +72 -72
- package/dist/repositories/promotions/index.js +139 -139
- package/dist/repositories/promotions/promotionValidator.d.ts +3 -3
- package/dist/repositories/promotions/promotionValidator.js +16 -16
- package/dist/repositories/promotions/updatePromotion.d.ts +4 -4
- package/dist/repositories/promotions/updatePromotion.js +35 -35
- package/dist/repositories/security/createUserRole.d.ts +5 -5
- package/dist/repositories/security/createUserRole.js +30 -30
- package/dist/repositories/security/getAllRoles.d.ts +3 -3
- package/dist/repositories/security/getAllRoles.js +18 -18
- package/dist/repositories/security/getUserRoles.d.ts +5 -5
- package/dist/repositories/security/getUserRoles.js +23 -23
- package/dist/repositories/security/getUserRolesByClientId.d.ts +5 -5
- package/dist/repositories/security/getUserRolesByClientId.js +25 -25
- package/dist/repositories/security/index.d.ts +56 -56
- package/dist/repositories/security/index.js +111 -111
- package/dist/repositories/security/removeUserRoles.d.ts +4 -4
- package/dist/repositories/security/removeUserRoles.js +21 -21
- package/dist/repositories/security/updateUserRole.d.ts +4 -4
- package/dist/repositories/security/updateUserRole.js +27 -27
- package/dist/repositories/security/userIsAdminOrOwner.d.ts +4 -4
- package/dist/repositories/security/userIsAdminOrOwner.js +25 -25
- package/dist/repositories/security/userIsInRole.d.ts +4 -4
- package/dist/repositories/security/userIsInRole.js +22 -22
- package/dist/repositories/tags/bulkCreateTags.d.ts +5 -5
- package/dist/repositories/tags/bulkCreateTags.js +24 -24
- package/dist/repositories/tags/createTag.d.ts +5 -5
- package/dist/repositories/tags/createTag.js +20 -20
- package/dist/repositories/tags/deleteTag.d.ts +4 -4
- package/dist/repositories/tags/deleteTag.js +19 -19
- package/dist/repositories/tags/index.d.ts +41 -41
- package/dist/repositories/tags/index.js +82 -82
- package/dist/repositories/tags/searchTags.d.ts +4 -4
- package/dist/repositories/tags/searchTags.js +43 -43
- package/dist/repositories/tags/searchTagsByUser.d.ts +4 -4
- package/dist/repositories/tags/searchTagsByUser.js +45 -45
- package/dist/repositories/tags/updateTag.d.ts +4 -4
- package/dist/repositories/tags/updateTag.js +31 -31
- package/dist/repositories/tasks/addTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/addTaskScheduleDevices.js +37 -37
- package/dist/repositories/tasks/completeTask.d.ts +4 -4
- package/dist/repositories/tasks/completeTask.js +34 -34
- package/dist/repositories/tasks/createTask.d.ts +5 -5
- package/dist/repositories/tasks/createTask.js +22 -22
- package/dist/repositories/tasks/createTaskSchedule.d.ts +5 -5
- package/dist/repositories/tasks/createTaskSchedule.js +33 -33
- package/dist/repositories/tasks/deleteTask.d.ts +4 -4
- package/dist/repositories/tasks/deleteTask.js +22 -22
- package/dist/repositories/tasks/deleteTaskSchedule.d.ts +4 -4
- package/dist/repositories/tasks/deleteTaskSchedule.js +22 -22
- package/dist/repositories/tasks/deleteTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js +17 -17
- package/dist/repositories/tasks/getDeviceTasks.d.ts +5 -5
- package/dist/repositories/tasks/getDeviceTasks.js +33 -33
- package/dist/repositories/tasks/getTaskSchedule.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedule.js +42 -42
- package/dist/repositories/tasks/getTaskSchedules.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedules.js +90 -90
- package/dist/repositories/tasks/getTaskSchedulesCount.d.ts +4 -4
- package/dist/repositories/tasks/getTaskSchedulesCount.js +34 -34
- package/dist/repositories/tasks/getTasks.d.ts +5 -5
- package/dist/repositories/tasks/getTasks.js +76 -76
- package/dist/repositories/tasks/getTasksCount.d.ts +4 -4
- package/dist/repositories/tasks/getTasksCount.js +30 -30
- package/dist/repositories/tasks/index.d.ts +325 -325
- package/dist/repositories/tasks/index.js +443 -443
- package/dist/repositories/tasks/setTaskAsPastDue.d.ts +4 -4
- package/dist/repositories/tasks/setTaskAsPastDue.js +23 -23
- package/dist/repositories/tasks/setTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/setTaskScheduleDevices.js +43 -43
- package/dist/repositories/tasks/updateTask.d.ts +4 -4
- package/dist/repositories/tasks/updateTask.js +21 -21
- package/dist/repositories/tasks/updateTaskSchedule.d.ts +4 -4
- package/dist/repositories/tasks/updateTaskSchedule.js +35 -35
- package/dist/repositories/trips/createTrip.d.ts +5 -5
- package/dist/repositories/trips/createTrip.js +29 -29
- package/dist/repositories/trips/getDeviceTripConfiguration.d.ts +4 -4
- package/dist/repositories/trips/getDeviceTripConfiguration.js +51 -51
- package/dist/repositories/trips/getTripById.d.ts +4 -4
- package/dist/repositories/trips/getTripById.js +21 -21
- package/dist/repositories/trips/getTrips.d.ts +4 -4
- package/dist/repositories/trips/getTrips.js +124 -124
- package/dist/repositories/trips/index.d.ts +36 -36
- package/dist/repositories/trips/index.js +77 -77
- package/dist/repositories/trips/updateTripEndValues.d.ts +4 -4
- package/dist/repositories/trips/updateTripEndValues.js +36 -36
- package/dist/repositories/trips/upsertTrip.d.ts +4 -4
- package/dist/repositories/trips/upsertTrip.js +31 -31
- package/dist/repositories/userActivations/createUserActivation.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivation.js +26 -26
- package/dist/repositories/userActivations/createUserActivationDevice.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationDevice.js +35 -35
- package/dist/repositories/userActivations/createUserActivationEvent.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationEvent.js +34 -34
- package/dist/repositories/userActivations/createUserActivationMetric.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationMetric.js +28 -28
- package/dist/repositories/userActivations/deleteUserActivation.d.ts +4 -4
- package/dist/repositories/userActivations/deleteUserActivation.js +22 -22
- package/dist/repositories/userActivations/getLastActivationDevice.d.ts +5 -5
- package/dist/repositories/userActivations/getLastActivationDevice.js +31 -31
- package/dist/repositories/userActivations/getUserActivationById.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationById.js +21 -21
- package/dist/repositories/userActivations/getUserActivationDevices.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationDevices.js +29 -29
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +22 -22
- package/dist/repositories/userActivations/getUserActivationMetrics.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationMetrics.js +29 -29
- package/dist/repositories/userActivations/getUserActivations.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivations.js +34 -34
- package/dist/repositories/userActivations/index.d.ts +147 -147
- package/dist/repositories/userActivations/index.js +237 -237
- package/dist/repositories/userActivations/updateUserActivationDevice.d.ts +4 -4
- package/dist/repositories/userActivations/updateUserActivationDevice.js +39 -39
- package/dist/repositories/userActivations/updateUserActivationMetrics.d.ts +4 -4
- package/dist/repositories/userActivations/updateUserActivationMetrics.js +61 -61
- package/dist/repositories/userAppFeedback/createUserAppFeedback.d.ts +5 -5
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js +26 -26
- package/dist/repositories/userAppFeedback/index.d.ts +17 -17
- package/dist/repositories/userAppFeedback/index.js +23 -23
- package/dist/repositories/userAppIncidents/getUserAppIncidents.d.ts +5 -5
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js +33 -33
- package/dist/repositories/userAppIncidents/index.d.ts +50 -50
- package/dist/repositories/userAppIncidents/index.js +63 -63
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.d.ts +4 -4
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +53 -53
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +45 -45
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.d.ts +5 -5
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js +33 -33
- package/dist/repositories/userConfigurations/createUserConfiguration.d.ts +5 -5
- package/dist/repositories/userConfigurations/createUserConfiguration.js +34 -34
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +29 -29
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js +29 -29
- package/dist/repositories/userConfigurations/deleteUserConfiguration.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js +23 -23
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +33 -33
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js +148 -148
- package/dist/repositories/userConfigurations/getUserConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserConfigurations.js +36 -36
- package/dist/repositories/userConfigurations/index.d.ts +170 -170
- package/dist/repositories/userConfigurations/index.js +260 -260
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +46 -46
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js +52 -52
- package/dist/repositories/userConfigurations/updateUserConfiguration.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserConfiguration.js +49 -49
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.d.ts +4 -4
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js +29 -29
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.d.ts +5 -5
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +28 -28
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.d.ts +5 -5
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +34 -34
- package/dist/repositories/userDataDeletionRequests/index.d.ts +39 -39
- package/dist/repositories/userDataDeletionRequests/index.js +66 -66
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.d.ts +4 -4
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +17 -17
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.d.ts +4 -4
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +38 -38
- package/dist/repositories/userInvitations/createUserInvitation.d.ts +5 -5
- package/dist/repositories/userInvitations/createUserInvitation.js +44 -44
- package/dist/repositories/userInvitations/getUserInvitationById.d.ts +5 -5
- package/dist/repositories/userInvitations/getUserInvitationById.js +27 -27
- package/dist/repositories/userInvitations/getUserInvitations.d.ts +5 -5
- package/dist/repositories/userInvitations/getUserInvitations.js +51 -51
- package/dist/repositories/userInvitations/index.d.ts +55 -55
- package/dist/repositories/userInvitations/index.js +82 -82
- package/dist/repositories/userInvitations/updateUserInvitation.d.ts +4 -4
- package/dist/repositories/userInvitations/updateUserInvitation.js +52 -52
- package/dist/repositories/userRatingRequests/createUserRatingRequest.d.ts +5 -5
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js +34 -34
- package/dist/repositories/userRatingRequests/getUserRatingRequests.d.ts +5 -5
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js +28 -28
- package/dist/repositories/userRatingRequests/index.d.ts +28 -28
- package/dist/repositories/userRatingRequests/index.js +41 -41
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.d.ts +5 -5
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +40 -40
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.d.ts +5 -5
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +34 -34
- package/dist/repositories/userRegistrationAttempts/index.d.ts +50 -50
- package/dist/repositories/userRegistrationAttempts/index.js +70 -70
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.d.ts +4 -4
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +40 -40
- package/dist/repositories/users/createUser.d.ts +5 -5
- package/dist/repositories/users/createUser.js +47 -47
- package/dist/repositories/users/deleteAccount.d.ts +4 -4
- package/dist/repositories/users/deleteAccount.js +98 -98
- package/dist/repositories/users/deleteUser.d.ts +4 -4
- package/dist/repositories/users/deleteUser.js +22 -22
- package/dist/repositories/users/getUserById.d.ts +5 -5
- package/dist/repositories/users/getUserById.js +36 -36
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.d.ts +4 -4
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js +57 -57
- package/dist/repositories/users/getUserData.d.ts +4 -4
- package/dist/repositories/users/getUserData.js +26 -26
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.d.ts +4 -4
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js +86 -86
- package/dist/repositories/users/getUsers.d.ts +5 -5
- package/dist/repositories/users/getUsers.js +96 -96
- package/dist/repositories/users/getUsersConfigurationByImei.d.ts +5 -5
- package/dist/repositories/users/getUsersConfigurationByImei.js +30 -30
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.d.ts +4 -4
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +26 -26
- package/dist/repositories/users/getUsersInfoWithActivationInfo.d.ts +4 -4
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js +24 -24
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.d.ts +4 -4
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +58 -58
- package/dist/repositories/users/getUsersWithRoles.d.ts +4 -4
- package/dist/repositories/users/getUsersWithRoles.js +39 -39
- package/dist/repositories/users/index.d.ts +154 -154
- package/dist/repositories/users/index.js +251 -251
- package/dist/repositories/users/updateUser.d.ts +4 -4
- package/dist/repositories/users/updateUser.js +109 -109
- package/dist/subscribers/allEntitiesSubscriber.d.ts +13 -13
- package/dist/subscribers/allEntitiesSubscriber.js +52 -52
- package/dist/subscribers/index.d.ts +2 -2
- package/dist/subscribers/index.js +2 -2
- package/dist/types/acumatica.d.ts +42 -42
- package/dist/types/acumatica.js +1 -1
- package/dist/types/aempToken.d.ts +20 -20
- package/dist/types/aempToken.js +1 -1
- package/dist/types/alert.d.ts +87 -87
- package/dist/types/alert.js +1 -1
- package/dist/types/alertTypes.d.ts +6 -6
- package/dist/types/alertTypes.js +1 -1
- package/dist/types/appFeatures.d.ts +24 -24
- package/dist/types/appFeatures.js +1 -1
- package/dist/types/billing.d.ts +342 -342
- package/dist/types/billing.js +1 -1
- package/dist/types/blacklist.d.ts +32 -32
- package/dist/types/blacklist.js +1 -1
- package/dist/types/bleMesh.d.ts +157 -157
- package/dist/types/bleMesh.js +1 -1
- package/dist/types/bleMeshConfiguration.d.ts +30 -30
- package/dist/types/bleMeshConfiguration.js +1 -1
- package/dist/types/boundaries.d.ts +125 -125
- package/dist/types/boundaries.js +1 -1
- package/dist/types/clientAlertConfiguration.d.ts +100 -100
- package/dist/types/clientAlertConfiguration.js +1 -1
- package/dist/types/clients.d.ts +137 -137
- package/dist/types/clients.js +34 -34
- package/dist/types/common.d.ts +17 -17
- package/dist/types/common.js +1 -1
- package/dist/types/countries.d.ts +12 -12
- package/dist/types/countries.js +1 -1
- package/dist/types/dataExports.d.ts +43 -43
- package/dist/types/dataExports.js +1 -1
- package/dist/types/deactivations.d.ts +25 -25
- package/dist/types/deactivations.js +1 -1
- package/dist/types/deviceBehaviors.d.ts +97 -97
- package/dist/types/deviceBehaviors.js +1 -1
- package/dist/types/devicePairings.d.ts +56 -56
- package/dist/types/devicePairings.js +1 -1
- package/dist/types/deviceStatus.d.ts +84 -84
- package/dist/types/deviceStatus.js +1 -1
- package/dist/types/deviceTypeFeature.d.ts +23 -23
- package/dist/types/deviceTypeFeature.js +3 -3
- package/dist/types/devices.d.ts +408 -408
- package/dist/types/devices.js +24 -24
- package/dist/types/entitiesTags.d.ts +63 -63
- package/dist/types/entitiesTags.js +25 -25
- package/dist/types/enums.d.ts +85 -85
- package/dist/types/enums.js +102 -102
- package/dist/types/feature.d.ts +20 -20
- package/dist/types/feature.js +2 -2
- package/dist/types/firmwares.d.ts +129 -129
- package/dist/types/firmwares.js +17 -17
- package/dist/types/index.d.ts +38 -38
- package/dist/types/index.js +38 -38
- package/dist/types/latestUserAppInfo.d.ts +12 -12
- package/dist/types/latestUserAppInfo.js +1 -1
- package/dist/types/liveLinks.d.ts +92 -92
- package/dist/types/liveLinks.js +1 -1
- package/dist/types/logger.d.ts +68 -68
- package/dist/types/logger.js +9 -9
- package/dist/types/notificationRecipients.d.ts +72 -72
- package/dist/types/notificationRecipients.js +1 -1
- package/dist/types/position.d.ts +71 -71
- package/dist/types/position.js +1 -1
- package/dist/types/promotion.d.ts +121 -121
- package/dist/types/promotion.js +41 -41
- package/dist/types/security.d.ts +42 -42
- package/dist/types/security.js +1 -1
- package/dist/types/tag.d.ts +65 -65
- package/dist/types/tag.js +14 -14
- package/dist/types/tasks.d.ts +228 -228
- package/dist/types/tasks.js +1 -1
- package/dist/types/trip.d.ts +92 -92
- package/dist/types/trip.js +30 -30
- package/dist/types/user.d.ts +252 -252
- package/dist/types/user.js +1 -1
- package/dist/types/userActivations.d.ts +143 -143
- package/dist/types/userActivations.js +1 -1
- package/dist/types/userAppFeedback.d.ts +8 -8
- package/dist/types/userAppFeedback.js +1 -1
- package/dist/types/userAppIncidents.d.ts +35 -35
- package/dist/types/userAppIncidents.js +1 -1
- package/dist/types/userConfigurations.d.ts +127 -127
- package/dist/types/userConfigurations.js +1 -1
- package/dist/types/userDataDeletionRequests.d.ts +29 -29
- package/dist/types/userDataDeletionRequests.js +1 -1
- package/dist/types/userInvitations.d.ts +48 -48
- package/dist/types/userInvitations.js +1 -1
- package/dist/types/userRatingRequests.d.ts +18 -18
- package/dist/types/userRatingRequests.js +1 -1
- package/dist/types/userRegistrationAttempts.d.ts +36 -36
- package/dist/types/userRegistrationAttempts.js +1 -1
- package/dist/utils/anyAttributeHasValue.d.ts +1 -1
- package/dist/utils/anyAttributeHasValue.js +20 -20
- package/dist/utils/billingPlansHelper.d.ts +3 -3
- package/dist/utils/billingPlansHelper.js +49 -49
- package/dist/utils/boolToNumberTransformer.d.ts +5 -5
- package/dist/utils/boolToNumberTransformer.js +23 -23
- package/dist/utils/consoleLogger.d.ts +10 -10
- package/dist/utils/consoleLogger.js +42 -42
- package/dist/utils/dateTool.d.ts +2 -2
- package/dist/utils/dateTool.js +8 -8
- package/dist/utils/filterTools.d.ts +12 -12
- package/dist/utils/filterTools.js +299 -299
- package/dist/utils/mapRawEntityToEntity.d.ts +1 -1
- package/dist/utils/mapRawEntityToEntity.js +12 -12
- package/dist/utils/paramsValidators.d.ts +3 -3
- package/dist/utils/paramsValidators.js +16 -16
- package/dist/utils/parsingTools.d.ts +3 -3
- package/dist/utils/parsingTools.js +21 -21
- package/dist/utils/queryLogger.d.ts +13 -13
- package/dist/utils/queryLogger.js +49 -49
- package/dist/utils/randomizer.d.ts +5 -5
- package/dist/utils/randomizer.js +39 -39
- package/dist/utils/stringToDateTransformer.d.ts +5 -5
- package/dist/utils/stringToDateTransformer.js +16 -16
- package/dist/utils/uuidHelpers.d.ts +2 -2
- package/dist/utils/uuidHelpers.js +30 -30
- package/dist/utils/uuidTransformer.d.ts +5 -5
- package/dist/utils/uuidTransformer.js +37 -37
- package/package.json +2 -2
|
@@ -1,563 +1,563 @@
|
|
|
1
|
-
import { BaseRepository2 } from './../baseRepository';
|
|
2
|
-
import { addDeviceChangesHistory } from './addDeviceChangesHistory';
|
|
3
|
-
import { allImeisAreActiveForClient } from './allImeisAreActiveForClient';
|
|
4
|
-
import { createClientDeviceSetting } from './createClientDeviceSetting';
|
|
5
|
-
import { createDevice } from './createDevice';
|
|
6
|
-
import { createDeviceReplacement } from './createDeviceReplacement';
|
|
7
|
-
import { createDeviceType } from './createDeviceType';
|
|
8
|
-
import { createImeiIccidCarrier } from './createImeiIccidCarrier';
|
|
9
|
-
import { deleteDevice } from './deleteDevice';
|
|
10
|
-
import { generateDeviceIdentifierKey } from './generateDeviceIdentifierKey';
|
|
11
|
-
import { getCanceledDevicesWithActiveSimCards } from './getCanceledDevicesWithActiveSimCards';
|
|
12
|
-
import { getCarrierStatusUpdatedBefore } from './getCarrierStatusUpdatedBefore';
|
|
13
|
-
import { getClientDeviceSetting } from './getClientDeviceSetting';
|
|
14
|
-
import { getClientDeviceSettings } from './getClientDeviceSettings';
|
|
15
|
-
import { getDevice } from './getDevice';
|
|
16
|
-
import { getDeviceChangesHistory } from './getDeviceChangesHistory';
|
|
17
|
-
import { getDeviceChangesHistoryAssignedToValuesByClient } from './getDeviceChangesHistoryAssignedToValuesByClient';
|
|
18
|
-
import { getDeviceCustomConfigs } from './getDeviceCustomConfig';
|
|
19
|
-
import { getDevices } from './getDevices';
|
|
20
|
-
import { getDevicesCountByStatus } from './getDevicesCountByStatus';
|
|
21
|
-
import { getDeviceTypeByImei } from './getDeviceTypeByImei';
|
|
22
|
-
import { getDeviceTypes } from './getDeviceTypes';
|
|
23
|
-
import { getDeviceTypesModelsOrderedByDeviceCount } from './getDeviceTypesModelsOrderedByDeviceCount';
|
|
24
|
-
import { getDeviceWithUsersInfo } from './getDeviceWithUsersInfo';
|
|
25
|
-
import { getFilteredImeisWithStatus } from './getFilteredImeisWithStatus';
|
|
26
|
-
import { getIccidStatus } from './getIccidStatus';
|
|
27
|
-
import { getImeiIccidCarrier } from './getImeiIccidCarrier';
|
|
28
|
-
import { getImeiIccidCarriers } from './getImeiIccidCarriers';
|
|
29
|
-
import { getServiceProviderProduct } from './getServiceProviderProduct';
|
|
30
|
-
import { updateClientDeviceSetting } from './updateClientDeviceSetting';
|
|
31
|
-
import { updateDevice } from './updateDevice';
|
|
32
|
-
import { updateDeviceType } from './updateDeviceType';
|
|
33
|
-
import { updateIccidStatus } from './updateIccidStatus';
|
|
34
|
-
import { updateImeiIccidCarrier } from './updateImeiIccidCarrier';
|
|
35
|
-
import { upsertDeviceCustomConfigInternal } from './upsertDeviceCustomConfig';
|
|
36
|
-
import { upsertIccidStatus } from './upsertIccidStatus';
|
|
37
|
-
export class DevicesRepository extends BaseRepository2 {
|
|
38
|
-
/**
|
|
39
|
-
* Get device with filters
|
|
40
|
-
* @param {GetDeviceParams} params containing information to get a device with filters
|
|
41
|
-
* - filters.imei: The imei of the device
|
|
42
|
-
* - filters.id: The id of the device
|
|
43
|
-
* - projectionOptions.withDeviceType: Whether to get the device type object
|
|
44
|
-
* - projectionOptions.withIccidCarrier: Whether to get the iccid carrier object
|
|
45
|
-
*/
|
|
46
|
-
async getDevice(params) {
|
|
47
|
-
this.logger.trace(params, 'DevicesRepository::getDevice started with params');
|
|
48
|
-
const result = await getDevice(this.dataSource, params, this.logger);
|
|
49
|
-
this.logger.trace(result, 'DevicesRepository::getDevice result');
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get devices by type id
|
|
54
|
-
* @param {GetDevicesParams} params containing information to get devices by type id
|
|
55
|
-
* - filters.deviceTypeId: The device type id
|
|
56
|
-
* - filters.status: The device status
|
|
57
|
-
* - filters.clientId: The client id
|
|
58
|
-
* - filters.imeiList: The imei list
|
|
59
|
-
* - projectionOptions.withDeviceType: Whether to get the device type object
|
|
60
|
-
* - projectionOptions.withIccidCarrier: Whether to get the iccid carrier object
|
|
61
|
-
*/
|
|
62
|
-
async getDevices(params) {
|
|
63
|
-
this.logger.trace(params, 'DevicesRepository::getDevices started with params');
|
|
64
|
-
const result = await getDevices(this.dataSource, params, this.logger);
|
|
65
|
-
this.logger.trace(result, 'DevicesRepository::getDevices result');
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Check if all imeis are active for a client
|
|
70
|
-
* @param {AllImeisAreActiveForClientParams} params containing information to check if all imeis are active for a client
|
|
71
|
-
* - imeis: The imeis to check
|
|
72
|
-
* - clientId: The client id
|
|
73
|
-
* @returns {Promise<boolean>} Whether all imeis are active for a client
|
|
74
|
-
*/
|
|
75
|
-
async allImeisAreActiveForClient(params) {
|
|
76
|
-
this.logger.trace(params, 'DevicesRepository::allImeisAreActiveForClient started with params');
|
|
77
|
-
const result = await allImeisAreActiveForClient(this.dataSource, params, this.logger);
|
|
78
|
-
this.logger.trace({ result }, 'DevicesRepository::allImeisAreActiveForClient result');
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Get filtered imeis with status
|
|
83
|
-
* @param {GetFilteredImeisWithStatusParams} params containing information to get filtered imeis with status
|
|
84
|
-
* - filters.imeiList: The imei list to filter
|
|
85
|
-
* - filters.status: The device status
|
|
86
|
-
* @returns {Promise<string>} The imei list filtered by status
|
|
87
|
-
*/
|
|
88
|
-
async getFilteredImeisWithStatus(params) {
|
|
89
|
-
this.logger.trace(params, 'DevicesRepository::getFilteredImeisWithStatus started with params');
|
|
90
|
-
const result = await getFilteredImeisWithStatus(this.dataSource, params, this.logger);
|
|
91
|
-
this.logger.trace(result, 'DevicesRepository::getFilteredImeisWithStatus result');
|
|
92
|
-
return result;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Create device
|
|
96
|
-
* @param {CreateDeviceParams} params containing information to create a device
|
|
97
|
-
* - identifier: The device identifier
|
|
98
|
-
* - imei: The imei of the device
|
|
99
|
-
* - clientId: The client id
|
|
100
|
-
* - deviceTypeId: The device type id
|
|
101
|
-
* - iccid: The iccid of the device
|
|
102
|
-
* - name: The name of the device
|
|
103
|
-
* - color: The color of the device
|
|
104
|
-
* - icon: The icon of the device
|
|
105
|
-
* - status: The status of the device
|
|
106
|
-
* - forward: Whether to forward the device
|
|
107
|
-
* - description: The description of the device
|
|
108
|
-
* - dataSourceTypeId: The data source type id of the device
|
|
109
|
-
* - assetCategoryId: The asset category id of the device
|
|
110
|
-
* - usageRegion: The usage region of the device
|
|
111
|
-
* - createdBy: The user who created the device
|
|
112
|
-
*
|
|
113
|
-
* @returns {Promise<Device>} The created device
|
|
114
|
-
*/
|
|
115
|
-
async createDevice(params) {
|
|
116
|
-
this.logger.trace(params, 'DevicesRepository::createDevice started with params');
|
|
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
|
-
}
|
|
127
|
-
this.logger.trace(result, 'DevicesRepository::createDevice result');
|
|
128
|
-
return result;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Update device
|
|
132
|
-
* @param {UpdateDeviceParams} params containing information to update a device
|
|
133
|
-
* - filters.imei: The imei of the device
|
|
134
|
-
* - filters.status: The status of the device
|
|
135
|
-
* - filters.clientId: The client id
|
|
136
|
-
* - values.clientId: The client id
|
|
137
|
-
* - values.deviceTypeId: The device type id
|
|
138
|
-
* - values.iccid: The iccid of the device
|
|
139
|
-
* - values.name: The name of the device
|
|
140
|
-
* - values.color: The color of the device
|
|
141
|
-
* - values.icon: The icon of the device
|
|
142
|
-
* - values.status: The status of the device
|
|
143
|
-
* - values.forward: Whether to forward the device
|
|
144
|
-
* - values.description: The description of the device
|
|
145
|
-
* - values.dataSourceTypeId: The data source type id of the device
|
|
146
|
-
* - values.assetCategoryId: The asset category id of the device
|
|
147
|
-
* - values.usageRegion: The usage region of the device
|
|
148
|
-
* - values.modifiedBy: The user who updated the device
|
|
149
|
-
* @returns {Promise<boolean>} Whether the device was updated
|
|
150
|
-
*/
|
|
151
|
-
async updateDevice(params) {
|
|
152
|
-
this.logger.trace(params, 'DevicesRepository::updateDevice started with params');
|
|
153
|
-
const result = await updateDevice(this.dataSource, params, this.logger);
|
|
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
|
-
}
|
|
169
|
-
return result;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Delete device
|
|
173
|
-
* @param {DeleteDeviceParams} params containing information to delete a device
|
|
174
|
-
* - filters.imei: The imei of the device
|
|
175
|
-
*
|
|
176
|
-
* @returns {Promise<boolean>} Whether the device was deleted
|
|
177
|
-
*/
|
|
178
|
-
async deleteDevice(params) {
|
|
179
|
-
this.logger.trace(params, 'DevicesRepository::deleteDevice started with params');
|
|
180
|
-
const result = await deleteDevice(this.dataSource, params, this.logger);
|
|
181
|
-
this.logger.trace({ result }, 'DevicesRepository::deleteDevice result');
|
|
182
|
-
return result;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Generate device identifier key from device type and device identifier
|
|
186
|
-
* @param {GenerateIdentifierKeyParams} params containing information to generate a device identifier key
|
|
187
|
-
* - deviceTypeId: The device type id
|
|
188
|
-
* - deviceIdentifier: The device identifier
|
|
189
|
-
* @returns {Promise<string>} The generated device identifier key
|
|
190
|
-
*/
|
|
191
|
-
async generateDeviceIdentifierKey(params) {
|
|
192
|
-
this.logger.trace(params, 'DevicesRepository::generateDeviceIdentifierKey started with params');
|
|
193
|
-
const result = await generateDeviceIdentifierKey(this.dataSource, params, this.logger);
|
|
194
|
-
this.logger.trace(result, 'DevicesRepository::generateDeviceIdentifierKey result');
|
|
195
|
-
return result;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Get device types
|
|
199
|
-
* @param {GetDeviceTypesParams} params containing information to get device types
|
|
200
|
-
* - filters.onlyWithRelatedIccidCarrier: Whether to get only device types with iccid carrier
|
|
201
|
-
*/
|
|
202
|
-
async getDeviceTypes(params) {
|
|
203
|
-
this.logger.trace(params, 'DevicesRepository::getDeviceTypes started with params');
|
|
204
|
-
const result = await getDeviceTypes(this.dataSource, params);
|
|
205
|
-
this.logger.trace(result, 'DevicesRepository::getDeviceTypes result');
|
|
206
|
-
return result;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Get ImeiIccidCarrier
|
|
210
|
-
* @param {GetImeiIccidCarrierParams} params containing information to get the ImeiIccidCarrier
|
|
211
|
-
* - filters.imei: The imei of the device
|
|
212
|
-
* - filters.iccid: The iccid of the device
|
|
213
|
-
* @returns {Promise<ImeiIccidCarrier>} The imei iccid carrier
|
|
214
|
-
*/
|
|
215
|
-
async getImeiIccidCarrier(params) {
|
|
216
|
-
this.logger.trace(params, 'DevicesRepository::getImeiIccidCarrier started with params');
|
|
217
|
-
const result = await getImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
218
|
-
this.logger.trace(result, 'DevicesRepository::getImeiIccidCarrier result');
|
|
219
|
-
return result;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Get DeviceTypeByImei
|
|
223
|
-
* @param {GetDeviceTypeByImeiParams} params containing information to get the device type by imei
|
|
224
|
-
* - filters.imei: The imei of the device
|
|
225
|
-
* @returns {Promise<DeviceType>} The device type record of an imei
|
|
226
|
-
*/
|
|
227
|
-
async getDeviceTypeByImei(params) {
|
|
228
|
-
this.logger.trace(params, 'DevicesRepository::getDeviceTypeByImei started with params');
|
|
229
|
-
const result = await getDeviceTypeByImei(this.dataSource, params, this.logger);
|
|
230
|
-
this.logger.trace(result, 'DevicesRepository::getDeviceTypeByImei result');
|
|
231
|
-
return result;
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Get ImeiIccidCarriers from a list of imeis
|
|
235
|
-
* @param {GetImeiIccidCarriersParams} params containing information to get the ImeiIccidCarriers
|
|
236
|
-
* - filters.imeis: The imeis of the devices
|
|
237
|
-
* @returns {Promise<ImeiIccidCarrier[]>} The imei iccid carriers
|
|
238
|
-
*/
|
|
239
|
-
async getImeiIccidCarriers(params) {
|
|
240
|
-
this.logger.trace(params, 'DevicesRepository::getImeiIccidCarriers started with params');
|
|
241
|
-
const result = await getImeiIccidCarriers(this.dataSource, params, this.logger);
|
|
242
|
-
this.logger.trace(result, 'DevicesRepository::getImeiIccidCarriers result');
|
|
243
|
-
return result;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Update the ImeiIccidCarrier
|
|
247
|
-
* @param {UpdateImeiIccidCarrierParams} params containing information to update the ImeiIccidCarrier
|
|
248
|
-
* - filters.imei: The imei of the device to update
|
|
249
|
-
* - filters.iccid: The iccid of the device to update
|
|
250
|
-
* - values.carrierId: The carrier id
|
|
251
|
-
* - values.phone: The phone or MSISDN of the device
|
|
252
|
-
* - values.deviceTypeId: The device type id
|
|
253
|
-
* - values.serviceProviderProductId: The service provider product id
|
|
254
|
-
* - values.isValid: Whether the imei iccid carrier is valid
|
|
255
|
-
* - values.realModel: The real model of the device
|
|
256
|
-
* - values.po: The purchase order number of the device
|
|
257
|
-
* - values.outOfInventory: Whether the device is out of inventory
|
|
258
|
-
* - values.apn: The apn of the device
|
|
259
|
-
*
|
|
260
|
-
* @returns {Promise<boolean>} Whether the imei iccid carrier was updated
|
|
261
|
-
*/
|
|
262
|
-
async updateImeiIccidCarrier(params) {
|
|
263
|
-
this.logger.trace(params, 'DevicesRepository::updateImeiIccidCarrier started with params');
|
|
264
|
-
const result = await updateImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
265
|
-
this.logger.trace({ result }, 'DevicesRepository::updateImeiIccidCarrier result');
|
|
266
|
-
return result;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Get a ClientDeviceSetting
|
|
270
|
-
* @param {GetClientDeviceSettingParams} params containing information to get a ClientDeviceSetting
|
|
271
|
-
* - filters.imei: The imei of the device
|
|
272
|
-
* - filters.clientId: The client id
|
|
273
|
-
* @returns {Promise<ClientDeviceSetting>} The ClientDeviceSetting
|
|
274
|
-
*/
|
|
275
|
-
async getClientDeviceSetting(params) {
|
|
276
|
-
this.logger.trace(params, 'DevicesRepository::getClientDeviceSetting with params');
|
|
277
|
-
const result = await getClientDeviceSetting(this.dataSource, params, this.logger);
|
|
278
|
-
this.logger.info(result, 'DevicesRepository::getClientDeviceSetting result');
|
|
279
|
-
return result;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Get a list of ClientDeviceSettings with filters
|
|
283
|
-
* @param {GetClientDeviceSettingsParams} params containing information to get ClientDeviceSettings
|
|
284
|
-
* - filters.clientId: The client id
|
|
285
|
-
* @returns {Promise<ClientDeviceSetting[]>} An array of ClientDeviceSettings matching the filters
|
|
286
|
-
*/
|
|
287
|
-
async getClientDeviceSettings(params) {
|
|
288
|
-
this.logger.trace(params, 'DevicesRepository::getClientDeviceSettings started with params');
|
|
289
|
-
const result = await getClientDeviceSettings(this.dataSource, params, this.logger);
|
|
290
|
-
this.logger.trace(result, 'DevicesRepository::getClientDeviceSettings result');
|
|
291
|
-
return result;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Create a ClientDeviceSetting
|
|
295
|
-
* @param {CreateClientDeviceSettingParams} params containing information to create a ClientDeviceSetting
|
|
296
|
-
* - values.imei: The imei of the device
|
|
297
|
-
* - values.clientId: The client id
|
|
298
|
-
* - values.generateTrips: Whether to generate trips
|
|
299
|
-
* - values.movingPingFrequency: The moving ping frequency
|
|
300
|
-
* - values.stoppedPingFrequency: The stopped ping frequency
|
|
301
|
-
* - values.fixedStatus: The fixed status
|
|
302
|
-
* - values.stopThresholdMinutes: The threshold in minutes to consider that the device is stopped
|
|
303
|
-
* - values.offlineThresholdMinutes: The threshold in minutes to consider that the device is offline
|
|
304
|
-
* - values.movementThresholdSpeed: The threshold for the speed to consider that the device is moving
|
|
305
|
-
* - values.externalBatteryInformation: The external battery information
|
|
306
|
-
* @returns {Promise<ClientDeviceSetting>} The created ClientDeviceSetting
|
|
307
|
-
*/
|
|
308
|
-
async createClientDeviceSetting(params) {
|
|
309
|
-
this.logger.trace(params, 'DevicesRepository::createClientDeviceSetting started with params');
|
|
310
|
-
const result = await createClientDeviceSetting(this.dataSource, params, this.logger);
|
|
311
|
-
this.logger.trace(result, 'DevicesRepository::createClientDeviceSetting result');
|
|
312
|
-
return result;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Update a ClientDeviceSetting
|
|
316
|
-
* @param {UpdateClientDeviceSettingParams} params containing information to update a ClientDeviceSetting
|
|
317
|
-
* - filters.imei: The imei of the device
|
|
318
|
-
* - filters.clientId: The client id
|
|
319
|
-
* - values.generateTrips: Whether to generate trips
|
|
320
|
-
* - values.movingPingFrequency: The moving ping frequency
|
|
321
|
-
* - values.stoppedPingFrequency: The stopped ping frequency
|
|
322
|
-
* - values.fixedStatus: The fixed status
|
|
323
|
-
* - values.stopThresholdMinutes: The threshold in minutes to consider that the device is stopped
|
|
324
|
-
* - values.offlineThresholdMinutes: The threshold in minutes to consider that the device is offline
|
|
325
|
-
* - values.movementThresholdSpeed: The threshold for the speed to consider that the device is moving
|
|
326
|
-
* - values.externalBatteryInformation: The external battery information
|
|
327
|
-
* @returns {Promise<boolean>} Whether the ClientDeviceSetting was updated
|
|
328
|
-
*/
|
|
329
|
-
async updateClientDeviceSetting(params) {
|
|
330
|
-
this.logger.trace(params, 'DevicesRepository::updateClientDeviceSetting started with params');
|
|
331
|
-
const result = await updateClientDeviceSetting(this.dataSource, params, this.logger);
|
|
332
|
-
this.logger.trace({ result }, 'DevicesRepository::updateClientDeviceSetting result');
|
|
333
|
-
return result;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* Get a list of DeviceTypeModel with the count of associated devices, ordered by device count
|
|
337
|
-
* @param {GetDeviceTypesModelsOrderedByDeviceCountParams} params containing information to get DeviceTypeModelWithDeviceCount
|
|
338
|
-
* - filters.deviceStatus: The device status to filter by, optional. If not provided, all devices will be counted
|
|
339
|
-
*/
|
|
340
|
-
async getDeviceTypesModelsOrderedByDeviceCount(params) {
|
|
341
|
-
this.logger.trace(params, 'DevicesRepository::getDeviceTypesOrderedByDeviceCount started with params');
|
|
342
|
-
const result = await getDeviceTypesModelsOrderedByDeviceCount(this.dataSource, params);
|
|
343
|
-
this.logger.trace({ result }, 'DevicesRepository::getDeviceTypesOrderedByDeviceCount result');
|
|
344
|
-
return result;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Get the device custom configuration
|
|
348
|
-
* @param {GetDeviceCustomConfigParams} params containing information to get the device custom configuration
|
|
349
|
-
* - filters.clientId: The client id
|
|
350
|
-
* - filters.imei: The imei of the device
|
|
351
|
-
* - filters.po: The purchase order number of the device
|
|
352
|
-
* @returns The device custom configurations if found, empty array otherwise
|
|
353
|
-
*/
|
|
354
|
-
async getDeviceCustomConfigs(params) {
|
|
355
|
-
this.logger.trace(params, 'DevicesRepository::getDeviceCustomConfig started with params');
|
|
356
|
-
const result = await getDeviceCustomConfigs(this.dataSource, params, this.logger);
|
|
357
|
-
this.logger.trace({ result }, 'DevicesRepository::getDeviceCustomConfig result');
|
|
358
|
-
return result;
|
|
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
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Create a device replacement
|
|
380
|
-
* @param {CreateDeviceReplacementParams} params containing information to create a device replacement
|
|
381
|
-
* - id: The id of the device replacement, optional
|
|
382
|
-
* - imeiOld: The old imei of the device, required
|
|
383
|
-
* - imeiNew: The new imei of the device, required
|
|
384
|
-
* - iccidOld: The old iccid of the device, required
|
|
385
|
-
* - iccidNew: The new iccid of the device, required
|
|
386
|
-
* - userId: The user id, required
|
|
387
|
-
* - clientId: The client id, required
|
|
388
|
-
* @returns {Promise<DeviceReplacement>} The created device replacement
|
|
389
|
-
*/
|
|
390
|
-
async createDeviceReplacement(params) {
|
|
391
|
-
this.logger.trace(params, 'DevicesRepository::createDeviceReplacement started with params');
|
|
392
|
-
const result = await createDeviceReplacement(this.dataSource, params, this.logger);
|
|
393
|
-
this.logger.trace(result, 'DevicesRepository::createDeviceReplacement result');
|
|
394
|
-
return result;
|
|
395
|
-
}
|
|
396
|
-
/**
|
|
397
|
-
* Get the iccid status for a given iccid
|
|
398
|
-
* @param {GetIccidStatusParams} params containing information to get the iccid status
|
|
399
|
-
* - filters.iccid: The iccid of the device
|
|
400
|
-
* @returns The iccid status
|
|
401
|
-
*/
|
|
402
|
-
async getIccidStatus(params) {
|
|
403
|
-
this.logger.trace(params, 'DevicesRepository::getIccidStatus started with params');
|
|
404
|
-
const result = await getIccidStatus(this.dataSource, params, this.logger);
|
|
405
|
-
this.logger.trace(result, 'DevicesRepository::getIccidStatus result');
|
|
406
|
-
return result;
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* Update the iccid status for a given iccid
|
|
410
|
-
* @param {UpdateIccidStatusParams} params containing information to update the iccid status
|
|
411
|
-
* - filters.iccid: The iccid of the device
|
|
412
|
-
* - values.status: The status of the iccid
|
|
413
|
-
* - values.processing: Whether the iccid is processing
|
|
414
|
-
* - values.carrierFound: Whether the carrier was found
|
|
415
|
-
* @returns Whether the iccid status was updated
|
|
416
|
-
*/
|
|
417
|
-
async updateIccidStatus(params) {
|
|
418
|
-
this.logger.trace(params, 'DevicesRepository::updateIccidStatus started with params');
|
|
419
|
-
const result = await updateIccidStatus(this.dataSource, params, this.logger);
|
|
420
|
-
this.logger.trace({ result }, 'DevicesRepository::updateIccidStatus result');
|
|
421
|
-
return result;
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* Get the canceled devices with active sim cards
|
|
425
|
-
* @param {GetCanceledDevicesWithActiveSimCardsParams} params containing information to get the canceled devices with active sim cards
|
|
426
|
-
* - filters.lastAnalyzedDeviceId: The last analyzed device id
|
|
427
|
-
* - pagingOptions.limit: The amount of devices to get
|
|
428
|
-
* @returns The canceled devices with active sim cards
|
|
429
|
-
*/
|
|
430
|
-
async getCanceledDevicesWithActiveSimCards(params) {
|
|
431
|
-
this.logger.trace(params, 'DevicesRepository::getCanceledDevicesWithActiveSimCards started with params');
|
|
432
|
-
const result = await getCanceledDevicesWithActiveSimCards(this.dataSource, params, this.logger);
|
|
433
|
-
this.logger.trace(result, 'DevicesRepository::getCanceledDevicesWithActiveSimCards result');
|
|
434
|
-
return result;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Get the carrier status for all devices updated before a given date
|
|
438
|
-
* @param {GetCarrierStatusUpdatedBeforeParams} params containing information to get the carrier status
|
|
439
|
-
* - filters.beforeDate: The date to compare
|
|
440
|
-
* - pagingOptions.limit: The amount of devices to get
|
|
441
|
-
* @returns The carrier status for devices updated before a given date
|
|
442
|
-
*/
|
|
443
|
-
async getCarrierStatusUpdatedBefore(params) {
|
|
444
|
-
this.logger.trace(params, 'DevicesRepository::getCarrierStatusUpdatedBefore started with params');
|
|
445
|
-
const result = await getCarrierStatusUpdatedBefore(this.dataSource, params, this.logger);
|
|
446
|
-
this.logger.trace(result, 'DevicesRepository::getCarrierStatusUpdatedBefore result');
|
|
447
|
-
return result;
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Upsert the iccid status for a given iccid
|
|
451
|
-
* @param {UpsertIccidStatusParams} params containing information to upsert the iccid status
|
|
452
|
-
* - iccid: The iccid of the device
|
|
453
|
-
* - status: The status of the iccid
|
|
454
|
-
* - carrierFound: The carrier found
|
|
455
|
-
* @returns Whether the iccid status was upserted
|
|
456
|
-
*/
|
|
457
|
-
async upsertIccidStatus(params) {
|
|
458
|
-
this.logger.trace(params, 'DevicesRepository::upsertIccidStatus started with params');
|
|
459
|
-
const result = await upsertIccidStatus(this.dataSource, params, this.logger);
|
|
460
|
-
this.logger.trace({ result }, 'DevicesRepository::upsertIccidStatus result');
|
|
461
|
-
return result;
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Get device with users info
|
|
465
|
-
* @param {GetDeviceWithUsersInfoParams} params containing information to get device with users info
|
|
466
|
-
* - filters.imei: The imei of the device
|
|
467
|
-
* @returns The device with users info
|
|
468
|
-
*/
|
|
469
|
-
async getDeviceWithUsersInfo(params) {
|
|
470
|
-
this.logger.trace(params, 'DevicesRepository::getDeviceWithUsersInfo started with params');
|
|
471
|
-
const result = await getDeviceWithUsersInfo(this.dataSource, params, this.logger);
|
|
472
|
-
this.logger.trace(result, 'DevicesRepository::getDeviceWithUsersInfo result');
|
|
473
|
-
return result;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Create a device type
|
|
477
|
-
* @param {CreateDeviceTypeParams} params containing information to create a device type
|
|
478
|
-
* @returns {Promise<DeviceType>} The created device type
|
|
479
|
-
*/
|
|
480
|
-
async createDeviceType(params) {
|
|
481
|
-
this.logger.trace(params, 'DevicesRepository::createDeviceType started with params');
|
|
482
|
-
const result = await createDeviceType(this.dataSource, params, this.logger);
|
|
483
|
-
this.logger.trace(result, 'DevicesRepository::createDeviceType result');
|
|
484
|
-
return result;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Update a device type
|
|
488
|
-
* @param {UpdateDeviceTypeParams} params containing information to update a device type
|
|
489
|
-
* - filters.id: The id of the device type
|
|
490
|
-
* - values: The values to update. At least one field is required
|
|
491
|
-
* @returns {Promise<boolean>} Whether the device type was updated
|
|
492
|
-
*/
|
|
493
|
-
async updateDeviceType(params) {
|
|
494
|
-
this.logger.trace(params, 'DevicesRepository::updateDeviceType started with params');
|
|
495
|
-
const result = await updateDeviceType(this.dataSource, params, this.logger);
|
|
496
|
-
this.logger.trace({ result }, 'DevicesRepository::updateDeviceType result');
|
|
497
|
-
return result;
|
|
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
|
-
}
|
|
562
|
-
}
|
|
1
|
+
import { BaseRepository2 } from './../baseRepository';
|
|
2
|
+
import { addDeviceChangesHistory } from './addDeviceChangesHistory';
|
|
3
|
+
import { allImeisAreActiveForClient } from './allImeisAreActiveForClient';
|
|
4
|
+
import { createClientDeviceSetting } from './createClientDeviceSetting';
|
|
5
|
+
import { createDevice } from './createDevice';
|
|
6
|
+
import { createDeviceReplacement } from './createDeviceReplacement';
|
|
7
|
+
import { createDeviceType } from './createDeviceType';
|
|
8
|
+
import { createImeiIccidCarrier } from './createImeiIccidCarrier';
|
|
9
|
+
import { deleteDevice } from './deleteDevice';
|
|
10
|
+
import { generateDeviceIdentifierKey } from './generateDeviceIdentifierKey';
|
|
11
|
+
import { getCanceledDevicesWithActiveSimCards } from './getCanceledDevicesWithActiveSimCards';
|
|
12
|
+
import { getCarrierStatusUpdatedBefore } from './getCarrierStatusUpdatedBefore';
|
|
13
|
+
import { getClientDeviceSetting } from './getClientDeviceSetting';
|
|
14
|
+
import { getClientDeviceSettings } from './getClientDeviceSettings';
|
|
15
|
+
import { getDevice } from './getDevice';
|
|
16
|
+
import { getDeviceChangesHistory } from './getDeviceChangesHistory';
|
|
17
|
+
import { getDeviceChangesHistoryAssignedToValuesByClient } from './getDeviceChangesHistoryAssignedToValuesByClient';
|
|
18
|
+
import { getDeviceCustomConfigs } from './getDeviceCustomConfig';
|
|
19
|
+
import { getDevices } from './getDevices';
|
|
20
|
+
import { getDevicesCountByStatus } from './getDevicesCountByStatus';
|
|
21
|
+
import { getDeviceTypeByImei } from './getDeviceTypeByImei';
|
|
22
|
+
import { getDeviceTypes } from './getDeviceTypes';
|
|
23
|
+
import { getDeviceTypesModelsOrderedByDeviceCount } from './getDeviceTypesModelsOrderedByDeviceCount';
|
|
24
|
+
import { getDeviceWithUsersInfo } from './getDeviceWithUsersInfo';
|
|
25
|
+
import { getFilteredImeisWithStatus } from './getFilteredImeisWithStatus';
|
|
26
|
+
import { getIccidStatus } from './getIccidStatus';
|
|
27
|
+
import { getImeiIccidCarrier } from './getImeiIccidCarrier';
|
|
28
|
+
import { getImeiIccidCarriers } from './getImeiIccidCarriers';
|
|
29
|
+
import { getServiceProviderProduct } from './getServiceProviderProduct';
|
|
30
|
+
import { updateClientDeviceSetting } from './updateClientDeviceSetting';
|
|
31
|
+
import { updateDevice } from './updateDevice';
|
|
32
|
+
import { updateDeviceType } from './updateDeviceType';
|
|
33
|
+
import { updateIccidStatus } from './updateIccidStatus';
|
|
34
|
+
import { updateImeiIccidCarrier } from './updateImeiIccidCarrier';
|
|
35
|
+
import { upsertDeviceCustomConfigInternal } from './upsertDeviceCustomConfig';
|
|
36
|
+
import { upsertIccidStatus } from './upsertIccidStatus';
|
|
37
|
+
export class DevicesRepository extends BaseRepository2 {
|
|
38
|
+
/**
|
|
39
|
+
* Get device with filters
|
|
40
|
+
* @param {GetDeviceParams} params containing information to get a device with filters
|
|
41
|
+
* - filters.imei: The imei of the device
|
|
42
|
+
* - filters.id: The id of the device
|
|
43
|
+
* - projectionOptions.withDeviceType: Whether to get the device type object
|
|
44
|
+
* - projectionOptions.withIccidCarrier: Whether to get the iccid carrier object
|
|
45
|
+
*/
|
|
46
|
+
async getDevice(params) {
|
|
47
|
+
this.logger.trace(params, 'DevicesRepository::getDevice started with params');
|
|
48
|
+
const result = await getDevice(this.dataSource, params, this.logger);
|
|
49
|
+
this.logger.trace(result, 'DevicesRepository::getDevice result');
|
|
50
|
+
return result;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get devices by type id
|
|
54
|
+
* @param {GetDevicesParams} params containing information to get devices by type id
|
|
55
|
+
* - filters.deviceTypeId: The device type id
|
|
56
|
+
* - filters.status: The device status
|
|
57
|
+
* - filters.clientId: The client id
|
|
58
|
+
* - filters.imeiList: The imei list
|
|
59
|
+
* - projectionOptions.withDeviceType: Whether to get the device type object
|
|
60
|
+
* - projectionOptions.withIccidCarrier: Whether to get the iccid carrier object
|
|
61
|
+
*/
|
|
62
|
+
async getDevices(params) {
|
|
63
|
+
this.logger.trace(params, 'DevicesRepository::getDevices started with params');
|
|
64
|
+
const result = await getDevices(this.dataSource, params, this.logger);
|
|
65
|
+
this.logger.trace(result, 'DevicesRepository::getDevices result');
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if all imeis are active for a client
|
|
70
|
+
* @param {AllImeisAreActiveForClientParams} params containing information to check if all imeis are active for a client
|
|
71
|
+
* - imeis: The imeis to check
|
|
72
|
+
* - clientId: The client id
|
|
73
|
+
* @returns {Promise<boolean>} Whether all imeis are active for a client
|
|
74
|
+
*/
|
|
75
|
+
async allImeisAreActiveForClient(params) {
|
|
76
|
+
this.logger.trace(params, 'DevicesRepository::allImeisAreActiveForClient started with params');
|
|
77
|
+
const result = await allImeisAreActiveForClient(this.dataSource, params, this.logger);
|
|
78
|
+
this.logger.trace({ result }, 'DevicesRepository::allImeisAreActiveForClient result');
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get filtered imeis with status
|
|
83
|
+
* @param {GetFilteredImeisWithStatusParams} params containing information to get filtered imeis with status
|
|
84
|
+
* - filters.imeiList: The imei list to filter
|
|
85
|
+
* - filters.status: The device status
|
|
86
|
+
* @returns {Promise<string>} The imei list filtered by status
|
|
87
|
+
*/
|
|
88
|
+
async getFilteredImeisWithStatus(params) {
|
|
89
|
+
this.logger.trace(params, 'DevicesRepository::getFilteredImeisWithStatus started with params');
|
|
90
|
+
const result = await getFilteredImeisWithStatus(this.dataSource, params, this.logger);
|
|
91
|
+
this.logger.trace(result, 'DevicesRepository::getFilteredImeisWithStatus result');
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Create device
|
|
96
|
+
* @param {CreateDeviceParams} params containing information to create a device
|
|
97
|
+
* - identifier: The device identifier
|
|
98
|
+
* - imei: The imei of the device
|
|
99
|
+
* - clientId: The client id
|
|
100
|
+
* - deviceTypeId: The device type id
|
|
101
|
+
* - iccid: The iccid of the device
|
|
102
|
+
* - name: The name of the device
|
|
103
|
+
* - color: The color of the device
|
|
104
|
+
* - icon: The icon of the device
|
|
105
|
+
* - status: The status of the device
|
|
106
|
+
* - forward: Whether to forward the device
|
|
107
|
+
* - description: The description of the device
|
|
108
|
+
* - dataSourceTypeId: The data source type id of the device
|
|
109
|
+
* - assetCategoryId: The asset category id of the device
|
|
110
|
+
* - usageRegion: The usage region of the device
|
|
111
|
+
* - createdBy: The user who created the device
|
|
112
|
+
*
|
|
113
|
+
* @returns {Promise<Device>} The created device
|
|
114
|
+
*/
|
|
115
|
+
async createDevice(params) {
|
|
116
|
+
this.logger.trace(params, 'DevicesRepository::createDevice started with params');
|
|
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
|
+
}
|
|
127
|
+
this.logger.trace(result, 'DevicesRepository::createDevice result');
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Update device
|
|
132
|
+
* @param {UpdateDeviceParams} params containing information to update a device
|
|
133
|
+
* - filters.imei: The imei of the device
|
|
134
|
+
* - filters.status: The status of the device
|
|
135
|
+
* - filters.clientId: The client id
|
|
136
|
+
* - values.clientId: The client id
|
|
137
|
+
* - values.deviceTypeId: The device type id
|
|
138
|
+
* - values.iccid: The iccid of the device
|
|
139
|
+
* - values.name: The name of the device
|
|
140
|
+
* - values.color: The color of the device
|
|
141
|
+
* - values.icon: The icon of the device
|
|
142
|
+
* - values.status: The status of the device
|
|
143
|
+
* - values.forward: Whether to forward the device
|
|
144
|
+
* - values.description: The description of the device
|
|
145
|
+
* - values.dataSourceTypeId: The data source type id of the device
|
|
146
|
+
* - values.assetCategoryId: The asset category id of the device
|
|
147
|
+
* - values.usageRegion: The usage region of the device
|
|
148
|
+
* - values.modifiedBy: The user who updated the device
|
|
149
|
+
* @returns {Promise<boolean>} Whether the device was updated
|
|
150
|
+
*/
|
|
151
|
+
async updateDevice(params) {
|
|
152
|
+
this.logger.trace(params, 'DevicesRepository::updateDevice started with params');
|
|
153
|
+
const result = await updateDevice(this.dataSource, params, this.logger);
|
|
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
|
+
}
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Delete device
|
|
173
|
+
* @param {DeleteDeviceParams} params containing information to delete a device
|
|
174
|
+
* - filters.imei: The imei of the device
|
|
175
|
+
*
|
|
176
|
+
* @returns {Promise<boolean>} Whether the device was deleted
|
|
177
|
+
*/
|
|
178
|
+
async deleteDevice(params) {
|
|
179
|
+
this.logger.trace(params, 'DevicesRepository::deleteDevice started with params');
|
|
180
|
+
const result = await deleteDevice(this.dataSource, params, this.logger);
|
|
181
|
+
this.logger.trace({ result }, 'DevicesRepository::deleteDevice result');
|
|
182
|
+
return result;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Generate device identifier key from device type and device identifier
|
|
186
|
+
* @param {GenerateIdentifierKeyParams} params containing information to generate a device identifier key
|
|
187
|
+
* - deviceTypeId: The device type id
|
|
188
|
+
* - deviceIdentifier: The device identifier
|
|
189
|
+
* @returns {Promise<string>} The generated device identifier key
|
|
190
|
+
*/
|
|
191
|
+
async generateDeviceIdentifierKey(params) {
|
|
192
|
+
this.logger.trace(params, 'DevicesRepository::generateDeviceIdentifierKey started with params');
|
|
193
|
+
const result = await generateDeviceIdentifierKey(this.dataSource, params, this.logger);
|
|
194
|
+
this.logger.trace(result, 'DevicesRepository::generateDeviceIdentifierKey result');
|
|
195
|
+
return result;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Get device types
|
|
199
|
+
* @param {GetDeviceTypesParams} params containing information to get device types
|
|
200
|
+
* - filters.onlyWithRelatedIccidCarrier: Whether to get only device types with iccid carrier
|
|
201
|
+
*/
|
|
202
|
+
async getDeviceTypes(params) {
|
|
203
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceTypes started with params');
|
|
204
|
+
const result = await getDeviceTypes(this.dataSource, params);
|
|
205
|
+
this.logger.trace(result, 'DevicesRepository::getDeviceTypes result');
|
|
206
|
+
return result;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Get ImeiIccidCarrier
|
|
210
|
+
* @param {GetImeiIccidCarrierParams} params containing information to get the ImeiIccidCarrier
|
|
211
|
+
* - filters.imei: The imei of the device
|
|
212
|
+
* - filters.iccid: The iccid of the device
|
|
213
|
+
* @returns {Promise<ImeiIccidCarrier>} The imei iccid carrier
|
|
214
|
+
*/
|
|
215
|
+
async getImeiIccidCarrier(params) {
|
|
216
|
+
this.logger.trace(params, 'DevicesRepository::getImeiIccidCarrier started with params');
|
|
217
|
+
const result = await getImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
218
|
+
this.logger.trace(result, 'DevicesRepository::getImeiIccidCarrier result');
|
|
219
|
+
return result;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get DeviceTypeByImei
|
|
223
|
+
* @param {GetDeviceTypeByImeiParams} params containing information to get the device type by imei
|
|
224
|
+
* - filters.imei: The imei of the device
|
|
225
|
+
* @returns {Promise<DeviceType>} The device type record of an imei
|
|
226
|
+
*/
|
|
227
|
+
async getDeviceTypeByImei(params) {
|
|
228
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceTypeByImei started with params');
|
|
229
|
+
const result = await getDeviceTypeByImei(this.dataSource, params, this.logger);
|
|
230
|
+
this.logger.trace(result, 'DevicesRepository::getDeviceTypeByImei result');
|
|
231
|
+
return result;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Get ImeiIccidCarriers from a list of imeis
|
|
235
|
+
* @param {GetImeiIccidCarriersParams} params containing information to get the ImeiIccidCarriers
|
|
236
|
+
* - filters.imeis: The imeis of the devices
|
|
237
|
+
* @returns {Promise<ImeiIccidCarrier[]>} The imei iccid carriers
|
|
238
|
+
*/
|
|
239
|
+
async getImeiIccidCarriers(params) {
|
|
240
|
+
this.logger.trace(params, 'DevicesRepository::getImeiIccidCarriers started with params');
|
|
241
|
+
const result = await getImeiIccidCarriers(this.dataSource, params, this.logger);
|
|
242
|
+
this.logger.trace(result, 'DevicesRepository::getImeiIccidCarriers result');
|
|
243
|
+
return result;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Update the ImeiIccidCarrier
|
|
247
|
+
* @param {UpdateImeiIccidCarrierParams} params containing information to update the ImeiIccidCarrier
|
|
248
|
+
* - filters.imei: The imei of the device to update
|
|
249
|
+
* - filters.iccid: The iccid of the device to update
|
|
250
|
+
* - values.carrierId: The carrier id
|
|
251
|
+
* - values.phone: The phone or MSISDN of the device
|
|
252
|
+
* - values.deviceTypeId: The device type id
|
|
253
|
+
* - values.serviceProviderProductId: The service provider product id
|
|
254
|
+
* - values.isValid: Whether the imei iccid carrier is valid
|
|
255
|
+
* - values.realModel: The real model of the device
|
|
256
|
+
* - values.po: The purchase order number of the device
|
|
257
|
+
* - values.outOfInventory: Whether the device is out of inventory
|
|
258
|
+
* - values.apn: The apn of the device
|
|
259
|
+
*
|
|
260
|
+
* @returns {Promise<boolean>} Whether the imei iccid carrier was updated
|
|
261
|
+
*/
|
|
262
|
+
async updateImeiIccidCarrier(params) {
|
|
263
|
+
this.logger.trace(params, 'DevicesRepository::updateImeiIccidCarrier started with params');
|
|
264
|
+
const result = await updateImeiIccidCarrier(this.dataSource, params, this.logger);
|
|
265
|
+
this.logger.trace({ result }, 'DevicesRepository::updateImeiIccidCarrier result');
|
|
266
|
+
return result;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Get a ClientDeviceSetting
|
|
270
|
+
* @param {GetClientDeviceSettingParams} params containing information to get a ClientDeviceSetting
|
|
271
|
+
* - filters.imei: The imei of the device
|
|
272
|
+
* - filters.clientId: The client id
|
|
273
|
+
* @returns {Promise<ClientDeviceSetting>} The ClientDeviceSetting
|
|
274
|
+
*/
|
|
275
|
+
async getClientDeviceSetting(params) {
|
|
276
|
+
this.logger.trace(params, 'DevicesRepository::getClientDeviceSetting with params');
|
|
277
|
+
const result = await getClientDeviceSetting(this.dataSource, params, this.logger);
|
|
278
|
+
this.logger.info(result, 'DevicesRepository::getClientDeviceSetting result');
|
|
279
|
+
return result;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Get a list of ClientDeviceSettings with filters
|
|
283
|
+
* @param {GetClientDeviceSettingsParams} params containing information to get ClientDeviceSettings
|
|
284
|
+
* - filters.clientId: The client id
|
|
285
|
+
* @returns {Promise<ClientDeviceSetting[]>} An array of ClientDeviceSettings matching the filters
|
|
286
|
+
*/
|
|
287
|
+
async getClientDeviceSettings(params) {
|
|
288
|
+
this.logger.trace(params, 'DevicesRepository::getClientDeviceSettings started with params');
|
|
289
|
+
const result = await getClientDeviceSettings(this.dataSource, params, this.logger);
|
|
290
|
+
this.logger.trace(result, 'DevicesRepository::getClientDeviceSettings result');
|
|
291
|
+
return result;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Create a ClientDeviceSetting
|
|
295
|
+
* @param {CreateClientDeviceSettingParams} params containing information to create a ClientDeviceSetting
|
|
296
|
+
* - values.imei: The imei of the device
|
|
297
|
+
* - values.clientId: The client id
|
|
298
|
+
* - values.generateTrips: Whether to generate trips
|
|
299
|
+
* - values.movingPingFrequency: The moving ping frequency
|
|
300
|
+
* - values.stoppedPingFrequency: The stopped ping frequency
|
|
301
|
+
* - values.fixedStatus: The fixed status
|
|
302
|
+
* - values.stopThresholdMinutes: The threshold in minutes to consider that the device is stopped
|
|
303
|
+
* - values.offlineThresholdMinutes: The threshold in minutes to consider that the device is offline
|
|
304
|
+
* - values.movementThresholdSpeed: The threshold for the speed to consider that the device is moving
|
|
305
|
+
* - values.externalBatteryInformation: The external battery information
|
|
306
|
+
* @returns {Promise<ClientDeviceSetting>} The created ClientDeviceSetting
|
|
307
|
+
*/
|
|
308
|
+
async createClientDeviceSetting(params) {
|
|
309
|
+
this.logger.trace(params, 'DevicesRepository::createClientDeviceSetting started with params');
|
|
310
|
+
const result = await createClientDeviceSetting(this.dataSource, params, this.logger);
|
|
311
|
+
this.logger.trace(result, 'DevicesRepository::createClientDeviceSetting result');
|
|
312
|
+
return result;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Update a ClientDeviceSetting
|
|
316
|
+
* @param {UpdateClientDeviceSettingParams} params containing information to update a ClientDeviceSetting
|
|
317
|
+
* - filters.imei: The imei of the device
|
|
318
|
+
* - filters.clientId: The client id
|
|
319
|
+
* - values.generateTrips: Whether to generate trips
|
|
320
|
+
* - values.movingPingFrequency: The moving ping frequency
|
|
321
|
+
* - values.stoppedPingFrequency: The stopped ping frequency
|
|
322
|
+
* - values.fixedStatus: The fixed status
|
|
323
|
+
* - values.stopThresholdMinutes: The threshold in minutes to consider that the device is stopped
|
|
324
|
+
* - values.offlineThresholdMinutes: The threshold in minutes to consider that the device is offline
|
|
325
|
+
* - values.movementThresholdSpeed: The threshold for the speed to consider that the device is moving
|
|
326
|
+
* - values.externalBatteryInformation: The external battery information
|
|
327
|
+
* @returns {Promise<boolean>} Whether the ClientDeviceSetting was updated
|
|
328
|
+
*/
|
|
329
|
+
async updateClientDeviceSetting(params) {
|
|
330
|
+
this.logger.trace(params, 'DevicesRepository::updateClientDeviceSetting started with params');
|
|
331
|
+
const result = await updateClientDeviceSetting(this.dataSource, params, this.logger);
|
|
332
|
+
this.logger.trace({ result }, 'DevicesRepository::updateClientDeviceSetting result');
|
|
333
|
+
return result;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Get a list of DeviceTypeModel with the count of associated devices, ordered by device count
|
|
337
|
+
* @param {GetDeviceTypesModelsOrderedByDeviceCountParams} params containing information to get DeviceTypeModelWithDeviceCount
|
|
338
|
+
* - filters.deviceStatus: The device status to filter by, optional. If not provided, all devices will be counted
|
|
339
|
+
*/
|
|
340
|
+
async getDeviceTypesModelsOrderedByDeviceCount(params) {
|
|
341
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceTypesOrderedByDeviceCount started with params');
|
|
342
|
+
const result = await getDeviceTypesModelsOrderedByDeviceCount(this.dataSource, params);
|
|
343
|
+
this.logger.trace({ result }, 'DevicesRepository::getDeviceTypesOrderedByDeviceCount result');
|
|
344
|
+
return result;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Get the device custom configuration
|
|
348
|
+
* @param {GetDeviceCustomConfigParams} params containing information to get the device custom configuration
|
|
349
|
+
* - filters.clientId: The client id
|
|
350
|
+
* - filters.imei: The imei of the device
|
|
351
|
+
* - filters.po: The purchase order number of the device
|
|
352
|
+
* @returns The device custom configurations if found, empty array otherwise
|
|
353
|
+
*/
|
|
354
|
+
async getDeviceCustomConfigs(params) {
|
|
355
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceCustomConfig started with params');
|
|
356
|
+
const result = await getDeviceCustomConfigs(this.dataSource, params, this.logger);
|
|
357
|
+
this.logger.trace({ result }, 'DevicesRepository::getDeviceCustomConfig result');
|
|
358
|
+
return result;
|
|
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
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Create a device replacement
|
|
380
|
+
* @param {CreateDeviceReplacementParams} params containing information to create a device replacement
|
|
381
|
+
* - id: The id of the device replacement, optional
|
|
382
|
+
* - imeiOld: The old imei of the device, required
|
|
383
|
+
* - imeiNew: The new imei of the device, required
|
|
384
|
+
* - iccidOld: The old iccid of the device, required
|
|
385
|
+
* - iccidNew: The new iccid of the device, required
|
|
386
|
+
* - userId: The user id, required
|
|
387
|
+
* - clientId: The client id, required
|
|
388
|
+
* @returns {Promise<DeviceReplacement>} The created device replacement
|
|
389
|
+
*/
|
|
390
|
+
async createDeviceReplacement(params) {
|
|
391
|
+
this.logger.trace(params, 'DevicesRepository::createDeviceReplacement started with params');
|
|
392
|
+
const result = await createDeviceReplacement(this.dataSource, params, this.logger);
|
|
393
|
+
this.logger.trace(result, 'DevicesRepository::createDeviceReplacement result');
|
|
394
|
+
return result;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Get the iccid status for a given iccid
|
|
398
|
+
* @param {GetIccidStatusParams} params containing information to get the iccid status
|
|
399
|
+
* - filters.iccid: The iccid of the device
|
|
400
|
+
* @returns The iccid status
|
|
401
|
+
*/
|
|
402
|
+
async getIccidStatus(params) {
|
|
403
|
+
this.logger.trace(params, 'DevicesRepository::getIccidStatus started with params');
|
|
404
|
+
const result = await getIccidStatus(this.dataSource, params, this.logger);
|
|
405
|
+
this.logger.trace(result, 'DevicesRepository::getIccidStatus result');
|
|
406
|
+
return result;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Update the iccid status for a given iccid
|
|
410
|
+
* @param {UpdateIccidStatusParams} params containing information to update the iccid status
|
|
411
|
+
* - filters.iccid: The iccid of the device
|
|
412
|
+
* - values.status: The status of the iccid
|
|
413
|
+
* - values.processing: Whether the iccid is processing
|
|
414
|
+
* - values.carrierFound: Whether the carrier was found
|
|
415
|
+
* @returns Whether the iccid status was updated
|
|
416
|
+
*/
|
|
417
|
+
async updateIccidStatus(params) {
|
|
418
|
+
this.logger.trace(params, 'DevicesRepository::updateIccidStatus started with params');
|
|
419
|
+
const result = await updateIccidStatus(this.dataSource, params, this.logger);
|
|
420
|
+
this.logger.trace({ result }, 'DevicesRepository::updateIccidStatus result');
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Get the canceled devices with active sim cards
|
|
425
|
+
* @param {GetCanceledDevicesWithActiveSimCardsParams} params containing information to get the canceled devices with active sim cards
|
|
426
|
+
* - filters.lastAnalyzedDeviceId: The last analyzed device id
|
|
427
|
+
* - pagingOptions.limit: The amount of devices to get
|
|
428
|
+
* @returns The canceled devices with active sim cards
|
|
429
|
+
*/
|
|
430
|
+
async getCanceledDevicesWithActiveSimCards(params) {
|
|
431
|
+
this.logger.trace(params, 'DevicesRepository::getCanceledDevicesWithActiveSimCards started with params');
|
|
432
|
+
const result = await getCanceledDevicesWithActiveSimCards(this.dataSource, params, this.logger);
|
|
433
|
+
this.logger.trace(result, 'DevicesRepository::getCanceledDevicesWithActiveSimCards result');
|
|
434
|
+
return result;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Get the carrier status for all devices updated before a given date
|
|
438
|
+
* @param {GetCarrierStatusUpdatedBeforeParams} params containing information to get the carrier status
|
|
439
|
+
* - filters.beforeDate: The date to compare
|
|
440
|
+
* - pagingOptions.limit: The amount of devices to get
|
|
441
|
+
* @returns The carrier status for devices updated before a given date
|
|
442
|
+
*/
|
|
443
|
+
async getCarrierStatusUpdatedBefore(params) {
|
|
444
|
+
this.logger.trace(params, 'DevicesRepository::getCarrierStatusUpdatedBefore started with params');
|
|
445
|
+
const result = await getCarrierStatusUpdatedBefore(this.dataSource, params, this.logger);
|
|
446
|
+
this.logger.trace(result, 'DevicesRepository::getCarrierStatusUpdatedBefore result');
|
|
447
|
+
return result;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Upsert the iccid status for a given iccid
|
|
451
|
+
* @param {UpsertIccidStatusParams} params containing information to upsert the iccid status
|
|
452
|
+
* - iccid: The iccid of the device
|
|
453
|
+
* - status: The status of the iccid
|
|
454
|
+
* - carrierFound: The carrier found
|
|
455
|
+
* @returns Whether the iccid status was upserted
|
|
456
|
+
*/
|
|
457
|
+
async upsertIccidStatus(params) {
|
|
458
|
+
this.logger.trace(params, 'DevicesRepository::upsertIccidStatus started with params');
|
|
459
|
+
const result = await upsertIccidStatus(this.dataSource, params, this.logger);
|
|
460
|
+
this.logger.trace({ result }, 'DevicesRepository::upsertIccidStatus result');
|
|
461
|
+
return result;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Get device with users info
|
|
465
|
+
* @param {GetDeviceWithUsersInfoParams} params containing information to get device with users info
|
|
466
|
+
* - filters.imei: The imei of the device
|
|
467
|
+
* @returns The device with users info
|
|
468
|
+
*/
|
|
469
|
+
async getDeviceWithUsersInfo(params) {
|
|
470
|
+
this.logger.trace(params, 'DevicesRepository::getDeviceWithUsersInfo started with params');
|
|
471
|
+
const result = await getDeviceWithUsersInfo(this.dataSource, params, this.logger);
|
|
472
|
+
this.logger.trace(result, 'DevicesRepository::getDeviceWithUsersInfo result');
|
|
473
|
+
return result;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Create a device type
|
|
477
|
+
* @param {CreateDeviceTypeParams} params containing information to create a device type
|
|
478
|
+
* @returns {Promise<DeviceType>} The created device type
|
|
479
|
+
*/
|
|
480
|
+
async createDeviceType(params) {
|
|
481
|
+
this.logger.trace(params, 'DevicesRepository::createDeviceType started with params');
|
|
482
|
+
const result = await createDeviceType(this.dataSource, params, this.logger);
|
|
483
|
+
this.logger.trace(result, 'DevicesRepository::createDeviceType result');
|
|
484
|
+
return result;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Update a device type
|
|
488
|
+
* @param {UpdateDeviceTypeParams} params containing information to update a device type
|
|
489
|
+
* - filters.id: The id of the device type
|
|
490
|
+
* - values: The values to update. At least one field is required
|
|
491
|
+
* @returns {Promise<boolean>} Whether the device type was updated
|
|
492
|
+
*/
|
|
493
|
+
async updateDeviceType(params) {
|
|
494
|
+
this.logger.trace(params, 'DevicesRepository::updateDeviceType started with params');
|
|
495
|
+
const result = await updateDeviceType(this.dataSource, params, this.logger);
|
|
496
|
+
this.logger.trace({ result }, 'DevicesRepository::updateDeviceType result');
|
|
497
|
+
return result;
|
|
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
|
+
}
|
|
562
|
+
}
|
|
563
563
|
//# sourceMappingURL=index.js.map
|