@reachu/database 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +28 -0
- package/.env.test +50 -0
- package/.eslintrc.json +23 -0
- package/.nvmrc +1 -0
- package/.prettierrc +6 -0
- package/.vscode/launch.json +13 -0
- package/.vscode/settings.json +3 -0
- package/README.md +17 -0
- 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/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 +7 -0
- package/dist/entity/Category.js +36 -0
- package/dist/entity/Category.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 +63 -0
- package/dist/entity/Product.entity.js +256 -0
- package/dist/entity/Product.entity.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 +7 -0
- package/dist/entity/Subcategory.js +36 -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 +71 -0
- package/dist/entity/index.js +148 -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 +15 -0
- package/dist/entity/modules/shipping/Shipping.js +70 -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 +13 -0
- package/dist/entity/modules/shopcart/CartItem.js +57 -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/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 +52 -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/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 +158 -0
- package/dist/repositories/index.js +383 -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 +8681 -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/docs/notas.txt +1 -0
- package/jsconfig.json +5 -0
- package/nodemon.json +5 -0
- package/package.json +76 -0
- package/src/config/connect.ts +28 -0
- package/src/entity/Address.ts +24 -0
- package/src/entity/ApiCredential.ts +19 -0
- package/src/entity/AuditedModel.ts +9 -0
- package/src/entity/BankAccount.ts +29 -0
- package/src/entity/Business.ts +51 -0
- package/src/entity/BusinessProducts.ts +15 -0
- package/src/entity/CardRegistration.ts +26 -0
- package/src/entity/Category.ts +16 -0
- package/src/entity/Channel.ts +44 -0
- package/src/entity/ChannelGroup.ts +52 -0
- package/src/entity/ChannelUser.ts +46 -0
- package/src/entity/ChannelUserProductSync.ts +46 -0
- package/src/entity/Check.ts +12 -0
- package/src/entity/CheckoutMetadata.ts +16 -0
- package/src/entity/Collection.ts +55 -0
- package/src/entity/CollectionItem.ts +31 -0
- package/src/entity/CollectionShared.ts +35 -0
- package/src/entity/Contact.ts +24 -0
- package/src/entity/Country.ts +18 -0
- package/src/entity/Courier.ts +17 -0
- package/src/entity/Currency.ts +17 -0
- package/src/entity/CustomProduct.ts +85 -0
- package/src/entity/CustomProductImage.ts +36 -0
- package/src/entity/CustomVariant.ts +40 -0
- package/src/entity/ExchangeRate.ts +20 -0
- package/src/entity/FlatRate.ts +29 -0
- package/src/entity/FlatRateCountry.ts +17 -0
- package/src/entity/Fulfillment.ts +12 -0
- package/src/entity/Image.ts +34 -0
- package/src/entity/ImportedProduct.ts +45 -0
- package/src/entity/MagentoConnection.entity.ts +36 -0
- package/src/entity/MetricActiveUser.ts +25 -0
- package/src/entity/Notification.ts +46 -0
- package/src/entity/Option.ts +31 -0
- package/src/entity/Order.ts +80 -0
- package/src/entity/OrderCustomer.ts +48 -0
- package/src/entity/OrderItem.ts +118 -0
- package/src/entity/OrderShipping.ts +47 -0
- package/src/entity/OrderTracking.ts +50 -0
- package/src/entity/Payment.ts +52 -0
- package/src/entity/PaymentMethod.ts +32 -0
- package/src/entity/PaymentShopify.ts +17 -0
- package/src/entity/Permission.ts +13 -0
- package/src/entity/Price.entity.ts +12 -0
- package/src/entity/Product.entity.ts +200 -0
- package/src/entity/Request.ts +23 -0
- package/src/entity/Return.ts +19 -0
- package/src/entity/ReturnAddress.ts +27 -0
- package/src/entity/Role.ts +20 -0
- package/src/entity/RolePermission.ts +19 -0
- package/src/entity/ShippingPackage.ts +19 -0
- package/src/entity/ShopifyConnection.ts +37 -0
- package/src/entity/Subcategory.ts +16 -0
- package/src/entity/User.ts +261 -0
- package/src/entity/UserChannelApiKey.ts +32 -0
- package/src/entity/UserRole.ts +19 -0
- package/src/entity/UserSettings.ts +37 -0
- package/src/entity/UserTokenWolt.ts +19 -0
- package/src/entity/Variant.ts +53 -0
- package/src/entity/Wallet.ts +14 -0
- package/src/entity/WooConnection.ts +24 -0
- package/src/entity/index.ts +148 -0
- package/src/entity/modules/shipping/ProductShipping.ts +37 -0
- package/src/entity/modules/shipping/Shipping.ts +54 -0
- package/src/entity/modules/shipping/ShippingCountry.ts +35 -0
- package/src/entity/modules/shopcart/Cart.ts +43 -0
- package/src/entity/modules/shopcart/CartItem.ts +40 -0
- package/src/entity/modules/shopcart/Checkout.ts +74 -0
- package/src/entity/modules/shopcart/CheckoutBillingAddress.ts +50 -0
- package/src/entity/modules/shopcart/CheckoutShippingAddress.ts +50 -0
- package/src/entity/modules/shopcart/PriceData.ts +20 -0
- package/src/examples/app01.ts +9 -0
- package/src/helpers/index.ts +6 -0
- package/src/helpers/order/index.ts +47 -0
- package/src/helpers/products/index.ts +2 -0
- package/src/helpers/products/storage/index.ts +2 -0
- package/src/helpers/products/storage/search.ts +249 -0
- package/src/helpers/returns/index.ts +2 -0
- package/src/helpers/returns/storage.ts +9 -0
- package/src/helpers/statistics/connections.ts +70 -0
- package/src/helpers/statistics/index.ts +2 -0
- package/src/index.ts +8 -0
- package/src/interface/connectionConfig.ts +17 -0
- package/src/migrations/1628474597284-InitialSchema.ts +471 -0
- package/src/migrations/1630077596132-RemoveMangopay.ts +79 -0
- package/src/migrations/1633444449026-MagentoIntegration.ts +50 -0
- package/src/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.ts +23 -0
- package/src/migrations/1635811861541-SSCCOrderGenerator.ts +13 -0
- package/src/migrations/1638447028594-RolesFeature.ts +59 -0
- package/src/migrations/1638493697631-ProductCurrencyPrice.ts +31 -0
- package/src/migrations/1646797095632-UpdateWooTrackingNumber.ts +27 -0
- package/src/migrations/1648526519546-AddedUserSettings.ts +35 -0
- package/src/migrations/1651206194365-Wolt.ts +37 -0
- package/src/migrations/1663227133335-shop-cart.ts +47 -0
- package/src/migrations/1664160721396-collection.ts +28 -0
- package/src/migrations/1664222251306-update-collection.ts +22 -0
- package/src/migrations/1665757388450-channel.ts +44 -0
- package/src/migrations/1666098098114-prod-22-10-18.ts +95 -0
- package/src/migrations/1666631086586-user-channel-api-key-and-currency.ts +24 -0
- package/src/migrations/1666632054252-user-channel-api-key-and-currency-update.ts +20 -0
- package/src/migrations/1666752877685-checkout-and-usser-settings.ts +24 -0
- package/src/migrations/1666846907205-update-user-settings.ts +16 -0
- package/src/migrations/1667259333252-prod-22-10-31.ts +28 -0
- package/src/migrations/1667518502388-product-update.ts +16 -0
- package/src/migrations/1668571948507-ExchangeRate.ts +14 -0
- package/src/migrations/1668580085818-update-ExchangeRate.ts +16 -0
- package/src/migrations/1669318273596-update-oder-notification.ts +18 -0
- package/src/migrations/1669737769669-option.ts +14 -0
- package/src/migrations/1669912111945-shipping.ts +24 -0
- package/src/migrations/1670258127812-price.ts +16 -0
- package/src/migrations/1670952109146-variant.ts +14 -0
- package/src/migrations/1671409580304-order.ts +18 -0
- package/src/migrations/1672239194236-user-shipping.ts +16 -0
- package/src/migrations/1673628218703-promote_to_production_2023_13_01.ts +52 -0
- package/src/migrations/1674016904315-exchangeRate_2023_13_01.ts +14 -0
- package/src/migrations/1674743576475-promote_to_production_2023_26_01.ts +14 -0
- package/src/migrations/1675452256156-task-1062.ts +24 -0
- package/src/migrations/1676057445311-task-1062V2.ts +14 -0
- package/src/migrations/1676060390524-task-1062V3.ts +16 -0
- package/src/migrations/1676389900564-task-1062V4.ts +14 -0
- package/src/migrations/1676558804200-task-1074V1.ts +14 -0
- package/src/migrations/1676656657956-task-1084V1.ts +14 -0
- package/src/migrations/execute/index.ts +3 -0
- package/src/migrations/index.ts +23 -0
- package/src/repositories/index.ts +233 -0
- package/src/repositories/shipping/index.ts +15 -0
- package/src/repositories/shopcart/index.ts +25 -0
- package/src/staticData/ChannelName.ts +8 -0
- package/src/staticData/ConnectionType.ts +4 -0
- package/src/staticData/Currency.ts +11 -0
- package/src/staticData/OrderStatus.ts +41 -0
- package/src/staticData/PaymentProcessor.ts +9 -0
- package/src/staticData/ProductOrigin.ts +19 -0
- package/src/staticData/TrackingProcessor.ts +8 -0
- package/src/staticData/VippsPaymentStatus.ts +41 -0
- package/src/staticData/index.ts +20 -0
- package/src/subscribers/ProductSubscriber.ts +25 -0
- package/src/subscribers/UserSubscriber.ts +23 -0
- package/src/subscribers/index.ts +4 -0
- package/src/utils/index.ts +88 -0
- package/test/setup.ts +4 -0
- package/test/staticData/OrderStatus.test.ts +0 -0
- package/test/staticData/VippsPaymentStatus.test.ts +0 -0
- package/test/utils.test.ts +22 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class productUpdate1667518502388 implements MigrationInterface {
|
|
4
|
+
name = 'productUpdate1667518502388'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`product\` CHANGE \`referral_fee\` \`referral_fee\` int NOT NULL DEFAULT '10'`);
|
|
8
|
+
await queryRunner.query(`CREATE UNIQUE INDEX \`IDX_a66432c336adb11a999efec11a\` ON \`product\` (\`origin\`, \`origin_id\`, \`origin_variant_id\`, \`user_id\`)`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`DROP INDEX \`IDX_a66432c336adb11a999efec11a\` ON \`product\``);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`product\` CHANGE \`referral_fee\` \`referral_fee\` int NOT NULL DEFAULT '0'`);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class ExchangeRate1668571948507 implements MigrationInterface {
|
|
4
|
+
name = 'ExchangeRate1668571948507'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`exchange_rate\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`deleted_at\` datetime(6) NULL, \`enabled\` tinyint NOT NULL DEFAULT 0, \`data\` text NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`DROP TABLE \`exchange_rate\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class updateExchangeRate1668580085818 implements MigrationInterface {
|
|
4
|
+
name = 'updateExchangeRate1668580085818'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` DROP COLUMN \`enabled\``);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` ADD \`enabled\` int NOT NULL DEFAULT '0'`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` DROP COLUMN \`enabled\``);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` ADD \`enabled\` tinyint NOT NULL DEFAULT '0'`);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class updateOderNotification1669318273596 implements MigrationInterface {
|
|
4
|
+
name = 'updateOderNotification1669318273596'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`notification\` ADD \`deleted_at\` datetime(6) NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`order_tracking\` ADD \`deleted_at\` datetime(6) NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`deleted_at\` datetime(6) NULL`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`deleted_at\``);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`order_tracking\` DROP COLUMN \`deleted_at\``);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`notification\` DROP COLUMN \`deleted_at\``);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class option1669737769669 implements MigrationInterface {
|
|
4
|
+
name = 'option1669737769669'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`option\` ADD \`values\` varchar(21844) NOT NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`option\` DROP COLUMN \`values\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class shipping1669912111945 implements MigrationInterface {
|
|
4
|
+
name = 'shipping1669912111945'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`shipping_country\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`amount\` decimal(10,2) NOT NULL DEFAULT '0.00', \`country\` varchar(255) NULL, \`deleted_at\` datetime(6) NULL, \`currency_code\` varchar(255) NULL, \`shipping_id\` varchar(36) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`CREATE TABLE \`shipping\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`amount\` decimal(10,2) NOT NULL DEFAULT '0.00', \`custom_price_enabled\` tinyint NOT NULL DEFAULT 0, \`name\` varchar(255) NULL, \`description\` varchar(255) NULL, \`deleted_at\` datetime(6) NULL, \`currency_code\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
9
|
+
await queryRunner.query(`CREATE TABLE \`product_shipping\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`description\` varchar(255) NULL, \`deleted_at\` datetime(6) NULL, \`shipping_id\` varchar(36) NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`shipping_country\` ADD CONSTRAINT \`FK_b80c93a55ff3c2b80ebec596cad\` FOREIGN KEY (\`shipping_id\`) REFERENCES \`shipping\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` ADD CONSTRAINT \`FK_722e7451b6bef461c7dcfae8277\` FOREIGN KEY (\`shipping_id\`) REFERENCES \`shipping\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` ADD CONSTRAINT \`FK_28bcb110bec19d1c967ada1c01d\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` DROP FOREIGN KEY \`FK_28bcb110bec19d1c967ada1c01d\``);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` DROP FOREIGN KEY \`FK_722e7451b6bef461c7dcfae8277\``);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`shipping_country\` DROP FOREIGN KEY \`FK_b80c93a55ff3c2b80ebec596cad\``);
|
|
19
|
+
await queryRunner.query(`DROP TABLE \`product_shipping\``);
|
|
20
|
+
await queryRunner.query(`DROP TABLE \`shipping\``);
|
|
21
|
+
await queryRunner.query(`DROP TABLE \`shipping_country\``);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class price1670258127812 implements MigrationInterface {
|
|
4
|
+
name = 'price1670258127812'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`variant\` ADD \`price_base_amount\` decimal(10,2) NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`product\` ADD \`price_base_amount\` decimal(10,2) NULL`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`price_base_amount\``);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`price_base_amount\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class variant1670952109146 implements MigrationInterface {
|
|
4
|
+
name = 'variant1670952109146'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`variant\` ADD \`origin_data\` varchar(21844) NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`origin_data\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class order1671409580304 implements MigrationInterface {
|
|
4
|
+
name = 'order1671409580304'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_amount\` decimal(10,2) NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_currency_code\` varchar(255) NULL`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_base_amount\` decimal(10,2) NULL`);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_base_amount\``);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_currency_code\``);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_amount\``);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class userShipping1672239194236 implements MigrationInterface {
|
|
4
|
+
name = 'userShipping1672239194236'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` ADD \`user_id\` int NULL`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` ADD CONSTRAINT \`FK_21ba2f1ef0729b17b144dc9d85d\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` DROP FOREIGN KEY \`FK_21ba2f1ef0729b17b144dc9d85d\``);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` DROP COLUMN \`user_id\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class promoteToProduction202313011673628218703 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProduction202313011673628218703'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`shipping_country\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`amount\` decimal(10,2) NOT NULL DEFAULT '0.00', \`country\` varchar(255) NULL, \`deleted_at\` datetime(6) NULL, \`currency_code\` varchar(255) NULL, \`shipping_id\` varchar(36) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`CREATE TABLE \`shipping\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`amount\` decimal(10,2) NOT NULL DEFAULT '0.00', \`custom_price_enabled\` tinyint NOT NULL DEFAULT 0, \`name\` varchar(255) NULL, \`description\` varchar(255) NULL, \`deleted_at\` datetime(6) NULL, \`currency_code\` varchar(255) NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
9
|
+
await queryRunner.query(`CREATE TABLE \`product_shipping\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`description\` varchar(255) NULL, \`deleted_at\` datetime(6) NULL, \`shipping_id\` varchar(36) NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
10
|
+
await queryRunner.query(`CREATE TABLE \`exchange_rate\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` varchar(36) NOT NULL, \`deleted_at\` datetime(6) NULL, \`enabled\` int NOT NULL DEFAULT '0', \`data\` text NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`variant\` ADD \`origin_data\` varchar(21844) NULL`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`variant\` ADD \`price_base_amount\` decimal(10,2) NULL`);
|
|
13
|
+
await queryRunner.query(`ALTER TABLE \`product\` ADD \`price_base_amount\` decimal(10,2) NULL`);
|
|
14
|
+
await queryRunner.query(`ALTER TABLE \`notification\` ADD \`deleted_at\` datetime(6) NULL`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE \`order_tracking\` ADD \`deleted_at\` datetime(6) NULL`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`deleted_at\` datetime(6) NULL`);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_amount\` decimal(10,2) NULL`);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_currency_code\` varchar(255) NULL`);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`order\` ADD \`price_base_amount\` decimal(10,2) NULL`);
|
|
20
|
+
await queryRunner.query(`ALTER TABLE \`option\` DROP COLUMN \`values\``);
|
|
21
|
+
await queryRunner.query(`ALTER TABLE \`option\` ADD \`values\` varchar(21844) NOT NULL`);
|
|
22
|
+
await queryRunner.query(`ALTER TABLE \`product\` CHANGE \`referral_fee\` \`referral_fee\` int NOT NULL DEFAULT '10'`);
|
|
23
|
+
await queryRunner.query(`ALTER TABLE \`shipping_country\` ADD CONSTRAINT \`FK_b80c93a55ff3c2b80ebec596cad\` FOREIGN KEY (\`shipping_id\`) REFERENCES \`shipping\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
24
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` ADD CONSTRAINT \`FK_21ba2f1ef0729b17b144dc9d85d\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
25
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` ADD CONSTRAINT \`FK_722e7451b6bef461c7dcfae8277\` FOREIGN KEY (\`shipping_id\`) REFERENCES \`shipping\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
26
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` ADD CONSTRAINT \`FK_28bcb110bec19d1c967ada1c01d\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
30
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` DROP FOREIGN KEY \`FK_28bcb110bec19d1c967ada1c01d\``);
|
|
31
|
+
await queryRunner.query(`ALTER TABLE \`product_shipping\` DROP FOREIGN KEY \`FK_722e7451b6bef461c7dcfae8277\``);
|
|
32
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` DROP FOREIGN KEY \`FK_21ba2f1ef0729b17b144dc9d85d\``);
|
|
33
|
+
await queryRunner.query(`ALTER TABLE \`shipping_country\` DROP FOREIGN KEY \`FK_b80c93a55ff3c2b80ebec596cad\``);
|
|
34
|
+
await queryRunner.query(`ALTER TABLE \`product\` CHANGE \`referral_fee\` \`referral_fee\` int NOT NULL DEFAULT '0'`);
|
|
35
|
+
await queryRunner.query(`ALTER TABLE \`option\` DROP COLUMN \`values\``);
|
|
36
|
+
await queryRunner.query(`ALTER TABLE \`option\` ADD \`values\` varchar(255) NOT NULL`);
|
|
37
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_base_amount\``);
|
|
38
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_currency_code\``);
|
|
39
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`price_amount\``);
|
|
40
|
+
await queryRunner.query(`ALTER TABLE \`order\` DROP COLUMN \`deleted_at\``);
|
|
41
|
+
await queryRunner.query(`ALTER TABLE \`order_tracking\` DROP COLUMN \`deleted_at\``);
|
|
42
|
+
await queryRunner.query(`ALTER TABLE \`notification\` DROP COLUMN \`deleted_at\``);
|
|
43
|
+
await queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`price_base_amount\``);
|
|
44
|
+
await queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`price_base_amount\``);
|
|
45
|
+
await queryRunner.query(`ALTER TABLE \`variant\` DROP COLUMN \`origin_data\``);
|
|
46
|
+
await queryRunner.query(`DROP TABLE \`exchange_rate\``);
|
|
47
|
+
await queryRunner.query(`DROP TABLE \`product_shipping\``);
|
|
48
|
+
await queryRunner.query(`DROP TABLE \`shipping\``);
|
|
49
|
+
await queryRunner.query(`DROP TABLE \`shipping_country\``);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class exchangeRate202313011674016904315 implements MigrationInterface {
|
|
4
|
+
name = 'exchangeRate202313011674016904315'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` ADD \`currency\` text NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` DROP COLUMN \`currency\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class promoteToProduction202326011674743576475 implements MigrationInterface {
|
|
4
|
+
name = 'promoteToProduction202326011674743576475'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` ADD \`currency\` text NULL`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`exchange_rate\` DROP COLUMN \`currency\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class task10621675452256156 implements MigrationInterface {
|
|
4
|
+
name = 'task10621675452256156'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`custom_product\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`title\` varchar(255) NULL, \`description\` text NULL, \`description_two\` text NULL, \`public_price\` decimal(10,2) NULL, \`sku\` varchar(255) NULL, \`barcode\` varchar(255) NULL, \`product_id\` int NULL, \`user_id\` int NULL, \`price_amount\` decimal(10,2) NULL, \`price_currency_code\` varchar(255) NULL, \`price_base_amount\` decimal(10,2) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`CREATE TABLE \`custom_variant\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`title\` varchar(255) NOT NULL, \`sku\` varchar(255) NOT NULL, \`barcode\` varchar(255) NULL, \`quantity\` int NOT NULL, \`custom_product_id\` int NULL, \`variant_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
9
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` ADD CONSTRAINT \`FK_7a615131bff0eb11f4709f77bcf\` FOREIGN KEY (\`product_id\`) REFERENCES \`product\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` ADD CONSTRAINT \`FK_f89b6142de14e0db9655247b926\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`custom_variant\` ADD CONSTRAINT \`FK_c30da998f87bb92036e815ebdf6\` FOREIGN KEY (\`custom_product_id\`) REFERENCES \`custom_product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`custom_variant\` ADD CONSTRAINT \`FK_2266fdf123653773d75afd951da\` FOREIGN KEY (\`variant_id\`) REFERENCES \`variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
16
|
+
await queryRunner.query(`ALTER TABLE \`custom_variant\` DROP FOREIGN KEY \`FK_2266fdf123653773d75afd951da\``);
|
|
17
|
+
await queryRunner.query(`ALTER TABLE \`custom_variant\` DROP FOREIGN KEY \`FK_c30da998f87bb92036e815ebdf6\``);
|
|
18
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` DROP FOREIGN KEY \`FK_f89b6142de14e0db9655247b926\``);
|
|
19
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` DROP FOREIGN KEY \`FK_7a615131bff0eb11f4709f77bcf\``);
|
|
20
|
+
await queryRunner.query(`DROP TABLE \`custom_variant\``);
|
|
21
|
+
await queryRunner.query(`DROP TABLE \`custom_product\``);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class task1062V21676057445311 implements MigrationInterface {
|
|
4
|
+
name = 'task1062V21676057445311'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` ADD \`visible\` tinyint NOT NULL DEFAULT 0`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`custom_product\` DROP COLUMN \`visible\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class task1062V31676060390524 implements MigrationInterface {
|
|
4
|
+
name = 'task1062V31676060390524'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`CREATE TABLE \`custom_product_image\` (\`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NOT NULL, \`width\` int NULL, \`height\` int NULL, \`order\` int NOT NULL, \`product_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE \`custom_product_image\` ADD CONSTRAINT \`FK_02a813811810b4faf6bac7361a4\` FOREIGN KEY (\`product_id\`) REFERENCES \`custom_product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
12
|
+
await queryRunner.query(`ALTER TABLE \`custom_product_image\` DROP FOREIGN KEY \`FK_02a813811810b4faf6bac7361a4\``);
|
|
13
|
+
await queryRunner.query(`DROP TABLE \`custom_product_image\``);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class task1062V41676389900564 implements MigrationInterface {
|
|
4
|
+
name = 'task1062V41676389900564'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`user_settings\` ADD \`custom_products\` tinyint NOT NULL DEFAULT 0`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`user_settings\` DROP COLUMN \`custom_products\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class task1074V11676558804200 implements MigrationInterface {
|
|
4
|
+
name = 'task1074V11676558804200'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` ADD \`default\` tinyint NOT NULL DEFAULT 0`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`shipping\` DROP COLUMN \`default\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
2
|
+
|
|
3
|
+
export class task1084V11676656657956 implements MigrationInterface {
|
|
4
|
+
name = 'task1084V11676656657956'
|
|
5
|
+
|
|
6
|
+
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE \`product\` ADD \`active\` tinyint NOT NULL DEFAULT 0`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
11
|
+
await queryRunner.query(`ALTER TABLE \`product\` DROP COLUMN \`active\``);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InitialSchema1628474597284 as InitialSchema } from './1628474597284-InitialSchema';
|
|
2
|
+
import { RemoveMangopay1630077596132 as RemoveMangopay } from './1630077596132-RemoveMangopay';
|
|
3
|
+
import { MagentoIntegration1633444449026 as MagentoIntegration } from './1633444449026-MagentoIntegration';
|
|
4
|
+
import { MagentoIntegrationExternalChannelOrder1634070448072 as MagentoIntegrationExternalChannelOrder } from './1634070448072-MagentoIntegrationExternalChannelOrder';
|
|
5
|
+
import { SSCCOrderGenerator1635811861541 as SSCCOrderGenerator } from './1635811861541-SSCCOrderGenerator';
|
|
6
|
+
import { RolesFeature1638447028594 as RolesFeature } from './1638447028594-RolesFeature';
|
|
7
|
+
import { ProductCurrencyPrice1638493697631 as ProductCurrencyPrice } from './1638493697631-ProductCurrencyPrice';
|
|
8
|
+
import { UpdateWooTrackingNumber1646797095632 as UpdateWooTrackingNumber } from './1646797095632-UpdateWooTrackingNumber';
|
|
9
|
+
import { AddedUserSettings1648526519546 as AddedUserSettings } from './1648526519546-AddedUserSettings';
|
|
10
|
+
import { Wolt1651206194365 as Wolt } from './1651206194365-Wolt';
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
InitialSchema,
|
|
14
|
+
RemoveMangopay,
|
|
15
|
+
MagentoIntegration,
|
|
16
|
+
MagentoIntegrationExternalChannelOrder,
|
|
17
|
+
SSCCOrderGenerator,
|
|
18
|
+
RolesFeature,
|
|
19
|
+
ProductCurrencyPrice,
|
|
20
|
+
UpdateWooTrackingNumber,
|
|
21
|
+
AddedUserSettings,
|
|
22
|
+
Wolt,
|
|
23
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import ApiCredential from '../entity/ApiCredential';
|
|
2
|
+
import BankAccount from '../entity/BankAccount';
|
|
3
|
+
import Business from '../entity/Business';
|
|
4
|
+
import CardRegistration from '../entity/CardRegistration';
|
|
5
|
+
import Category from '../entity/Category';
|
|
6
|
+
import Channel from '../entity/Channel';
|
|
7
|
+
import CheckoutMetadata from '../entity/CheckoutMetadata';
|
|
8
|
+
import Country from '../entity/Country';
|
|
9
|
+
import Courier from '../entity/Courier';
|
|
10
|
+
import FlatRate from '../entity/FlatRate';
|
|
11
|
+
import FlatRateCountry from '../entity/FlatRateCountry';
|
|
12
|
+
import Image from '../entity/Image';
|
|
13
|
+
import ImportedProduct from '../entity/ImportedProduct';
|
|
14
|
+
import { MagentoConnection } from '../entity/MagentoConnection.entity';
|
|
15
|
+
import MetricActiveUser from '../entity/MetricActiveUser';
|
|
16
|
+
import Notification from '../entity/Notification';
|
|
17
|
+
import Option from '../entity/Option';
|
|
18
|
+
import Order from '../entity/Order';
|
|
19
|
+
import OrderItem from '../entity/OrderItem';
|
|
20
|
+
import OrderShipping from '../entity/OrderShipping';
|
|
21
|
+
import OrderTracking from '../entity/OrderTracking';
|
|
22
|
+
import Payment from '../entity/Payment';
|
|
23
|
+
import PaymentShopify from '../entity/PaymentShopify';
|
|
24
|
+
import Permission from '../entity/Permission';
|
|
25
|
+
import { Product } from '../entity/Product.entity';
|
|
26
|
+
import Request from '../entity/Request';
|
|
27
|
+
import Role from '../entity/Role';
|
|
28
|
+
import RolePermission from '../entity/RolePermission';
|
|
29
|
+
import ShippingPackage from '../entity/ShippingPackage';
|
|
30
|
+
import ShopifyConnection from '../entity/ShopifyConnection';
|
|
31
|
+
import Subcategory from '../entity/Subcategory';
|
|
32
|
+
import User from '../entity/User';
|
|
33
|
+
import UserRole from '../entity/UserRole';
|
|
34
|
+
import Variant from '../entity/Variant';
|
|
35
|
+
import Wallet from '../entity/Wallet';
|
|
36
|
+
import WooConnection from '../entity/WooConnection';
|
|
37
|
+
import UserTokenWolt from '../entity/UserTokenWolt';
|
|
38
|
+
import UserSettings from '../entity/UserSettings';
|
|
39
|
+
import PaymentMethod from '../entity/PaymentMethod';
|
|
40
|
+
import Collection from '../entity/Collection';
|
|
41
|
+
import CollectionItem from '../entity/CollectionItem';
|
|
42
|
+
import CollectionShared from '../entity/CollectionShared';
|
|
43
|
+
import ChannelGroup from '../entity/ChannelGroup';
|
|
44
|
+
import ChannelUser from '../entity/ChannelUser';
|
|
45
|
+
import ChannelUserProductSync from '../entity/ChannelUserProductSync';
|
|
46
|
+
import UserChannelApiKey from '../entity/UserChannelApiKey';
|
|
47
|
+
import Currency from '../entity/Currency';
|
|
48
|
+
import ExchangeRate from '../entity/ExchangeRate';
|
|
49
|
+
|
|
50
|
+
import CustomVariant from '../entity/CustomVariant';
|
|
51
|
+
import { CustomProduct } from '../entity/CustomProduct';
|
|
52
|
+
import CustomProductImage from '../entity/CustomProductImage';
|
|
53
|
+
|
|
54
|
+
import {
|
|
55
|
+
CartItemRepository,
|
|
56
|
+
CartRepository,
|
|
57
|
+
CheckoutBillingAddressRepository,
|
|
58
|
+
CheckoutRepository,
|
|
59
|
+
CheckoutShippingAddressRepository,
|
|
60
|
+
PriceDataRepository,
|
|
61
|
+
} from './shopcart';
|
|
62
|
+
|
|
63
|
+
import {
|
|
64
|
+
ProductShippingRepository,
|
|
65
|
+
ShippingCountryRepository,
|
|
66
|
+
ShippingRepository,
|
|
67
|
+
} from './shipping';
|
|
68
|
+
|
|
69
|
+
import { Repository, EntityRepository } from 'typeorm';
|
|
70
|
+
|
|
71
|
+
@EntityRepository(CustomVariant)
|
|
72
|
+
export class CustomVariantRepository extends Repository<CustomVariant> {}
|
|
73
|
+
|
|
74
|
+
@EntityRepository(CustomProduct)
|
|
75
|
+
export class CustomProductRepository extends Repository<CustomProduct> {}
|
|
76
|
+
|
|
77
|
+
@EntityRepository(CustomProductImage)
|
|
78
|
+
export class CustomProductImageRepository extends Repository<CustomProductImage> {}
|
|
79
|
+
|
|
80
|
+
@EntityRepository(ApiCredential)
|
|
81
|
+
export class ApiCredentialRepository extends Repository<ApiCredential> {}
|
|
82
|
+
|
|
83
|
+
@EntityRepository(BankAccount)
|
|
84
|
+
export class BankAccountRepository extends Repository<BankAccount> {}
|
|
85
|
+
|
|
86
|
+
@EntityRepository(Business)
|
|
87
|
+
export class BusinessRepository extends Repository<Business> {}
|
|
88
|
+
|
|
89
|
+
@EntityRepository(CardRegistration)
|
|
90
|
+
export class CardRegistrationRepository extends Repository<CardRegistration> {}
|
|
91
|
+
|
|
92
|
+
@EntityRepository(Category)
|
|
93
|
+
export class CategoryRepository extends Repository<Category> {}
|
|
94
|
+
|
|
95
|
+
@EntityRepository(Channel)
|
|
96
|
+
export class ChannelRepository extends Repository<Channel> {}
|
|
97
|
+
|
|
98
|
+
@EntityRepository(CheckoutMetadata)
|
|
99
|
+
export class CheckoutMetadataRepository extends Repository<CheckoutMetadata> {}
|
|
100
|
+
|
|
101
|
+
@EntityRepository(Country)
|
|
102
|
+
export class CountryRepository extends Repository<Country> {}
|
|
103
|
+
|
|
104
|
+
@EntityRepository(Courier)
|
|
105
|
+
export class CourierRepository extends Repository<Courier> {}
|
|
106
|
+
|
|
107
|
+
@EntityRepository(FlatRate)
|
|
108
|
+
export class FlatRateRepository extends Repository<FlatRate> {}
|
|
109
|
+
|
|
110
|
+
@EntityRepository(FlatRateCountry)
|
|
111
|
+
export class FlatRateCountryRepository extends Repository<FlatRateCountry> {}
|
|
112
|
+
|
|
113
|
+
@EntityRepository(Image)
|
|
114
|
+
export class ImageRepository extends Repository<Image> {}
|
|
115
|
+
|
|
116
|
+
@EntityRepository(ImportedProduct)
|
|
117
|
+
export class ImportedProductRepository extends Repository<ImportedProduct> {}
|
|
118
|
+
|
|
119
|
+
@EntityRepository(MagentoConnection)
|
|
120
|
+
export class MagentoConnectionRepository extends Repository<MagentoConnection> {}
|
|
121
|
+
|
|
122
|
+
@EntityRepository(MetricActiveUser)
|
|
123
|
+
export class MetricActiveUserRepository extends Repository<MetricActiveUser> {}
|
|
124
|
+
|
|
125
|
+
@EntityRepository(Notification)
|
|
126
|
+
export class NotificationRepository extends Repository<Notification> {}
|
|
127
|
+
|
|
128
|
+
@EntityRepository(Option)
|
|
129
|
+
export class OptionRepository extends Repository<Option> {}
|
|
130
|
+
|
|
131
|
+
@EntityRepository(Order)
|
|
132
|
+
export class OrderRepository extends Repository<Order> {}
|
|
133
|
+
|
|
134
|
+
@EntityRepository(OrderItem)
|
|
135
|
+
export class OrderItemRepository extends Repository<OrderItem> {}
|
|
136
|
+
|
|
137
|
+
@EntityRepository(OrderShipping)
|
|
138
|
+
export class OrderShippingRepository extends Repository<OrderShipping> {}
|
|
139
|
+
|
|
140
|
+
@EntityRepository(OrderTracking)
|
|
141
|
+
export class OrderTrackingRepository extends Repository<OrderTracking> {}
|
|
142
|
+
|
|
143
|
+
@EntityRepository(Payment)
|
|
144
|
+
export class PaymentRepository extends Repository<Payment> {}
|
|
145
|
+
|
|
146
|
+
@EntityRepository(PaymentShopify)
|
|
147
|
+
export class PaymentShopifyRepository extends Repository<PaymentShopify> {}
|
|
148
|
+
|
|
149
|
+
@EntityRepository(Permission)
|
|
150
|
+
export class PermissionRepository extends Repository<Permission> {}
|
|
151
|
+
|
|
152
|
+
@EntityRepository(Product)
|
|
153
|
+
export class ProductRepository extends Repository<Product> {}
|
|
154
|
+
|
|
155
|
+
@EntityRepository(Request)
|
|
156
|
+
export class RequestRepository extends Repository<Request> {}
|
|
157
|
+
|
|
158
|
+
@EntityRepository(Role)
|
|
159
|
+
export class RoleRepository extends Repository<Role> {}
|
|
160
|
+
|
|
161
|
+
@EntityRepository(RolePermission)
|
|
162
|
+
export class RolePermissionRepository extends Repository<RolePermission> {}
|
|
163
|
+
|
|
164
|
+
@EntityRepository(ShippingPackage)
|
|
165
|
+
export class ShippingPackageRepository extends Repository<ShippingPackage> {}
|
|
166
|
+
|
|
167
|
+
@EntityRepository(ShopifyConnection)
|
|
168
|
+
export class ShopifyConnectionRepository extends Repository<ShopifyConnection> {}
|
|
169
|
+
|
|
170
|
+
@EntityRepository(Subcategory)
|
|
171
|
+
export class SubcategoryRepository extends Repository<Subcategory> {}
|
|
172
|
+
|
|
173
|
+
@EntityRepository(User)
|
|
174
|
+
export class UserRepository extends Repository<User> {}
|
|
175
|
+
|
|
176
|
+
@EntityRepository(UserRole)
|
|
177
|
+
export class UserRoleRepository extends Repository<UserRole> {}
|
|
178
|
+
|
|
179
|
+
@EntityRepository(Variant)
|
|
180
|
+
export class VariantRepository extends Repository<Variant> {}
|
|
181
|
+
|
|
182
|
+
@EntityRepository(Wallet)
|
|
183
|
+
export class WalletRepository extends Repository<Wallet> {}
|
|
184
|
+
|
|
185
|
+
@EntityRepository(WooConnection)
|
|
186
|
+
export class WooConnectionRepository extends Repository<WooConnection> {}
|
|
187
|
+
|
|
188
|
+
@EntityRepository(UserTokenWolt)
|
|
189
|
+
export class UserTokenWoltRepository extends Repository<UserTokenWolt> {}
|
|
190
|
+
|
|
191
|
+
@EntityRepository(UserSettings)
|
|
192
|
+
export class UserSettingsRepository extends Repository<UserSettings> {}
|
|
193
|
+
|
|
194
|
+
@EntityRepository(PaymentMethod)
|
|
195
|
+
export class PaymentMethodRepository extends Repository<PaymentMethod> {}
|
|
196
|
+
|
|
197
|
+
@EntityRepository(Collection)
|
|
198
|
+
export class CollectionRepository extends Repository<Collection> {}
|
|
199
|
+
|
|
200
|
+
@EntityRepository(CollectionItem)
|
|
201
|
+
export class CollectionItemRepository extends Repository<CollectionItem> {}
|
|
202
|
+
|
|
203
|
+
@EntityRepository(CollectionShared)
|
|
204
|
+
export class CollectionSharedRepository extends Repository<CollectionShared> {}
|
|
205
|
+
|
|
206
|
+
@EntityRepository(ChannelGroup)
|
|
207
|
+
export class ChannelGroupRepository extends Repository<ChannelGroup> {}
|
|
208
|
+
|
|
209
|
+
@EntityRepository(ChannelUser)
|
|
210
|
+
export class ChannelUserRepository extends Repository<ChannelUser> {}
|
|
211
|
+
|
|
212
|
+
@EntityRepository(ChannelUserProductSync)
|
|
213
|
+
export class ChannelUserProductSyncRepository extends Repository<ChannelUserProductSync> {}
|
|
214
|
+
|
|
215
|
+
@EntityRepository(UserChannelApiKey)
|
|
216
|
+
export class UserChannelApiKeyRepository extends Repository<UserChannelApiKey> {}
|
|
217
|
+
|
|
218
|
+
@EntityRepository(Currency)
|
|
219
|
+
export class CurrencyRepository extends Repository<Currency> {}
|
|
220
|
+
|
|
221
|
+
@EntityRepository(ExchangeRate)
|
|
222
|
+
export class ExchangeRateRepository extends Repository<ExchangeRate> {}
|
|
223
|
+
|
|
224
|
+
export {
|
|
225
|
+
CartItemRepository,
|
|
226
|
+
CartRepository,
|
|
227
|
+
CheckoutBillingAddressRepository,
|
|
228
|
+
CheckoutRepository,
|
|
229
|
+
CheckoutShippingAddressRepository,
|
|
230
|
+
PriceDataRepository,
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
|