@reachu/database 1.0.13 → 1.0.15
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 +13 -0
- package/dist/entity/Category.js +58 -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 +13 -0
- package/dist/entity/ChannelUser.js +59 -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/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 +16 -0
- package/dist/entity/Collection.js +73 -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/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 +7 -0
- package/dist/entity/Currency.js +39 -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/ExchangeRate.d.ts +8 -0
- package/dist/entity/ExchangeRate.js +43 -0
- package/dist/entity/ExchangeRate.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 +10 -0
- package/dist/entity/Image.js +49 -0
- package/dist/entity/Image.js.map +1 -0
- package/dist/entity/ImportedProduct.d.ts +14 -0
- package/dist/entity/ImportedProduct.js +66 -0
- package/dist/entity/ImportedProduct.js.map +1 -0
- package/dist/entity/MagentoConnection.entity.d.ts +13 -0
- package/dist/entity/MagentoConnection.entity.js +65 -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 +29 -0
- package/dist/entity/Order.js +106 -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 +5 -0
- package/dist/entity/Price.entity.js +29 -0
- package/dist/entity/Price.entity.js.map +1 -0
- package/dist/entity/Product.entity.d.ts +65 -0
- package/dist/entity/Product.entity.js +262 -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/Request.d.ts +8 -0
- package/dist/entity/Request.js +42 -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 +13 -0
- package/dist/entity/ShopifyConnection.js +65 -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/User.d.ts +87 -0
- package/dist/entity/User.js +321 -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 +12 -0
- package/dist/entity/UserSettings.js +54 -0
- package/dist/entity/UserSettings.js.map +1 -0
- package/dist/entity/UserTokenWolt.d.ts +8 -0
- package/dist/entity/UserTokenWolt.js +41 -0
- package/dist/entity/UserTokenWolt.js.map +1 -0
- package/dist/entity/Variant.d.ts +17 -0
- package/dist/entity/Variant.js +75 -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 +9 -0
- package/dist/entity/WooConnection.js +48 -0
- package/dist/entity/WooConnection.js.map +1 -0
- package/dist/entity/index.d.ts +74 -0
- package/dist/entity/index.js +154 -0
- package/dist/entity/index.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 +10 -0
- package/dist/entity/modules/shipping/ShippingCountry.js +52 -0
- package/dist/entity/modules/shipping/ShippingCountry.js.map +1 -0
- package/dist/entity/modules/shopcart/Cart.d.ts +14 -0
- package/dist/entity/modules/shopcart/Cart.js +60 -0
- package/dist/entity/modules/shopcart/Cart.js.map +1 -0
- package/dist/entity/modules/shopcart/CartItem.d.ts +15 -0
- package/dist/entity/modules/shopcart/CartItem.js +66 -0
- package/dist/entity/modules/shopcart/CartItem.js.map +1 -0
- package/dist/entity/modules/shopcart/Checkout.d.ts +23 -0
- package/dist/entity/modules/shopcart/Checkout.js +99 -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 +8 -0
- package/dist/entity/modules/shopcart/PriceData.js +44 -0
- package/dist/entity/modules/shopcart/PriceData.js.map +1 -0
- package/dist/entity/modules/templates/AuthInfo.d.ts +14 -0
- package/dist/entity/modules/templates/AuthInfo.js +63 -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/AuthMethodTemplateChannel.d.ts +14 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +66 -0
- package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.d.ts +7 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js +37 -0
- package/dist/entity/modules/templates/EndpointTemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/TemplateChannel.d.ts +27 -0
- package/dist/entity/modules/templates/TemplateChannel.js +126 -0
- package/dist/entity/modules/templates/TemplateChannel.js.map +1 -0
- package/dist/entity/modules/templates/UserTemplateChannel.d.ts +13 -0
- package/dist/entity/modules/templates/UserTemplateChannel.js +57 -0
- package/dist/entity/modules/templates/UserTemplateChannel.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/TemplateChannelSchemeConfigOrder.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js.map +1 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js +56 -0
- package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.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/TemplateChannelSchemeConfigProduct.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js.map +1 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.d.ts +11 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js +52 -0
- package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.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/TemplateChannelSchemeConfigVariant.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js.map +1 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.d.ts +12 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js +56 -0
- package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.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 +5 -0
- package/dist/helpers/index.js +31 -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 +53 -0
- package/dist/helpers/products/storage/search.js +181 -0
- package/dist/helpers/products/storage/search.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/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/index.d.ts +167 -0
- package/dist/repositories/index.js +404 -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/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 +9115 -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/modules/templates/AuthInfo.ts +48 -0
- package/src/entity/modules/templates/AuthMethod.ts +24 -0
- package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +52 -0
- package/src/entity/modules/templates/EndpointTemplateChannel.ts +27 -0
- package/src/entity/modules/templates/TemplateChannel.ts +155 -0
- package/src/entity/modules/templates/UserTemplateChannel.ts +51 -0
- package/src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.ts +43 -0
- package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.ts +44 -0
- package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.ts +43 -0
- package/src/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.ts +43 -0
- package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.ts +40 -0
- package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.ts +40 -0
- package/src/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.ts +44 -0
- package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.ts +44 -0
- package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.ts +44 -0
- package/src/migrations/1680581444059-template.ts +96 -0
|
@@ -0,0 +1,75 @@
|
|
|
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 CustomVariant_1 = __importDefault(require("./CustomVariant"));
|
|
17
|
+
const Price_entity_1 = require("./Price.entity");
|
|
18
|
+
const Product_entity_1 = require("./Product.entity");
|
|
19
|
+
let Variant = class Variant {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Variant.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.DeleteDateColumn(),
|
|
27
|
+
__metadata("design:type", Date)
|
|
28
|
+
], Variant.prototype, "deletedAt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Variant.prototype, "title", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
typeorm_1.Column('varchar', { nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Variant.prototype, "sku", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Variant.prototype, "barcode", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
typeorm_1.Column('integer', { nullable: false }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Variant.prototype, "quantity", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: false }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], Variant.prototype, "price", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
typeorm_1.Column(() => Price_entity_1.Price, { prefix: 'price_' }),
|
|
51
|
+
__metadata("design:type", Price_entity_1.Price)
|
|
52
|
+
], Variant.prototype, "originalPrice", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.variants, { onDelete: 'CASCADE' }),
|
|
55
|
+
typeorm_1.JoinColumn(),
|
|
56
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
57
|
+
], Variant.prototype, "product", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
typeorm_1.OneToMany(() => CustomVariant_1.default, (customVariant) => customVariant.variant, { onDelete: 'CASCADE' }),
|
|
60
|
+
typeorm_1.JoinColumn(),
|
|
61
|
+
__metadata("design:type", CustomVariant_1.default)
|
|
62
|
+
], Variant.prototype, "customVariant", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], Variant.prototype, "originId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
typeorm_1.Column({ type: 'varchar', length: '21844', nullable: true, default: null }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], Variant.prototype, "originData", void 0);
|
|
71
|
+
Variant = __decorate([
|
|
72
|
+
typeorm_1.Entity()
|
|
73
|
+
], Variant);
|
|
74
|
+
exports.default = Variant;
|
|
75
|
+
//# sourceMappingURL=Variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Variant.js","sourceRoot":"","sources":["../../src/entity/Variant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,oEAA4C;AAC5C,iDAAuC;AACvC,qDAA2C;AAG3C,IAAqB,OAAO,GAA5B,MAAqB,OAAO;CAsC3B,CAAA;AApCC;IADC,gCAAsB,EAAE;;mCACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;0CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACxB;AAGf;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;oCAC1B;AAGb;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACrB;AAGjB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAGlB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;sCACjD;AAGf;IADC,gBAAM,CAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;8BAC3B,oBAAK;8CAAC;AAIrB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAChF,oBAAU,EAAE;8BACJ,wBAAO;wCAAC;AAIjB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,uBAAa,EAAE,CAAC,aAAa,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjG,oBAAU,EAAE;8BACE,uBAAa;8CAAC;AAG7B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACpB;AAGlB;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;2CACzD;AArCA,OAAO;IAD3B,gBAAM,EAAE;GACY,OAAO,CAsC3B;kBAtCoB,OAAO"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
let Wallet = class Wallet extends AuditedModel_1.default {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], Wallet.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
typeorm_1.Column('varchar'),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Wallet.prototype, "walletId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
typeorm_1.Column('varchar'),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Wallet.prototype, "currency", void 0);
|
|
31
|
+
Wallet = __decorate([
|
|
32
|
+
typeorm_1.Entity()
|
|
33
|
+
], Wallet);
|
|
34
|
+
exports.default = Wallet;
|
|
35
|
+
//# sourceMappingURL=Wallet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wallet.js","sourceRoot":"","sources":["../../src/entity/Wallet.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAiE;AACjE,kEAA0C;AAG1C,IAAqB,MAAM,GAA3B,MAAqB,MAAO,SAAQ,sBAAY;CAS/C,CAAA;AAPC;IADC,gCAAsB,EAAE;;kCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;wCACD;AAGjB;IADC,gBAAM,CAAC,SAAS,CAAC;;wCACD;AARE,MAAM;IAD1B,gBAAM,EAAE;GACY,MAAM,CAS1B;kBAToB,MAAM"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
let WooConnection = class WooConnection {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
typeorm_1.PrimaryGeneratedColumn(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], WooConnection.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
typeorm_1.Column('varchar'),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], WooConnection.prototype, "shop", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
typeorm_1.Column('varchar'),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], WooConnection.prototype, "consumerKey", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
typeorm_1.Column('varchar'),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], WooConnection.prototype, "consumerSecret", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], WooConnection.prototype, "currency", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
typeorm_1.OneToOne(() => User_1.default, (user) => user.woo, { onDelete: 'CASCADE' }),
|
|
41
|
+
typeorm_1.JoinColumn(),
|
|
42
|
+
__metadata("design:type", User_1.default)
|
|
43
|
+
], WooConnection.prototype, "user", void 0);
|
|
44
|
+
WooConnection = __decorate([
|
|
45
|
+
typeorm_1.Entity()
|
|
46
|
+
], WooConnection);
|
|
47
|
+
exports.default = WooConnection;
|
|
48
|
+
//# sourceMappingURL=WooConnection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WooConnection.js","sourceRoot":"","sources":["../../src/entity/WooConnection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAuF;AACvF,kDAA0B;AAG1B,IAAqB,aAAa,GAAlC,MAAqB,aAAa;CAmBjC,CAAA;AAjBC;IADC,gCAAsB,EAAE;;yCACd;AAGX;IADC,gBAAM,CAAC,SAAS,CAAC;;2CACL;AAGb;IADC,gBAAM,CAAC,SAAS,CAAC;;kDACE;AAGpB;IADC,gBAAM,CAAC,SAAS,CAAC;;qDACK;AAGvB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACpB;AAIlB;IAFC,kBAAQ,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,oBAAU,EAAE;8BACP,cAAI;2CAAC;AAlBQ,aAAa;IADjC,gBAAM,EAAE;GACY,aAAa,CAmBjC;kBAnBoB,aAAa"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import Address from './Address';
|
|
2
|
+
import ApiCredential from './ApiCredential';
|
|
3
|
+
import AuditedModel from './AuditedModel';
|
|
4
|
+
import BankAccount from './BankAccount';
|
|
5
|
+
import Business from './Business';
|
|
6
|
+
import BusinessProducts from './BusinessProducts';
|
|
7
|
+
import CardRegistration from './CardRegistration';
|
|
8
|
+
import Category from './Category';
|
|
9
|
+
import Channel from './Channel';
|
|
10
|
+
import Check from './Check';
|
|
11
|
+
import CheckoutMetadata from './CheckoutMetadata';
|
|
12
|
+
import Contact from './Contact';
|
|
13
|
+
import Country from './Country';
|
|
14
|
+
import Courier from './Courier';
|
|
15
|
+
import FlatRate from './FlatRate';
|
|
16
|
+
import FlatRateCountry from './FlatRateCountry';
|
|
17
|
+
import Fulfillment from './Fulfillment';
|
|
18
|
+
import Image from './Image';
|
|
19
|
+
import ImportedProduct from './ImportedProduct';
|
|
20
|
+
import { MagentoConnection } from './MagentoConnection.entity';
|
|
21
|
+
import MetricActiveUser from './MetricActiveUser';
|
|
22
|
+
import Notification from './Notification';
|
|
23
|
+
import Option from './Option';
|
|
24
|
+
import Order from './Order';
|
|
25
|
+
import OrderCustomer from './OrderCustomer';
|
|
26
|
+
import OrderItem from './OrderItem';
|
|
27
|
+
import OrderShipping from './OrderShipping';
|
|
28
|
+
import OrderTracking from './OrderTracking';
|
|
29
|
+
import Payment from './Payment';
|
|
30
|
+
import PaymentShopify from './PaymentShopify';
|
|
31
|
+
import Permission from './Permission';
|
|
32
|
+
import { Price } from './Price.entity';
|
|
33
|
+
import { Product } from './Product.entity';
|
|
34
|
+
import Request from './Request';
|
|
35
|
+
import Return from './Return';
|
|
36
|
+
import ReturnAddress from './ReturnAddress';
|
|
37
|
+
import Role from './Role';
|
|
38
|
+
import RolePermission from './RolePermission';
|
|
39
|
+
import ShippingPackage from './ShippingPackage';
|
|
40
|
+
import ShopifyConnection from './ShopifyConnection';
|
|
41
|
+
import Subcategory from './Subcategory';
|
|
42
|
+
import User from './User';
|
|
43
|
+
import UserRole from './UserRole';
|
|
44
|
+
import Variant from './Variant';
|
|
45
|
+
import Wallet from './Wallet';
|
|
46
|
+
import WooConnection from './WooConnection';
|
|
47
|
+
import UserTokenWolt from './UserTokenWolt';
|
|
48
|
+
import UserSettings from './UserSettings';
|
|
49
|
+
import PaymentMethod from './PaymentMethod';
|
|
50
|
+
import Collection from './Collection';
|
|
51
|
+
import CollectionItem from './CollectionItem';
|
|
52
|
+
import CollectionShared from './CollectionShared';
|
|
53
|
+
import ChannelGroup from './ChannelGroup';
|
|
54
|
+
import ChannelUser from './ChannelUser';
|
|
55
|
+
import ChannelUserProductSync from './ChannelUserProductSync';
|
|
56
|
+
import UserChannelApiKey from './UserChannelApiKey';
|
|
57
|
+
import Currency from './Currency';
|
|
58
|
+
import ExchangeRate from './ExchangeRate';
|
|
59
|
+
import Cart from './modules/shopcart/Cart';
|
|
60
|
+
import CartItem from './modules/shopcart/CartItem';
|
|
61
|
+
import Checkout from './modules/shopcart/Checkout';
|
|
62
|
+
import { CheckoutBillingAddress } from './modules/shopcart/CheckoutBillingAddress';
|
|
63
|
+
import { CheckoutShippingAddress } from './modules/shopcart/CheckoutShippingAddress';
|
|
64
|
+
import { PriceData } from './modules/shopcart/PriceData';
|
|
65
|
+
import ProductShipping from './modules/shipping/ProductShipping';
|
|
66
|
+
import Shipping from './modules/shipping/Shipping';
|
|
67
|
+
import ShippingCountry from './modules/shipping/ShippingCountry';
|
|
68
|
+
import CustomVariant from './CustomVariant';
|
|
69
|
+
import { CustomProduct } from './CustomProduct';
|
|
70
|
+
import CustomProductImage from './CustomProductImage';
|
|
71
|
+
import Attribute from './Attribute';
|
|
72
|
+
import ProductAttribute from './ProductAttribute';
|
|
73
|
+
import CategoryImages from './CategoryImages';
|
|
74
|
+
export { CustomVariant, CustomProduct, CustomProductImage, Cart, CartItem, Checkout, CheckoutBillingAddress, CheckoutShippingAddress, PriceData, ProductShipping, Shipping, ShippingCountry, Address, ApiCredential, AuditedModel, BankAccount, Business, BusinessProducts, CardRegistration, Category, Channel, Check, CheckoutMetadata, Contact, Country, Courier, FlatRate, FlatRateCountry, Fulfillment, Image, ImportedProduct, MagentoConnection, MetricActiveUser, Notification, Option, Order, OrderCustomer, OrderItem, OrderShipping, OrderTracking, Payment, PaymentShopify, Permission, Price, Product, Request, Return, ReturnAddress, Role, RolePermission, ShippingPackage, ShopifyConnection, Subcategory, User, UserRole, Variant, Wallet, WooConnection, UserTokenWolt, UserSettings, PaymentMethod, Collection, CollectionItem, CollectionShared, ChannelGroup, ChannelUser, ChannelUserProductSync, UserChannelApiKey, Currency, ExchangeRate, Attribute, ProductAttribute, CategoryImages, };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RolePermission = exports.Role = exports.ReturnAddress = exports.Return = exports.Request = exports.Product = exports.Price = exports.Permission = exports.PaymentShopify = exports.Payment = exports.OrderTracking = exports.OrderShipping = exports.OrderItem = exports.OrderCustomer = exports.Order = exports.Option = exports.Notification = exports.MetricActiveUser = exports.MagentoConnection = exports.ImportedProduct = exports.Image = exports.Fulfillment = exports.FlatRateCountry = exports.FlatRate = exports.Courier = exports.Country = exports.Contact = exports.CheckoutMetadata = exports.Check = exports.Channel = exports.Category = exports.CardRegistration = exports.BusinessProducts = exports.Business = exports.BankAccount = exports.AuditedModel = exports.ApiCredential = exports.Address = exports.ShippingCountry = exports.Shipping = exports.ProductShipping = exports.PriceData = exports.CheckoutShippingAddress = exports.CheckoutBillingAddress = exports.Checkout = exports.CartItem = exports.Cart = exports.CustomProductImage = exports.CustomProduct = exports.CustomVariant = void 0;
|
|
7
|
+
exports.CategoryImages = exports.ProductAttribute = exports.Attribute = exports.ExchangeRate = exports.Currency = exports.UserChannelApiKey = exports.ChannelUserProductSync = exports.ChannelUser = exports.ChannelGroup = exports.CollectionShared = exports.CollectionItem = exports.Collection = exports.PaymentMethod = exports.UserSettings = exports.UserTokenWolt = exports.WooConnection = exports.Wallet = exports.Variant = exports.UserRole = exports.User = exports.Subcategory = exports.ShopifyConnection = exports.ShippingPackage = void 0;
|
|
8
|
+
const Address_1 = __importDefault(require("./Address"));
|
|
9
|
+
exports.Address = Address_1.default;
|
|
10
|
+
const ApiCredential_1 = __importDefault(require("./ApiCredential"));
|
|
11
|
+
exports.ApiCredential = ApiCredential_1.default;
|
|
12
|
+
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
13
|
+
exports.AuditedModel = AuditedModel_1.default;
|
|
14
|
+
const BankAccount_1 = __importDefault(require("./BankAccount"));
|
|
15
|
+
exports.BankAccount = BankAccount_1.default;
|
|
16
|
+
const Business_1 = __importDefault(require("./Business"));
|
|
17
|
+
exports.Business = Business_1.default;
|
|
18
|
+
const BusinessProducts_1 = __importDefault(require("./BusinessProducts"));
|
|
19
|
+
exports.BusinessProducts = BusinessProducts_1.default;
|
|
20
|
+
const CardRegistration_1 = __importDefault(require("./CardRegistration"));
|
|
21
|
+
exports.CardRegistration = CardRegistration_1.default;
|
|
22
|
+
const Category_1 = __importDefault(require("./Category"));
|
|
23
|
+
exports.Category = Category_1.default;
|
|
24
|
+
const Channel_1 = __importDefault(require("./Channel"));
|
|
25
|
+
exports.Channel = Channel_1.default;
|
|
26
|
+
const Check_1 = __importDefault(require("./Check"));
|
|
27
|
+
exports.Check = Check_1.default;
|
|
28
|
+
const CheckoutMetadata_1 = __importDefault(require("./CheckoutMetadata"));
|
|
29
|
+
exports.CheckoutMetadata = CheckoutMetadata_1.default;
|
|
30
|
+
const Contact_1 = __importDefault(require("./Contact"));
|
|
31
|
+
exports.Contact = Contact_1.default;
|
|
32
|
+
const Country_1 = __importDefault(require("./Country"));
|
|
33
|
+
exports.Country = Country_1.default;
|
|
34
|
+
const Courier_1 = __importDefault(require("./Courier"));
|
|
35
|
+
exports.Courier = Courier_1.default;
|
|
36
|
+
const FlatRate_1 = __importDefault(require("./FlatRate"));
|
|
37
|
+
exports.FlatRate = FlatRate_1.default;
|
|
38
|
+
const FlatRateCountry_1 = __importDefault(require("./FlatRateCountry"));
|
|
39
|
+
exports.FlatRateCountry = FlatRateCountry_1.default;
|
|
40
|
+
const Fulfillment_1 = __importDefault(require("./Fulfillment"));
|
|
41
|
+
exports.Fulfillment = Fulfillment_1.default;
|
|
42
|
+
const Image_1 = __importDefault(require("./Image"));
|
|
43
|
+
exports.Image = Image_1.default;
|
|
44
|
+
const ImportedProduct_1 = __importDefault(require("./ImportedProduct"));
|
|
45
|
+
exports.ImportedProduct = ImportedProduct_1.default;
|
|
46
|
+
const MagentoConnection_entity_1 = require("./MagentoConnection.entity");
|
|
47
|
+
Object.defineProperty(exports, "MagentoConnection", { enumerable: true, get: function () { return MagentoConnection_entity_1.MagentoConnection; } });
|
|
48
|
+
const MetricActiveUser_1 = __importDefault(require("./MetricActiveUser"));
|
|
49
|
+
exports.MetricActiveUser = MetricActiveUser_1.default;
|
|
50
|
+
const Notification_1 = __importDefault(require("./Notification"));
|
|
51
|
+
exports.Notification = Notification_1.default;
|
|
52
|
+
const Option_1 = __importDefault(require("./Option"));
|
|
53
|
+
exports.Option = Option_1.default;
|
|
54
|
+
const Order_1 = __importDefault(require("./Order"));
|
|
55
|
+
exports.Order = Order_1.default;
|
|
56
|
+
const OrderCustomer_1 = __importDefault(require("./OrderCustomer"));
|
|
57
|
+
exports.OrderCustomer = OrderCustomer_1.default;
|
|
58
|
+
const OrderItem_1 = __importDefault(require("./OrderItem"));
|
|
59
|
+
exports.OrderItem = OrderItem_1.default;
|
|
60
|
+
const OrderShipping_1 = __importDefault(require("./OrderShipping"));
|
|
61
|
+
exports.OrderShipping = OrderShipping_1.default;
|
|
62
|
+
const OrderTracking_1 = __importDefault(require("./OrderTracking"));
|
|
63
|
+
exports.OrderTracking = OrderTracking_1.default;
|
|
64
|
+
const Payment_1 = __importDefault(require("./Payment"));
|
|
65
|
+
exports.Payment = Payment_1.default;
|
|
66
|
+
const PaymentShopify_1 = __importDefault(require("./PaymentShopify"));
|
|
67
|
+
exports.PaymentShopify = PaymentShopify_1.default;
|
|
68
|
+
const Permission_1 = __importDefault(require("./Permission"));
|
|
69
|
+
exports.Permission = Permission_1.default;
|
|
70
|
+
const Price_entity_1 = require("./Price.entity");
|
|
71
|
+
Object.defineProperty(exports, "Price", { enumerable: true, get: function () { return Price_entity_1.Price; } });
|
|
72
|
+
const Product_entity_1 = require("./Product.entity");
|
|
73
|
+
Object.defineProperty(exports, "Product", { enumerable: true, get: function () { return Product_entity_1.Product; } });
|
|
74
|
+
const Request_1 = __importDefault(require("./Request"));
|
|
75
|
+
exports.Request = Request_1.default;
|
|
76
|
+
const Return_1 = __importDefault(require("./Return"));
|
|
77
|
+
exports.Return = Return_1.default;
|
|
78
|
+
const ReturnAddress_1 = __importDefault(require("./ReturnAddress"));
|
|
79
|
+
exports.ReturnAddress = ReturnAddress_1.default;
|
|
80
|
+
const Role_1 = __importDefault(require("./Role"));
|
|
81
|
+
exports.Role = Role_1.default;
|
|
82
|
+
const RolePermission_1 = __importDefault(require("./RolePermission"));
|
|
83
|
+
exports.RolePermission = RolePermission_1.default;
|
|
84
|
+
const ShippingPackage_1 = __importDefault(require("./ShippingPackage"));
|
|
85
|
+
exports.ShippingPackage = ShippingPackage_1.default;
|
|
86
|
+
const ShopifyConnection_1 = __importDefault(require("./ShopifyConnection"));
|
|
87
|
+
exports.ShopifyConnection = ShopifyConnection_1.default;
|
|
88
|
+
const Subcategory_1 = __importDefault(require("./Subcategory"));
|
|
89
|
+
exports.Subcategory = Subcategory_1.default;
|
|
90
|
+
const User_1 = __importDefault(require("./User"));
|
|
91
|
+
exports.User = User_1.default;
|
|
92
|
+
const UserRole_1 = __importDefault(require("./UserRole"));
|
|
93
|
+
exports.UserRole = UserRole_1.default;
|
|
94
|
+
const Variant_1 = __importDefault(require("./Variant"));
|
|
95
|
+
exports.Variant = Variant_1.default;
|
|
96
|
+
const Wallet_1 = __importDefault(require("./Wallet"));
|
|
97
|
+
exports.Wallet = Wallet_1.default;
|
|
98
|
+
const WooConnection_1 = __importDefault(require("./WooConnection"));
|
|
99
|
+
exports.WooConnection = WooConnection_1.default;
|
|
100
|
+
const UserTokenWolt_1 = __importDefault(require("./UserTokenWolt"));
|
|
101
|
+
exports.UserTokenWolt = UserTokenWolt_1.default;
|
|
102
|
+
const UserSettings_1 = __importDefault(require("./UserSettings"));
|
|
103
|
+
exports.UserSettings = UserSettings_1.default;
|
|
104
|
+
const PaymentMethod_1 = __importDefault(require("./PaymentMethod"));
|
|
105
|
+
exports.PaymentMethod = PaymentMethod_1.default;
|
|
106
|
+
const Collection_1 = __importDefault(require("./Collection"));
|
|
107
|
+
exports.Collection = Collection_1.default;
|
|
108
|
+
const CollectionItem_1 = __importDefault(require("./CollectionItem"));
|
|
109
|
+
exports.CollectionItem = CollectionItem_1.default;
|
|
110
|
+
const CollectionShared_1 = __importDefault(require("./CollectionShared"));
|
|
111
|
+
exports.CollectionShared = CollectionShared_1.default;
|
|
112
|
+
const ChannelGroup_1 = __importDefault(require("./ChannelGroup"));
|
|
113
|
+
exports.ChannelGroup = ChannelGroup_1.default;
|
|
114
|
+
const ChannelUser_1 = __importDefault(require("./ChannelUser"));
|
|
115
|
+
exports.ChannelUser = ChannelUser_1.default;
|
|
116
|
+
const ChannelUserProductSync_1 = __importDefault(require("./ChannelUserProductSync"));
|
|
117
|
+
exports.ChannelUserProductSync = ChannelUserProductSync_1.default;
|
|
118
|
+
const UserChannelApiKey_1 = __importDefault(require("./UserChannelApiKey"));
|
|
119
|
+
exports.UserChannelApiKey = UserChannelApiKey_1.default;
|
|
120
|
+
const Currency_1 = __importDefault(require("./Currency"));
|
|
121
|
+
exports.Currency = Currency_1.default;
|
|
122
|
+
const ExchangeRate_1 = __importDefault(require("./ExchangeRate"));
|
|
123
|
+
exports.ExchangeRate = ExchangeRate_1.default;
|
|
124
|
+
const Cart_1 = __importDefault(require("./modules/shopcart/Cart"));
|
|
125
|
+
exports.Cart = Cart_1.default;
|
|
126
|
+
const CartItem_1 = __importDefault(require("./modules/shopcart/CartItem"));
|
|
127
|
+
exports.CartItem = CartItem_1.default;
|
|
128
|
+
const Checkout_1 = __importDefault(require("./modules/shopcart/Checkout"));
|
|
129
|
+
exports.Checkout = Checkout_1.default;
|
|
130
|
+
const CheckoutBillingAddress_1 = require("./modules/shopcart/CheckoutBillingAddress");
|
|
131
|
+
Object.defineProperty(exports, "CheckoutBillingAddress", { enumerable: true, get: function () { return CheckoutBillingAddress_1.CheckoutBillingAddress; } });
|
|
132
|
+
const CheckoutShippingAddress_1 = require("./modules/shopcart/CheckoutShippingAddress");
|
|
133
|
+
Object.defineProperty(exports, "CheckoutShippingAddress", { enumerable: true, get: function () { return CheckoutShippingAddress_1.CheckoutShippingAddress; } });
|
|
134
|
+
const PriceData_1 = require("./modules/shopcart/PriceData");
|
|
135
|
+
Object.defineProperty(exports, "PriceData", { enumerable: true, get: function () { return PriceData_1.PriceData; } });
|
|
136
|
+
const ProductShipping_1 = __importDefault(require("./modules/shipping/ProductShipping"));
|
|
137
|
+
exports.ProductShipping = ProductShipping_1.default;
|
|
138
|
+
const Shipping_1 = __importDefault(require("./modules/shipping/Shipping"));
|
|
139
|
+
exports.Shipping = Shipping_1.default;
|
|
140
|
+
const ShippingCountry_1 = __importDefault(require("./modules/shipping/ShippingCountry"));
|
|
141
|
+
exports.ShippingCountry = ShippingCountry_1.default;
|
|
142
|
+
const CustomVariant_1 = __importDefault(require("./CustomVariant"));
|
|
143
|
+
exports.CustomVariant = CustomVariant_1.default;
|
|
144
|
+
const CustomProduct_1 = require("./CustomProduct");
|
|
145
|
+
Object.defineProperty(exports, "CustomProduct", { enumerable: true, get: function () { return CustomProduct_1.CustomProduct; } });
|
|
146
|
+
const CustomProductImage_1 = __importDefault(require("./CustomProductImage"));
|
|
147
|
+
exports.CustomProductImage = CustomProductImage_1.default;
|
|
148
|
+
const Attribute_1 = __importDefault(require("./Attribute"));
|
|
149
|
+
exports.Attribute = Attribute_1.default;
|
|
150
|
+
const ProductAttribute_1 = __importDefault(require("./ProductAttribute"));
|
|
151
|
+
exports.ProductAttribute = ProductAttribute_1.default;
|
|
152
|
+
const CategoryImages_1 = __importDefault(require("./CategoryImages"));
|
|
153
|
+
exports.CategoryImages = CategoryImages_1.default;
|
|
154
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;AAAA,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,kEAA0C;AA6FxC,uBA7FK,sBAAY,CA6FL;AA5Fd,gEAAwC;AA6FtC,sBA7FK,qBAAW,CA6FL;AA5Fb,0DAAkC;AA6FhC,mBA7FK,kBAAQ,CA6FL;AA5FV,0EAAkD;AA6FhD,2BA7FK,0BAAgB,CA6FL;AA5FlB,0EAAkD;AA6FhD,2BA7FK,0BAAgB,CA6FL;AA5FlB,0DAAkC;AA6FhC,mBA7FK,kBAAQ,CA6FL;AA5FV,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,oDAA4B;AA6F1B,gBA7FK,eAAK,CA6FL;AA5FP,0EAAkD;AA6FhD,2BA7FK,0BAAgB,CA6FL;AA5FlB,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,0DAAkC;AA6FhC,mBA7FK,kBAAQ,CA6FL;AA5FV,wEAAgD;AA6F9C,0BA7FK,yBAAe,CA6FL;AA5FjB,gEAAwC;AA6FtC,sBA7FK,qBAAW,CA6FL;AA5Fb,oDAA4B;AA6F1B,gBA7FK,eAAK,CA6FL;AA5FP,wEAAgD;AA6F9C,0BA7FK,yBAAe,CA6FL;AA5FjB,yEAA+D;AA6F7D,kGA7FO,4CAAiB,OA6FP;AA5FnB,0EAAkD;AA6FhD,2BA7FK,0BAAgB,CA6FL;AA5FlB,kEAA0C;AA6FxC,uBA7FK,sBAAY,CA6FL;AA5Fd,sDAA8B;AA6F5B,iBA7FK,gBAAM,CA6FL;AA5FR,oDAA4B;AA6F1B,gBA7FK,eAAK,CA6FL;AA5FP,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,4DAAoC;AA6FlC,oBA7FK,mBAAS,CA6FL;AA5FX,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,sEAA8C;AA6F5C,yBA7FK,wBAAc,CA6FL;AA5FhB,8DAAsC;AA6FpC,qBA7FK,oBAAU,CA6FL;AA5FZ,iDAAuC;AA6FrC,sFA7FO,oBAAK,OA6FP;AA5FP,qDAA2C;AA6FzC,wFA7FO,wBAAO,OA6FP;AA5FT,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,sDAA8B;AA6F5B,iBA7FK,gBAAM,CA6FL;AA5FR,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,kDAA0B;AA6FxB,eA7FK,cAAI,CA6FL;AA5FN,sEAA8C;AA6F5C,yBA7FK,wBAAc,CA6FL;AA5FhB,wEAAgD;AA6F9C,0BA7FK,yBAAe,CA6FL;AA5FjB,4EAAoD;AA6FlD,4BA7FK,2BAAiB,CA6FL;AA5FnB,gEAAwC;AA6FtC,sBA7FK,qBAAW,CA6FL;AA5Fb,kDAA0B;AA6FxB,eA7FK,cAAI,CA6FL;AA5FN,0DAAkC;AA6FhC,mBA7FK,kBAAQ,CA6FL;AA5FV,wDAAgC;AA6F9B,kBA7FK,iBAAO,CA6FL;AA5FT,sDAA8B;AA6F5B,iBA7FK,gBAAM,CA6FL;AA5FR,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,kEAA0C;AA6FxC,uBA7FK,sBAAY,CA6FL;AA5Fd,oEAA4C;AA6F1C,wBA7FK,uBAAa,CA6FL;AA5Ff,8DAAsC;AA6FpC,qBA7FK,oBAAU,CA6FL;AA5FZ,sEAA8C;AA6F5C,yBA7FK,wBAAc,CA6FL;AA5FhB,0EAAkD;AA6FhD,2BA7FK,0BAAgB,CA6FL;AA5FlB,kEAA0C;AA6FxC,uBA7FK,sBAAY,CA6FL;AA5Fd,gEAAwC;AA6FtC,sBA7FK,qBAAW,CA6FL;AA5Fb,sFAA8D;AA6F5D,iCA7FK,gCAAsB,CA6FL;AA5FxB,4EAAoD;AA6FlD,4BA7FK,2BAAiB,CA6FL;AA5FnB,0DAAkC;AA6FhC,mBA7FK,kBAAQ,CA6FL;AA5FV,kEAA0C;AA6FxC,uBA7FK,sBAAY,CA6FL;AA1Fd,mEAA2C;AAwBzC,eAxBK,cAAI,CAwBL;AAvBN,2EAAmD;AAwBjD,mBAxBK,kBAAQ,CAwBL;AAvBV,2EAAmD;AAwBjD,mBAxBK,kBAAQ,CAwBL;AAvBV,sFAAmF;AAwBjF,uGAxBO,+CAAsB,OAwBP;AAvBxB,wFAAqF;AAwBnF,wGAxBO,iDAAuB,OAwBP;AAvBzB,4DAAyD;AAwBvD,0FAxBO,qBAAS,OAwBP;AArBX,yFAAiE;AAsB/D,0BAtBK,yBAAe,CAsBL;AArBjB,2EAAmD;AAsBjD,mBAtBK,kBAAQ,CAsBL;AArBV,yFAAiE;AAsB/D,0BAtBK,yBAAe,CAsBL;AApBjB,oEAA4C;AAS1C,wBATK,uBAAa,CASL;AARf,mDAAgD;AAS9C,8FATO,6BAAa,OASP;AARf,8EAAsD;AASpD,6BATK,4BAAkB,CASL;AAPpB,4DAAoC;AA2ElC,oBA3EK,mBAAS,CA2EL;AA1EX,0EAAkD;AA2EhD,2BA3EK,0BAAgB,CA2EL;AA1ElB,sEAA8C;AA2E5C,yBA3EK,wBAAc,CA2EL"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Product } from '../../Product.entity';
|
|
2
|
+
import AuditedModel from '../../AuditedModel';
|
|
3
|
+
import Shipping from './Shipping';
|
|
4
|
+
export default class ProductShipping extends AuditedModel {
|
|
5
|
+
id: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
deletedAt: Date;
|
|
8
|
+
shipping: Shipping;
|
|
9
|
+
product: Product;
|
|
10
|
+
}
|
|
@@ -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 Product_entity_1 = require("../../Product.entity");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
const AuditedModel_1 = __importDefault(require("../../AuditedModel"));
|
|
18
|
+
const Shipping_1 = __importDefault(require("./Shipping"));
|
|
19
|
+
let ProductShipping = class ProductShipping extends AuditedModel_1.default {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ProductShipping.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ProductShipping.prototype, "description", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.DeleteDateColumn(),
|
|
31
|
+
__metadata("design:type", Date)
|
|
32
|
+
], ProductShipping.prototype, "deletedAt", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
typeorm_1.ManyToOne(() => Shipping_1.default, (shipping) => shipping.shippingCountry, {
|
|
35
|
+
eager: true,
|
|
36
|
+
onDelete: 'CASCADE',
|
|
37
|
+
}),
|
|
38
|
+
typeorm_1.JoinColumn(),
|
|
39
|
+
__metadata("design:type", Shipping_1.default)
|
|
40
|
+
], ProductShipping.prototype, "shipping", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.productShipping, {
|
|
43
|
+
eager: true,
|
|
44
|
+
onDelete: 'CASCADE',
|
|
45
|
+
}),
|
|
46
|
+
typeorm_1.JoinColumn(),
|
|
47
|
+
__metadata("design:type", Product_entity_1.Product)
|
|
48
|
+
], ProductShipping.prototype, "product", void 0);
|
|
49
|
+
ProductShipping = __decorate([
|
|
50
|
+
typeorm_1.Entity()
|
|
51
|
+
], ProductShipping);
|
|
52
|
+
exports.default = ProductShipping;
|
|
53
|
+
//# sourceMappingURL=ProductShipping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductShipping.js","sourceRoot":"","sources":["../../../../src/entity/modules/shipping/ProductShipping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yDAA+C;AAC/C,qCAOiB;AACjB,sEAA8C;AAC9C,0DAAkC;AAGlC,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAuBxD,CAAA;AArBC;IADC,gCAAsB,CAAC,MAAM,CAAC;;2CACpB;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACjB;AAGrB;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAOhB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,EAAE;QAC3E,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACH,kBAAQ;iDAAC;AAOnB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE;QACvE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;gDAAC;AAtBE,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAuBnC;kBAvBoB,eAAe"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import ShippingCountry from './ShippingCountry';
|
|
3
|
+
import User from '../../User';
|
|
4
|
+
import CartItem from '../shopcart/CartItem';
|
|
5
|
+
export default class Shipping extends AuditedModel {
|
|
6
|
+
id: string;
|
|
7
|
+
amount?: number;
|
|
8
|
+
customPriceEnabled: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
deletedAt: Date;
|
|
12
|
+
currencyCode?: string;
|
|
13
|
+
shippingCountry: ShippingCountry[];
|
|
14
|
+
user: User;
|
|
15
|
+
default: boolean;
|
|
16
|
+
cartItem: CartItem[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ShippingCountry_1 = __importDefault(require("./ShippingCountry"));
|
|
18
|
+
const User_1 = __importDefault(require("../../User"));
|
|
19
|
+
const CartItem_1 = __importDefault(require("../shopcart/CartItem"));
|
|
20
|
+
let Shipping = class Shipping extends AuditedModel_1.default {
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
typeorm_1.PrimaryGeneratedColumn('uuid'),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Shipping.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
typeorm_1.Column('decimal', { precision: 10, scale: 2, default: 0 }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], Shipping.prototype, "amount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], Shipping.prototype, "customPriceEnabled", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Shipping.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Shipping.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
typeorm_1.DeleteDateColumn(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], Shipping.prototype, "deletedAt", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
typeorm_1.Column('varchar', { nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Shipping.prototype, "currencyCode", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
typeorm_1.OneToMany(() => ShippingCountry_1.default, (shippingCountry) => shippingCountry.shipping, { cascade: true }),
|
|
52
|
+
typeorm_1.JoinColumn(),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], Shipping.prototype, "shippingCountry", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
typeorm_1.ManyToOne(() => User_1.default, (user) => user.shipping, {
|
|
57
|
+
eager: true,
|
|
58
|
+
onDelete: 'CASCADE',
|
|
59
|
+
}),
|
|
60
|
+
typeorm_1.JoinColumn(),
|
|
61
|
+
__metadata("design:type", User_1.default)
|
|
62
|
+
], Shipping.prototype, "user", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
typeorm_1.Column('boolean', { default: false }),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], Shipping.prototype, "default", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
typeorm_1.OneToMany(() => CartItem_1.default, (cartItem) => cartItem.shipping, { cascade: true }),
|
|
69
|
+
__metadata("design:type", Array)
|
|
70
|
+
], Shipping.prototype, "cartItem", void 0);
|
|
71
|
+
Shipping = __decorate([
|
|
72
|
+
typeorm_1.Entity()
|
|
73
|
+
], Shipping);
|
|
74
|
+
exports.default = Shipping;
|
|
75
|
+
//# sourceMappingURL=Shipping.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Shipping.js","sourceRoot":"","sources":["../../../../src/entity/modules/shipping/Shipping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,sEAA8C;AAC9C,wEAAgD;AAChD,sDAA8B;AAC9B,oEAA4C;AAG5C,IAAqB,QAAQ,GAA7B,MAAqB,QAAS,SAAQ,sBAAY;CA0CjD,CAAA;AAxCC;IADC,gCAAsB,CAAC,MAAM,CAAC;;oCACpB;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;wCAC3C;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oDACV;AAG5B;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACxB;AAGd;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACjB;AAGrB;IADC,0BAAgB,EAAE;8BACR,IAAI;2CAAC;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAChB;AAQtB;IANC,mBAAS,CACR,GAAG,EAAE,CAAC,yBAAe,EACrB,CAAC,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,EAC9D,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB;IACA,oBAAU,EAAE;;iDACsB;AAOnC;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE;QACpD,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACP,cAAI;sCAAC;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACrB;AAGjB;IADC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;0CACnE;AAzCF,QAAQ;IAD5B,gBAAM,EAAE;GACY,QAAQ,CA0C5B;kBA1CoB,QAAQ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AuditedModel from '../../AuditedModel';
|
|
2
|
+
import Shipping from './Shipping';
|
|
3
|
+
export default class ShippingCountry extends AuditedModel {
|
|
4
|
+
id: string;
|
|
5
|
+
amount?: number;
|
|
6
|
+
country?: string;
|
|
7
|
+
deletedAt: Date;
|
|
8
|
+
currencyCode?: string;
|
|
9
|
+
shipping: Shipping;
|
|
10
|
+
}
|