@spytecgps/nova-orm 1.2.29-rc6 → 1.2.29-rc8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/acumaticaAmazonProduct.js +2 -1
- package/dist/entities/acumaticaAmazonProduct.js.map +1 -0
- package/dist/entities/acumaticaImeiIccidData.js +4 -2
- package/dist/entities/acumaticaImeiIccidData.js.map +1 -0
- package/dist/entities/acumaticaOrderShipmentDetails.js +5 -3
- package/dist/entities/acumaticaOrderShipmentDetails.js.map +1 -0
- package/dist/entities/acumaticaShipment.js +1 -0
- package/dist/entities/acumaticaShipment.js.map +1 -0
- package/dist/entities/acumaticaShipmentAmazon.js +1 -0
- package/dist/entities/acumaticaShipmentAmazon.js.map +1 -0
- package/dist/entities/aempToken.d.ts +1 -0
- package/dist/entities/aempToken.js +1 -0
- package/dist/entities/aempToken.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js +82 -0
- package/dist/entities/airflow/airflowAcumaticaExportImeiIccidData.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js +147 -0
- package/dist/entities/airflow/airflowAcumaticaExportOrderShipmentDetails.js.map +1 -0
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js +42 -0
- package/dist/entities/airflow/airflowAcumaticaShipmentsAmazon.js.map +1 -0
- package/dist/entities/alert.d.ts +1 -0
- package/dist/entities/alert.js +11 -3
- package/dist/entities/alert.js.map +1 -0
- package/dist/entities/alertType.js +1 -0
- package/dist/entities/alertType.js.map +1 -0
- package/dist/entities/appFeatureType.js +1 -0
- package/dist/entities/appFeatureType.js.map +1 -0
- package/dist/entities/{deviceTypeEvent.js → asinPromotion.js} +24 -19
- package/dist/entities/asinPromotion.js.map +1 -0
- package/dist/entities/assetCategory.js +1 -0
- package/dist/entities/assetCategory.js.map +1 -0
- package/dist/entities/beaconBleMesh.js +63 -0
- package/dist/entities/beaconBleMesh.js.map +1 -0
- package/dist/entities/billing.js +1 -0
- package/dist/entities/billing.js.map +1 -0
- package/dist/entities/billingCustomerAmazon.js +83 -0
- package/dist/entities/billingCustomerAmazon.js.map +1 -0
- package/dist/entities/billingCustomerBraintree.js +1 -0
- package/dist/entities/billingCustomerBraintree.js.map +1 -0
- package/dist/entities/billingDeviceHistory.js +1 -0
- package/dist/entities/billingDeviceHistory.js.map +1 -0
- package/dist/entities/billingDeviceTypePlan.js +64 -0
- package/dist/entities/billingDeviceTypePlan.js.map +1 -0
- package/dist/entities/billingHubspotPaymentLog.js +1 -0
- package/dist/entities/billingHubspotPaymentLog.js.map +1 -0
- package/dist/entities/billingKlarnaCustomer.js +1 -0
- package/dist/entities/billingKlarnaCustomer.js.map +1 -0
- package/dist/entities/billingKlarnaOrder.js +1 -0
- package/dist/entities/billingKlarnaOrder.js.map +1 -0
- package/dist/entities/billingPlanFeatures.js +37 -0
- package/dist/entities/billingPlanFeatures.js.map +1 -0
- package/dist/entities/billingPlans.js +127 -0
- package/dist/entities/billingPlans.js.map +1 -0
- package/dist/entities/billingStatusHistoryBraintree.js +1 -0
- package/dist/entities/billingStatusHistoryBraintree.js.map +1 -0
- package/dist/entities/billingSubscriptionAmazon.js +162 -0
- package/dist/entities/billingSubscriptionAmazon.js.map +1 -0
- package/dist/entities/billingSubscriptionBraintree.js +1 -0
- package/dist/entities/billingSubscriptionBraintree.js.map +1 -0
- package/dist/entities/blacklist.js +1 -0
- package/dist/entities/blacklist.js.map +1 -0
- package/dist/entities/blacklistType.js +1 -0
- package/dist/entities/blacklistType.js.map +1 -0
- package/dist/entities/bleMesh.js +74 -0
- package/dist/entities/bleMesh.js.map +1 -0
- package/dist/entities/bleMeshConfiguration.js +1 -1
- package/dist/entities/bleMeshConfiguration.js.map +1 -0
- package/dist/entities/boundary.js +2 -0
- package/dist/entities/boundary.js.map +1 -0
- package/dist/entities/boundaryEvent.d.ts +1 -0
- package/dist/entities/boundaryEvent.js +1 -0
- package/dist/entities/boundaryEvent.js.map +1 -0
- package/dist/entities/cellTower.js +1 -0
- package/dist/entities/cellTower.js.map +1 -0
- package/dist/entities/client.d.ts +1 -0
- package/dist/entities/client.js +1 -6
- package/dist/entities/client.js.map +1 -0
- package/dist/entities/clientAlertConfiguration.js +90 -0
- package/dist/entities/clientAlertConfiguration.js.map +1 -0
- package/dist/entities/clientAlertRecipient.d.ts +1 -0
- package/dist/entities/clientAlertRecipient.js +98 -0
- package/dist/entities/clientAlertRecipient.js.map +1 -0
- package/dist/entities/clientAppFeature.js +1 -0
- package/dist/entities/clientAppFeature.js.map +1 -0
- package/dist/entities/clientConfiguration.js +14 -2
- package/dist/entities/clientConfiguration.js.map +1 -0
- package/dist/entities/clientDeviceSetting.js +6 -0
- package/dist/entities/clientDeviceSetting.js.map +1 -0
- package/dist/entities/clientIngestorConfiguration.js +48 -0
- package/dist/entities/clientIngestorConfiguration.js.map +1 -0
- package/dist/entities/clientType.js +1 -0
- package/dist/entities/clientType.js.map +1 -0
- package/dist/entities/country.js +3 -1
- package/dist/entities/country.js.map +1 -0
- package/dist/entities/customerAttribute.js +29 -0
- package/dist/entities/customerAttribute.js.map +1 -0
- package/dist/entities/dataExport.d.ts +1 -0
- package/dist/entities/dataExport.js +74 -0
- package/dist/entities/dataExport.js.map +1 -0
- package/dist/entities/dataSourceType.js +1 -0
- package/dist/entities/dataSourceType.js.map +1 -0
- package/dist/entities/deactivation.js +1 -0
- package/dist/entities/deactivation.js.map +1 -0
- package/dist/entities/deactivationReason.js +1 -0
- package/dist/entities/deactivationReason.js.map +1 -0
- package/dist/entities/device.js +14 -0
- package/dist/entities/device.js.map +1 -0
- package/dist/entities/deviceBehavior.js +1 -0
- package/dist/entities/deviceBehavior.js.map +1 -0
- package/dist/entities/deviceBleMesh.js +78 -0
- package/dist/entities/deviceBleMesh.js.map +1 -0
- package/dist/entities/deviceBleMeshUpdateTask.d.ts +1 -0
- package/dist/entities/deviceBleMeshUpdateTask.js +83 -0
- package/dist/entities/deviceBleMeshUpdateTask.js.map +1 -0
- package/dist/entities/deviceChangesHistory.js +48 -0
- package/dist/entities/deviceChangesHistory.js.map +1 -0
- package/dist/entities/deviceCustomConfiguration.js +12 -2
- package/dist/entities/deviceCustomConfiguration.js.map +1 -0
- package/dist/entities/deviceHistory.js +1 -0
- package/dist/entities/deviceHistory.js.map +1 -0
- package/dist/entities/deviceModelListener.js +1 -0
- package/dist/entities/deviceModelListener.js.map +1 -0
- package/dist/entities/devicePairing.js +16 -0
- package/dist/entities/devicePairing.js.map +1 -0
- package/dist/entities/devicePromotion.js +6 -73
- package/dist/entities/devicePromotion.js.map +1 -0
- package/dist/entities/deviceReplacement.d.ts +1 -0
- package/dist/entities/deviceReplacement.js +1 -0
- package/dist/entities/deviceReplacement.js.map +1 -0
- package/dist/entities/deviceStatus.js +61 -0
- package/dist/entities/deviceStatus.js.map +1 -0
- package/dist/entities/deviceTask.js +1 -0
- package/dist/entities/deviceTask.js.map +1 -0
- package/dist/entities/deviceType.js +2 -7
- package/dist/entities/deviceType.js.map +1 -0
- package/dist/entities/deviceTypeFeature.js +1 -0
- package/dist/entities/deviceTypeFeature.js.map +1 -0
- package/dist/entities/deviceTypeFirmware.js +1 -0
- package/dist/entities/deviceTypeFirmware.js.map +1 -0
- package/dist/entities/deviceTypePromotion.js +37 -0
- package/dist/entities/deviceTypePromotion.js.map +1 -0
- package/dist/entities/emailDomain.js +39 -0
- package/dist/entities/emailDomain.js.map +1 -0
- package/dist/entities/entityTag.js +41 -17
- package/dist/entities/entityTag.js.map +1 -0
- package/dist/entities/entityType.js +1 -0
- package/dist/entities/entityType.js.map +1 -0
- package/dist/entities/feature.js +1 -0
- package/dist/entities/feature.js.map +1 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.js +1 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/entities/firmwareUpgradeTask.d.ts +1 -0
- package/dist/entities/firmwareUpgradeTask.js +3 -0
- package/dist/entities/firmwareUpgradeTask.js.map +1 -0
- package/dist/entities/iccidStatus.js +1 -0
- package/dist/entities/iccidStatus.js.map +1 -0
- package/dist/entities/imeiIccidCarrier.js +1 -0
- package/dist/entities/imeiIccidCarrier.js.map +1 -0
- package/dist/entities/imeiIccidHistory.js +1 -0
- package/dist/entities/imeiIccidHistory.js.map +1 -0
- package/dist/entities/{event.js → imeiIccidImport.js} +16 -20
- package/dist/entities/imeiIccidImport.js.map +1 -0
- package/dist/entities/index.js +29 -8
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/industry.js +1 -0
- package/dist/entities/industry.js.map +1 -0
- package/dist/entities/latestPosition.d.ts +1 -0
- package/dist/entities/latestPosition.js +6 -0
- package/dist/entities/latestPosition.js.map +1 -0
- package/dist/entities/latestPositionMigration.d.ts +1 -0
- package/dist/entities/latestPositionMigration.js +1 -0
- package/dist/entities/latestPositionMigration.js.map +1 -0
- package/dist/entities/latestPositionMigrationBatch.js +1 -0
- package/dist/entities/latestPositionMigrationBatch.js.map +1 -0
- package/dist/entities/latestUserAppInfo.d.ts +1 -0
- package/dist/entities/latestUserAppInfo.js +43 -0
- package/dist/entities/latestUserAppInfo.js.map +1 -0
- package/dist/entities/liveLink.js +126 -0
- package/dist/entities/liveLink.js.map +1 -0
- package/dist/entities/magento2Gps.js +7 -4
- package/dist/entities/magento2Gps.js.map +1 -0
- package/dist/entities/magento2Plan.js +1 -0
- package/dist/entities/magento2Plan.js.map +1 -0
- package/dist/entities/marketplacePromotion.js +37 -0
- package/dist/entities/marketplacePromotion.js.map +1 -0
- package/dist/entities/mobileNetwork.js +1 -0
- package/dist/entities/mobileNetwork.js.map +1 -0
- package/dist/entities/notificationRecipient.d.ts +1 -0
- package/dist/entities/notificationRecipient.js +29 -1
- package/dist/entities/notificationRecipient.js.map +1 -0
- package/dist/entities/orderShipmentInternational.js +67 -0
- package/dist/entities/orderShipmentInternational.js.map +1 -0
- package/dist/entities/organization.d.ts +1 -0
- package/dist/entities/organization.js +1 -0
- package/dist/entities/organization.js.map +1 -0
- package/dist/entities/plan.js +1 -0
- package/dist/entities/plan.js.map +1 -0
- package/dist/entities/position.d.ts +1 -0
- package/dist/entities/position.js +6 -2
- package/dist/entities/position.js.map +1 -0
- package/dist/entities/positionMigration.d.ts +1 -0
- package/dist/entities/positionMigration.js +1 -0
- package/dist/entities/positionMigration.js.map +1 -0
- package/dist/entities/positionMigrationBatch.js +1 -0
- package/dist/entities/positionMigrationBatch.js.map +1 -0
- package/dist/entities/promotion.js +47 -45
- package/dist/entities/promotion.js.map +1 -0
- package/dist/entities/promotionHistory.js +90 -0
- package/dist/entities/promotionHistory.js.map +1 -0
- package/dist/entities/securityRole.js +8 -1
- package/dist/entities/securityRole.js.map +1 -0
- package/dist/entities/serviceProvider.js +1 -0
- package/dist/entities/serviceProvider.js.map +1 -0
- package/dist/entities/serviceProviderProduct.js +2 -1
- package/dist/entities/serviceProviderProduct.js.map +1 -0
- package/dist/entities/serviceProviderProductNetwork.js +1 -0
- package/dist/entities/serviceProviderProductNetwork.js.map +1 -0
- package/dist/entities/serviceProviderProductType.js +1 -0
- package/dist/entities/serviceProviderProductType.js.map +1 -0
- package/dist/entities/sim.js +1 -0
- package/dist/entities/sim.js.map +1 -0
- package/dist/entities/subscriptionHistoricalPrice.js +151 -0
- package/dist/entities/subscriptionHistoricalPrice.js.map +1 -0
- package/dist/entities/tag.js +68 -0
- package/dist/entities/tag.js.map +1 -0
- package/dist/entities/task.js +41 -2
- package/dist/entities/task.js.map +1 -0
- package/dist/entities/taskSchedule.js +7 -1
- package/dist/entities/taskSchedule.js.map +1 -0
- package/dist/entities/trip.d.ts +1 -0
- package/dist/entities/trip.js +12 -0
- package/dist/entities/trip.js.map +1 -0
- package/dist/entities/tripCompletionStatus.js +1 -0
- package/dist/entities/tripCompletionStatus.js.map +1 -0
- package/dist/entities/tripPosition.js +1 -0
- package/dist/entities/tripPosition.js.map +1 -0
- package/dist/entities/user.d.ts +1 -0
- package/dist/entities/user.js +23 -1
- package/dist/entities/user.js.map +1 -0
- package/dist/entities/userActivation.d.ts +1 -0
- package/dist/entities/userActivation.js +1 -0
- package/dist/entities/userActivation.js.map +1 -0
- package/dist/entities/userActivationDevice.js +3 -2
- package/dist/entities/userActivationDevice.js.map +1 -0
- package/dist/entities/userActivationEvent.d.ts +1 -0
- package/dist/entities/userActivationEvent.js +1 -0
- package/dist/entities/userActivationEvent.js.map +1 -0
- package/dist/entities/userActivationMetric.d.ts +1 -0
- package/dist/entities/userActivationMetric.js +1 -0
- package/dist/entities/userActivationMetric.js.map +1 -0
- package/dist/entities/userAlertComplain.d.ts +1 -0
- package/dist/entities/userAlertComplain.js +1 -0
- package/dist/entities/userAlertComplain.js.map +1 -0
- package/dist/entities/userAlertConfiguration.d.ts +1 -0
- package/dist/entities/userAlertConfiguration.js +37 -3
- package/dist/entities/userAlertConfiguration.js.map +1 -0
- package/dist/entities/userAlertNotificationsConfig.d.ts +1 -0
- package/dist/entities/userAlertNotificationsConfig.js +91 -0
- package/dist/entities/userAlertNotificationsConfig.js.map +1 -0
- package/dist/entities/userAppFeedback.d.ts +1 -0
- package/dist/entities/userAppFeedback.js +1 -0
- package/dist/entities/userAppFeedback.js.map +1 -0
- package/dist/entities/userAppIncident.d.ts +1 -0
- package/dist/entities/userAppIncident.js +1 -0
- package/dist/entities/userAppIncident.js.map +1 -0
- package/dist/entities/userConfiguration.d.ts +1 -0
- package/dist/entities/userConfiguration.js +1 -0
- package/dist/entities/userConfiguration.js.map +1 -0
- package/dist/entities/userDataDeletionRequest.d.ts +1 -0
- package/dist/entities/userDataDeletionRequest.js +3 -1
- package/dist/entities/userDataDeletionRequest.js.map +1 -0
- package/dist/entities/userDeviceBehaviorTask.d.ts +1 -0
- package/dist/entities/userDeviceBehaviorTask.js +1 -0
- package/dist/entities/userDeviceBehaviorTask.js.map +1 -0
- package/dist/entities/userInvitation.d.ts +2 -2
- package/dist/entities/userInvitation.js +14 -1
- package/dist/entities/userInvitation.js.map +1 -0
- package/dist/entities/userRatingRequest.d.ts +1 -0
- package/dist/entities/userRatingRequest.js +1 -0
- package/dist/entities/userRatingRequest.js.map +1 -0
- package/dist/entities/userRegistrationAttempt.d.ts +1 -0
- package/dist/entities/userRegistrationAttempt.js +1 -0
- package/dist/entities/userRegistrationAttempt.js.map +1 -0
- package/dist/entities/userSecurityRole.d.ts +1 -0
- package/dist/entities/userSecurityRole.js +14 -1
- package/dist/entities/userSecurityRole.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -0
- package/dist/migration/1684483704434-addLowerCaseIndex.js +1 -0
- package/dist/migration/1684483704434-addLowerCaseIndex.js.map +1 -0
- package/dist/novaDataSource.js +99 -16
- package/dist/novaDataSource.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +15 -3
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js +23 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentAmazon.js.map +1 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +9 -3
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js.map +1 -0
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +8 -2
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js.map +1 -0
- package/dist/repositories/acumatica/getOrderShipmentInternational.js +23 -0
- package/dist/repositories/acumatica/getOrderShipmentInternational.js.map +1 -0
- package/dist/repositories/acumatica/index.js +32 -3
- package/dist/repositories/acumatica/index.js.map +1 -0
- package/dist/repositories/aempToken/createAempToken.js +1 -0
- package/dist/repositories/aempToken/createAempToken.js.map +1 -0
- package/dist/repositories/aempToken/deleteAempTokens.js +4 -3
- package/dist/repositories/aempToken/deleteAempTokens.js.map +1 -0
- package/dist/repositories/aempToken/getAempTokens.js +12 -4
- package/dist/repositories/aempToken/getAempTokens.js.map +1 -0
- package/dist/repositories/aempToken/index.js +4 -3
- package/dist/repositories/aempToken/index.js.map +1 -0
- package/dist/repositories/alertTypes/getAlertTypes.js +8 -2
- package/dist/repositories/alertTypes/getAlertTypes.js.map +1 -0
- package/dist/repositories/alertTypes/index.js +2 -1
- package/dist/repositories/alertTypes/index.js.map +1 -0
- package/dist/repositories/alerts/createAlert.js +5 -0
- package/dist/repositories/alerts/createAlert.js.map +1 -0
- package/dist/repositories/alerts/createUserAlertComplain.js +1 -0
- package/dist/repositories/alerts/createUserAlertComplain.js.map +1 -0
- package/dist/repositories/alerts/getAlertsReportByClient.js +5 -0
- package/dist/repositories/alerts/getAlertsReportByClient.js.map +1 -0
- package/dist/repositories/alerts/getAlertsReportByUser.js +5 -0
- package/dist/repositories/alerts/getAlertsReportByUser.js.map +1 -0
- package/dist/repositories/alerts/index.js +5 -4
- package/dist/repositories/alerts/index.js.map +1 -0
- package/dist/repositories/appFeatures/createAppFeatureType.js +1 -0
- package/dist/repositories/appFeatures/createAppFeatureType.js.map +1 -0
- package/dist/repositories/appFeatures/createClientAppFeature.js +1 -0
- package/dist/repositories/appFeatures/createClientAppFeature.js.map +1 -0
- package/dist/repositories/appFeatures/getClientAppFeatures.js +8 -2
- package/dist/repositories/appFeatures/getClientAppFeatures.js.map +1 -0
- package/dist/repositories/appFeatures/index.js +4 -3
- package/dist/repositories/appFeatures/index.js.map +1 -0
- package/dist/repositories/assetCategories/getAssetCategories.js +15 -4
- package/dist/repositories/assetCategories/getAssetCategories.js.map +1 -0
- package/dist/repositories/assetCategories/index.js +4 -3
- package/dist/repositories/assetCategories/index.js.map +1 -0
- package/dist/repositories/baseRepository.js +16 -1
- package/dist/repositories/baseRepository.js.map +1 -0
- package/dist/repositories/billing/createBilling.js +1 -0
- package/dist/repositories/billing/createBilling.js.map +1 -0
- package/dist/repositories/billing/createBillingDeviceHistory.js +2 -1
- package/dist/repositories/billing/createBillingDeviceHistory.js.map +1 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js +1 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js.map +1 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +1 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js.map +1 -0
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js +8 -2
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js.map +1 -0
- package/dist/repositories/billing/getBillingDeviceTypePlans.js +22 -0
- package/dist/repositories/billing/getBillingDeviceTypePlans.js.map +1 -0
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +8 -2
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js.map +1 -0
- package/dist/repositories/billing/getBillingPlans.js +68 -0
- package/dist/repositories/billing/getBillingPlans.js.map +1 -0
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +8 -2
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js.map +1 -0
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +10 -4
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js.map +1 -0
- package/dist/repositories/billing/getBillings.js +12 -6
- package/dist/repositories/billing/getBillings.js.map +1 -0
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js +49 -0
- package/dist/repositories/billing/getBraintreePastDueSubscriptions.js.map +1 -0
- package/dist/repositories/billing/getCanceledImeis.js +19 -7
- package/dist/repositories/billing/getCanceledImeis.js.map +1 -0
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +39 -19
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js.map +1 -0
- package/dist/repositories/billing/getChurnStatusByClientId.js +14 -4
- package/dist/repositories/billing/getChurnStatusByClientId.js.map +1 -0
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +8 -2
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js.map +1 -0
- package/dist/repositories/billing/getMagentoPlan.js +8 -2
- package/dist/repositories/billing/getMagentoPlan.js.map +1 -0
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js +8 -2
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js.map +1 -0
- package/dist/repositories/billing/index.js +93 -21
- package/dist/repositories/billing/index.js.map +1 -0
- package/dist/repositories/billing/updateBilling.js +1 -0
- package/dist/repositories/billing/updateBilling.js.map +1 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.js +1 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.js.map +1 -0
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js +11 -1
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js.map +1 -0
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js +67 -0
- package/dist/repositories/billing/upsertBillingDeviceTypePlan.js.map +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js.map +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js +1 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js.map +1 -0
- package/dist/repositories/billing/upsertBillingPlans.js +54 -0
- package/dist/repositories/billing/upsertBillingPlans.js.map +1 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +1 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js.map +1 -0
- package/dist/repositories/blacklist/deleteBlackList.js +20 -0
- package/dist/repositories/blacklist/deleteBlackList.js.map +1 -0
- package/dist/repositories/blacklist/getBlacklists.js +8 -2
- package/dist/repositories/blacklist/getBlacklists.js.map +1 -0
- package/dist/repositories/blacklist/index.js +53 -1
- package/dist/repositories/blacklist/index.js.map +1 -0
- package/dist/repositories/blacklist/updateBlackList.js +31 -0
- package/dist/repositories/blacklist/updateBlackList.js.map +1 -0
- package/dist/repositories/blacklist/upsertBlackList.js +41 -0
- package/dist/repositories/blacklist/upsertBlackList.js.map +1 -0
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js +29 -0
- package/dist/repositories/bleMesh/addBeaconBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js +38 -0
- package/dist/repositories/bleMesh/addDevicesToBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/createBLEMesh.js +19 -0
- package/dist/repositories/bleMesh/createBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js +47 -0
- package/dist/repositories/bleMesh/createDeviceBLEMeshUpdateTask.js.map +1 -0
- package/dist/repositories/bleMesh/getBLEMeshes.js +46 -0
- package/dist/repositories/bleMesh/getBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js +44 -0
- package/dist/repositories/bleMesh/getBeaconBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js +56 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshUpdateTasks.js.map +1 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js +50 -0
- package/dist/repositories/bleMesh/getDeviceBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/index.js +269 -0
- package/dist/repositories/bleMesh/index.js.map +1 -0
- package/dist/repositories/bleMesh/removeBLEMesh.js +22 -0
- package/dist/repositories/bleMesh/removeBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js +21 -0
- package/dist/repositories/bleMesh/removeBeaconBLEMeshes.js.map +1 -0
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js +28 -0
- package/dist/repositories/bleMesh/removeBeaconsFromBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js +25 -0
- package/dist/repositories/bleMesh/removeDevicesFromBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateBLEMesh.js +32 -0
- package/dist/repositories/bleMesh/updateBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js +27 -0
- package/dist/repositories/bleMesh/updateBeaconBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js +30 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMesh.js.map +1 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js +27 -0
- package/dist/repositories/bleMesh/updateDevicesBLEMeshUpdateTask.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js +1 -0
- package/dist/repositories/bleMeshConfiguration/createBLEMeshConfigurationParams.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js +1 -0
- package/dist/repositories/bleMeshConfiguration/deleteBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js +8 -2
- package/dist/repositories/bleMeshConfiguration/getBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/index.js +8 -4
- package/dist/repositories/bleMeshConfiguration/index.js.map +1 -0
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js +1 -0
- package/dist/repositories/bleMeshConfiguration/updateBLEMeshConfiguration.js.map +1 -0
- package/dist/repositories/boundaries/createBoundary.js +1 -0
- package/dist/repositories/boundaries/createBoundary.js.map +1 -0
- package/dist/repositories/boundaries/deleteBoundary.js +1 -0
- package/dist/repositories/boundaries/deleteBoundary.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesByClientId.js +45 -8
- package/dist/repositories/boundaries/getBoundariesByClientId.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +12 -7
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js.map +1 -0
- package/dist/repositories/boundaries/getBoundariesReport.js +8 -2
- package/dist/repositories/boundaries/getBoundariesReport.js.map +1 -0
- package/dist/repositories/boundaries/getBoundaryById.js +14 -5
- package/dist/repositories/boundaries/getBoundaryById.js.map +1 -0
- package/dist/repositories/boundaries/index.js +10 -9
- package/dist/repositories/boundaries/index.js.map +1 -0
- package/dist/repositories/boundaries/processBoundaryEvent.js +1 -0
- package/dist/repositories/boundaries/processBoundaryEvent.js.map +1 -0
- package/dist/repositories/boundaries/updateBoundary.js +1 -0
- package/dist/repositories/boundaries/updateBoundary.js.map +1 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.js +1 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js +25 -0
- package/dist/repositories/clientAlertConfiguration/createClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js +25 -0
- package/dist/repositories/clientAlertConfiguration/deleteClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js +44 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertConfigurations.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js +40 -0
- package/dist/repositories/clientAlertConfiguration/getClientAlertRecipients.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js +73 -0
- package/dist/repositories/clientAlertConfiguration/getUsersDataForClientAlertConfig.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/index.js +139 -0
- package/dist/repositories/clientAlertConfiguration/index.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js +51 -0
- package/dist/repositories/clientAlertConfiguration/isUserAllowedForAlertConfig.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js +175 -0
- package/dist/repositories/clientAlertConfiguration/setClientAlertRecipients.js.map +1 -0
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js +43 -0
- package/dist/repositories/clientAlertConfiguration/updateClientAlertConfiguration.js.map +1 -0
- package/dist/repositories/clients/createClient.js +1 -0
- package/dist/repositories/clients/createClient.js.map +1 -0
- package/dist/repositories/clients/createClientConfiguration.js +3 -0
- package/dist/repositories/clients/createClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/createClientIngestorConfiguration.js +21 -0
- package/dist/repositories/clients/createClientIngestorConfiguration.js.map +1 -0
- package/dist/repositories/clients/createCustomerAttribute.js +7 -1
- package/dist/repositories/clients/createCustomerAttribute.js.map +1 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.js +1 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.js.map +1 -0
- package/dist/repositories/clients/getClient.js +8 -2
- package/dist/repositories/clients/getClient.js.map +1 -0
- package/dist/repositories/clients/getClientConfiguration.js +23 -6
- package/dist/repositories/clients/getClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/getClientIngestorConfigurations.js +25 -0
- package/dist/repositories/clients/getClientIngestorConfigurations.js.map +1 -0
- package/dist/repositories/clients/getClients.js +8 -2
- package/dist/repositories/clients/getClients.js.map +1 -0
- package/dist/repositories/clients/getCustomerAttribute.js +13 -4
- package/dist/repositories/clients/getCustomerAttribute.js.map +1 -0
- package/dist/repositories/clients/index.js +47 -11
- package/dist/repositories/clients/index.js.map +1 -0
- package/dist/repositories/clients/updateClient.js +1 -0
- package/dist/repositories/clients/updateClient.js.map +1 -0
- package/dist/repositories/clients/updateClientConfiguration.js +8 -10
- package/dist/repositories/clients/updateClientConfiguration.js.map +1 -0
- package/dist/repositories/clients/updateCustomerAttribute.js +7 -7
- package/dist/repositories/clients/updateCustomerAttribute.js.map +1 -0
- package/dist/repositories/countries/getCountries.js +8 -2
- package/dist/repositories/countries/getCountries.js.map +1 -0
- package/dist/repositories/countries/getCountry.js +10 -4
- package/dist/repositories/countries/getCountry.js.map +1 -0
- package/dist/repositories/countries/index.js +3 -2
- package/dist/repositories/countries/index.js.map +1 -0
- package/dist/repositories/dataExports/createDataExports.js +32 -0
- package/dist/repositories/dataExports/createDataExports.js.map +1 -0
- package/dist/repositories/dataExports/getDataExports.js +47 -0
- package/dist/repositories/dataExports/getDataExports.js.map +1 -0
- package/dist/repositories/dataExports/index.js +59 -0
- package/dist/repositories/dataExports/index.js.map +1 -0
- package/dist/repositories/dataExports/updateDataExports.js +26 -0
- package/dist/repositories/dataExports/updateDataExports.js.map +1 -0
- package/dist/repositories/deactivations/createDeactivation.js +1 -0
- package/dist/repositories/deactivations/createDeactivation.js.map +1 -0
- package/dist/repositories/deactivations/getDeactivationReasons.js +8 -2
- package/dist/repositories/deactivations/getDeactivationReasons.js.map +1 -0
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js +8 -2
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js.map +1 -0
- package/dist/repositories/deactivations/index.js +4 -3
- package/dist/repositories/deactivations/index.js.map +1 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +1 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +8 -2
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +9 -3
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js.map +1 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +8 -2
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js.map +1 -0
- package/dist/repositories/deviceBehaviors/index.js +7 -42
- package/dist/repositories/deviceBehaviors/index.js.map +1 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +1 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js.map +1 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +1 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js.map +1 -0
- package/dist/repositories/devicePairings/createDevicePairing.js +1 -0
- package/dist/repositories/devicePairings/createDevicePairing.js.map +1 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.js +1 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairings.js +8 -2
- package/dist/repositories/devicePairings/getDevicePairings.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js +28 -0
- package/dist/repositories/devicePairings/getDevicePairingsByClientId.js.map +1 -0
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js +8 -2
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js.map +1 -0
- package/dist/repositories/devicePairings/index.js +22 -5
- package/dist/repositories/devicePairings/index.js.map +1 -0
- package/dist/repositories/devicePairings/updateDevicePairing.js +5 -1
- package/dist/repositories/devicePairings/updateDevicePairing.js.map +1 -0
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js +207 -0
- package/dist/repositories/deviceStatus/extendedDeviceStatus.js.map +1 -0
- package/dist/repositories/deviceStatus/getDeviceStatuses.js +88 -0
- package/dist/repositories/deviceStatus/getDeviceStatuses.js.map +1 -0
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js +42 -0
- package/dist/repositories/deviceStatus/getDeviceStatusesCount.js.map +1 -0
- package/dist/repositories/deviceStatus/index.js +63 -0
- package/dist/repositories/deviceStatus/index.js.map +1 -0
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js +47 -0
- package/dist/repositories/deviceStatus/upsertDeviceStatuses.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js +20 -0
- package/dist/repositories/deviceTypeFeature/bulkCreateDeviceTypeFeature.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js +22 -0
- package/dist/repositories/deviceTypeFeature/deleteDeviceTypeFeature.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js +25 -0
- package/dist/repositories/deviceTypeFeature/getDeviceTypeFeatures.js.map +1 -0
- package/dist/repositories/deviceTypeFeature/index.js +48 -0
- package/dist/repositories/deviceTypeFeature/index.js.map +1 -0
- package/dist/repositories/devices/addDeviceChangesHistory.js +35 -0
- package/dist/repositories/devices/addDeviceChangesHistory.js.map +1 -0
- package/dist/repositories/devices/allImeisAreActiveForClient.js +8 -2
- package/dist/repositories/devices/allImeisAreActiveForClient.js.map +1 -0
- package/dist/repositories/devices/createClientDeviceSetting.js +3 -1
- package/dist/repositories/devices/createClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/createDevice.js +2 -1
- package/dist/repositories/devices/createDevice.js.map +1 -0
- package/dist/repositories/devices/createDeviceReplacement.js +2 -1
- package/dist/repositories/devices/createDeviceReplacement.js.map +1 -0
- package/dist/repositories/devices/createDeviceType.js +2 -1
- package/dist/repositories/devices/createDeviceType.js.map +1 -0
- package/dist/repositories/devices/createImeiIccidCarrier.js +19 -0
- package/dist/repositories/devices/createImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/deleteDevice.js +2 -1
- package/dist/repositories/devices/deleteDevice.js.map +1 -0
- package/dist/repositories/devices/generateDeviceIdentifierKey.js +2 -1
- package/dist/repositories/devices/generateDeviceIdentifierKey.js.map +1 -0
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +13 -3
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js.map +1 -0
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +8 -2
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js.map +1 -0
- package/dist/repositories/devices/getClientDeviceSetting.js +8 -2
- package/dist/repositories/devices/getClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/getClientDeviceSettings.js +8 -2
- package/dist/repositories/devices/getClientDeviceSettings.js.map +1 -0
- package/dist/repositories/devices/getDevice.js +8 -2
- package/dist/repositories/devices/getDevice.js.map +1 -0
- package/dist/repositories/devices/getDeviceChangesHistory.js +28 -0
- package/dist/repositories/devices/getDeviceChangesHistory.js.map +1 -0
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js +24 -0
- package/dist/repositories/devices/getDeviceChangesHistoryAssignedToValuesByClient.js.map +1 -0
- package/dist/repositories/devices/getDeviceCustomConfig.js +8 -2
- package/dist/repositories/devices/getDeviceCustomConfig.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypeByImei.js +8 -2
- package/dist/repositories/devices/getDeviceTypeByImei.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypes.js +41 -18
- package/dist/repositories/devices/getDeviceTypes.js.map +1 -0
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +8 -2
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js.map +1 -0
- package/dist/repositories/devices/getDeviceWithUsersInfo.js +8 -2
- package/dist/repositories/devices/getDeviceWithUsersInfo.js.map +1 -0
- package/dist/repositories/devices/getDevices.js +56 -7
- package/dist/repositories/devices/getDevices.js.map +1 -0
- package/dist/repositories/devices/getDevicesCountByStatus.js +34 -0
- package/dist/repositories/devices/getDevicesCountByStatus.js.map +1 -0
- package/dist/repositories/devices/getFilteredImeisWithStatus.js +8 -2
- package/dist/repositories/devices/getFilteredImeisWithStatus.js.map +1 -0
- package/dist/repositories/devices/getIccidStatus.js +8 -2
- package/dist/repositories/devices/getIccidStatus.js.map +1 -0
- package/dist/repositories/devices/getImeiIccidCarrier.js +8 -2
- package/dist/repositories/devices/getImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/getImeiIccidCarriers.js +8 -2
- package/dist/repositories/devices/getImeiIccidCarriers.js.map +1 -0
- package/dist/repositories/devices/getServiceProviderProduct.js +23 -0
- package/dist/repositories/devices/getServiceProviderProduct.js.map +1 -0
- package/dist/repositories/devices/index.js +143 -59
- package/dist/repositories/devices/index.js.map +1 -0
- package/dist/repositories/devices/updateClientDeviceSetting.js +5 -2
- package/dist/repositories/devices/updateClientDeviceSetting.js.map +1 -0
- package/dist/repositories/devices/updateDevice.js +5 -14
- package/dist/repositories/devices/updateDevice.js.map +1 -0
- package/dist/repositories/devices/updateDeviceType.js +2 -1
- package/dist/repositories/devices/updateDeviceType.js.map +1 -0
- package/dist/repositories/devices/updateIccidStatus.js +2 -1
- package/dist/repositories/devices/updateIccidStatus.js.map +1 -0
- package/dist/repositories/devices/updateImeiIccidCarrier.js +2 -1
- package/dist/repositories/devices/updateImeiIccidCarrier.js.map +1 -0
- package/dist/repositories/devices/upsertDeviceCustomConfig.js +15 -0
- package/dist/repositories/devices/upsertDeviceCustomConfig.js.map +1 -0
- package/dist/repositories/devices/upsertIccidStatus.js +2 -1
- package/dist/repositories/devices/upsertIccidStatus.js.map +1 -0
- package/dist/repositories/entityTags/bulkCreateEntityTag.js +21 -0
- package/dist/repositories/entityTags/bulkCreateEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js +28 -0
- package/dist/repositories/entityTags/bulkDeleteEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/createEntityTag.js +20 -0
- package/dist/repositories/entityTags/createEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/deleteEntityTag.js +22 -0
- package/dist/repositories/entityTags/deleteEntityTag.js.map +1 -0
- package/dist/repositories/entityTags/deleteEntityTagById.js +13 -0
- package/dist/repositories/entityTags/deleteEntityTagById.js.map +1 -0
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js +38 -0
- package/dist/repositories/entityTags/enforceEntityTagsByEntity.js.map +1 -0
- package/dist/repositories/entityTags/getEntityTagById.js +23 -0
- package/dist/repositories/entityTags/getEntityTagById.js.map +1 -0
- package/dist/repositories/entityTags/index.js +104 -0
- package/dist/repositories/entityTags/index.js.map +1 -0
- package/dist/repositories/entityTags/searchEntityTags.js +46 -0
- package/dist/repositories/entityTags/searchEntityTags.js.map +1 -0
- package/dist/repositories/features/createFeature.js +21 -0
- package/dist/repositories/features/createFeature.js.map +1 -0
- package/dist/repositories/features/deleteFeature.js +17 -0
- package/dist/repositories/features/deleteFeature.js.map +1 -0
- package/dist/repositories/features/getFeatures.js +25 -0
- package/dist/repositories/features/getFeatures.js.map +1 -0
- package/dist/repositories/features/index.js +61 -0
- package/dist/repositories/features/index.js.map +1 -0
- package/dist/repositories/features/upsertFeature.js +23 -0
- package/dist/repositories/features/upsertFeature.js.map +1 -0
- package/dist/repositories/firmwares/createDeviceFirmware.js +1 -0
- package/dist/repositories/firmwares/createDeviceFirmware.js.map +1 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +1 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +1 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js.map +1 -0
- package/dist/repositories/firmwares/getDeviceFirmwares.js +28 -20
- package/dist/repositories/firmwares/getDeviceFirmwares.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +8 -2
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +8 -2
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js.map +1 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +8 -2
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js.map +1 -0
- package/dist/repositories/firmwares/index.js +10 -9
- package/dist/repositories/firmwares/index.js.map +1 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.js +1 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.js.map +1 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +1 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js.map +1 -0
- package/dist/repositories/index.js +13 -1
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js +27 -0
- package/dist/repositories/latestUserAppInfo/getLatestUserAppInfo.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/index.js +37 -0
- package/dist/repositories/latestUserAppInfo/index.js.map +1 -0
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js +29 -0
- package/dist/repositories/latestUserAppInfo/upsertLatestUserAppInfo.js.map +1 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js +2 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js.map +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +9 -3
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js.map +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +1 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js.map +1 -0
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js +22 -2
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js.map +1 -0
- package/dist/repositories/notificationRecipients/index.js +8 -7
- package/dist/repositories/notificationRecipients/index.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +1 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js.map +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +1 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js.map +1 -0
- package/dist/repositories/positions/createPosition.js +3 -0
- package/dist/repositories/positions/createPosition.js.map +1 -0
- package/dist/repositories/positions/getBatteryReportForDevice.js +47 -0
- package/dist/repositories/positions/getBatteryReportForDevice.js.map +1 -0
- package/dist/repositories/positions/getLatestPositionByImei.js +9 -2
- package/dist/repositories/positions/getLatestPositionByImei.js.map +1 -0
- package/dist/repositories/positions/getPositionsByImei.js +9 -2
- package/dist/repositories/positions/getPositionsByImei.js.map +1 -0
- package/dist/repositories/positions/getPositionsReportByClient.js +10 -1
- package/dist/repositories/positions/getPositionsReportByClient.js.map +1 -0
- package/dist/repositories/positions/index.js +17 -8
- package/dist/repositories/positions/index.js.map +1 -0
- package/dist/repositories/positions/mapping/mapToPositionReport.js +21 -0
- package/dist/repositories/positions/mapping/mapToPositionReport.js.map +1 -0
- package/dist/repositories/positions/upsertLatestPosition.js +1 -0
- package/dist/repositories/positions/upsertLatestPosition.js.map +1 -0
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js +15 -0
- package/dist/repositories/promotions/bulkInsertDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js +15 -0
- package/dist/repositories/promotions/bulkInsertMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/createPromotion.js +30 -0
- package/dist/repositories/promotions/createPromotion.js.map +1 -0
- package/dist/repositories/promotions/createPromotionHistory.js +18 -0
- package/dist/repositories/promotions/createPromotionHistory.js.map +1 -0
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js +22 -0
- package/dist/repositories/promotions/deleteDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/deleteMarketplacePromotion.js +24 -0
- package/dist/repositories/promotions/deleteMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/getDeviceTypePromotion.js +28 -0
- package/dist/repositories/promotions/getDeviceTypePromotion.js.map +1 -0
- package/dist/repositories/promotions/getMarketplacePromotion.js +28 -0
- package/dist/repositories/promotions/getMarketplacePromotion.js.map +1 -0
- package/dist/repositories/promotions/getPromotions.js +64 -0
- package/dist/repositories/promotions/getPromotions.js.map +1 -0
- package/dist/repositories/promotions/index.js +140 -0
- package/dist/repositories/promotions/index.js.map +1 -0
- package/dist/repositories/promotions/promotionValidator.js +17 -0
- package/dist/repositories/promotions/promotionValidator.js.map +1 -0
- package/dist/repositories/promotions/updatePromotion.js +36 -0
- package/dist/repositories/promotions/updatePromotion.js.map +1 -0
- package/dist/repositories/security/createUserRole.js +1 -0
- package/dist/repositories/security/createUserRole.js.map +1 -0
- package/dist/repositories/security/getAllRoles.js +15 -4
- package/dist/repositories/security/getAllRoles.js.map +1 -0
- package/dist/repositories/security/getUserRoles.js +14 -5
- package/dist/repositories/security/getUserRoles.js.map +1 -0
- package/dist/repositories/security/getUserRolesByClientId.js +17 -8
- package/dist/repositories/security/getUserRolesByClientId.js.map +1 -0
- package/dist/repositories/security/index.js +11 -10
- package/dist/repositories/security/index.js.map +1 -0
- package/dist/repositories/security/removeUserRoles.js +1 -0
- package/dist/repositories/security/removeUserRoles.js.map +1 -0
- package/dist/repositories/security/updateUserRole.js +1 -0
- package/dist/repositories/security/updateUserRole.js.map +1 -0
- package/dist/repositories/security/userIsAdminOrOwner.js +15 -9
- package/dist/repositories/security/userIsAdminOrOwner.js.map +1 -0
- package/dist/repositories/security/userIsInRole.js +13 -8
- package/dist/repositories/security/userIsInRole.js.map +1 -0
- package/dist/repositories/tags/bulkCreateTags.js +25 -0
- package/dist/repositories/tags/bulkCreateTags.js.map +1 -0
- package/dist/repositories/tags/createTag.js +21 -0
- package/dist/repositories/tags/createTag.js.map +1 -0
- package/dist/repositories/tags/deleteTag.js +20 -0
- package/dist/repositories/tags/deleteTag.js.map +1 -0
- package/dist/repositories/tags/index.js +83 -0
- package/dist/repositories/tags/index.js.map +1 -0
- package/dist/repositories/tags/searchTags.js +44 -0
- package/dist/repositories/tags/searchTags.js.map +1 -0
- package/dist/repositories/tags/searchTagsByUser.js +46 -0
- package/dist/repositories/tags/searchTagsByUser.js.map +1 -0
- package/dist/repositories/tags/updateTag.js +32 -0
- package/dist/repositories/tags/updateTag.js.map +1 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.js +1 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/completeTask.js +12 -2
- package/dist/repositories/tasks/completeTask.js.map +1 -0
- package/dist/repositories/tasks/createTask.js +1 -0
- package/dist/repositories/tasks/createTask.js.map +1 -0
- package/dist/repositories/tasks/createTaskSchedule.js +1 -0
- package/dist/repositories/tasks/createTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/deleteTask.js +1 -0
- package/dist/repositories/tasks/deleteTask.js.map +1 -0
- package/dist/repositories/tasks/deleteTaskSchedule.js +1 -0
- package/dist/repositories/tasks/deleteTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js +1 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/getDeviceTasks.js +8 -2
- package/dist/repositories/tasks/getDeviceTasks.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedule.js +22 -10
- package/dist/repositories/tasks/getTaskSchedule.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedules.js +35 -8
- package/dist/repositories/tasks/getTaskSchedules.js.map +1 -0
- package/dist/repositories/tasks/getTaskSchedulesCount.js +26 -7
- package/dist/repositories/tasks/getTaskSchedulesCount.js.map +1 -0
- package/dist/repositories/tasks/getTasks.js +70 -5
- package/dist/repositories/tasks/getTasks.js.map +1 -0
- package/dist/repositories/tasks/getTasksCount.js +18 -2
- package/dist/repositories/tasks/getTasksCount.js.map +1 -0
- package/dist/repositories/tasks/index.js +20 -17
- package/dist/repositories/tasks/index.js.map +1 -0
- package/dist/repositories/tasks/setTaskAsPastDue.js +1 -0
- package/dist/repositories/tasks/setTaskAsPastDue.js.map +1 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.js +1 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.js.map +1 -0
- package/dist/repositories/tasks/updateTask.js +1 -0
- package/dist/repositories/tasks/updateTask.js.map +1 -0
- package/dist/repositories/tasks/updateTaskSchedule.js +1 -0
- package/dist/repositories/tasks/updateTaskSchedule.js.map +1 -0
- package/dist/repositories/trips/createTrip.js +2 -1
- package/dist/repositories/trips/createTrip.js.map +1 -0
- package/dist/repositories/trips/getDeviceTripConfiguration.js +52 -0
- package/dist/repositories/trips/getDeviceTripConfiguration.js.map +1 -0
- package/dist/repositories/trips/getTripById.js +13 -6
- package/dist/repositories/trips/getTripById.js.map +1 -0
- package/dist/repositories/trips/getTrips.js +74 -14
- package/dist/repositories/trips/getTrips.js.map +1 -0
- package/dist/repositories/trips/index.js +19 -10
- package/dist/repositories/trips/index.js.map +1 -0
- package/dist/repositories/trips/updateTripEndValues.js +2 -1
- package/dist/repositories/trips/updateTripEndValues.js.map +1 -0
- package/dist/repositories/trips/upsertTrip.js +2 -1
- package/dist/repositories/trips/upsertTrip.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivation.js +1 -0
- package/dist/repositories/userActivations/createUserActivation.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationDevice.js +1 -0
- package/dist/repositories/userActivations/createUserActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationEvent.js +1 -0
- package/dist/repositories/userActivations/createUserActivationEvent.js.map +1 -0
- package/dist/repositories/userActivations/createUserActivationMetric.js +1 -0
- package/dist/repositories/userActivations/createUserActivationMetric.js.map +1 -0
- package/dist/repositories/userActivations/deleteUserActivation.js +1 -0
- package/dist/repositories/userActivations/deleteUserActivation.js.map +1 -0
- package/dist/repositories/userActivations/getLastActivationDevice.js +8 -2
- package/dist/repositories/userActivations/getLastActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationById.js +22 -0
- package/dist/repositories/userActivations/getUserActivationById.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationDevices.js +8 -2
- package/dist/repositories/userActivations/getUserActivationDevices.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +8 -3
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivationMetrics.js +8 -2
- package/dist/repositories/userActivations/getUserActivationMetrics.js.map +1 -0
- package/dist/repositories/userActivations/getUserActivations.js +8 -2
- package/dist/repositories/userActivations/getUserActivations.js.map +1 -0
- package/dist/repositories/userActivations/index.js +21 -12
- package/dist/repositories/userActivations/index.js.map +1 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.js +1 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.js.map +1 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.js +1 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.js.map +1 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js +1 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js.map +1 -0
- package/dist/repositories/userAppFeedback/index.js +2 -1
- package/dist/repositories/userAppFeedback/index.js.map +1 -0
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js +8 -2
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js.map +1 -0
- package/dist/repositories/userAppIncidents/index.js +3 -2
- package/dist/repositories/userAppIncidents/index.js.map +1 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +1 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js.map +1 -0
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +11 -11
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js +34 -0
- package/dist/repositories/userConfigurations/createUserAlertConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.js +1 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +11 -5
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js +30 -0
- package/dist/repositories/userConfigurations/deleteUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js +1 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +11 -2
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js +149 -0
- package/dist/repositories/userConfigurations/getUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userConfigurations/getUserConfigurations.js +8 -2
- package/dist/repositories/userConfigurations/getUserConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/index.js +99 -136
- package/dist/repositories/userConfigurations/index.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js +53 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurationsByIds.js.map +1 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.js +1 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.js.map +1 -0
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js +30 -0
- package/dist/repositories/userConfigurations/upsertUserAlertNotificationsConfig.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +1 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +10 -4
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/index.js +5 -4
- package/dist/repositories/userDataDeletionRequests/index.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +1 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +1 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js.map +1 -0
- package/dist/repositories/userInvitations/createUserInvitation.js +2 -0
- package/dist/repositories/userInvitations/createUserInvitation.js.map +1 -0
- package/dist/repositories/userInvitations/getUserInvitationById.js +8 -2
- package/dist/repositories/userInvitations/getUserInvitationById.js.map +1 -0
- package/dist/repositories/userInvitations/getUserInvitations.js +29 -4
- package/dist/repositories/userInvitations/getUserInvitations.js.map +1 -0
- package/dist/repositories/userInvitations/index.js +5 -4
- package/dist/repositories/userInvitations/index.js.map +1 -0
- package/dist/repositories/userInvitations/updateUserInvitation.js +4 -1
- package/dist/repositories/userInvitations/updateUserInvitation.js.map +1 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js +1 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js.map +1 -0
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js +8 -2
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js.map +1 -0
- package/dist/repositories/userRatingRequests/index.js +3 -2
- package/dist/repositories/userRatingRequests/index.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +1 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +10 -4
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/index.js +4 -3
- package/dist/repositories/userRegistrationAttempts/index.js.map +1 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +1 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js.map +1 -0
- package/dist/repositories/users/createUser.js +1 -0
- package/dist/repositories/users/createUser.js.map +1 -0
- package/dist/repositories/users/deleteAccount.js +1 -0
- package/dist/repositories/users/deleteAccount.js.map +1 -0
- package/dist/repositories/users/deleteUser.js +1 -0
- package/dist/repositories/users/deleteUser.js.map +1 -0
- package/dist/repositories/users/getUserById.js +26 -11
- package/dist/repositories/users/getUserById.js.map +1 -0
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js +64 -0
- package/dist/repositories/users/getUserClientRelatedEntitiesCount.js.map +1 -0
- package/dist/repositories/users/getUserData.js +12 -8
- package/dist/repositories/users/getUserData.js.map +1 -0
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js +88 -0
- package/dist/repositories/users/getUserInfoWithAmazonDevicesInfo.js.map +1 -0
- package/dist/repositories/users/getUsers.js +59 -6
- package/dist/repositories/users/getUsers.js.map +1 -0
- package/dist/repositories/users/getUsersConfigurationByImei.js +15 -13
- package/dist/repositories/users/getUsersConfigurationByImei.js.map +1 -0
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +8 -2
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js.map +1 -0
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js +101 -0
- package/dist/repositories/users/getUsersInfoWithActivationInfo.js.map +1 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js +59 -0
- package/dist/repositories/users/getUsersInfoWithDevicesInfo.js.map +1 -0
- package/dist/repositories/users/getUsersWithRoles.js +11 -3
- package/dist/repositories/users/getUsersWithRoles.js.map +1 -0
- package/dist/repositories/users/index.js +68 -11
- package/dist/repositories/users/index.js.map +1 -0
- package/dist/repositories/users/updateUser.js +1 -0
- package/dist/repositories/users/updateUser.js.map +1 -0
- package/dist/subscribers/allEntitiesSubscriber.js +1 -0
- package/dist/subscribers/allEntitiesSubscriber.js.map +1 -0
- package/dist/subscribers/index.js +1 -0
- package/dist/subscribers/index.js.map +1 -0
- package/dist/types/acumatica.js +1 -0
- package/dist/types/acumatica.js.map +1 -0
- package/dist/types/aempToken.js +1 -0
- package/dist/types/aempToken.js.map +1 -0
- package/dist/types/alert.d.ts +1 -0
- package/dist/types/alert.js +1 -0
- package/dist/types/alert.js.map +1 -0
- package/dist/types/alertTypes.js +1 -0
- package/dist/types/alertTypes.js.map +1 -0
- package/dist/types/appFeatures.js +1 -0
- package/dist/types/appFeatures.js.map +1 -0
- package/dist/types/billing.js +1 -0
- package/dist/types/billing.js.map +1 -0
- package/dist/types/blacklist.js +1 -0
- package/dist/types/blacklist.js.map +1 -0
- package/dist/types/bleMesh.js +2 -0
- package/dist/types/bleMesh.js.map +1 -0
- package/dist/types/bleMeshConfiguration.js +1 -0
- package/dist/types/bleMeshConfiguration.js.map +1 -0
- package/dist/types/boundaries.js +1 -0
- package/dist/types/boundaries.js.map +1 -0
- package/dist/types/clientAlertConfiguration.js +2 -0
- package/dist/types/clientAlertConfiguration.js.map +1 -0
- package/dist/types/clients.js +35 -1
- package/dist/types/clients.js.map +1 -0
- package/dist/types/common.js +1 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/countries.js +1 -0
- package/dist/types/countries.js.map +1 -0
- package/dist/types/dataExports.js +2 -0
- package/dist/types/dataExports.js.map +1 -0
- package/dist/types/deactivations.js +1 -0
- package/dist/types/deactivations.js.map +1 -0
- package/dist/types/deviceBehaviors.js +1 -0
- package/dist/types/deviceBehaviors.js.map +1 -0
- package/dist/types/devicePairings.js +1 -0
- package/dist/types/devicePairings.js.map +1 -0
- package/dist/types/deviceStatus.js +2 -0
- package/dist/types/deviceStatus.js.map +1 -0
- package/dist/types/deviceTypeFeature.js +4 -0
- package/dist/types/deviceTypeFeature.js.map +1 -0
- package/dist/types/devices.js +25 -1
- package/dist/types/devices.js.map +1 -0
- package/dist/types/entitiesTags.js +26 -0
- package/dist/types/entitiesTags.js.map +1 -0
- package/dist/types/enums.js +29 -0
- package/dist/types/enums.js.map +1 -0
- package/dist/types/feature.js +3 -0
- package/dist/types/feature.js.map +1 -0
- package/dist/types/firmwares.js +1 -0
- package/dist/types/firmwares.js.map +1 -0
- package/dist/types/index.js +9 -1
- package/dist/types/index.js.map +1 -0
- package/dist/types/latestUserAppInfo.js +2 -0
- package/dist/types/latestUserAppInfo.js.map +1 -0
- package/dist/types/liveLinks.js +2 -0
- package/dist/types/liveLinks.js.map +1 -0
- package/dist/types/logger.js +1 -0
- package/dist/types/logger.js.map +1 -0
- package/dist/types/notificationRecipients.js +1 -0
- package/dist/types/notificationRecipients.js.map +1 -0
- package/dist/types/position.js +1 -0
- package/dist/types/position.js.map +1 -0
- package/dist/types/promotion.js +42 -0
- package/dist/types/promotion.js.map +1 -0
- package/dist/types/security.js +1 -0
- package/dist/types/security.js.map +1 -0
- package/dist/types/tag.js +15 -0
- package/dist/types/tag.js.map +1 -0
- package/dist/types/tasks.js +1 -0
- package/dist/types/tasks.js.map +1 -0
- package/dist/types/trip.js +2 -0
- package/dist/types/trip.js.map +1 -0
- package/dist/types/user.js +2 -1
- package/dist/types/user.js.map +1 -0
- package/dist/types/userActivations.js +1 -0
- package/dist/types/userActivations.js.map +1 -0
- package/dist/types/userAppFeedback.js +1 -0
- package/dist/types/userAppFeedback.js.map +1 -0
- package/dist/types/userAppIncidents.js +1 -0
- package/dist/types/userAppIncidents.js.map +1 -0
- package/dist/types/userConfigurations.js +1 -0
- package/dist/types/userConfigurations.js.map +1 -0
- package/dist/types/userDataDeletionRequests.js +1 -0
- package/dist/types/userDataDeletionRequests.js.map +1 -0
- package/dist/types/userInvitations.js +1 -0
- package/dist/types/userInvitations.js.map +1 -0
- package/dist/types/userRatingRequests.js +1 -0
- package/dist/types/userRatingRequests.js.map +1 -0
- package/dist/types/userRegistrationAttempts.js +1 -0
- package/dist/types/userRegistrationAttempts.js.map +1 -0
- package/dist/utils/anyAttributeHasValue.js +1 -0
- package/dist/utils/anyAttributeHasValue.js.map +1 -0
- package/dist/utils/billingPlansHelper.js +50 -0
- package/dist/utils/billingPlansHelper.js.map +1 -0
- package/dist/utils/boolToNumberTransformer.js +1 -0
- package/dist/utils/boolToNumberTransformer.js.map +1 -0
- package/dist/utils/commaSeparatedTransformer.d.ts +9 -0
- package/dist/utils/consoleLogger.js +1 -0
- package/dist/utils/consoleLogger.js.map +1 -0
- package/dist/utils/dateTool.js +9 -0
- package/dist/utils/dateTool.js.map +1 -0
- package/dist/utils/filterTools.js +1 -0
- package/dist/utils/filterTools.js.map +1 -0
- package/dist/utils/mapRawEntityToEntity.js +1 -0
- package/dist/utils/mapRawEntityToEntity.js.map +1 -0
- package/dist/utils/{anyAttributeIsNull.js → paramsValidators.js} +5 -0
- package/dist/utils/paramsValidators.js.map +1 -0
- package/dist/utils/parsingTools.js +22 -0
- package/dist/utils/parsingTools.js.map +1 -0
- package/dist/utils/queryLogger.js +3 -1
- package/dist/utils/queryLogger.js.map +1 -0
- package/dist/utils/randomizer.js +1 -0
- package/dist/utils/randomizer.js.map +1 -0
- package/dist/utils/stringToDateTransformer.js +1 -0
- package/dist/utils/stringToDateTransformer.js.map +1 -0
- package/dist/utils/uuidHelpers.js +1 -0
- package/dist/utils/uuidHelpers.js.map +1 -0
- package/dist/utils/uuidTransformer.js +38 -0
- package/dist/utils/uuidTransformer.js.map +1 -0
- package/package.json +1 -1
- package/dist/entities/alertMigration.d.ts +0 -22
- package/dist/entities/alertMigration.js +0 -115
- package/dist/entities/alertMigrationBatch.d.ts +0 -3
- package/dist/entities/alertMigrationBatch.js +0 -21
- package/dist/entities/alertTimeWindowConfiguration.d.ts +0 -12
- package/dist/entities/alertTimeWindowConfiguration.js +0 -61
- package/dist/entities/deviceAlertConfiguration.d.ts +0 -14
- package/dist/entities/deviceAlertConfiguration.js +0 -71
- package/dist/entities/deviceTypeEvent.d.ts +0 -5
- package/dist/entities/event.d.ts +0 -6
- package/dist/entities/svrPairingRequest.d.ts +0 -21
- package/dist/entities/svrPairingRequest.js +0 -174
- package/dist/repositories/deviceBehaviors/getDevicesLastBehaviorTask.d.ts +0 -5
- package/dist/repositories/deviceBehaviors/getDevicesLastBehaviorTask.js +0 -42
- package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.d.ts +0 -4
- package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.js +0 -40
- package/dist/repositories/userConfigurations/createDeviceAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/createDeviceAlertTimeWindows.js +0 -36
- package/dist/repositories/userConfigurations/createUserAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/createUserAlertTimeWindows.js +0 -33
- package/dist/repositories/userConfigurations/deleteDeviceAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/deleteDeviceAlertTimeWindows.js +0 -17
- package/dist/repositories/userConfigurations/deleteUserAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/deleteUserAlertTimeWindows.js +0 -17
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.js +0 -43
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.d.ts +0 -5
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.js +0 -35
- package/dist/repositories/userConfigurations/updateDeviceAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/updateDeviceAlertTimeWindows.js +0 -29
- package/dist/repositories/userConfigurations/updateUserAlertTimeWindows.d.ts +0 -4
- package/dist/repositories/userConfigurations/updateUserAlertTimeWindows.js +0 -28
- package/dist/utils/anyAttributeIsNull.d.ts +0 -1
|
@@ -10,7 +10,7 @@ export const upsertIccidStatus = async (novaDataSource, params, logger) => {
|
|
|
10
10
|
logger.warn({ params }, 'DevicesRepository::upsertIccidStatus missing required parameters');
|
|
11
11
|
return false;
|
|
12
12
|
}
|
|
13
|
-
return novaDataSource.
|
|
13
|
+
return novaDataSource.safeQuery2(async (dataSource) => {
|
|
14
14
|
const iccidStatusRepository = dataSource.getRepository(IccidStatus);
|
|
15
15
|
const iccidStatus = params.values.status != null // when the call is coming from the carrier api (status is not null) we update the values
|
|
16
16
|
? {
|
|
@@ -34,3 +34,4 @@ export const upsertIccidStatus = async (novaDataSource, params, logger) => {
|
|
|
34
34
|
return result?.raw?.affectedRows > 0;
|
|
35
35
|
}, 'DevicesRepository::upsertIccidStatus');
|
|
36
36
|
};
|
|
37
|
+
//# sourceMappingURL=upsertIccidStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsertIccidStatus.js","sourceRoot":"","sources":["../../../src/repositories/devices/upsertIccidStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAK5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,cAA8B,EAC9B,MAA+B,EAC/B,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE;QACzB,MAAM,CAAC,IAAI,CAAC,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EAAE;YAC7D,aAAa,EAAE,CAAC,OAAO,CAAC;SACzB,CAAC,CAAA;QAEF,OAAO,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,CAAA;IACtC,CAAC,EAAE,sCAAsC,CAAC,CAAA;AAC5C,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
import { requiredCreateEntityTagParamsAttributes, } from '../../types/entitiesTags';
|
|
3
|
+
import { now } from '../../utils/dateTool';
|
|
4
|
+
import { anyAttributeInArrayIsNull } from '../../utils/paramsValidators';
|
|
5
|
+
export const bulkCreateEntityTag = async (novaDataSource, paramsArray, logger) => {
|
|
6
|
+
if (paramsArray?.length === 0 ||
|
|
7
|
+
anyAttributeInArrayIsNull(paramsArray, requiredCreateEntityTagParamsAttributes)) {
|
|
8
|
+
logger.warn({ paramsArray }, 'EntityTagsRepository::bulkCreateEntityTag missing required parameters');
|
|
9
|
+
return [];
|
|
10
|
+
}
|
|
11
|
+
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
12
|
+
const entityTagsRepository = safeDataSource.getRepository(EntityTag);
|
|
13
|
+
const newTags = paramsArray.map(params => ({
|
|
14
|
+
...params,
|
|
15
|
+
createdAt: now(),
|
|
16
|
+
}));
|
|
17
|
+
const createdEntityTag = await entityTagsRepository.save(newTags);
|
|
18
|
+
return createdEntityTag ?? [];
|
|
19
|
+
}, 'EntityTagsRepository::bulkCreateEntityTag error');
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=bulkCreateEntityTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkCreateEntityTag.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/bulkCreateEntityTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAEL,uCAAuC,GACxC,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAA;AAExE,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,cAA8B,EAC9B,WAAoC,EACpC,MAAc,EACQ,EAAE;IACxB,IACE,WAAW,EAAE,MAAM,KAAK,CAAC;QACzB,yBAAyB,CACvB,WAAW,EACX,uCAAuC,CACxC,EACD;QACA,MAAM,CAAC,IAAI,CACT,EAAE,WAAW,EAAE,EACf,uEAAuE,CACxE,CAAA;QACD,OAAO,EAAE,CAAA;KACV;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAAwB,EAAE;QAC7F,MAAM,oBAAoB,GAAG,cAAc,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEpE,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YACzC,GAAG,MAAM;YACT,SAAS,EAAE,GAAG,EAAE;SACjB,CAAC,CAAC,CAAA;QAEH,MAAM,gBAAgB,GAAG,MAAM,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAEjE,OAAO,gBAAgB,IAAI,EAAE,CAAA;IAC/B,CAAC,EAAE,iDAAiD,CAAC,CAAA;AACvD,CAAC,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
import { oneRequiredBulkDeleteParamsAttributes, requiredBulkDeleteParamsAttributes, } from '../../types/entitiesTags';
|
|
3
|
+
import { allAttributesAreNull, anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
+
export const bulkDeleteEntityTag = async (novaDataSource, params, logger) => {
|
|
5
|
+
if (anyAttributeIsNull(params, requiredBulkDeleteParamsAttributes) ||
|
|
6
|
+
allAttributesAreNull(params, oneRequiredBulkDeleteParamsAttributes)) {
|
|
7
|
+
logger.warn({ params }, 'EntityTagsRepository::bulkDeleteEntityTag missing required parameters');
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
11
|
+
const entityTagsRepository = dataSource.getRepository(EntityTag);
|
|
12
|
+
let queryBuilder = entityTagsRepository
|
|
13
|
+
.createQueryBuilder()
|
|
14
|
+
.where('clientId = :clientId', { clientId: params.clientId })
|
|
15
|
+
.andWhere('entityType = :entityType', { entityType: params.entityType });
|
|
16
|
+
if (params.tagIds?.length) {
|
|
17
|
+
queryBuilder = queryBuilder.andWhere('tagId IN (:...tagIds)', { tagIds: params.tagIds });
|
|
18
|
+
}
|
|
19
|
+
if (params.entityIds?.length) {
|
|
20
|
+
queryBuilder = queryBuilder.andWhere('entityId IN (:...entityIds)', {
|
|
21
|
+
entityIds: params.entityIds,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const result = await queryBuilder.delete().execute();
|
|
25
|
+
return result.affected > 0;
|
|
26
|
+
}, 'EntityTagsRepository::bulkDeleteEntityTag');
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=bulkDeleteEntityTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkDeleteEntityTag.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/bulkDeleteEntityTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAEL,qCAAqC,EACrC,kCAAkC,GACnC,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEvF,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,cAA8B,EAC9B,MAAwB,EACxB,MAAc,EACI,EAAE;IACpB,IACE,kBAAkB,CAAmB,MAAM,EAAE,kCAAkC,CAAC;QAChF,oBAAoB,CAAmB,MAAM,EAAE,qCAAqC,CAAC,EACrF;QACA,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,uEAAuE,CAAC,CAAA;QAChG,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEhE,IAAI,YAAY,GAAG,oBAAoB;aACpC,kBAAkB,EAAE;aACpB,KAAK,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;aAC5D,QAAQ,CAAC,0BAA0B,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAA;QAE1E,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE;YACzB,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAA;SACzF;QAED,IAAI,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE;YAC5B,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,6BAA6B,EAAE;gBAClE,SAAS,EAAE,MAAM,CAAC,SAAS;aAC5B,CAAC,CAAA;SACH;QAED,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,CAAA;QAEpD,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,2CAA2C,CAAC,CAAA;AACjD,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
import { requiredCreateEntityTagParamsAttributes, } from '../../types/entitiesTags';
|
|
3
|
+
import { now } from '../../utils/dateTool';
|
|
4
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
5
|
+
export const createEntityTag = async (novaDataSource, params, logger) => {
|
|
6
|
+
if (anyAttributeIsNull(params, requiredCreateEntityTagParamsAttributes)) {
|
|
7
|
+
logger.warn({ params }, 'EntityTagsRepository::createEntityTag missing required parameters');
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
11
|
+
const entityTagsRepository = safeDataSource.getRepository(EntityTag);
|
|
12
|
+
const newTag = {
|
|
13
|
+
...params,
|
|
14
|
+
createdAt: now(),
|
|
15
|
+
};
|
|
16
|
+
const createdEntityTag = await entityTagsRepository.save(newTag);
|
|
17
|
+
return createdEntityTag ?? null;
|
|
18
|
+
}, 'EntityTagsRepository::createEntityTag error');
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=createEntityTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEntityTag.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/createEntityTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAEL,uCAAuC,GACxC,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,cAA8B,EAC9B,MAA6B,EAC7B,MAAc,EACM,EAAE;IACtB,IAAI,kBAAkB,CAAwB,MAAM,EAAE,uCAAuC,CAAC,EAAE;QAC9F,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,mEAAmE,CAAC,CAAA;QAC5F,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAAsB,EAAE;QAC3F,MAAM,oBAAoB,GAAG,cAAc,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEpE,MAAM,MAAM,GAAG;YACb,GAAG,MAAM;YACT,SAAS,EAAE,GAAG,EAAE;SACjB,CAAA;QAED,MAAM,gBAAgB,GAAG,MAAM,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAEhE,OAAO,gBAAgB,IAAI,IAAI,CAAA;IACjC,CAAC,EAAE,6CAA6C,CAAC,CAAA;AACnD,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
import { requiredDeleteEntityTagParamsAttributes, } from '../../types/entitiesTags';
|
|
3
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
+
export const deleteEntityTag = async (novaDataSource, params, logger) => {
|
|
5
|
+
if (anyAttributeIsNull(params, requiredDeleteEntityTagParamsAttributes)) {
|
|
6
|
+
logger.warn({ params }, 'EntityTagsRepository::deleteEntityTag missing required parameters');
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
10
|
+
const entityTagsRepository = dataSource.getRepository(EntityTag);
|
|
11
|
+
const result = await entityTagsRepository
|
|
12
|
+
.createQueryBuilder()
|
|
13
|
+
.delete()
|
|
14
|
+
.where('tagId = :tagId', { tagId: params.tagId })
|
|
15
|
+
.andWhere('entityId = :entityId', { entityId: params.entityId })
|
|
16
|
+
.andWhere('clientId = :clientId', { clientId: params.clientId })
|
|
17
|
+
.andWhere('entityType = :entityType', { entityType: params.entityType })
|
|
18
|
+
.execute();
|
|
19
|
+
return result.affected > 0;
|
|
20
|
+
}, 'EntityTagsRepository::deleteEntityTag');
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=deleteEntityTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteEntityTag.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/deleteEntityTag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAEL,uCAAuC,GACxC,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,cAA8B,EAC9B,MAA6B,EAC7B,MAAc,EACI,EAAE;IACpB,IAAI,kBAAkB,CAAwB,MAAM,EAAE,uCAAuC,CAAC,EAAE;QAC9F,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,mEAAmE,CAAC,CAAA;QAC5F,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEhE,MAAM,MAAM,GAAG,MAAM,oBAAoB;aACtC,kBAAkB,EAAE;aACpB,MAAM,EAAE;aACR,KAAK,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;aAChD,QAAQ,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;aAC/D,QAAQ,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;aAC/D,QAAQ,CAAC,0BAA0B,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC;aACvE,OAAO,EAAE,CAAA;QAEZ,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,uCAAuC,CAAC,CAAA;AAC7C,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
export const deleteEntityTagById = async (novaDataSource, id, logger) => {
|
|
3
|
+
if (!id) {
|
|
4
|
+
logger.warn('EntityTagsRepository::deleteEntityTagById missing required id parameter');
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
+
const entityTagsRepository = dataSource.getRepository(EntityTag);
|
|
9
|
+
const result = await entityTagsRepository.delete(id);
|
|
10
|
+
return result.affected > 0;
|
|
11
|
+
}, 'EntityTagsRepository::deleteEntityTagById');
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=deleteEntityTagById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteEntityTagById.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/deleteEntityTagById.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,EACtC,cAA8B,EAC9B,EAAU,EACV,MAAc,EACI,EAAE;IACpB,IAAI,CAAC,EAAE,EAAE;QACP,MAAM,CAAC,IAAI,CAAC,yEAAyE,CAAC,CAAA;QACtF,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEhE,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAEpD,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,2CAA2C,CAAC,CAAA;AACjD,CAAC,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { requiredEnforceEntityTagsByEntityParamsAttributes, } from '../../types/entitiesTags';
|
|
2
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
3
|
+
import { bulkCreateEntityTag } from './bulkCreateEntityTag';
|
|
4
|
+
import { bulkDeleteEntityTag } from './bulkDeleteEntityTag';
|
|
5
|
+
export const enforceEntityTagsByEntity = async (novaDataSource, params, logger) => {
|
|
6
|
+
if (anyAttributeIsNull(params, requiredEnforceEntityTagsByEntityParamsAttributes) ||
|
|
7
|
+
params.values.tagIds.length === 0) {
|
|
8
|
+
logger.warn({ params }, 'EntityTagsRepository::enforceEntityTagsByEntity failed due to missing filters/values or empty tagIds array');
|
|
9
|
+
return { entitiesTags: [], totalCount: 0 };
|
|
10
|
+
}
|
|
11
|
+
try {
|
|
12
|
+
const wereDeleted = await bulkDeleteEntityTag(novaDataSource, {
|
|
13
|
+
clientId: params.filters.clientId,
|
|
14
|
+
entityType: params.filters.entityType,
|
|
15
|
+
deletedBy: params.values.enforcedBy,
|
|
16
|
+
entityIds: [params.filters.entityId],
|
|
17
|
+
}, logger);
|
|
18
|
+
if (!wereDeleted) {
|
|
19
|
+
logger.warn({ params }, 'EntityTagsRepository::enforceEntityTagsByEntity failed to delete existing tags');
|
|
20
|
+
return { entitiesTags: [], totalCount: 0 };
|
|
21
|
+
}
|
|
22
|
+
const bulkCreateTagsParams = params.values.tagIds.map(tagId => ({
|
|
23
|
+
tagId,
|
|
24
|
+
createdBy: params.values.enforcedBy,
|
|
25
|
+
clientId: params.filters.clientId,
|
|
26
|
+
entityType: params.filters.entityType,
|
|
27
|
+
entityId: params.filters.entityId,
|
|
28
|
+
}));
|
|
29
|
+
const result = await bulkCreateEntityTag(novaDataSource, bulkCreateTagsParams, logger);
|
|
30
|
+
logger.trace(result, 'EntityTagsRepository::enforceEntityTagsByEntity result');
|
|
31
|
+
return { entitiesTags: result, totalCount: params.values.tagIds.length };
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
logger.error({ error }, 'EntityTagsRepository::enforceEntityTagsByEntity error');
|
|
35
|
+
return { entitiesTags: [], totalCount: 0 };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=enforceEntityTagsByEntity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enforceEntityTagsByEntity.js","sourceRoot":"","sources":["../../../src/repositories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AE,MAAM,CAAC,MAAM,CAAC,UAAU;YACnC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ;YACjC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU;YACrC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ;SAClC,CAAC,CAAC,CAAA;QACH,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,cAAc,EAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;QAEtF,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,wDAAwD,CAAC,CAAA;QAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAA;KACzE;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,uDAAuD,CAAC,CAAA;QAChF,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAA;KAC3C;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
import { requiredGetEntityTagByIdParamsAttributes, } from '../../types/entitiesTags';
|
|
3
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
+
export const getEntityTagById = async (novaDataSource, params, logger) => {
|
|
5
|
+
if (anyAttributeIsNull(params, requiredGetEntityTagByIdParamsAttributes)) {
|
|
6
|
+
logger.warn('EntityTagsRepository::getEntityTagByEntityTagId missing required id parameter');
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
// Force the query to run on master or slave
|
|
10
|
+
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
11
|
+
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
12
|
+
const entityTagsRepository = dataSource.getRepository(EntityTag);
|
|
13
|
+
const queryBuilder = entityTagsRepository
|
|
14
|
+
.createQueryBuilder('entityTag')
|
|
15
|
+
.where('entityTag.id = :id', { id: params.filters.id });
|
|
16
|
+
if (queryRunner) {
|
|
17
|
+
queryBuilder.setQueryRunner(queryRunner);
|
|
18
|
+
}
|
|
19
|
+
const result = await queryBuilder.getOne();
|
|
20
|
+
return result;
|
|
21
|
+
}, 'EntityTagsRepository::getEntityTagByEntityTagId', dbQueryRunner);
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=getEntityTagById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEntityTagById.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/getEntityTagById.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAEL,wCAAwC,GACzC,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,EACnC,cAA8B,EAC9B,MAA8B,EAC9B,MAAc,EACa,EAAE;IAC7B,IAAI,kBAAkB,CAAC,MAAM,EAAE,wCAAwC,CAAC,EAAE;QACxE,MAAM,CAAC,IAAI,CAAC,+EAA+E,CAAC,CAAA;QAC5F,OAAO,IAAI,CAAA;KACZ;IAED,4CAA4C;IAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;IAExE,OAAO,cAAc,CAAC,SAAS,CAC7B,KAAK,EAAE,UAA0B,EAAE,WAAyB,EAAsB,EAAE;QAClF,MAAM,oBAAoB,GAAG,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAA;QAEhE,MAAM,YAAY,GAAG,oBAAoB;aACtC,kBAAkB,CAAC,WAAW,CAAC;aAC/B,KAAK,CAAC,oBAAoB,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAA;QAEzD,IAAI,WAAW,EAAE;YACf,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;SACzC;QAED,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,MAAM,EAAE,CAAA;QAE1C,OAAO,MAAM,CAAA;IACf,CAAC,EACD,iDAAiD,EACjD,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { BaseRepository } from '../baseRepository';
|
|
3
|
+
import { bulkCreateEntityTag } from './bulkCreateEntityTag';
|
|
4
|
+
import { bulkDeleteEntityTag } from './bulkDeleteEntityTag';
|
|
5
|
+
import { createEntityTag } from './createEntityTag';
|
|
6
|
+
import { deleteEntityTag } from './deleteEntityTag';
|
|
7
|
+
import { deleteEntityTagById } from './deleteEntityTagById';
|
|
8
|
+
import { enforceEntityTagsByEntity } from './enforceEntityTagsByEntity';
|
|
9
|
+
import { getEntityTagById } from './getEntityTagById';
|
|
10
|
+
import { searchEntityTags } from './searchEntityTags';
|
|
11
|
+
export class EntityTagsRepository extends BaseRepository {
|
|
12
|
+
/**
|
|
13
|
+
* Create a new entity tag
|
|
14
|
+
* @param {CreateEntityTagParams} params The parameters to create the entity tag
|
|
15
|
+
* @returns {EntityTag} The created entity tag
|
|
16
|
+
*/
|
|
17
|
+
async createEntityTag(params) {
|
|
18
|
+
this.logger.trace(params, `EntityTagsRepository::createEntityTag started with params`);
|
|
19
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
20
|
+
const result = await createEntityTag(novaDataSource, params, this.logger);
|
|
21
|
+
this.logger.trace(result, 'EntityTagsRepository::createEntityTag result');
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Create multiple entity tags
|
|
26
|
+
* @param {CreateEntityTagParams[]} params The parameters to create the entity tags
|
|
27
|
+
* @returns {EntityTag[]} The created entity tags
|
|
28
|
+
*/
|
|
29
|
+
async bulkCreateEntityTag(params) {
|
|
30
|
+
this.logger.trace(params, `EntityTagsRepository::bulkCreateEntityTag started with params`);
|
|
31
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
32
|
+
const results = await bulkCreateEntityTag(novaDataSource, params, this.logger);
|
|
33
|
+
this.logger.trace(results, 'EntityTagsRepository::bulkCreateEntityTag result');
|
|
34
|
+
return results;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Delete an entity tag
|
|
38
|
+
* @param {DeleteEntityTagParams} params The parameters to delete the entity tag
|
|
39
|
+
* @returns {boolean} Whether the entity tag was deleted
|
|
40
|
+
*/
|
|
41
|
+
async deleteEntityTag(params) {
|
|
42
|
+
this.logger.trace(params, `EntityTagsRepository::deleteEntityTag started with params`);
|
|
43
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
44
|
+
const result = await deleteEntityTag(novaDataSource, params, this.logger);
|
|
45
|
+
this.logger.trace({ wasDeleted: result }, 'EntityTagsRepository::deleteEntityTag result');
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Search for entity tags
|
|
50
|
+
* @param {SearchEntityTagsParams} params The parameters to search for entity tags
|
|
51
|
+
* @returns {GetEntityTagsResult} The results of the search
|
|
52
|
+
*/
|
|
53
|
+
async searchEntityTags(params) {
|
|
54
|
+
this.logger.trace(params, `EntityTagsRepository::searchEntityTags started with params`);
|
|
55
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
56
|
+
const result = await searchEntityTags(novaDataSource, params, this.logger);
|
|
57
|
+
this.logger.trace(result, 'EntityTagsRepository::searchEntityTags result');
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Delete multiple entity tags
|
|
62
|
+
* @param {BulkDeleteParams} params The parameters to delete the entity tags
|
|
63
|
+
* @returns {boolean} Whether the entity tags were deleted
|
|
64
|
+
*/
|
|
65
|
+
async bulkDeleteEntityTag(params) {
|
|
66
|
+
this.logger.trace(params, `EntityTagsRepository::bulkDeleteEntityTag started with params`);
|
|
67
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
68
|
+
const wasDeleted = await bulkDeleteEntityTag(novaDataSource, params, this.logger);
|
|
69
|
+
this.logger.trace({ wasDeleted }, 'EntityTagsRepository::bulkDeleteEntityTag result');
|
|
70
|
+
return wasDeleted;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Enforce entity tags by entity
|
|
74
|
+
* @param {EnforceEntityTagsByEntityParams} params The parameters to enforce entity tags by entity
|
|
75
|
+
* @returns {GetEntityTagsResult} The results of the enforcement
|
|
76
|
+
*/
|
|
77
|
+
async enforceEntityTagsByEntity(params) {
|
|
78
|
+
this.logger.trace(params, `EntityTagsRepository::enforceEntityTagsByEntity started with params`);
|
|
79
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
80
|
+
const result = await enforceEntityTagsByEntity(novaDataSource, params, this.logger);
|
|
81
|
+
this.logger.trace(result, 'EntityTagsRepository::enforceEntityTagsByEntity result');
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Delete an entity tag by id
|
|
86
|
+
* @param {number} id The id of the entity tag to delete
|
|
87
|
+
* @returns {boolean} Whether the entity tag was deleted
|
|
88
|
+
*/
|
|
89
|
+
async deleteEntityTagById(id) {
|
|
90
|
+
this.logger.trace({ id }, `EntityTagsRepository::deleteEntityTagById started with params`);
|
|
91
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
92
|
+
const result = await deleteEntityTagById(novaDataSource, id, this.logger);
|
|
93
|
+
this.logger.trace({ wasDeleted: result }, 'EntityTagsRepository::deleteEntityTagById result');
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
async getEntityTagById(params) {
|
|
97
|
+
this.logger.trace({ params }, `EntityTagsRepository::getEntityTagById started with params`);
|
|
98
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger);
|
|
99
|
+
const result = await getEntityTagById(novaDataSource, params, this.logger);
|
|
100
|
+
this.logger.trace(result, 'EntityTagsRepository::getEntityTagById result');
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/entityTags/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAWrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD;;;;OAIG;IACH,KAAK,CAAC,eAAe,CAAC,MAA6B;QACjD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,2DAA2D,CAAC,CAAA;QAEtF,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEjF,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,cAAc,EA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AClC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,+DAA+D,CAAC,CAAA;QAE1F,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEjF,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,cAAc,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEzE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,kDAAkD,CAAC,CAAA;QAE7F,OAAO,MAAM,CAAA;IACf,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,MAA8B;QACnD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,4DAA4D,CAAC,CAAA;QAE3F,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAEjF,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;QAE1E,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,+CAA+C,CAAC,CAAA;QAE1E,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EntityTag } from '../../entities';
|
|
2
|
+
import { requiredSearchEntityTagsParamsAttributes, } from '../../types/entitiesTags';
|
|
3
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
+
export const searchEntityTags = async (novaDataSource, params, logger) => {
|
|
5
|
+
if (anyAttributeIsNull(params, requiredSearchEntityTagsParamsAttributes)) {
|
|
6
|
+
logger.warn({ params }, 'EntityTagsRepository::searchEntityTags missing required parameters');
|
|
7
|
+
return { entitiesTags: [], totalCount: 0 };
|
|
8
|
+
}
|
|
9
|
+
// Force the query to run on master or slave
|
|
10
|
+
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
11
|
+
return novaDataSource.safeQuery(async (dataSource, queryRunner) => {
|
|
12
|
+
const tagsRepository = dataSource.getRepository(EntityTag);
|
|
13
|
+
const { filters, pagingOptions } = params;
|
|
14
|
+
let queryBuilder = tagsRepository
|
|
15
|
+
.createQueryBuilder()
|
|
16
|
+
.where('clientId = :clientId', { clientId: filters.clientId });
|
|
17
|
+
if (queryRunner) {
|
|
18
|
+
queryBuilder.setQueryRunner(queryRunner);
|
|
19
|
+
}
|
|
20
|
+
if (filters.entityIds?.length) {
|
|
21
|
+
queryBuilder = queryBuilder.andWhere('entityId IN (:...entityIds)', {
|
|
22
|
+
entityIds: filters.entityIds,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (filters.tagIds?.length) {
|
|
26
|
+
queryBuilder = queryBuilder.andWhere('tagId IN (:...tagIds)', { tagIds: filters.tagIds });
|
|
27
|
+
}
|
|
28
|
+
if (filters.entityTypes?.length) {
|
|
29
|
+
queryBuilder = queryBuilder.andWhere('entityType IN (:...entityTypes)', {
|
|
30
|
+
entityTypes: filters.entityTypes,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
// counting before applying pagination
|
|
34
|
+
const tagCount = await queryBuilder.getCount();
|
|
35
|
+
const limit = pagingOptions?.pageSize ?? 50;
|
|
36
|
+
queryBuilder.limit(limit);
|
|
37
|
+
const globalIndex = (pagingOptions?.pageIndex ?? 0) * limit;
|
|
38
|
+
queryBuilder.offset(globalIndex);
|
|
39
|
+
const entitiesTags = await queryBuilder.getMany();
|
|
40
|
+
return {
|
|
41
|
+
entitiesTags,
|
|
42
|
+
totalCount: tagCount,
|
|
43
|
+
};
|
|
44
|
+
}, 'EntityTagsRepository::searchEntityTags', dbQueryRunner);
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=searchEntityTags.js.map
|
|
@@ -0,0 +1 @@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C7B,CAAC,CAAA;SACH;QAED,IAAI,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE;YAC1B,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;SAC1F;QAED,IAAI,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE;YAC/B,YAAY,GAAG,YAAY,CAAC,QAAQ,CAAC,iCAAiC,EAAE;gBACtE,WAAW,EAAE,OAAO,CAAC,WAAW;aACjC,CAAC,CAAA;SACH;QAED,sCAAsC;QACtC,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,QAAQ,EAAE,CAAA;QAE9C,MAAM,KAAK,GAAG,aAAa,EAAE,QAAQ,IAAI,EAAE,CAAA;QAC3C,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAEzB,MAAM,WAAW,GAAG,CAAC,aAAa,EAAE,SAAS,IAAI,CAAC,CAAC,GAAG,KAAK,CAAA;QAC3D,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;QAEhC,MAAM,YAAY,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAEjD,OAAO;YACL,YAAY;YACZ,UAAU,EAAE,QAAQ;SACE,CAAA;IAC1B,CAAC,EACD,wCAAwC,EACxC,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Feature } from '../../entities';
|
|
2
|
+
import { requiredCreateFeatureParamsAttributes } from '../../types/feature';
|
|
3
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
+
export const createFeature = async (novaDataSource, params, logger) => {
|
|
5
|
+
if (anyAttributeIsNull(params, requiredCreateFeatureParamsAttributes)) {
|
|
6
|
+
logger.warn({ params }, 'FeatureRepository::createFeature missing required parameters');
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
return novaDataSource.safeQuery(async (safeDataSource) => {
|
|
10
|
+
const featuresRepository = safeDataSource.getRepository(Feature);
|
|
11
|
+
const newFeature = {
|
|
12
|
+
key: params.key,
|
|
13
|
+
name: params.name,
|
|
14
|
+
description: params.description,
|
|
15
|
+
tags: params.tags,
|
|
16
|
+
};
|
|
17
|
+
const createdFeature = await featuresRepository.save(newFeature);
|
|
18
|
+
return createdFeature ?? null;
|
|
19
|
+
}, 'FeatureRepository::createFeature error');
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=createFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFeature.js","sourceRoot":"","sources":["../../../src/repositories/features/createFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAuB,qCAAqC,EAAE,MAAM,qBAAqB,CAAA;AAEhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,cAA8B,EAC9B,MAA2B,EAC3B,MAAc,EACd,EAAE;IACF,IAAI,kBAAkB,CAAsB,MAAM,EAAE,qCAAqC,CAAC,EAAE;QAC1F,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,8DAA8D,CAAC,CAAA;QACvF,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,cAA8B,EAAoB,EAAE;QACzF,MAAM,kBAAkB,GAAG,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAEhE,MAAM,UAAU,GAAG;YACjB,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,IAAI,EAAE,MAAM,CAAC,IAAI;SACP,CAAA;QAEZ,MAAM,cAAc,GAAG,MAAM,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAEhE,OAAO,cAAc,IAAI,IAAI,CAAA;IAC/B,CAAC,EAAE,wCAAwC,CAAC,CAAA;AAC9C,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Feature } from '../../entities';
|
|
2
|
+
export const deleteFeature = async (novaDataSource, params, logger) => {
|
|
3
|
+
if (!params?.filters?.key) {
|
|
4
|
+
logger.warn({ params }, 'FeatureRepository::deleteFeature missing required parameters');
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
8
|
+
const featureRepository = dataSource.getRepository(Feature);
|
|
9
|
+
const result = await featureRepository
|
|
10
|
+
.createQueryBuilder()
|
|
11
|
+
.delete()
|
|
12
|
+
.where('key = :key', { key: params.filters.key })
|
|
13
|
+
.execute();
|
|
14
|
+
return result.affected > 0;
|
|
15
|
+
}, 'FeatureRepository::deleteFeature');
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=deleteFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteFeature.js","sourceRoot":"","sources":["../../../src/repositories/features/deleteFeature.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,OAAO,EAAE,GAAG,EAAE;QACzB,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,8DAA8D,CAAC,CAAA;QACvF,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,iBAAiB,GAAG,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAE3D,MAAM,MAAM,GAAG,MAAM,iBAAiB;aACnC,kBAAkB,EAAE;aACpB,MAAM,EAAE;aACR,KAAK,CAAC,YAAY,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;aAChD,OAAO,EAAE,CAAA;QAEZ,OAAO,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAA;IAC5B,CAAC,EAAE,kCAAkC,CAAC,CAAA;AACxC,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Feature } from '../../entities';
|
|
2
|
+
export const getFeatures = async (novaDataSource, params) => {
|
|
3
|
+
// Force the query to run on master or slave
|
|
4
|
+
const dbQueryRunner = novaDataSource.createQueryRunnerFromParams(params);
|
|
5
|
+
return novaDataSource.safeQuery(async (safeDataSource, queryRunner) => {
|
|
6
|
+
const featureRepository = safeDataSource.getRepository(Feature);
|
|
7
|
+
const queryBuilder = featureRepository.createQueryBuilder('feature');
|
|
8
|
+
if (queryRunner) {
|
|
9
|
+
queryBuilder.setQueryRunner(queryRunner);
|
|
10
|
+
}
|
|
11
|
+
if (params?.filters?.keys?.length) {
|
|
12
|
+
queryBuilder.where('feature.key IN (:keyList)', {
|
|
13
|
+
keyList: params.filters.keys,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
if (params?.filters?.names?.length) {
|
|
17
|
+
queryBuilder.andWhere('feature.name IN (:nameList)', {
|
|
18
|
+
nameList: params.filters.names,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
const features = await queryBuilder.getMany();
|
|
22
|
+
return features?.length ? features : [];
|
|
23
|
+
}, 'FeatureRepository::getFeatures error', dbQueryRunner);
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=getFeatures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFeatures.js","sourceRoot":"","sources":["../../../src/repositories/features/getFeatures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAIxC,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAC9B,cAA8B,EAC9B,MAAwB,EACJ,EAAE;IACtB,4CAA4C;IAC5C,MAAM,aAAa,GAAG,cAAc,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAA;IAExE,OAAO,cAAc,CAAC,SAAS,CAC7B,KAAK,EAAE,cAA8B,EAAE,WAAyB,EAAsB,EAAE;QACtF,MAAM,iBAAiB,GAAG,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAE/D,MAAM,YAAY,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAA;QAEpE,IAAI,WAAW,EAAE;YACf,YAAY,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;SACzC;QAED,IAAI,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE;YACjC,YAAY,CAAC,KAAK,CAAC,2BAA2B,EAAE;gBAC9C,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI;aAC7B,CAAC,CAAA;SACH;QAED,IAAI,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE;YAClC,YAAY,CAAC,QAAQ,CAAC,6BAA6B,EAAE;gBACnD,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK;aAC/B,CAAC,CAAA;SACH;QAED,MAAM,QAAQ,GAAG,MAAM,YAAY,CAAC,OAAO,EAAE,CAAA;QAE7C,OAAO,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAA;IACzC,CAAC,EACD,sCAAsC,EACtC,aAAa,CACd,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { NovaDataSource } from '../../novaDataSource';
|
|
2
|
+
import { BaseRepository } from '../baseRepository';
|
|
3
|
+
import { createFeature } from './createFeature';
|
|
4
|
+
import { deleteFeature } from './deleteFeature';
|
|
5
|
+
import { getFeatures } from './getFeatures';
|
|
6
|
+
import { upsertFeature } from './upsertFeature';
|
|
7
|
+
/**
|
|
8
|
+
* FeatureRepository, used to interact with the feature entity
|
|
9
|
+
* @extends BaseRepository
|
|
10
|
+
*/
|
|
11
|
+
export class FeatureRepository extends BaseRepository {
|
|
12
|
+
/**
|
|
13
|
+
* Create a feature
|
|
14
|
+
* @param {CreateFeatureParams} params containing information to create a feature
|
|
15
|
+
* @returns {Feature} the created feature
|
|
16
|
+
* */
|
|
17
|
+
async createFeature(params) {
|
|
18
|
+
this.logger.trace(params, `FeatureRepository::createFeature started with params`);
|
|
19
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
20
|
+
const result = await createFeature(novaDataSource, params, this.logger);
|
|
21
|
+
this.logger.trace(result, 'FeatureRepository::createFeature result');
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get features
|
|
26
|
+
* @param {GetFeatureParams} params containing information to get features
|
|
27
|
+
* @returns {Feature[]} the features
|
|
28
|
+
*/
|
|
29
|
+
async getFeatures(params) {
|
|
30
|
+
this.logger.trace(params, `FeatureRepository::getFeatures started with params`);
|
|
31
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
32
|
+
const result = await getFeatures(novaDataSource, params);
|
|
33
|
+
this.logger.trace(result, 'FeatureRepository::getFeatures result');
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Upsert a feature
|
|
38
|
+
* @param {CreateFeatureParams} params containing information to update a feature
|
|
39
|
+
* @returns {Feature} the updated feature
|
|
40
|
+
* */
|
|
41
|
+
async upsertFeature(params) {
|
|
42
|
+
this.logger.trace(params, `FeatureRepository::upsertFeature started with params`);
|
|
43
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
44
|
+
const result = await upsertFeature(novaDataSource, params, this.logger);
|
|
45
|
+
this.logger.trace({ result }, 'FeatureRepository::upsertFeature result');
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Delete a feature
|
|
50
|
+
* @param {DeleteFeatureParams} params containing information to delete a feature
|
|
51
|
+
* @returns {boolean} if the feature was deleted
|
|
52
|
+
* */
|
|
53
|
+
async deleteFeature(params) {
|
|
54
|
+
this.logger.trace(params, `FeatureRepository::deleteFeature started with params`);
|
|
55
|
+
const novaDataSource = new NovaDataSource(this.novaDataSourceConfig, this.logger, this.replicaNovaDataSourceConfig);
|
|
56
|
+
const result = await deleteFeature(novaDataSource, params, this.logger);
|
|
57
|
+
this.logger.trace({ result }, 'FeatureRepository::deleteFeature result');
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repositories/features/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,cAAc;IACnD;;;;SAIK;IACL,KAAK,CAAC,aAAa,CAAC,MAA2B;QAC7C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,sDAAsD,CAAC,CAAA;QAEjF,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,oBAAoB,EACzB,IAAI,CAAC,MAAM,EACX,IAAI,CA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AAE,sDAAsD,CAAC,CAAA;QAEjF,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,EAAE,MAAM,EAAE,EAAE,yCAAyC,CAAC,CAAA;QAExE,OAAO,MAAM,CAAA;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Feature } from '../../entities';
|
|
2
|
+
import { requiredCreateFeatureParamsAttributes } from '../../types/feature';
|
|
3
|
+
import { anyAttributeIsNull } from '../../utils/paramsValidators';
|
|
4
|
+
export const upsertFeature = async (novaDataSource, params, logger) => {
|
|
5
|
+
if (anyAttributeIsNull(params, requiredCreateFeatureParamsAttributes)) {
|
|
6
|
+
logger.warn({ params }, 'FeatureRepository::upsertFeature missing required parameters');
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
return novaDataSource.safeQuery(async (dataSource) => {
|
|
10
|
+
const featureRepository = dataSource.getRepository(Feature);
|
|
11
|
+
const feature = {
|
|
12
|
+
key: params.key,
|
|
13
|
+
name: params.name,
|
|
14
|
+
description: params.description,
|
|
15
|
+
tags: params.tags,
|
|
16
|
+
};
|
|
17
|
+
const result = await featureRepository.upsert(feature, {
|
|
18
|
+
conflictPaths: ['key'],
|
|
19
|
+
});
|
|
20
|
+
return result?.raw?.affectedRows > 0;
|
|
21
|
+
}, 'FeatureRepository::upsertFeature');
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=upsertFeature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upsertFeature.js","sourceRoot":"","sources":["../../../src/repositories/features/upsertFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAuB,qCAAqC,EAAE,MAAM,qBAAqB,CAAA;AAEhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,cAA8B,EAC9B,MAA2B,EAC3B,MAAc,EACI,EAAE;IACpB,IAAI,kBAAkB,CAAsB,MAAM,EAAE,qCAAqC,CAAC,EAAE;QAC1F,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,8DAA8D,CAAC,CAAA;QACvF,OAAO,KAAK,CAAA;KACb;IAED,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,UAA0B,EAAoB,EAAE;QACrF,MAAM,iBAAiB,GAAG,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;QAE3D,MAAM,OAAO,GAAG;YACd,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,IAAI,EAAE,MAAM,CAAC,IAAI;SACP,CAAA;QAEZ,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,MAAM,CAAC,OAAO,EAAE;YACrD,aAAa,EAAE,CAAC,KAAK,CAAC;SACvB,CAAC,CAAA;QAEF,OAAO,MAAM,EAAE,GAAG,EAAE,YAAY,GAAG,CAAC,CAAA;IACtC,CAAC,EAAE,kCAAkC,CAAC,CAAA;AACxC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDeviceFirmware.js","sourceRoot":"","sources":["../../../src/repositories/firmwares/createDeviceFirmware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAKnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,cAA8B,EAC9B,MAAkC,EAClC,MAAc,EACe,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;QAErF,OAAO,gBAAgB,CAAA;IACzB,CAAC,EAAE,2CAA2C,CAAC,CAAA;AACjD,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFirmwareAutoUpgradeBlacklist.js","sourceRoot":"","sources":["../../../src/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAA;AAK7D,MAAM,CAAC,MAAM,kCAAkC,GAAG,KAAK,EACrD,cAA8B,EAC9B,MAAgD,EAChD,MAAc,EACyB,EAAE;IACzC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE;QACrB,MAAM,CAAC,IAAI,CACT,EAAE,MAAM,EAAE,EACV,0EAA0E,CAC3E,CAAA;QACD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,MAAM,cAAc,CAAC,SAAS,CAAC,KAAK,EAAE,EAAkB,EAE7D,EAAE;QACF,MAAM,0BAA0B,GAAG,EAAE,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAA;QAEjF,MAAM,qBAAqB,GAAG;YAC5B,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAA;QAED,MAAM,gBAAgB,GAAG,MAAM,0BAA0B,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;QAErF,OAAO,gBAAgB,CAAA;IACzB,CAAC,EAAE,yDAAyD,CAAC,CAAA;AAC/D,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFirmwareUpgradeTask.js","sourceRoot":"","sources":["../../../src/repositories/firmwares/createFirmwareUpgradeTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAIpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,aAAa,GAAG,CAAC,MAA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