@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,54 +0,0 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { BaseRepository } from '../baseRepository';
|
|
3
|
-
import { createAempToken } from './createAempToken';
|
|
4
|
-
import { deleteAempTokens } from './deleteAempTokens';
|
|
5
|
-
import { getAempTokens } from './getAempTokens';
|
|
6
|
-
export class AempTokenRepository extends BaseRepository {
|
|
7
|
-
/**
|
|
8
|
-
* Get AMP tokens by client ID
|
|
9
|
-
* @param params - GetAempTokensParams
|
|
10
|
-
* One of the following is required:
|
|
11
|
-
* - filters.clientId: The client id
|
|
12
|
-
* - filters.token: The token
|
|
13
|
-
* @returns AempToken[]
|
|
14
|
-
*/
|
|
15
|
-
async getAempTokens(params) {
|
|
16
|
-
this.logger.trace(params, 'AempTokenRepository::getAempTokens started with params');
|
|
17
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
18
|
-
const result = await getAempTokens(novaDataSource, params, this.logger);
|
|
19
|
-
this.logger.trace(result, 'AempTokenRepository::getAempTokens result');
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Create an AMP token
|
|
24
|
-
* @param params - CreateAempTokenParams
|
|
25
|
-
* - clientId: The client id, required
|
|
26
|
-
* - token: The token, required
|
|
27
|
-
* - expiresAt: The expiration date, optional
|
|
28
|
-
* @returns AempToken
|
|
29
|
-
*/
|
|
30
|
-
async createAempToken(params) {
|
|
31
|
-
this.logger.trace(params, 'AempTokenRepository::createAempToken started with params');
|
|
32
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
33
|
-
const result = await createAempToken(novaDataSource, params, this.logger);
|
|
34
|
-
this.logger.trace(result, 'AempTokenRepository::createAempToken result');
|
|
35
|
-
return result;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Delete AMP tokens
|
|
39
|
-
* @param params - DeleteAempTokensParams
|
|
40
|
-
* One of the following is required:
|
|
41
|
-
* - filters.id: The id
|
|
42
|
-
* - filters.clientId: The client id
|
|
43
|
-
* - filters.token: The token
|
|
44
|
-
* @returns True if the token was deleted, false otherwise
|
|
45
|
-
*/
|
|
46
|
-
async deleteAempTokens(params) {
|
|
47
|
-
this.logger.trace(params, 'AempTokenRepository::deleteAempTokens started with params');
|
|
48
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
49
|
-
const result = await deleteAempTokens(novaDataSource, params, this.logger);
|
|
50
|
-
this.logger.trace({ result }, 'AempTokenRepository::deleteAempTokens result');
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
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MAAM,EAAE,6CAA6C,CAAC,CAAA;QAExE,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,gBAAgB,CAAC,MAA8B;QACnD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,2DAA2D,CAAC,CAAA;QAEtF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE1E,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,8CAA8C,CAAC,CAAA;QAE7E,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AlertType } from '../../entities';
|
|
2
|
-
export const getAlertTypes = async (novaDataSource, params) => {
|
|
3
|
-
// Force the query to run on master or slave
|
|
4
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
5
|
-
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
6
|
-
const alertTypesRepository = dataSource.getRepository(AlertType);
|
|
7
|
-
let queryBuilder = alertTypesRepository.createQueryBuilder('alertType');
|
|
8
|
-
if (queryRunner) {
|
|
9
|
-
queryBuilder = queryBuilder.setQueryRunner(queryRunner);
|
|
10
|
-
}
|
|
11
|
-
const includeBeta = params?.filters?.includeBeta ?? false;
|
|
12
|
-
if (!includeBeta) {
|
|
13
|
-
queryBuilder = queryBuilder.where(`alertType.stage = 'prod'`);
|
|
14
|
-
}
|
|
15
|
-
const result = await queryBuilder.getMany();
|
|
16
|
-
return result;
|
|
17
|
-
}, 'AlertTypesRepository::getAlertTypes', dbQueryRunner);
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=getAlertTypes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAlertTypes.js","sourceRoot":"","sources":["../../../src/repositories/alertTypes/getAlertTypes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI1C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,cAA8B,EAC9B,MAA2B,EACL,EAAE;IACxB,4CAA4C;IAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;IAExE,OAAO,cAAc,CAAC,SAAS,CAC7B,KAAK,EAAE,UAA0B,EAAE,WAAyB,EAAwB,EAAE;QACpF,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEhE,IAAI,YAAY,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAA;QAEvE,IAAI,WAAW,EAAE;YACf,YAAY,GAAG,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;SACxD;QAED,MAAM,WAAW,GAAG,MAAM,EAAE,OAAO,EAAE,WAAW,IAAI,KAAK,CAAA;QAEzD,IAAI,CAAC,WAAW,EAAE;YAChB,YAAY,GAAG,YAAY,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAA;SAC9D;QAED,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAA;IACf,CAAC,EACD,qCAAqC,EACrC,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { BaseRepository } from '../baseRepository';
|
|
3
|
-
import { getAlertTypes } from './getAlertTypes';
|
|
4
|
-
export class AlertTypesRepository extends BaseRepository {
|
|
5
|
-
/*
|
|
6
|
-
* Get alert types
|
|
7
|
-
* @param {GetAlertTypesParams} params containing information to get alert types
|
|
8
|
-
* - filters.includeBeta: Whether to include beta alert types, optional. If not provided, defaults to false
|
|
9
|
-
* @returns The alert types list
|
|
10
|
-
*/
|
|
11
|
-
async getAlertTypes(params) {
|
|
12
|
-
this.logger.trace(params, 'AlertTypesRepository::getAlertTypes started with params');
|
|
13
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
14
|
-
const result = await getAlertTypes(novaDataSource, params);
|
|
15
|
-
this.logger.trace(result, 'AlertTypesRepository::getAlertTypes result');
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/alertTypes/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CAAC,MAA2B;QAC7C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,yDAAyD,CAAC,CAAA;QAEpF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;QAE1D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,4CAA4C,CAAC,CAAA;QAEvE,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Alert } from '../../entities';
|
|
2
|
-
import { uuidStringToBinaryBuffer } from '../../utils/uuidHelpers';
|
|
3
|
-
export const createAlert = async (novaDataSource, params, logger) => {
|
|
4
|
-
if (!params?.clientId ||
|
|
5
|
-
params.clientId === 0 ||
|
|
6
|
-
!params?.alertTypeId ||
|
|
7
|
-
params.alertTypeId === 0 ||
|
|
8
|
-
!params?.messageId ||
|
|
9
|
-
!params?.imei ||
|
|
10
|
-
!params?.sendTime) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
await novaDataSource.connect();
|
|
15
|
-
const alertRepository = novaDataSource.getRepository(Alert);
|
|
16
|
-
const now = new Date();
|
|
17
|
-
const newAlert = {
|
|
18
|
-
id: params.id,
|
|
19
|
-
alertTypeId: params.alertTypeId,
|
|
20
|
-
value: params.value,
|
|
21
|
-
userId: uuidStringToBinaryBuffer(params.userId),
|
|
22
|
-
messageId: uuidStringToBinaryBuffer(params.messageId),
|
|
23
|
-
imei: params.imei,
|
|
24
|
-
sendTime: params.sendTime,
|
|
25
|
-
lat: params.lat,
|
|
26
|
-
lon: params.lon,
|
|
27
|
-
address: params.address,
|
|
28
|
-
clientId: params.clientId,
|
|
29
|
-
isBuffer: params.isBuffer,
|
|
30
|
-
isNotification: params.isNotification,
|
|
31
|
-
gpsUtcTime: params.gpsUtcTime,
|
|
32
|
-
relevantAddress: params.relevantAddress,
|
|
33
|
-
gpsMessageId: uuidStringToBinaryBuffer(params.gpsMessageId),
|
|
34
|
-
cellTowerRelevantAddress: params.cellTowerRelevantAddress,
|
|
35
|
-
createdAt: params.createdAt ?? now,
|
|
36
|
-
userAlertConfigurationId: params.userAlertConfigurationId,
|
|
37
|
-
clientAlertConfigurationId: params.clientAlertConfigurationId,
|
|
38
|
-
};
|
|
39
|
-
return await alertRepository.save(newAlert);
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
logger.error(error, 'AlertRepository::createAlert error');
|
|
43
|
-
throw error;
|
|
44
|
-
}
|
|
45
|
-
finally {
|
|
46
|
-
await novaDataSource.disconnect();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
export const createAlerts = async (novaDataSource, params, logger) => {
|
|
50
|
-
try {
|
|
51
|
-
await novaDataSource.connect();
|
|
52
|
-
const alertRepository = novaDataSource.getRepository(Alert);
|
|
53
|
-
const alerts = [];
|
|
54
|
-
params.forEach(param => {
|
|
55
|
-
if (!param?.clientId ||
|
|
56
|
-
param.clientId === 0 ||
|
|
57
|
-
!param?.alertTypeId ||
|
|
58
|
-
param.alertTypeId === 0 ||
|
|
59
|
-
!param?.messageId ||
|
|
60
|
-
!param?.imei ||
|
|
61
|
-
!param?.sendTime) {
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
const now = new Date();
|
|
65
|
-
const newAlert = {
|
|
66
|
-
id: param.id,
|
|
67
|
-
alertTypeId: param.alertTypeId,
|
|
68
|
-
value: param.value,
|
|
69
|
-
userId: uuidStringToBinaryBuffer(param.userId),
|
|
70
|
-
messageId: uuidStringToBinaryBuffer(param.messageId),
|
|
71
|
-
imei: param.imei,
|
|
72
|
-
sendTime: param.sendTime,
|
|
73
|
-
lat: param.lat,
|
|
74
|
-
lon: param.lon,
|
|
75
|
-
address: param.address,
|
|
76
|
-
clientId: param.clientId,
|
|
77
|
-
isBuffer: param.isBuffer,
|
|
78
|
-
isNotification: param.isNotification,
|
|
79
|
-
gpsUtcTime: param.gpsUtcTime,
|
|
80
|
-
relevantAddress: param.relevantAddress,
|
|
81
|
-
gpsMessageId: uuidStringToBinaryBuffer(param.gpsMessageId),
|
|
82
|
-
cellTowerRelevantAddress: param.cellTowerRelevantAddress,
|
|
83
|
-
createdAt: param.createdAt ?? now,
|
|
84
|
-
userAlertConfigurationId: param.userAlertConfigurationId,
|
|
85
|
-
clientAlertConfigurationId: param.clientAlertConfigurationId,
|
|
86
|
-
};
|
|
87
|
-
alerts.push(newAlert);
|
|
88
|
-
});
|
|
89
|
-
return await alertRepository.save(alerts);
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
logger.error(error, 'AlertRepository::createAlert error');
|
|
93
|
-
throw error;
|
|
94
|
-
}
|
|
95
|
-
finally {
|
|
96
|
-
await novaDataSource.disconnect();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
//# sourceMappingURL=createAlert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAlert.js","sourceRoot":"","sources":["../../../src/repositories/alerts/createAlert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAItC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAC9B,cAA8B,EAC9B,MAAyB,EACzB,MAAc,EACE,EAAE;IAClB,IACE,CAAC,MAAM,EAAE,QAAQ;QACjB,MAAM,CAAC,QAAQ,KAAK,CAAC;QACrB,CAAC,MAAM,EAAE,WAAW;QACpB,MAAM,CAAC,WAAW,KAAK,CAAC;QACxB,CAAC,MAAM,EAAE,SAAS;QAClB,CAAC,MAAM,EAAE,IAAI;QACb,CAAC,MAAM,EAAE,QAAQ,EACjB;QACA,OAAO,IAAI,CAAA;KACZ;IAED,IAAI;QACF,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;QAE9B,MAAM,eAAe,GAAG,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QAE3D,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,MAAM,QAAQ,GAAG;YACf,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC,MAAM,CAAC;YAC/C,SAAS,EAAE,wBAAwB,CAAC,MAAM,CAAC,SAAS,CAAC;YACrD,IAAI,EAAE,MAAM,CAAC,IAA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AC1C;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,oCAAoC,CAAC,CAAA;QACzD,MAAM,KAAK,CAAA;KACZ;YAAS;QACR,MAAM,cAAc,CAAC,UAAU,EAAE,CAAA;KAClC;AACH,CAAC,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UserAlertComplain } from '../../entities';
|
|
2
|
-
import { uuidStringToBinaryBuffer } from '../../utils/uuidHelpers';
|
|
3
|
-
export const createUserAlertComplain = async (novaDataSource, params) => {
|
|
4
|
-
if (!params?.clientId ||
|
|
5
|
-
params.clientId === 0 ||
|
|
6
|
-
!params?.alertTypeId ||
|
|
7
|
-
params.alertTypeId === 0 ||
|
|
8
|
-
!params?.userId ||
|
|
9
|
-
!params?.email ||
|
|
10
|
-
!params?.reason) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
14
|
-
const alertComplaintRepository = dataSource.getRepository(UserAlertComplain);
|
|
15
|
-
const now = new Date();
|
|
16
|
-
const newUserAlertComplaint = {
|
|
17
|
-
alertTypeId: params.alertTypeId,
|
|
18
|
-
userId: uuidStringToBinaryBuffer(params.userId),
|
|
19
|
-
clientId: params.clientId,
|
|
20
|
-
createdAt: params.createdAt ?? now,
|
|
21
|
-
email: params.email,
|
|
22
|
-
reason: params.reason,
|
|
23
|
-
};
|
|
24
|
-
return await alertComplaintRepository.save(newUserAlertComplaint);
|
|
25
|
-
}, 'AlertRepository::createUserAlertComplain');
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=createUserAlertComplain.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createUserAlertComplain.js","sourceRoot":"","sources":["../../../src/repositories/alerts/createUserAlertComplain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAGlD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,cAA8B,EAC9B,MAAsC,EACV,EAAE;IAC9B,IACE,CAAC,MAAM,EAAE,QAAQ;QACjB,MAAM,CAAC,QAAQ,KAAK,CAAC;QACrB,CAAC,MAAM,EAAE,WAAW;QACpB,MAAM,CAAC,WAAW,KAAK,CAAC;QACxB,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,KAAK;QACd,CAAC,MAAM,EAAE,MAAM,EACf;QACA,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAE/D,EAAE;QACF,MAAM,wBAAwB,GAAG,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAA;QAE5E,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,MAAM,qBAAqB,GAAG;YAC5B,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,MAAM,EAAE,wBAAwB,CAAC,MAAM,CAAC,MAAM,CAAC;YAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,GAAG;YAClC,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAA;QAED,OAAO,MAAM,wBAAwB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;IACnE,CAAC,EAAE,0CAA0C,CAAC,CAAA;AAChD,CAAC,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { Alert } from '../../entities';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated The method should not be used
|
|
4
|
-
*/
|
|
5
|
-
export const getAlertsReportByClient = async (novaDataSource, params, logger) => {
|
|
6
|
-
if (!params.filters.clientId) {
|
|
7
|
-
return [];
|
|
8
|
-
}
|
|
9
|
-
// Force the query to run on master or slave
|
|
10
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
11
|
-
try {
|
|
12
|
-
await novaDataSource.connect();
|
|
13
|
-
const alertRepository = novaDataSource.getRepository(Alert);
|
|
14
|
-
const alertQuery = alertRepository
|
|
15
|
-
.createQueryBuilder('a')
|
|
16
|
-
.setQueryRunner(dbQueryRunner)
|
|
17
|
-
.where('a.clientId = :clientId', { clientId: params.filters.clientId });
|
|
18
|
-
if (params.filters.imei) {
|
|
19
|
-
alertQuery.andWhere('a.imei = :imei', { imei: params.filters.imei });
|
|
20
|
-
}
|
|
21
|
-
if (params.filters.alertTypeId) {
|
|
22
|
-
alertQuery.andWhere('a.alertTypeId = :alertTypeId', {
|
|
23
|
-
alertTypeId: params.filters.alertTypeId,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
if (params.filters.sendTimeFrom) {
|
|
27
|
-
alertQuery.andWhere('a.sendTime >= :sendTimeFrom', {
|
|
28
|
-
sendTimeFrom: params.filters.sendTimeFrom,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
if (params.filters.sendTimeTo) {
|
|
32
|
-
alertQuery.andWhere('a.sendTime <= :sendTimeTo', {
|
|
33
|
-
sendTimeTo: params.filters.sendTimeTo,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
//get first the total count of the query without the paging
|
|
37
|
-
const totalCount = await alertQuery.getCount();
|
|
38
|
-
if (params.sortOptions?.sortField) {
|
|
39
|
-
alertQuery.orderBy(params.sortOptions.sortField, params.sortOptions.sortOrder);
|
|
40
|
-
}
|
|
41
|
-
const alerts = await alertQuery
|
|
42
|
-
.select([
|
|
43
|
-
'a.id as id',
|
|
44
|
-
'a.alertTypeId as alertTypeId',
|
|
45
|
-
'a.value as value',
|
|
46
|
-
'a.createdAt as createdAt',
|
|
47
|
-
'a.userId as userId',
|
|
48
|
-
'a.messageId as messageId',
|
|
49
|
-
'a.imei as imei',
|
|
50
|
-
'a.sendTime as sendTime',
|
|
51
|
-
'a.lat as lat',
|
|
52
|
-
'a.lon as lon',
|
|
53
|
-
'a.address as address',
|
|
54
|
-
`${totalCount} as totalCount`,
|
|
55
|
-
])
|
|
56
|
-
.limit(params.pagingOptions.pageSize)
|
|
57
|
-
.offset(params.pagingOptions.pageSize * (params.pagingOptions.pageIndex - 1))
|
|
58
|
-
.getRawMany();
|
|
59
|
-
return alerts;
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
logger.error(error, 'AlertRepository::getAlertsReportByClient error');
|
|
63
|
-
throw error;
|
|
64
|
-
}
|
|
65
|
-
finally {
|
|
66
|
-
await dbQueryRunner.release();
|
|
67
|
-
await novaDataSource.disconnect();
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=getAlertsReportByClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAlertsReportByClient.js","sourceRoot":"","sources":["../../../src/repositories/alerts/getAlertsReportByClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAKtC;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAC1C,cAA8B,EAC9B,MAAoC,EACpC,MAAc,EACU,EAAE;IAC1B,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE;QAC5B,OAAO,EAAE,CAAA;KACV;IAED,4CAA4C;IAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;IAExE,IAAI;QACF,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;QAE9B,MAAM,eAAe,GAAG,cAAc,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QAE3D,MAAM,UAAU,GAAG,eAAe;aAC/B,kBAAkB,CAAC,GAAG,CAAC;aACvB,cAAc,CAAC,aAAa,CAAC;aAC7B,KAAK,CAAC,wBAAwB,EAAE,EAAE,QAAQ,EAAE,MAAM,CA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AC,QAAQ,CAAC;aACpC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;aAC5E,UAAU,EAAE,CAAA;QAEf,OAAO,MAAM,CAAA;KACd;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,gDAAgD,CAAC,CAAA;QACrE,MAAM,KAAK,CAAA;KACZ;YAAS;QACR,MAAM,aAAa,CAAC,OAAO,EAAE,CAAA;QAC7B,MAAM,cAAc,CAAC,UAAU,EAAE,CAAA;KAClC;AACH,CAAC,CAAA"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { Alert, AlertType } from '../../entities';
|
|
2
|
-
import { uuidStringToBinaryBuffer } from '../../utils/uuidHelpers';
|
|
3
|
-
export const getAlertsReportByUser = async (novaDataSource, params, logger) => {
|
|
4
|
-
if (!params?.filters?.userId) {
|
|
5
|
-
logger.warn({ params }, 'AlertRepository::getAlertsReportByUser - missing required parameters');
|
|
6
|
-
return [];
|
|
7
|
-
}
|
|
8
|
-
const userIdBinaryBuffer = uuidStringToBinaryBuffer(params?.filters?.userId);
|
|
9
|
-
if (!userIdBinaryBuffer?.length) {
|
|
10
|
-
logger.warn({ params }, 'AlertRepository::getAlertsReportByUser - user id should be a valid UUID');
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
// Force the query to run on master or slave
|
|
14
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
15
|
-
try {
|
|
16
|
-
await novaDataSource.connect();
|
|
17
|
-
const alertRepository = novaDataSource.getRepository(Alert);
|
|
18
|
-
const alertQuery = alertRepository
|
|
19
|
-
.createQueryBuilder('a')
|
|
20
|
-
.setQueryRunner(dbQueryRunner)
|
|
21
|
-
.innerJoin('a.alertType', 'aty')
|
|
22
|
-
.where('a.userId = :userId', { userId: uuidStringToBinaryBuffer(params.filters.userId) });
|
|
23
|
-
// When is test environment, we want to show all alerts including the ones with stage = test
|
|
24
|
-
if (params.filters.isTestEnvironment) {
|
|
25
|
-
alertQuery.andWhere('( aty.stage = :stage_test or aty.stage = :stage )', {
|
|
26
|
-
stage: 'prod',
|
|
27
|
-
stage_test: 'test',
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
else
|
|
31
|
-
alertQuery.andWhere('aty.stage = :stage', { stage: 'prod' });
|
|
32
|
-
if (params.filters.imeis?.length) {
|
|
33
|
-
alertQuery.andWhere('a.imei IN (:...imeis)', { imeis: params.filters.imeis });
|
|
34
|
-
}
|
|
35
|
-
if (params.filters.clientId) {
|
|
36
|
-
alertQuery.andWhere('a.clientId = :clientId', { clientId: params.filters.clientId });
|
|
37
|
-
}
|
|
38
|
-
let alertTypeIds = params.filters.alertTypeIds;
|
|
39
|
-
if (!alertTypeIds?.length && params.filters.alertTypeNames?.length) {
|
|
40
|
-
const alertTypesRepo = novaDataSource.getRepository(AlertType);
|
|
41
|
-
const filteredAlertTypesIds = await alertTypesRepo
|
|
42
|
-
.createQueryBuilder('aty')
|
|
43
|
-
.where('LOWER(aty.name) IN (:...alertTypeNames)', {
|
|
44
|
-
alertTypeNames: params.filters.alertTypeNames.map(x => x.toLowerCase()),
|
|
45
|
-
})
|
|
46
|
-
.select('aty.id')
|
|
47
|
-
.getMany();
|
|
48
|
-
if (filteredAlertTypesIds?.length) {
|
|
49
|
-
alertTypeIds = filteredAlertTypesIds.map(x => x.id);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
if (alertTypeIds?.length) {
|
|
53
|
-
alertQuery.andWhere('a.alertTypeId IN (:alertTypeIds)', {
|
|
54
|
-
alertTypeIds,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
if (params.filters.boundaryId) {
|
|
58
|
-
alertQuery.andWhere('a.boundaryId = :boundaryId', {
|
|
59
|
-
boundaryId: params.filters.boundaryId,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
if (params.filters.sendTimeFrom) {
|
|
63
|
-
alertQuery.andWhere('a.sendTime >= :sendTimeFrom', {
|
|
64
|
-
sendTimeFrom: params.filters.sendTimeFrom,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
if (params.filters.sendTimeTo) {
|
|
68
|
-
alertQuery.andWhere('a.sendTime <= :sendTimeTo', {
|
|
69
|
-
sendTimeTo: params.filters.sendTimeTo,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
if (params.filters.createdFrom) {
|
|
73
|
-
alertQuery.andWhere('a.createdAt >= :createdFrom', {
|
|
74
|
-
createdFrom: params.filters.createdFrom,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
if (params.filters.createdTo) {
|
|
78
|
-
alertQuery.andWhere('a.createdAt <= :createdTo', {
|
|
79
|
-
createdTo: params.filters.createdTo,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
const subQuery = alertQuery.clone().select('COUNT(a.id)', 'totalCount');
|
|
83
|
-
if (params.filters.imeis?.length) {
|
|
84
|
-
alertQuery.useIndex('ixAlertUserId_Imei_AlertTypeId_SendTime');
|
|
85
|
-
subQuery.useIndex('ixAlertUserId_Imei_AlertTypeId_SendTime');
|
|
86
|
-
}
|
|
87
|
-
else if (alertTypeIds?.length) {
|
|
88
|
-
alertQuery.useIndex('ixAlertUserId_AlertTypeId_SendTime');
|
|
89
|
-
subQuery.useIndex('ixAlertUserId_AlertTypeId_SendTime');
|
|
90
|
-
}
|
|
91
|
-
alertQuery.innerJoin(`(${subQuery.getQuery()})`, 'sub');
|
|
92
|
-
if (params.sortOptions?.sortField) {
|
|
93
|
-
alertQuery.orderBy(params.sortOptions.sortField, params.sortOptions.sortOrder);
|
|
94
|
-
}
|
|
95
|
-
const alerts = await alertQuery
|
|
96
|
-
.select([
|
|
97
|
-
'a.id as id',
|
|
98
|
-
'a.alertTypeId as alertTypeId',
|
|
99
|
-
'aty.name as alertTypeName',
|
|
100
|
-
'a.value as value',
|
|
101
|
-
'a.createdAt as createdAt',
|
|
102
|
-
'a.userId as userId',
|
|
103
|
-
'a.clientId as clientId',
|
|
104
|
-
'a.messageId as messageId',
|
|
105
|
-
'a.boundaryId as boundaryId',
|
|
106
|
-
'a.imei as imei',
|
|
107
|
-
'a.sendTime as sendTime',
|
|
108
|
-
'a.lat as lat',
|
|
109
|
-
'a.lon as lon',
|
|
110
|
-
'a.address as address',
|
|
111
|
-
'a.isBuffer as isBuffer',
|
|
112
|
-
'a.isNotification as isNotification',
|
|
113
|
-
'a.gpsMessageId as gpsMessageId',
|
|
114
|
-
'a.gpsUTCTime as gpsUTCTime',
|
|
115
|
-
'aty.stage as stage',
|
|
116
|
-
`sub.totalCount as totalCount`,
|
|
117
|
-
])
|
|
118
|
-
.limit(params.pagingOptions.pageSize)
|
|
119
|
-
.offset(params.pagingOptions.pageSize * params.pagingOptions.pageIndex)
|
|
120
|
-
.getRawMany();
|
|
121
|
-
return alerts;
|
|
122
|
-
}
|
|
123
|
-
catch (error) {
|
|
124
|
-
logger.error(error, 'AlertRepository::getAlertsReportByUserId error');
|
|
125
|
-
throw error;
|
|
126
|
-
}
|
|
127
|
-
finally {
|
|
128
|
-
await dbQueryRunner.release();
|
|
129
|
-
await novaDataSource.disconnect();
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
//# sourceMappingURL=getAlertsReportByUser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAlertsReportByUser.js","sourceRoot":"","sources":["../../../src/repositories/alerts/getAlertsReportByUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAIjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,EACxC,cAA8B,EAC9B,MAAkC,EAClC,MAAc,EACU,EAAE;IAC1B,IAAI,CAAC,MAAM,EAAE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AC,WAAW,CAAC,SAAS,CAAC,CAAA;SAC/E;QAED,MAAM,MAAM,GAAG,MAAM,UAAU;aAC5B,MAAM,CAAC;YACN,YAAY;YACZ,8BAA8B;YAC9B,2BAA2B;YAC3B,kBAAkB;YAClB,0BAA0B;YAC1B,oBAAoB;YACpB,wBAAwB;YACxB,0BAA0B;YAC1B,4BAA4B;YAC5B,gBAAgB;YAChB,wBAAwB;YACxB,cAAc;YACd,cAAc;YACd,sBAAsB;YACtB,wBAAwB;YACxB,oCAAoC;YACpC,gCAAgC;YAChC,4BAA4B;YAC5B,oBAAoB;YACpB,8BAA8B;SAC/B,CAAC;aACD,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC;aACpC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC;aACtE,UAAU,EAAE,CAAA;QAEf,OAAO,MAAM,CAAA;KACd;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,gDAAgD,CAAC,CAAA;QACrE,MAAM,KAAK,CAAA;KACZ;YAAS;QACR,MAAM,aAAa,CAAC,OAAO,EAAE,CAAA;QAC7B,MAAM,cAAc,CAAC,UAAU,EAAE,CAAA;KAClC;AACH,CAAC,CAAA"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { BaseRepository } from '../baseRepository';
|
|
3
|
-
import { createAlert, createAlerts } from './createAlert';
|
|
4
|
-
import { createUserAlertComplain } from './createUserAlertComplain';
|
|
5
|
-
import { getAlertsReportByUser } from './getAlertsReportByUser';
|
|
6
|
-
export class AlertRepository extends BaseRepository {
|
|
7
|
-
/** Create an alert record
|
|
8
|
-
* @param {CreateAlertParams} params containing information to create an alert
|
|
9
|
-
* id: The alert id. if null will be generated
|
|
10
|
-
* clientId: The client id of the owner of the device generating the alert
|
|
11
|
-
* deviceId: The device id of the device generating the alert
|
|
12
|
-
* alertTypeId: The alert type id
|
|
13
|
-
* value: The alert value
|
|
14
|
-
* userId: The user id of the user associated with the alert
|
|
15
|
-
* messageId: The message id of the message that generated the alert
|
|
16
|
-
* boundaryId: The boundary id of the boundary if the alert is related to a boundary
|
|
17
|
-
* imei: The imei of the device generating the alert
|
|
18
|
-
* sendTime: The time the alert was sent
|
|
19
|
-
* lat: The latitude of the device when the alert was generated
|
|
20
|
-
* lon: The longitude of the device when the alert was generated
|
|
21
|
-
* address: The address of the device when the alert was generated
|
|
22
|
-
* isBuffer: The is buffer flag
|
|
23
|
-
* isNotification: The is notification flag
|
|
24
|
-
* gpsUtcTime: The time the gps utc time was set
|
|
25
|
-
* relevantAddress: The relevant address
|
|
26
|
-
* gpsMessageId: The gps message id
|
|
27
|
-
* cellTowerRelevantAddress: The cell tower relevant address
|
|
28
|
-
*/
|
|
29
|
-
async createAlert(params) {
|
|
30
|
-
this.logger.trace(params, `AlertRepository::createAlert started with params`);
|
|
31
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
32
|
-
const result = await createAlert(novaDataSource, params, this.logger);
|
|
33
|
-
this.logger.trace(result, 'AlertRepository::createAlert result');
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
36
|
-
/** Create alert records
|
|
37
|
-
* @param {CreateAlertParams[]} params containing information to create alert records
|
|
38
|
-
* id: The alert id. if null will be generated
|
|
39
|
-
* clientId: The client id of the owner of the device generating the alert
|
|
40
|
-
* deviceId: The device id of the device generating the alert
|
|
41
|
-
* alertTypeId: The alert type id
|
|
42
|
-
* value: The alert value
|
|
43
|
-
* userId: The user id of the user associated with the alert
|
|
44
|
-
* messageId: The message id of the message that generated the alert
|
|
45
|
-
* boundaryId: The boundary id of the boundary if the alert is related to a boundary
|
|
46
|
-
* imei: The imei of the device generating the alert
|
|
47
|
-
* sendTime: The time the alert was sent
|
|
48
|
-
* lat: The latitude of the device when the alert was generated
|
|
49
|
-
* lon: The longitude of the device when the alert was generated
|
|
50
|
-
* address: The address of the device when the alert was generated
|
|
51
|
-
* isBuffer: The is buffer flag
|
|
52
|
-
* isNotification: The is notification flag
|
|
53
|
-
* gpsUtcTime: The time the gps utc time was set
|
|
54
|
-
* relevantAddress: The relevant address
|
|
55
|
-
* gpsMessageId: The gps message id
|
|
56
|
-
* cellTowerRelevantAddress: The cell tower relevant address
|
|
57
|
-
*/
|
|
58
|
-
async createAlerts(params) {
|
|
59
|
-
this.logger.trace(params, `AlertRepository::createAlerts started with params`);
|
|
60
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
61
|
-
const result = await createAlerts(novaDataSource, params, this.logger);
|
|
62
|
-
this.logger.trace(result, 'AlertRepository::createAlerts result');
|
|
63
|
-
return result;
|
|
64
|
-
}
|
|
65
|
-
/** Get alerts report by user id
|
|
66
|
-
* @param {GetAlertReportByUserParams} params containing information to filter alerts report by user id
|
|
67
|
-
* params.filters.userId: The user id of the user associated with the alert
|
|
68
|
-
* params.filters.imeis: The imeis of the devices generating the alert
|
|
69
|
-
* params.filters.alertTypeId: The alert type id
|
|
70
|
-
* params.filters.boundaryId: The boundary id of the boundary if the alert is related to a boundary
|
|
71
|
-
* params.filters.sendTimeFrom: The time the alert was sent from
|
|
72
|
-
* params.filters.sendTimeTo: The time the alert was sent to
|
|
73
|
-
* params.pagingOptions.pageSize: The number of alerts to return
|
|
74
|
-
* params.pagingOptions.pageIndex: The page index of the alerts to return
|
|
75
|
-
* params.sortOptions.sortField: The field to sort the alerts by
|
|
76
|
-
* params.sortOptions.sortOrder: The order to sort the alerts by desc | asc
|
|
77
|
-
* @returns Promise<AlertReport[]>
|
|
78
|
-
*/
|
|
79
|
-
async getAlertsReportByUser(params) {
|
|
80
|
-
this.logger.trace(params, `AlertRepository::getAlertsReportByUserId started with params`);
|
|
81
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
82
|
-
const result = await getAlertsReportByUser(novaDataSource, params, this.logger);
|
|
83
|
-
this.logger.trace(result, 'AlertRepository::getAlertsReportByUserId result');
|
|
84
|
-
return result;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Insert a new user alert complain
|
|
88
|
-
* @param {CreateUserAlertComplaintParams} params containing information to create a user alert complain
|
|
89
|
-
* params.alertTypeId: The alert type id that has been disabled
|
|
90
|
-
* params.userId: The user id of the user associated with the alert
|
|
91
|
-
* params.clientId: The client id of the owner of the device generating the alert
|
|
92
|
-
* params.email: The email of the user
|
|
93
|
-
* params.reason: The reason for disabling the alert
|
|
94
|
-
* params.createdAt: The datetime the complaint was received, it will default to now if not provided
|
|
95
|
-
* @returns {Promise<UserAlertComplain>} The created user alert complain
|
|
96
|
-
*/
|
|
97
|
-
async createUserAlertComplain(params) {
|
|
98
|
-
this.logger.trace(params, `AlertRepository::createUserAlertComplain started with params`);
|
|
99
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
100
|
-
const result = await createUserAlertComplain(novaDataSource, params);
|
|
101
|
-
this.logger.trace(result, 'AlertRepository::createUserAlertComplain result');
|
|
102
|
-
return result;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/alerts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAOrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAE/D,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AC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE/E,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,iDAAiD,CAAC,CAAA;QAE5E,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,uBAAuB,CAC3B,MAAsC;QAEtC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,8DAA8D,CAAC,CAAA;QAEzF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;QAEpE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,iDAAiD,CAAC,CAAA;QAE5E,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AppFeatureType } from '../../entities';
|
|
2
|
-
export const createAppFeatureType = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.description || !params?.name) {
|
|
4
|
-
logger.warn({ params }, 'AppFeaturesRepository::createAppFeatureType - missing required parameters');
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
-
const appFeatureTypeRepository = dataSource.getRepository(AppFeatureType);
|
|
9
|
-
const newAppFeature = {
|
|
10
|
-
...params,
|
|
11
|
-
statusId: params.statusId ?? 1,
|
|
12
|
-
};
|
|
13
|
-
return await appFeatureTypeRepository.save(newAppFeature);
|
|
14
|
-
}, 'AppFeaturesRepository::createAppFeatureType');
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=createAppFeatureType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAppFeatureType.js","sourceRoot":"","sources":["../../../src/repositories/appFeatures/createAppFeatureType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAK/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,cAA8B,EAC9B,MAAkC,EAClC,MAAc,EACW,EAAE;IAC3B,IAAI,CAAC,MAAM,EAAE,WAAW,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE;QACzC,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,2EAA2E,CAC5E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAA2B,EAAE;QAC5F,MAAM,wBAAwB,GAAG,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;QAEzE,MAAM,aAAa,GAAG;YACpB,GAAG,MAAM;YACT,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,CAAC;SAC/B,CAAA;QAED,OAAO,MAAM,wBAAwB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAC3D,CAAC,EAAE,6CAA6C,CAAC,CAAA;AACnD,CAAC,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ClientAppFeature } from '../../entities';
|
|
2
|
-
export const createClientAppFeature = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.clientId || !params?.appFeatureTypeId || !params.entityId) {
|
|
4
|
-
logger.warn({ params }, 'AppFeaturesRepository::createClientAppFeature - missing required parameters');
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
-
const clientAppFeatureRepository = dataSource.getRepository(ClientAppFeature);
|
|
9
|
-
const newClientAppFeature = {
|
|
10
|
-
...params,
|
|
11
|
-
statusId: params.statusId ?? 1,
|
|
12
|
-
};
|
|
13
|
-
return await clientAppFeatureRepository.save(newClientAppFeature);
|
|
14
|
-
}, 'AppFeaturesRepository::createClientAppFeature');
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=createClientAppFeature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createClientAppFeature.js","sourceRoot":"","sources":["../../../src/repositories/appFeatures/createClientAppFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAKjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,EACzC,cAA8B,EAC9B,MAAoC,EACpC,MAAc,EACa,EAAE;IAC7B,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,CAAC,MAAM,EAAE,gBAAgB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACtE,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,6EAA6E,CAC9E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAA6B,EAAE;QAC9F,MAAM,0BAA0B,GAAG,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAA;QAE7E,MAAM,mBAAmB,GAAG;YAC1B,GAAG,MAAM;YACT,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,CAAC;SAC/B,CAAA;QAED,OAAO,MAAM,0BAA0B,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IACnE,CAAC,EAAE,+CAA+C,CAAC,CAAA;AACrD,CAAC,CAAA"}
|