@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,67 +0,0 @@
|
|
|
1
|
-
import { BillingDeviceTypePlan } from '../../entities';
|
|
2
|
-
export const upsertBillingDeviceTypePlan = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.deviceTypeId && !params?.planId && !params?.status) {
|
|
4
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingDeviceTypePlan - missing required parameters');
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
-
const billingDeviceTypePlanRepository = dataSource.getRepository(BillingDeviceTypePlan);
|
|
9
|
-
const existingBillingDeviceTypePlan = await billingDeviceTypePlanRepository
|
|
10
|
-
.createQueryBuilder('billingDeviceTypePlan')
|
|
11
|
-
.where('billingDeviceTypePlan.deviceTypeId = :deviceTypeId', {
|
|
12
|
-
deviceTypeId: params.deviceTypeId,
|
|
13
|
-
})
|
|
14
|
-
.andWhere('billingDeviceTypePlan.planId = :planId', {
|
|
15
|
-
planId: params.planId,
|
|
16
|
-
})
|
|
17
|
-
.getOne();
|
|
18
|
-
if (!existingBillingDeviceTypePlan) {
|
|
19
|
-
const billingDeviceTypePlan = {
|
|
20
|
-
deviceTypeId: params.deviceTypeId,
|
|
21
|
-
planId: params.planId,
|
|
22
|
-
deviceTypeModel: params.deviceTypeModel,
|
|
23
|
-
deviceType: params.deviceType ?? null,
|
|
24
|
-
createdAt: params.createdAt,
|
|
25
|
-
status: params.status,
|
|
26
|
-
};
|
|
27
|
-
const insertResult = await billingDeviceTypePlanRepository
|
|
28
|
-
.createQueryBuilder()
|
|
29
|
-
.insert()
|
|
30
|
-
.into(BillingDeviceTypePlan)
|
|
31
|
-
.values([billingDeviceTypePlan])
|
|
32
|
-
.execute();
|
|
33
|
-
return insertResult.identifiers.length > 0
|
|
34
|
-
? await billingDeviceTypePlanRepository.findOne({
|
|
35
|
-
where: {
|
|
36
|
-
deviceTypeId: params.deviceTypeId,
|
|
37
|
-
planId: params.planId,
|
|
38
|
-
},
|
|
39
|
-
})
|
|
40
|
-
: null;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
const updateResult = await billingDeviceTypePlanRepository
|
|
44
|
-
.createQueryBuilder()
|
|
45
|
-
.update(BillingDeviceTypePlan)
|
|
46
|
-
.set({
|
|
47
|
-
status: params.status,
|
|
48
|
-
})
|
|
49
|
-
.where('deviceTypeId = :deviceTypeId', {
|
|
50
|
-
deviceTypeId: params.deviceTypeId,
|
|
51
|
-
})
|
|
52
|
-
.andWhere('planId = :planId', {
|
|
53
|
-
planId: params.planId,
|
|
54
|
-
})
|
|
55
|
-
.execute();
|
|
56
|
-
return updateResult.affected > 0
|
|
57
|
-
? await billingDeviceTypePlanRepository.findOne({
|
|
58
|
-
where: {
|
|
59
|
-
deviceTypeId: params.deviceTypeId,
|
|
60
|
-
planId: params.planId,
|
|
61
|
-
},
|
|
62
|
-
})
|
|
63
|
-
: null;
|
|
64
|
-
}
|
|
65
|
-
}, 'BillingRepository::upsertBillingDeviceTypePlan');
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=upsertBillingDeviceTypePlan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertBillingDeviceTypePlan.js","sourceRoot":"","sources":["../../../src/repositories/billing/upsertBillingDeviceTypePlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAKtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,EAC9C,cAA8B,EAC9B,MAAyC,EACzC,MAAc,EACkB,EAAE;IAClC,IAAI,CAAC,MAAM,EAAE,YAAY,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE;QAC/D,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,8EAA8E,CAC/E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAE/D,EAAE;QACF,MAAM,+BAA+B,GAAG,UAAU,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAA;QAEvF,MAAM,6BAA6B,GAAG,MAAM,+BAA+B;aACxE,kBAAkB,CAAC,uBAAuB,CAAC;aAC3C,KAAK,CAAC,oDAAoD,EAAE;YAC3D,YAAY,EAAE,MAAM,CAAC,YAAY;SAClC,CAAC;aACD,QAAQ,CAAC,wCAAwC,EAAE;YAClD,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;aACD,MAAM,EAAE,CAAA;QAEX,IAAI,CAAC,6BAA6B,EAAE;YAClC,MAAM,qBAAqB,GAAG;gBAC5B,YAAY,EAAE,MAAM,CAAC,YAAY;gBACjC,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI,IAAI;gBACrC,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAA;YAED,MAAM,YAAY,GAAG,MAAM,+BAA+B;iBACvD,kBAAkB,EAAE;iBACpB,MAAM,EAAE;iBACR,IAAI,CAAC,qBAAqB,CAAC;iBAC3B,MAAM,CAAC,CAAC,qBAAqB,CAAC,CAAC;iBAC/B,OAAO,EAAE,CAAA;YAEZ,OAAO,YAAY,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;gBACxC,CAAC,CAAC,MAAM,+BAA+B,CAAC,OAAO,CAAC;oBAC5C,KAAK,EAAE;wBACL,YAAY,EAAE,MAAM,CAAC,YAAY;wBACjC,MAAM,EAAE,MAAM,CAAC,MAAM;qBACtB;iBACF,CAAC;gBACJ,CAAC,CAAC,IAAI,CAAA;SACT;aAAM;YACL,MAAM,YAAY,GAAG,MAAM,+BAA+B;iBACvD,kBAAkB,EAAE;iBACpB,MAAM,CAAC,qBAAqB,CAAC;iBAC7B,GAAG,CAAC;gBACH,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;iBACD,KAAK,CAAC,8BAA8B,EAAE;gBACrC,YAAY,EAAE,MAAM,CAAC,YAAY;aAClC,CAAC;iBACD,QAAQ,CAAC,kBAAkB,EAAE;gBAC5B,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;iBACD,OAAO,EAAE,CAAA;YAEZ,OAAO,YAAY,CAAC,QAAQ,GAAG,CAAC;gBAC9B,CAAC,CAAC,MAAM,+BAA+B,CAAC,OAAO,CAAC;oBAC5C,KAAK,EAAE;wBACL,YAAY,EAAE,MAAM,CAAC,YAAY;wBACjC,MAAM,EAAE,MAAM,CAAC,MAAM;qBACtB;iBACF,CAAC;gBACJ,CAAC,CAAC,IAAI,CAAA;SACT;IACH,CAAC,EAAE,gDAAgD,CAAC,CAAA;AACtD,CAAC,CAAA"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { BillingKlarnaCustomer } from '../../entities';
|
|
2
|
-
export const upsertBillingKlarnaCustomer = async (novaDataSource, params, logger) => {
|
|
3
|
-
// id is required
|
|
4
|
-
if (!params?.id) {
|
|
5
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingKlarnaCustomer - missing required parameters');
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
// at least one field to update is required
|
|
9
|
-
if (!params?.firstName &&
|
|
10
|
-
!params?.lastName &&
|
|
11
|
-
!params?.billingEmail &&
|
|
12
|
-
!params?.shippingEmail &&
|
|
13
|
-
!params?.streetAddress &&
|
|
14
|
-
!params?.city &&
|
|
15
|
-
!params?.region &&
|
|
16
|
-
!params?.country &&
|
|
17
|
-
!params?.postalCode &&
|
|
18
|
-
!params?.phone &&
|
|
19
|
-
!params?.createdAt) {
|
|
20
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingKlarnaCustomer - missing required parameters');
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
24
|
-
const billingKlarnaCustomerRepository = dataSource.getRepository(BillingKlarnaCustomer);
|
|
25
|
-
const now = new Date();
|
|
26
|
-
const billingKlarnaCustomer = {
|
|
27
|
-
id: params.id ? params.id : undefined,
|
|
28
|
-
firstName: params.firstName ? params.firstName : undefined,
|
|
29
|
-
lastName: params.lastName ? params.lastName : undefined,
|
|
30
|
-
billingEmail: params.billingEmail ? params.billingEmail : undefined,
|
|
31
|
-
shippingEmail: params.shippingEmail ? params.shippingEmail : undefined,
|
|
32
|
-
streetAddress: params.streetAddress ? params.streetAddress : undefined,
|
|
33
|
-
city: params.city ? params.city : undefined,
|
|
34
|
-
region: params.region ? params.region : undefined,
|
|
35
|
-
country: params.country ? params.country : undefined,
|
|
36
|
-
postalCode: params.postalCode ? params.postalCode : undefined,
|
|
37
|
-
phone: params.phone ? params.phone : undefined,
|
|
38
|
-
createdAt: params.createdAt ?? now,
|
|
39
|
-
};
|
|
40
|
-
const upsertResult = await billingKlarnaCustomerRepository.upsert(billingKlarnaCustomer, {
|
|
41
|
-
conflictPaths: ['id'],
|
|
42
|
-
});
|
|
43
|
-
const upsertedCustomer = upsertResult?.raw?.affectedRows > 0
|
|
44
|
-
? await billingKlarnaCustomerRepository.findOne({
|
|
45
|
-
where: {
|
|
46
|
-
id: params.id,
|
|
47
|
-
},
|
|
48
|
-
})
|
|
49
|
-
: null;
|
|
50
|
-
return upsertedCustomer;
|
|
51
|
-
}, 'BillingRepository::upsertBillingKlarnaCustomer');
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=upsertBillingKlarnaCustomer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertBillingKlarnaCustomer.js","sourceRoot":"","sources":["../../../src/repositories/billing/upsertBillingKlarnaCustomer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAKtD,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,EAC9C,cAA8B,EAC9B,MAAyC,EACzC,MAAc,EACkB,EAAE;IAClC,iBAAiB;IACjB,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE;QACf,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,8EAA8E,CAC/E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,2CAA2C;IAC3C,IACE,CAAC,MAAM,EAAE,SAAS;QAClB,CAAC,MAAM,EAAE,QAAQ;QACjB,CAAC,MAAM,EAAE,YAAY;QACrB,CAAC,MAAM,EAAE,aAAa;QACtB,CAAC,MAAM,EAAE,aAAa;QACtB,CAAC,MAAM,EAAE,IAAI;QACb,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,OAAO;QAChB,CAAC,MAAM,EAAE,UAAU;QACnB,CAAC,MAAM,EAAE,KAAK;QACd,CAAC,MAAM,EAAE,SAAS,EAClB;QACA,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,8EAA8E,CAC/E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAE/D,EAAE;QACF,MAAM,+BAA+B,GAAG,UAAU,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAA;QAEvF,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,qBAAqB,GAAG;YAC5B,EAAE,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;YACrC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YAC1D,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;YACvD,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;YACnE,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;YACtE,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;YACtE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;YAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACjD,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YACpD,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;YAC7D,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;YAC9C,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,GAAG;SACnC,CAAA;QAED,MAAM,YAAY,GAAG,MAAM,+BAA+B,CAAC,MAAM,CAAC,qBAAqB,EAAE;YACvF,aAAa,EAAE,CAAC,IAAI,CAAC;SACtB,CAAC,CAAA;QAEF,MAAM,gBAAgB,GACpB,YAAY,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC;YACjC,CAAC,CAAC,MAAM,+BAA+B,CAAC,OAAO,CAAC;gBAC5C,KAAK,EAAE;oBACL,EAAE,EAAE,MAAM,CAAC,EAAE;iBACd;aACF,CAAC;YACJ,CAAC,CAAC,IAAI,CAAA;QAEV,OAAO,gBAAgB,CAAA;IACzB,CAAC,EAAE,gDAAgD,CAAC,CAAA;AACtD,CAAC,CAAA"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { BillingKlarnaOrder } from '../../entities';
|
|
2
|
-
export const upsertBillingKlarnaOrder = async (novaDataSource, params, logger) => {
|
|
3
|
-
// id is required
|
|
4
|
-
if (!params?.deviceId || !params?.klarnaCustomerId || !params?.orderId) {
|
|
5
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingKlarnaOrder - missing required parameters');
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
// at least one field to update is required
|
|
9
|
-
if (!params?.planId &&
|
|
10
|
-
!params?.createdAt &&
|
|
11
|
-
!params?.subscriptionStart &&
|
|
12
|
-
!params?.subscriptionEnd &&
|
|
13
|
-
!params?.nextBillingDate &&
|
|
14
|
-
!params?.subscriptionValue &&
|
|
15
|
-
!params?.status &&
|
|
16
|
-
!params?.paymentType &&
|
|
17
|
-
!params?.discounts &&
|
|
18
|
-
!params?.addOns &&
|
|
19
|
-
!params?.nextBillingPeriodAmount &&
|
|
20
|
-
!params?.paymentMethodToken) {
|
|
21
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingKlarnaOrder - missing required parameters');
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
25
|
-
const billingKlarnaOrderRepository = dataSource.getRepository(BillingKlarnaOrder);
|
|
26
|
-
const now = new Date();
|
|
27
|
-
const billingKlarnaOrder = {
|
|
28
|
-
deviceId: params.deviceId ? params.deviceId : undefined,
|
|
29
|
-
klarnaCustomerId: params.klarnaCustomerId ? params.klarnaCustomerId : undefined,
|
|
30
|
-
orderId: params.orderId ? params.orderId : undefined,
|
|
31
|
-
planId: params.planId ? params.planId : undefined,
|
|
32
|
-
createdAt: params.createdAt ?? now,
|
|
33
|
-
subscriptionStart: params.subscriptionStart ? params.subscriptionStart : undefined,
|
|
34
|
-
subscriptionEnd: params.subscriptionEnd ? params.subscriptionEnd : undefined,
|
|
35
|
-
nextBillingDate: params.nextBillingDate ? params.nextBillingDate : undefined,
|
|
36
|
-
subscriptionValue: params.subscriptionValue ? params.subscriptionValue : undefined,
|
|
37
|
-
status: params.status ? params.status : undefined,
|
|
38
|
-
paymentType: params.paymentType ? params.paymentType : undefined,
|
|
39
|
-
discounts: params.discounts ? params.discounts : undefined,
|
|
40
|
-
addOns: params.addOns ? params.addOns : undefined,
|
|
41
|
-
nextBillingPeriodAmount: params.nextBillingPeriodAmount
|
|
42
|
-
? params.nextBillingPeriodAmount
|
|
43
|
-
: undefined,
|
|
44
|
-
paymentMethodToken: params.paymentMethodToken ? params.paymentMethodToken : undefined,
|
|
45
|
-
};
|
|
46
|
-
const upsertResult = await billingKlarnaOrderRepository.upsert(billingKlarnaOrder, {
|
|
47
|
-
conflictPaths: ['deviceId'],
|
|
48
|
-
});
|
|
49
|
-
const insertedOrder = upsertResult?.raw?.affectedRows > 0
|
|
50
|
-
? await billingKlarnaOrderRepository.findOne({
|
|
51
|
-
where: {
|
|
52
|
-
deviceId: params.deviceId,
|
|
53
|
-
},
|
|
54
|
-
})
|
|
55
|
-
: null;
|
|
56
|
-
return insertedOrder;
|
|
57
|
-
}, 'BillingRepository::upsertBillingKlarnaOrder');
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=upsertBillingKlarnaOrder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertBillingKlarnaOrder.js","sourceRoot":"","sources":["../../../src/repositories/billing/upsertBillingKlarnaOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAKnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,EAC3C,cAA8B,EAC9B,MAAsC,EACtC,MAAc,EACe,EAAE;IAC/B,iBAAiB;IACjB,IAAI,CAAC,MAAM,EAAE,QAAQ,IAAI,CAAC,MAAM,EAAE,gBAAgB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE;QACtE,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,2EAA2E,CAC5E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,2CAA2C;IAC3C,IACE,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,SAAS;QAClB,CAAC,MAAM,EAAE,iBAAiB;QAC1B,CAAC,MAAM,EAAE,eAAe;QACxB,CAAC,MAAM,EAAE,eAAe;QACxB,CAAC,MAAM,EAAE,iBAAiB;QAC1B,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,WAAW;QACpB,CAAC,MAAM,EAAE,SAAS;QAClB,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,uBAAuB;QAChC,CAAC,MAAM,EAAE,kBAAkB,EAC3B;QACA,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,EAE/D,EAAE;QACF,MAAM,4BAA4B,GAAG,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAA;QAEjF,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,kBAAkB,GAAG;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;YACvD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS;YAC/E,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YACpD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACjD,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,GAAG;YAClC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS;YAClF,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;YAC5E,eAAe,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS;YAC5E,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS;YAClF,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACjD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;YAChE,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YAC1D,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YACjD,uBAAuB,EAAE,MAAM,CAAC,uBAAuB;gBACrD,CAAC,CAAC,MAAM,CAAC,uBAAuB;gBAChC,CAAC,CAAC,SAAS;YACb,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;SACtF,CAAA;QAED,MAAM,YAAY,GAAG,MAAM,4BAA4B,CAAC,MAAM,CAAC,kBAAkB,EAAE;YACjF,aAAa,EAAE,CAAC,UAAU,CAAC;SAC5B,CAAC,CAAA;QAEF,MAAM,aAAa,GACjB,YAAY,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC;YACjC,CAAC,CAAC,MAAM,4BAA4B,CAAC,OAAO,CAAC;gBACzC,KAAK,EAAE;oBACL,QAAQ,EAAE,MAAM,CAAC,QAAQ;iBAC1B;aACF,CAAC;YACJ,CAAC,CAAC,IAAI,CAAA;QAEV,OAAO,aAAa,CAAA;IACtB,CAAC,EAAE,6CAA6C,CAAC,CAAA;AACnD,CAAC,CAAA"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BillingPlans } from '../../entities';
|
|
2
|
-
export const upsertBillingPlans = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.planId &&
|
|
4
|
-
!params?.targetCustomer &&
|
|
5
|
-
!params?.code &&
|
|
6
|
-
!params?.status &&
|
|
7
|
-
!params?.platform &&
|
|
8
|
-
!params?.billingFrequency &&
|
|
9
|
-
!params?.contractLength &&
|
|
10
|
-
!params?.name &&
|
|
11
|
-
!params?.price &&
|
|
12
|
-
!params?.createdAt &&
|
|
13
|
-
!params?.updatedAt) {
|
|
14
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingPlan - missing required parameters');
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
18
|
-
const billingPlansRepository = dataSource.getRepository(BillingPlans);
|
|
19
|
-
const billingPlan = {
|
|
20
|
-
planId: params.planId,
|
|
21
|
-
targetCustomer: params.targetCustomer,
|
|
22
|
-
code: params.code,
|
|
23
|
-
status: params.status,
|
|
24
|
-
platform: params.platform,
|
|
25
|
-
billingFrequency: params.billingFrequency,
|
|
26
|
-
contractLength: params.contractLength,
|
|
27
|
-
numberOfBillingCycles: params.numberOfBillingCycles ?? null,
|
|
28
|
-
description: params.description ?? null,
|
|
29
|
-
name: params.name,
|
|
30
|
-
price: params.price,
|
|
31
|
-
trialDuration: params.trialDuration ?? null,
|
|
32
|
-
trialDurationUnit: params.trialDurationUnit ?? null,
|
|
33
|
-
trialPeriod: params.trialPeriod ? params.trialPeriod : false,
|
|
34
|
-
createdAt: params.createdAt,
|
|
35
|
-
updatedAt: params.updatedAt,
|
|
36
|
-
addOns: params.addOns ?? [],
|
|
37
|
-
discounts: params.discounts ?? [],
|
|
38
|
-
startDate: params.startDate ?? null,
|
|
39
|
-
endDate: params.endDate ?? null,
|
|
40
|
-
};
|
|
41
|
-
const upsertResult = await billingPlansRepository.upsert(billingPlan, {
|
|
42
|
-
conflictPaths: ['planId'],
|
|
43
|
-
});
|
|
44
|
-
const insertedBillingPlan = upsertResult?.raw?.affectedRows > 0
|
|
45
|
-
? await billingPlansRepository.findOne({
|
|
46
|
-
where: {
|
|
47
|
-
planId: params.planId,
|
|
48
|
-
},
|
|
49
|
-
})
|
|
50
|
-
: null;
|
|
51
|
-
return insertedBillingPlan;
|
|
52
|
-
}, 'BillingRepository::upsertBillingPlan');
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=upsertBillingPlans.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertBillingPlans.js","sourceRoot":"","sources":["../../../src/repositories/billing/upsertBillingPlans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAK7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,cAA8B,EAC9B,MAA+B,EAC/B,MAAc,EACS,EAAE;IACzB,IACE,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,cAAc;QACvB,CAAC,MAAM,EAAE,IAAI;QACb,CAAC,MAAM,EAAE,MAAM;QACf,CAAC,MAAM,EAAE,QAAQ;QACjB,CAAC,MAAM,EAAE,gBAAgB;QACzB,CAAC,MAAM,EAAE,cAAc;QACvB,CAAC,MAAM,EAAE,IAAI;QACb,CAAC,MAAM,EAAE,KAAK;QACd,CAAC,MAAM,EAAE,SAAS;QAClB,CAAC,MAAM,EAAE,SAAS,EAClB;QACA,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAyB,EAAE;QAC1F,MAAM,sBAAsB,GAAG,UAAU,CAAC,aAAa,CAAC,YAAY,CAAC,CAAA;QAErE,MAAM,WAAW,GAAG;YAClB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,IAAI,IAAI;YAC3D,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;YACvC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,IAAI;YAC3C,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,IAAI,IAAI;YACnD,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK;YAC5D,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE;YAC3B,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,EAAE;YACjC,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;YACnC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,IAAI;SAChC,CAAA;QAED,MAAM,YAAY,GAAG,MAAM,sBAAsB,CAAC,MAAM,CAAC,WAAW,EAAE;YACpE,aAAa,EAAE,CAAC,QAAQ,CAAC;SAC1B,CAAC,CAAA;QAEF,MAAM,mBAAmB,GACvB,YAAY,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC;YACjC,CAAC,CAAC,MAAM,sBAAsB,CAAC,OAAO,CAAC;gBACnC,KAAK,EAAE;oBACL,MAAM,EAAE,MAAM,CAAC,MAAM;iBACtB;aACF,CAAC;YACJ,CAAC,CAAC,IAAI,CAAA;QAEV,OAAO,mBAAmB,CAAA;IAC5B,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BillingSubscriptionBraintree } from '../../entities';
|
|
2
|
-
export const upsertBillingSubscriptionBraintree = async (novaDataSource, params, logger) => {
|
|
3
|
-
// id is required
|
|
4
|
-
if (!params?.subscriptionId) {
|
|
5
|
-
logger.warn({ params }, 'BillingRepository::upsertBillingSubscriptionBraintree - missing required parameters');
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
9
|
-
const billingSubscriptionBraintreeRepository = dataSource.getRepository(BillingSubscriptionBraintree);
|
|
10
|
-
const now = new Date();
|
|
11
|
-
const billingSubscriptionBraintree = {
|
|
12
|
-
...params,
|
|
13
|
-
createdAt: params.createdAt ?? now,
|
|
14
|
-
};
|
|
15
|
-
const result = await billingSubscriptionBraintreeRepository.upsert(billingSubscriptionBraintree, {
|
|
16
|
-
conflictPaths: ['subscriptionId'],
|
|
17
|
-
});
|
|
18
|
-
return result?.raw?.affectedRows > 0;
|
|
19
|
-
}, 'BillingRepository::upsertBillingSubscriptionBraintree');
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=upsertBillingSubscriptionBraintree.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertBillingSubscriptionBraintree.js","sourceRoot":"","sources":["../../../src/repositories/billing/upsertBillingSubscriptionBraintree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAK7D,MAAM,CAAC,MAAM,kCAAkC,GAAG,KAAK,EACrD,cAA8B,EAC9B,MAAgD,EAChD,MAAc,EACI,EAAE;IACpB,iBAAiB;IACjB,IAAI,CAAC,MAAM,EAAE,cAAc,EAAE;QAC3B,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,qFAAqF,CACtF,CAAA;QACD,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,sCAAsC,GAAG,UAAU,CAAC,aAAa,CACrE,4BAA4B,CAC7B,CAAA;QAED,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,4BAA4B,GAAG;YACnC,GAAG,MAAM;YACT,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,GAAG;SACnC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,sCAAsC,CAAC,MAAM,CAChE,4BAA4B,EAC5B;YACE,aAAa,EAAE,CAAC,gBAAgB,CAAC;SAClC,CACF,CAAA;QAED,OAAO,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,CAAA;IACtC,CAAC,EAAE,uDAAuD,CAAC,CAAA;AAC7D,CAAC,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Blacklist } from '../../entities';
|
|
2
|
-
export const deleteBlackList = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.filters?.blacklistTypeId || !params?.filters?.value) {
|
|
4
|
-
logger.warn({ params }, 'BlacklistRepository::deleteBlackList - missing required parameters');
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
-
const blacklistRepository = dataSource.getRepository(Blacklist);
|
|
9
|
-
const result = await blacklistRepository
|
|
10
|
-
.createQueryBuilder()
|
|
11
|
-
.delete()
|
|
12
|
-
.where('blacklistTypeId = :blacklistTypeId', {
|
|
13
|
-
blacklistTypeId: params.filters.blacklistTypeId,
|
|
14
|
-
})
|
|
15
|
-
.andWhere('value = :value', { value: params.filters.value })
|
|
16
|
-
.execute();
|
|
17
|
-
return result.affected > 0;
|
|
18
|
-
}, 'BlacklistRepository::deleteBlackList');
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=deleteBlackList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteBlackList.js","sourceRoot":"","sources":["../../../src/repositories/blacklist/deleteBlackList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAK1C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,cAA8B,EAC9B,MAA6B,EAC7B,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,eAAe,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QAChE,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAE/D,MAAM,MAAM,GAAG,MAAM,mBAAmB;aACrC,kBAAkB,EAAE;aACpB,MAAM,EAAE;aACR,KAAK,CAAC,oCAAoC,EAAE;YAC3C,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,eAAe;SAChD,CAAC;aACD,QAAQ,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;aAC3D,OAAO,EAAE,CAAA;QAEZ,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Blacklist, BlacklistType } from '../../entities';
|
|
2
|
-
export const getBlacklists = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.filters?.blacklistType && !params?.filters?.value) {
|
|
4
|
-
logger.warn({ params }, 'BlacklistRepository::getBlacklists - missing required parameters');
|
|
5
|
-
return [];
|
|
6
|
-
}
|
|
7
|
-
// Force the query to run on master or slave
|
|
8
|
-
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
9
|
-
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
10
|
-
const blacklistRepository = dataSource.getRepository(Blacklist);
|
|
11
|
-
const queryBuilder = blacklistRepository
|
|
12
|
-
.createQueryBuilder('blacklist')
|
|
13
|
-
.innerJoin(BlacklistType, 'blacklistType', 'blacklistType.id = blacklist.blacklistTypeId')
|
|
14
|
-
.where('blacklist.blacklistTypeId = :blacklistType', {
|
|
15
|
-
blacklistType: params.filters.blacklistType,
|
|
16
|
-
})
|
|
17
|
-
.andWhere('LOWER(blacklist.value) = LOWER(:value)', { value: params.filters.value });
|
|
18
|
-
if (queryRunner) {
|
|
19
|
-
queryBuilder.setQueryRunner(queryRunner);
|
|
20
|
-
}
|
|
21
|
-
const result = await queryBuilder.getMany();
|
|
22
|
-
return result;
|
|
23
|
-
}, 'BlacklistRepository::getBlacklists', dbQueryRunner);
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=getBlacklists.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getBlacklists.js","sourceRoot":"","sources":["../../../src/repositories/blacklist/getBlacklists.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAKzD,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,cAA8B,EAC9B,MAA2B,EAC3B,MAAc,EACQ,EAAE;IACxB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QAC9D,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,kEAAkE,CAAC,CAAA;QAC3F,OAAO,EAAE,CAAA;KACV;IAED,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,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAE/D,MAAM,YAAY,GAAG,mBAAmB;aACrC,kBAAkB,CAAC,WAAW,CAAC;aAC/B,SAAS,CAAC,aAAa,EAAE,eAAe,EAAE,8CAA8C,CAAC;aACzF,KAAK,CAAC,4CAA4C,EAAE;YACnD,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,aAAa;SAC5C,CAAC;aACD,QAAQ,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAA;QAEtF,IAAI,WAAW,EAAE;YACf,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;SACzC;QAED,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE3C,OAAO,MAAM,CAAA;IACf,CAAC,EACD,oCAAoC,EACpC,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
-
import { BaseRepository } from '../baseRepository';
|
|
3
|
-
import { deleteBlackList } from './deleteBlackList';
|
|
4
|
-
import { getBlacklists } from './getBlacklists';
|
|
5
|
-
import { updateBlackList } from './updateBlackList';
|
|
6
|
-
import { upsertBlackList } from './upsertBlackList';
|
|
7
|
-
export class BlacklistRepository extends BaseRepository {
|
|
8
|
-
/**
|
|
9
|
-
* Get blacklists
|
|
10
|
-
* @param {GetBlacklistsParams} params containing information to get blacklists
|
|
11
|
-
* - filters.blacklistType The blacklist type
|
|
12
|
-
* - filters.value The value
|
|
13
|
-
* @returns The blacklists information
|
|
14
|
-
*/
|
|
15
|
-
async getBlacklists(params) {
|
|
16
|
-
this.logger.trace(params, 'BlacklistRepository::getBlacklists started with params');
|
|
17
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
18
|
-
const result = await getBlacklists(novaDataSource, params, this.logger);
|
|
19
|
-
this.logger.trace(result, 'BlacklistRepository::getBlacklists result');
|
|
20
|
-
return result;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Upsert blacklist
|
|
24
|
-
* @param {UpsertBlacklistParams} params containing information to upsert blacklist
|
|
25
|
-
* - blacklistTypeId The blacklist type id
|
|
26
|
-
* - value The value
|
|
27
|
-
* - notes The notes
|
|
28
|
-
* - createdBy The created by
|
|
29
|
-
* @returns The upserted blacklist information
|
|
30
|
-
*/
|
|
31
|
-
async upsertBlacklist(params) {
|
|
32
|
-
this.logger.trace(params, 'BlacklistRepository::upsertBlacklist started with params');
|
|
33
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
34
|
-
const result = await upsertBlackList(novaDataSource, params, this.logger);
|
|
35
|
-
this.logger.trace(result, 'BlacklistRepository::upsertBlacklist result');
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Update blacklist
|
|
40
|
-
* @param {UpdateBlacklistParams} params containing information to update blacklist
|
|
41
|
-
* - filters.blacklistTypeId The blacklist type id
|
|
42
|
-
* - filters.value The value
|
|
43
|
-
* - values.blacklistTypeId The blacklist type id
|
|
44
|
-
* - values.value The value
|
|
45
|
-
* - values.notes The notes
|
|
46
|
-
* - values.modifiedBy The modified by
|
|
47
|
-
* @returns Whether the blacklist was updated
|
|
48
|
-
*/
|
|
49
|
-
async updateBlacklist(params) {
|
|
50
|
-
this.logger.trace(params, 'BlacklistRepository::updateBlacklist started with params');
|
|
51
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
52
|
-
const result = await updateBlackList(novaDataSource, params, this.logger);
|
|
53
|
-
this.logger.trace({ result }, 'BlacklistRepository::updateBlacklist result');
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Delete blacklist
|
|
58
|
-
* @param {DeleteBlacklistParams} params containing information to delete blacklist
|
|
59
|
-
* - filters.blacklistTypeId The blacklist type id
|
|
60
|
-
* - filters.value The value
|
|
61
|
-
* @returns Whether the blacklist was deleted
|
|
62
|
-
*/
|
|
63
|
-
async deleteBlacklist(params) {
|
|
64
|
-
this.logger.trace(params, 'BlacklistRepository::deleteBlacklist started with params');
|
|
65
|
-
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
66
|
-
const result = await deleteBlackList(novaDataSource, params, this.logger);
|
|
67
|
-
this.logger.trace({ result }, 'BlacklistRepository::deleteBlacklist result');
|
|
68
|
-
return result;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/blacklist/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAOrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD;;;;;;OAMG;IACH,KAAK,CAAC,aAAa,CAAC,MAA2B;QAC7C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,wDAAwD,CAAC,CAAA;QAEnF,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,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEvE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,2CAA2C,CAAC,CAAA;QAEtE,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,eAAe,CAAC,MAA6B;QACjD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,0DAA0D,CAAC,CAAA;QAErF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,6CAA6C,CAAC,CAAA;QAExE,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CAAC,MAA6B;QACjD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,0DAA0D,CAAC,CAAA;QAErF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,6CAA6C,CAAC,CAAA;QAE5E,OAAO,MAAM,CAAA;IACf,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,eAAe,CAAC,MAA6B;QACjD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,0DAA0D,CAAC,CAAA;QAErF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,2BAA2B,CACjC,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,6CAA6C,CAAC,CAAA;QAE5E,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Blacklist } from '../../entities';
|
|
2
|
-
export const updateBlackList = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.filters?.blacklistTypeId ||
|
|
4
|
-
!params?.filters?.value ||
|
|
5
|
-
!params?.values?.blacklistTypeId ||
|
|
6
|
-
!params?.values?.value) {
|
|
7
|
-
logger.warn({ params }, 'BlacklistRepository::updateBlackList - missing required parameters');
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
11
|
-
const blacklistRepository = dataSource.getRepository(Blacklist);
|
|
12
|
-
const now = new Date();
|
|
13
|
-
const result = await blacklistRepository
|
|
14
|
-
.createQueryBuilder()
|
|
15
|
-
.update(Blacklist)
|
|
16
|
-
.set({
|
|
17
|
-
blacklistTypeId: params.values.blacklistTypeId,
|
|
18
|
-
value: params.values.value,
|
|
19
|
-
notes: params.values.notes,
|
|
20
|
-
modifiedBy: params.values.modifiedBy,
|
|
21
|
-
modifiedAt: now,
|
|
22
|
-
})
|
|
23
|
-
.where('blacklistTypeId = :blacklistTypeId', {
|
|
24
|
-
blacklistTypeId: params.filters.blacklistTypeId,
|
|
25
|
-
})
|
|
26
|
-
.andWhere('value = :value', { value: params.filters.value })
|
|
27
|
-
.execute();
|
|
28
|
-
return result.affected > 0;
|
|
29
|
-
}, 'BlacklistRepository::updateBlackList');
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=updateBlackList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateBlackList.js","sourceRoot":"","sources":["../../../src/repositories/blacklist/updateBlackList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAK1C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,cAA8B,EAC9B,MAA6B,EAC7B,MAAc,EACI,EAAE;IACpB,IACE,CAAC,MAAM,EAAE,OAAO,EAAE,eAAe;QACjC,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK;QACvB,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe;QAChC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EACtB;QACA,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAE/D,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,MAAM,GAAG,MAAM,mBAAmB;aACrC,kBAAkB,EAAE;aACpB,MAAM,CAAC,SAAS,CAAC;aACjB,GAAG,CAAC;YACH,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe;YAC9C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;YAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK;YAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU;YACpC,UAAU,EAAE,GAAG;SAChB,CAAC;aACD,KAAK,CAAC,oCAAoC,EAAE;YAC3C,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,eAAe;SAChD,CAAC;aACD,QAAQ,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;aAC3D,OAAO,EAAE,CAAA;QAEZ,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Blacklist } from '../../entities';
|
|
2
|
-
export const upsertBlackList = async (novaDataSource, params, logger) => {
|
|
3
|
-
// id is required
|
|
4
|
-
if (!params?.blacklistTypeId || !params?.value || !params?.createdBy) {
|
|
5
|
-
logger.warn({ params }, 'BlacklistRepository::upsertBlackList - missing required parameters');
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
9
|
-
const blacklistRepository = dataSource.getRepository(Blacklist);
|
|
10
|
-
const existingBlackList = await blacklistRepository.findOne({
|
|
11
|
-
where: {
|
|
12
|
-
blacklistTypeId: params.blacklistTypeId,
|
|
13
|
-
value: params.value,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const now = new Date();
|
|
17
|
-
const blackList = {
|
|
18
|
-
...existingBlackList,
|
|
19
|
-
blacklistTypeId: params.blacklistTypeId,
|
|
20
|
-
value: params.value,
|
|
21
|
-
notes: params.notes,
|
|
22
|
-
createdBy: existingBlackList ? existingBlackList.createdBy : params.createdBy,
|
|
23
|
-
createdAt: existingBlackList ? existingBlackList.createdAt : now,
|
|
24
|
-
modifiedBy: existingBlackList ? params.createdBy : null,
|
|
25
|
-
modifiedAt: existingBlackList ? now : null,
|
|
26
|
-
};
|
|
27
|
-
const upsertResult = await blacklistRepository.upsert(blackList, {
|
|
28
|
-
conflictPaths: ['blacklistTypeId', 'value'],
|
|
29
|
-
});
|
|
30
|
-
const result = upsertResult?.raw?.affectedRows > 0
|
|
31
|
-
? await blacklistRepository.findOne({
|
|
32
|
-
where: {
|
|
33
|
-
blacklistTypeId: params.blacklistTypeId,
|
|
34
|
-
value: params.value,
|
|
35
|
-
},
|
|
36
|
-
})
|
|
37
|
-
: null;
|
|
38
|
-
return result;
|
|
39
|
-
}, 'BlacklistRepository::upsertBlackList');
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=upsertBlackList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upsertBlackList.js","sourceRoot":"","sources":["../../../src/repositories/blacklist/upsertBlackList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAK1C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,cAA8B,EAC9B,MAA6B,EAC7B,MAAc,EACM,EAAE;IACtB,iBAAiB;IACjB,IAAI,CAAC,MAAM,EAAE,eAAe,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE;QACpE,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAsB,EAAE;QACvF,MAAM,mBAAmB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAE/D,MAAM,iBAAiB,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC;YAC1D,KAAK,EAAE;gBACL,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,SAAS,GAAG;YAChB,GAAG,iBAAiB;YACpB,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS;YAC7E,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG;YAChE,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;YACvD,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI;SAC3C,CAAA;QAED,MAAM,YAAY,GAAG,MAAM,mBAAmB,CAAC,MAAM,CAAC,SAAS,EAAE;YAC/D,aAAa,EAAE,CAAC,iBAAiB,EAAE,OAAO,CAAC;SAC5C,CAAC,CAAA;QAEF,MAAM,MAAM,GACV,YAAY,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC;YACjC,CAAC,CAAC,MAAM,mBAAmB,CAAC,OAAO,CAAC;gBAChC,KAAK,EAAE;oBACL,eAAe,EAAE,MAAM,CAAC,eAAe;oBACvC,KAAK,EAAE,MAAM,CAAC,KAAK;iBACpB;aACF,CAAC;YACJ,CAAC,CAAC,IAAI,CAAA;QAEV,OAAO,MAAM,CAAA;IACf,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { In } from 'typeorm';
|
|
2
|
-
import { BeaconBleMesh } from '../../entities';
|
|
3
|
-
export const addBeaconBLEMeshes = async (novaDataSource, params, logger) => {
|
|
4
|
-
if (!params?.beacons?.length || params?.beacons?.some(b => !b.bleMac) || !params.clientId) {
|
|
5
|
-
logger.warn({ params }, 'BLEMeshRepository::addBeaconsToBLEMesh missing required parameters');
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
9
|
-
const beaconBleMeshRepository = dataSource.getRepository(BeaconBleMesh);
|
|
10
|
-
const now = new Date();
|
|
11
|
-
const existingBeacons = await beaconBleMeshRepository.find({
|
|
12
|
-
where: {
|
|
13
|
-
bleMac: In(params.beacons.map(b => b.bleMac)),
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const result = await beaconBleMeshRepository.save(params.beacons.map(b => {
|
|
17
|
-
const existingBeacon = existingBeacons.find(eb => eb.bleMac === b.bleMac);
|
|
18
|
-
return {
|
|
19
|
-
...b,
|
|
20
|
-
id: existingBeacon?.id ?? undefined,
|
|
21
|
-
createdAt: now,
|
|
22
|
-
clientId: params.clientId,
|
|
23
|
-
bleMeshId: params.bleMeshId ?? null,
|
|
24
|
-
};
|
|
25
|
-
}));
|
|
26
|
-
return result;
|
|
27
|
-
}, 'BLEMeshRepository::addBeaconsToBLEMesh');
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=addBeaconBLEMesh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addBeaconBLEMesh.js","sourceRoot":"","sources":["../../../src/repositories/bleMesh/addBeaconBLEMesh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAK9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,cAA8B,EAC9B,MAAgC,EAChC,MAAc,EACY,EAAE;IAC5B,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACzF,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAA4B,EAAE;QAC7F,MAAM,uBAAuB,GAAG,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;QAEvE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,eAAe,GAAG,MAAM,uBAAuB,CAAC,IAAI,CAAC;YACzD,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;aAC9C;SACF,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,IAAI,CAC/C,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YACrB,MAAM,cAAc,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;YACzE,OAAO;gBACL,GAAG,CAAC;gBACJ,EAAE,EAAE,cAAc,EAAE,EAAE,IAAI,SAAS;gBACnC,SAAS,EAAE,GAAG;gBACd,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;aACpC,CAAA;QACH,CAAC,CAAC,CACH,CAAA;QAED,OAAO,MAAM,CAAA;IACf,CAAC,EAAE,wCAAwC,CAAC,CAAA;AAC9C,CAAC,CAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { In } from 'typeorm';
|
|
2
|
-
import { Device, DeviceBleMesh } from '../../entities';
|
|
3
|
-
export const addDevicesToBLEMesh = async (novaDataSource, params, logger) => {
|
|
4
|
-
if (!params?.imeis?.length || !params.clientId || !params.bleMeshId) {
|
|
5
|
-
logger.warn({ params }, 'BLEMeshRepository::addDevicesToBLEMesh missing required parameters');
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
9
|
-
const deviceBleMeshRepository = dataSource.getRepository(DeviceBleMesh);
|
|
10
|
-
const now = new Date();
|
|
11
|
-
const deviceRepo = dataSource.getRepository(Device);
|
|
12
|
-
const devices = await deviceRepo.find({
|
|
13
|
-
where: {
|
|
14
|
-
clientId: params.clientId,
|
|
15
|
-
imei: In(params.imeis),
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
const result = await deviceBleMeshRepository.save(params.imeis
|
|
19
|
-
.map(imei => {
|
|
20
|
-
const device = devices.find(dev => dev.imei === imei);
|
|
21
|
-
if (device == null) {
|
|
22
|
-
logger.warn({ imei }, 'BLEMeshRepository::addDevicesToBLEMesh - device not found');
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
deviceId: device.id,
|
|
27
|
-
bleMeshId: params.bleMeshId,
|
|
28
|
-
clientId: params.clientId,
|
|
29
|
-
status: params.status,
|
|
30
|
-
createdAt: now,
|
|
31
|
-
modifiedAt: now,
|
|
32
|
-
};
|
|
33
|
-
})
|
|
34
|
-
.filter(d => d != null));
|
|
35
|
-
return result;
|
|
36
|
-
}, 'BLEMeshRepository::addDevicesToBLEMesh');
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=addDevicesToBLEMesh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addDevicesToBLEMesh.js","sourceRoot":"","sources":["../../../src/repositories/bleMesh/addDevicesToBLEMesh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAKtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,cAA8B,EAC9B,MAAiC,EACjC,MAAc,EACY,EAAE;IAC5B,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE;QACnE,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,oEAAoE,CAAC,CAAA;QAC7F,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAA4B,EAAE;QAC7F,MAAM,uBAAuB,GAAG,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAA;QAEvE,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QACnD,MAAM,OAAO,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC;YACpC,KAAK,EAAE;gBACL,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;aACvB;SACF,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,IAAI,CAC/C,MAAM,CAAC,KAAK;aACT,GAAG,CAAC,IAAI,CAAC,EAAE;YACV,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;YACrD,IAAI,MAAM,IAAI,IAAI,EAAE;gBAClB,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,2DAA2D,CAAC,CAAA;gBAClF,OAAO,IAAI,CAAA;aACZ;YACD,OAAO;gBACL,QAAQ,EAAE,MAAM,CAAC,EAAE;gBACnB,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,SAAS,EAAE,GAAG;gBACd,UAAU,EAAE,GAAG;aAChB,CAAA;QACH,CAAC,CAAC;aACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAC1B,CAAA;QAED,OAAO,MAAM,CAAA;IACf,CAAC,EAAE,wCAAwC,CAAC,CAAA;AAC9C,CAAC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BLEMesh } from '../../entities';
|
|
2
|
-
export const createBLEMesh = async (novaDataSource, params, logger) => {
|
|
3
|
-
if (!params?.name || !params?.lat || !params?.lon || !params.clientId || !params.address) {
|
|
4
|
-
logger.warn({ params }, 'BLEMeshRepository::createBLEMesh missing required parameters');
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
-
const bleMeshRepository = dataSource.getRepository(BLEMesh);
|
|
9
|
-
const now = new Date();
|
|
10
|
-
const newBleMesh = {
|
|
11
|
-
...params,
|
|
12
|
-
createdAt: now,
|
|
13
|
-
modifiedAt: now,
|
|
14
|
-
};
|
|
15
|
-
const result = await bleMeshRepository.save(newBleMesh);
|
|
16
|
-
return result;
|
|
17
|
-
}, 'BLEMeshRepository::createBLEMesh');
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=createBLEMesh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createBLEMesh.js","sourceRoot":"","sources":["../../../src/repositories/bleMesh/createBLEMesh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAKxC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,cAA8B,EAC9B,MAA2B,EAC3B,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;QACxF,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,8DAA8D,CAAC,CAAA;QACvF,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,iBAAiB,GAAG,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAE3D,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtB,MAAM,UAAU,GAAG;YACjB,GAAG,MAAM;YACT,SAAS,EAAE,GAAG;YACd,UAAU,EAAE,GAAG;SAChB,CAAA;QAED,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAEvD,OAAO,MAAM,CAAA;IACf,CAAC,EAAE,kCAAkC,CAAC,CAAA;AACxC,CAAC,CAAA"}
|