@reachu/database 1.0.182 → 1.0.184
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/config/connect.d.ts +2 -0
- package/dist/config/connect.js +34 -0
- package/dist/config/connect.js.map +1 -0
- package/dist/entity/Address.d.ts +9 -0
- package/dist/entity/Address.js +44 -0
- package/dist/entity/Address.js.map +1 -0
- package/dist/entity/ApiCredential.d.ts +8 -0
- package/dist/entity/ApiCredential.js +41 -0
- package/dist/entity/ApiCredential.js.map +1 -0
- package/dist/entity/Attribute.d.ts +8 -0
- package/dist/entity/Attribute.js +41 -0
- package/dist/entity/Attribute.js.map +1 -0
- package/dist/entity/AuditedModel.d.ts +4 -0
- package/dist/entity/AuditedModel.js +24 -0
- package/dist/entity/AuditedModel.js.map +1 -0
- package/dist/entity/BankAccount.d.ts +11 -0
- package/dist/entity/BankAccount.js +55 -0
- package/dist/entity/BankAccount.js.map +1 -0
- package/dist/entity/Business.d.ts +21 -0
- package/dist/entity/Business.js +83 -0
- package/dist/entity/Business.js.map +1 -0
- package/dist/entity/BusinessProducts.d.ts +6 -0
- package/dist/entity/BusinessProducts.js +32 -0
- package/dist/entity/BusinessProducts.js.map +1 -0
- package/dist/entity/CardRegistration.d.ts +10 -0
- package/dist/entity/CardRegistration.js +51 -0
- package/dist/entity/CardRegistration.js.map +1 -0
- package/dist/entity/Category.d.ts +15 -0
- package/dist/entity/Category.js +68 -0
- package/dist/entity/Category.js.map +1 -0
- package/dist/entity/CategoryImages.d.ts +12 -0
- package/dist/entity/CategoryImages.js +57 -0
- package/dist/entity/CategoryImages.js.map +1 -0
- package/dist/entity/Channel.d.ts +12 -0
- package/dist/entity/Channel.js +56 -0
- package/dist/entity/Channel.js.map +1 -0
- package/dist/entity/ChannelGroup.d.ts +15 -0
- package/dist/entity/ChannelGroup.js +77 -0
- package/dist/entity/ChannelGroup.js.map +1 -0
- package/dist/entity/ChannelUser.d.ts +28 -0
- package/dist/entity/ChannelUser.js +117 -0
- package/dist/entity/ChannelUser.js.map +1 -0
- package/dist/entity/ChannelUserProductSync.d.ts +12 -0
- package/dist/entity/ChannelUserProductSync.js +63 -0
- package/dist/entity/ChannelUserProductSync.js.map +1 -0
- package/dist/entity/ChannelUserSettings.d.ts +11 -0
- package/dist/entity/ChannelUserSettings.js +55 -0
- package/dist/entity/ChannelUserSettings.js.map +1 -0
- package/dist/entity/Check.d.ts +5 -0
- package/dist/entity/Check.js +28 -0
- package/dist/entity/Check.js.map +1 -0
- package/dist/entity/CheckoutMetadata.d.ts +6 -0
- package/dist/entity/CheckoutMetadata.js +35 -0
- package/dist/entity/CheckoutMetadata.js.map +1 -0
- package/dist/entity/Collection.d.ts +17 -0
- package/dist/entity/Collection.js +77 -0
- package/dist/entity/Collection.js.map +1 -0
- package/dist/entity/CollectionItem.d.ts +10 -0
- package/dist/entity/CollectionItem.js +47 -0
- package/dist/entity/CollectionItem.js.map +1 -0
- package/dist/entity/CollectionShared.d.ts +11 -0
- package/dist/entity/CollectionShared.js +51 -0
- package/dist/entity/CollectionShared.js.map +1 -0
- package/dist/entity/Connection.d.ts +13 -0
- package/dist/entity/Connection.js +66 -0
- package/dist/entity/Connection.js.map +1 -0
- package/dist/entity/Contact.d.ts +9 -0
- package/dist/entity/Contact.js +44 -0
- package/dist/entity/Contact.js.map +1 -0
- package/dist/entity/Country.d.ts +7 -0
- package/dist/entity/Country.js +36 -0
- package/dist/entity/Country.js.map +1 -0
- package/dist/entity/Courier.d.ts +7 -0
- package/dist/entity/Courier.js +39 -0
- package/dist/entity/Courier.js.map +1 -0
- package/dist/entity/Currency.d.ts +8 -0
- package/dist/entity/Currency.js +43 -0
- package/dist/entity/Currency.js.map +1 -0
- package/dist/entity/CustomProduct.d.ts +22 -0
- package/dist/entity/CustomProduct.js +95 -0
- package/dist/entity/CustomProduct.js.map +1 -0
- package/dist/entity/CustomProductImage.d.ts +10 -0
- package/dist/entity/CustomProductImage.js +51 -0
- package/dist/entity/CustomProductImage.js.map +1 -0
- package/dist/entity/CustomVariant.d.ts +13 -0
- package/dist/entity/CustomVariant.js +59 -0
- package/dist/entity/CustomVariant.js.map +1 -0
- package/dist/entity/Ecom-user.d.ts +17 -0
- package/dist/entity/Ecom-user.js +77 -0
- package/dist/entity/Ecom-user.js.map +1 -0
- package/dist/entity/EnvType.d.ts +6 -0
- package/dist/entity/EnvType.js +35 -0
- package/dist/entity/EnvType.js.map +1 -0
- package/dist/entity/EnvironmentConfiguration.d.ts +7 -0
- package/dist/entity/EnvironmentConfiguration.js +39 -0
- package/dist/entity/EnvironmentConfiguration.js.map +1 -0
- package/dist/entity/ExchangeRate.d.ts +8 -0
- package/dist/entity/ExchangeRate.js +43 -0
- package/dist/entity/ExchangeRate.js.map +1 -0
- package/dist/entity/ExternalRequest.d.ts +12 -0
- package/dist/entity/ExternalRequest.js +55 -0
- package/dist/entity/ExternalRequest.js.map +1 -0
- package/dist/entity/FlatRate.d.ts +9 -0
- package/dist/entity/FlatRate.js +45 -0
- package/dist/entity/FlatRate.js.map +1 -0
- package/dist/entity/FlatRateCountry.d.ts +7 -0
- package/dist/entity/FlatRateCountry.js +39 -0
- package/dist/entity/FlatRateCountry.js.map +1 -0
- package/dist/entity/Fulfillment.d.ts +5 -0
- package/dist/entity/Fulfillment.js +28 -0
- package/dist/entity/Fulfillment.js.map +1 -0
- package/dist/entity/Image.d.ts +12 -0
- package/dist/entity/Image.js +58 -0
- package/dist/entity/Image.js.map +1 -0
- package/dist/entity/ImportedProduct.d.ts +24 -0
- package/dist/entity/ImportedProduct.js +102 -0
- package/dist/entity/ImportedProduct.js.map +1 -0
- package/dist/entity/MagentoBulk.d.ts +9 -0
- package/dist/entity/MagentoBulk.js +45 -0
- package/dist/entity/MagentoBulk.js.map +1 -0
- package/dist/entity/MagentoConnection.entity.d.ts +14 -0
- package/dist/entity/MagentoConnection.entity.js +69 -0
- package/dist/entity/MagentoConnection.entity.js.map +1 -0
- package/dist/entity/MetricActiveUser.d.ts +8 -0
- package/dist/entity/MetricActiveUser.js +43 -0
- package/dist/entity/MetricActiveUser.js.map +1 -0
- package/dist/entity/Notification.d.ts +20 -0
- package/dist/entity/Notification.js +58 -0
- package/dist/entity/Notification.js.map +1 -0
- package/dist/entity/Option.d.ts +9 -0
- package/dist/entity/Option.js +45 -0
- package/dist/entity/Option.js.map +1 -0
- package/dist/entity/Order.d.ts +32 -0
- package/dist/entity/Order.js +116 -0
- package/dist/entity/Order.js.map +1 -0
- package/dist/entity/OrderCustomer.d.ts +17 -0
- package/dist/entity/OrderCustomer.js +76 -0
- package/dist/entity/OrderCustomer.js.map +1 -0
- package/dist/entity/OrderItem.d.ts +36 -0
- package/dist/entity/OrderItem.js +159 -0
- package/dist/entity/OrderItem.js.map +1 -0
- package/dist/entity/OrderShipping.d.ts +12 -0
- package/dist/entity/OrderShipping.js +69 -0
- package/dist/entity/OrderShipping.js.map +1 -0
- package/dist/entity/OrderTracking.d.ts +16 -0
- package/dist/entity/OrderTracking.js +73 -0
- package/dist/entity/OrderTracking.js.map +1 -0
- package/dist/entity/Payment.d.ts +19 -0
- package/dist/entity/Payment.js +85 -0
- package/dist/entity/Payment.js.map +1 -0
- package/dist/entity/PaymentMethod.d.ts +9 -0
- package/dist/entity/PaymentMethod.js +48 -0
- package/dist/entity/PaymentMethod.js.map +1 -0
- package/dist/entity/PaymentShopify.d.ts +7 -0
- package/dist/entity/PaymentShopify.js +39 -0
- package/dist/entity/PaymentShopify.js.map +1 -0
- package/dist/entity/Permission.d.ts +5 -0
- package/dist/entity/Permission.js +31 -0
- package/dist/entity/Permission.js.map +1 -0
- package/dist/entity/Price.entity.d.ts +6 -0
- package/dist/entity/Price.entity.js +33 -0
- package/dist/entity/Price.entity.js.map +1 -0
- package/dist/entity/Product.entity.d.ts +72 -0
- package/dist/entity/Product.entity.js +290 -0
- package/dist/entity/Product.entity.js.map +1 -0
- package/dist/entity/ProductAttribute.d.ts +9 -0
- package/dist/entity/ProductAttribute.js +49 -0
- package/dist/entity/ProductAttribute.js.map +1 -0
- package/dist/entity/ProductCategory.d.ts +9 -0
- package/dist/entity/ProductCategory.js +47 -0
- package/dist/entity/ProductCategory.js.map +1 -0
- package/dist/entity/ProductDigital.d.ts +29 -0
- package/dist/entity/ProductDigital.js +102 -0
- package/dist/entity/ProductDigital.js.map +1 -0
- package/dist/entity/ProductScraping.d.ts +11 -0
- package/dist/entity/ProductScraping.js +53 -0
- package/dist/entity/ProductScraping.js.map +1 -0
- package/dist/entity/Request.d.ts +9 -0
- package/dist/entity/Request.js +46 -0
- package/dist/entity/Request.js.map +1 -0
- package/dist/entity/Return.d.ts +8 -0
- package/dist/entity/Return.js +40 -0
- package/dist/entity/Return.js.map +1 -0
- package/dist/entity/ReturnAddress.d.ts +10 -0
- package/dist/entity/ReturnAddress.js +48 -0
- package/dist/entity/ReturnAddress.js.map +1 -0
- package/dist/entity/Role.d.ts +7 -0
- package/dist/entity/Role.js +42 -0
- package/dist/entity/Role.js.map +1 -0
- package/dist/entity/RolePermission.d.ts +8 -0
- package/dist/entity/RolePermission.js +40 -0
- package/dist/entity/RolePermission.js.map +1 -0
- package/dist/entity/ShippingPackage.d.ts +7 -0
- package/dist/entity/ShippingPackage.js +39 -0
- package/dist/entity/ShippingPackage.js.map +1 -0
- package/dist/entity/ShopifyConnection.d.ts +15 -0
- package/dist/entity/ShopifyConnection.js +71 -0
- package/dist/entity/ShopifyConnection.js.map +1 -0
- package/dist/entity/Subcategory.d.ts +9 -0
- package/dist/entity/Subcategory.js +41 -0
- package/dist/entity/Subcategory.js.map +1 -0
- package/dist/entity/TemplateEmailChannelUserOrderConfirmation.d.ts +6 -0
- package/dist/entity/TemplateEmailChannelUserOrderConfirmation.js +35 -0
- package/dist/entity/TemplateEmailChannelUserOrderConfirmation.js.map +1 -0
- package/dist/entity/Translate.d.ts +8 -0
- package/dist/entity/Translate.js +43 -0
- package/dist/entity/Translate.js.map +1 -0
- package/dist/entity/User.d.ts +87 -0
- package/dist/entity/User.js +322 -0
- package/dist/entity/User.js.map +1 -0
- package/dist/entity/UserChannelApiKey.d.ts +10 -0
- package/dist/entity/UserChannelApiKey.js +47 -0
- package/dist/entity/UserChannelApiKey.js.map +1 -0
- package/dist/entity/UserRole.d.ts +8 -0
- package/dist/entity/UserRole.js +40 -0
- package/dist/entity/UserRole.js.map +1 -0
- package/dist/entity/UserSettings.d.ts +19 -0
- package/dist/entity/UserSettings.js +94 -0
- package/dist/entity/UserSettings.js.map +1 -0
- package/dist/entity/Variant.d.ts +20 -0
- package/dist/entity/Variant.js +85 -0
- package/dist/entity/Variant.js.map +1 -0
- package/dist/entity/Wallet.d.ts +6 -0
- package/dist/entity/Wallet.js +35 -0
- package/dist/entity/Wallet.js.map +1 -0
- package/dist/entity/WooConnection.d.ts +11 -0
- package/dist/entity/WooConnection.js +56 -0
- package/dist/entity/WooConnection.js.map +1 -0
- package/dist/entity/index.d.ts +107 -0
- package/dist/entity/index.js +221 -0
- package/dist/entity/index.js.map +1 -0
- package/dist/entity/modules/discount/Discount.d.ts +20 -0
- package/dist/entity/modules/discount/Discount.js +89 -0
- package/dist/entity/modules/discount/Discount.js.map +1 -0
- package/dist/entity/modules/discount/DiscountCart.d.ts +10 -0
- package/dist/entity/modules/discount/DiscountCart.js +51 -0
- package/dist/entity/modules/discount/DiscountCart.js.map +1 -0
- package/dist/entity/modules/discount/DiscountProduct.d.ts +9 -0
- package/dist/entity/modules/discount/DiscountProduct.js +47 -0
- package/dist/entity/modules/discount/DiscountProduct.js.map +1 -0
- package/dist/entity/modules/discount/DiscountType.d.ts +8 -0
- package/dist/entity/modules/discount/DiscountType.js +41 -0
- package/dist/entity/modules/discount/DiscountType.js.map +1 -0
- package/dist/entity/modules/shipping/ProductShipping.d.ts +10 -0
- package/dist/entity/modules/shipping/ProductShipping.js +53 -0
- package/dist/entity/modules/shipping/ProductShipping.js.map +1 -0
- package/dist/entity/modules/shipping/Shipping.d.ts +17 -0
- package/dist/entity/modules/shipping/Shipping.js +75 -0
- package/dist/entity/modules/shipping/Shipping.js.map +1 -0
- package/dist/entity/modules/shipping/ShippingCountry.d.ts +12 -0
- package/dist/entity/modules/shipping/ShippingCountry.js +57 -0
- package/dist/entity/modules/shipping/ShippingCountry.js.map +1 -0
- package/dist/entity/modules/shopcart/Cart.d.ts +17 -0
- package/dist/entity/modules/shopcart/Cart.js +73 -0
- package/dist/entity/modules/shopcart/Cart.js.map +1 -0
- package/dist/entity/modules/shopcart/CartItem.d.ts +17 -0
- package/dist/entity/modules/shopcart/CartItem.js +76 -0
- package/dist/entity/modules/shopcart/CartItem.js.map +1 -0
- package/dist/entity/modules/shopcart/Checkout.d.ts +26 -0
- package/dist/entity/modules/shopcart/Checkout.js +111 -0
- package/dist/entity/modules/shopcart/Checkout.js.map +1 -0
- package/dist/entity/modules/shopcart/CheckoutBillingAddress.d.ts +18 -0
- package/dist/entity/modules/shopcart/CheckoutBillingAddress.js +84 -0
- package/dist/entity/modules/shopcart/CheckoutBillingAddress.js.map +1 -0
- package/dist/entity/modules/shopcart/CheckoutShippingAddress.d.ts +18 -0
- package/dist/entity/modules/shopcart/CheckoutShippingAddress.js +84 -0
- package/dist/entity/modules/shopcart/CheckoutShippingAddress.js.map +1 -0
- package/dist/entity/modules/shopcart/PriceData.d.ts +9 -0
- package/dist/entity/modules/shopcart/PriceData.js +48 -0
- package/dist/entity/modules/shopcart/PriceData.js.map +1 -0
- package/dist/entity/modules/subscriptions/Plan.d.ts +13 -0
- package/dist/entity/modules/subscriptions/Plan.js +61 -0
- package/dist/entity/modules/subscriptions/Plan.js.map +1 -0
- package/dist/entity/modules/subscriptions/Subscription.d.ts +14 -0
- package/dist/entity/modules/subscriptions/Subscription.js +63 -0
- package/dist/entity/modules/subscriptions/Subscription.js.map +1 -0
- package/dist/entity/modules/subscriptions/UserCountPlan.d.ts +10 -0
- package/dist/entity/modules/subscriptions/UserCountPlan.js +49 -0
- package/dist/entity/modules/subscriptions/UserCountPlan.js.map +1 -0
- package/dist/entity/modules/templates/AuthInfo.d.ts +22 -0
- package/dist/entity/modules/templates/AuthInfo.js +98 -0
- package/dist/entity/modules/templates/AuthInfo.js.map +1 -0
- package/dist/entity/modules/templates/AuthMethod.d.ts +8 -0
- package/dist/entity/modules/templates/AuthMethod.js +42 -0
- package/dist/entity/modules/templates/AuthMethod.js.map +1 -0
- package/dist/entity/modules/templates/EndpointTemplateEcommerce.d.ts +13 -0
- package/dist/entity/modules/templates/EndpointTemplateEcommerce.js +61 -0
- package/dist/entity/modules/templates/EndpointTemplateEcommerce.js.map +1 -0
- package/dist/entity/modules/templates/TemplateEcommerce.d.ts +30 -0
- package/dist/entity/modules/templates/TemplateEcommerce.js +128 -0
- package/dist/entity/modules/templates/TemplateEcommerce.js.map +1 -0
- package/dist/entity/modules/templates/UserTemplateEcommerce.d.ts +15 -0
- package/dist/entity/modules/templates/UserTemplateEcommerce.js +61 -0
- package/dist/entity/modules/templates/UserTemplateEcommerce.js.map +1 -0
- package/dist/entity/modules/templates/WebhookTemplateEcommerce.d.ts +14 -0
- package/dist/entity/modules/templates/WebhookTemplateEcommerce.js +65 -0
- package/dist/entity/modules/templates/WebhookTemplateEcommerce.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.d.ts +12 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js +56 -0
- package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProduct.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProduct.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProductMapped.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProductMapped.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProductMapped.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped.js.map +1 -0
- package/dist/examples/app01.d.ts +1 -0
- package/dist/examples/app01.js +23 -0
- package/dist/examples/app01.js.map +1 -0
- package/dist/helpers/index.d.ts +6 -0
- package/dist/helpers/index.js +33 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/order/index.d.ts +28 -0
- package/dist/helpers/order/index.js +47 -0
- package/dist/helpers/order/index.js.map +1 -0
- package/dist/helpers/products/index.d.ts +2 -0
- package/dist/helpers/products/index.js +25 -0
- package/dist/helpers/products/index.js.map +1 -0
- package/dist/helpers/products/storage/index.d.ts +2 -0
- package/dist/helpers/products/storage/index.js +25 -0
- package/dist/helpers/products/storage/index.js.map +1 -0
- package/dist/helpers/products/storage/search.d.ts +60 -0
- package/dist/helpers/products/storage/search.js +193 -0
- package/dist/helpers/products/storage/search.js.map +1 -0
- package/dist/helpers/querys/index.d.ts +2 -0
- package/dist/helpers/querys/index.js +31 -0
- package/dist/helpers/querys/index.js.map +1 -0
- package/dist/helpers/returns/index.d.ts +2 -0
- package/dist/helpers/returns/index.js +25 -0
- package/dist/helpers/returns/index.js.map +1 -0
- package/dist/helpers/returns/storage.d.ts +3 -0
- package/dist/helpers/returns/storage.js +23 -0
- package/dist/helpers/returns/storage.js.map +1 -0
- package/dist/helpers/statistics/connections.d.ts +6 -0
- package/dist/helpers/statistics/connections.js +78 -0
- package/dist/helpers/statistics/connections.js.map +1 -0
- package/dist/helpers/statistics/index.d.ts +2 -0
- package/dist/helpers/statistics/index.js +25 -0
- package/dist/helpers/statistics/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/connectionConfig.d.ts +16 -0
- package/dist/interface/connectionConfig.js +3 -0
- package/dist/interface/connectionConfig.js.map +1 -0
- package/dist/migrations/1628474597284-InitialSchema.d.ts +6 -0
- package/dist/migrations/1628474597284-InitialSchema.js +203 -0
- package/dist/migrations/1628474597284-InitialSchema.js.map +1 -0
- package/dist/migrations/1630077596132-RemoveMangopay.d.ts +6 -0
- package/dist/migrations/1630077596132-RemoveMangopay.js +53 -0
- package/dist/migrations/1630077596132-RemoveMangopay.js.map +1 -0
- package/dist/migrations/1633444449026-MagentoIntegration.d.ts +6 -0
- package/dist/migrations/1633444449026-MagentoIntegration.js +42 -0
- package/dist/migrations/1633444449026-MagentoIntegration.js.map +1 -0
- package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.d.ts +6 -0
- package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.js +31 -0
- package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.js.map +1 -0
- package/dist/migrations/1635811861541-SSCCOrderGenerator.d.ts +6 -0
- package/dist/migrations/1635811861541-SSCCOrderGenerator.js +29 -0
- package/dist/migrations/1635811861541-SSCCOrderGenerator.js.map +1 -0
- package/dist/migrations/1638447028594-RolesFeature.d.ts +6 -0
- package/dist/migrations/1638447028594-RolesFeature.js +47 -0
- package/dist/migrations/1638447028594-RolesFeature.js.map +1 -0
- package/dist/migrations/1638493697631-ProductCurrencyPrice.d.ts +6 -0
- package/dist/migrations/1638493697631-ProductCurrencyPrice.js +35 -0
- package/dist/migrations/1638493697631-ProductCurrencyPrice.js.map +1 -0
- package/dist/migrations/1646797095632-UpdateWooTrackingNumber.d.ts +6 -0
- package/dist/migrations/1646797095632-UpdateWooTrackingNumber.js +33 -0
- package/dist/migrations/1646797095632-UpdateWooTrackingNumber.js.map +1 -0
- package/dist/migrations/1648526519546-AddedUserSettings.d.ts +6 -0
- package/dist/migrations/1648526519546-AddedUserSettings.js +37 -0
- package/dist/migrations/1648526519546-AddedUserSettings.js.map +1 -0
- package/dist/migrations/1651206194365-Wolt.d.ts +6 -0
- package/dist/migrations/1651206194365-Wolt.js +52 -0
- package/dist/migrations/1651206194365-Wolt.js.map +1 -0
- package/dist/migrations/1663227133335-shop-cart.d.ts +6 -0
- package/dist/migrations/1663227133335-shop-cart.js +62 -0
- package/dist/migrations/1663227133335-shop-cart.js.map +1 -0
- package/dist/migrations/1664160721396-collection.d.ts +6 -0
- package/dist/migrations/1664160721396-collection.js +43 -0
- package/dist/migrations/1664160721396-collection.js.map +1 -0
- package/dist/migrations/1664222251306-update-collection.d.ts +6 -0
- package/dist/migrations/1664222251306-update-collection.js +37 -0
- package/dist/migrations/1664222251306-update-collection.js.map +1 -0
- package/dist/migrations/1665757388450-channel.d.ts +6 -0
- package/dist/migrations/1665757388450-channel.js +59 -0
- package/dist/migrations/1665757388450-channel.js.map +1 -0
- package/dist/migrations/1666098098114-prod-22-10-18.d.ts +6 -0
- package/dist/migrations/1666098098114-prod-22-10-18.js +110 -0
- package/dist/migrations/1666098098114-prod-22-10-18.js.map +1 -0
- package/dist/migrations/1666631086586-user-channel-api-key-and-currency.d.ts +6 -0
- package/dist/migrations/1666631086586-user-channel-api-key-and-currency.js +39 -0
- package/dist/migrations/1666631086586-user-channel-api-key-and-currency.js.map +1 -0
- package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.d.ts +6 -0
- package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.js +35 -0
- package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.js.map +1 -0
- package/dist/migrations/1666752877685-checkout-and-usser-settings.d.ts +6 -0
- package/dist/migrations/1666752877685-checkout-and-usser-settings.js +39 -0
- package/dist/migrations/1666752877685-checkout-and-usser-settings.js.map +1 -0
- package/dist/migrations/1666846907205-update-user-settings.d.ts +6 -0
- package/dist/migrations/1666846907205-update-user-settings.js +31 -0
- package/dist/migrations/1666846907205-update-user-settings.js.map +1 -0
- package/dist/migrations/1667259333252-prod-22-10-31.d.ts +6 -0
- package/dist/migrations/1667259333252-prod-22-10-31.js +43 -0
- package/dist/migrations/1667259333252-prod-22-10-31.js.map +1 -0
- package/dist/migrations/1667518502388-product-update.d.ts +6 -0
- package/dist/migrations/1667518502388-product-update.js +31 -0
- package/dist/migrations/1667518502388-product-update.js.map +1 -0
- package/dist/migrations/1668571948507-ExchangeRate.d.ts +6 -0
- package/dist/migrations/1668571948507-ExchangeRate.js +29 -0
- package/dist/migrations/1668571948507-ExchangeRate.js.map +1 -0
- package/dist/migrations/1668580085818-update-ExchangeRate.d.ts +6 -0
- package/dist/migrations/1668580085818-update-ExchangeRate.js +31 -0
- package/dist/migrations/1668580085818-update-ExchangeRate.js.map +1 -0
- package/dist/migrations/1669318273596-update-oder-notification.d.ts +6 -0
- package/dist/migrations/1669318273596-update-oder-notification.js +33 -0
- package/dist/migrations/1669318273596-update-oder-notification.js.map +1 -0
- package/dist/migrations/1669737769669-option.d.ts +6 -0
- package/dist/migrations/1669737769669-option.js +29 -0
- package/dist/migrations/1669737769669-option.js.map +1 -0
- package/dist/migrations/1669912111945-shipping.d.ts +6 -0
- package/dist/migrations/1669912111945-shipping.js +39 -0
- package/dist/migrations/1669912111945-shipping.js.map +1 -0
- package/dist/migrations/1670258127812-price.d.ts +6 -0
- package/dist/migrations/1670258127812-price.js +31 -0
- package/dist/migrations/1670258127812-price.js.map +1 -0
- package/dist/migrations/1670952109146-variant.d.ts +6 -0
- package/dist/migrations/1670952109146-variant.js +29 -0
- package/dist/migrations/1670952109146-variant.js.map +1 -0
- package/dist/migrations/1671409580304-order.d.ts +6 -0
- package/dist/migrations/1671409580304-order.js +33 -0
- package/dist/migrations/1671409580304-order.js.map +1 -0
- package/dist/migrations/1672239194236-user-shipping.d.ts +6 -0
- package/dist/migrations/1672239194236-user-shipping.js +31 -0
- package/dist/migrations/1672239194236-user-shipping.js.map +1 -0
- package/dist/migrations/1673628218703-promote_to_production_2023_13_01.d.ts +6 -0
- package/dist/migrations/1673628218703-promote_to_production_2023_13_01.js +67 -0
- package/dist/migrations/1673628218703-promote_to_production_2023_13_01.js.map +1 -0
- package/dist/migrations/1674016904315-exchangeRate_2023_13_01.d.ts +6 -0
- package/dist/migrations/1674016904315-exchangeRate_2023_13_01.js +29 -0
- package/dist/migrations/1674016904315-exchangeRate_2023_13_01.js.map +1 -0
- package/dist/migrations/1674743576475-promote_to_production_2023_26_01.d.ts +6 -0
- package/dist/migrations/1674743576475-promote_to_production_2023_26_01.js +29 -0
- package/dist/migrations/1674743576475-promote_to_production_2023_26_01.js.map +1 -0
- package/dist/migrations/1675452256156-task-1062.d.ts +6 -0
- package/dist/migrations/1675452256156-task-1062.js +39 -0
- package/dist/migrations/1675452256156-task-1062.js.map +1 -0
- package/dist/migrations/1676057445311-task-1062V2.d.ts +6 -0
- package/dist/migrations/1676057445311-task-1062V2.js +29 -0
- package/dist/migrations/1676057445311-task-1062V2.js.map +1 -0
- package/dist/migrations/1676060390524-task-1062V3.d.ts +6 -0
- package/dist/migrations/1676060390524-task-1062V3.js +31 -0
- package/dist/migrations/1676060390524-task-1062V3.js.map +1 -0
- package/dist/migrations/1676389900564-task-1062V4.d.ts +6 -0
- package/dist/migrations/1676389900564-task-1062V4.js +29 -0
- package/dist/migrations/1676389900564-task-1062V4.js.map +1 -0
- package/dist/migrations/1676558804200-task-1074V1.d.ts +6 -0
- package/dist/migrations/1676558804200-task-1074V1.js +29 -0
- package/dist/migrations/1676558804200-task-1074V1.js.map +1 -0
- package/dist/migrations/1676656657956-task-1084V1.d.ts +6 -0
- package/dist/migrations/1676656657956-task-1084V1.js +29 -0
- package/dist/migrations/1676656657956-task-1084V1.js.map +1 -0
- package/dist/migrations/1677706695399-promote_to_production_2023_01_03.d.ts +6 -0
- package/dist/migrations/1677706695399-promote_to_production_2023_01_03.js +49 -0
- package/dist/migrations/1677706695399-promote_to_production_2023_01_03.js.map +1 -0
- package/dist/migrations/1677763068338-task-1032V1.d.ts +6 -0
- package/dist/migrations/1677763068338-task-1032V1.js +51 -0
- package/dist/migrations/1677763068338-task-1032V1.js.map +1 -0
- package/dist/migrations/1677764464274-task-1032V2.d.ts +6 -0
- package/dist/migrations/1677764464274-task-1032V2.js +33 -0
- package/dist/migrations/1677764464274-task-1032V2.js.map +1 -0
- package/dist/migrations/1678115824175-task-1098V1.d.ts +6 -0
- package/dist/migrations/1678115824175-task-1098V1.js +31 -0
- package/dist/migrations/1678115824175-task-1098V1.js.map +1 -0
- package/dist/migrations/1679329902116-promote_to_production_2023_03_20.d.ts +6 -0
- package/dist/migrations/1679329902116-promote_to_production_2023_03_20.js +61 -0
- package/dist/migrations/1679329902116-promote_to_production_2023_03_20.js.map +1 -0
- package/dist/migrations/1680581444059-template.d.ts +6 -0
- package/dist/migrations/1680581444059-template.js +111 -0
- package/dist/migrations/1680581444059-template.js.map +1 -0
- package/dist/migrations/1681167494090-template-channel-name.d.ts +6 -0
- package/dist/migrations/1681167494090-template-channel-name.js +29 -0
- package/dist/migrations/1681167494090-template-channel-name.js.map +1 -0
- package/dist/migrations/1681170372251-template-channel-fix.d.ts +6 -0
- package/dist/migrations/1681170372251-template-channel-fix.js +39 -0
- package/dist/migrations/1681170372251-template-channel-fix.js.map +1 -0
- package/dist/migrations/1681236978678-template-channel-update.d.ts +6 -0
- package/dist/migrations/1681236978678-template-channel-update.js +37 -0
- package/dist/migrations/1681236978678-template-channel-update.js.map +1 -0
- package/dist/migrations/1681258240525-template-channel-update-2.d.ts +6 -0
- package/dist/migrations/1681258240525-template-channel-update-2.js +33 -0
- package/dist/migrations/1681258240525-template-channel-update-2.js.map +1 -0
- package/dist/migrations/1681485048240-template-ecommerce.d.ts +6 -0
- package/dist/migrations/1681485048240-template-ecommerce.js +86 -0
- package/dist/migrations/1681485048240-template-ecommerce.js.map +1 -0
- package/dist/migrations/1681485990275-template-ecommerce-two.d.ts +6 -0
- package/dist/migrations/1681485990275-template-ecommerce-two.js +31 -0
- package/dist/migrations/1681485990275-template-ecommerce-two.js.map +1 -0
- package/dist/migrations/1681741033630-Subscriptions.d.ts +6 -0
- package/dist/migrations/1681741033630-Subscriptions.js +37 -0
- package/dist/migrations/1681741033630-Subscriptions.js.map +1 -0
- package/dist/migrations/1681765500644-template-auth-fix.d.ts +6 -0
- package/dist/migrations/1681765500644-template-auth-fix.js +55 -0
- package/dist/migrations/1681765500644-template-auth-fix.js.map +1 -0
- package/dist/migrations/1681967226231-Subscriptions_v2.d.ts +6 -0
- package/dist/migrations/1681967226231-Subscriptions_v2.js +31 -0
- package/dist/migrations/1681967226231-Subscriptions_v2.js.map +1 -0
- package/dist/migrations/1682475704295-Subscriptions_v3.d.ts +6 -0
- package/dist/migrations/1682475704295-Subscriptions_v3.js +42 -0
- package/dist/migrations/1682475704295-Subscriptions_v3.js.map +1 -0
- package/dist/migrations/1682691040003-code-in-plan.d.ts +6 -0
- package/dist/migrations/1682691040003-code-in-plan.js +31 -0
- package/dist/migrations/1682691040003-code-in-plan.js.map +1 -0
- package/dist/migrations/1682702844783-promote_to_production_28_04_2023.d.ts +6 -0
- package/dist/migrations/1682702844783-promote_to_production_28_04_2023.js +125 -0
- package/dist/migrations/1682702844783-promote_to_production_28_04_2023.js.map +1 -0
- package/dist/migrations/1683077989567-update_plan.d.ts +6 -0
- package/dist/migrations/1683077989567-update_plan.js +31 -0
- package/dist/migrations/1683077989567-update_plan.js.map +1 -0
- package/dist/migrations/1683322405116-translate.d.ts +6 -0
- package/dist/migrations/1683322405116-translate.js +29 -0
- package/dist/migrations/1683322405116-translate.js.map +1 -0
- package/dist/migrations/1683656076895-promote_to_production_09_05_2023.d.ts +6 -0
- package/dist/migrations/1683656076895-promote_to_production_09_05_2023.js +35 -0
- package/dist/migrations/1683656076895-promote_to_production_09_05_2023.js.map +1 -0
- package/dist/migrations/1683904619468-connections.d.ts +6 -0
- package/dist/migrations/1683904619468-connections.js +37 -0
- package/dist/migrations/1683904619468-connections.js.map +1 -0
- package/dist/migrations/1683908691683-connections-update.d.ts +6 -0
- package/dist/migrations/1683908691683-connections-update.js +39 -0
- package/dist/migrations/1683908691683-connections-update.js.map +1 -0
- package/dist/migrations/1684176902363-connections-update-2.d.ts +6 -0
- package/dist/migrations/1684176902363-connections-update-2.js +33 -0
- package/dist/migrations/1684176902363-connections-update-2.js.map +1 -0
- package/dist/migrations/1684451330738-externalRequest.d.ts +6 -0
- package/dist/migrations/1684451330738-externalRequest.js +39 -0
- package/dist/migrations/1684451330738-externalRequest.js.map +1 -0
- package/dist/migrations/1684452127341-externalRequest_v1.d.ts +6 -0
- package/dist/migrations/1684452127341-externalRequest_v1.js +33 -0
- package/dist/migrations/1684452127341-externalRequest_v1.js.map +1 -0
- package/dist/migrations/1684452476996-externalRequest_v2.d.ts +6 -0
- package/dist/migrations/1684452476996-externalRequest_v2.js +33 -0
- package/dist/migrations/1684452476996-externalRequest_v2.js.map +1 -0
- package/dist/migrations/1684935064606-shopify-conn.d.ts +6 -0
- package/dist/migrations/1684935064606-shopify-conn.js +33 -0
- package/dist/migrations/1684935064606-shopify-conn.js.map +1 -0
- package/dist/migrations/1684975416295-shopify-conn-2.d.ts +6 -0
- package/dist/migrations/1684975416295-shopify-conn-2.js +31 -0
- package/dist/migrations/1684975416295-shopify-conn-2.js.map +1 -0
- package/dist/migrations/1685123080409-externalRequest_v3.d.ts +6 -0
- package/dist/migrations/1685123080409-externalRequest_v3.js +31 -0
- package/dist/migrations/1685123080409-externalRequest_v3.js.map +1 -0
- package/dist/migrations/1685127311585-externalRequest_v4.d.ts +6 -0
- package/dist/migrations/1685127311585-externalRequest_v4.js +33 -0
- package/dist/migrations/1685127311585-externalRequest_v4.js.map +1 -0
- package/dist/migrations/1685128263295-external-request-update.d.ts +6 -0
- package/dist/migrations/1685128263295-external-request-update.js +45 -0
- package/dist/migrations/1685128263295-external-request-update.js.map +1 -0
- package/dist/migrations/1686235086187-fix-multiple-shops.d.ts +6 -0
- package/dist/migrations/1686235086187-fix-multiple-shops.js +31 -0
- package/dist/migrations/1686235086187-fix-multiple-shops.js.map +1 -0
- package/dist/migrations/1686309865248-cart_shipping_country.d.ts +6 -0
- package/dist/migrations/1686309865248-cart_shipping_country.js +33 -0
- package/dist/migrations/1686309865248-cart_shipping_country.js.map +1 -0
- package/dist/migrations/1686837392110-cart_shipping_default.d.ts +6 -0
- package/dist/migrations/1686837392110-cart_shipping_default.js +29 -0
- package/dist/migrations/1686837392110-cart_shipping_default.js.map +1 -0
- package/dist/migrations/1687235204409-channel_user.d.ts +6 -0
- package/dist/migrations/1687235204409-channel_user.js +29 -0
- package/dist/migrations/1687235204409-channel_user.js.map +1 -0
- package/dist/migrations/1687322723851-channel_apikey.d.ts +6 -0
- package/dist/migrations/1687322723851-channel_apikey.js +31 -0
- package/dist/migrations/1687322723851-channel_apikey.js.map +1 -0
- package/dist/migrations/1687872767462-add-columns-template-endpoint.d.ts +6 -0
- package/dist/migrations/1687872767462-add-columns-template-endpoint.js +43 -0
- package/dist/migrations/1687872767462-add-columns-template-endpoint.js.map +1 -0
- package/dist/migrations/1687876131132-migration-develop.d.ts +6 -0
- package/dist/migrations/1687876131132-migration-develop.js +31 -0
- package/dist/migrations/1687876131132-migration-develop.js.map +1 -0
- package/dist/migrations/1687877455406-migration-develop_01.d.ts +6 -0
- package/dist/migrations/1687877455406-migration-develop_01.js +37 -0
- package/dist/migrations/1687877455406-migration-develop_01.js.map +1 -0
- package/dist/migrations/1687877967732-migration-pre-develop.d.ts +6 -0
- package/dist/migrations/1687877967732-migration-pre-develop.js +31 -0
- package/dist/migrations/1687877967732-migration-pre-develop.js.map +1 -0
- package/dist/migrations/1687909776321-migration-pre-develop-shopiffy-connection.d.ts +6 -0
- package/dist/migrations/1687909776321-migration-pre-develop-shopiffy-connection.js +35 -0
- package/dist/migrations/1687909776321-migration-pre-develop-shopiffy-connection.js.map +1 -0
- package/dist/migrations/1687981491374-add-info-to-auth.d.ts +6 -0
- package/dist/migrations/1687981491374-add-info-to-auth.js +37 -0
- package/dist/migrations/1687981491374-add-info-to-auth.js.map +1 -0
- package/dist/migrations/1687993176652-add-info-to-auth-2.d.ts +6 -0
- package/dist/migrations/1687993176652-add-info-to-auth-2.js +35 -0
- package/dist/migrations/1687993176652-add-info-to-auth-2.js.map +1 -0
- package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.d.ts +6 -0
- package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.js +35 -0
- package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.js.map +1 -0
- package/dist/migrations/1688049065964-add-title-endpoint.d.ts +6 -0
- package/dist/migrations/1688049065964-add-title-endpoint.js +29 -0
- package/dist/migrations/1688049065964-add-title-endpoint.js.map +1 -0
- package/dist/migrations/1688489173526-add-webhook-template.d.ts +6 -0
- package/dist/migrations/1688489173526-add-webhook-template.js +31 -0
- package/dist/migrations/1688489173526-add-webhook-template.js.map +1 -0
- package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.d.ts +6 -0
- package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.js +31 -0
- package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.js.map +1 -0
- package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.d.ts +6 -0
- package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.js +31 -0
- package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.js.map +1 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.d.ts +6 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.js +47 -0
- package/dist/migrations/1689005718747-add-active-colum-in-variant.js.map +1 -0
- package/dist/migrations/1689020331011-add-discount.d.ts +6 -0
- package/dist/migrations/1689020331011-add-discount.js +45 -0
- package/dist/migrations/1689020331011-add-discount.js.map +1 -0
- package/dist/migrations/1689279346515-add-discount-user.d.ts +6 -0
- package/dist/migrations/1689279346515-add-discount-user.js +31 -0
- package/dist/migrations/1689279346515-add-discount-user.js.map +1 -0
- package/dist/migrations/1689345976870-promote_to_development_14_07_23.d.ts +6 -0
- package/dist/migrations/1689345976870-promote_to_development_14_07_23.js +47 -0
- package/dist/migrations/1689345976870-promote_to_development_14_07_23.js.map +1 -0
- package/dist/migrations/1689702729291-discount-applied.d.ts +6 -0
- package/dist/migrations/1689702729291-discount-applied.js +29 -0
- package/dist/migrations/1689702729291-discount-applied.js.map +1 -0
- package/dist/migrations/1689964936496-promote_to_production_21_07_23_01.d.ts +6 -0
- package/dist/migrations/1689964936496-promote_to_production_21_07_23_01.js +93 -0
- package/dist/migrations/1689964936496-promote_to_production_21_07_23_01.js.map +1 -0
- package/dist/migrations/1691662129283-woo_connect_channel_user.d.ts +6 -0
- package/dist/migrations/1691662129283-woo_connect_channel_user.js +31 -0
- package/dist/migrations/1691662129283-woo_connect_channel_user.js.map +1 -0
- package/dist/migrations/1691670038774-woo_connect_channel_user_1.d.ts +6 -0
- package/dist/migrations/1691670038774-woo_connect_channel_user_1.js +33 -0
- package/dist/migrations/1691670038774-woo_connect_channel_user_1.js.map +1 -0
- package/dist/migrations/1691670866271-woo_connect_channel_user_3.d.ts +6 -0
- package/dist/migrations/1691670866271-woo_connect_channel_user_3.js +35 -0
- package/dist/migrations/1691670866271-woo_connect_channel_user_3.js.map +1 -0
- package/dist/migrations/1691671305372-woo_connect_channel_user_4.d.ts +6 -0
- package/dist/migrations/1691671305372-woo_connect_channel_user_4.js +31 -0
- package/dist/migrations/1691671305372-woo_connect_channel_user_4.js.map +1 -0
- package/dist/migrations/1691671493692-woo_connect_channel_user_5.d.ts +6 -0
- package/dist/migrations/1691671493692-woo_connect_channel_user_5.js +29 -0
- package/dist/migrations/1691671493692-woo_connect_channel_user_5.js.map +1 -0
- package/dist/migrations/1691679304105-woo_connect_channel_user_6.d.ts +6 -0
- package/dist/migrations/1691679304105-woo_connect_channel_user_6.js +31 -0
- package/dist/migrations/1691679304105-woo_connect_channel_user_6.js.map +1 -0
- package/dist/migrations/1691764260299-promote_to_production_11_08_23.d.ts +6 -0
- package/dist/migrations/1691764260299-promote_to_production_11_08_23.js +33 -0
- package/dist/migrations/1691764260299-promote_to_production_11_08_23.js.map +1 -0
- package/dist/migrations/1693220480521-woo_connect_supplier.d.ts +6 -0
- package/dist/migrations/1693220480521-woo_connect_supplier.js +29 -0
- package/dist/migrations/1693220480521-woo_connect_supplier.js.map +1 -0
- package/dist/migrations/1693249143377-first-stem-category.d.ts +6 -0
- package/dist/migrations/1693249143377-first-stem-category.js +31 -0
- package/dist/migrations/1693249143377-first-stem-category.js.map +1 -0
- package/dist/migrations/1693335945081-first-step-category-2.d.ts +6 -0
- package/dist/migrations/1693335945081-first-step-category-2.js +33 -0
- package/dist/migrations/1693335945081-first-step-category-2.js.map +1 -0
- package/dist/migrations/1693484300635-variant_images.d.ts +6 -0
- package/dist/migrations/1693484300635-variant_images.js +43 -0
- package/dist/migrations/1693484300635-variant_images.js.map +1 -0
- package/dist/migrations/1694450850673-promote_to_production_11_09_23.d.ts +6 -0
- package/dist/migrations/1694450850673-promote_to_production_11_09_23.js +51 -0
- package/dist/migrations/1694450850673-promote_to_production_11_09_23.js.map +1 -0
- package/dist/migrations/1694451010874-promote_to_production_11_09_23__01.d.ts +6 -0
- package/dist/migrations/1694451010874-promote_to_production_11_09_23__01.js +51 -0
- package/dist/migrations/1694451010874-promote_to_production_11_09_23__01.js.map +1 -0
- package/dist/migrations/1694661125001-user-channel-and-megento-connection.d.ts +6 -0
- package/dist/migrations/1694661125001-user-channel-and-megento-connection.js +37 -0
- package/dist/migrations/1694661125001-user-channel-and-megento-connection.js.map +1 -0
- package/dist/migrations/1694787189040-flag-digital.d.ts +6 -0
- package/dist/migrations/1694787189040-flag-digital.js +29 -0
- package/dist/migrations/1694787189040-flag-digital.js.map +1 -0
- package/dist/migrations/1695122269023-imported_magento.d.ts +6 -0
- package/dist/migrations/1695122269023-imported_magento.js +31 -0
- package/dist/migrations/1695122269023-imported_magento.js.map +1 -0
- package/dist/migrations/1695123846329-imported_magento_1.d.ts +6 -0
- package/dist/migrations/1695123846329-imported_magento_1.js +33 -0
- package/dist/migrations/1695123846329-imported_magento_1.js.map +1 -0
- package/dist/migrations/1695658039275-digital-product-v-1.d.ts +6 -0
- package/dist/migrations/1695658039275-digital-product-v-1.js +31 -0
- package/dist/migrations/1695658039275-digital-product-v-1.js.map +1 -0
- package/dist/migrations/1695907880854-digital-product-v-2.d.ts +6 -0
- package/dist/migrations/1695907880854-digital-product-v-2.js +29 -0
- package/dist/migrations/1695907880854-digital-product-v-2.js.map +1 -0
- package/dist/migrations/1696260773644-digital_update.d.ts +6 -0
- package/dist/migrations/1696260773644-digital_update.js +39 -0
- package/dist/migrations/1696260773644-digital_update.js.map +1 -0
- package/dist/migrations/1696266360829-digital_update_01.d.ts +6 -0
- package/dist/migrations/1696266360829-digital_update_01.js +35 -0
- package/dist/migrations/1696266360829-digital_update_01.js.map +1 -0
- package/dist/migrations/1696268533737-digital_update_02.d.ts +6 -0
- package/dist/migrations/1696268533737-digital_update_02.js +31 -0
- package/dist/migrations/1696268533737-digital_update_02.js.map +1 -0
- package/dist/migrations/1696596436032-promote_to_production.d.ts +6 -0
- package/dist/migrations/1696596436032-promote_to_production.js +51 -0
- package/dist/migrations/1696596436032-promote_to_production.js.map +1 -0
- package/dist/migrations/1696608295188-compareat-line-items-1.d.ts +6 -0
- package/dist/migrations/1696608295188-compareat-line-items-1.js +29 -0
- package/dist/migrations/1696608295188-compareat-line-items-1.js.map +1 -0
- package/dist/migrations/1697724057621-promote_to_production.d.ts +6 -0
- package/dist/migrations/1697724057621-promote_to_production.js +31 -0
- package/dist/migrations/1697724057621-promote_to_production.js.map +1 -0
- package/dist/migrations/1697858770679-user_channel.d.ts +6 -0
- package/dist/migrations/1697858770679-user_channel.js +29 -0
- package/dist/migrations/1697858770679-user_channel.js.map +1 -0
- package/dist/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.d.ts +6 -0
- package/dist/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.js +41 -0
- package/dist/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.js.map +1 -0
- package/dist/migrations/1700068092273-generated_15_11_2023.d.ts +6 -0
- package/dist/migrations/1700068092273-generated_15_11_2023.js +29 -0
- package/dist/migrations/1700068092273-generated_15_11_2023.js.map +1 -0
- package/dist/migrations/1700574103856-subscription-response-max.d.ts +6 -0
- package/dist/migrations/1700574103856-subscription-response-max.js +31 -0
- package/dist/migrations/1700574103856-subscription-response-max.js.map +1 -0
- package/dist/migrations/1700597907034-product-digital-reachu.d.ts +6 -0
- package/dist/migrations/1700597907034-product-digital-reachu.js +29 -0
- package/dist/migrations/1700597907034-product-digital-reachu.js.map +1 -0
- package/dist/migrations/1701109844785-oda-and-wolt-deleted.d.ts +6 -0
- package/dist/migrations/1701109844785-oda-and-wolt-deleted.js +31 -0
- package/dist/migrations/1701109844785-oda-and-wolt-deleted.js.map +1 -0
- package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.d.ts +6 -0
- package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.js +29 -0
- package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.js.map +1 -0
- package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.d.ts +6 -0
- package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.js +39 -0
- package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.js.map +1 -0
- package/dist/migrations/1701782890059-channel_user_update.d.ts +6 -0
- package/dist/migrations/1701782890059-channel_user_update.js +31 -0
- package/dist/migrations/1701782890059-channel_user_update.js.map +1 -0
- package/dist/migrations/1701807577519-test-step-1.d.ts +6 -0
- package/dist/migrations/1701807577519-test-step-1.js +43 -0
- package/dist/migrations/1701807577519-test-step-1.js.map +1 -0
- package/dist/migrations/1701868990386-test-v2.d.ts +6 -0
- package/dist/migrations/1701868990386-test-v2.js +81 -0
- package/dist/migrations/1701868990386-test-v2.js.map +1 -0
- package/dist/migrations/1701969845764-promote_to_qa_07_12_23.d.ts +6 -0
- package/dist/migrations/1701969845764-promote_to_qa_07_12_23.js +63 -0
- package/dist/migrations/1701969845764-promote_to_qa_07_12_23.js.map +1 -0
- package/dist/migrations/1702302929376-order-item-varianttitle-nullable.d.ts +6 -0
- package/dist/migrations/1702302929376-order-item-varianttitle-nullable.js +29 -0
- package/dist/migrations/1702302929376-order-item-varianttitle-nullable.js.map +1 -0
- package/dist/migrations/1702310388602-order-channel-order-name-default.d.ts +6 -0
- package/dist/migrations/1702310388602-order-channel-order-name-default.js +29 -0
- package/dist/migrations/1702310388602-order-channel-order-name-default.js.map +1 -0
- package/dist/migrations/1702403624303-promote_to_prod_12_12_23.d.ts +6 -0
- package/dist/migrations/1702403624303-promote_to_prod_12_12_23.js +67 -0
- package/dist/migrations/1702403624303-promote_to_prod_12_12_23.js.map +1 -0
- package/dist/migrations/1703602386185-magento-bulk.d.ts +6 -0
- package/dist/migrations/1703602386185-magento-bulk.js +31 -0
- package/dist/migrations/1703602386185-magento-bulk.js.map +1 -0
- package/dist/migrations/1703611484454-promote_to_prod_26_12_23.d.ts +6 -0
- package/dist/migrations/1703611484454-promote_to_prod_26_12_23.js +31 -0
- package/dist/migrations/1703611484454-promote_to_prod_26_12_23.js.map +1 -0
- package/dist/migrations/1703725615747-promote_to_prod_27_12_23.d.ts +6 -0
- package/dist/migrations/1703725615747-promote_to_prod_27_12_23.js +29 -0
- package/dist/migrations/1703725615747-promote_to_prod_27_12_23.js.map +1 -0
- package/dist/migrations/1703726009902-promote_to_prod_27_12_23__01.d.ts +6 -0
- package/dist/migrations/1703726009902-promote_to_prod_27_12_23__01.js +31 -0
- package/dist/migrations/1703726009902-promote_to_prod_27_12_23__01.js.map +1 -0
- package/dist/migrations/1703783765081-promote_to_qa_28_12_23__01.d.ts +6 -0
- package/dist/migrations/1703783765081-promote_to_qa_28_12_23__01.js +29 -0
- package/dist/migrations/1703783765081-promote_to_qa_28_12_23__01.js.map +1 -0
- package/dist/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.d.ts +6 -0
- package/dist/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.js +29 -0
- package/dist/migrations/1703784009454-promote_to_pre_develop_28_12_23__01.js.map +1 -0
- package/dist/migrations/1704739930074-test-origin-req.d.ts +6 -0
- package/dist/migrations/1704739930074-test-origin-req.js +29 -0
- package/dist/migrations/1704739930074-test-origin-req.js.map +1 -0
- package/dist/migrations/1706273488135-promote_to_production_26_01_2024.d.ts +6 -0
- package/dist/migrations/1706273488135-promote_to_production_26_01_2024.js +29 -0
- package/dist/migrations/1706273488135-promote_to_production_26_01_2024.js.map +1 -0
- package/dist/migrations/1707768053927-shopify-supplier-delete.d.ts +6 -0
- package/dist/migrations/1707768053927-shopify-supplier-delete.js +33 -0
- package/dist/migrations/1707768053927-shopify-supplier-delete.js.map +1 -0
- package/dist/migrations/1708027064933-woo-user-delete.d.ts +6 -0
- package/dist/migrations/1708027064933-woo-user-delete.js +33 -0
- package/dist/migrations/1708027064933-woo-user-delete.js.map +1 -0
- package/dist/migrations/1708039535580-order-channel-user.d.ts +6 -0
- package/dist/migrations/1708039535580-order-channel-user.js +31 -0
- package/dist/migrations/1708039535580-order-channel-user.js.map +1 -0
- package/dist/migrations/1711562145337-user-channel-settings.d.ts +6 -0
- package/dist/migrations/1711562145337-user-channel-settings.js +37 -0
- package/dist/migrations/1711562145337-user-channel-settings.js.map +1 -0
- package/dist/migrations/1711640105019-product-brand.d.ts +6 -0
- package/dist/migrations/1711640105019-product-brand.js +31 -0
- package/dist/migrations/1711640105019-product-brand.js.map +1 -0
- package/dist/migrations/1712152339832-checkout-decimal.d.ts +6 -0
- package/dist/migrations/1712152339832-checkout-decimal.js +29 -0
- package/dist/migrations/1712152339832-checkout-decimal.js.map +1 -0
- package/dist/migrations/1712581513735-currency-symbol.d.ts +6 -0
- package/dist/migrations/1712581513735-currency-symbol.js +29 -0
- package/dist/migrations/1712581513735-currency-symbol.js.map +1 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.d.ts +6 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.js +29 -0
- package/dist/migrations/1713542026036-channelusersettings-purchaseconditions.js.map +1 -0
- package/dist/migrations/1713881510590-checkout-buyer-accepts.d.ts +6 -0
- package/dist/migrations/1713881510590-checkout-buyer-accepts.js +31 -0
- package/dist/migrations/1713881510590-checkout-buyer-accepts.js.map +1 -0
- package/dist/migrations/1714142019591-order-confirmation-email.d.ts +6 -0
- package/dist/migrations/1714142019591-order-confirmation-email.js +31 -0
- package/dist/migrations/1714142019591-order-confirmation-email.js.map +1 -0
- package/dist/migrations/1714169905823-cart-channel-user.d.ts +6 -0
- package/dist/migrations/1714169905823-cart-channel-user.js +31 -0
- package/dist/migrations/1714169905823-cart-channel-user.js.map +1 -0
- package/dist/migrations/1714443774788-product_scraping.d.ts +6 -0
- package/dist/migrations/1714443774788-product_scraping.js +33 -0
- package/dist/migrations/1714443774788-product_scraping.js.map +1 -0
- package/dist/migrations/1714738807306-product_scraping_v1.d.ts +6 -0
- package/dist/migrations/1714738807306-product_scraping_v1.js +33 -0
- package/dist/migrations/1714738807306-product_scraping_v1.js.map +1 -0
- package/dist/migrations/1714750466062-product_scraping_v2.d.ts +6 -0
- package/dist/migrations/1714750466062-product_scraping_v2.js +29 -0
- package/dist/migrations/1714750466062-product_scraping_v2.js.map +1 -0
- package/dist/migrations/1714751423591-product_scraping_v3.d.ts +6 -0
- package/dist/migrations/1714751423591-product_scraping_v3.js +29 -0
- package/dist/migrations/1714751423591-product_scraping_v3.js.map +1 -0
- package/dist/migrations/1714754554111-product_scraping_v4.d.ts +6 -0
- package/dist/migrations/1714754554111-product_scraping_v4.js +29 -0
- package/dist/migrations/1714754554111-product_scraping_v4.js.map +1 -0
- package/dist/migrations/1717708447469-production_01.d.ts +6 -0
- package/dist/migrations/1717708447469-production_01.js +53 -0
- package/dist/migrations/1717708447469-production_01.js.map +1 -0
- package/dist/migrations/1718892353107-add_channel_user_discount.d.ts +6 -0
- package/dist/migrations/1718892353107-add_channel_user_discount.js +31 -0
- package/dist/migrations/1718892353107-add_channel_user_discount.js.map +1 -0
- package/dist/migrations/1719530172075-wooPricesIncludeTax.d.ts +6 -0
- package/dist/migrations/1719530172075-wooPricesIncludeTax.js +29 -0
- package/dist/migrations/1719530172075-wooPricesIncludeTax.js.map +1 -0
- package/dist/migrations/execute/index.d.ts +1 -0
- package/dist/migrations/execute/index.js +9 -0
- package/dist/migrations/execute/index.js.map +1 -0
- package/dist/migrations/index.d.ts +11 -0
- package/dist/migrations/index.js +24 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/repositories/discount/index.d.ts +13 -0
- package/dist/repositories/discount/index.js +42 -0
- package/dist/repositories/discount/index.js.map +1 -0
- package/dist/repositories/index.d.ts +206 -0
- package/dist/repositories/index.js +506 -0
- package/dist/repositories/index.js.map +1 -0
- package/dist/repositories/shipping/index.d.ts +10 -0
- package/dist/repositories/shipping/index.js +35 -0
- package/dist/repositories/shipping/index.js.map +1 -0
- package/dist/repositories/shopcart/index.d.ts +19 -0
- package/dist/repositories/shopcart/index.js +56 -0
- package/dist/repositories/shopcart/index.js.map +1 -0
- package/dist/repositories/subscriptions/index.d.ts +10 -0
- package/dist/repositories/subscriptions/index.js +35 -0
- package/dist/repositories/subscriptions/index.js.map +1 -0
- package/dist/repositories/templates/index.d.ts +46 -0
- package/dist/repositories/templates/index.js +119 -0
- package/dist/repositories/templates/index.js.map +1 -0
- package/dist/staticData/ChannelName.d.ts +9 -0
- package/dist/staticData/ChannelName.js +11 -0
- package/dist/staticData/ChannelName.js.map +1 -0
- package/dist/staticData/ConnectionType.d.ts +5 -0
- package/dist/staticData/ConnectionType.js +7 -0
- package/dist/staticData/ConnectionType.js.map +1 -0
- package/dist/staticData/Currency.d.ts +9 -0
- package/dist/staticData/Currency.js +14 -0
- package/dist/staticData/Currency.js.map +1 -0
- package/dist/staticData/OrderStatus.d.ts +18 -0
- package/dist/staticData/OrderStatus.js +44 -0
- package/dist/staticData/OrderStatus.js.map +1 -0
- package/dist/staticData/PaymentProcessor.d.ts +8 -0
- package/dist/staticData/PaymentProcessor.js +12 -0
- package/dist/staticData/PaymentProcessor.js.map +1 -0
- package/dist/staticData/ProductOrigin.d.ts +10 -0
- package/dist/staticData/ProductOrigin.js +18 -0
- package/dist/staticData/ProductOrigin.js.map +1 -0
- package/dist/staticData/TrackingProcessor.d.ts +7 -0
- package/dist/staticData/TrackingProcessor.js +11 -0
- package/dist/staticData/TrackingProcessor.js.map +1 -0
- package/dist/staticData/VippsPaymentStatus.d.ts +15 -0
- package/dist/staticData/VippsPaymentStatus.js +41 -0
- package/dist/staticData/VippsPaymentStatus.js.map +1 -0
- package/dist/staticData/index.d.ts +9 -0
- package/dist/staticData/index.js +23 -0
- package/dist/staticData/index.js.map +1 -0
- package/dist/subscribers/ProductSubscriber.d.ts +8 -0
- package/dist/subscribers/ProductSubscriber.js +46 -0
- package/dist/subscribers/ProductSubscriber.js.map +1 -0
- package/dist/subscribers/UserSubscriber.d.ts +8 -0
- package/dist/subscribers/UserSubscriber.js +46 -0
- package/dist/subscribers/UserSubscriber.js.map +1 -0
- package/dist/subscribers/index.d.ts +3 -0
- package/dist/subscribers/index.js +8 -0
- package/dist/subscribers/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +11027 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.js +109 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +3 -3
- package/src/entity/WooConnection.ts +3 -0
- package/src/migrations/1719530172075-wooPricesIncludeTax.ts +14 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
+
};
|
|
23
|
+
var Product_1;
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.Product = void 0;
|
|
26
|
+
const typeorm_1 = require("typeorm");
|
|
27
|
+
const User_1 = __importDefault(require("./User"));
|
|
28
|
+
const Subcategory_1 = __importDefault(require("./Subcategory"));
|
|
29
|
+
const Channel_1 = __importDefault(require("./Channel"));
|
|
30
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
31
|
+
const Option_1 = __importDefault(require("./Option"));
|
|
32
|
+
const Image_1 = __importDefault(require("./Image"));
|
|
33
|
+
const Variant_1 = __importDefault(require("./Variant"));
|
|
34
|
+
const FlatRate_1 = __importDefault(require("./FlatRate"));
|
|
35
|
+
const ImportedProduct_1 = __importDefault(require("./ImportedProduct"));
|
|
36
|
+
const logger_1 = require("@reachu/logger");
|
|
37
|
+
const Currency_1 = require("../staticData/Currency");
|
|
38
|
+
const Price_entity_1 = require("./Price.entity");
|
|
39
|
+
const ProductShipping_1 = __importDefault(require("./modules/shipping/ProductShipping"));
|
|
40
|
+
const CustomProduct_1 = require("./CustomProduct");
|
|
41
|
+
const ProductAttribute_1 = __importDefault(require("./ProductAttribute"));
|
|
42
|
+
const ProductCategory_1 = __importDefault(require("./ProductCategory"));
|
|
43
|
+
let Product = Product_1 = class Product extends AuditedModel_1.default {
|
|
44
|
+
convertNumerics() {
|
|
45
|
+
const diff = (this.referralFee * this.publicPrice) / 100;
|
|
46
|
+
this.revenue = Math.round((this.publicPrice - diff) * 100) / 100;
|
|
47
|
+
}
|
|
48
|
+
static getCacheKey(id, currency) {
|
|
49
|
+
return `PRODUCT_${id}-${currency}`;
|
|
50
|
+
}
|
|
51
|
+
static invalidateCache(productId, removeCache) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
logger_1.logger.debug(`[Product.invalidateCache]: by productId ${productId}`);
|
|
54
|
+
yield Promise.all(Currency_1.currencies.map((currency) => removeCache(this.getCacheKey(productId, currency))));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
static productsCountStatus(status) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return typeorm_1.getRepository(Product_1).count({ where: { status } });
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
static get PUBLISHED() {
|
|
63
|
+
return 1;
|
|
64
|
+
}
|
|
65
|
+
static get DRAFT() {
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
__decorate([
|
|
70
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Product.prototype, "id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
typeorm_1.DeleteDateColumn(),
|
|
75
|
+
__metadata("design:type", Date)
|
|
76
|
+
], Product.prototype, "deletedAt", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], Product.prototype, "title", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
typeorm_1.Column('integer', { default: 0 }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], Product.prototype, "status", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
typeorm_1.Column('text', { nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Product.prototype, "description", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], Product.prototype, "publicPrice", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
typeorm_1.Column(() => Price_entity_1.Price, { prefix: 'price_' }),
|
|
95
|
+
__metadata("design:type", Price_entity_1.Price)
|
|
96
|
+
], Product.prototype, "price", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
typeorm_1.Column('integer', { default: 10 }),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], Product.prototype, "referralFee", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
typeorm_1.Column('varchar', { default: '', nullable: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Product.prototype, "tags", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], Product.prototype, "sku", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], Product.prototype, "barcode", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], Product.prototype, "quantity", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
119
|
+
__metadata("design:type", Boolean)
|
|
120
|
+
], Product.prototype, "allowPurchaseOutOfStock", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
123
|
+
__metadata("design:type", Number)
|
|
124
|
+
], Product.prototype, "weight", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
typeorm_1.Column('text', { nullable: true }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], Product.prototype, "shipTo", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
131
|
+
__metadata("design:type", Number)
|
|
132
|
+
], Product.prototype, "width", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], Product.prototype, "height", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
|
|
139
|
+
__metadata("design:type", Number)
|
|
140
|
+
], Product.prototype, "depth", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
143
|
+
__metadata("design:type", Boolean)
|
|
144
|
+
], Product.prototype, "optionsEnabled", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
147
|
+
__metadata("design:type", Boolean)
|
|
148
|
+
], Product.prototype, "digital", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
typeorm_1.ManyToOne(() => User_1.default, { eager: true }),
|
|
151
|
+
typeorm_1.JoinColumn(),
|
|
152
|
+
__metadata("design:type", User_1.default)
|
|
153
|
+
], Product.prototype, "user", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
typeorm_1.ManyToMany(() => Subcategory_1.default, { eager: true }),
|
|
156
|
+
typeorm_1.JoinTable(),
|
|
157
|
+
__metadata("design:type", Array)
|
|
158
|
+
], Product.prototype, "subcategories", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
typeorm_1.ManyToMany(() => Channel_1.default, { eager: true }),
|
|
161
|
+
typeorm_1.JoinTable(),
|
|
162
|
+
__metadata("design:type", Array)
|
|
163
|
+
], Product.prototype, "channels", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
typeorm_1.OneToMany(() => Option_1.default, (option) => option.product, { eager: true, cascade: true }),
|
|
166
|
+
typeorm_1.JoinColumn(),
|
|
167
|
+
__metadata("design:type", Array)
|
|
168
|
+
], Product.prototype, "options", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
typeorm_1.OneToMany(() => Variant_1.default, (variant) => variant.product, { eager: true, cascade: true }),
|
|
171
|
+
typeorm_1.JoinColumn(),
|
|
172
|
+
__metadata("design:type", Array)
|
|
173
|
+
], Product.prototype, "variants", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
typeorm_1.OneToMany(() => Image_1.default, (image) => image.product, { eager: true, cascade: true }),
|
|
176
|
+
typeorm_1.JoinColumn(),
|
|
177
|
+
__metadata("design:type", Array)
|
|
178
|
+
], Product.prototype, "images", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
181
|
+
__metadata("design:type", String)
|
|
182
|
+
], Product.prototype, "origin", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], Product.prototype, "originId", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], Product.prototype, "originUrl", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], Product.prototype, "originVariantId", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
197
|
+
__metadata("design:type", String)
|
|
198
|
+
], Product.prototype, "brand", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
typeorm_1.OneToOne(() => FlatRate_1.default, { eager: true }),
|
|
201
|
+
typeorm_1.JoinColumn(),
|
|
202
|
+
__metadata("design:type", FlatRate_1.default)
|
|
203
|
+
], Product.prototype, "flatRate", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
typeorm_1.OneToOne(() => ImportedProduct_1.default, (importedProduct) => importedProduct.product),
|
|
206
|
+
__metadata("design:type", ImportedProduct_1.default)
|
|
207
|
+
], Product.prototype, "importedProduct", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
typeorm_1.Column('varchar', { nullable: true, select: false }),
|
|
210
|
+
__metadata("design:type", String)
|
|
211
|
+
], Product.prototype, "totalOrders", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
typeorm_1.Column('varchar', { nullable: true, select: false }),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], Product.prototype, "totalImports", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
typeorm_1.Column('integer', { nullable: true, select: false }),
|
|
218
|
+
__metadata("design:type", Number)
|
|
219
|
+
], Product.prototype, "imported", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
typeorm_1.Column('varchar', { nullable: true, select: false }),
|
|
222
|
+
__metadata("design:type", String)
|
|
223
|
+
], Product.prototype, "shopifyId", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
typeorm_1.Column('varchar', { nullable: true, select: false }),
|
|
226
|
+
__metadata("design:type", String)
|
|
227
|
+
], Product.prototype, "wooId", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
typeorm_1.Column('varchar', { nullable: true, select: false }),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], Product.prototype, "userIsSender", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
typeorm_1.Column('varchar', { nullable: true, select: false }),
|
|
234
|
+
__metadata("design:type", String)
|
|
235
|
+
], Product.prototype, "userIsReceiver", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
typeorm_1.Column('integer', { default: 0 }),
|
|
238
|
+
__metadata("design:type", Number)
|
|
239
|
+
], Product.prototype, "rate", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
242
|
+
__metadata("design:type", Boolean)
|
|
243
|
+
], Product.prototype, "migrated", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
246
|
+
__metadata("design:type", Boolean)
|
|
247
|
+
], Product.prototype, "active", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
typeorm_1.OneToMany(() => ProductShipping_1.default, (productShipping) => productShipping.product, {
|
|
250
|
+
cascade: true,
|
|
251
|
+
}),
|
|
252
|
+
typeorm_1.JoinColumn(),
|
|
253
|
+
__metadata("design:type", Array)
|
|
254
|
+
], Product.prototype, "productShipping", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
typeorm_1.OneToMany(() => CustomProduct_1.CustomProduct, (customProduct) => customProduct.product, { onDelete: 'CASCADE' }),
|
|
257
|
+
typeorm_1.JoinColumn(),
|
|
258
|
+
__metadata("design:type", CustomProduct_1.CustomProduct)
|
|
259
|
+
], Product.prototype, "customProduct", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
typeorm_1.OneToMany(() => ProductAttribute_1.default, (productAttribute) => productAttribute.product, { cascade: true }),
|
|
262
|
+
typeorm_1.JoinColumn(),
|
|
263
|
+
__metadata("design:type", Array)
|
|
264
|
+
], Product.prototype, "productAttribute", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
267
|
+
__metadata("design:type", Boolean)
|
|
268
|
+
], Product.prototype, "testOrigen", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
271
|
+
__metadata("design:type", Boolean)
|
|
272
|
+
], Product.prototype, "demo", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
typeorm_1.OneToMany(() => ProductCategory_1.default, (productCategory) => productCategory.product, {
|
|
275
|
+
cascade: false,
|
|
276
|
+
}),
|
|
277
|
+
typeorm_1.JoinColumn(),
|
|
278
|
+
__metadata("design:type", Array)
|
|
279
|
+
], Product.prototype, "productCategory", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
typeorm_1.AfterLoad(),
|
|
282
|
+
__metadata("design:type", Function),
|
|
283
|
+
__metadata("design:paramtypes", []),
|
|
284
|
+
__metadata("design:returntype", void 0)
|
|
285
|
+
], Product.prototype, "convertNumerics", null);
|
|
286
|
+
Product = Product_1 = __decorate([
|
|
287
|
+
typeorm_1.Entity()
|
|
288
|
+
], Product);
|
|
289
|
+
exports.Product = Product;
|
|
290
|
+
//# sourceMappingURL=Product.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Product.entity.js","sourceRoot":"","sources":["../../src/entity/Product.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Attribute from './Attribute';
|
|
2
|
+
import AuditedModel from './AuditedModel';
|
|
3
|
+
import { Product } from './Product.entity';
|
|
4
|
+
export default class ProductAttribute extends AuditedModel {
|
|
5
|
+
id: number;
|
|
6
|
+
deletedAt: Date;
|
|
7
|
+
attribute: Attribute;
|
|
8
|
+
product: Product;
|
|
9
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const Attribute_1 = __importDefault(require("./Attribute"));
|
|
17
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
18
|
+
const Product_entity_1 = require("./Product.entity");
|
|
19
|
+
let ProductAttribute = class ProductAttribute extends AuditedModel_1.default {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ProductAttribute.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.DeleteDateColumn(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], ProductAttribute.prototype, "deletedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.ManyToOne(() => Attribute_1.default, (attribute) => attribute.productAttribute, {
|
|
31
|
+
eager: true,
|
|
32
|
+
onDelete: 'CASCADE',
|
|
33
|
+
}),
|
|
34
|
+
typeorm_1.JoinColumn(),
|
|
35
|
+
__metadata("design:type", Attribute_1.default)
|
|
36
|
+
], ProductAttribute.prototype, "attribute", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.productAttribute, {
|
|
39
|
+
eager: true,
|
|
40
|
+
onDelete: 'CASCADE',
|
|
41
|
+
}),
|
|
42
|
+
typeorm_1.JoinColumn(),
|
|
43
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
44
|
+
], ProductAttribute.prototype, "product", void 0);
|
|
45
|
+
ProductAttribute = __decorate([
|
|
46
|
+
typeorm_1.Entity()
|
|
47
|
+
], ProductAttribute);
|
|
48
|
+
exports.default = ProductAttribute;
|
|
49
|
+
//# sourceMappingURL=ProductAttribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductAttribute.js","sourceRoot":"","sources":["../../src/entity/ProductAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAkG;AAClG,4DAAoC;AACpC,kEAA0C;AAC1C,qDAA2C;AAG3C,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,sBAAY;CAoBzD,CAAA;AAlBC;IADC,gCAAsB,EAAE;;4CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;mDAAC;AAOhB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,mBAAS,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,gBAAgB,EAAE;QAChF,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACF,mBAAS;mDAAC;AAOrB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE;QACxE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;iDAAC;AAnBE,gBAAgB;IADpC,gBAAM,EAAE;GACY,gBAAgB,CAoBpC;kBApBoB,gBAAgB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import AuditedModel from './AuditedModel';
|
|
2
|
+
import { Product } from './Product.entity';
|
|
3
|
+
import Category from './Category';
|
|
4
|
+
export default class ProductCategory extends AuditedModel {
|
|
5
|
+
id: number;
|
|
6
|
+
deletedAt: Date;
|
|
7
|
+
product: Product;
|
|
8
|
+
category: Category;
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
17
|
+
const Product_entity_1 = require("./Product.entity");
|
|
18
|
+
const Category_1 = __importDefault(require("./Category"));
|
|
19
|
+
let ProductCategory = class ProductCategory extends AuditedModel_1.default {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ProductCategory.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.DeleteDateColumn(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], ProductCategory.prototype, "deletedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.id, {
|
|
31
|
+
eager: false,
|
|
32
|
+
}),
|
|
33
|
+
typeorm_1.JoinColumn(),
|
|
34
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
35
|
+
], ProductCategory.prototype, "product", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.ManyToOne(() => Category_1.default, (category) => category.id, {
|
|
38
|
+
eager: false,
|
|
39
|
+
}),
|
|
40
|
+
typeorm_1.JoinColumn(),
|
|
41
|
+
__metadata("design:type", Category_1.default)
|
|
42
|
+
], ProductCategory.prototype, "category", void 0);
|
|
43
|
+
ProductCategory = __decorate([
|
|
44
|
+
typeorm_1.Entity()
|
|
45
|
+
], ProductCategory);
|
|
46
|
+
exports.default = ProductCategory;
|
|
47
|
+
//# sourceMappingURL=ProductCategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCategory.js","sourceRoot":"","sources":["../../src/entity/ProductCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAkG;AAClG,kEAA0C;AAC1C,qDAA2C;AAC3C,0DAAkC;AAGlC,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAkBxD,CAAA;AAhBC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAMhB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;gDAAC;AAMjB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC9D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACH,kBAAQ;iDAAC;AAjBA,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAkBnC;kBAlBoB,eAAe"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import AuditedModel from './AuditedModel';
|
|
2
|
+
import { Product } from './Product.entity';
|
|
3
|
+
import { Price } from './Price.entity';
|
|
4
|
+
export declare enum _type {
|
|
5
|
+
downloadable = 1,
|
|
6
|
+
sample = 2,
|
|
7
|
+
link = 3
|
|
8
|
+
}
|
|
9
|
+
export declare enum _shareable {
|
|
10
|
+
yes = 1,
|
|
11
|
+
no = 2,
|
|
12
|
+
useConfig = 3
|
|
13
|
+
}
|
|
14
|
+
export default class ProductDigital extends AuditedModel {
|
|
15
|
+
id: number;
|
|
16
|
+
deletedAt: Date;
|
|
17
|
+
file_url: string;
|
|
18
|
+
file_url_reachu: string;
|
|
19
|
+
file_size: number;
|
|
20
|
+
shareable: _shareable | null;
|
|
21
|
+
type: _type | null;
|
|
22
|
+
position: number;
|
|
23
|
+
productDigital: ProductDigital;
|
|
24
|
+
price: Price;
|
|
25
|
+
donwload_limit: number;
|
|
26
|
+
expiration_date: Date;
|
|
27
|
+
product: Product;
|
|
28
|
+
name: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
var ProductDigital_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports._shareable = exports._type = void 0;
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
19
|
+
const Product_entity_1 = require("./Product.entity");
|
|
20
|
+
const Price_entity_1 = require("./Price.entity");
|
|
21
|
+
var _type;
|
|
22
|
+
(function (_type) {
|
|
23
|
+
_type[_type["downloadable"] = 1] = "downloadable";
|
|
24
|
+
_type[_type["sample"] = 2] = "sample";
|
|
25
|
+
_type[_type["link"] = 3] = "link";
|
|
26
|
+
})(_type = exports._type || (exports._type = {}));
|
|
27
|
+
var _shareable;
|
|
28
|
+
(function (_shareable) {
|
|
29
|
+
_shareable[_shareable["yes"] = 1] = "yes";
|
|
30
|
+
_shareable[_shareable["no"] = 2] = "no";
|
|
31
|
+
_shareable[_shareable["useConfig"] = 3] = "useConfig";
|
|
32
|
+
})(_shareable = exports._shareable || (exports._shareable = {}));
|
|
33
|
+
let ProductDigital = ProductDigital_1 = class ProductDigital extends AuditedModel_1.default {
|
|
34
|
+
};
|
|
35
|
+
__decorate([
|
|
36
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], ProductDigital.prototype, "id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
typeorm_1.DeleteDateColumn(),
|
|
41
|
+
__metadata("design:type", Date)
|
|
42
|
+
], ProductDigital.prototype, "deletedAt", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
typeorm_1.Column('text', { nullable: false }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ProductDigital.prototype, "file_url", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
typeorm_1.Column('text', { nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], ProductDigital.prototype, "file_url_reachu", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], ProductDigital.prototype, "file_size", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], ProductDigital.prototype, "shareable", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], ProductDigital.prototype, "type", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], ProductDigital.prototype, "position", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
typeorm_1.OneToOne(() => ProductDigital_1, (productDigital) => productDigital.id, {
|
|
69
|
+
eager: false,
|
|
70
|
+
nullable: true,
|
|
71
|
+
}),
|
|
72
|
+
typeorm_1.JoinColumn(),
|
|
73
|
+
__metadata("design:type", ProductDigital)
|
|
74
|
+
], ProductDigital.prototype, "productDigital", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
typeorm_1.Column(() => Price_entity_1.Price, { prefix: 'price_' }),
|
|
77
|
+
__metadata("design:type", Price_entity_1.Price)
|
|
78
|
+
], ProductDigital.prototype, "price", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
typeorm_1.Column('integer', { nullable: true }),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], ProductDigital.prototype, "donwload_limit", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
typeorm_1.Column('datetime', { nullable: true }),
|
|
85
|
+
__metadata("design:type", Date)
|
|
86
|
+
], ProductDigital.prototype, "expiration_date", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.id, {
|
|
89
|
+
eager: false,
|
|
90
|
+
}),
|
|
91
|
+
typeorm_1.JoinColumn(),
|
|
92
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
93
|
+
], ProductDigital.prototype, "product", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
typeorm_1.Column('text', { nullable: false }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], ProductDigital.prototype, "name", void 0);
|
|
98
|
+
ProductDigital = ProductDigital_1 = __decorate([
|
|
99
|
+
typeorm_1.Entity()
|
|
100
|
+
], ProductDigital);
|
|
101
|
+
exports.default = ProductDigital;
|
|
102
|
+
//# sourceMappingURL=ProductDigital.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductDigital.js","sourceRoot":"","sources":["../../src/entity/ProductDigital.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,qDAA2C;AAC3C,iDAAuC;AAEvC,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,iDAAgB,CAAA;IAChB,qCAAU,CAAA;IACV,iCAAQ,CAAA;AACV,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,yCAAO,CAAA;IACP,uCAAM,CAAA;IACN,qDAAa,CAAA;AACf,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAGD,IAAqB,cAAc,sBAAnC,MAAqB,cAAe,SAAQ,sBAAY;CAiDvD,CAAA;AA/CC;IADC,gCAAsB,EAAE;;0CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;iDAAC;AAGhB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDACnB;AAGjB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACX;AAGxB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACpB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACT;AAG7B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACnB;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACrB;AAOjB;IALC,kBAAQ,CAAC,GAAG,EAAE,CAAC,gBAAc,EAAE,CAAC,cAA8B,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE;QACrF,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,oBAAU,EAAE;8BACG,cAAc;sDAAC;AAG/B;IADC,gBAAM,CAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;8BACnC,oBAAK;6CAAC;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACf;AAGvB;IADC,gBAAM,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACtB,IAAI;uDAAC;AAMtB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;+CAAC;AAGjB;IADC,gBAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;4CACvB;AAhDM,cAAc;IADlC,gBAAM,EAAE;GACY,cAAc,CAiDlC;kBAjDoB,cAAc"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import User from './User';
|
|
2
|
+
import AuditedModel from './AuditedModel';
|
|
3
|
+
export default class ProductScraping extends AuditedModel {
|
|
4
|
+
id: number;
|
|
5
|
+
deletedAt: Date;
|
|
6
|
+
urls: string;
|
|
7
|
+
status: string;
|
|
8
|
+
properties: string;
|
|
9
|
+
scraper: string;
|
|
10
|
+
user: User;
|
|
11
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const User_1 = __importDefault(require("./User"));
|
|
17
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
18
|
+
let ProductScraping = class ProductScraping extends AuditedModel_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductScraping.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.DeleteDateColumn(),
|
|
26
|
+
__metadata("design:type", Date)
|
|
27
|
+
], ProductScraping.prototype, "deletedAt", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column('varchar'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ProductScraping.prototype, "urls", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column('varchar'),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ProductScraping.prototype, "status", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ProductScraping.prototype, "properties", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column('varchar', { length: '21844', nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ProductScraping.prototype, "scraper", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.ManyToOne(() => User_1.default, { eager: true }),
|
|
46
|
+
typeorm_1.JoinColumn(),
|
|
47
|
+
__metadata("design:type", User_1.default)
|
|
48
|
+
], ProductScraping.prototype, "user", void 0);
|
|
49
|
+
ProductScraping = __decorate([
|
|
50
|
+
typeorm_1.Entity()
|
|
51
|
+
], ProductScraping);
|
|
52
|
+
exports.default = ProductScraping;
|
|
53
|
+
//# sourceMappingURL=ProductScraping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductScraping.js","sourceRoot":"","sources":["../../src/entity/ProductScraping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAOiB;AACjB,kDAA0B;AAC1B,kEAA0C;AAG1C,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAsBxD,CAAA;AApBC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,CAAC;;6CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;+CACH;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACpC;AAGnB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACvC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IACtC,oBAAU,EAAE;8BACP,cAAI;6CAAC;AArBQ,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAsBnC;kBAtBoB,eAAe"}
|