@spytecgps/nova-orm 0.0.224 → 0.0.226
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 +46 -0
- package/dist/entities/acumaticaImeiIccidData.js +91 -0
- package/dist/entities/acumaticaOrderShipmentDetails.js +61 -0
- package/dist/entities/acumaticaShipment.js +31 -0
- package/dist/entities/acumaticaShipmentAmazon.js +26 -0
- package/dist/entities/aempToken.js +47 -0
- package/dist/entities/alert.js +129 -0
- package/dist/entities/alertMigration.js +115 -0
- package/dist/entities/alertMigrationBatch.js +21 -0
- package/dist/entities/alertTimeWindowConfiguration.js +61 -0
- package/dist/entities/alertType.js +83 -0
- package/dist/entities/appFeatureType.js +36 -0
- package/dist/entities/assetCategory.js +32 -0
- package/dist/entities/billing.js +108 -0
- package/dist/entities/billingCustomerBraintree.js +62 -0
- package/dist/entities/billingDeviceHistory.js +61 -0
- package/dist/entities/billingHubspotPaymentLog.js +256 -0
- package/dist/entities/billingKlarnaCustomer.js +76 -0
- package/dist/entities/billingKlarnaOrder.js +114 -0
- package/dist/entities/billingStatusHistoryBraintree.js +63 -0
- package/dist/entities/billingSubscriptionBraintree.js +229 -0
- package/dist/entities/blacklist.js +51 -0
- package/dist/entities/blacklistType.js +31 -0
- package/dist/entities/boundary.js +119 -0
- package/dist/entities/boundaryEvent.js +105 -0
- package/dist/entities/cellTower.js +66 -0
- package/dist/entities/client.js +153 -0
- package/dist/entities/clientAppFeature.js +47 -0
- package/dist/entities/clientConfiguration.js +47 -0
- package/dist/entities/clientDeviceSetting.js +90 -0
- package/dist/entities/clientType.js +36 -0
- package/dist/entities/country.js +90 -0
- package/dist/entities/customerAttribute.js +52 -0
- package/dist/entities/dataSourceType.js +31 -0
- package/dist/entities/deactivation.js +83 -0
- package/dist/entities/deactivationReason.js +40 -0
- package/dist/entities/device.js +160 -0
- package/dist/entities/deviceAlertConfiguration.js +71 -0
- package/dist/entities/deviceBehavior.js +147 -0
- package/dist/entities/deviceCustomConfiguration.js +67 -0
- package/dist/entities/deviceHistory.js +46 -0
- package/dist/entities/deviceModelListener.js +46 -0
- package/dist/entities/devicePairing.js +67 -0
- package/dist/entities/devicePromotion.js +104 -0
- package/dist/entities/deviceReplacement.js +57 -0
- package/dist/entities/deviceTask.js +44 -0
- package/dist/entities/deviceType.js +149 -0
- package/dist/entities/deviceTypeEvent.js +32 -0
- package/dist/entities/deviceTypeFeature.js +32 -0
- package/dist/entities/deviceTypeFirmware.js +117 -0
- package/dist/entities/entityTag.js +48 -0
- package/dist/entities/entityType.js +31 -0
- package/dist/entities/event.js +36 -0
- package/dist/entities/feature.js +36 -0
- package/dist/entities/firmwareAutoUpgradeBlacklist.js +35 -0
- package/dist/entities/firmwareUpgradeTask.js +105 -0
- package/dist/entities/iccidStatus.js +49 -0
- package/dist/entities/imeiIccidCarrier.js +125 -0
- package/dist/entities/imeiIccidHistory.js +43 -0
- package/dist/entities/index.js +99 -0
- package/dist/entities/industry.js +46 -0
- package/dist/entities/latestPosition.js +100 -0
- package/dist/entities/latestPositionMigration.js +96 -0
- package/dist/entities/latestPositionMigrationBatch.js +21 -0
- package/dist/entities/magento2Gps.js +256 -0
- package/dist/entities/magento2Plan.js +41 -0
- package/dist/entities/mobileNetwork.js +51 -0
- package/dist/entities/notificationRecipient.js +100 -0
- package/dist/entities/organization.js +46 -0
- package/dist/entities/plan.js +86 -0
- package/dist/entities/position.js +102 -0
- package/dist/entities/positionMigration.js +96 -0
- package/dist/entities/positionMigrationBatch.js +21 -0
- package/dist/entities/promotion.js +134 -0
- package/dist/entities/securityRole.js +41 -0
- package/dist/entities/serviceProvider.js +41 -0
- package/dist/entities/serviceProviderProduct.js +61 -0
- package/dist/entities/serviceProviderProductNetwork.js +31 -0
- package/dist/entities/serviceProviderProductType.js +31 -0
- package/dist/entities/sim.js +92 -0
- package/dist/entities/task.js +146 -0
- package/dist/entities/taskSchedule.js +141 -0
- package/dist/entities/trip.js +127 -0
- package/dist/entities/tripCompletionStatus.js +36 -0
- package/dist/entities/tripPosition.js +26 -0
- package/dist/entities/user.js +196 -0
- package/dist/entities/userActivation.js +52 -0
- package/dist/entities/userActivationDevice.js +164 -0
- package/dist/entities/userActivationEvent.js +61 -0
- package/dist/entities/userActivationMetric.js +208 -0
- package/dist/entities/userAlertComplain.js +78 -0
- package/dist/entities/userAlertConfiguration.js +109 -0
- package/dist/entities/userAppFeedback.js +52 -0
- package/dist/entities/userAppIncident.js +176 -0
- package/dist/entities/userConfiguration.js +109 -0
- package/dist/entities/userDataDeletionRequest.js +56 -0
- package/dist/entities/userDeviceBehaviorTask.js +80 -0
- package/dist/entities/userInvitation.js +89 -0
- package/dist/entities/userRatingRequest.js +75 -0
- package/dist/entities/userRegistrationAttempt.js +177 -0
- package/dist/entities/userSecurityRole.js +33 -0
- package/dist/index.js +1 -2
- package/dist/migration/1684483704434-addLowerCaseIndex.js +16 -0
- package/dist/novaDataSource.js +111 -0
- package/dist/repositories/acumatica/getAcumaticaImeiIccidData.js +35 -0
- package/dist/repositories/acumatica/getAcumaticaShipmentDetails.js +50 -0
- package/dist/repositories/acumatica/getLastAcumaticaShipmentDetails.js +27 -0
- package/dist/repositories/acumatica/index.js +52 -0
- package/dist/repositories/aempToken/createAempToken.js +26 -0
- package/dist/repositories/aempToken/deleteAempTokens.js +30 -0
- package/dist/repositories/aempToken/getAempTokens.js +27 -0
- package/dist/repositories/aempToken/index.js +53 -0
- package/dist/repositories/alertTypes/getAlertTypes.js +13 -0
- package/dist/repositories/alertTypes/index.js +18 -0
- package/dist/repositories/alerts/createAlert.js +94 -0
- package/dist/repositories/alerts/createUserAlertComplain.js +26 -0
- package/dist/repositories/alerts/getAlertsReportByClient.js +65 -0
- package/dist/repositories/alerts/getAlertsReportByUser.js +127 -0
- package/dist/repositories/alerts/index.js +104 -0
- package/dist/repositories/appFeatures/createAppFeatureType.js +15 -0
- package/dist/repositories/appFeatures/createClientAppFeature.js +15 -0
- package/dist/repositories/appFeatures/getClientAppFeatures.js +39 -0
- package/dist/repositories/appFeatures/index.js +57 -0
- package/dist/repositories/assetCategories/getAssetCategories.js +8 -0
- package/dist/repositories/assetCategories/index.js +16 -0
- package/dist/repositories/baseRepository.js +9 -0
- package/dist/repositories/billing/createBilling.js +37 -0
- package/dist/repositories/billing/createBillingDeviceHistory.js +30 -0
- package/dist/repositories/billing/createBillingHubspotPaymentLog.js +61 -0
- package/dist/repositories/billing/createBillingStatusHistoryBraintree.js +32 -0
- package/dist/repositories/billing/getBillingCustomerBraintreeById.js +18 -0
- package/dist/repositories/billing/getBillingKlarnaOrderByImei.js +18 -0
- package/dist/repositories/billing/getBillingSubscriptionBraintreeByImei.js +18 -0
- package/dist/repositories/billing/getBillingSubscriptionsBraintree.js +25 -0
- package/dist/repositories/billing/getBillings.js +42 -0
- package/dist/repositories/billing/getCanceledImeis.js +84 -0
- package/dist/repositories/billing/getCanceledImeisMatchingMagentoData.js +100 -0
- package/dist/repositories/billing/getChurnStatusByClientId.js +27 -0
- package/dist/repositories/billing/getClientIdFromBraintreeCustomer.js +20 -0
- package/dist/repositories/billing/getMagentoPlan.js +21 -0
- package/dist/repositories/billing/getUserByBraintreeCustomerId.js +22 -0
- package/dist/repositories/billing/index.js +353 -0
- package/dist/repositories/billing/updateBilling.js +43 -0
- package/dist/repositories/billing/updateBillingCustomerBraintree.js +37 -0
- package/dist/repositories/billing/upsertBillingCustomerBraintree.js +39 -0
- package/dist/repositories/billing/upsertBillingKlarnaCustomer.js +52 -0
- package/dist/repositories/billing/upsertBillingKlarnaOrder.js +58 -0
- package/dist/repositories/billing/upsertBillingSubscriptionBraintree.js +20 -0
- package/dist/repositories/blacklist/getBlacklists.js +19 -0
- package/dist/repositories/blacklist/index.js +19 -0
- package/dist/repositories/boundaries/createBoundary.js +52 -0
- package/dist/repositories/boundaries/deleteBoundary.js +23 -0
- package/dist/repositories/boundaries/getBoundariesByClientId.js +17 -0
- package/dist/repositories/boundaries/getBoundariesIdsByClientId.js +19 -0
- package/dist/repositories/boundaries/getBoundariesReport.js +141 -0
- package/dist/repositories/boundaries/getBoundaryById.js +14 -0
- package/dist/repositories/boundaries/index.js +178 -0
- package/dist/repositories/boundaries/processBoundaryEvent.js +211 -0
- package/dist/repositories/boundaries/updateBoundary.js +53 -0
- package/dist/repositories/boundaries/upsertBoundaryEvent.js +23 -0
- package/dist/repositories/clients/createClient.js +35 -0
- package/dist/repositories/clients/createClientConfiguration.js +18 -0
- package/dist/repositories/clients/createCustomerAttribute.js +16 -0
- package/dist/repositories/clients/deleteClientAndConfiguration.js +25 -0
- package/dist/repositories/clients/getClient.js +32 -0
- package/dist/repositories/clients/getClientConfiguration.js +14 -0
- package/dist/repositories/clients/getClients.js +26 -0
- package/dist/repositories/clients/getCustomerAttribute.js +14 -0
- package/dist/repositories/clients/index.js +192 -0
- package/dist/repositories/clients/updateClient.js +52 -0
- package/dist/repositories/clients/updateClientConfiguration.js +31 -0
- package/dist/repositories/clients/updateCustomerAttribute.js +27 -0
- package/dist/repositories/countries/getCountries.js +14 -0
- package/dist/repositories/countries/getCountry.js +23 -0
- package/dist/repositories/countries/index.js +33 -0
- package/dist/repositories/deactivations/createDeactivation.js +16 -0
- package/dist/repositories/deactivations/getDeactivationReasons.js +24 -0
- package/dist/repositories/deactivations/getLatestDeactivationByImei.js +19 -0
- package/dist/repositories/deactivations/index.js +58 -0
- package/dist/repositories/deviceBehaviors/createDeviceBehaviorTask.js +48 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorTasks.js +40 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviors.js +41 -0
- package/dist/repositories/deviceBehaviors/getDeviceBehaviorsByIds.js +16 -0
- package/dist/repositories/deviceBehaviors/getDevicesLastBehaviorTask.js +42 -0
- package/dist/repositories/deviceBehaviors/getLatestDeviceBehaviorTasks.js +40 -0
- package/dist/repositories/deviceBehaviors/index.js +147 -0
- package/dist/repositories/deviceBehaviors/updateDeviceBehaviorTask.js +27 -0
- package/dist/repositories/deviceBehaviors/upsertDeviceBehavior.js +20 -0
- package/dist/repositories/devicePairings/createDevicePairing.js +21 -0
- package/dist/repositories/devicePairings/deleteDevicePairing.js +16 -0
- package/dist/repositories/devicePairings/getDevicePairings.js +36 -0
- package/dist/repositories/devicePairings/getDevicePairingsByImei.js +20 -0
- package/dist/repositories/devicePairings/index.js +90 -0
- package/dist/repositories/devicePairings/updateDevicePairing.js +32 -0
- package/dist/repositories/devices/createClientDeviceSetting.js +25 -0
- package/dist/repositories/devices/createDevice.js +30 -0
- package/dist/repositories/devices/createDeviceReplacement.js +34 -0
- package/dist/repositories/devices/createDeviceType.js +15 -0
- package/dist/repositories/devices/deleteDevice.js +16 -0
- package/dist/repositories/devices/generateDeviceIdentifierKey.js +18 -0
- package/dist/repositories/devices/getCanceledDevicesWithActiveSimCards.js +40 -0
- package/dist/repositories/devices/getCarrierStatusUpdatedBefore.js +40 -0
- package/dist/repositories/devices/getClientDeviceSetting.js +20 -0
- package/dist/repositories/devices/getClientDeviceSettings.js +17 -0
- package/dist/repositories/devices/getDevice.js +33 -0
- package/dist/repositories/devices/getDeviceCustomConfig.js +37 -0
- package/dist/repositories/devices/getDeviceTypeByImei.js +18 -0
- package/dist/repositories/devices/getDeviceTypes.js +30 -0
- package/dist/repositories/devices/getDeviceTypesModelsOrderedByDeviceCount.js +27 -0
- package/dist/repositories/devices/getDeviceWithUsersInfo.js +59 -0
- package/dist/repositories/devices/getDevices.js +46 -0
- package/dist/repositories/devices/getFilteredImeisWithStatus.js +20 -0
- package/dist/repositories/devices/getIccidStatus.js +17 -0
- package/dist/repositories/devices/getImeiIccidCarrier.js +23 -0
- package/dist/repositories/devices/getImeiIccidCarriers.js +17 -0
- package/dist/repositories/devices/index.js +464 -0
- package/dist/repositories/devices/updateClientDeviceSetting.js +38 -0
- package/dist/repositories/devices/updateDevice.js +56 -0
- package/dist/repositories/devices/updateDeviceType.js +43 -0
- package/dist/repositories/devices/updateIccidStatus.js +28 -0
- package/dist/repositories/devices/updateImeiIccidCarrier.js +43 -0
- package/dist/repositories/devices/upsertIccidStatus.js +36 -0
- package/dist/repositories/firmwares/createDeviceFirmware.js +37 -0
- package/dist/repositories/firmwares/createFirmwareAutoUpgradeBlacklist.js +16 -0
- package/dist/repositories/firmwares/createFirmwareUpgradeTask.js +36 -0
- package/dist/repositories/firmwares/getDeviceFirmwares.js +21 -0
- package/dist/repositories/firmwares/getFirmwareAutoUpgradeBlacklist.js +23 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasks.js +105 -0
- package/dist/repositories/firmwares/getFirmwareUpgradeTasksCount.js +56 -0
- package/dist/repositories/firmwares/index.js +194 -0
- package/dist/repositories/firmwares/updateDeviceFirmware.js +41 -0
- package/dist/repositories/firmwares/updateFirmwareUpgradeTasks.js +37 -0
- package/dist/repositories/index.js +31 -0
- package/dist/repositories/notificationRecipients/createNotificationRecipient.js +37 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipients.js +26 -0
- package/dist/repositories/notificationRecipients/deleteNotificationRecipientsByEmailOrPhone.js +28 -0
- package/dist/repositories/notificationRecipients/getNotificationRecipients.js +16 -0
- package/dist/repositories/notificationRecipients/index.js +131 -0
- package/dist/repositories/notificationRecipients/updateNotificationRecipient.js +37 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsubscribedInfoStatus.js +98 -0
- package/dist/repositories/notificationRecipients/updateUsersNotificationsUnsuscribedStatus.js +35 -0
- package/dist/repositories/positions/createPosition.js +100 -0
- package/dist/repositories/positions/getLatestPositionByImei.js +26 -0
- package/dist/repositories/positions/getPositionsByImei.js +23 -0
- package/dist/repositories/positions/getPositionsReportByClient.js +87 -0
- package/dist/repositories/positions/index.js +101 -0
- package/dist/repositories/positions/upsertLatestPosition.js +41 -0
- package/dist/repositories/security/createUserRole.js +30 -0
- package/dist/repositories/security/getAllRoles.js +8 -0
- package/dist/repositories/security/getUserRoles.js +15 -0
- package/dist/repositories/security/getUserRolesByClientId.js +17 -0
- package/dist/repositories/security/index.js +111 -0
- package/dist/repositories/security/removeUserRoles.js +21 -0
- package/dist/repositories/security/updateUserRole.js +27 -0
- package/dist/repositories/security/userIsAdminOrOwner.js +20 -0
- package/dist/repositories/security/userIsInRole.js +18 -0
- package/dist/repositories/tasks/addTaskScheduleDevices.js +37 -0
- package/dist/repositories/tasks/completeTask.js +25 -0
- package/dist/repositories/tasks/createTask.js +22 -0
- package/dist/repositories/tasks/createTaskSchedule.js +33 -0
- package/dist/repositories/tasks/deleteTask.js +22 -0
- package/dist/repositories/tasks/deleteTaskSchedule.js +22 -0
- package/dist/repositories/tasks/deleteTaskScheduleDevices.js +17 -0
- package/dist/repositories/tasks/getDeviceTasks.js +28 -0
- package/dist/repositories/tasks/getTaskSchedule.js +31 -0
- package/dist/repositories/tasks/getTaskSchedules.js +75 -0
- package/dist/repositories/tasks/getTaskSchedulesCount.js +23 -0
- package/dist/repositories/tasks/getTasks.js +29 -0
- package/dist/repositories/tasks/getTasksCount.js +20 -0
- package/dist/repositories/tasks/index.js +441 -0
- package/dist/repositories/tasks/setTaskAsPastDue.js +23 -0
- package/dist/repositories/tasks/setTaskScheduleDevices.js +43 -0
- package/dist/repositories/tasks/updateTask.js +21 -0
- package/dist/repositories/tasks/updateTaskSchedule.js +35 -0
- package/dist/repositories/trips/createTrip.js +29 -0
- package/dist/repositories/trips/getTripById.js +15 -0
- package/dist/repositories/trips/getTrips.js +65 -0
- package/dist/repositories/trips/index.js +69 -0
- package/dist/repositories/trips/updateTripEndValues.js +36 -0
- package/dist/repositories/trips/upsertTrip.js +31 -0
- package/dist/repositories/userActivations/createUserActivation.js +26 -0
- package/dist/repositories/userActivations/createUserActivationDevice.js +35 -0
- package/dist/repositories/userActivations/createUserActivationEvent.js +34 -0
- package/dist/repositories/userActivations/createUserActivationMetric.js +28 -0
- package/dist/repositories/userActivations/deleteUserActivation.js +22 -0
- package/dist/repositories/userActivations/getLastActivationDevice.js +26 -0
- package/dist/repositories/userActivations/getUserActivationDevices.js +24 -0
- package/dist/repositories/userActivations/getUserActivationDevicesByClientId.js +26 -0
- package/dist/repositories/userActivations/getUserActivationMetrics.js +24 -0
- package/dist/repositories/userActivations/getUserActivations.js +29 -0
- package/dist/repositories/userActivations/index.js +229 -0
- package/dist/repositories/userActivations/updateUserActivationDevice.js +39 -0
- package/dist/repositories/userActivations/updateUserActivationMetrics.js +61 -0
- package/dist/repositories/userAppFeedback/createUserAppFeedback.js +26 -0
- package/dist/repositories/userAppFeedback/index.js +23 -0
- package/dist/repositories/userAppIncidents/getUserAppIncidents.js +28 -0
- package/dist/repositories/userAppIncidents/index.js +63 -0
- package/dist/repositories/userAppIncidents/upsertUserAppIncident.js +53 -0
- package/dist/repositories/userConfigurations/bulkCreateUserAlertConfigurations.js +46 -0
- package/dist/repositories/userConfigurations/createDeviceAlertTimeWindows.js +36 -0
- package/dist/repositories/userConfigurations/createUserAlertTimeWindows.js +33 -0
- package/dist/repositories/userConfigurations/createUserConfiguration.js +34 -0
- package/dist/repositories/userConfigurations/deleteDeviceAlertTimeWindows.js +17 -0
- package/dist/repositories/userConfigurations/deleteUserAlertConfigurations.js +24 -0
- package/dist/repositories/userConfigurations/deleteUserAlertTimeWindows.js +17 -0
- package/dist/repositories/userConfigurations/deleteUserConfiguration.js +23 -0
- package/dist/repositories/userConfigurations/getDeviceAlertTimeWindows.js +43 -0
- package/dist/repositories/userConfigurations/getUserAlertConfigurations.js +25 -0
- package/dist/repositories/userConfigurations/getUserAlertTimeWindows.js +35 -0
- package/dist/repositories/userConfigurations/getUserConfigurations.js +31 -0
- package/dist/repositories/userConfigurations/index.js +298 -0
- package/dist/repositories/userConfigurations/updateDeviceAlertTimeWindows.js +29 -0
- package/dist/repositories/userConfigurations/updateUserAlertConfigurations.js +46 -0
- package/dist/repositories/userConfigurations/updateUserAlertTimeWindows.js +28 -0
- package/dist/repositories/userConfigurations/updateUserConfiguration.js +49 -0
- package/dist/repositories/userDataDeletionRequests/createUserDataDeletionRequest.js +28 -0
- package/dist/repositories/userDataDeletionRequests/getUserDataDeletionRequest.js +29 -0
- package/dist/repositories/userDataDeletionRequests/index.js +66 -0
- package/dist/repositories/userDataDeletionRequests/removeUserDataDeletionRequest.js +17 -0
- package/dist/repositories/userDataDeletionRequests/updateUserDataDeletionRequest.js +38 -0
- package/dist/repositories/userInvitations/createUserInvitation.js +43 -0
- package/dist/repositories/userInvitations/getUserInvitationById.js +22 -0
- package/dist/repositories/userInvitations/getUserInvitations.js +31 -0
- package/dist/repositories/userInvitations/index.js +82 -0
- package/dist/repositories/userInvitations/updateUserInvitation.js +50 -0
- package/dist/repositories/userRatingRequests/createUserRatingRequest.js +34 -0
- package/dist/repositories/userRatingRequests/getUserRatingRequests.js +23 -0
- package/dist/repositories/userRatingRequests/index.js +41 -0
- package/dist/repositories/userRegistrationAttempts/createUserRegistrationAttempt.js +40 -0
- package/dist/repositories/userRegistrationAttempts/getUserRegistrationAttempts.js +29 -0
- package/dist/repositories/userRegistrationAttempts/index.js +70 -0
- package/dist/repositories/userRegistrationAttempts/updateUserRegistrationAttempt.js +40 -0
- package/dist/repositories/users/createUser.js +47 -0
- package/dist/repositories/users/deleteAccount.js +98 -0
- package/dist/repositories/users/deleteUser.js +22 -0
- package/dist/repositories/users/getUserById.js +22 -0
- package/dist/repositories/users/getUserData.js +66 -0
- package/dist/repositories/users/getUsers.js +49 -0
- package/dist/repositories/users/getUsersConfigurationByImei.js +29 -0
- package/dist/repositories/users/getUsersIdByPhoneAndCountryCode.js +21 -0
- package/dist/repositories/users/getUsersWithRoles.js +32 -0
- package/dist/repositories/users/index.js +195 -0
- package/dist/repositories/users/updateUser.js +109 -0
- package/dist/subscribers/allEntitiesSubscriber.js +52 -0
- package/dist/subscribers/index.js +2 -0
- package/dist/types/acumatica.js +1 -0
- package/dist/types/aempToken.js +1 -0
- package/dist/types/alert.js +1 -0
- package/dist/types/alertTypes.js +1 -0
- package/dist/types/appFeatures.js +1 -0
- package/dist/types/billing.js +1 -0
- package/dist/types/blacklist.js +1 -0
- package/dist/types/boundaries.js +1 -0
- package/dist/types/clients.js +1 -0
- package/dist/types/common.js +1 -0
- package/dist/types/countries.js +1 -0
- package/dist/types/deactivations.js +1 -0
- package/dist/types/deviceBehaviors.js +1 -0
- package/dist/types/devicePairings.js +1 -0
- package/dist/types/devices.js +1 -0
- package/dist/types/enums.js +74 -0
- package/dist/types/firmwares.js +17 -0
- package/dist/types/index.js +30 -0
- package/dist/types/logger.js +9 -0
- package/dist/types/notificationRecipients.js +1 -0
- package/dist/types/position.js +1 -0
- package/dist/types/security.js +1 -0
- package/dist/types/tasks.js +1 -0
- package/dist/types/trip.js +29 -0
- package/dist/types/user.js +1 -0
- package/dist/types/userActivations.js +1 -0
- package/dist/types/userAppFeedback.js +1 -0
- package/dist/types/userAppIncidents.js +1 -0
- package/dist/types/userConfigurations.js +1 -0
- package/dist/types/userDataDeletionRequests.js +1 -0
- package/dist/types/userInvitations.js +1 -0
- package/dist/types/userRatingRequests.js +1 -0
- package/dist/types/userRegistrationAttempts.js +1 -0
- package/dist/utils/anyAttributeHasValue.js +20 -0
- package/dist/utils/anyAttributeIsNull.js +12 -0
- package/dist/utils/boolToNumberTransformer.js +23 -0
- package/dist/utils/consoleLogger.js +42 -0
- package/dist/utils/filterTools.js +299 -0
- package/dist/utils/mapRawEntityToEntity.js +12 -0
- package/dist/utils/queryLogger.js +48 -0
- package/dist/utils/randomizer.js +39 -0
- package/dist/utils/stringToDateTransformer.js +16 -0
- package/dist/utils/uuidHelpers.js +30 -0
- package/package.json +10 -8
- package/dist/index.js.LICENSE.txt +0 -41
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
let AcumaticaAmazonProduct = class AcumaticaAmazonProduct {
|
|
12
|
+
id;
|
|
13
|
+
sku;
|
|
14
|
+
asin;
|
|
15
|
+
description;
|
|
16
|
+
reviewUrl;
|
|
17
|
+
productUrl;
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], AcumaticaAmazonProduct.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column('varchar', { name: 'sku', length: 50 }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], AcumaticaAmazonProduct.prototype, "sku", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column('varchar', { name: 'asin', length: 50 }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AcumaticaAmazonProduct.prototype, "asin", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column('varchar', { name: 'description', nullable: true, length: 500 }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], AcumaticaAmazonProduct.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column('varchar', { name: 'reviewUrl', nullable: true, length: 1000 }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], AcumaticaAmazonProduct.prototype, "reviewUrl", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column('varchar', { name: 'productUrl', nullable: true, length: 1000 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], AcumaticaAmazonProduct.prototype, "productUrl", void 0);
|
|
43
|
+
AcumaticaAmazonProduct = __decorate([
|
|
44
|
+
Entity('acumaticaAmazonProduct', { schema: 'nova' })
|
|
45
|
+
], AcumaticaAmazonProduct);
|
|
46
|
+
export { AcumaticaAmazonProduct };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
let AcumaticaImeiIccidData = class AcumaticaImeiIccidData {
|
|
12
|
+
id;
|
|
13
|
+
imei;
|
|
14
|
+
iccid;
|
|
15
|
+
amazonShipmentId;
|
|
16
|
+
deviceModel;
|
|
17
|
+
deviceCarrier;
|
|
18
|
+
carrierNetwork;
|
|
19
|
+
carrierProductId;
|
|
20
|
+
poNbr;
|
|
21
|
+
createdBy;
|
|
22
|
+
createdDate;
|
|
23
|
+
lastModifiedDate;
|
|
24
|
+
shipDate;
|
|
25
|
+
asin;
|
|
26
|
+
countryCode;
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], AcumaticaImeiIccidData.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Column('varchar', { name: 'imei', length: 50 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], AcumaticaImeiIccidData.prototype, "imei", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column('varchar', { name: 'iccid', nullable: true, length: 50 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], AcumaticaImeiIccidData.prototype, "iccid", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column('varchar', { name: 'amazonShipmentId', nullable: true, length: 50 }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AcumaticaImeiIccidData.prototype, "amazonShipmentId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column('varchar', { name: 'deviceModel', nullable: true, length: 50 }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], AcumaticaImeiIccidData.prototype, "deviceModel", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column('varchar', { name: 'deviceCarrier', nullable: true, length: 50 }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], AcumaticaImeiIccidData.prototype, "deviceCarrier", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Column('varchar', { name: 'carrierNetwork', nullable: true, length: 50 }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AcumaticaImeiIccidData.prototype, "carrierNetwork", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Column('varchar', { name: 'carrierProductId', nullable: true, length: 50 }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], AcumaticaImeiIccidData.prototype, "carrierProductId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column('varchar', { name: 'poNbr', nullable: true, length: 50 }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AcumaticaImeiIccidData.prototype, "poNbr", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
Column('varchar', { name: 'createdBy', nullable: true, length: 100 }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], AcumaticaImeiIccidData.prototype, "createdBy", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column('varchar', { name: 'createdDate', nullable: true, length: 50 }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AcumaticaImeiIccidData.prototype, "createdDate", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column('varchar', { name: 'lastModifiedDate', nullable: true, length: 50 }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], AcumaticaImeiIccidData.prototype, "lastModifiedDate", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
Column('varchar', { name: 'shipDate', nullable: true, length: 50 }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AcumaticaImeiIccidData.prototype, "shipDate", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
Column('varchar', { name: 'asin', nullable: true, length: 50 }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], AcumaticaImeiIccidData.prototype, "asin", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
Column('varchar', { name: 'countryCode', nullable: true, length: 3 }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], AcumaticaImeiIccidData.prototype, "countryCode", void 0);
|
|
88
|
+
AcumaticaImeiIccidData = __decorate([
|
|
89
|
+
Entity('acumaticaImeiIccidData', { schema: 'nova' })
|
|
90
|
+
], AcumaticaImeiIccidData);
|
|
91
|
+
export { AcumaticaImeiIccidData };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
let AcumaticaOrderShipmentDetails = class AcumaticaOrderShipmentDetails {
|
|
12
|
+
id;
|
|
13
|
+
imei;
|
|
14
|
+
shipmentNumber;
|
|
15
|
+
shipmentStatus;
|
|
16
|
+
shipmentDate;
|
|
17
|
+
orderType;
|
|
18
|
+
orderStatus;
|
|
19
|
+
iccid;
|
|
20
|
+
sku;
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
PrimaryGeneratedColumn({ type: 'smallint', name: 'id' }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], AcumaticaOrderShipmentDetails.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column('varchar', { name: 'imei', nullable: true, length: 255 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AcumaticaOrderShipmentDetails.prototype, "imei", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column('varchar', { name: 'shipmentNumber', nullable: true, length: 50 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AcumaticaOrderShipmentDetails.prototype, "shipmentNumber", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column('varchar', { name: 'shipmentStatus', nullable: true, length: 50 }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], AcumaticaOrderShipmentDetails.prototype, "shipmentStatus", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column('datetime', { name: 'shipmentDate', nullable: true, precision: 0 }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], AcumaticaOrderShipmentDetails.prototype, "shipmentDate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column('varchar', { name: 'orderType', nullable: true, length: 10 }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AcumaticaOrderShipmentDetails.prototype, "orderType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column('varchar', { name: 'orderStatus', nullable: true, length: 50 }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], AcumaticaOrderShipmentDetails.prototype, "orderStatus", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Column('varchar', { name: 'iccid', nullable: true, length: 255 }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], AcumaticaOrderShipmentDetails.prototype, "iccid", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column('varchar', { name: 'sku', nullable: true, length: 50 }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], AcumaticaOrderShipmentDetails.prototype, "sku", void 0);
|
|
58
|
+
AcumaticaOrderShipmentDetails = __decorate([
|
|
59
|
+
Entity('acumaticaOrderShipmentDetails', { schema: 'nova' })
|
|
60
|
+
], AcumaticaOrderShipmentDetails);
|
|
61
|
+
export { AcumaticaOrderShipmentDetails };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
11
|
+
let AcumaticaShipment = class AcumaticaShipment {
|
|
12
|
+
shipmentId;
|
|
13
|
+
shipmentDate;
|
|
14
|
+
location;
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
PrimaryColumn('varchar', { name: 'shipmentId', length: 50 }),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], AcumaticaShipment.prototype, "shipmentId", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
Column('datetime', { name: 'shipmentDate', nullable: true, precision: 0 }),
|
|
22
|
+
__metadata("design:type", Date)
|
|
23
|
+
], AcumaticaShipment.prototype, "shipmentDate", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column('varchar', { name: 'location', nullable: true, length: 6 }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], AcumaticaShipment.prototype, "location", void 0);
|
|
28
|
+
AcumaticaShipment = __decorate([
|
|
29
|
+
Entity('acumaticaShipment', { schema: 'nova' })
|
|
30
|
+
], AcumaticaShipment);
|
|
31
|
+
export { AcumaticaShipment };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity } from 'typeorm';
|
|
11
|
+
let AcumaticaShipmentAmazon = class AcumaticaShipmentAmazon {
|
|
12
|
+
shipmentId;
|
|
13
|
+
asin;
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
Column('varchar', { name: 'shipmentId', primary: true, length: 50 }),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], AcumaticaShipmentAmazon.prototype, "shipmentId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
Column('varchar', { name: 'asin', primary: true, length: 50 }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AcumaticaShipmentAmazon.prototype, "asin", void 0);
|
|
23
|
+
AcumaticaShipmentAmazon = __decorate([
|
|
24
|
+
Entity('acumaticaShipmentAmazon', { schema: 'nova' })
|
|
25
|
+
], AcumaticaShipmentAmazon);
|
|
26
|
+
export { AcumaticaShipmentAmazon };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
let AempToken = class AempToken {
|
|
12
|
+
id;
|
|
13
|
+
clientId;
|
|
14
|
+
token;
|
|
15
|
+
createdAt;
|
|
16
|
+
updatedAt;
|
|
17
|
+
expiresAt;
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], AempToken.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Column('int', { name: 'clientId' }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], AempToken.prototype, "clientId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column('binary', { name: 'token', length: 16 }),
|
|
29
|
+
__metadata("design:type", Buffer)
|
|
30
|
+
], AempToken.prototype, "token", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column('datetime', { name: 'createdAt', nullable: true }),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], AempToken.prototype, "createdAt", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column('datetime', { name: 'updatedAt', nullable: true }),
|
|
37
|
+
__metadata("design:type", Date)
|
|
38
|
+
], AempToken.prototype, "updatedAt", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column('datetime', { name: 'expiresAt', nullable: true }),
|
|
41
|
+
__metadata("design:type", Date)
|
|
42
|
+
], AempToken.prototype, "expiresAt", void 0);
|
|
43
|
+
AempToken = __decorate([
|
|
44
|
+
Index('ixuAempToken_Token', ['token'], { unique: true }),
|
|
45
|
+
Entity('aempToken', { schema: 'nova' })
|
|
46
|
+
], AempToken);
|
|
47
|
+
export { AempToken };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, Index, JoinColumn, OneToOne, PrimaryGeneratedColumn, } from 'typeorm';
|
|
11
|
+
import { AlertType } from './alertType';
|
|
12
|
+
let Alert = class Alert {
|
|
13
|
+
id;
|
|
14
|
+
alertTypeId;
|
|
15
|
+
alertType;
|
|
16
|
+
value;
|
|
17
|
+
createdAt;
|
|
18
|
+
userId;
|
|
19
|
+
messageId;
|
|
20
|
+
boundaryId;
|
|
21
|
+
imei;
|
|
22
|
+
sendTime;
|
|
23
|
+
lat;
|
|
24
|
+
lon;
|
|
25
|
+
address;
|
|
26
|
+
clientId;
|
|
27
|
+
isBuffer;
|
|
28
|
+
isNotification;
|
|
29
|
+
gpsUtcTime;
|
|
30
|
+
relevantAddress;
|
|
31
|
+
gpsMessageId;
|
|
32
|
+
cellTowerRelevantAddress;
|
|
33
|
+
};
|
|
34
|
+
__decorate([
|
|
35
|
+
PrimaryGeneratedColumn({ type: 'bigint', name: 'id' }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], Alert.prototype, "id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column('tinyint', { name: 'alertTypeId' }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Alert.prototype, "alertTypeId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
OneToOne(() => AlertType, { createForeignKeyConstraints: false }),
|
|
44
|
+
JoinColumn(),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], Alert.prototype, "alertType", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column('varchar', { name: 'value', nullable: true, length: 5000 }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Alert.prototype, "value", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column('datetime', { name: 'createdAt', precision: 3 }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], Alert.prototype, "createdAt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column('binary', { name: 'userId', nullable: true, length: 16 }),
|
|
57
|
+
__metadata("design:type", Buffer)
|
|
58
|
+
], Alert.prototype, "userId", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Column('binary', { name: 'messageId', length: 16 }),
|
|
61
|
+
__metadata("design:type", Buffer)
|
|
62
|
+
], Alert.prototype, "messageId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Column('int', { name: 'boundaryId', nullable: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], Alert.prototype, "boundaryId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Column('varchar', { name: 'imei', length: 15 }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], Alert.prototype, "imei", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Column('datetime', { name: 'sendTime', precision: 3 }),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], Alert.prototype, "sendTime", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
Column('decimal', { name: 'lat', nullable: true, precision: 8, scale: 6 }),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], Alert.prototype, "lat", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
Column('decimal', { name: 'lon', nullable: true, precision: 9, scale: 6 }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], Alert.prototype, "lon", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
Column('varchar', { name: 'address', nullable: true, length: 255 }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Alert.prototype, "address", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
Column('int', { name: 'clientId', nullable: true }),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], Alert.prototype, "clientId", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
Column('tinyint', { name: 'isBuffer', nullable: true, width: 1 }),
|
|
93
|
+
__metadata("design:type", Boolean)
|
|
94
|
+
], Alert.prototype, "isBuffer", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
Column('tinyint', { name: 'isNotification', nullable: true, width: 1 }),
|
|
97
|
+
__metadata("design:type", Boolean)
|
|
98
|
+
], Alert.prototype, "isNotification", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
Column('datetime', { name: 'gpsUtcTime', nullable: true, precision: 3 }),
|
|
101
|
+
__metadata("design:type", Date)
|
|
102
|
+
], Alert.prototype, "gpsUtcTime", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
Column('varchar', { name: 'relevantAddress', nullable: true, length: 255 }),
|
|
105
|
+
__metadata("design:type", String)
|
|
106
|
+
], Alert.prototype, "relevantAddress", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
Column('binary', { name: 'gpsMessageId', nullable: true, length: 16 }),
|
|
109
|
+
__metadata("design:type", Buffer)
|
|
110
|
+
], Alert.prototype, "gpsMessageId", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
Column('varchar', {
|
|
113
|
+
name: 'cellTowerRelevantAddress',
|
|
114
|
+
nullable: true,
|
|
115
|
+
length: 255,
|
|
116
|
+
}),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], Alert.prototype, "cellTowerRelevantAddress", void 0);
|
|
119
|
+
Alert = __decorate([
|
|
120
|
+
Index('ixAlertUserId_Imei_AlertTypeId_SendTime', ['userId', 'imei', 'alertTypeId', 'sendTime'], {}),
|
|
121
|
+
Index('ixAlertUserId_AlertTypeId_SendTime', ['userId', 'alertTypeId', 'sendTime'], {}),
|
|
122
|
+
Index('ixAlertAlertTypeId', ['alertTypeId'], {}),
|
|
123
|
+
Index('ixAlertClientId', ['clientId'], {}),
|
|
124
|
+
Index('ixAlertImei', ['imei'], {}),
|
|
125
|
+
Index('ixAlertSendTime', ['sendTime'], {}),
|
|
126
|
+
Index('ixAlertUserId', ['userId'], {}),
|
|
127
|
+
Entity('alert', { schema: 'nova' })
|
|
128
|
+
], Alert);
|
|
129
|
+
export { Alert };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
11
|
+
let AlertMigration = class AlertMigration {
|
|
12
|
+
id;
|
|
13
|
+
alertTypeId;
|
|
14
|
+
value;
|
|
15
|
+
createdAt;
|
|
16
|
+
userId;
|
|
17
|
+
messageId;
|
|
18
|
+
boundaryId;
|
|
19
|
+
imei;
|
|
20
|
+
sendTime;
|
|
21
|
+
lat;
|
|
22
|
+
lon;
|
|
23
|
+
address;
|
|
24
|
+
clientId;
|
|
25
|
+
isBuffer;
|
|
26
|
+
isNotification;
|
|
27
|
+
gpsUtcTime;
|
|
28
|
+
relevantAddress;
|
|
29
|
+
gpsMessageId;
|
|
30
|
+
cellTowerRelevantAddress;
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
PrimaryColumn({ type: 'bigint', name: 'id' }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], AlertMigration.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column('tinyint', { name: 'alertTypeId' }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], AlertMigration.prototype, "alertTypeId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column('varchar', { name: 'value', nullable: true, length: 5000 }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], AlertMigration.prototype, "value", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column('datetime', { name: 'createdAt', precision: 3 }),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], AlertMigration.prototype, "createdAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column('binary', { name: 'userId', nullable: true, length: 16 }),
|
|
50
|
+
__metadata("design:type", Buffer)
|
|
51
|
+
], AlertMigration.prototype, "userId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
Column('binary', { name: 'messageId', length: 16 }),
|
|
54
|
+
__metadata("design:type", Buffer)
|
|
55
|
+
], AlertMigration.prototype, "messageId", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
Column('int', { name: 'boundaryId', nullable: true }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], AlertMigration.prototype, "boundaryId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
Column('varchar', { name: 'imei', length: 15 }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], AlertMigration.prototype, "imei", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
Column('datetime', { name: 'sendTime', precision: 3 }),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], AlertMigration.prototype, "sendTime", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
Column('decimal', { name: 'lat', nullable: true, precision: 8, scale: 6 }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], AlertMigration.prototype, "lat", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
Column('decimal', { name: 'lon', nullable: true, precision: 9, scale: 6 }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], AlertMigration.prototype, "lon", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
Column('varchar', { name: 'address', nullable: true, length: 255 }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], AlertMigration.prototype, "address", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
Column('int', { name: 'clientId', nullable: true }),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], AlertMigration.prototype, "clientId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
Column('tinyint', { name: 'isBuffer', nullable: true, width: 1 }),
|
|
86
|
+
__metadata("design:type", Boolean)
|
|
87
|
+
], AlertMigration.prototype, "isBuffer", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
Column('tinyint', { name: 'isNotification', nullable: true, width: 1 }),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], AlertMigration.prototype, "isNotification", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
Column('datetime', { name: 'gpsUtcTime', nullable: true, precision: 3 }),
|
|
94
|
+
__metadata("design:type", Date)
|
|
95
|
+
], AlertMigration.prototype, "gpsUtcTime", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
Column('varchar', { name: 'relevantAddress', nullable: true, length: 255 }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], AlertMigration.prototype, "relevantAddress", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
Column('binary', { name: 'gpsMessageId', nullable: true, length: 16 }),
|
|
102
|
+
__metadata("design:type", Buffer)
|
|
103
|
+
], AlertMigration.prototype, "gpsMessageId", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
Column('varchar', {
|
|
106
|
+
name: 'cellTowerRelevantAddress',
|
|
107
|
+
nullable: true,
|
|
108
|
+
length: 255,
|
|
109
|
+
}),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], AlertMigration.prototype, "cellTowerRelevantAddress", void 0);
|
|
112
|
+
AlertMigration = __decorate([
|
|
113
|
+
Entity('alertMigration', { schema: 'nova' })
|
|
114
|
+
], AlertMigration);
|
|
115
|
+
export { AlertMigration };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryColumn } from 'typeorm';
|
|
11
|
+
let AlertMigrationBatch = class AlertMigrationBatch {
|
|
12
|
+
id;
|
|
13
|
+
};
|
|
14
|
+
__decorate([
|
|
15
|
+
PrimaryColumn({ type: 'bigint', name: 'id' }),
|
|
16
|
+
__metadata("design:type", Number)
|
|
17
|
+
], AlertMigrationBatch.prototype, "id", void 0);
|
|
18
|
+
AlertMigrationBatch = __decorate([
|
|
19
|
+
Entity('alertMigrationBatch', { schema: 'nova' })
|
|
20
|
+
], AlertMigrationBatch);
|
|
21
|
+
export { AlertMigrationBatch };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
11
|
+
let AlertTimeWindowConfiguration = class AlertTimeWindowConfiguration {
|
|
12
|
+
id;
|
|
13
|
+
alertId;
|
|
14
|
+
userId;
|
|
15
|
+
clientId;
|
|
16
|
+
alertConfigurationId;
|
|
17
|
+
daysOfTheWeek;
|
|
18
|
+
startTime;
|
|
19
|
+
endTime;
|
|
20
|
+
label;
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
PrimaryGeneratedColumn({ type: 'int', name: 'id' }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], AlertTimeWindowConfiguration.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column('int', { name: 'alertId', nullable: true }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], AlertTimeWindowConfiguration.prototype, "alertId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column('binary', { name: 'userId', nullable: true, length: 16 }),
|
|
32
|
+
__metadata("design:type", Buffer)
|
|
33
|
+
], AlertTimeWindowConfiguration.prototype, "userId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Column('int', { name: 'clientId', nullable: true }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], AlertTimeWindowConfiguration.prototype, "clientId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Column('int', { name: 'alertConfigurationId', nullable: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], AlertTimeWindowConfiguration.prototype, "alertConfigurationId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Column('varchar', { name: 'daysOfTheWeek', nullable: true, length: 7 }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], AlertTimeWindowConfiguration.prototype, "daysOfTheWeek", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Column('datetime', { name: 'startTime', nullable: true, precision: 0 }),
|
|
48
|
+
__metadata("design:type", Date)
|
|
49
|
+
], AlertTimeWindowConfiguration.prototype, "startTime", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
Column('datetime', { name: 'endTime', nullable: true, precision: 0 }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], AlertTimeWindowConfiguration.prototype, "endTime", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
Column('varchar', { name: 'label', nullable: true, length: 100 }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], AlertTimeWindowConfiguration.prototype, "label", void 0);
|
|
58
|
+
AlertTimeWindowConfiguration = __decorate([
|
|
59
|
+
Entity('alertTimeWindowConfiguration', { schema: 'nova' })
|
|
60
|
+
], AlertTimeWindowConfiguration);
|
|
61
|
+
export { AlertTimeWindowConfiguration };
|