@spytecgps/nova-orm 1.2.45 → 1.3.0
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/core.d.ts +25 -0
- package/dist/entities/acumaticaAmazonProduct.d.ts +8 -8
- package/dist/entities/acumaticaImeiIccidData.d.ts +17 -17
- package/dist/entities/acumaticaOrderShipmentDetails.d.ts +11 -11
- package/dist/entities/acumaticaShipment.d.ts +5 -5
- package/dist/entities/acumaticaShipmentAmazon.d.ts +4 -4
- package/dist/entities/aempToken.d.ts +10 -10
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.d.ts +15 -15
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.d.ts +28 -28
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.d.ts +7 -7
- package/dist/entities/alert.d.ts +28 -28
- package/dist/entities/alertType.d.ts +14 -14
- package/dist/entities/appFeatureType.d.ts +6 -6
- package/dist/entities/asinPromotion.d.ts +7 -7
- package/dist/entities/assetCategory.d.ts +5 -5
- package/dist/entities/beaconBleMesh.d.ts +11 -11
- package/dist/entities/billing.d.ts +20 -20
- package/dist/entities/billingCustomerAmazon.d.ts +14 -14
- package/dist/entities/billingCustomerBraintree.d.ts +11 -11
- package/dist/entities/billingDeviceHistory.d.ts +11 -11
- package/dist/entities/billingDeviceTypePlan.d.ts +12 -12
- package/dist/entities/billingHubspotPaymentLog.d.ts +50 -50
- package/dist/entities/billingKlarnaCustomer.d.ts +14 -14
- package/dist/entities/billingKlarnaOrder.d.ts +17 -17
- package/dist/entities/billingPlanFeatures.d.ts +6 -6
- package/dist/entities/billingPlans.d.ts +22 -22
- package/dist/entities/billingStatusHistoryBraintree.d.ts +10 -10
- package/dist/entities/billingSubscriptionAmazon.d.ts +22 -22
- package/dist/entities/billingSubscriptionBraintree.d.ts +34 -34
- package/dist/entities/blacklist.d.ts +9 -9
- package/dist/entities/blacklistType.d.ts +5 -5
- package/dist/entities/bleMesh.d.ts +15 -15
- package/dist/entities/bleMeshConfiguration.d.ts +9 -9
- package/dist/entities/boundary.d.ts +23 -23
- package/dist/entities/boundaryEvent.d.ts +20 -20
- package/dist/entities/cellTower.d.ts +12 -12
- package/dist/entities/client.d.ts +34 -34
- package/dist/entities/clientAlertConfiguration.d.ts +20 -20
- package/dist/entities/clientAlertRecipient.d.ts +16 -16
- package/dist/entities/clientAppFeature.d.ts +9 -9
- package/dist/entities/clientConfiguration.d.ts +9 -9
- package/dist/entities/clientDeviceSetting.d.ts +14 -14
- package/dist/entities/clientIngestorConfiguration.d.ts +8 -8
- package/dist/entities/clientType.d.ts +6 -6
- package/dist/entities/country.d.ts +16 -16
- package/dist/entities/customerAttribute.d.ts +15 -15
- package/dist/entities/dataExport.d.ts +17 -17
- package/dist/entities/dataSourceType.d.ts +5 -5
- package/dist/entities/deactivation.d.ts +14 -14
- package/dist/entities/deactivationReason.d.ts +6 -6
- package/dist/entities/device.d.ts +38 -38
- package/dist/entities/deviceBehavior.d.ts +25 -25
- package/dist/entities/deviceBleMesh.d.ts +14 -14
- package/dist/entities/deviceBleMeshUpdateTask.d.ts +18 -18
- package/dist/entities/deviceChangesHistory.d.ts +8 -8
- package/dist/entities/deviceCustomConfiguration.d.ts +13 -13
- package/dist/entities/deviceHistory.d.ts +8 -8
- package/dist/entities/deviceModelListener.d.ts +8 -8
- package/dist/entities/devicePairing.d.ts +14 -14
- package/dist/entities/devicePromotion.d.ts +7 -7
- package/dist/entities/deviceReplacement.d.ts +12 -12
- package/dist/entities/deviceStatus.d.ts +13 -13
- package/dist/entities/deviceTask.d.ts +8 -8
- package/dist/entities/deviceType.d.ts +27 -27
- package/dist/entities/deviceTypeFeature.d.ts +5 -5
- package/dist/entities/deviceTypeFirmware.d.ts +21 -21
- package/dist/entities/deviceTypePromotion.d.ts +7 -7
- package/dist/entities/emailDomain.d.ts +5 -5
- package/dist/entities/entityTag.d.ts +12 -12
- package/dist/entities/entityType.d.ts +5 -5
- package/dist/entities/feature.d.ts +6 -6
- package/dist/entities/firmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/entities/firmwareUpgradeTask.d.ts +23 -23
- package/dist/entities/historicalBillingPlan.d.ts +21 -21
- package/dist/entities/iccidStatus.d.ts +7 -7
- package/dist/entities/imeiIccidCarrier.d.ts +23 -23
- package/dist/entities/imeiIccidHistory.d.ts +7 -7
- package/dist/entities/imeiIccidImport.d.ts +5 -5
- package/dist/entities/index.d.ts +121 -121
- package/dist/entities/industry.d.ts +8 -8
- package/dist/entities/latestPosition.d.ts +21 -21
- package/dist/entities/latestUserAppInfo.d.ts +9 -9
- package/dist/entities/liveLink.d.ts +17 -17
- package/dist/entities/magento2Gps.d.ts +50 -50
- package/dist/entities/magento2Plan.d.ts +6 -6
- package/dist/entities/marketplacePromotion.d.ts +7 -7
- package/dist/entities/mobileNetwork.d.ts +9 -9
- package/dist/entities/notificationRecipient.d.ts +23 -23
- package/dist/entities/orderShipmentInternational.d.ts +12 -12
- package/dist/entities/organization.d.ts +10 -10
- package/dist/entities/plan.d.ts +16 -16
- package/dist/entities/position.d.ts +21 -21
- package/dist/entities/promotion.d.ts +24 -24
- package/dist/entities/promotionHistory.d.ts +12 -12
- package/dist/entities/region.d.ts +10 -10
- package/dist/entities/securityRole.d.ts +10 -10
- package/dist/entities/serviceProvider.d.ts +7 -7
- package/dist/entities/serviceProviderProduct.d.ts +9 -9
- package/dist/entities/serviceProviderProductNetwork.d.ts +5 -5
- package/dist/entities/serviceProviderProductType.d.ts +5 -5
- package/dist/entities/sim.d.ts +16 -16
- package/dist/entities/tag.d.ts +12 -12
- package/dist/entities/task.d.ts +36 -36
- package/dist/entities/taskSchedule.d.ts +29 -29
- package/dist/entities/trip.d.ts +27 -27
- package/dist/entities/tripCompletionStatus.d.ts +6 -6
- package/dist/entities/tripPosition.d.ts +4 -4
- package/dist/entities/user.d.ts +48 -48
- package/dist/entities/userActivation.d.ts +10 -10
- package/dist/entities/userActivationDevice.d.ts +28 -28
- package/dist/entities/userActivationEvent.d.ts +13 -13
- package/dist/entities/userActivationMetric.d.ts +39 -39
- package/dist/entities/userAlertComplain.d.ts +18 -18
- package/dist/entities/userAlertConfiguration.d.ts +25 -25
- package/dist/entities/userAlertNotificationsConfig.d.ts +14 -14
- package/dist/entities/userAppFeedback.d.ts +11 -11
- package/dist/entities/userAppIncident.d.ts +30 -30
- package/dist/entities/userAuthorizedBoundary.d.ts +9 -8
- package/dist/entities/userAuthorizedDevice.d.ts +9 -8
- package/dist/entities/userConfiguration.d.ts +21 -21
- package/dist/entities/userDataDeletionRequest.d.ts +12 -12
- package/dist/entities/userDeviceBehaviorTask.d.ts +16 -16
- package/dist/entities/userInvitation.d.ts +21 -21
- package/dist/entities/userRatingRequest.d.ts +14 -14
- package/dist/entities/userRegistrationAttempt.d.ts +36 -36
- package/dist/entities/userSecurityRole.d.ts +12 -12
- package/dist/index.d.ts +26 -24
- package/dist/index.js +27075 -2
- package/dist/migration/1684483704434-addLowerCaseIndex.d.ts +5 -5
- package/dist/novaDataSource.d.ts +88 -88
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.d.ts +5 -5
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.d.ts +5 -5
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.d.ts +4 -4
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.d.ts +4 -4
- package/dist/repositories/acumatica/getOrderShipmentInternational.d.ts +5 -5
- package/dist/repositories/acumatica/index.d.ts +47 -47
- package/dist/repositories/aempToken/createAempToken.d.ts +5 -5
- package/dist/repositories/aempToken/deleteAempTokens.d.ts +4 -4
- package/dist/repositories/aempToken/getAempTokens.d.ts +5 -5
- package/dist/repositories/aempToken/index.d.ts +33 -33
- package/dist/repositories/alertTypes/getAlertTypes.d.ts +4 -4
- package/dist/repositories/alertTypes/index.d.ts +6 -6
- package/dist/repositories/alerts/createAlert.d.ts +6 -6
- package/dist/repositories/alerts/createUserAlertComplain.d.ts +4 -4
- package/dist/repositories/alerts/getAlertsReportByClient.d.ts +7 -7
- package/dist/repositories/alerts/getAlertsReportByUser.d.ts +4 -4
- package/dist/repositories/alerts/index.d.ts +78 -78
- package/dist/repositories/appFeatures/createAppFeatureType.d.ts +5 -5
- package/dist/repositories/appFeatures/createClientAppFeature.d.ts +5 -5
- package/dist/repositories/appFeatures/getClientAppFeatures.d.ts +5 -5
- package/dist/repositories/appFeatures/index.d.ts +37 -37
- package/dist/repositories/assetCategories/getAssetCategories.d.ts +3 -3
- package/dist/repositories/assetCategories/index.d.ts +9 -9
- package/dist/repositories/baseRepository.d.ts +21 -21
- package/dist/repositories/billing/createBilling.d.ts +5 -5
- package/dist/repositories/billing/createBillingDeviceHistory.d.ts +5 -5
- package/dist/repositories/billing/createBillingHubspotPaymentLog.d.ts +5 -5
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.d.ts +5 -5
- package/dist/repositories/billing/getBillingCustomerBraintreeById.d.ts +5 -5
- package/dist/repositories/billing/getBillingDeviceTypePlans.d.ts +5 -5
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.d.ts +5 -5
- package/dist/repositories/billing/getBillingPlans.d.ts +4 -4
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.d.ts +5 -5
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.d.ts +5 -5
- package/dist/repositories/billing/getBillings.d.ts +5 -5
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.d.ts +4 -4
- package/dist/repositories/billing/getCanceledImeis.d.ts +4 -4
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.d.ts +4 -4
- package/dist/repositories/billing/getChurnStatusByClientId.d.ts +4 -4
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.d.ts +4 -4
- package/dist/repositories/billing/getMagentoPlan.d.ts +5 -5
- package/dist/repositories/billing/getUserByBraintreeCustomerId.d.ts +5 -5
- package/dist/repositories/billing/index.d.ts +243 -243
- package/dist/repositories/billing/updateBilling.d.ts +4 -4
- package/dist/repositories/billing/updateBillingCustomerBraintree.d.ts +4 -4
- package/dist/repositories/billing/upsertBillingCustomerBraintree.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingKlarnaOrder.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingPlans.d.ts +5 -5
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.d.ts +4 -4
- package/dist/repositories/blacklist/deleteBlackList.d.ts +4 -4
- package/dist/repositories/blacklist/getBlacklists.d.ts +5 -5
- package/dist/repositories/blacklist/index.d.ts +43 -43
- package/dist/repositories/blacklist/updateBlackList.d.ts +4 -4
- package/dist/repositories/blacklist/upsertBlackList.d.ts +5 -5
- package/dist/repositories/bleMesh/addBeaconBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/createBLEMesh.d.ts +5 -5
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.d.ts +5 -5
- package/dist/repositories/bleMesh/getBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.d.ts +4 -4
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/index.d.ts +157 -157
- package/dist/repositories/bleMesh/removeBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.d.ts +4 -4
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.d.ts +4 -4
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.d.ts +4 -4
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.d.ts +5 -5
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.d.ts +4 -4
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.d.ts +5 -5
- package/dist/repositories/bleMeshConfiguration/index.d.ts +46 -46
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.d.ts +4 -4
- package/dist/repositories/boundaries/createBoundary.d.ts +5 -5
- package/dist/repositories/boundaries/deleteBoundary.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundariesByClientId.d.ts +5 -5
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundariesReport.d.ts +4 -4
- package/dist/repositories/boundaries/getBoundaryById.d.ts +5 -5
- package/dist/repositories/boundaries/index.d.ts +106 -106
- package/dist/repositories/boundaries/processBoundaryEvent.d.ts +4 -4
- package/dist/repositories/boundaries/updateBoundary.d.ts +4 -4
- package/dist/repositories/boundaries/upsertBoundaryEvent.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.d.ts +5 -5
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.d.ts +5 -5
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/index.d.ts +13 -13
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.d.ts +4 -4
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.d.ts +4 -4
- package/dist/repositories/clients/createClient.d.ts +5 -5
- package/dist/repositories/clients/createClientConfiguration.d.ts +5 -5
- package/dist/repositories/clients/createClientIngestorConfiguration.d.ts +5 -5
- package/dist/repositories/clients/createCustomerAttribute.d.ts +5 -5
- package/dist/repositories/clients/deleteClientAndConfiguration.d.ts +4 -4
- package/dist/repositories/clients/getClient.d.ts +5 -5
- package/dist/repositories/clients/getClientConfiguration.d.ts +5 -5
- package/dist/repositories/clients/getClientIngestorConfigurations.d.ts +4 -4
- package/dist/repositories/clients/getClients.d.ts +5 -5
- package/dist/repositories/clients/getCustomerAttribute.d.ts +5 -5
- package/dist/repositories/clients/index.d.ts +138 -138
- package/dist/repositories/clients/updateClient.d.ts +4 -4
- package/dist/repositories/clients/updateClientConfiguration.d.ts +4 -4
- package/dist/repositories/clients/updateCustomerAttribute.d.ts +4 -4
- package/dist/repositories/countries/getCountries.d.ts +4 -4
- package/dist/repositories/countries/getCountry.d.ts +5 -5
- package/dist/repositories/countries/index.d.ts +20 -20
- package/dist/repositories/dataExports/createDataExports.d.ts +5 -5
- package/dist/repositories/dataExports/getDataExports.d.ts +4 -4
- package/dist/repositories/dataExports/index.d.ts +38 -38
- package/dist/repositories/dataExports/updateDataExports.d.ts +4 -4
- package/dist/repositories/deactivations/createDeactivation.d.ts +5 -5
- package/dist/repositories/deactivations/getDeactivationReasons.d.ts +5 -5
- package/dist/repositories/deactivations/getLatestDeactivationByImei.d.ts +5 -5
- package/dist/repositories/deactivations/index.d.ts +38 -38
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.d.ts +5 -5
- package/dist/repositories/deviceBehaviors/index.d.ts +70 -70
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.d.ts +4 -4
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.d.ts +5 -5
- package/dist/repositories/devicePairings/createDevicePairing.d.ts +5 -5
- package/dist/repositories/devicePairings/deleteDevicePairing.d.ts +4 -4
- package/dist/repositories/devicePairings/getDevicePairings.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.d.ts +5 -5
- package/dist/repositories/devicePairings/getDevicePairingsByImei.d.ts +5 -5
- package/dist/repositories/devicePairings/index.d.ts +65 -65
- package/dist/repositories/devicePairings/updateDevicePairing.d.ts +4 -4
- package/dist/repositories/deviceStatus/extendedDeviceStatus.d.ts +12 -12
- package/dist/repositories/deviceStatus/getDeviceStatuses.d.ts +4 -4
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.d.ts +4 -4
- package/dist/repositories/deviceStatus/index.d.ts +35 -35
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.d.ts +5 -5
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.d.ts +4 -4
- package/dist/repositories/deviceTypeFeature/index.d.ts +27 -27
- package/dist/repositories/devices/addDeviceChangesHistory.d.ts +5 -5
- package/dist/repositories/devices/allImeisAreActiveForClient.d.ts +4 -4
- package/dist/repositories/devices/createClientDeviceSetting.d.ts +5 -5
- package/dist/repositories/devices/createDevice.d.ts +5 -5
- package/dist/repositories/devices/createDeviceReplacement.d.ts +5 -5
- package/dist/repositories/devices/createDeviceType.d.ts +5 -5
- package/dist/repositories/devices/createImeiIccidCarrier.d.ts +5 -5
- package/dist/repositories/devices/deleteDevice.d.ts +4 -4
- package/dist/repositories/devices/generateDeviceIdentifierKey.d.ts +4 -4
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.d.ts +4 -4
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.d.ts +4 -4
- package/dist/repositories/devices/getClientDeviceSetting.d.ts +5 -5
- package/dist/repositories/devices/getClientDeviceSettings.d.ts +5 -5
- package/dist/repositories/devices/getDevice.d.ts +5 -5
- package/dist/repositories/devices/getDeviceChangesHistory.d.ts +5 -5
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.d.ts +4 -4
- package/dist/repositories/devices/getDeviceCustomConfig.d.ts +5 -5
- package/dist/repositories/devices/getDeviceTypeByImei.d.ts +5 -5
- package/dist/repositories/devices/getDeviceTypes.d.ts +4 -4
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.d.ts +3 -3
- package/dist/repositories/devices/getDeviceWithUsersInfo.d.ts +4 -4
- package/dist/repositories/devices/getDevices.d.ts +5 -5
- package/dist/repositories/devices/getDevicesCountByStatus.d.ts +4 -4
- package/dist/repositories/devices/getFilteredImeisWithStatus.d.ts +4 -4
- package/dist/repositories/devices/getIccidStatus.d.ts +5 -5
- package/dist/repositories/devices/getImeiIccidCarrier.d.ts +5 -5
- package/dist/repositories/devices/getImeiIccidCarriers.d.ts +5 -5
- package/dist/repositories/devices/getServiceProviderProduct.d.ts +5 -5
- package/dist/repositories/devices/index.d.ts +331 -331
- package/dist/repositories/devices/updateClientDeviceSetting.d.ts +4 -4
- package/dist/repositories/devices/updateDevice.d.ts +4 -4
- package/dist/repositories/devices/updateDeviceType.d.ts +4 -4
- package/dist/repositories/devices/updateIccidStatus.d.ts +4 -4
- package/dist/repositories/devices/updateImeiIccidCarrier.d.ts +4 -4
- package/dist/repositories/devices/upsertDeviceCustomConfig.d.ts +4 -4
- package/dist/repositories/devices/upsertIccidStatus.d.ts +4 -4
- package/dist/repositories/entityTags/bulkCreateEntityTag.d.ts +5 -5
- package/dist/repositories/entityTags/bulkDeleteEntityTag.d.ts +4 -4
- package/dist/repositories/entityTags/createEntityTag.d.ts +5 -5
- package/dist/repositories/entityTags/deleteEntityTag.d.ts +4 -4
- package/dist/repositories/entityTags/deleteEntityTagById.d.ts +3 -3
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.d.ts +4 -4
- package/dist/repositories/entityTags/getEntityTagById.d.ts +5 -5
- package/dist/repositories/entityTags/index.d.ts +48 -48
- package/dist/repositories/entityTags/searchEntityTags.d.ts +4 -4
- package/dist/repositories/features/createFeature.d.ts +5 -5
- package/dist/repositories/features/deleteFeature.d.ts +4 -4
- package/dist/repositories/features/getFeatures.d.ts +4 -4
- package/dist/repositories/features/index.d.ts +33 -33
- package/dist/repositories/features/upsertFeature.d.ts +4 -4
- package/dist/repositories/firmwares/createDeviceFirmware.d.ts +5 -5
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.d.ts +5 -5
- package/dist/repositories/firmwares/getDeviceFirmwares.d.ts +4 -4
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.d.ts +5 -5
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.d.ts +5 -5
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.d.ts +4 -4
- package/dist/repositories/firmwares/index.d.ts +132 -132
- package/dist/repositories/firmwares/updateDeviceFirmware.d.ts +4 -4
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.d.ts +4 -4
- package/dist/repositories/index.d.ts +42 -42
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.d.ts +5 -5
- package/dist/repositories/latestUserAppInfo/index.d.ts +23 -23
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.d.ts +4 -4
- package/dist/repositories/notificationRecipients/createNotificationRecipient.d.ts +5 -5
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.d.ts +4 -4
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.d.ts +4 -4
- package/dist/repositories/notificationRecipients/getNotificationRecipients.d.ts +5 -5
- package/dist/repositories/notificationRecipients/index.d.ts +83 -83
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.d.ts +4 -4
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.d.ts +4 -4
- package/dist/repositories/positions/createPosition.d.ts +6 -6
- package/dist/repositories/positions/getBatteryReportForDevice.d.ts +4 -4
- package/dist/repositories/positions/getLatestPositionByImei.d.ts +5 -5
- package/dist/repositories/positions/getPositionsByImei.d.ts +5 -5
- package/dist/repositories/positions/getPositionsReportByClient.d.ts +4 -4
- package/dist/repositories/positions/index.d.ts +69 -69
- package/dist/repositories/positions/mapping/mapToPositionReport.d.ts +5 -5
- package/dist/repositories/positions/upsertLatestPosition.d.ts +4 -4
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.d.ts +5 -5
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.d.ts +5 -5
- package/dist/repositories/promotions/createPromotion.d.ts +5 -5
- package/dist/repositories/promotions/createPromotionHistory.d.ts +5 -5
- package/dist/repositories/promotions/deleteDeviceTypePromotion.d.ts +4 -4
- package/dist/repositories/promotions/deleteMarketplacePromotion.d.ts +4 -4
- package/dist/repositories/promotions/getDeviceTypePromotion.d.ts +5 -5
- package/dist/repositories/promotions/getMarketplacePromotion.d.ts +5 -5
- package/dist/repositories/promotions/getPromotions.d.ts +5 -5
- package/dist/repositories/promotions/index.d.ts +72 -72
- package/dist/repositories/promotions/promotionValidator.d.ts +3 -3
- package/dist/repositories/promotions/updatePromotion.d.ts +4 -4
- package/dist/repositories/security/bulkCreateUserAuthorizedBoundaries.d.ts +5 -5
- package/dist/repositories/security/bulkCreateUserAuthorizedDevices.d.ts +5 -5
- package/dist/repositories/security/bulkRemoveUserAuthorizedBoundaries.d.ts +4 -4
- package/dist/repositories/security/bulkRemoveUserAuthorizedDevices.d.ts +4 -4
- package/dist/repositories/security/createUserRole.d.ts +5 -5
- package/dist/repositories/security/getAllRoles.d.ts +3 -3
- package/dist/repositories/security/getAuthorizedBoundariesByUserId.d.ts +5 -5
- package/dist/repositories/security/getAuthorizedDevicesByUserId.d.ts +5 -5
- package/dist/repositories/security/getUserIdsByClientIdAndAuthorizedBoundaries.d.ts +4 -0
- package/dist/repositories/security/getUserIdsByClientIdAndAuthorizedDevices.d.ts +4 -0
- package/dist/repositories/security/getUserRoles.d.ts +5 -5
- package/dist/repositories/security/getUserRolesByClientId.d.ts +5 -5
- package/dist/repositories/security/index.d.ts +66 -64
- package/dist/repositories/security/removeUserRoles.d.ts +4 -4
- package/dist/repositories/security/updateUserRole.d.ts +4 -4
- package/dist/repositories/security/userIsAdminOrOwner.d.ts +4 -4
- package/dist/repositories/security/userIsInRole.d.ts +4 -4
- package/dist/repositories/tags/bulkCreateTags.d.ts +5 -5
- package/dist/repositories/tags/createTag.d.ts +5 -5
- package/dist/repositories/tags/deleteTag.d.ts +4 -4
- package/dist/repositories/tags/index.d.ts +41 -41
- package/dist/repositories/tags/searchTags.d.ts +4 -4
- package/dist/repositories/tags/searchTagsByUser.d.ts +4 -4
- package/dist/repositories/tags/updateTag.d.ts +4 -4
- package/dist/repositories/tasks/addTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/completeTask.d.ts +4 -4
- package/dist/repositories/tasks/createTask.d.ts +5 -5
- package/dist/repositories/tasks/createTaskSchedule.d.ts +5 -5
- package/dist/repositories/tasks/deleteTask.d.ts +4 -4
- package/dist/repositories/tasks/deleteTaskSchedule.d.ts +4 -4
- package/dist/repositories/tasks/deleteTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/getDeviceTasks.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedule.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedules.d.ts +5 -5
- package/dist/repositories/tasks/getTaskSchedulesCount.d.ts +4 -4
- package/dist/repositories/tasks/getTasks.d.ts +5 -5
- package/dist/repositories/tasks/getTasksCount.d.ts +4 -4
- package/dist/repositories/tasks/index.d.ts +325 -325
- package/dist/repositories/tasks/setTaskAsPastDue.d.ts +4 -4
- package/dist/repositories/tasks/setTaskScheduleDevices.d.ts +4 -4
- package/dist/repositories/tasks/updateTask.d.ts +4 -4
- package/dist/repositories/tasks/updateTaskSchedule.d.ts +4 -4
- package/dist/repositories/trips/createTrip.d.ts +5 -5
- package/dist/repositories/trips/getDeviceTripConfiguration.d.ts +4 -4
- package/dist/repositories/trips/getTripById.d.ts +4 -4
- package/dist/repositories/trips/getTrips.d.ts +4 -4
- package/dist/repositories/trips/index.d.ts +36 -36
- package/dist/repositories/trips/updateTripEndValues.d.ts +4 -4
- package/dist/repositories/trips/upsertTrip.d.ts +4 -4
- package/dist/repositories/userActivations/createUserActivation.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationDevice.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationEvent.d.ts +5 -5
- package/dist/repositories/userActivations/createUserActivationMetric.d.ts +5 -5
- package/dist/repositories/userActivations/deleteUserActivation.d.ts +4 -4
- package/dist/repositories/userActivations/getLastActivationDevice.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationById.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationDevices.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivationMetrics.d.ts +5 -5
- package/dist/repositories/userActivations/getUserActivations.d.ts +5 -5
- package/dist/repositories/userActivations/index.d.ts +147 -147
- package/dist/repositories/userActivations/updateUserActivationDevice.d.ts +4 -4
- package/dist/repositories/userActivations/updateUserActivationMetrics.d.ts +4 -4
- package/dist/repositories/userAppFeedback/createUserAppFeedback.d.ts +5 -5
- package/dist/repositories/userAppFeedback/index.d.ts +17 -17
- package/dist/repositories/userAppIncidents/getUserAppIncidents.d.ts +5 -5
- package/dist/repositories/userAppIncidents/index.d.ts +50 -50
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.d.ts +4 -4
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.d.ts +5 -5
- package/dist/repositories/userConfigurations/createUserConfiguration.d.ts +5 -5
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.d.ts +4 -4
- package/dist/repositories/userConfigurations/deleteUserConfiguration.d.ts +4 -4
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.d.ts +5 -5
- package/dist/repositories/userConfigurations/getUserConfigurations.d.ts +5 -5
- package/dist/repositories/userConfigurations/index.d.ts +170 -170
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.d.ts +4 -4
- package/dist/repositories/userConfigurations/updateUserConfiguration.d.ts +4 -4
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.d.ts +4 -4
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.d.ts +5 -5
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.d.ts +5 -5
- package/dist/repositories/userDataDeletionRequests/index.d.ts +39 -39
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.d.ts +4 -4
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.d.ts +4 -4
- package/dist/repositories/userInvitations/createUserInvitation.d.ts +5 -5
- package/dist/repositories/userInvitations/getUserInvitationById.d.ts +5 -5
- package/dist/repositories/userInvitations/getUserInvitations.d.ts +5 -5
- package/dist/repositories/userInvitations/index.d.ts +58 -58
- package/dist/repositories/userInvitations/updateUserInvitation.d.ts +4 -4
- package/dist/repositories/userRatingRequests/createUserRatingRequest.d.ts +5 -5
- package/dist/repositories/userRatingRequests/getUserRatingRequests.d.ts +5 -5
- package/dist/repositories/userRatingRequests/index.d.ts +28 -28
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.d.ts +5 -5
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.d.ts +5 -5
- package/dist/repositories/userRegistrationAttempts/index.d.ts +50 -50
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.d.ts +4 -4
- package/dist/repositories/users/createUser.d.ts +5 -5
- package/dist/repositories/users/deleteAccount.d.ts +4 -4
- package/dist/repositories/users/deleteUser.d.ts +4 -4
- package/dist/repositories/users/getUserById.d.ts +5 -5
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.d.ts +4 -4
- package/dist/repositories/users/getUserData.d.ts +4 -4
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.d.ts +4 -4
- package/dist/repositories/users/getUsers.d.ts +5 -5
- package/dist/repositories/users/getUsersConfigurationByImei.d.ts +5 -5
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.d.ts +4 -4
- package/dist/repositories/users/getUsersInfoWithActivationInfo.d.ts +4 -4
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.d.ts +4 -4
- package/dist/repositories/users/getUsersWithRoles.d.ts +4 -4
- package/dist/repositories/users/index.d.ts +154 -154
- package/dist/repositories/users/updateUser.d.ts +4 -4
- package/dist/subscribers/allEntitiesSubscriber.d.ts +13 -13
- package/dist/subscribers/index.d.ts +2 -2
- package/dist/types/acumatica.d.ts +42 -42
- package/dist/types/aempToken.d.ts +20 -20
- package/dist/types/alert.d.ts +87 -87
- package/dist/types/alertTypes.d.ts +6 -6
- package/dist/types/appFeatures.d.ts +24 -24
- package/dist/types/billing.d.ts +342 -342
- package/dist/types/blacklist.d.ts +32 -32
- package/dist/types/bleMesh.d.ts +157 -157
- package/dist/types/bleMeshConfiguration.d.ts +30 -30
- package/dist/types/boundaries.d.ts +125 -125
- package/dist/types/clientAlertConfiguration.d.ts +102 -102
- package/dist/types/clients.d.ts +137 -137
- package/dist/types/common.d.ts +17 -17
- package/dist/types/countries.d.ts +12 -12
- package/dist/types/dataExports.d.ts +43 -43
- package/dist/types/deactivations.d.ts +25 -25
- package/dist/types/deviceBehaviors.d.ts +97 -97
- package/dist/types/devicePairings.d.ts +56 -56
- package/dist/types/deviceStatus.d.ts +84 -84
- package/dist/types/deviceTypeFeature.d.ts +23 -23
- package/dist/types/devices.d.ts +410 -410
- package/dist/types/entitiesTags.d.ts +63 -63
- package/dist/types/enums.d.ts +90 -90
- package/dist/types/feature.d.ts +20 -20
- package/dist/types/firmwares.d.ts +129 -129
- package/dist/types/index.d.ts +38 -38
- package/dist/types/latestUserAppInfo.d.ts +12 -12
- package/dist/types/liveLinks.d.ts +92 -92
- package/dist/types/logger.d.ts +68 -68
- package/dist/types/notificationRecipients.d.ts +72 -72
- package/dist/types/position.d.ts +71 -71
- package/dist/types/promotion.d.ts +121 -121
- package/dist/types/security.d.ts +85 -70
- package/dist/types/tag.d.ts +65 -65
- package/dist/types/tasks.d.ts +228 -228
- package/dist/types/trip.d.ts +92 -92
- package/dist/types/user.d.ts +255 -255
- package/dist/types/userActivations.d.ts +143 -143
- package/dist/types/userAppFeedback.d.ts +8 -8
- package/dist/types/userAppIncidents.d.ts +35 -35
- package/dist/types/userConfigurations.d.ts +127 -127
- package/dist/types/userDataDeletionRequests.d.ts +29 -29
- package/dist/types/userInvitations.d.ts +48 -48
- package/dist/types/userRatingRequests.d.ts +18 -18
- package/dist/types/userRegistrationAttempts.d.ts +36 -36
- package/dist/utils/anyAttributeHasValue.d.ts +1 -1
- package/dist/utils/billingPlansHelper.d.ts +3 -3
- package/dist/utils/boolToNumberTransformer.d.ts +5 -5
- package/dist/utils/commaSeparatedTransformer.d.ts +9 -9
- package/dist/utils/consoleLogger.d.ts +10 -10
- package/dist/utils/dateTool.d.ts +2 -2
- package/dist/utils/filterTools.d.ts +12 -12
- package/dist/utils/mapRawEntityToEntity.d.ts +1 -1
- package/dist/utils/paramsValidators.d.ts +3 -3
- package/dist/utils/parsingTools.d.ts +3 -3
- package/dist/utils/queryLogger.d.ts +13 -13
- package/dist/utils/randomizer.d.ts +5 -5
- package/dist/utils/stringToDateTransformer.d.ts +5 -5
- package/dist/utils/uuidHelpers.d.ts +4 -2
- package/dist/utils/uuidTransformer.d.ts +5 -5
- package/package.json +10 -4
- package/dist/entities/acumaticaAmazonProduct.js +0 -47
- package/dist/entities/acumaticaAmazonProduct.js.map +0 -1
- package/dist/entities/acumaticaImeiIccidData.js +0 -93
- package/dist/entities/acumaticaImeiIccidData.js.map +0 -1
- package/dist/entities/acumaticaOrderShipmentDetails.js +0 -63
- package/dist/entities/acumaticaOrderShipmentDetails.js.map +0 -1
- package/dist/entities/acumaticaShipment.js +0 -32
- package/dist/entities/acumaticaShipment.js.map +0 -1
- package/dist/entities/acumaticaShipmentAmazon.js +0 -27
- package/dist/entities/acumaticaShipmentAmazon.js.map +0 -1
- package/dist/entities/aempToken.js +0 -48
- package/dist/entities/aempToken.js.map +0 -1
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js +0 -82
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js.map +0 -1
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js +0 -147
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js.map +0 -1
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js +0 -42
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js.map +0 -1
- package/dist/entities/alert.js +0 -137
- package/dist/entities/alert.js.map +0 -1
- package/dist/entities/alertType.js +0 -84
- package/dist/entities/alertType.js.map +0 -1
- package/dist/entities/appFeatureType.js +0 -37
- package/dist/entities/appFeatureType.js.map +0 -1
- package/dist/entities/asinPromotion.js +0 -37
- package/dist/entities/asinPromotion.js.map +0 -1
- package/dist/entities/assetCategory.js +0 -33
- package/dist/entities/assetCategory.js.map +0 -1
- package/dist/entities/beaconBleMesh.js +0 -63
- package/dist/entities/beaconBleMesh.js.map +0 -1
- package/dist/entities/billing.js +0 -110
- package/dist/entities/billing.js.map +0 -1
- package/dist/entities/billingCustomerAmazon.js +0 -82
- package/dist/entities/billingCustomerAmazon.js.map +0 -1
- package/dist/entities/billingCustomerBraintree.js +0 -63
- package/dist/entities/billingCustomerBraintree.js.map +0 -1
- package/dist/entities/billingDeviceHistory.js +0 -62
- package/dist/entities/billingDeviceHistory.js.map +0 -1
- package/dist/entities/billingDeviceTypePlan.js +0 -64
- package/dist/entities/billingDeviceTypePlan.js.map +0 -1
- package/dist/entities/billingHubspotPaymentLog.js +0 -257
- package/dist/entities/billingHubspotPaymentLog.js.map +0 -1
- package/dist/entities/billingKlarnaCustomer.js +0 -78
- package/dist/entities/billingKlarnaCustomer.js.map +0 -1
- package/dist/entities/billingKlarnaOrder.js +0 -116
- package/dist/entities/billingKlarnaOrder.js.map +0 -1
- package/dist/entities/billingPlanFeatures.js +0 -37
- package/dist/entities/billingPlanFeatures.js.map +0 -1
- package/dist/entities/billingPlans.js +0 -127
- package/dist/entities/billingPlans.js.map +0 -1
- package/dist/entities/billingStatusHistoryBraintree.js +0 -64
- package/dist/entities/billingStatusHistoryBraintree.js.map +0 -1
- package/dist/entities/billingSubscriptionAmazon.js +0 -156
- package/dist/entities/billingSubscriptionAmazon.js.map +0 -1
- package/dist/entities/billingSubscriptionBraintree.js +0 -231
- package/dist/entities/billingSubscriptionBraintree.js.map +0 -1
- package/dist/entities/blacklist.js +0 -52
- package/dist/entities/blacklist.js.map +0 -1
- package/dist/entities/blacklistType.js +0 -32
- package/dist/entities/blacklistType.js.map +0 -1
- package/dist/entities/bleMesh.js +0 -74
- package/dist/entities/bleMesh.js.map +0 -1
- package/dist/entities/bleMeshConfiguration.js +0 -57
- package/dist/entities/bleMeshConfiguration.js.map +0 -1
- package/dist/entities/boundary.js +0 -121
- package/dist/entities/boundary.js.map +0 -1
- package/dist/entities/boundaryEvent.js +0 -106
- package/dist/entities/boundaryEvent.js.map +0 -1
- package/dist/entities/cellTower.js +0 -67
- package/dist/entities/cellTower.js.map +0 -1
- package/dist/entities/client.js +0 -148
- package/dist/entities/client.js.map +0 -1
- package/dist/entities/clientAlertConfiguration.js +0 -112
- package/dist/entities/clientAlertConfiguration.js.map +0 -1
- package/dist/entities/clientAlertRecipient.js +0 -98
- package/dist/entities/clientAlertRecipient.js.map +0 -1
- package/dist/entities/clientAppFeature.js +0 -48
- package/dist/entities/clientAppFeature.js.map +0 -1
- package/dist/entities/clientConfiguration.js +0 -59
- package/dist/entities/clientConfiguration.js.map +0 -1
- package/dist/entities/clientDeviceSetting.js +0 -96
- package/dist/entities/clientDeviceSetting.js.map +0 -1
- package/dist/entities/clientIngestorConfiguration.js +0 -48
- package/dist/entities/clientIngestorConfiguration.js.map +0 -1
- package/dist/entities/clientType.js +0 -38
- package/dist/entities/clientType.js.map +0 -1
- package/dist/entities/country.js +0 -93
- package/dist/entities/country.js.map +0 -1
- package/dist/entities/customerAttribute.js +0 -81
- package/dist/entities/customerAttribute.js.map +0 -1
- package/dist/entities/dataExport.js +0 -74
- package/dist/entities/dataExport.js.map +0 -1
- package/dist/entities/dataSourceType.js +0 -32
- package/dist/entities/dataSourceType.js.map +0 -1
- package/dist/entities/deactivation.js +0 -84
- package/dist/entities/deactivation.js.map +0 -1
- package/dist/entities/deactivationReason.js +0 -41
- package/dist/entities/deactivationReason.js.map +0 -1
- package/dist/entities/device.js +0 -175
- package/dist/entities/device.js.map +0 -1
- package/dist/entities/deviceBehavior.js +0 -148
- package/dist/entities/deviceBehavior.js.map +0 -1
- package/dist/entities/deviceBleMesh.js +0 -78
- package/dist/entities/deviceBleMesh.js.map +0 -1
- package/dist/entities/deviceBleMeshUpdateTask.js +0 -83
- package/dist/entities/deviceBleMeshUpdateTask.js.map +0 -1
- package/dist/entities/deviceChangesHistory.js +0 -48
- package/dist/entities/deviceChangesHistory.js.map +0 -1
- package/dist/entities/deviceCustomConfiguration.js +0 -77
- package/dist/entities/deviceCustomConfiguration.js.map +0 -1
- package/dist/entities/deviceHistory.js +0 -47
- package/dist/entities/deviceHistory.js.map +0 -1
- package/dist/entities/deviceModelListener.js +0 -47
- package/dist/entities/deviceModelListener.js.map +0 -1
- package/dist/entities/devicePairing.js +0 -83
- package/dist/entities/devicePairing.js.map +0 -1
- package/dist/entities/devicePromotion.js +0 -37
- package/dist/entities/devicePromotion.js.map +0 -1
- package/dist/entities/deviceReplacement.js +0 -59
- package/dist/entities/deviceReplacement.js.map +0 -1
- package/dist/entities/deviceStatus.js +0 -61
- package/dist/entities/deviceStatus.js.map +0 -1
- package/dist/entities/deviceTask.js +0 -45
- package/dist/entities/deviceTask.js.map +0 -1
- package/dist/entities/deviceType.js +0 -154
- package/dist/entities/deviceType.js.map +0 -1
- package/dist/entities/deviceTypeFeature.js +0 -33
- package/dist/entities/deviceTypeFeature.js.map +0 -1
- package/dist/entities/deviceTypeFirmware.js +0 -118
- package/dist/entities/deviceTypeFirmware.js.map +0 -1
- package/dist/entities/deviceTypePromotion.js +0 -37
- package/dist/entities/deviceTypePromotion.js.map +0 -1
- package/dist/entities/emailDomain.js +0 -39
- package/dist/entities/emailDomain.js.map +0 -1
- package/dist/entities/entityTag.js +0 -72
- package/dist/entities/entityTag.js.map +0 -1
- package/dist/entities/entityType.js +0 -32
- package/dist/entities/entityType.js.map +0 -1
- package/dist/entities/feature.js +0 -37
- package/dist/entities/feature.js.map +0 -1
- package/dist/entities/firmwareAutoUpgradeBlacklist.js +0 -36
- package/dist/entities/firmwareAutoUpgradeBlacklist.js.map +0 -1
- package/dist/entities/firmwareUpgradeTask.js +0 -108
- package/dist/entities/firmwareUpgradeTask.js.map +0 -1
- package/dist/entities/historicalBillingPlan.js +0 -163
- package/dist/entities/historicalBillingPlan.js.map +0 -1
- package/dist/entities/iccidStatus.js +0 -50
- package/dist/entities/iccidStatus.js.map +0 -1
- package/dist/entities/imeiIccidCarrier.js +0 -127
- package/dist/entities/imeiIccidCarrier.js.map +0 -1
- package/dist/entities/imeiIccidHistory.js +0 -44
- package/dist/entities/imeiIccidHistory.js.map +0 -1
- package/dist/entities/imeiIccidImport.js +0 -32
- package/dist/entities/imeiIccidImport.js.map +0 -1
- package/dist/entities/index.js +0 -122
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/industry.js +0 -47
- package/dist/entities/industry.js.map +0 -1
- package/dist/entities/latestPosition.js +0 -106
- package/dist/entities/latestPosition.js.map +0 -1
- package/dist/entities/latestUserAppInfo.js +0 -43
- package/dist/entities/latestUserAppInfo.js.map +0 -1
- package/dist/entities/liveLink.js +0 -126
- package/dist/entities/liveLink.js.map +0 -1
- package/dist/entities/magento2Gps.js +0 -259
- package/dist/entities/magento2Gps.js.map +0 -1
- package/dist/entities/magento2Plan.js +0 -44
- package/dist/entities/magento2Plan.js.map +0 -1
- package/dist/entities/marketplacePromotion.js +0 -37
- package/dist/entities/marketplacePromotion.js.map +0 -1
- package/dist/entities/mobileNetwork.js +0 -52
- package/dist/entities/mobileNetwork.js.map +0 -1
- package/dist/entities/notificationRecipient.js +0 -128
- package/dist/entities/notificationRecipient.js.map +0 -1
- package/dist/entities/orderShipmentInternational.js +0 -67
- package/dist/entities/orderShipmentInternational.js.map +0 -1
- package/dist/entities/organization.js +0 -47
- package/dist/entities/organization.js.map +0 -1
- package/dist/entities/plan.js +0 -87
- package/dist/entities/plan.js.map +0 -1
- package/dist/entities/position.js +0 -106
- package/dist/entities/position.js.map +0 -1
- package/dist/entities/promotion.js +0 -136
- package/dist/entities/promotion.js.map +0 -1
- package/dist/entities/promotionHistory.js +0 -90
- package/dist/entities/promotionHistory.js.map +0 -1
- package/dist/entities/region.js +0 -70
- package/dist/entities/region.js.map +0 -1
- package/dist/entities/securityRole.js +0 -48
- package/dist/entities/securityRole.js.map +0 -1
- package/dist/entities/serviceProvider.js +0 -42
- package/dist/entities/serviceProvider.js.map +0 -1
- package/dist/entities/serviceProviderProduct.js +0 -62
- package/dist/entities/serviceProviderProduct.js.map +0 -1
- package/dist/entities/serviceProviderProductNetwork.js +0 -32
- package/dist/entities/serviceProviderProductNetwork.js.map +0 -1
- package/dist/entities/serviceProviderProductType.js +0 -32
- package/dist/entities/serviceProviderProductType.js.map +0 -1
- package/dist/entities/sim.js +0 -93
- package/dist/entities/sim.js.map +0 -1
- package/dist/entities/tag.js +0 -68
- package/dist/entities/tag.js.map +0 -1
- package/dist/entities/task.js +0 -185
- package/dist/entities/task.js.map +0 -1
- package/dist/entities/taskSchedule.js +0 -147
- package/dist/entities/taskSchedule.js.map +0 -1
- package/dist/entities/trip.js +0 -139
- package/dist/entities/trip.js.map +0 -1
- package/dist/entities/tripCompletionStatus.js +0 -37
- package/dist/entities/tripCompletionStatus.js.map +0 -1
- package/dist/entities/tripPosition.js +0 -27
- package/dist/entities/tripPosition.js.map +0 -1
- package/dist/entities/user.js +0 -221
- package/dist/entities/user.js.map +0 -1
- package/dist/entities/userActivation.js +0 -53
- package/dist/entities/userActivation.js.map +0 -1
- package/dist/entities/userActivationDevice.js +0 -166
- package/dist/entities/userActivationDevice.js.map +0 -1
- package/dist/entities/userActivationEvent.js +0 -62
- package/dist/entities/userActivationEvent.js.map +0 -1
- package/dist/entities/userActivationMetric.js +0 -209
- package/dist/entities/userActivationMetric.js.map +0 -1
- package/dist/entities/userAlertComplain.js +0 -79
- package/dist/entities/userAlertComplain.js.map +0 -1
- package/dist/entities/userAlertConfiguration.js +0 -143
- package/dist/entities/userAlertConfiguration.js.map +0 -1
- package/dist/entities/userAlertNotificationsConfig.js +0 -91
- package/dist/entities/userAlertNotificationsConfig.js.map +0 -1
- package/dist/entities/userAppFeedback.js +0 -53
- package/dist/entities/userAppFeedback.js.map +0 -1
- package/dist/entities/userAppIncident.js +0 -177
- package/dist/entities/userAppIncident.js.map +0 -1
- package/dist/entities/userAuthorizedBoundary.js +0 -43
- package/dist/entities/userAuthorizedBoundary.js.map +0 -1
- package/dist/entities/userAuthorizedDevice.js +0 -43
- package/dist/entities/userAuthorizedDevice.js.map +0 -1
- package/dist/entities/userConfiguration.js +0 -110
- package/dist/entities/userConfiguration.js.map +0 -1
- package/dist/entities/userDataDeletionRequest.js +0 -58
- package/dist/entities/userDataDeletionRequest.js.map +0 -1
- package/dist/entities/userDeviceBehaviorTask.js +0 -81
- package/dist/entities/userDeviceBehaviorTask.js.map +0 -1
- package/dist/entities/userInvitation.js +0 -167
- package/dist/entities/userInvitation.js.map +0 -1
- package/dist/entities/userRatingRequest.js +0 -76
- package/dist/entities/userRatingRequest.js.map +0 -1
- package/dist/entities/userRegistrationAttempt.js +0 -178
- package/dist/entities/userRegistrationAttempt.js.map +0 -1
- package/dist/entities/userSecurityRole.js +0 -47
- package/dist/entities/userSecurityRole.js.map +0 -1
- package/dist/index.js.LICENSE.txt +0 -39
- package/dist/index.js.map +0 -1
- package/dist/migration/1684483704434-addLowerCaseIndex.js +0 -17
- package/dist/migration/1684483704434-addLowerCaseIndex.js.map +0 -1
- package/dist/novaDataSource.js +0 -193
- package/dist/novaDataSource.js.map +0 -1
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +0 -47
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js.map +0 -1
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js +0 -23
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js.map +0 -1
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +0 -56
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js.map +0 -1
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +0 -33
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js.map +0 -1
- package/dist/repositories/acumatica/getOrderShipmentInternational.js +0 -23
- package/dist/repositories/acumatica/getOrderShipmentInternational.js.map +0 -1
- package/dist/repositories/acumatica/index.js +0 -81
- package/dist/repositories/acumatica/index.js.map +0 -1
- package/dist/repositories/aempToken/createAempToken.js +0 -27
- package/dist/repositories/aempToken/createAempToken.js.map +0 -1
- package/dist/repositories/aempToken/deleteAempTokens.js +0 -31
- package/dist/repositories/aempToken/deleteAempTokens.js.map +0 -1
- package/dist/repositories/aempToken/getAempTokens.js +0 -35
- package/dist/repositories/aempToken/getAempTokens.js.map +0 -1
- package/dist/repositories/aempToken/index.js +0 -54
- package/dist/repositories/aempToken/index.js.map +0 -1
- package/dist/repositories/alertTypes/getAlertTypes.js +0 -19
- package/dist/repositories/alertTypes/getAlertTypes.js.map +0 -1
- package/dist/repositories/alertTypes/index.js +0 -19
- package/dist/repositories/alertTypes/index.js.map +0 -1
- package/dist/repositories/alerts/createAlert.js +0 -99
- package/dist/repositories/alerts/createAlert.js.map +0 -1
- package/dist/repositories/alerts/createUserAlertComplain.js +0 -27
- package/dist/repositories/alerts/createUserAlertComplain.js.map +0 -1
- package/dist/repositories/alerts/getAlertsReportByClient.js +0 -70
- package/dist/repositories/alerts/getAlertsReportByClient.js.map +0 -1
- package/dist/repositories/alerts/getAlertsReportByUser.js +0 -132
- package/dist/repositories/alerts/getAlertsReportByUser.js.map +0 -1
- package/dist/repositories/alerts/index.js +0 -105
- package/dist/repositories/alerts/index.js.map +0 -1
- package/dist/repositories/appFeatures/createAppFeatureType.js +0 -16
- package/dist/repositories/appFeatures/createAppFeatureType.js.map +0 -1
- package/dist/repositories/appFeatures/createClientAppFeature.js +0 -16
- package/dist/repositories/appFeatures/createClientAppFeature.js.map +0 -1
- package/dist/repositories/appFeatures/getClientAppFeatures.js +0 -45
- package/dist/repositories/appFeatures/getClientAppFeatures.js.map +0 -1
- package/dist/repositories/appFeatures/index.js +0 -58
- package/dist/repositories/appFeatures/index.js.map +0 -1
- package/dist/repositories/assetCategories/getAssetCategories.js +0 -19
- package/dist/repositories/assetCategories/getAssetCategories.js.map +0 -1
- package/dist/repositories/assetCategories/index.js +0 -17
- package/dist/repositories/assetCategories/index.js.map +0 -1
- package/dist/repositories/baseRepository.js +0 -24
- package/dist/repositories/baseRepository.js.map +0 -1
- package/dist/repositories/billing/createBilling.js +0 -38
- package/dist/repositories/billing/createBilling.js.map +0 -1
- package/dist/repositories/billing/createBillingDeviceHistory.js +0 -31
- package/dist/repositories/billing/createBillingDeviceHistory.js.map +0 -1
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js +0 -62
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js.map +0 -1
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +0 -33
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js.map +0 -1
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js +0 -24
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js.map +0 -1
- package/dist/repositories/billing/getBillingDeviceTypePlans.js +0 -22
- package/dist/repositories/billing/getBillingDeviceTypePlans.js.map +0 -1
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +0 -24
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js.map +0 -1
- package/dist/repositories/billing/getBillingPlans.js +0 -68
- package/dist/repositories/billing/getBillingPlans.js.map +0 -1
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +0 -24
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js.map +0 -1
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +0 -31
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js.map +0 -1
- package/dist/repositories/billing/getBillings.js +0 -48
- package/dist/repositories/billing/getBillings.js.map +0 -1
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js +0 -49
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js.map +0 -1
- package/dist/repositories/billing/getCanceledImeis.js +0 -96
- package/dist/repositories/billing/getCanceledImeis.js.map +0 -1
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +0 -120
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js.map +0 -1
- package/dist/repositories/billing/getChurnStatusByClientId.js +0 -37
- package/dist/repositories/billing/getChurnStatusByClientId.js.map +0 -1
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +0 -26
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js.map +0 -1
- package/dist/repositories/billing/getMagentoPlan.js +0 -27
- package/dist/repositories/billing/getMagentoPlan.js.map +0 -1
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js +0 -28
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js.map +0 -1
- package/dist/repositories/billing/index.js +0 -425
- package/dist/repositories/billing/index.js.map +0 -1
- package/dist/repositories/billing/updateBilling.js +0 -44
- package/dist/repositories/billing/updateBilling.js.map +0 -1
- package/dist/repositories/billing/updateBillingCustomerBraintree.js +0 -38
- package/dist/repositories/billing/updateBillingCustomerBraintree.js.map +0 -1
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js +0 -49
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js.map +0 -1
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js +0 -67
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js.map +0 -1
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +0 -53
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js.map +0 -1
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js +0 -59
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js.map +0 -1
- package/dist/repositories/billing/upsertBillingPlans.js +0 -54
- package/dist/repositories/billing/upsertBillingPlans.js.map +0 -1
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +0 -21
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js.map +0 -1
- package/dist/repositories/blacklist/deleteBlackList.js +0 -20
- package/dist/repositories/blacklist/deleteBlackList.js.map +0 -1
- package/dist/repositories/blacklist/getBlacklists.js +0 -25
- package/dist/repositories/blacklist/getBlacklists.js.map +0 -1
- package/dist/repositories/blacklist/index.js +0 -71
- package/dist/repositories/blacklist/index.js.map +0 -1
- package/dist/repositories/blacklist/updateBlackList.js +0 -31
- package/dist/repositories/blacklist/updateBlackList.js.map +0 -1
- package/dist/repositories/blacklist/upsertBlackList.js +0 -41
- package/dist/repositories/blacklist/upsertBlackList.js.map +0 -1
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js +0 -29
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js +0 -38
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/createBLEMesh.js +0 -19
- package/dist/repositories/bleMesh/createBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js +0 -47
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js.map +0 -1
- package/dist/repositories/bleMesh/getBLEMeshes.js +0 -46
- package/dist/repositories/bleMesh/getBLEMeshes.js.map +0 -1
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js +0 -44
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js.map +0 -1
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js +0 -56
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js.map +0 -1
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js +0 -50
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js.map +0 -1
- package/dist/repositories/bleMesh/index.js +0 -269
- package/dist/repositories/bleMesh/index.js.map +0 -1
- package/dist/repositories/bleMesh/removeBLEMesh.js +0 -22
- package/dist/repositories/bleMesh/removeBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js +0 -21
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js.map +0 -1
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js +0 -28
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js +0 -25
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/updateBLEMesh.js +0 -32
- package/dist/repositories/bleMesh/updateBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js +0 -27
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js +0 -30
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js.map +0 -1
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js +0 -27
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js.map +0 -1
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js +0 -19
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js.map +0 -1
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js +0 -17
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js.map +0 -1
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js +0 -29
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js.map +0 -1
- package/dist/repositories/bleMeshConfiguration/index.js +0 -74
- package/dist/repositories/bleMeshConfiguration/index.js.map +0 -1
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js +0 -31
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js.map +0 -1
- package/dist/repositories/boundaries/createBoundary.js +0 -53
- package/dist/repositories/boundaries/createBoundary.js.map +0 -1
- package/dist/repositories/boundaries/deleteBoundary.js +0 -24
- package/dist/repositories/boundaries/deleteBoundary.js.map +0 -1
- package/dist/repositories/boundaries/getBoundariesByClientId.js +0 -54
- package/dist/repositories/boundaries/getBoundariesByClientId.js.map +0 -1
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +0 -24
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js.map +0 -1
- package/dist/repositories/boundaries/getBoundariesReport.js +0 -147
- package/dist/repositories/boundaries/getBoundariesReport.js.map +0 -1
- package/dist/repositories/boundaries/getBoundaryById.js +0 -23
- package/dist/repositories/boundaries/getBoundaryById.js.map +0 -1
- package/dist/repositories/boundaries/index.js +0 -179
- package/dist/repositories/boundaries/index.js.map +0 -1
- package/dist/repositories/boundaries/processBoundaryEvent.js +0 -212
- package/dist/repositories/boundaries/processBoundaryEvent.js.map +0 -1
- package/dist/repositories/boundaries/updateBoundary.js +0 -54
- package/dist/repositories/boundaries/updateBoundary.js.map +0 -1
- package/dist/repositories/boundaries/upsertBoundaryEvent.js +0 -24
- package/dist/repositories/boundaries/upsertBoundaryEvent.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js +0 -27
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js +0 -25
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js +0 -44
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js +0 -40
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js +0 -73
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/index.js +0 -139
- package/dist/repositories/clientAlertConfiguration/index.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js +0 -51
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js +0 -175
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js.map +0 -1
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js +0 -44
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js.map +0 -1
- package/dist/repositories/clients/createClient.js +0 -36
- package/dist/repositories/clients/createClient.js.map +0 -1
- package/dist/repositories/clients/createClientConfiguration.js +0 -21
- package/dist/repositories/clients/createClientConfiguration.js.map +0 -1
- package/dist/repositories/clients/createClientIngestorConfiguration.js +0 -21
- package/dist/repositories/clients/createClientIngestorConfiguration.js.map +0 -1
- package/dist/repositories/clients/createCustomerAttribute.js +0 -22
- package/dist/repositories/clients/createCustomerAttribute.js.map +0 -1
- package/dist/repositories/clients/deleteClientAndConfiguration.js +0 -26
- package/dist/repositories/clients/deleteClientAndConfiguration.js.map +0 -1
- package/dist/repositories/clients/getClient.js +0 -38
- package/dist/repositories/clients/getClient.js.map +0 -1
- package/dist/repositories/clients/getClientConfiguration.js +0 -31
- package/dist/repositories/clients/getClientConfiguration.js.map +0 -1
- package/dist/repositories/clients/getClientIngestorConfigurations.js +0 -25
- package/dist/repositories/clients/getClientIngestorConfigurations.js.map +0 -1
- package/dist/repositories/clients/getClients.js +0 -32
- package/dist/repositories/clients/getClients.js.map +0 -1
- package/dist/repositories/clients/getCustomerAttribute.js +0 -23
- package/dist/repositories/clients/getCustomerAttribute.js.map +0 -1
- package/dist/repositories/clients/index.js +0 -228
- package/dist/repositories/clients/index.js.map +0 -1
- package/dist/repositories/clients/updateClient.js +0 -53
- package/dist/repositories/clients/updateClient.js.map +0 -1
- package/dist/repositories/clients/updateClientConfiguration.js +0 -29
- package/dist/repositories/clients/updateClientConfiguration.js.map +0 -1
- package/dist/repositories/clients/updateCustomerAttribute.js +0 -27
- package/dist/repositories/clients/updateCustomerAttribute.js.map +0 -1
- package/dist/repositories/countries/getCountries.js +0 -20
- package/dist/repositories/countries/getCountries.js.map +0 -1
- package/dist/repositories/countries/getCountry.js +0 -29
- package/dist/repositories/countries/getCountry.js.map +0 -1
- package/dist/repositories/countries/index.js +0 -34
- package/dist/repositories/countries/index.js.map +0 -1
- package/dist/repositories/dataExports/createDataExports.js +0 -32
- package/dist/repositories/dataExports/createDataExports.js.map +0 -1
- package/dist/repositories/dataExports/getDataExports.js +0 -47
- package/dist/repositories/dataExports/getDataExports.js.map +0 -1
- package/dist/repositories/dataExports/index.js +0 -59
- package/dist/repositories/dataExports/index.js.map +0 -1
- package/dist/repositories/dataExports/updateDataExports.js +0 -26
- package/dist/repositories/dataExports/updateDataExports.js.map +0 -1
- package/dist/repositories/deactivations/createDeactivation.js +0 -17
- package/dist/repositories/deactivations/createDeactivation.js.map +0 -1
- package/dist/repositories/deactivations/getDeactivationReasons.js +0 -30
- package/dist/repositories/deactivations/getDeactivationReasons.js.map +0 -1
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js +0 -25
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js.map +0 -1
- package/dist/repositories/deactivations/index.js +0 -59
- package/dist/repositories/deactivations/index.js.map +0 -1
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +0 -49
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js.map +0 -1
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +0 -46
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js.map +0 -1
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +0 -47
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js.map +0 -1
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +0 -22
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js.map +0 -1
- package/dist/repositories/deviceBehaviors/index.js +0 -112
- package/dist/repositories/deviceBehaviors/index.js.map +0 -1
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +0 -28
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js.map +0 -1
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +0 -21
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js.map +0 -1
- package/dist/repositories/devicePairings/createDevicePairing.js +0 -22
- package/dist/repositories/devicePairings/createDevicePairing.js.map +0 -1
- package/dist/repositories/devicePairings/deleteDevicePairing.js +0 -17
- package/dist/repositories/devicePairings/deleteDevicePairing.js.map +0 -1
- package/dist/repositories/devicePairings/getDevicePairings.js +0 -42
- package/dist/repositories/devicePairings/getDevicePairings.js.map +0 -1
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js +0 -28
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js.map +0 -1
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js +0 -26
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js.map +0 -1
- package/dist/repositories/devicePairings/index.js +0 -107
- package/dist/repositories/devicePairings/index.js.map +0 -1
- package/dist/repositories/devicePairings/updateDevicePairing.js +0 -36
- package/dist/repositories/devicePairings/updateDevicePairing.js.map +0 -1
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js +0 -207
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js.map +0 -1
- package/dist/repositories/deviceStatus/getDeviceStatuses.js +0 -88
- package/dist/repositories/deviceStatus/getDeviceStatuses.js.map +0 -1
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js +0 -42
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js.map +0 -1
- package/dist/repositories/deviceStatus/index.js +0 -63
- package/dist/repositories/deviceStatus/index.js.map +0 -1
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js +0 -47
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js.map +0 -1
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js +0 -20
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js.map +0 -1
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js +0 -22
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js.map +0 -1
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js +0 -25
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js.map +0 -1
- package/dist/repositories/deviceTypeFeature/index.js +0 -48
- package/dist/repositories/deviceTypeFeature/index.js.map +0 -1
- package/dist/repositories/devices/addDeviceChangesHistory.js +0 -35
- package/dist/repositories/devices/addDeviceChangesHistory.js.map +0 -1
- package/dist/repositories/devices/allImeisAreActiveForClient.js +0 -30
- package/dist/repositories/devices/allImeisAreActiveForClient.js.map +0 -1
- package/dist/repositories/devices/createClientDeviceSetting.js +0 -27
- package/dist/repositories/devices/createClientDeviceSetting.js.map +0 -1
- package/dist/repositories/devices/createDevice.js +0 -31
- package/dist/repositories/devices/createDevice.js.map +0 -1
- package/dist/repositories/devices/createDeviceReplacement.js +0 -35
- package/dist/repositories/devices/createDeviceReplacement.js.map +0 -1
- package/dist/repositories/devices/createDeviceType.js +0 -16
- package/dist/repositories/devices/createDeviceType.js.map +0 -1
- package/dist/repositories/devices/createImeiIccidCarrier.js +0 -19
- package/dist/repositories/devices/createImeiIccidCarrier.js.map +0 -1
- package/dist/repositories/devices/deleteDevice.js +0 -17
- package/dist/repositories/devices/deleteDevice.js.map +0 -1
- package/dist/repositories/devices/generateDeviceIdentifierKey.js +0 -19
- package/dist/repositories/devices/generateDeviceIdentifierKey.js.map +0 -1
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +0 -50
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js.map +0 -1
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +0 -46
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js.map +0 -1
- package/dist/repositories/devices/getClientDeviceSetting.js +0 -26
- package/dist/repositories/devices/getClientDeviceSetting.js.map +0 -1
- package/dist/repositories/devices/getClientDeviceSettings.js +0 -23
- package/dist/repositories/devices/getClientDeviceSettings.js.map +0 -1
- package/dist/repositories/devices/getDevice.js +0 -39
- package/dist/repositories/devices/getDevice.js.map +0 -1
- package/dist/repositories/devices/getDeviceChangesHistory.js +0 -28
- package/dist/repositories/devices/getDeviceChangesHistory.js.map +0 -1
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js +0 -24
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js.map +0 -1
- package/dist/repositories/devices/getDeviceCustomConfig.js +0 -43
- package/dist/repositories/devices/getDeviceCustomConfig.js.map +0 -1
- package/dist/repositories/devices/getDeviceTypeByImei.js +0 -24
- package/dist/repositories/devices/getDeviceTypeByImei.js.map +0 -1
- package/dist/repositories/devices/getDeviceTypes.js +0 -53
- package/dist/repositories/devices/getDeviceTypes.js.map +0 -1
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +0 -33
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js.map +0 -1
- package/dist/repositories/devices/getDeviceWithUsersInfo.js +0 -57
- package/dist/repositories/devices/getDeviceWithUsersInfo.js.map +0 -1
- package/dist/repositories/devices/getDevices.js +0 -95
- package/dist/repositories/devices/getDevices.js.map +0 -1
- package/dist/repositories/devices/getDevicesCountByStatus.js +0 -34
- package/dist/repositories/devices/getDevicesCountByStatus.js.map +0 -1
- package/dist/repositories/devices/getFilteredImeisWithStatus.js +0 -26
- package/dist/repositories/devices/getFilteredImeisWithStatus.js.map +0 -1
- package/dist/repositories/devices/getIccidStatus.js +0 -23
- package/dist/repositories/devices/getIccidStatus.js.map +0 -1
- package/dist/repositories/devices/getImeiIccidCarrier.js +0 -32
- package/dist/repositories/devices/getImeiIccidCarrier.js.map +0 -1
- package/dist/repositories/devices/getImeiIccidCarriers.js +0 -26
- package/dist/repositories/devices/getImeiIccidCarriers.js.map +0 -1
- package/dist/repositories/devices/getServiceProviderProduct.js +0 -23
- package/dist/repositories/devices/getServiceProviderProduct.js.map +0 -1
- package/dist/repositories/devices/index.js +0 -563
- package/dist/repositories/devices/index.js.map +0 -1
- package/dist/repositories/devices/updateClientDeviceSetting.js +0 -41
- package/dist/repositories/devices/updateClientDeviceSetting.js.map +0 -1
- package/dist/repositories/devices/updateDevice.js +0 -47
- package/dist/repositories/devices/updateDevice.js.map +0 -1
- package/dist/repositories/devices/updateDeviceType.js +0 -44
- package/dist/repositories/devices/updateDeviceType.js.map +0 -1
- package/dist/repositories/devices/updateIccidStatus.js +0 -29
- package/dist/repositories/devices/updateIccidStatus.js.map +0 -1
- package/dist/repositories/devices/updateImeiIccidCarrier.js +0 -44
- package/dist/repositories/devices/updateImeiIccidCarrier.js.map +0 -1
- package/dist/repositories/devices/upsertDeviceCustomConfig.js +0 -15
- package/dist/repositories/devices/upsertDeviceCustomConfig.js.map +0 -1
- package/dist/repositories/devices/upsertIccidStatus.js +0 -37
- package/dist/repositories/devices/upsertIccidStatus.js.map +0 -1
- package/dist/repositories/entityTags/bulkCreateEntityTag.js +0 -21
- package/dist/repositories/entityTags/bulkCreateEntityTag.js.map +0 -1
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js +0 -28
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js.map +0 -1
- package/dist/repositories/entityTags/createEntityTag.js +0 -20
- package/dist/repositories/entityTags/createEntityTag.js.map +0 -1
- package/dist/repositories/entityTags/deleteEntityTag.js +0 -22
- package/dist/repositories/entityTags/deleteEntityTag.js.map +0 -1
- package/dist/repositories/entityTags/deleteEntityTagById.js +0 -13
- package/dist/repositories/entityTags/deleteEntityTagById.js.map +0 -1
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js +0 -38
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js.map +0 -1
- package/dist/repositories/entityTags/getEntityTagById.js +0 -23
- package/dist/repositories/entityTags/getEntityTagById.js.map +0 -1
- package/dist/repositories/entityTags/index.js +0 -104
- package/dist/repositories/entityTags/index.js.map +0 -1
- package/dist/repositories/entityTags/searchEntityTags.js +0 -46
- package/dist/repositories/entityTags/searchEntityTags.js.map +0 -1
- package/dist/repositories/features/createFeature.js +0 -21
- package/dist/repositories/features/createFeature.js.map +0 -1
- package/dist/repositories/features/deleteFeature.js +0 -17
- package/dist/repositories/features/deleteFeature.js.map +0 -1
- package/dist/repositories/features/getFeatures.js +0 -25
- package/dist/repositories/features/getFeatures.js.map +0 -1
- package/dist/repositories/features/index.js +0 -61
- package/dist/repositories/features/index.js.map +0 -1
- package/dist/repositories/features/upsertFeature.js +0 -23
- package/dist/repositories/features/upsertFeature.js.map +0 -1
- package/dist/repositories/firmwares/createDeviceFirmware.js +0 -38
- package/dist/repositories/firmwares/createDeviceFirmware.js.map +0 -1
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +0 -17
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js.map +0 -1
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +0 -37
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js.map +0 -1
- package/dist/repositories/firmwares/getDeviceFirmwares.js +0 -29
- package/dist/repositories/firmwares/getDeviceFirmwares.js.map +0 -1
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +0 -29
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js.map +0 -1
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +0 -111
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js.map +0 -1
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +0 -62
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js.map +0 -1
- package/dist/repositories/firmwares/index.js +0 -195
- package/dist/repositories/firmwares/index.js.map +0 -1
- package/dist/repositories/firmwares/updateDeviceFirmware.js +0 -42
- package/dist/repositories/firmwares/updateDeviceFirmware.js.map +0 -1
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +0 -38
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js.map +0 -1
- package/dist/repositories/index.js +0 -43
- package/dist/repositories/index.js.map +0 -1
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js +0 -27
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js.map +0 -1
- package/dist/repositories/latestUserAppInfo/index.js +0 -37
- package/dist/repositories/latestUserAppInfo/index.js.map +0 -1
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js +0 -29
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js.map +0 -1
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js +0 -39
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js.map +0 -1
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +0 -32
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js.map +0 -1
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +0 -29
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js.map +0 -1
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js +0 -36
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js.map +0 -1
- package/dist/repositories/notificationRecipients/index.js +0 -132
- package/dist/repositories/notificationRecipients/index.js.map +0 -1
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +0 -38
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js.map +0 -1
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +0 -99
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js.map +0 -1
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +0 -36
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js.map +0 -1
- package/dist/repositories/positions/createPosition.js +0 -103
- package/dist/repositories/positions/createPosition.js.map +0 -1
- package/dist/repositories/positions/getBatteryReportForDevice.js +0 -47
- package/dist/repositories/positions/getBatteryReportForDevice.js.map +0 -1
- package/dist/repositories/positions/getLatestPositionByImei.js +0 -33
- package/dist/repositories/positions/getLatestPositionByImei.js.map +0 -1
- package/dist/repositories/positions/getPositionsByImei.js +0 -30
- package/dist/repositories/positions/getPositionsByImei.js.map +0 -1
- package/dist/repositories/positions/getPositionsReportByClient.js +0 -96
- package/dist/repositories/positions/getPositionsReportByClient.js.map +0 -1
- package/dist/repositories/positions/index.js +0 -110
- package/dist/repositories/positions/index.js.map +0 -1
- package/dist/repositories/positions/mapping/mapToPositionReport.js +0 -21
- package/dist/repositories/positions/mapping/mapToPositionReport.js.map +0 -1
- package/dist/repositories/positions/upsertLatestPosition.js +0 -42
- package/dist/repositories/positions/upsertLatestPosition.js.map +0 -1
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js +0 -15
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js.map +0 -1
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js +0 -15
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js.map +0 -1
- package/dist/repositories/promotions/createPromotion.js +0 -30
- package/dist/repositories/promotions/createPromotion.js.map +0 -1
- package/dist/repositories/promotions/createPromotionHistory.js +0 -18
- package/dist/repositories/promotions/createPromotionHistory.js.map +0 -1
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js +0 -22
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js.map +0 -1
- package/dist/repositories/promotions/deleteMarketplacePromotion.js +0 -24
- package/dist/repositories/promotions/deleteMarketplacePromotion.js.map +0 -1
- package/dist/repositories/promotions/getDeviceTypePromotion.js +0 -28
- package/dist/repositories/promotions/getDeviceTypePromotion.js.map +0 -1
- package/dist/repositories/promotions/getMarketplacePromotion.js +0 -28
- package/dist/repositories/promotions/getMarketplacePromotion.js.map +0 -1
- package/dist/repositories/promotions/getPromotions.js +0 -64
- package/dist/repositories/promotions/getPromotions.js.map +0 -1
- package/dist/repositories/promotions/index.js +0 -140
- package/dist/repositories/promotions/index.js.map +0 -1
- package/dist/repositories/promotions/promotionValidator.js +0 -17
- package/dist/repositories/promotions/promotionValidator.js.map +0 -1
- package/dist/repositories/promotions/updatePromotion.js +0 -36
- package/dist/repositories/promotions/updatePromotion.js.map +0 -1
- package/dist/repositories/security/bulkCreateUserAuthorizedBoundaries.js +0 -19
- package/dist/repositories/security/bulkCreateUserAuthorizedBoundaries.js.map +0 -1
- package/dist/repositories/security/bulkCreateUserAuthorizedDevices.js +0 -19
- package/dist/repositories/security/bulkCreateUserAuthorizedDevices.js.map +0 -1
- package/dist/repositories/security/bulkRemoveUserAuthorizedBoundaries.js +0 -22
- package/dist/repositories/security/bulkRemoveUserAuthorizedBoundaries.js.map +0 -1
- package/dist/repositories/security/bulkRemoveUserAuthorizedDevices.js +0 -22
- package/dist/repositories/security/bulkRemoveUserAuthorizedDevices.js.map +0 -1
- package/dist/repositories/security/createUserRole.js +0 -31
- package/dist/repositories/security/createUserRole.js.map +0 -1
- package/dist/repositories/security/getAllRoles.js +0 -19
- package/dist/repositories/security/getAllRoles.js.map +0 -1
- package/dist/repositories/security/getAuthorizedBoundariesByUserId.js +0 -23
- package/dist/repositories/security/getAuthorizedBoundariesByUserId.js.map +0 -1
- package/dist/repositories/security/getAuthorizedDevicesByUserId.js +0 -26
- package/dist/repositories/security/getAuthorizedDevicesByUserId.js.map +0 -1
- package/dist/repositories/security/getUserRoles.js +0 -24
- package/dist/repositories/security/getUserRoles.js.map +0 -1
- package/dist/repositories/security/getUserRolesByClientId.js +0 -26
- package/dist/repositories/security/getUserRolesByClientId.js.map +0 -1
- package/dist/repositories/security/index.js +0 -160
- package/dist/repositories/security/index.js.map +0 -1
- package/dist/repositories/security/removeUserRoles.js +0 -22
- package/dist/repositories/security/removeUserRoles.js.map +0 -1
- package/dist/repositories/security/updateUserRole.js +0 -28
- package/dist/repositories/security/updateUserRole.js.map +0 -1
- package/dist/repositories/security/userIsAdminOrOwner.js +0 -26
- package/dist/repositories/security/userIsAdminOrOwner.js.map +0 -1
- package/dist/repositories/security/userIsInRole.js +0 -23
- package/dist/repositories/security/userIsInRole.js.map +0 -1
- package/dist/repositories/tags/bulkCreateTags.js +0 -25
- package/dist/repositories/tags/bulkCreateTags.js.map +0 -1
- package/dist/repositories/tags/createTag.js +0 -21
- package/dist/repositories/tags/createTag.js.map +0 -1
- package/dist/repositories/tags/deleteTag.js +0 -20
- package/dist/repositories/tags/deleteTag.js.map +0 -1
- package/dist/repositories/tags/index.js +0 -83
- package/dist/repositories/tags/index.js.map +0 -1
- package/dist/repositories/tags/searchTags.js +0 -44
- package/dist/repositories/tags/searchTags.js.map +0 -1
- package/dist/repositories/tags/searchTagsByUser.js +0 -46
- package/dist/repositories/tags/searchTagsByUser.js.map +0 -1
- package/dist/repositories/tags/updateTag.js +0 -32
- package/dist/repositories/tags/updateTag.js.map +0 -1
- package/dist/repositories/tasks/addTaskScheduleDevices.js +0 -38
- package/dist/repositories/tasks/addTaskScheduleDevices.js.map +0 -1
- package/dist/repositories/tasks/completeTask.js +0 -35
- package/dist/repositories/tasks/completeTask.js.map +0 -1
- package/dist/repositories/tasks/createTask.js +0 -23
- package/dist/repositories/tasks/createTask.js.map +0 -1
- package/dist/repositories/tasks/createTaskSchedule.js +0 -34
- package/dist/repositories/tasks/createTaskSchedule.js.map +0 -1
- package/dist/repositories/tasks/deleteTask.js +0 -23
- package/dist/repositories/tasks/deleteTask.js.map +0 -1
- package/dist/repositories/tasks/deleteTaskSchedule.js +0 -23
- package/dist/repositories/tasks/deleteTaskSchedule.js.map +0 -1
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js +0 -18
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js.map +0 -1
- package/dist/repositories/tasks/getDeviceTasks.js +0 -34
- package/dist/repositories/tasks/getDeviceTasks.js.map +0 -1
- package/dist/repositories/tasks/getTaskSchedule.js +0 -43
- package/dist/repositories/tasks/getTaskSchedule.js.map +0 -1
- package/dist/repositories/tasks/getTaskSchedules.js +0 -105
- package/dist/repositories/tasks/getTaskSchedules.js.map +0 -1
- package/dist/repositories/tasks/getTaskSchedulesCount.js +0 -42
- package/dist/repositories/tasks/getTaskSchedulesCount.js.map +0 -1
- package/dist/repositories/tasks/getTasks.js +0 -94
- package/dist/repositories/tasks/getTasks.js.map +0 -1
- package/dist/repositories/tasks/getTasksCount.js +0 -36
- package/dist/repositories/tasks/getTasksCount.js.map +0 -1
- package/dist/repositories/tasks/index.js +0 -444
- package/dist/repositories/tasks/index.js.map +0 -1
- package/dist/repositories/tasks/setTaskAsPastDue.js +0 -24
- package/dist/repositories/tasks/setTaskAsPastDue.js.map +0 -1
- package/dist/repositories/tasks/setTaskScheduleDevices.js +0 -44
- package/dist/repositories/tasks/setTaskScheduleDevices.js.map +0 -1
- package/dist/repositories/tasks/updateTask.js +0 -22
- package/dist/repositories/tasks/updateTask.js.map +0 -1
- package/dist/repositories/tasks/updateTaskSchedule.js +0 -36
- package/dist/repositories/tasks/updateTaskSchedule.js.map +0 -1
- package/dist/repositories/trips/createTrip.js +0 -30
- package/dist/repositories/trips/createTrip.js.map +0 -1
- package/dist/repositories/trips/getDeviceTripConfiguration.js +0 -52
- package/dist/repositories/trips/getDeviceTripConfiguration.js.map +0 -1
- package/dist/repositories/trips/getTripById.js +0 -22
- package/dist/repositories/trips/getTripById.js.map +0 -1
- package/dist/repositories/trips/getTrips.js +0 -125
- package/dist/repositories/trips/getTrips.js.map +0 -1
- package/dist/repositories/trips/index.js +0 -78
- package/dist/repositories/trips/index.js.map +0 -1
- package/dist/repositories/trips/updateTripEndValues.js +0 -37
- package/dist/repositories/trips/updateTripEndValues.js.map +0 -1
- package/dist/repositories/trips/upsertTrip.js +0 -32
- package/dist/repositories/trips/upsertTrip.js.map +0 -1
- package/dist/repositories/userActivations/createUserActivation.js +0 -27
- package/dist/repositories/userActivations/createUserActivation.js.map +0 -1
- package/dist/repositories/userActivations/createUserActivationDevice.js +0 -36
- package/dist/repositories/userActivations/createUserActivationDevice.js.map +0 -1
- package/dist/repositories/userActivations/createUserActivationEvent.js +0 -35
- package/dist/repositories/userActivations/createUserActivationEvent.js.map +0 -1
- package/dist/repositories/userActivations/createUserActivationMetric.js +0 -29
- package/dist/repositories/userActivations/createUserActivationMetric.js.map +0 -1
- package/dist/repositories/userActivations/deleteUserActivation.js +0 -23
- package/dist/repositories/userActivations/deleteUserActivation.js.map +0 -1
- package/dist/repositories/userActivations/getLastActivationDevice.js +0 -32
- package/dist/repositories/userActivations/getLastActivationDevice.js.map +0 -1
- package/dist/repositories/userActivations/getUserActivationById.js +0 -22
- package/dist/repositories/userActivations/getUserActivationById.js.map +0 -1
- package/dist/repositories/userActivations/getUserActivationDevices.js +0 -30
- package/dist/repositories/userActivations/getUserActivationDevices.js.map +0 -1
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +0 -31
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js.map +0 -1
- package/dist/repositories/userActivations/getUserActivationMetrics.js +0 -30
- package/dist/repositories/userActivations/getUserActivationMetrics.js.map +0 -1
- package/dist/repositories/userActivations/getUserActivations.js +0 -35
- package/dist/repositories/userActivations/getUserActivations.js.map +0 -1
- package/dist/repositories/userActivations/index.js +0 -238
- package/dist/repositories/userActivations/index.js.map +0 -1
- package/dist/repositories/userActivations/updateUserActivationDevice.js +0 -40
- package/dist/repositories/userActivations/updateUserActivationDevice.js.map +0 -1
- package/dist/repositories/userActivations/updateUserActivationMetrics.js +0 -62
- package/dist/repositories/userActivations/updateUserActivationMetrics.js.map +0 -1
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js +0 -27
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js.map +0 -1
- package/dist/repositories/userAppFeedback/index.js +0 -24
- package/dist/repositories/userAppFeedback/index.js.map +0 -1
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js +0 -34
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js.map +0 -1
- package/dist/repositories/userAppIncidents/index.js +0 -64
- package/dist/repositories/userAppIncidents/index.js.map +0 -1
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +0 -54
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js.map +0 -1
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +0 -46
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js.map +0 -1
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js +0 -34
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js.map +0 -1
- package/dist/repositories/userConfigurations/createUserConfiguration.js +0 -35
- package/dist/repositories/userConfigurations/createUserConfiguration.js.map +0 -1
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +0 -30
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js.map +0 -1
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js +0 -30
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js.map +0 -1
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js +0 -24
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js.map +0 -1
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +0 -34
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js.map +0 -1
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js +0 -149
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js.map +0 -1
- package/dist/repositories/userConfigurations/getUserConfigurations.js +0 -37
- package/dist/repositories/userConfigurations/getUserConfigurations.js.map +0 -1
- package/dist/repositories/userConfigurations/index.js +0 -261
- package/dist/repositories/userConfigurations/index.js.map +0 -1
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +0 -47
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js.map +0 -1
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js +0 -53
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js.map +0 -1
- package/dist/repositories/userConfigurations/updateUserConfiguration.js +0 -50
- package/dist/repositories/userConfigurations/updateUserConfiguration.js.map +0 -1
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js +0 -30
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js.map +0 -1
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +0 -29
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js.map +0 -1
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +0 -35
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js.map +0 -1
- package/dist/repositories/userDataDeletionRequests/index.js +0 -67
- package/dist/repositories/userDataDeletionRequests/index.js.map +0 -1
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +0 -18
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js.map +0 -1
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +0 -39
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js.map +0 -1
- package/dist/repositories/userInvitations/createUserInvitation.js +0 -25
- package/dist/repositories/userInvitations/createUserInvitation.js.map +0 -1
- package/dist/repositories/userInvitations/getUserInvitationById.js +0 -28
- package/dist/repositories/userInvitations/getUserInvitationById.js.map +0 -1
- package/dist/repositories/userInvitations/getUserInvitations.js +0 -56
- package/dist/repositories/userInvitations/getUserInvitations.js.map +0 -1
- package/dist/repositories/userInvitations/index.js +0 -86
- package/dist/repositories/userInvitations/index.js.map +0 -1
- package/dist/repositories/userInvitations/updateUserInvitation.js +0 -51
- package/dist/repositories/userInvitations/updateUserInvitation.js.map +0 -1
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js +0 -35
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js.map +0 -1
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js +0 -29
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js.map +0 -1
- package/dist/repositories/userRatingRequests/index.js +0 -42
- package/dist/repositories/userRatingRequests/index.js.map +0 -1
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +0 -41
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js.map +0 -1
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +0 -35
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js.map +0 -1
- package/dist/repositories/userRegistrationAttempts/index.js +0 -71
- package/dist/repositories/userRegistrationAttempts/index.js.map +0 -1
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +0 -41
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js.map +0 -1
- package/dist/repositories/users/createUser.js +0 -48
- package/dist/repositories/users/createUser.js.map +0 -1
- package/dist/repositories/users/deleteAccount.js +0 -99
- package/dist/repositories/users/deleteAccount.js.map +0 -1
- package/dist/repositories/users/deleteUser.js +0 -23
- package/dist/repositories/users/deleteUser.js.map +0 -1
- package/dist/repositories/users/getUserById.js +0 -42
- package/dist/repositories/users/getUserById.js.map +0 -1
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js +0 -64
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js.map +0 -1
- package/dist/repositories/users/getUserData.js +0 -70
- package/dist/repositories/users/getUserData.js.map +0 -1
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js +0 -88
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js.map +0 -1
- package/dist/repositories/users/getUsers.js +0 -102
- package/dist/repositories/users/getUsers.js.map +0 -1
- package/dist/repositories/users/getUsersConfigurationByImei.js +0 -31
- package/dist/repositories/users/getUsersConfigurationByImei.js.map +0 -1
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +0 -27
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js.map +0 -1
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js +0 -101
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js.map +0 -1
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +0 -59
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js.map +0 -1
- package/dist/repositories/users/getUsersWithRoles.js +0 -40
- package/dist/repositories/users/getUsersWithRoles.js.map +0 -1
- package/dist/repositories/users/index.js +0 -252
- package/dist/repositories/users/index.js.map +0 -1
- package/dist/repositories/users/updateUser.js +0 -110
- package/dist/repositories/users/updateUser.js.map +0 -1
- package/dist/subscribers/allEntitiesSubscriber.js +0 -53
- package/dist/subscribers/allEntitiesSubscriber.js.map +0 -1
- package/dist/subscribers/index.js +0 -3
- package/dist/subscribers/index.js.map +0 -1
- package/dist/types/acumatica.js +0 -2
- package/dist/types/acumatica.js.map +0 -1
- package/dist/types/aempToken.js +0 -2
- package/dist/types/aempToken.js.map +0 -1
- package/dist/types/alert.js +0 -2
- package/dist/types/alert.js.map +0 -1
- package/dist/types/alertTypes.js +0 -2
- package/dist/types/alertTypes.js.map +0 -1
- package/dist/types/appFeatures.js +0 -2
- package/dist/types/appFeatures.js.map +0 -1
- package/dist/types/billing.js +0 -2
- package/dist/types/billing.js.map +0 -1
- package/dist/types/blacklist.js +0 -2
- package/dist/types/blacklist.js.map +0 -1
- package/dist/types/bleMesh.js +0 -2
- package/dist/types/bleMesh.js.map +0 -1
- package/dist/types/bleMeshConfiguration.js +0 -2
- package/dist/types/bleMeshConfiguration.js.map +0 -1
- package/dist/types/boundaries.js +0 -2
- package/dist/types/boundaries.js.map +0 -1
- package/dist/types/clientAlertConfiguration.js +0 -2
- package/dist/types/clientAlertConfiguration.js.map +0 -1
- package/dist/types/clients.js +0 -35
- package/dist/types/clients.js.map +0 -1
- package/dist/types/common.js +0 -2
- package/dist/types/common.js.map +0 -1
- package/dist/types/countries.js +0 -2
- package/dist/types/countries.js.map +0 -1
- package/dist/types/dataExports.js +0 -2
- package/dist/types/dataExports.js.map +0 -1
- package/dist/types/deactivations.js +0 -2
- package/dist/types/deactivations.js.map +0 -1
- package/dist/types/deviceBehaviors.js +0 -2
- package/dist/types/deviceBehaviors.js.map +0 -1
- package/dist/types/devicePairings.js +0 -2
- package/dist/types/devicePairings.js.map +0 -1
- package/dist/types/deviceStatus.js +0 -2
- package/dist/types/deviceStatus.js.map +0 -1
- package/dist/types/deviceTypeFeature.js +0 -4
- package/dist/types/deviceTypeFeature.js.map +0 -1
- package/dist/types/devices.js +0 -25
- package/dist/types/devices.js.map +0 -1
- package/dist/types/entitiesTags.js +0 -26
- package/dist/types/entitiesTags.js.map +0 -1
- package/dist/types/enums.js +0 -109
- package/dist/types/enums.js.map +0 -1
- package/dist/types/feature.js +0 -3
- package/dist/types/feature.js.map +0 -1
- package/dist/types/firmwares.js +0 -18
- package/dist/types/firmwares.js.map +0 -1
- package/dist/types/index.js +0 -39
- package/dist/types/index.js.map +0 -1
- package/dist/types/latestUserAppInfo.js +0 -2
- package/dist/types/latestUserAppInfo.js.map +0 -1
- package/dist/types/liveLinks.js +0 -2
- package/dist/types/liveLinks.js.map +0 -1
- package/dist/types/logger.js +0 -10
- package/dist/types/logger.js.map +0 -1
- package/dist/types/notificationRecipients.js +0 -2
- package/dist/types/notificationRecipients.js.map +0 -1
- package/dist/types/position.js +0 -2
- package/dist/types/position.js.map +0 -1
- package/dist/types/promotion.js +0 -42
- package/dist/types/promotion.js.map +0 -1
- package/dist/types/security.js +0 -4
- package/dist/types/security.js.map +0 -1
- package/dist/types/tag.js +0 -15
- package/dist/types/tag.js.map +0 -1
- package/dist/types/tasks.js +0 -2
- package/dist/types/tasks.js.map +0 -1
- package/dist/types/trip.js +0 -31
- package/dist/types/trip.js.map +0 -1
- package/dist/types/user.js +0 -2
- package/dist/types/user.js.map +0 -1
- package/dist/types/userActivations.js +0 -2
- package/dist/types/userActivations.js.map +0 -1
- package/dist/types/userAppFeedback.js +0 -2
- package/dist/types/userAppFeedback.js.map +0 -1
- package/dist/types/userAppIncidents.js +0 -2
- package/dist/types/userAppIncidents.js.map +0 -1
- package/dist/types/userConfigurations.js +0 -2
- package/dist/types/userConfigurations.js.map +0 -1
- package/dist/types/userDataDeletionRequests.js +0 -2
- package/dist/types/userDataDeletionRequests.js.map +0 -1
- package/dist/types/userInvitations.js +0 -2
- package/dist/types/userInvitations.js.map +0 -1
- package/dist/types/userRatingRequests.js +0 -2
- package/dist/types/userRatingRequests.js.map +0 -1
- package/dist/types/userRegistrationAttempts.js +0 -2
- package/dist/types/userRegistrationAttempts.js.map +0 -1
- package/dist/utils/anyAttributeHasValue.js +0 -21
- package/dist/utils/anyAttributeHasValue.js.map +0 -1
- package/dist/utils/billingPlansHelper.js +0 -50
- package/dist/utils/billingPlansHelper.js.map +0 -1
- package/dist/utils/boolToNumberTransformer.js +0 -24
- package/dist/utils/boolToNumberTransformer.js.map +0 -1
- package/dist/utils/commaSeparatedTransformer.js +0 -58
- package/dist/utils/commaSeparatedTransformer.js.map +0 -1
- package/dist/utils/consoleLogger.js +0 -43
- package/dist/utils/consoleLogger.js.map +0 -1
- package/dist/utils/dateTool.js +0 -9
- package/dist/utils/dateTool.js.map +0 -1
- package/dist/utils/filterTools.js +0 -300
- package/dist/utils/filterTools.js.map +0 -1
- package/dist/utils/mapRawEntityToEntity.js +0 -13
- package/dist/utils/mapRawEntityToEntity.js.map +0 -1
- package/dist/utils/paramsValidators.js +0 -17
- package/dist/utils/paramsValidators.js.map +0 -1
- package/dist/utils/parsingTools.js +0 -22
- package/dist/utils/parsingTools.js.map +0 -1
- package/dist/utils/queryLogger.js +0 -49
- package/dist/utils/queryLogger.js.map +0 -1
- package/dist/utils/randomizer.js +0 -40
- package/dist/utils/randomizer.js.map +0 -1
- package/dist/utils/stringToDateTransformer.js +0 -17
- package/dist/utils/stringToDateTransformer.js.map +0 -1
- package/dist/utils/uuidHelpers.js +0 -31
- package/dist/utils/uuidHelpers.js.map +0 -1
- package/dist/utils/uuidTransformer.js +0 -40
- package/dist/utils/uuidTransformer.js.map +0 -1
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Position } from '../../entities/position';
|
|
2
|
-
import { mapToPositionReport } from './mapping/mapToPositionReport';
|
|
3
|
-
export const getPositionsReportByClient = async (novaDataSource, params, logger) => {
|
|
4
|
-
if (!params.filters.clientId) {
|
|
5
|
-
return [];
|
|
6
|
-
}
|
|
7
|
-
// Force the query to run on master or slave
|
|
8
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
9
|
-
try {
|
|
10
|
-
await novaDataSource.connect();
|
|
11
|
-
const positionsRepository = novaDataSource.getRepository(Position);
|
|
12
|
-
let positionsQuery = positionsRepository
|
|
13
|
-
.createQueryBuilder('p')
|
|
14
|
-
.setQueryRunner(dbQueryRunner)
|
|
15
|
-
.where('p.clientId = :clientId', { clientId: params.filters.clientId });
|
|
16
|
-
if (params.filters.imeis) {
|
|
17
|
-
positionsQuery = positionsQuery.andWhere('p.imei IN (:...imeis)', {
|
|
18
|
-
imeis: params.filters.imeis,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
if (params.filters.actualDateFrom) {
|
|
22
|
-
positionsQuery = positionsQuery.andWhere('p.actualDate >= :actualDateFrom', {
|
|
23
|
-
actualDateFrom: params.filters.actualDateFrom,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
if (params.filters.actualDateTo) {
|
|
27
|
-
positionsQuery = positionsQuery.andWhere('p.actualDate <= :actualDateTo', {
|
|
28
|
-
actualDateTo: params.filters.actualDateTo,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
if (params.filters.speedMin) {
|
|
32
|
-
positionsQuery = positionsQuery.andWhere('p.speed >= :speedMin', {
|
|
33
|
-
speedMin: params.filters.speedMin,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
if (params.filters.speedMax) {
|
|
37
|
-
positionsQuery = positionsQuery.andWhere('p.speed <= :speedMax', {
|
|
38
|
-
speedMax: params.filters.speedMax,
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
if (params.filters.odometerMin) {
|
|
42
|
-
positionsQuery = positionsQuery.andWhere('p.odometer >= :odometerMin', {
|
|
43
|
-
odometerMin: params.filters.odometerMin,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
if (params.filters.odometerMax) {
|
|
47
|
-
positionsQuery = positionsQuery.andWhere('p.odometer <= :odometerMax', {
|
|
48
|
-
odometerMax: params.filters.odometerMax,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const subQuery = positionsQuery.clone().select('COUNT(p.id)', 'totalCount');
|
|
52
|
-
if (params.filters.imeis?.length) {
|
|
53
|
-
positionsQuery.useIndex('ixPositionClientId_Imei_ActualDate');
|
|
54
|
-
subQuery.useIndex('ixPositionClientId_Imei_ActualDate');
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
positionsQuery.useIndex('ixPositionClientId_ActualDate');
|
|
58
|
-
subQuery.useIndex('ixPositionClientId_ActualDate');
|
|
59
|
-
}
|
|
60
|
-
positionsQuery.innerJoin(`(${subQuery.getQuery()})`, 'sub');
|
|
61
|
-
if (params.sortOptions?.sortField) {
|
|
62
|
-
positionsQuery.orderBy(params.sortOptions.sortField, params.sortOptions.sortOrder);
|
|
63
|
-
}
|
|
64
|
-
const positions = await positionsQuery
|
|
65
|
-
.select([
|
|
66
|
-
'p.imei as imei',
|
|
67
|
-
'p.createdAt as createdAt',
|
|
68
|
-
'p.actualDate as actualDate',
|
|
69
|
-
'p.lat as lat',
|
|
70
|
-
'p.lon as lon',
|
|
71
|
-
'p.messageId as messageId',
|
|
72
|
-
'p.sendTime as sendTime',
|
|
73
|
-
'p.address as address',
|
|
74
|
-
'p.speed as speed',
|
|
75
|
-
'p.odometer as odometer',
|
|
76
|
-
'p.batteryPercentage as batteryPercentage',
|
|
77
|
-
'p.externalPowerVoltage as externalPowerVoltage',
|
|
78
|
-
'p.externalBatteryPercentage as externalBatteryPercentage',
|
|
79
|
-
'p.azimuth as azimuth',
|
|
80
|
-
`sub.totalCount as totalCount`,
|
|
81
|
-
])
|
|
82
|
-
.limit(params.pagingOptions.pageSize)
|
|
83
|
-
.offset(params.pagingOptions.pageSize * params.pagingOptions.pageIndex)
|
|
84
|
-
.getRawMany();
|
|
85
|
-
return positions.map(mapToPositionReport);
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
logger.error({ error }, 'PositionsRepository::GetPositionsReportByClientId error');
|
|
89
|
-
throw error;
|
|
90
|
-
}
|
|
91
|
-
finally {
|
|
92
|
-
await dbQueryRunner.release();
|
|
93
|
-
await novaDataSource.disconnect();
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=getPositionsReportByClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPositionsReportByClient.js","sourceRoot":"","sources":["../../../src/repositories/positions/getPositionsReportByClient.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { BaseRepository } from '../baseRepository';
|
|
3
|
-
import { createPosition, upsertPositions } from './createPosition';
|
|
4
|
-
import { getBatteryReportForDevice } from './getBatteryReportForDevice';
|
|
5
|
-
import { getLatestPositionByImei } from './getLatestPositionByImei';
|
|
6
|
-
import { getPositionsByImei } from './getPositionsByImei';
|
|
7
|
-
import { getPositionsReportByClient } from './getPositionsReportByClient';
|
|
8
|
-
export class PositionRepository extends BaseRepository {
|
|
9
|
-
/**
|
|
10
|
-
* Create a position
|
|
11
|
-
* @param {CreatePositionParams} params containing information to create a position
|
|
12
|
-
* - id: position id. if null will be generated
|
|
13
|
-
* - imei: imei of the device reporting the position
|
|
14
|
-
* - lat: the latitude of the position
|
|
15
|
-
* - lon: the longitude of the position
|
|
16
|
-
* - actualDate: the actual date of the message
|
|
17
|
-
* - speed: the speed reported by the device
|
|
18
|
-
* - odometer: the odometer reported by the device
|
|
19
|
-
* - messageId: the id of the message
|
|
20
|
-
* - batteryPercentage: the battery percentage reported by the device
|
|
21
|
-
* - clientId: the client id of owner of the device
|
|
22
|
-
* - address: the address of the position
|
|
23
|
-
* - sendTime: the time the message was sent
|
|
24
|
-
* - gpsUtcTime: the time the gps was set
|
|
25
|
-
* - externalBatteryPercentage: the external battery percentage reported by the device
|
|
26
|
-
*/
|
|
27
|
-
async createPosition(params) {
|
|
28
|
-
this.logger.trace(params, `PositionsRepository::this.createPosition started with params`);
|
|
29
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
30
|
-
const result = await createPosition(novaDataSource, params, this.logger);
|
|
31
|
-
this.logger.trace(result, 'PositionsRepository::insertPositions result');
|
|
32
|
-
return result;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Create a position
|
|
36
|
-
* @param {CreatePositionParams[]} params array containing information to create a positions
|
|
37
|
-
* - id: position id. if null will be generated
|
|
38
|
-
* - imei: imei of the device reporting the position
|
|
39
|
-
* - lat: the latitude of the position
|
|
40
|
-
* - lon: the longitude of the position
|
|
41
|
-
* - actualDate: the actual date of the message
|
|
42
|
-
* - speed: the speed reported by the device
|
|
43
|
-
* - odometer: the odometer reported by the device
|
|
44
|
-
* - messageId: the id of the message
|
|
45
|
-
* - batteryPercentage: the battery percentage reported by the device
|
|
46
|
-
* - clientId: the client id of owner of the device
|
|
47
|
-
* - address: the address of the position
|
|
48
|
-
* - sendTime: the time the message was sent
|
|
49
|
-
* - gpsUtcTime: the time the gps was set
|
|
50
|
-
* - externalBatteryPercentage: the external battery percentage reported by the device
|
|
51
|
-
* @returns {Position[]} the created positions
|
|
52
|
-
*/
|
|
53
|
-
async upsertPositions(params) {
|
|
54
|
-
this.logger.trace(params, `PositionsRepository::this.createPosition started with params`);
|
|
55
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
56
|
-
const result = await upsertPositions(novaDataSource, params, this.logger);
|
|
57
|
-
this.logger.trace({ length: result.length }, 'PositionsRepository::insertPositions result');
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Get positions by imei
|
|
62
|
-
* @param {GetPositionsByImeiParams} params containing information to get positions
|
|
63
|
-
* - filters.imei: filters by imei to get positions
|
|
64
|
-
*/
|
|
65
|
-
async getPositionsByImei(params) {
|
|
66
|
-
this.logger.trace(params, `PositionsRepository::this.getPositionsByImei started with params`);
|
|
67
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
68
|
-
const result = await getPositionsByImei(novaDataSource, params, this.logger);
|
|
69
|
-
this.logger.trace({ length: result.length }, 'PositionsRepository::getPositionsByImei result');
|
|
70
|
-
return result;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Get positions report by client id
|
|
74
|
-
* @param {GetPositionsReportByClientParams} params containing information to get positions
|
|
75
|
-
* - filters.clientId: filters by client id to get positions
|
|
76
|
-
* - filters.imeis: filters by imeis to get positions
|
|
77
|
-
* - filters.actualDateFrom: filters by actual date from to get positions
|
|
78
|
-
* - filters.actualDateTo: filters by actual date to to get positions
|
|
79
|
-
* - filters.speedMin: filters by speed min to get positions
|
|
80
|
-
* - filters.speedMax: filters by speed max to get positions
|
|
81
|
-
* - filters.odometerMin: filters by odometer min to get positions
|
|
82
|
-
* - filters.odometerMax: filters by odometer max to get positions
|
|
83
|
-
* - pagingOptions.pageSize: the page size
|
|
84
|
-
* - pagingOptions.pageIndex: the page index
|
|
85
|
-
* - sortOptions.sortField: the sort field
|
|
86
|
-
* - sortOptions.sortOrder: the sort order
|
|
87
|
-
*/
|
|
88
|
-
async getPositionsReportByClient(params) {
|
|
89
|
-
this.logger.trace(params, `PositionsRepository::getPositionsReportByClientId started with params`);
|
|
90
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
91
|
-
const result = await getPositionsReportByClient(novaDataSource, params, this.logger);
|
|
92
|
-
this.logger.trace({ length: result.length }, 'PositionsRepository::getPositionsReportByClientId result');
|
|
93
|
-
return result;
|
|
94
|
-
}
|
|
95
|
-
async getLatestPositionByImei(params) {
|
|
96
|
-
this.logger.trace(params, `PositionsRepository::this.getLatestPositionByImei started with params`);
|
|
97
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
98
|
-
const result = await getLatestPositionByImei(novaDataSource, params, this.logger);
|
|
99
|
-
this.logger.trace(result, 'PositionsRepository::getLatestPositionByImei result');
|
|
100
|
-
return result;
|
|
101
|
-
}
|
|
102
|
-
async getBatteryReportForDevice(params) {
|
|
103
|
-
this.logger.trace(params, `PositionsRepository::getBatteryReportForDevice started with params`);
|
|
104
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
105
|
-
const result = await getBatteryReportForDevice(novaDataSource, params, this.logger);
|
|
106
|
-
this.logger.trace(result, 'PositionsRepository::getLatestPositionByImei result');
|
|
107
|
-
return result;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/positions/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { binaryBufferToUuidString } from '../../../utils/uuidHelpers';
|
|
2
|
-
export const mapToPositionReport = (position) => {
|
|
3
|
-
return {
|
|
4
|
-
imei: position.imei,
|
|
5
|
-
createdAt: position.createdAt,
|
|
6
|
-
actualDate: position.actualDate,
|
|
7
|
-
sendTime: position.sendTime,
|
|
8
|
-
messageId: binaryBufferToUuidString(position.messageId),
|
|
9
|
-
lat: position.lat,
|
|
10
|
-
lon: position.lon,
|
|
11
|
-
azimuth: position.azimuth ?? 0,
|
|
12
|
-
address: position.address,
|
|
13
|
-
speed: position.speed,
|
|
14
|
-
odometer: position.odometer,
|
|
15
|
-
batteryPercentage: position.batteryPercentage,
|
|
16
|
-
externalPowerVoltage: position.externalPowerVoltage,
|
|
17
|
-
externalBatteryPercentage: position.externalBatteryPercentage,
|
|
18
|
-
totalCount: position.totalCount,
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=mapToPositionReport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapToPositionReport.js","sourceRoot":"","sources":["../../../../src/repositories/positions/mapping/mapToPositionReport.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAErE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,QAA2C,EAC3B,EAAE;IAClB,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,SAAS,EAAE,wBAAwB,CAAC,QAAQ,CAAC,SAAS,CAAC;QACvD,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,OAAO,EAAE,QAAQ,CAAC,OAAO,IAAI,CAAC;QAC9B,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;QAC7C,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB;QACnD,yBAAyB,EAAE,QAAQ,CAAC,yBAAyB;QAC7D,UAAU,EAAE,QAAQ,CAAC,UAAU;KAChC,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { LatestPosition } from '../../entities';
|
|
2
|
-
export const upsertLatestPosition = async (novaDataSource, position, logger) => {
|
|
3
|
-
if (!position?.id || !position?.imei) {
|
|
4
|
-
return false;
|
|
5
|
-
}
|
|
6
|
-
const latestPositionsRepository = novaDataSource.getRepository(LatestPosition);
|
|
7
|
-
try {
|
|
8
|
-
const { id, ...rest } = position;
|
|
9
|
-
const queryBuilder = latestPositionsRepository.createQueryBuilder();
|
|
10
|
-
const insertResult = await queryBuilder
|
|
11
|
-
.insert()
|
|
12
|
-
.into(LatestPosition)
|
|
13
|
-
.values({
|
|
14
|
-
...rest,
|
|
15
|
-
positionId: id,
|
|
16
|
-
})
|
|
17
|
-
.orIgnore()
|
|
18
|
-
.execute();
|
|
19
|
-
if (insertResult.raw.affectedRows > 0) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
const updateResult = await queryBuilder
|
|
23
|
-
.update(LatestPosition)
|
|
24
|
-
.set({
|
|
25
|
-
...rest,
|
|
26
|
-
positionId: id,
|
|
27
|
-
})
|
|
28
|
-
.where(`imei = :imei`, {
|
|
29
|
-
imei: position.imei,
|
|
30
|
-
})
|
|
31
|
-
.andWhere(`positionId < :positionId`, {
|
|
32
|
-
positionId: position.id,
|
|
33
|
-
})
|
|
34
|
-
.execute();
|
|
35
|
-
return updateResult.affected > 0;
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
logger.warn(error, `PositionsRepository::upsertLatestPosition error`);
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=upsertLatestPosition.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertLatestPosition.js","sourceRoot":"","sources":["../../../src/repositories/positions/upsertLatestPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAY,MAAM,gBAAgB,CAAA;AAIzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,cAA8B,EAC9B,QAAkB,EAClB,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE;QACpC,OAAO,KAAK,CAAA;KACb;IAED,MAAM,yBAAyB,GAAG,cAAc,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IAE9E,IAAI;QACF,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAA;QAEhC,MAAM,YAAY,GAAG,yBAAyB,CAAC,kBAAkB,EAAE,CAAA;QAEnE,MAAM,YAAY,GAAG,MAAM,YAAY;aACpC,MAAM,EAAE;aACR,IAAI,CAAC,cAAc,CAAC;aACpB,MAAM,CAAC;YACN,GAAG,IAAI;YACP,UAAU,EAAE,EAAE;SACf,CAAC;aACD,QAAQ,EAAE;aACV,OAAO,EAAE,CAAA;QAEZ,IAAI,YAAY,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,EAAE;YACrC,OAAO,IAAI,CAAA;SACZ;QAED,MAAM,YAAY,GAAG,MAAM,YAAY;aACpC,MAAM,CAAC,cAAc,CAAC;aACtB,GAAG,CAAC;YACH,GAAG,IAAI;YACP,UAAU,EAAE,EAAE;SACf,CAAC;aACD,KAAK,CAAC,cAAc,EAAE;YACrB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB,CAAC;aACD,QAAQ,CAAC,0BAA0B,EAAE;YACpC,UAAU,EAAE,QAAQ,CAAC,EAAE;SACxB,CAAC;aACD,OAAO,EAAE,CAAA;QAEZ,OAAO,YAAY,CAAC,QAAQ,GAAG,CAAC,CAAA;KACjC;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,iDAAiD,CAAC,CAAA;QACrE,OAAO,KAAK,CAAA;KACb;AACH,CAAC,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DeviceTypePromotion } from '../../entities/deviceTypePromotion';
|
|
2
|
-
import { requiredCreateDeviceTypePromotionParams, } from '../../types/promotion';
|
|
3
|
-
import { anyAttributeInArrayIsNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const bulkInsertDeviceTypePromotion = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (anyAttributeInArrayIsNull(params.items, requiredCreateDeviceTypePromotionParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::createDeviceTypePromotion missing required parameters');
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
10
|
-
const deviceTypePromotionRepository = safeDataSource.getRepository(DeviceTypePromotion);
|
|
11
|
-
const createdDeviceTypePromotion = await deviceTypePromotionRepository.save(params.items);
|
|
12
|
-
return createdDeviceTypePromotion ?? [];
|
|
13
|
-
}, 'PromotionRepository::createDeviceTypePromotion error');
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=bulkInsertDeviceTypePromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bulkInsertDeviceTypePromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/bulkInsertDeviceTypePromotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AAGxE,OAAO,EAEL,uCAAuC,GACxC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAExE,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAK,EAChD,cAA8B,EAC9B,MAAuC,EACvC,MAAc,EACkB,EAAE;IAClC,IAAI,yBAAyB,CAAC,MAAM,CAAC,KAAK,EAAE,uCAAuC,CAAC,EAAE;QACpF,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,4EAA4E,CAC7E,CAAA;QACD,OAAO,EAAE,CAAA;KACV;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAEnE,EAAE;QACF,MAAM,6BAA6B,GAAG,cAAc,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;QAEvF,MAAM,0BAA0B,GAAG,MAAM,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAEzF,OAAO,0BAA0B,IAAI,EAAE,CAAA;IACzC,CAAC,EAAE,sDAAsD,CAAC,CAAA;AAC5D,CAAC,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { MarketplacePromotion } from '../../entities/marketplacePromotion';
|
|
2
|
-
import { requiredCreateMarketplacePromotionParams, } from '../../types/promotion';
|
|
3
|
-
import { anyAttributeInArrayIsNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const bulkInsertMarketplacePromotion = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (anyAttributeInArrayIsNull(params.items, requiredCreateMarketplacePromotionParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::createMarketplacePromotion missing required parameters');
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
10
|
-
const marketplacePromotionRepository = safeDataSource.getRepository(MarketplacePromotion);
|
|
11
|
-
const createdMarketplacePromotion = await marketplacePromotionRepository.save(params.items);
|
|
12
|
-
return createdMarketplacePromotion ?? [];
|
|
13
|
-
}, 'PromotionRepository::createMarketplacePromotion error');
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=bulkInsertMarketplacePromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bulkInsertMarketplacePromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/bulkInsertMarketplacePromotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAG1E,OAAO,EAEL,wCAAwC,GACzC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAExE,MAAM,CAAC,MAAM,8BAA8B,GAAG,KAAK,EACjD,cAA8B,EAC9B,MAAwC,EACxC,MAAc,EACmB,EAAE;IACnC,IAAI,yBAAyB,CAAC,MAAM,CAAC,KAAK,EAAE,wCAAwC,CAAC,EAAE;QACrF,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,6EAA6E,CAC9E,CAAA;QACD,OAAO,EAAE,CAAA;KACV;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAEnE,EAAE;QACF,MAAM,8BAA8B,GAAG,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAA;QAEzF,MAAM,2BAA2B,GAAG,MAAM,8BAA8B,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAE3F,OAAO,2BAA2B,IAAI,EAAE,CAAA;IAC1C,CAAC,EAAE,uDAAuD,CAAC,CAAA;AAC7D,CAAC,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Promotion } from '../../entities';
|
|
2
|
-
import { requiredCreatePromotionParams } from '../../types/promotion';
|
|
3
|
-
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
-
import { invalidPromotion } from './promotionValidator';
|
|
5
|
-
export const createPromotion = async (novaDataSource, params, logger) => {
|
|
6
|
-
if (anyAttributeIsNull(params, requiredCreatePromotionParams) ||
|
|
7
|
-
invalidPromotion(params, logger)) {
|
|
8
|
-
logger.warn({ params }, 'PromotionRepository::createPromotion missing required parameters');
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
12
|
-
const promotionRepository = safeDataSource.getRepository(Promotion);
|
|
13
|
-
const newPromotion = {
|
|
14
|
-
bannerText: params.bannerText,
|
|
15
|
-
description: params.description,
|
|
16
|
-
discount: params.discount,
|
|
17
|
-
discountBillingCycles: params.discountBillingCycles,
|
|
18
|
-
endDate: params.endDate,
|
|
19
|
-
freeServiceMonths: params.freeServiceMonths,
|
|
20
|
-
name: params.name,
|
|
21
|
-
startDate: params.startDate,
|
|
22
|
-
status: params.status,
|
|
23
|
-
trackerText: params.trackerText,
|
|
24
|
-
type: params.type,
|
|
25
|
-
};
|
|
26
|
-
const createdPromotion = await promotionRepository.save(newPromotion);
|
|
27
|
-
return createdPromotion ?? null;
|
|
28
|
-
}, 'PromotionRepository::createPromotion error');
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=createPromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/createPromotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG1C,OAAO,EAAyB,6BAA6B,EAAE,MAAM,uBAAuB,CAAA;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,cAA8B,EAC9B,MAA6B,EAC7B,MAAc,EACM,EAAE;IACtB,IACE,kBAAkB,CAAwB,MAAM,EAAE,6BAA6B,CAAC;QAChF,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC;QACA,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,kEAAkE,CAAC,CAAA;QAC3F,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAAsB,EAAE;QAC3F,MAAM,mBAAmB,GAAG,cAAc,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEnE,MAAM,YAAY,GAAG;YACnB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;YACnD,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;YAC3C,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAA;QAED,MAAM,gBAAgB,GAAG,MAAM,mBAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;QAErE,OAAO,gBAAgB,IAAI,IAAI,CAAA;IACjC,CAAC,EAAE,4CAA4C,CAAC,CAAA;AAClD,CAAC,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PromotionHistory } from '../../entities';
|
|
2
|
-
import { requiredCreatePromotionHistoryParams, } from '../../types/promotion';
|
|
3
|
-
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const createPromotionHistory = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (anyAttributeIsNull(params, requiredCreatePromotionHistoryParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::createPromotionHistory missing required parameters');
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
10
|
-
const promotionRepository = safeDataSource.getRepository(PromotionHistory);
|
|
11
|
-
const newPromotionHistory = {
|
|
12
|
-
...params,
|
|
13
|
-
};
|
|
14
|
-
const createdPromotionHistory = await promotionRepository.save(newPromotionHistory);
|
|
15
|
-
return createdPromotionHistory ?? null;
|
|
16
|
-
}, 'PromotionRepository::createPromotionHistory error');
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=createPromotionHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPromotionHistory.js","sourceRoot":"","sources":["../../../src/repositories/promotions/createPromotionHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGjD,OAAO,EAEL,oCAAoC,GACrC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,cAA8B,EAC9B,MAAoC,EACpC,MAAc,EACa,EAAE;IAC7B,IACE,kBAAkB,CAA+B,MAAM,EAAE,oCAAoC,CAAC,EAC9F;QACA,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,yEAAyE,CAC1E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAEnE,EAAE;QACF,MAAM,mBAAmB,GAAG,cAAc,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAA;QAE1E,MAAM,mBAAmB,GAAG;YAC1B,GAAG,MAAM;SACV,CAAA;QAED,MAAM,uBAAuB,GAAG,MAAM,mBAAmB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;QAEnF,OAAO,uBAAuB,IAAI,IAAI,CAAA;IACxC,CAAC,EAAE,mDAAmD,CAAC,CAAA;AACzD,CAAC,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DeviceTypePromotion } from '../../entities/deviceTypePromotion';
|
|
2
|
-
import { oneRequiredDeleteDeviceTypePromotionParams, } from '../../types/promotion';
|
|
3
|
-
import { allAttributesAreNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const deleteDeviceTypePromotion = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (allAttributesAreNull(params, oneRequiredDeleteDeviceTypePromotionParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::deleteDeviceTypePromotion missing required parameters');
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
10
|
-
const tagsRepository = dataSource.getRepository(DeviceTypePromotion);
|
|
11
|
-
const queryBuilder = tagsRepository.createQueryBuilder().delete();
|
|
12
|
-
if (params.promotionId) {
|
|
13
|
-
queryBuilder.where('promotionId = :promotionId', { promotionId: params.promotionId });
|
|
14
|
-
}
|
|
15
|
-
if (params.deviceTypeId) {
|
|
16
|
-
queryBuilder.andWhere('deviceTypeId = :deviceTypeId', { deviceTypeId: params.deviceTypeId });
|
|
17
|
-
}
|
|
18
|
-
const result = await queryBuilder.execute();
|
|
19
|
-
return result.affected > 0;
|
|
20
|
-
}, 'PromotionRepository::deleteDeviceTypePromotion');
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=deleteDeviceTypePromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteDeviceTypePromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/deleteDeviceTypePromotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AAGxE,OAAO,EAEL,0CAA0C,GAC3C,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,EAC5C,cAA8B,EAC9B,MAAuC,EACvC,MAAc,EACI,EAAE;IACpB,IAAI,oBAAoB,CAAC,MAAM,EAAE,0CAA0C,CAAC,EAAE;QAC5E,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,4EAA4E,CAC7E,CAAA;QACD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;QAEpE,MAAM,YAAY,GAAG,cAAc,CAAC,kBAAkB,EAAE,CAAC,MAAM,EAAE,CAAA;QAEjE,IAAI,MAAM,CAAC,WAAW,EAAE;YACtB,YAAY,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAA;SACtF;QAED,IAAI,MAAM,CAAC,YAAY,EAAE;YACvB,YAAY,CAAC,QAAQ,CAAC,8BAA8B,EAAE,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC,CAAA;SAC7F;QACD,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,gDAAgD,CAAC,CAAA;AACtD,CAAC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MarketplacePromotion } from '../../entities/marketplacePromotion';
|
|
2
|
-
import { oneRequiredDeleteMarketplacePromotionParams, } from '../../types/promotion';
|
|
3
|
-
import { allAttributesAreNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const deleteMarketplacePromotion = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (allAttributesAreNull(params, oneRequiredDeleteMarketplacePromotionParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::deleteMarketplacePromotion missing required parameters');
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
10
|
-
const tagsRepository = dataSource.getRepository(MarketplacePromotion);
|
|
11
|
-
const queryBuilder = tagsRepository.createQueryBuilder().delete();
|
|
12
|
-
if (params.promotionId) {
|
|
13
|
-
queryBuilder.where('promotionId = :promotionId', { promotionId: params.promotionId });
|
|
14
|
-
}
|
|
15
|
-
if (params.marketplaceId) {
|
|
16
|
-
queryBuilder.andWhere('marketplaceId = :marketplaceId', {
|
|
17
|
-
marketplaceId: params.marketplaceId,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
const result = await queryBuilder.execute();
|
|
21
|
-
return result.affected > 0;
|
|
22
|
-
}, 'PromotionRepository::deleteMarketplacePromotion');
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=deleteMarketplacePromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteMarketplacePromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/deleteMarketplacePromotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAG1E,OAAO,EAEL,2CAA2C,GAC5C,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC7C,cAA8B,EAC9B,MAAwC,EACxC,MAAc,EACI,EAAE;IACpB,IAAI,oBAAoB,CAAC,MAAM,EAAE,2CAA2C,CAAC,EAAE;QAC7E,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,6EAA6E,CAC9E,CAAA;QACD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAA;QAErE,MAAM,YAAY,GAAG,cAAc,CAAC,kBAAkB,EAAE,CAAC,MAAM,EAAE,CAAA;QAEjE,IAAI,MAAM,CAAC,WAAW,EAAE;YACtB,YAAY,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAA;SACtF;QAED,IAAI,MAAM,CAAC,aAAa,EAAE;YACxB,YAAY,CAAC,QAAQ,CAAC,gCAAgC,EAAE;gBACtD,aAAa,EAAE,MAAM,CAAC,aAAa;aACpC,CAAC,CAAA;SACH;QACD,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,iDAAiD,CAAC,CAAA;AACvD,CAAC,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { DeviceTypePromotion } from '../../entities/deviceTypePromotion';
|
|
2
|
-
import { oneRequiredGetDeviceTypePromotionParams, } from '../../types/promotion';
|
|
3
|
-
import { allAttributesAreNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const getDeviceTypePromotion = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (allAttributesAreNull(params, oneRequiredGetDeviceTypePromotionParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::getDeviceTypePromotion missing required parameters');
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
// Force the query to run on master or slave
|
|
10
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
11
|
-
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
12
|
-
const deviceTypePromotionRepository = dataSource.getRepository(DeviceTypePromotion);
|
|
13
|
-
const promotionQueryBuilder = deviceTypePromotionRepository.createQueryBuilder('deviceTypePromotion');
|
|
14
|
-
if (queryRunner) {
|
|
15
|
-
promotionQueryBuilder.setQueryRunner(queryRunner);
|
|
16
|
-
}
|
|
17
|
-
const result = await promotionQueryBuilder
|
|
18
|
-
.where('deviceTypePromotion.promotionId = :promotionId', {
|
|
19
|
-
promotionId: params.filters.promotionId,
|
|
20
|
-
})
|
|
21
|
-
.andWhere('deviceTypePromotion.deviceTypeId = :deviceTypeId', {
|
|
22
|
-
deviceTypeId: params.filters.deviceTypeId,
|
|
23
|
-
})
|
|
24
|
-
.getOne();
|
|
25
|
-
return result ?? null;
|
|
26
|
-
}, 'PromotionRepository::getDeviceTypePromotion', dbQueryRunner);
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=getDeviceTypePromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDeviceTypePromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/getDeviceTypePromotion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AAGxE,OAAO,EAEL,uCAAuC,GACxC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,cAA8B,EAC9B,MAAoC,EACpC,MAAc,EACgB,EAAE;IAChC,IAAI,oBAAoB,CAAC,MAAM,EAAE,uCAAuC,CAAC,EAAE;QACzE,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,yEAAyE,CAC1E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,4CAA4C;IAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;IAExE,OAAO,cAAc,CAAC,SAAS,CAC7B,KAAK,EAAE,UAA0B,EAAE,WAAyB,EAAgC,EAAE;QAC5F,MAAM,6BAA6B,GAAG,UAAU,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAA;QAEnF,MAAM,qBAAqB,GAAG,6BAA6B,CAAC,kBAAkB,CAC5E,qBAAqB,CACtB,CAAA;QAED,IAAI,WAAW,EAAE;YACf,qBAAqB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;SAClD;QAED,MAAM,MAAM,GAAG,MAAM,qBAAqB;aACvC,KAAK,CAAC,gDAAgD,EAAE;YACvD,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;SACxC,CAAC;aACD,QAAQ,CAAC,kDAAkD,EAAE;YAC5D,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,YAAY;SAC1C,CAAC;aACD,MAAM,EAAE,CAAA;QAEX,OAAO,MAAM,IAAI,IAAI,CAAA;IACvB,CAAC,EACD,6CAA6C,EAC7C,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { MarketplacePromotion } from '../../entities/marketplacePromotion';
|
|
2
|
-
import { oneRequiredGetMarketplacePromotionParams, } from '../../types/promotion';
|
|
3
|
-
import { allAttributesAreNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const getMarketplacePromotion = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (allAttributesAreNull(params, oneRequiredGetMarketplacePromotionParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::getMarketplacePromotion missing required parameters');
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
// Force the query to run on master or slave
|
|
10
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
11
|
-
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
12
|
-
const marketplacePromotionRepository = dataSource.getRepository(MarketplacePromotion);
|
|
13
|
-
const promotionQueryBuilder = marketplacePromotionRepository.createQueryBuilder('marketplacePromotion');
|
|
14
|
-
if (queryRunner) {
|
|
15
|
-
promotionQueryBuilder.setQueryRunner(queryRunner);
|
|
16
|
-
}
|
|
17
|
-
const result = await promotionQueryBuilder
|
|
18
|
-
.where('marketplacePromotion.promotionId = :promotionId', {
|
|
19
|
-
promotionId: params.filters.promotionId,
|
|
20
|
-
})
|
|
21
|
-
.andWhere('marketplacePromotion.marketplaceId = :marketplaceId', {
|
|
22
|
-
marketplaceId: params.filters.marketplaceId,
|
|
23
|
-
})
|
|
24
|
-
.getOne();
|
|
25
|
-
return result ?? null;
|
|
26
|
-
}, 'PromotionRepository::getMarketplacePromotion', dbQueryRunner);
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=getMarketplacePromotion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMarketplacePromotion.js","sourceRoot":"","sources":["../../../src/repositories/promotions/getMarketplacePromotion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAG1E,OAAO,EAEL,wCAAwC,GACzC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,cAA8B,EAC9B,MAAqC,EACrC,MAAc,EACiB,EAAE;IACjC,IAAI,oBAAoB,CAAC,MAAM,EAAE,wCAAwC,CAAC,EAAE;QAC1E,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,0EAA0E,CAC3E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,4CAA4C;IAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;IAExE,OAAO,cAAc,CAAC,SAAS,CAC7B,KAAK,EACH,UAA0B,EAC1B,WAAyB,EACM,EAAE;QACjC,MAAM,8BAA8B,GAAG,UAAU,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAA;QAErF,MAAM,qBAAqB,GAAG,8BAA8B,CAAC,kBAAkB,CAC7E,sBAAsB,CACvB,CAAA;QAED,IAAI,WAAW,EAAE;YACf,qBAAqB,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;SAClD;QAED,MAAM,MAAM,GAAG,MAAM,qBAAqB;aACvC,KAAK,CAAC,iDAAiD,EAAE;YACxD,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;SACxC,CAAC;aACD,QAAQ,CAAC,qDAAqD,EAAE;YAC/D,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,aAAa;SAC5C,CAAC;aACD,MAAM,EAAE,CAAA;QAEX,OAAO,MAAM,IAAI,IAAI,CAAA;IACvB,CAAC,EACD,8CAA8C,EAC9C,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { AsinPromotion, DevicePromotion, DeviceTypePromotion, MarketplacePromotion, Promotion, } from '../../entities';
|
|
2
|
-
import { oneRequiredGetPromotionsParams } from '../../types/promotion';
|
|
3
|
-
import { allAttributesAreNull } from '../../utils/paramsValidators';
|
|
4
|
-
export const getPromotions = async (novaDataSource, params, logger) => {
|
|
5
|
-
if (allAttributesAreNull(params, oneRequiredGetPromotionsParams)) {
|
|
6
|
-
logger.warn({ params }, 'PromotionRepository::getPromotions missing required parameters');
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
// Force the query to run on master or slave
|
|
10
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
11
|
-
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
12
|
-
const promotionRepository = dataSource.getRepository(Promotion);
|
|
13
|
-
const promotionQueryBuilder = promotionRepository.createQueryBuilder('promotion');
|
|
14
|
-
if (queryRunner) {
|
|
15
|
-
promotionQueryBuilder.setQueryRunner(queryRunner);
|
|
16
|
-
}
|
|
17
|
-
if (params.filters.id) {
|
|
18
|
-
promotionQueryBuilder.andWhere('promotion.id = :id', { id: params.filters.id });
|
|
19
|
-
}
|
|
20
|
-
if (params.filters.status) {
|
|
21
|
-
promotionQueryBuilder.andWhere('promotion.status = :status', {
|
|
22
|
-
status: params.filters.status,
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
if (params.filters.onlyPromotionsWithinDateRange) {
|
|
26
|
-
promotionQueryBuilder.andWhere('NOW() BETWEEN promotion.startDate AND promotion.endDate');
|
|
27
|
-
}
|
|
28
|
-
if (params.projectionOptions?.withMarketplacePromotions || params.filters.marketplaceId) {
|
|
29
|
-
promotionQueryBuilder.leftJoinAndMapMany('promotion.marketplacePromotions', MarketplacePromotion, 'marketplacePromotion', 'marketplacePromotion.promotionId = promotion.id');
|
|
30
|
-
if (params.filters.marketplaceId) {
|
|
31
|
-
promotionQueryBuilder.andWhere('marketplacePromotion.marketplaceId = :marketplaceId', {
|
|
32
|
-
marketplaceId: params.filters.marketplaceId,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
if (params.projectionOptions?.withAsinPromotions || params.filters.asin) {
|
|
37
|
-
promotionQueryBuilder.leftJoinAndMapMany('promotion.asinPromotions', AsinPromotion, 'asinPromotion', 'asinPromotion.promotionId = promotion.id');
|
|
38
|
-
if (params.filters.asin) {
|
|
39
|
-
promotionQueryBuilder.andWhere('asinPromotion.asin = :asin', {
|
|
40
|
-
asin: params.filters.asin,
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (params.projectionOptions?.withDevicePromotions || params.filters.imei) {
|
|
45
|
-
promotionQueryBuilder.leftJoinAndMapMany('promotion.devicePromotions', DevicePromotion, 'devicePromotion', 'devicePromotion.promotionId = promotion.id');
|
|
46
|
-
if (params.filters.imei) {
|
|
47
|
-
promotionQueryBuilder.andWhere('devicePromotion.imei = :imei', {
|
|
48
|
-
imei: params.filters.imei,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (params.projectionOptions?.withDeviceTypePromotions || params.filters.deviceTypeId) {
|
|
53
|
-
promotionQueryBuilder.leftJoinAndMapMany('promotion.deviceTypePromotions', DeviceTypePromotion, 'deviceTypePromotion', 'deviceTypePromotion.promotionId = promotion.id');
|
|
54
|
-
if (params.filters.deviceTypeId) {
|
|
55
|
-
promotionQueryBuilder.andWhere('deviceTypePromotion.deviceTypeId = :deviceTypeId', {
|
|
56
|
-
deviceTypeId: params.filters.deviceTypeId,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
const result = await promotionQueryBuilder.orderBy('discount', 'DESC').getMany();
|
|
61
|
-
return result ?? [];
|
|
62
|
-
}, 'PromotionRepository::getPromotions', dbQueryRunner);
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=getPromotions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPromotions.js","sourceRoot":"","sources":["../../../src/repositories/promotions/getPromotions.ts"],"names":[],"mappings":"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"}
|