@reachu/database 1.0.144 → 1.0.146

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.
Files changed (806) hide show
  1. package/dist/config/connect.d.ts +2 -0
  2. package/dist/config/connect.js +34 -0
  3. package/dist/config/connect.js.map +1 -0
  4. package/dist/entity/Address.d.ts +9 -0
  5. package/dist/entity/Address.js +44 -0
  6. package/dist/entity/Address.js.map +1 -0
  7. package/dist/entity/ApiCredential.d.ts +8 -0
  8. package/dist/entity/ApiCredential.js +41 -0
  9. package/dist/entity/ApiCredential.js.map +1 -0
  10. package/dist/entity/Attribute.d.ts +8 -0
  11. package/dist/entity/Attribute.js +41 -0
  12. package/dist/entity/Attribute.js.map +1 -0
  13. package/dist/entity/AuditedModel.d.ts +4 -0
  14. package/dist/entity/AuditedModel.js +24 -0
  15. package/dist/entity/AuditedModel.js.map +1 -0
  16. package/dist/entity/BankAccount.d.ts +11 -0
  17. package/dist/entity/BankAccount.js +55 -0
  18. package/dist/entity/BankAccount.js.map +1 -0
  19. package/dist/entity/Business.d.ts +21 -0
  20. package/dist/entity/Business.js +83 -0
  21. package/dist/entity/Business.js.map +1 -0
  22. package/dist/entity/BusinessProducts.d.ts +6 -0
  23. package/dist/entity/BusinessProducts.js +32 -0
  24. package/dist/entity/BusinessProducts.js.map +1 -0
  25. package/dist/entity/CardRegistration.d.ts +10 -0
  26. package/dist/entity/CardRegistration.js +51 -0
  27. package/dist/entity/CardRegistration.js.map +1 -0
  28. package/dist/entity/Category.d.ts +15 -0
  29. package/dist/entity/Category.js +68 -0
  30. package/dist/entity/Category.js.map +1 -0
  31. package/dist/entity/CategoryImages.d.ts +12 -0
  32. package/dist/entity/CategoryImages.js +57 -0
  33. package/dist/entity/CategoryImages.js.map +1 -0
  34. package/dist/entity/Channel.d.ts +12 -0
  35. package/dist/entity/Channel.js +56 -0
  36. package/dist/entity/Channel.js.map +1 -0
  37. package/dist/entity/ChannelGroup.d.ts +15 -0
  38. package/dist/entity/ChannelGroup.js +77 -0
  39. package/dist/entity/ChannelGroup.js.map +1 -0
  40. package/dist/entity/ChannelUser.d.ts +26 -0
  41. package/dist/entity/ChannelUser.js +111 -0
  42. package/dist/entity/ChannelUser.js.map +1 -0
  43. package/dist/entity/ChannelUserProductSync.d.ts +12 -0
  44. package/dist/entity/ChannelUserProductSync.js +63 -0
  45. package/dist/entity/ChannelUserProductSync.js.map +1 -0
  46. package/dist/entity/Check.d.ts +5 -0
  47. package/dist/entity/Check.js +28 -0
  48. package/dist/entity/Check.js.map +1 -0
  49. package/dist/entity/CheckoutMetadata.d.ts +6 -0
  50. package/dist/entity/CheckoutMetadata.js +35 -0
  51. package/dist/entity/CheckoutMetadata.js.map +1 -0
  52. package/dist/entity/Collection.d.ts +17 -0
  53. package/dist/entity/Collection.js +77 -0
  54. package/dist/entity/Collection.js.map +1 -0
  55. package/dist/entity/CollectionItem.d.ts +10 -0
  56. package/dist/entity/CollectionItem.js +47 -0
  57. package/dist/entity/CollectionItem.js.map +1 -0
  58. package/dist/entity/CollectionShared.d.ts +11 -0
  59. package/dist/entity/CollectionShared.js +51 -0
  60. package/dist/entity/CollectionShared.js.map +1 -0
  61. package/dist/entity/Connection.d.ts +13 -0
  62. package/dist/entity/Connection.js +66 -0
  63. package/dist/entity/Connection.js.map +1 -0
  64. package/dist/entity/Contact.d.ts +9 -0
  65. package/dist/entity/Contact.js +44 -0
  66. package/dist/entity/Contact.js.map +1 -0
  67. package/dist/entity/Country.d.ts +7 -0
  68. package/dist/entity/Country.js +36 -0
  69. package/dist/entity/Country.js.map +1 -0
  70. package/dist/entity/Courier.d.ts +7 -0
  71. package/dist/entity/Courier.js +39 -0
  72. package/dist/entity/Courier.js.map +1 -0
  73. package/dist/entity/Currency.d.ts +7 -0
  74. package/dist/entity/Currency.js +39 -0
  75. package/dist/entity/Currency.js.map +1 -0
  76. package/dist/entity/CustomProduct.d.ts +22 -0
  77. package/dist/entity/CustomProduct.js +95 -0
  78. package/dist/entity/CustomProduct.js.map +1 -0
  79. package/dist/entity/CustomProductImage.d.ts +10 -0
  80. package/dist/entity/CustomProductImage.js +51 -0
  81. package/dist/entity/CustomProductImage.js.map +1 -0
  82. package/dist/entity/CustomVariant.d.ts +13 -0
  83. package/dist/entity/CustomVariant.js +59 -0
  84. package/dist/entity/CustomVariant.js.map +1 -0
  85. package/dist/entity/EnvType.d.ts +6 -0
  86. package/dist/entity/EnvType.js +35 -0
  87. package/dist/entity/EnvType.js.map +1 -0
  88. package/dist/entity/EnvironmentConfiguration.d.ts +7 -0
  89. package/dist/entity/EnvironmentConfiguration.js +39 -0
  90. package/dist/entity/EnvironmentConfiguration.js.map +1 -0
  91. package/dist/entity/ExchangeRate.d.ts +8 -0
  92. package/dist/entity/ExchangeRate.js +43 -0
  93. package/dist/entity/ExchangeRate.js.map +1 -0
  94. package/dist/entity/ExternalRequest.d.ts +12 -0
  95. package/dist/entity/ExternalRequest.js +55 -0
  96. package/dist/entity/ExternalRequest.js.map +1 -0
  97. package/dist/entity/FlatRate.d.ts +9 -0
  98. package/dist/entity/FlatRate.js +45 -0
  99. package/dist/entity/FlatRate.js.map +1 -0
  100. package/dist/entity/FlatRateCountry.d.ts +7 -0
  101. package/dist/entity/FlatRateCountry.js +39 -0
  102. package/dist/entity/FlatRateCountry.js.map +1 -0
  103. package/dist/entity/Fulfillment.d.ts +5 -0
  104. package/dist/entity/Fulfillment.js +28 -0
  105. package/dist/entity/Fulfillment.js.map +1 -0
  106. package/dist/entity/Image.d.ts +12 -0
  107. package/dist/entity/Image.js +58 -0
  108. package/dist/entity/Image.js.map +1 -0
  109. package/dist/entity/ImportedProduct.d.ts +18 -0
  110. package/dist/entity/ImportedProduct.js +80 -0
  111. package/dist/entity/ImportedProduct.js.map +1 -0
  112. package/dist/entity/MagentoConnection.entity.d.ts +14 -0
  113. package/dist/entity/MagentoConnection.entity.js +69 -0
  114. package/dist/entity/MagentoConnection.entity.js.map +1 -0
  115. package/dist/entity/MetricActiveUser.d.ts +8 -0
  116. package/dist/entity/MetricActiveUser.js +43 -0
  117. package/dist/entity/MetricActiveUser.js.map +1 -0
  118. package/dist/entity/Notification.d.ts +20 -0
  119. package/dist/entity/Notification.js +58 -0
  120. package/dist/entity/Notification.js.map +1 -0
  121. package/dist/entity/Option.d.ts +9 -0
  122. package/dist/entity/Option.js +45 -0
  123. package/dist/entity/Option.js.map +1 -0
  124. package/dist/entity/Order.d.ts +30 -0
  125. package/dist/entity/Order.js +110 -0
  126. package/dist/entity/Order.js.map +1 -0
  127. package/dist/entity/OrderCustomer.d.ts +17 -0
  128. package/dist/entity/OrderCustomer.js +76 -0
  129. package/dist/entity/OrderCustomer.js.map +1 -0
  130. package/dist/entity/OrderItem.d.ts +36 -0
  131. package/dist/entity/OrderItem.js +159 -0
  132. package/dist/entity/OrderItem.js.map +1 -0
  133. package/dist/entity/OrderShipping.d.ts +12 -0
  134. package/dist/entity/OrderShipping.js +69 -0
  135. package/dist/entity/OrderShipping.js.map +1 -0
  136. package/dist/entity/OrderTracking.d.ts +16 -0
  137. package/dist/entity/OrderTracking.js +73 -0
  138. package/dist/entity/OrderTracking.js.map +1 -0
  139. package/dist/entity/Payment.d.ts +19 -0
  140. package/dist/entity/Payment.js +85 -0
  141. package/dist/entity/Payment.js.map +1 -0
  142. package/dist/entity/PaymentMethod.d.ts +9 -0
  143. package/dist/entity/PaymentMethod.js +48 -0
  144. package/dist/entity/PaymentMethod.js.map +1 -0
  145. package/dist/entity/PaymentShopify.d.ts +7 -0
  146. package/dist/entity/PaymentShopify.js +39 -0
  147. package/dist/entity/PaymentShopify.js.map +1 -0
  148. package/dist/entity/Permission.d.ts +5 -0
  149. package/dist/entity/Permission.js +31 -0
  150. package/dist/entity/Permission.js.map +1 -0
  151. package/dist/entity/Price.entity.d.ts +6 -0
  152. package/dist/entity/Price.entity.js +33 -0
  153. package/dist/entity/Price.entity.js.map +1 -0
  154. package/dist/entity/Product.entity.d.ts +68 -0
  155. package/dist/entity/Product.entity.js +274 -0
  156. package/dist/entity/Product.entity.js.map +1 -0
  157. package/dist/entity/ProductAttribute.d.ts +9 -0
  158. package/dist/entity/ProductAttribute.js +49 -0
  159. package/dist/entity/ProductAttribute.js.map +1 -0
  160. package/dist/entity/ProductCategory.d.ts +9 -0
  161. package/dist/entity/ProductCategory.js +47 -0
  162. package/dist/entity/ProductCategory.js.map +1 -0
  163. package/dist/entity/ProductDigital.d.ts +29 -0
  164. package/dist/entity/ProductDigital.js +102 -0
  165. package/dist/entity/ProductDigital.js.map +1 -0
  166. package/dist/entity/Request.d.ts +8 -0
  167. package/dist/entity/Request.js +42 -0
  168. package/dist/entity/Request.js.map +1 -0
  169. package/dist/entity/Return.d.ts +8 -0
  170. package/dist/entity/Return.js +40 -0
  171. package/dist/entity/Return.js.map +1 -0
  172. package/dist/entity/ReturnAddress.d.ts +10 -0
  173. package/dist/entity/ReturnAddress.js +48 -0
  174. package/dist/entity/ReturnAddress.js.map +1 -0
  175. package/dist/entity/Role.d.ts +7 -0
  176. package/dist/entity/Role.js +42 -0
  177. package/dist/entity/Role.js.map +1 -0
  178. package/dist/entity/RolePermission.d.ts +8 -0
  179. package/dist/entity/RolePermission.js +40 -0
  180. package/dist/entity/RolePermission.js.map +1 -0
  181. package/dist/entity/ShippingPackage.d.ts +7 -0
  182. package/dist/entity/ShippingPackage.js +39 -0
  183. package/dist/entity/ShippingPackage.js.map +1 -0
  184. package/dist/entity/ShopifyConnection.d.ts +15 -0
  185. package/dist/entity/ShopifyConnection.js +71 -0
  186. package/dist/entity/ShopifyConnection.js.map +1 -0
  187. package/dist/entity/Subcategory.d.ts +9 -0
  188. package/dist/entity/Subcategory.js +41 -0
  189. package/dist/entity/Subcategory.js.map +1 -0
  190. package/dist/entity/Translate.d.ts +8 -0
  191. package/dist/entity/Translate.js +43 -0
  192. package/dist/entity/Translate.js.map +1 -0
  193. package/dist/entity/User.d.ts +90 -0
  194. package/dist/entity/User.js +333 -0
  195. package/dist/entity/User.js.map +1 -0
  196. package/dist/entity/UserChannelApiKey.d.ts +10 -0
  197. package/dist/entity/UserChannelApiKey.js +47 -0
  198. package/dist/entity/UserChannelApiKey.js.map +1 -0
  199. package/dist/entity/UserRole.d.ts +8 -0
  200. package/dist/entity/UserRole.js +40 -0
  201. package/dist/entity/UserRole.js.map +1 -0
  202. package/dist/entity/UserSettings.d.ts +19 -0
  203. package/dist/entity/UserSettings.js +94 -0
  204. package/dist/entity/UserSettings.js.map +1 -0
  205. package/dist/entity/Variant.d.ts +20 -0
  206. package/dist/entity/Variant.js +85 -0
  207. package/dist/entity/Variant.js.map +1 -0
  208. package/dist/entity/Wallet.d.ts +6 -0
  209. package/dist/entity/Wallet.js +35 -0
  210. package/dist/entity/Wallet.js.map +1 -0
  211. package/dist/entity/WooConnection.d.ts +10 -0
  212. package/dist/entity/WooConnection.js +52 -0
  213. package/dist/entity/WooConnection.js.map +1 -0
  214. package/dist/entity/index.d.ts +102 -0
  215. package/dist/entity/index.js +211 -0
  216. package/dist/entity/index.js.map +1 -0
  217. package/dist/entity/modules/discount/Discount.d.ts +18 -0
  218. package/dist/entity/modules/discount/Discount.js +80 -0
  219. package/dist/entity/modules/discount/Discount.js.map +1 -0
  220. package/dist/entity/modules/discount/DiscountCart.d.ts +10 -0
  221. package/dist/entity/modules/discount/DiscountCart.js +51 -0
  222. package/dist/entity/modules/discount/DiscountCart.js.map +1 -0
  223. package/dist/entity/modules/discount/DiscountProduct.d.ts +9 -0
  224. package/dist/entity/modules/discount/DiscountProduct.js +47 -0
  225. package/dist/entity/modules/discount/DiscountProduct.js.map +1 -0
  226. package/dist/entity/modules/discount/DiscountType.d.ts +8 -0
  227. package/dist/entity/modules/discount/DiscountType.js +41 -0
  228. package/dist/entity/modules/discount/DiscountType.js.map +1 -0
  229. package/dist/entity/modules/shipping/ProductShipping.d.ts +10 -0
  230. package/dist/entity/modules/shipping/ProductShipping.js +53 -0
  231. package/dist/entity/modules/shipping/ProductShipping.js.map +1 -0
  232. package/dist/entity/modules/shipping/Shipping.d.ts +17 -0
  233. package/dist/entity/modules/shipping/Shipping.js +75 -0
  234. package/dist/entity/modules/shipping/Shipping.js.map +1 -0
  235. package/dist/entity/modules/shipping/ShippingCountry.d.ts +12 -0
  236. package/dist/entity/modules/shipping/ShippingCountry.js +57 -0
  237. package/dist/entity/modules/shipping/ShippingCountry.js.map +1 -0
  238. package/dist/entity/modules/shopcart/Cart.d.ts +15 -0
  239. package/dist/entity/modules/shopcart/Cart.js +64 -0
  240. package/dist/entity/modules/shopcart/Cart.js.map +1 -0
  241. package/dist/entity/modules/shopcart/CartItem.d.ts +17 -0
  242. package/dist/entity/modules/shopcart/CartItem.js +76 -0
  243. package/dist/entity/modules/shopcart/CartItem.js.map +1 -0
  244. package/dist/entity/modules/shopcart/Checkout.d.ts +23 -0
  245. package/dist/entity/modules/shopcart/Checkout.js +99 -0
  246. package/dist/entity/modules/shopcart/Checkout.js.map +1 -0
  247. package/dist/entity/modules/shopcart/CheckoutBillingAddress.d.ts +18 -0
  248. package/dist/entity/modules/shopcart/CheckoutBillingAddress.js +84 -0
  249. package/dist/entity/modules/shopcart/CheckoutBillingAddress.js.map +1 -0
  250. package/dist/entity/modules/shopcart/CheckoutShippingAddress.d.ts +18 -0
  251. package/dist/entity/modules/shopcart/CheckoutShippingAddress.js +84 -0
  252. package/dist/entity/modules/shopcart/CheckoutShippingAddress.js.map +1 -0
  253. package/dist/entity/modules/shopcart/PriceData.d.ts +9 -0
  254. package/dist/entity/modules/shopcart/PriceData.js +48 -0
  255. package/dist/entity/modules/shopcart/PriceData.js.map +1 -0
  256. package/dist/entity/modules/subscriptions/Plan.d.ts +13 -0
  257. package/dist/entity/modules/subscriptions/Plan.js +61 -0
  258. package/dist/entity/modules/subscriptions/Plan.js.map +1 -0
  259. package/dist/entity/modules/subscriptions/Subscription.d.ts +14 -0
  260. package/dist/entity/modules/subscriptions/Subscription.js +63 -0
  261. package/dist/entity/modules/subscriptions/Subscription.js.map +1 -0
  262. package/dist/entity/modules/subscriptions/UserCountPlan.d.ts +10 -0
  263. package/dist/entity/modules/subscriptions/UserCountPlan.js +49 -0
  264. package/dist/entity/modules/subscriptions/UserCountPlan.js.map +1 -0
  265. package/dist/entity/modules/templates/AuthInfo.d.ts +22 -0
  266. package/dist/entity/modules/templates/AuthInfo.js +98 -0
  267. package/dist/entity/modules/templates/AuthInfo.js.map +1 -0
  268. package/dist/entity/modules/templates/AuthMethod.d.ts +8 -0
  269. package/dist/entity/modules/templates/AuthMethod.js +42 -0
  270. package/dist/entity/modules/templates/AuthMethod.js.map +1 -0
  271. package/dist/entity/modules/templates/EndpointTemplateEcommerce.d.ts +13 -0
  272. package/dist/entity/modules/templates/EndpointTemplateEcommerce.js +61 -0
  273. package/dist/entity/modules/templates/EndpointTemplateEcommerce.js.map +1 -0
  274. package/dist/entity/modules/templates/TemplateEcommerce.d.ts +30 -0
  275. package/dist/entity/modules/templates/TemplateEcommerce.js +128 -0
  276. package/dist/entity/modules/templates/TemplateEcommerce.js.map +1 -0
  277. package/dist/entity/modules/templates/UserTemplateEcommerce.d.ts +15 -0
  278. package/dist/entity/modules/templates/UserTemplateEcommerce.js +61 -0
  279. package/dist/entity/modules/templates/UserTemplateEcommerce.js.map +1 -0
  280. package/dist/entity/modules/templates/WebhookTemplateEcommerce.d.ts +14 -0
  281. package/dist/entity/modules/templates/WebhookTemplateEcommerce.js +65 -0
  282. package/dist/entity/modules/templates/WebhookTemplateEcommerce.js.map +1 -0
  283. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.d.ts +12 -0
  284. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js +56 -0
  285. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js.map +1 -0
  286. package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder.d.ts +12 -0
  287. package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder.js +56 -0
  288. package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrder.js.map +1 -0
  289. package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped.d.ts +12 -0
  290. package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped.js +56 -0
  291. package/dist/entity/modules/templates/schemeOrder/TemplateEcommerceSchemeConfigOrderMapped.js.map +1 -0
  292. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.d.ts +12 -0
  293. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js +56 -0
  294. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js.map +1 -0
  295. package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProduct.d.ts +11 -0
  296. package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProduct.js +52 -0
  297. package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProduct.js.map +1 -0
  298. package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProductMapped.d.ts +11 -0
  299. package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProductMapped.js +52 -0
  300. package/dist/entity/modules/templates/schemeProduct/TemplateEcommerceSchemeConfigProductMapped.js.map +1 -0
  301. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.d.ts +12 -0
  302. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js +56 -0
  303. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js.map +1 -0
  304. package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant.d.ts +12 -0
  305. package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant.js +56 -0
  306. package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariant.js.map +1 -0
  307. package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped.d.ts +12 -0
  308. package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped.js +56 -0
  309. package/dist/entity/modules/templates/schemeVariant/TemplateEcommerceSchemeConfigVariantMapped.js.map +1 -0
  310. package/dist/examples/app01.d.ts +1 -0
  311. package/dist/examples/app01.js +23 -0
  312. package/dist/examples/app01.js.map +1 -0
  313. package/dist/helpers/index.d.ts +6 -0
  314. package/dist/helpers/index.js +33 -0
  315. package/dist/helpers/index.js.map +1 -0
  316. package/dist/helpers/order/index.d.ts +28 -0
  317. package/dist/helpers/order/index.js +47 -0
  318. package/dist/helpers/order/index.js.map +1 -0
  319. package/dist/helpers/products/index.d.ts +2 -0
  320. package/dist/helpers/products/index.js +25 -0
  321. package/dist/helpers/products/index.js.map +1 -0
  322. package/dist/helpers/products/storage/index.d.ts +2 -0
  323. package/dist/helpers/products/storage/index.js +25 -0
  324. package/dist/helpers/products/storage/index.js.map +1 -0
  325. package/dist/helpers/products/storage/search.d.ts +56 -0
  326. package/dist/helpers/products/storage/search.js +193 -0
  327. package/dist/helpers/products/storage/search.js.map +1 -0
  328. package/dist/helpers/querys/index.d.ts +2 -0
  329. package/dist/helpers/querys/index.js +31 -0
  330. package/dist/helpers/querys/index.js.map +1 -0
  331. package/dist/helpers/returns/index.d.ts +2 -0
  332. package/dist/helpers/returns/index.js +25 -0
  333. package/dist/helpers/returns/index.js.map +1 -0
  334. package/dist/helpers/returns/storage.d.ts +3 -0
  335. package/dist/helpers/returns/storage.js +23 -0
  336. package/dist/helpers/returns/storage.js.map +1 -0
  337. package/dist/helpers/statistics/connections.d.ts +6 -0
  338. package/dist/helpers/statistics/connections.js +78 -0
  339. package/dist/helpers/statistics/connections.js.map +1 -0
  340. package/dist/helpers/statistics/index.d.ts +2 -0
  341. package/dist/helpers/statistics/index.js +25 -0
  342. package/dist/helpers/statistics/index.js.map +1 -0
  343. package/dist/index.d.ts +7 -0
  344. package/dist/index.js +35 -0
  345. package/dist/index.js.map +1 -0
  346. package/dist/interface/connectionConfig.d.ts +16 -0
  347. package/dist/interface/connectionConfig.js +3 -0
  348. package/dist/interface/connectionConfig.js.map +1 -0
  349. package/dist/migrations/1628474597284-InitialSchema.d.ts +6 -0
  350. package/dist/migrations/1628474597284-InitialSchema.js +203 -0
  351. package/dist/migrations/1628474597284-InitialSchema.js.map +1 -0
  352. package/dist/migrations/1630077596132-RemoveMangopay.d.ts +6 -0
  353. package/dist/migrations/1630077596132-RemoveMangopay.js +53 -0
  354. package/dist/migrations/1630077596132-RemoveMangopay.js.map +1 -0
  355. package/dist/migrations/1633444449026-MagentoIntegration.d.ts +6 -0
  356. package/dist/migrations/1633444449026-MagentoIntegration.js +42 -0
  357. package/dist/migrations/1633444449026-MagentoIntegration.js.map +1 -0
  358. package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.d.ts +6 -0
  359. package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.js +31 -0
  360. package/dist/migrations/1634070448072-MagentoIntegrationExternalChannelOrder.js.map +1 -0
  361. package/dist/migrations/1635811861541-SSCCOrderGenerator.d.ts +6 -0
  362. package/dist/migrations/1635811861541-SSCCOrderGenerator.js +29 -0
  363. package/dist/migrations/1635811861541-SSCCOrderGenerator.js.map +1 -0
  364. package/dist/migrations/1638447028594-RolesFeature.d.ts +6 -0
  365. package/dist/migrations/1638447028594-RolesFeature.js +47 -0
  366. package/dist/migrations/1638447028594-RolesFeature.js.map +1 -0
  367. package/dist/migrations/1638493697631-ProductCurrencyPrice.d.ts +6 -0
  368. package/dist/migrations/1638493697631-ProductCurrencyPrice.js +35 -0
  369. package/dist/migrations/1638493697631-ProductCurrencyPrice.js.map +1 -0
  370. package/dist/migrations/1646797095632-UpdateWooTrackingNumber.d.ts +6 -0
  371. package/dist/migrations/1646797095632-UpdateWooTrackingNumber.js +33 -0
  372. package/dist/migrations/1646797095632-UpdateWooTrackingNumber.js.map +1 -0
  373. package/dist/migrations/1648526519546-AddedUserSettings.d.ts +6 -0
  374. package/dist/migrations/1648526519546-AddedUserSettings.js +37 -0
  375. package/dist/migrations/1648526519546-AddedUserSettings.js.map +1 -0
  376. package/dist/migrations/1651206194365-Wolt.d.ts +6 -0
  377. package/dist/migrations/1651206194365-Wolt.js +52 -0
  378. package/dist/migrations/1651206194365-Wolt.js.map +1 -0
  379. package/dist/migrations/1663227133335-shop-cart.d.ts +6 -0
  380. package/dist/migrations/1663227133335-shop-cart.js +62 -0
  381. package/dist/migrations/1663227133335-shop-cart.js.map +1 -0
  382. package/dist/migrations/1664160721396-collection.d.ts +6 -0
  383. package/dist/migrations/1664160721396-collection.js +43 -0
  384. package/dist/migrations/1664160721396-collection.js.map +1 -0
  385. package/dist/migrations/1664222251306-update-collection.d.ts +6 -0
  386. package/dist/migrations/1664222251306-update-collection.js +37 -0
  387. package/dist/migrations/1664222251306-update-collection.js.map +1 -0
  388. package/dist/migrations/1665757388450-channel.d.ts +6 -0
  389. package/dist/migrations/1665757388450-channel.js +59 -0
  390. package/dist/migrations/1665757388450-channel.js.map +1 -0
  391. package/dist/migrations/1666098098114-prod-22-10-18.d.ts +6 -0
  392. package/dist/migrations/1666098098114-prod-22-10-18.js +110 -0
  393. package/dist/migrations/1666098098114-prod-22-10-18.js.map +1 -0
  394. package/dist/migrations/1666631086586-user-channel-api-key-and-currency.d.ts +6 -0
  395. package/dist/migrations/1666631086586-user-channel-api-key-and-currency.js +39 -0
  396. package/dist/migrations/1666631086586-user-channel-api-key-and-currency.js.map +1 -0
  397. package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.d.ts +6 -0
  398. package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.js +35 -0
  399. package/dist/migrations/1666632054252-user-channel-api-key-and-currency-update.js.map +1 -0
  400. package/dist/migrations/1666752877685-checkout-and-usser-settings.d.ts +6 -0
  401. package/dist/migrations/1666752877685-checkout-and-usser-settings.js +39 -0
  402. package/dist/migrations/1666752877685-checkout-and-usser-settings.js.map +1 -0
  403. package/dist/migrations/1666846907205-update-user-settings.d.ts +6 -0
  404. package/dist/migrations/1666846907205-update-user-settings.js +31 -0
  405. package/dist/migrations/1666846907205-update-user-settings.js.map +1 -0
  406. package/dist/migrations/1667259333252-prod-22-10-31.d.ts +6 -0
  407. package/dist/migrations/1667259333252-prod-22-10-31.js +43 -0
  408. package/dist/migrations/1667259333252-prod-22-10-31.js.map +1 -0
  409. package/dist/migrations/1667518502388-product-update.d.ts +6 -0
  410. package/dist/migrations/1667518502388-product-update.js +31 -0
  411. package/dist/migrations/1667518502388-product-update.js.map +1 -0
  412. package/dist/migrations/1668571948507-ExchangeRate.d.ts +6 -0
  413. package/dist/migrations/1668571948507-ExchangeRate.js +29 -0
  414. package/dist/migrations/1668571948507-ExchangeRate.js.map +1 -0
  415. package/dist/migrations/1668580085818-update-ExchangeRate.d.ts +6 -0
  416. package/dist/migrations/1668580085818-update-ExchangeRate.js +31 -0
  417. package/dist/migrations/1668580085818-update-ExchangeRate.js.map +1 -0
  418. package/dist/migrations/1669318273596-update-oder-notification.d.ts +6 -0
  419. package/dist/migrations/1669318273596-update-oder-notification.js +33 -0
  420. package/dist/migrations/1669318273596-update-oder-notification.js.map +1 -0
  421. package/dist/migrations/1669737769669-option.d.ts +6 -0
  422. package/dist/migrations/1669737769669-option.js +29 -0
  423. package/dist/migrations/1669737769669-option.js.map +1 -0
  424. package/dist/migrations/1669912111945-shipping.d.ts +6 -0
  425. package/dist/migrations/1669912111945-shipping.js +39 -0
  426. package/dist/migrations/1669912111945-shipping.js.map +1 -0
  427. package/dist/migrations/1670258127812-price.d.ts +6 -0
  428. package/dist/migrations/1670258127812-price.js +31 -0
  429. package/dist/migrations/1670258127812-price.js.map +1 -0
  430. package/dist/migrations/1670952109146-variant.d.ts +6 -0
  431. package/dist/migrations/1670952109146-variant.js +29 -0
  432. package/dist/migrations/1670952109146-variant.js.map +1 -0
  433. package/dist/migrations/1671409580304-order.d.ts +6 -0
  434. package/dist/migrations/1671409580304-order.js +33 -0
  435. package/dist/migrations/1671409580304-order.js.map +1 -0
  436. package/dist/migrations/1672239194236-user-shipping.d.ts +6 -0
  437. package/dist/migrations/1672239194236-user-shipping.js +31 -0
  438. package/dist/migrations/1672239194236-user-shipping.js.map +1 -0
  439. package/dist/migrations/1673628218703-promote_to_production_2023_13_01.d.ts +6 -0
  440. package/dist/migrations/1673628218703-promote_to_production_2023_13_01.js +67 -0
  441. package/dist/migrations/1673628218703-promote_to_production_2023_13_01.js.map +1 -0
  442. package/dist/migrations/1674016904315-exchangeRate_2023_13_01.d.ts +6 -0
  443. package/dist/migrations/1674016904315-exchangeRate_2023_13_01.js +29 -0
  444. package/dist/migrations/1674016904315-exchangeRate_2023_13_01.js.map +1 -0
  445. package/dist/migrations/1674743576475-promote_to_production_2023_26_01.d.ts +6 -0
  446. package/dist/migrations/1674743576475-promote_to_production_2023_26_01.js +29 -0
  447. package/dist/migrations/1674743576475-promote_to_production_2023_26_01.js.map +1 -0
  448. package/dist/migrations/1675452256156-task-1062.d.ts +6 -0
  449. package/dist/migrations/1675452256156-task-1062.js +39 -0
  450. package/dist/migrations/1675452256156-task-1062.js.map +1 -0
  451. package/dist/migrations/1676057445311-task-1062V2.d.ts +6 -0
  452. package/dist/migrations/1676057445311-task-1062V2.js +29 -0
  453. package/dist/migrations/1676057445311-task-1062V2.js.map +1 -0
  454. package/dist/migrations/1676060390524-task-1062V3.d.ts +6 -0
  455. package/dist/migrations/1676060390524-task-1062V3.js +31 -0
  456. package/dist/migrations/1676060390524-task-1062V3.js.map +1 -0
  457. package/dist/migrations/1676389900564-task-1062V4.d.ts +6 -0
  458. package/dist/migrations/1676389900564-task-1062V4.js +29 -0
  459. package/dist/migrations/1676389900564-task-1062V4.js.map +1 -0
  460. package/dist/migrations/1676558804200-task-1074V1.d.ts +6 -0
  461. package/dist/migrations/1676558804200-task-1074V1.js +29 -0
  462. package/dist/migrations/1676558804200-task-1074V1.js.map +1 -0
  463. package/dist/migrations/1676656657956-task-1084V1.d.ts +6 -0
  464. package/dist/migrations/1676656657956-task-1084V1.js +29 -0
  465. package/dist/migrations/1676656657956-task-1084V1.js.map +1 -0
  466. package/dist/migrations/1677706695399-promote_to_production_2023_01_03.d.ts +6 -0
  467. package/dist/migrations/1677706695399-promote_to_production_2023_01_03.js +49 -0
  468. package/dist/migrations/1677706695399-promote_to_production_2023_01_03.js.map +1 -0
  469. package/dist/migrations/1677763068338-task-1032V1.d.ts +6 -0
  470. package/dist/migrations/1677763068338-task-1032V1.js +51 -0
  471. package/dist/migrations/1677763068338-task-1032V1.js.map +1 -0
  472. package/dist/migrations/1677764464274-task-1032V2.d.ts +6 -0
  473. package/dist/migrations/1677764464274-task-1032V2.js +33 -0
  474. package/dist/migrations/1677764464274-task-1032V2.js.map +1 -0
  475. package/dist/migrations/1678115824175-task-1098V1.d.ts +6 -0
  476. package/dist/migrations/1678115824175-task-1098V1.js +31 -0
  477. package/dist/migrations/1678115824175-task-1098V1.js.map +1 -0
  478. package/dist/migrations/1679329902116-promote_to_production_2023_03_20.d.ts +6 -0
  479. package/dist/migrations/1679329902116-promote_to_production_2023_03_20.js +61 -0
  480. package/dist/migrations/1679329902116-promote_to_production_2023_03_20.js.map +1 -0
  481. package/dist/migrations/1680581444059-template.d.ts +6 -0
  482. package/dist/migrations/1680581444059-template.js +111 -0
  483. package/dist/migrations/1680581444059-template.js.map +1 -0
  484. package/dist/migrations/1681167494090-template-channel-name.d.ts +6 -0
  485. package/dist/migrations/1681167494090-template-channel-name.js +29 -0
  486. package/dist/migrations/1681167494090-template-channel-name.js.map +1 -0
  487. package/dist/migrations/1681170372251-template-channel-fix.d.ts +6 -0
  488. package/dist/migrations/1681170372251-template-channel-fix.js +39 -0
  489. package/dist/migrations/1681170372251-template-channel-fix.js.map +1 -0
  490. package/dist/migrations/1681236978678-template-channel-update.d.ts +6 -0
  491. package/dist/migrations/1681236978678-template-channel-update.js +37 -0
  492. package/dist/migrations/1681236978678-template-channel-update.js.map +1 -0
  493. package/dist/migrations/1681258240525-template-channel-update-2.d.ts +6 -0
  494. package/dist/migrations/1681258240525-template-channel-update-2.js +33 -0
  495. package/dist/migrations/1681258240525-template-channel-update-2.js.map +1 -0
  496. package/dist/migrations/1681485048240-template-ecommerce.d.ts +6 -0
  497. package/dist/migrations/1681485048240-template-ecommerce.js +86 -0
  498. package/dist/migrations/1681485048240-template-ecommerce.js.map +1 -0
  499. package/dist/migrations/1681485990275-template-ecommerce-two.d.ts +6 -0
  500. package/dist/migrations/1681485990275-template-ecommerce-two.js +31 -0
  501. package/dist/migrations/1681485990275-template-ecommerce-two.js.map +1 -0
  502. package/dist/migrations/1681741033630-Subscriptions.d.ts +6 -0
  503. package/dist/migrations/1681741033630-Subscriptions.js +37 -0
  504. package/dist/migrations/1681741033630-Subscriptions.js.map +1 -0
  505. package/dist/migrations/1681765500644-template-auth-fix.d.ts +6 -0
  506. package/dist/migrations/1681765500644-template-auth-fix.js +55 -0
  507. package/dist/migrations/1681765500644-template-auth-fix.js.map +1 -0
  508. package/dist/migrations/1681967226231-Subscriptions_v2.d.ts +6 -0
  509. package/dist/migrations/1681967226231-Subscriptions_v2.js +31 -0
  510. package/dist/migrations/1681967226231-Subscriptions_v2.js.map +1 -0
  511. package/dist/migrations/1682475704295-Subscriptions_v3.d.ts +6 -0
  512. package/dist/migrations/1682475704295-Subscriptions_v3.js +42 -0
  513. package/dist/migrations/1682475704295-Subscriptions_v3.js.map +1 -0
  514. package/dist/migrations/1682691040003-code-in-plan.d.ts +6 -0
  515. package/dist/migrations/1682691040003-code-in-plan.js +31 -0
  516. package/dist/migrations/1682691040003-code-in-plan.js.map +1 -0
  517. package/dist/migrations/1682702844783-promote_to_production_28_04_2023.d.ts +6 -0
  518. package/dist/migrations/1682702844783-promote_to_production_28_04_2023.js +125 -0
  519. package/dist/migrations/1682702844783-promote_to_production_28_04_2023.js.map +1 -0
  520. package/dist/migrations/1683077989567-update_plan.d.ts +6 -0
  521. package/dist/migrations/1683077989567-update_plan.js +31 -0
  522. package/dist/migrations/1683077989567-update_plan.js.map +1 -0
  523. package/dist/migrations/1683322405116-translate.d.ts +6 -0
  524. package/dist/migrations/1683322405116-translate.js +29 -0
  525. package/dist/migrations/1683322405116-translate.js.map +1 -0
  526. package/dist/migrations/1683656076895-promote_to_production_09_05_2023.d.ts +6 -0
  527. package/dist/migrations/1683656076895-promote_to_production_09_05_2023.js +35 -0
  528. package/dist/migrations/1683656076895-promote_to_production_09_05_2023.js.map +1 -0
  529. package/dist/migrations/1683904619468-connections.d.ts +6 -0
  530. package/dist/migrations/1683904619468-connections.js +37 -0
  531. package/dist/migrations/1683904619468-connections.js.map +1 -0
  532. package/dist/migrations/1683908691683-connections-update.d.ts +6 -0
  533. package/dist/migrations/1683908691683-connections-update.js +39 -0
  534. package/dist/migrations/1683908691683-connections-update.js.map +1 -0
  535. package/dist/migrations/1684176902363-connections-update-2.d.ts +6 -0
  536. package/dist/migrations/1684176902363-connections-update-2.js +33 -0
  537. package/dist/migrations/1684176902363-connections-update-2.js.map +1 -0
  538. package/dist/migrations/1684451330738-externalRequest.d.ts +6 -0
  539. package/dist/migrations/1684451330738-externalRequest.js +39 -0
  540. package/dist/migrations/1684451330738-externalRequest.js.map +1 -0
  541. package/dist/migrations/1684452127341-externalRequest_v1.d.ts +6 -0
  542. package/dist/migrations/1684452127341-externalRequest_v1.js +33 -0
  543. package/dist/migrations/1684452127341-externalRequest_v1.js.map +1 -0
  544. package/dist/migrations/1684452476996-externalRequest_v2.d.ts +6 -0
  545. package/dist/migrations/1684452476996-externalRequest_v2.js +33 -0
  546. package/dist/migrations/1684452476996-externalRequest_v2.js.map +1 -0
  547. package/dist/migrations/1684935064606-shopify-conn.d.ts +6 -0
  548. package/dist/migrations/1684935064606-shopify-conn.js +33 -0
  549. package/dist/migrations/1684935064606-shopify-conn.js.map +1 -0
  550. package/dist/migrations/1684975416295-shopify-conn-2.d.ts +6 -0
  551. package/dist/migrations/1684975416295-shopify-conn-2.js +31 -0
  552. package/dist/migrations/1684975416295-shopify-conn-2.js.map +1 -0
  553. package/dist/migrations/1685123080409-externalRequest_v3.d.ts +6 -0
  554. package/dist/migrations/1685123080409-externalRequest_v3.js +31 -0
  555. package/dist/migrations/1685123080409-externalRequest_v3.js.map +1 -0
  556. package/dist/migrations/1685127311585-externalRequest_v4.d.ts +6 -0
  557. package/dist/migrations/1685127311585-externalRequest_v4.js +33 -0
  558. package/dist/migrations/1685127311585-externalRequest_v4.js.map +1 -0
  559. package/dist/migrations/1685128263295-external-request-update.d.ts +6 -0
  560. package/dist/migrations/1685128263295-external-request-update.js +45 -0
  561. package/dist/migrations/1685128263295-external-request-update.js.map +1 -0
  562. package/dist/migrations/1686235086187-fix-multiple-shops.d.ts +6 -0
  563. package/dist/migrations/1686235086187-fix-multiple-shops.js +31 -0
  564. package/dist/migrations/1686235086187-fix-multiple-shops.js.map +1 -0
  565. package/dist/migrations/1686309865248-cart_shipping_country.d.ts +6 -0
  566. package/dist/migrations/1686309865248-cart_shipping_country.js +33 -0
  567. package/dist/migrations/1686309865248-cart_shipping_country.js.map +1 -0
  568. package/dist/migrations/1686837392110-cart_shipping_default.d.ts +6 -0
  569. package/dist/migrations/1686837392110-cart_shipping_default.js +29 -0
  570. package/dist/migrations/1686837392110-cart_shipping_default.js.map +1 -0
  571. package/dist/migrations/1687235204409-channel_user.d.ts +6 -0
  572. package/dist/migrations/1687235204409-channel_user.js +29 -0
  573. package/dist/migrations/1687235204409-channel_user.js.map +1 -0
  574. package/dist/migrations/1687322723851-channel_apikey.d.ts +6 -0
  575. package/dist/migrations/1687322723851-channel_apikey.js +31 -0
  576. package/dist/migrations/1687322723851-channel_apikey.js.map +1 -0
  577. package/dist/migrations/1687872767462-add-columns-template-endpoint.d.ts +6 -0
  578. package/dist/migrations/1687872767462-add-columns-template-endpoint.js +43 -0
  579. package/dist/migrations/1687872767462-add-columns-template-endpoint.js.map +1 -0
  580. package/dist/migrations/1687876131132-migration-develop.d.ts +6 -0
  581. package/dist/migrations/1687876131132-migration-develop.js +31 -0
  582. package/dist/migrations/1687876131132-migration-develop.js.map +1 -0
  583. package/dist/migrations/1687877455406-migration-develop_01.d.ts +6 -0
  584. package/dist/migrations/1687877455406-migration-develop_01.js +37 -0
  585. package/dist/migrations/1687877455406-migration-develop_01.js.map +1 -0
  586. package/dist/migrations/1687877967732-migration-pre-develop.d.ts +6 -0
  587. package/dist/migrations/1687877967732-migration-pre-develop.js +31 -0
  588. package/dist/migrations/1687877967732-migration-pre-develop.js.map +1 -0
  589. package/dist/migrations/1687909776321-migration-pre-develop-shopiffy-connection.d.ts +6 -0
  590. package/dist/migrations/1687909776321-migration-pre-develop-shopiffy-connection.js +35 -0
  591. package/dist/migrations/1687909776321-migration-pre-develop-shopiffy-connection.js.map +1 -0
  592. package/dist/migrations/1687981491374-add-info-to-auth.d.ts +6 -0
  593. package/dist/migrations/1687981491374-add-info-to-auth.js +37 -0
  594. package/dist/migrations/1687981491374-add-info-to-auth.js.map +1 -0
  595. package/dist/migrations/1687993176652-add-info-to-auth-2.d.ts +6 -0
  596. package/dist/migrations/1687993176652-add-info-to-auth-2.js +35 -0
  597. package/dist/migrations/1687993176652-add-info-to-auth-2.js.map +1 -0
  598. package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.d.ts +6 -0
  599. package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.js +35 -0
  600. package/dist/migrations/1687997223199-migration-pre-develop-api-key-channel.js.map +1 -0
  601. package/dist/migrations/1688049065964-add-title-endpoint.d.ts +6 -0
  602. package/dist/migrations/1688049065964-add-title-endpoint.js +29 -0
  603. package/dist/migrations/1688049065964-add-title-endpoint.js.map +1 -0
  604. package/dist/migrations/1688489173526-add-webhook-template.d.ts +6 -0
  605. package/dist/migrations/1688489173526-add-webhook-template.js +31 -0
  606. package/dist/migrations/1688489173526-add-webhook-template.js.map +1 -0
  607. package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.d.ts +6 -0
  608. package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.js +31 -0
  609. package/dist/migrations/1688921300692-migration-pre-develop-user-channel-exported-product.js.map +1 -0
  610. package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.d.ts +6 -0
  611. package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.js +31 -0
  612. package/dist/migrations/1688925248106-migration-pre-develop-user-channel-exported-product_v1.js.map +1 -0
  613. package/dist/migrations/1689005718747-add-active-colum-in-variant.d.ts +6 -0
  614. package/dist/migrations/1689005718747-add-active-colum-in-variant.js +47 -0
  615. package/dist/migrations/1689005718747-add-active-colum-in-variant.js.map +1 -0
  616. package/dist/migrations/1689020331011-add-discount.d.ts +6 -0
  617. package/dist/migrations/1689020331011-add-discount.js +45 -0
  618. package/dist/migrations/1689020331011-add-discount.js.map +1 -0
  619. package/dist/migrations/1689279346515-add-discount-user.d.ts +6 -0
  620. package/dist/migrations/1689279346515-add-discount-user.js +31 -0
  621. package/dist/migrations/1689279346515-add-discount-user.js.map +1 -0
  622. package/dist/migrations/1689345976870-promote_to_development_14_07_23.d.ts +6 -0
  623. package/dist/migrations/1689345976870-promote_to_development_14_07_23.js +47 -0
  624. package/dist/migrations/1689345976870-promote_to_development_14_07_23.js.map +1 -0
  625. package/dist/migrations/1689702729291-discount-applied.d.ts +6 -0
  626. package/dist/migrations/1689702729291-discount-applied.js +29 -0
  627. package/dist/migrations/1689702729291-discount-applied.js.map +1 -0
  628. package/dist/migrations/1689964936496-promote_to_production_21_07_23_01.d.ts +6 -0
  629. package/dist/migrations/1689964936496-promote_to_production_21_07_23_01.js +93 -0
  630. package/dist/migrations/1689964936496-promote_to_production_21_07_23_01.js.map +1 -0
  631. package/dist/migrations/1691662129283-woo_connect_channel_user.d.ts +6 -0
  632. package/dist/migrations/1691662129283-woo_connect_channel_user.js +31 -0
  633. package/dist/migrations/1691662129283-woo_connect_channel_user.js.map +1 -0
  634. package/dist/migrations/1691670038774-woo_connect_channel_user_1.d.ts +6 -0
  635. package/dist/migrations/1691670038774-woo_connect_channel_user_1.js +33 -0
  636. package/dist/migrations/1691670038774-woo_connect_channel_user_1.js.map +1 -0
  637. package/dist/migrations/1691670866271-woo_connect_channel_user_3.d.ts +6 -0
  638. package/dist/migrations/1691670866271-woo_connect_channel_user_3.js +35 -0
  639. package/dist/migrations/1691670866271-woo_connect_channel_user_3.js.map +1 -0
  640. package/dist/migrations/1691671305372-woo_connect_channel_user_4.d.ts +6 -0
  641. package/dist/migrations/1691671305372-woo_connect_channel_user_4.js +31 -0
  642. package/dist/migrations/1691671305372-woo_connect_channel_user_4.js.map +1 -0
  643. package/dist/migrations/1691671493692-woo_connect_channel_user_5.d.ts +6 -0
  644. package/dist/migrations/1691671493692-woo_connect_channel_user_5.js +29 -0
  645. package/dist/migrations/1691671493692-woo_connect_channel_user_5.js.map +1 -0
  646. package/dist/migrations/1691679304105-woo_connect_channel_user_6.d.ts +6 -0
  647. package/dist/migrations/1691679304105-woo_connect_channel_user_6.js +31 -0
  648. package/dist/migrations/1691679304105-woo_connect_channel_user_6.js.map +1 -0
  649. package/dist/migrations/1691764260299-promote_to_production_11_08_23.d.ts +6 -0
  650. package/dist/migrations/1691764260299-promote_to_production_11_08_23.js +33 -0
  651. package/dist/migrations/1691764260299-promote_to_production_11_08_23.js.map +1 -0
  652. package/dist/migrations/1693220480521-woo_connect_supplier.d.ts +6 -0
  653. package/dist/migrations/1693220480521-woo_connect_supplier.js +29 -0
  654. package/dist/migrations/1693220480521-woo_connect_supplier.js.map +1 -0
  655. package/dist/migrations/1693249143377-first-stem-category.d.ts +6 -0
  656. package/dist/migrations/1693249143377-first-stem-category.js +31 -0
  657. package/dist/migrations/1693249143377-first-stem-category.js.map +1 -0
  658. package/dist/migrations/1693335945081-first-step-category-2.d.ts +6 -0
  659. package/dist/migrations/1693335945081-first-step-category-2.js +33 -0
  660. package/dist/migrations/1693335945081-first-step-category-2.js.map +1 -0
  661. package/dist/migrations/1693484300635-variant_images.d.ts +6 -0
  662. package/dist/migrations/1693484300635-variant_images.js +43 -0
  663. package/dist/migrations/1693484300635-variant_images.js.map +1 -0
  664. package/dist/migrations/1694450850673-promote_to_production_11_09_23.d.ts +6 -0
  665. package/dist/migrations/1694450850673-promote_to_production_11_09_23.js +51 -0
  666. package/dist/migrations/1694450850673-promote_to_production_11_09_23.js.map +1 -0
  667. package/dist/migrations/1694451010874-promote_to_production_11_09_23__01.d.ts +6 -0
  668. package/dist/migrations/1694451010874-promote_to_production_11_09_23__01.js +51 -0
  669. package/dist/migrations/1694451010874-promote_to_production_11_09_23__01.js.map +1 -0
  670. package/dist/migrations/1694661125001-user-channel-and-megento-connection.d.ts +6 -0
  671. package/dist/migrations/1694661125001-user-channel-and-megento-connection.js +37 -0
  672. package/dist/migrations/1694661125001-user-channel-and-megento-connection.js.map +1 -0
  673. package/dist/migrations/1694787189040-flag-digital.d.ts +6 -0
  674. package/dist/migrations/1694787189040-flag-digital.js +29 -0
  675. package/dist/migrations/1694787189040-flag-digital.js.map +1 -0
  676. package/dist/migrations/1695122269023-imported_magento.d.ts +6 -0
  677. package/dist/migrations/1695122269023-imported_magento.js +31 -0
  678. package/dist/migrations/1695122269023-imported_magento.js.map +1 -0
  679. package/dist/migrations/1695123846329-imported_magento_1.d.ts +6 -0
  680. package/dist/migrations/1695123846329-imported_magento_1.js +33 -0
  681. package/dist/migrations/1695123846329-imported_magento_1.js.map +1 -0
  682. package/dist/migrations/1695658039275-digital-product-v-1.d.ts +6 -0
  683. package/dist/migrations/1695658039275-digital-product-v-1.js +31 -0
  684. package/dist/migrations/1695658039275-digital-product-v-1.js.map +1 -0
  685. package/dist/migrations/1695907880854-digital-product-v-2.d.ts +6 -0
  686. package/dist/migrations/1695907880854-digital-product-v-2.js +29 -0
  687. package/dist/migrations/1695907880854-digital-product-v-2.js.map +1 -0
  688. package/dist/migrations/1696260773644-digital_update.d.ts +6 -0
  689. package/dist/migrations/1696260773644-digital_update.js +39 -0
  690. package/dist/migrations/1696260773644-digital_update.js.map +1 -0
  691. package/dist/migrations/1696266360829-digital_update_01.d.ts +6 -0
  692. package/dist/migrations/1696266360829-digital_update_01.js +35 -0
  693. package/dist/migrations/1696266360829-digital_update_01.js.map +1 -0
  694. package/dist/migrations/1696268533737-digital_update_02.d.ts +6 -0
  695. package/dist/migrations/1696268533737-digital_update_02.js +31 -0
  696. package/dist/migrations/1696268533737-digital_update_02.js.map +1 -0
  697. package/dist/migrations/1696596436032-promote_to_production.d.ts +6 -0
  698. package/dist/migrations/1696596436032-promote_to_production.js +51 -0
  699. package/dist/migrations/1696596436032-promote_to_production.js.map +1 -0
  700. package/dist/migrations/1696608295188-compareat-line-items-1.d.ts +6 -0
  701. package/dist/migrations/1696608295188-compareat-line-items-1.js +29 -0
  702. package/dist/migrations/1696608295188-compareat-line-items-1.js.map +1 -0
  703. package/dist/migrations/1697724057621-promote_to_production.d.ts +6 -0
  704. package/dist/migrations/1697724057621-promote_to_production.js +31 -0
  705. package/dist/migrations/1697724057621-promote_to_production.js.map +1 -0
  706. package/dist/migrations/1697858770679-user_channel.d.ts +6 -0
  707. package/dist/migrations/1697858770679-user_channel.js +29 -0
  708. package/dist/migrations/1697858770679-user_channel.js.map +1 -0
  709. package/dist/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.d.ts +6 -0
  710. package/dist/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.js +41 -0
  711. package/dist/migrations/1699601410949-promote_to_PRODUCTION_10_11_2023.js.map +1 -0
  712. package/dist/migrations/1700068092273-generated_15_11_2023.d.ts +6 -0
  713. package/dist/migrations/1700068092273-generated_15_11_2023.js +29 -0
  714. package/dist/migrations/1700068092273-generated_15_11_2023.js.map +1 -0
  715. package/dist/migrations/1700574103856-subscription-response-max.d.ts +6 -0
  716. package/dist/migrations/1700574103856-subscription-response-max.js +31 -0
  717. package/dist/migrations/1700574103856-subscription-response-max.js.map +1 -0
  718. package/dist/migrations/1700597907034-product-digital-reachu.d.ts +6 -0
  719. package/dist/migrations/1700597907034-product-digital-reachu.js +29 -0
  720. package/dist/migrations/1700597907034-product-digital-reachu.js.map +1 -0
  721. package/dist/migrations/1701109844785-oda-and-wolt-deleted.d.ts +6 -0
  722. package/dist/migrations/1701109844785-oda-and-wolt-deleted.js +31 -0
  723. package/dist/migrations/1701109844785-oda-and-wolt-deleted.js.map +1 -0
  724. package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.d.ts +6 -0
  725. package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.js +29 -0
  726. package/dist/migrations/1701763179365-promote_to_qa_05_12_2023.js.map +1 -0
  727. package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.d.ts +6 -0
  728. package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.js +39 -0
  729. package/dist/migrations/1701763272354-promote_to_prod_05_12_2023.js.map +1 -0
  730. package/dist/migrations/1701782890059-channel_user_update.d.ts +6 -0
  731. package/dist/migrations/1701782890059-channel_user_update.js +31 -0
  732. package/dist/migrations/1701782890059-channel_user_update.js.map +1 -0
  733. package/dist/migrations/1701807577519-test-step-1.d.ts +6 -0
  734. package/dist/migrations/1701807577519-test-step-1.js +43 -0
  735. package/dist/migrations/1701807577519-test-step-1.js.map +1 -0
  736. package/dist/migrations/1701868990386-test-v2.d.ts +6 -0
  737. package/dist/migrations/1701868990386-test-v2.js +81 -0
  738. package/dist/migrations/1701868990386-test-v2.js.map +1 -0
  739. package/dist/migrations/1701969845764-promote_to_qa_07_12_23.d.ts +6 -0
  740. package/dist/migrations/1701969845764-promote_to_qa_07_12_23.js +63 -0
  741. package/dist/migrations/1701969845764-promote_to_qa_07_12_23.js.map +1 -0
  742. package/dist/migrations/execute/index.d.ts +1 -0
  743. package/dist/migrations/execute/index.js +9 -0
  744. package/dist/migrations/execute/index.js.map +1 -0
  745. package/dist/migrations/index.d.ts +11 -0
  746. package/dist/migrations/index.js +24 -0
  747. package/dist/migrations/index.js.map +1 -0
  748. package/dist/repositories/discount/index.d.ts +13 -0
  749. package/dist/repositories/discount/index.js +42 -0
  750. package/dist/repositories/discount/index.js.map +1 -0
  751. package/dist/repositories/index.d.ts +191 -0
  752. package/dist/repositories/index.js +471 -0
  753. package/dist/repositories/index.js.map +1 -0
  754. package/dist/repositories/shipping/index.d.ts +10 -0
  755. package/dist/repositories/shipping/index.js +35 -0
  756. package/dist/repositories/shipping/index.js.map +1 -0
  757. package/dist/repositories/shopcart/index.d.ts +19 -0
  758. package/dist/repositories/shopcart/index.js +56 -0
  759. package/dist/repositories/shopcart/index.js.map +1 -0
  760. package/dist/repositories/subscriptions/index.d.ts +10 -0
  761. package/dist/repositories/subscriptions/index.js +35 -0
  762. package/dist/repositories/subscriptions/index.js.map +1 -0
  763. package/dist/repositories/templates/index.d.ts +46 -0
  764. package/dist/repositories/templates/index.js +119 -0
  765. package/dist/repositories/templates/index.js.map +1 -0
  766. package/dist/staticData/ChannelName.d.ts +9 -0
  767. package/dist/staticData/ChannelName.js +11 -0
  768. package/dist/staticData/ChannelName.js.map +1 -0
  769. package/dist/staticData/ConnectionType.d.ts +5 -0
  770. package/dist/staticData/ConnectionType.js +7 -0
  771. package/dist/staticData/ConnectionType.js.map +1 -0
  772. package/dist/staticData/Currency.d.ts +9 -0
  773. package/dist/staticData/Currency.js +14 -0
  774. package/dist/staticData/Currency.js.map +1 -0
  775. package/dist/staticData/OrderStatus.d.ts +18 -0
  776. package/dist/staticData/OrderStatus.js +44 -0
  777. package/dist/staticData/OrderStatus.js.map +1 -0
  778. package/dist/staticData/PaymentProcessor.d.ts +8 -0
  779. package/dist/staticData/PaymentProcessor.js +12 -0
  780. package/dist/staticData/PaymentProcessor.js.map +1 -0
  781. package/dist/staticData/ProductOrigin.d.ts +10 -0
  782. package/dist/staticData/ProductOrigin.js +18 -0
  783. package/dist/staticData/ProductOrigin.js.map +1 -0
  784. package/dist/staticData/TrackingProcessor.d.ts +7 -0
  785. package/dist/staticData/TrackingProcessor.js +11 -0
  786. package/dist/staticData/TrackingProcessor.js.map +1 -0
  787. package/dist/staticData/VippsPaymentStatus.d.ts +15 -0
  788. package/dist/staticData/VippsPaymentStatus.js +41 -0
  789. package/dist/staticData/VippsPaymentStatus.js.map +1 -0
  790. package/dist/staticData/index.d.ts +9 -0
  791. package/dist/staticData/index.js +23 -0
  792. package/dist/staticData/index.js.map +1 -0
  793. package/dist/subscribers/ProductSubscriber.d.ts +8 -0
  794. package/dist/subscribers/ProductSubscriber.js +46 -0
  795. package/dist/subscribers/ProductSubscriber.js.map +1 -0
  796. package/dist/subscribers/UserSubscriber.d.ts +8 -0
  797. package/dist/subscribers/UserSubscriber.js +46 -0
  798. package/dist/subscribers/UserSubscriber.js.map +1 -0
  799. package/dist/subscribers/index.d.ts +3 -0
  800. package/dist/subscribers/index.js +8 -0
  801. package/dist/subscribers/index.js.map +1 -0
  802. package/dist/tsconfig.tsbuildinfo +10545 -0
  803. package/dist/utils/index.d.ts +13 -0
  804. package/dist/utils/index.js +109 -0
  805. package/dist/utils/index.js.map +1 -0
  806. package/package.json +3 -3
@@ -0,0 +1,6 @@
1
+ export declare class Price {
2
+ amount?: number;
3
+ currencyCode?: string;
4
+ baseAmount?: number;
5
+ compareAt?: number;
6
+ }
@@ -0,0 +1,33 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Price = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ class Price {
15
+ }
16
+ __decorate([
17
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
18
+ __metadata("design:type", Number)
19
+ ], Price.prototype, "amount", void 0);
20
+ __decorate([
21
+ typeorm_1.Column('varchar', { nullable: true }),
22
+ __metadata("design:type", String)
23
+ ], Price.prototype, "currencyCode", void 0);
24
+ __decorate([
25
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
26
+ __metadata("design:type", Number)
27
+ ], Price.prototype, "baseAmount", void 0);
28
+ __decorate([
29
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
30
+ __metadata("design:type", Number)
31
+ ], Price.prototype, "compareAt", void 0);
32
+ exports.Price = Price;
33
+ //# sourceMappingURL=Price.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Price.entity.js","sourceRoot":"","sources":["../../src/entity/Price.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiC;AAEjC,MAAa,KAAK;CAYjB;AAVC;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAC/C;AAGhB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAChB;AAGtB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC3C;AAGpB;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC5C;AAXrB,sBAYC"}
@@ -0,0 +1,68 @@
1
+ import User from './User';
2
+ import Subcategory from './Subcategory';
3
+ import Channel from './Channel';
4
+ import AuditedModel from './AuditedModel';
5
+ import Option from './Option';
6
+ import Image from './Image';
7
+ import Variant from './Variant';
8
+ import FlatRate from './FlatRate';
9
+ import ImportedProduct from './ImportedProduct';
10
+ import { Price } from './Price.entity';
11
+ import ProductShipping from './modules/shipping/ProductShipping';
12
+ import { CustomProduct } from './CustomProduct';
13
+ import ProductAttribute from './ProductAttribute';
14
+ export declare class Product extends AuditedModel {
15
+ id: number;
16
+ deletedAt: Date;
17
+ title?: string;
18
+ status: number;
19
+ description?: string;
20
+ publicPrice?: number;
21
+ price: Price;
22
+ referralFee: number;
23
+ tags?: string;
24
+ sku?: string;
25
+ barcode?: string;
26
+ quantity?: number;
27
+ allowPurchaseOutOfStock: boolean;
28
+ weight?: number;
29
+ shipTo?: string;
30
+ width?: number;
31
+ height?: number;
32
+ depth?: number;
33
+ optionsEnabled: boolean;
34
+ digital: boolean;
35
+ user: User;
36
+ subcategories: Subcategory[];
37
+ channels: Channel[];
38
+ options: Option[];
39
+ variants: Variant[];
40
+ images: Image[];
41
+ origin?: string;
42
+ originId?: string;
43
+ originVariantId?: string;
44
+ flatRate: FlatRate;
45
+ importedProduct: ImportedProduct;
46
+ totalOrders?: string;
47
+ totalImports?: string;
48
+ imported?: number;
49
+ shopifyId?: string;
50
+ wooId?: string;
51
+ userIsSender?: string;
52
+ userIsReceiver?: string;
53
+ rate: number;
54
+ migrated: boolean;
55
+ active: boolean;
56
+ revenue: number;
57
+ productShipping: ProductShipping[];
58
+ customProduct: CustomProduct;
59
+ productAttribute: ProductAttribute[];
60
+ testOrigen: boolean;
61
+ demo: boolean;
62
+ convertNumerics(): void;
63
+ static getCacheKey(id: any, currency: any): string;
64
+ static invalidateCache(productId: any, removeCache: (key: any) => Promise<void>): Promise<void>;
65
+ static productsCountStatus(status: any): Promise<number>;
66
+ static get PUBLISHED(): number;
67
+ static get DRAFT(): number;
68
+ }
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
+ return new (P || (P = Promise))(function (resolve, reject) {
14
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ var __importDefault = (this && this.__importDefault) || function (mod) {
21
+ return (mod && mod.__esModule) ? mod : { "default": mod };
22
+ };
23
+ var Product_1;
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.Product = void 0;
26
+ const typeorm_1 = require("typeorm");
27
+ const User_1 = __importDefault(require("./User"));
28
+ const Subcategory_1 = __importDefault(require("./Subcategory"));
29
+ const Channel_1 = __importDefault(require("./Channel"));
30
+ const AuditedModel_1 = __importDefault(require("./AuditedModel"));
31
+ const Option_1 = __importDefault(require("./Option"));
32
+ const Image_1 = __importDefault(require("./Image"));
33
+ const Variant_1 = __importDefault(require("./Variant"));
34
+ const FlatRate_1 = __importDefault(require("./FlatRate"));
35
+ const ImportedProduct_1 = __importDefault(require("./ImportedProduct"));
36
+ const logger_1 = require("@reachu/logger");
37
+ const Currency_1 = require("../staticData/Currency");
38
+ const Price_entity_1 = require("./Price.entity");
39
+ const ProductShipping_1 = __importDefault(require("./modules/shipping/ProductShipping"));
40
+ const CustomProduct_1 = require("./CustomProduct");
41
+ const ProductAttribute_1 = __importDefault(require("./ProductAttribute"));
42
+ let Product = Product_1 = class Product extends AuditedModel_1.default {
43
+ convertNumerics() {
44
+ const diff = (this.referralFee * this.publicPrice) / 100;
45
+ this.revenue = Math.round((this.publicPrice - diff) * 100) / 100;
46
+ }
47
+ static getCacheKey(id, currency) {
48
+ return `PRODUCT_${id}-${currency}`;
49
+ }
50
+ static invalidateCache(productId, removeCache) {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ logger_1.logger.debug(`[Product.invalidateCache]: by productId ${productId}`);
53
+ yield Promise.all(Currency_1.currencies.map((currency) => removeCache(this.getCacheKey(productId, currency))));
54
+ });
55
+ }
56
+ static productsCountStatus(status) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return typeorm_1.getRepository(Product_1).count({ where: { status } });
59
+ });
60
+ }
61
+ static get PUBLISHED() {
62
+ return 1;
63
+ }
64
+ static get DRAFT() {
65
+ return 0;
66
+ }
67
+ };
68
+ __decorate([
69
+ typeorm_1.PrimaryGeneratedColumn(),
70
+ __metadata("design:type", Number)
71
+ ], Product.prototype, "id", void 0);
72
+ __decorate([
73
+ typeorm_1.DeleteDateColumn(),
74
+ __metadata("design:type", Date)
75
+ ], Product.prototype, "deletedAt", void 0);
76
+ __decorate([
77
+ typeorm_1.Column('varchar', { nullable: true }),
78
+ __metadata("design:type", String)
79
+ ], Product.prototype, "title", void 0);
80
+ __decorate([
81
+ typeorm_1.Column('integer', { default: 0 }),
82
+ __metadata("design:type", Number)
83
+ ], Product.prototype, "status", void 0);
84
+ __decorate([
85
+ typeorm_1.Column('text', { nullable: true }),
86
+ __metadata("design:type", String)
87
+ ], Product.prototype, "description", void 0);
88
+ __decorate([
89
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
90
+ __metadata("design:type", Number)
91
+ ], Product.prototype, "publicPrice", void 0);
92
+ __decorate([
93
+ typeorm_1.Column(() => Price_entity_1.Price, { prefix: 'price_' }),
94
+ __metadata("design:type", Price_entity_1.Price)
95
+ ], Product.prototype, "price", void 0);
96
+ __decorate([
97
+ typeorm_1.Column('integer', { default: 10 }),
98
+ __metadata("design:type", Number)
99
+ ], Product.prototype, "referralFee", void 0);
100
+ __decorate([
101
+ typeorm_1.Column('varchar', { default: '', nullable: true }),
102
+ __metadata("design:type", String)
103
+ ], Product.prototype, "tags", void 0);
104
+ __decorate([
105
+ typeorm_1.Column('varchar', { nullable: true }),
106
+ __metadata("design:type", String)
107
+ ], Product.prototype, "sku", void 0);
108
+ __decorate([
109
+ typeorm_1.Column('varchar', { nullable: true }),
110
+ __metadata("design:type", String)
111
+ ], Product.prototype, "barcode", void 0);
112
+ __decorate([
113
+ typeorm_1.Column('integer', { nullable: true }),
114
+ __metadata("design:type", Number)
115
+ ], Product.prototype, "quantity", void 0);
116
+ __decorate([
117
+ typeorm_1.Column('boolean', { default: false }),
118
+ __metadata("design:type", Boolean)
119
+ ], Product.prototype, "allowPurchaseOutOfStock", void 0);
120
+ __decorate([
121
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
122
+ __metadata("design:type", Number)
123
+ ], Product.prototype, "weight", void 0);
124
+ __decorate([
125
+ typeorm_1.Column('text', { nullable: true }),
126
+ __metadata("design:type", String)
127
+ ], Product.prototype, "shipTo", void 0);
128
+ __decorate([
129
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
130
+ __metadata("design:type", Number)
131
+ ], Product.prototype, "width", void 0);
132
+ __decorate([
133
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
134
+ __metadata("design:type", Number)
135
+ ], Product.prototype, "height", void 0);
136
+ __decorate([
137
+ typeorm_1.Column('decimal', { precision: 10, scale: 2, nullable: true }),
138
+ __metadata("design:type", Number)
139
+ ], Product.prototype, "depth", void 0);
140
+ __decorate([
141
+ typeorm_1.Column('boolean', { default: false }),
142
+ __metadata("design:type", Boolean)
143
+ ], Product.prototype, "optionsEnabled", void 0);
144
+ __decorate([
145
+ typeorm_1.Column('boolean', { default: false }),
146
+ __metadata("design:type", Boolean)
147
+ ], Product.prototype, "digital", void 0);
148
+ __decorate([
149
+ typeorm_1.ManyToOne(() => User_1.default, { eager: true }),
150
+ typeorm_1.JoinColumn(),
151
+ __metadata("design:type", User_1.default)
152
+ ], Product.prototype, "user", void 0);
153
+ __decorate([
154
+ typeorm_1.ManyToMany(() => Subcategory_1.default, { eager: true }),
155
+ typeorm_1.JoinTable(),
156
+ __metadata("design:type", Array)
157
+ ], Product.prototype, "subcategories", void 0);
158
+ __decorate([
159
+ typeorm_1.ManyToMany(() => Channel_1.default, { eager: true }),
160
+ typeorm_1.JoinTable(),
161
+ __metadata("design:type", Array)
162
+ ], Product.prototype, "channels", void 0);
163
+ __decorate([
164
+ typeorm_1.OneToMany(() => Option_1.default, (option) => option.product, { eager: true, cascade: true }),
165
+ typeorm_1.JoinColumn(),
166
+ __metadata("design:type", Array)
167
+ ], Product.prototype, "options", void 0);
168
+ __decorate([
169
+ typeorm_1.OneToMany(() => Variant_1.default, (variant) => variant.product, { eager: true, cascade: true }),
170
+ typeorm_1.JoinColumn(),
171
+ __metadata("design:type", Array)
172
+ ], Product.prototype, "variants", void 0);
173
+ __decorate([
174
+ typeorm_1.OneToMany(() => Image_1.default, (image) => image.product, { eager: true, cascade: true }),
175
+ typeorm_1.JoinColumn(),
176
+ __metadata("design:type", Array)
177
+ ], Product.prototype, "images", void 0);
178
+ __decorate([
179
+ typeorm_1.Column('varchar', { nullable: true }),
180
+ __metadata("design:type", String)
181
+ ], Product.prototype, "origin", void 0);
182
+ __decorate([
183
+ typeorm_1.Column('varchar', { nullable: true }),
184
+ __metadata("design:type", String)
185
+ ], Product.prototype, "originId", void 0);
186
+ __decorate([
187
+ typeorm_1.Column('varchar', { nullable: true }),
188
+ __metadata("design:type", String)
189
+ ], Product.prototype, "originVariantId", void 0);
190
+ __decorate([
191
+ typeorm_1.OneToOne(() => FlatRate_1.default, { eager: true }),
192
+ typeorm_1.JoinColumn(),
193
+ __metadata("design:type", FlatRate_1.default)
194
+ ], Product.prototype, "flatRate", void 0);
195
+ __decorate([
196
+ typeorm_1.OneToOne(() => ImportedProduct_1.default, (importedProduct) => importedProduct.product),
197
+ __metadata("design:type", ImportedProduct_1.default)
198
+ ], Product.prototype, "importedProduct", void 0);
199
+ __decorate([
200
+ typeorm_1.Column('varchar', { nullable: true, select: false }),
201
+ __metadata("design:type", String)
202
+ ], Product.prototype, "totalOrders", void 0);
203
+ __decorate([
204
+ typeorm_1.Column('varchar', { nullable: true, select: false }),
205
+ __metadata("design:type", String)
206
+ ], Product.prototype, "totalImports", void 0);
207
+ __decorate([
208
+ typeorm_1.Column('integer', { nullable: true, select: false }),
209
+ __metadata("design:type", Number)
210
+ ], Product.prototype, "imported", void 0);
211
+ __decorate([
212
+ typeorm_1.Column('varchar', { nullable: true, select: false }),
213
+ __metadata("design:type", String)
214
+ ], Product.prototype, "shopifyId", void 0);
215
+ __decorate([
216
+ typeorm_1.Column('varchar', { nullable: true, select: false }),
217
+ __metadata("design:type", String)
218
+ ], Product.prototype, "wooId", void 0);
219
+ __decorate([
220
+ typeorm_1.Column('varchar', { nullable: true, select: false }),
221
+ __metadata("design:type", String)
222
+ ], Product.prototype, "userIsSender", void 0);
223
+ __decorate([
224
+ typeorm_1.Column('varchar', { nullable: true, select: false }),
225
+ __metadata("design:type", String)
226
+ ], Product.prototype, "userIsReceiver", void 0);
227
+ __decorate([
228
+ typeorm_1.Column('integer', { default: 0 }),
229
+ __metadata("design:type", Number)
230
+ ], Product.prototype, "rate", void 0);
231
+ __decorate([
232
+ typeorm_1.Column('boolean', { default: false }),
233
+ __metadata("design:type", Boolean)
234
+ ], Product.prototype, "migrated", void 0);
235
+ __decorate([
236
+ typeorm_1.Column('boolean', { default: false }),
237
+ __metadata("design:type", Boolean)
238
+ ], Product.prototype, "active", void 0);
239
+ __decorate([
240
+ typeorm_1.OneToMany(() => ProductShipping_1.default, (productShipping) => productShipping.product, {
241
+ cascade: true,
242
+ }),
243
+ typeorm_1.JoinColumn(),
244
+ __metadata("design:type", Array)
245
+ ], Product.prototype, "productShipping", void 0);
246
+ __decorate([
247
+ typeorm_1.OneToMany(() => CustomProduct_1.CustomProduct, (customProduct) => customProduct.product, { onDelete: 'CASCADE' }),
248
+ typeorm_1.JoinColumn(),
249
+ __metadata("design:type", CustomProduct_1.CustomProduct)
250
+ ], Product.prototype, "customProduct", void 0);
251
+ __decorate([
252
+ typeorm_1.OneToMany(() => ProductAttribute_1.default, (productAttribute) => productAttribute.product, { cascade: true }),
253
+ typeorm_1.JoinColumn(),
254
+ __metadata("design:type", Array)
255
+ ], Product.prototype, "productAttribute", void 0);
256
+ __decorate([
257
+ typeorm_1.Column('boolean', { default: false }),
258
+ __metadata("design:type", Boolean)
259
+ ], Product.prototype, "testOrigen", void 0);
260
+ __decorate([
261
+ typeorm_1.Column('boolean', { default: false }),
262
+ __metadata("design:type", Boolean)
263
+ ], Product.prototype, "demo", void 0);
264
+ __decorate([
265
+ typeorm_1.AfterLoad(),
266
+ __metadata("design:type", Function),
267
+ __metadata("design:paramtypes", []),
268
+ __metadata("design:returntype", void 0)
269
+ ], Product.prototype, "convertNumerics", null);
270
+ Product = Product_1 = __decorate([
271
+ typeorm_1.Entity()
272
+ ], Product);
273
+ exports.Product = Product;
274
+ //# sourceMappingURL=Product.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Product.entity.js","sourceRoot":"","sources":["../../src/entity/Product.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAaiB;AACjB,kDAA0B;AAC1B,gEAAwC;AACxC,wDAAgC;AAChC,kEAA0C;AAC1C,sDAA8B;AAC9B,oDAA4B;AAC5B,wDAAgC;AAChC,0DAAkC;AAClC,wEAAgD;AAChD,2CAAwC;AACxC,qDAAoD;AACpD,iDAAuC;AAC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AAM,EAAE;GACI,OAAO,CA0LnB;AA1LY,0BAAO"}
@@ -0,0 +1,9 @@
1
+ import Attribute from './Attribute';
2
+ import AuditedModel from './AuditedModel';
3
+ import { Product } from './Product.entity';
4
+ export default class ProductAttribute extends AuditedModel {
5
+ id: number;
6
+ deletedAt: Date;
7
+ attribute: Attribute;
8
+ product: Product;
9
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const typeorm_1 = require("typeorm");
16
+ const Attribute_1 = __importDefault(require("./Attribute"));
17
+ const AuditedModel_1 = __importDefault(require("./AuditedModel"));
18
+ const Product_entity_1 = require("./Product.entity");
19
+ let ProductAttribute = class ProductAttribute extends AuditedModel_1.default {
20
+ };
21
+ __decorate([
22
+ typeorm_1.PrimaryGeneratedColumn(),
23
+ __metadata("design:type", Number)
24
+ ], ProductAttribute.prototype, "id", void 0);
25
+ __decorate([
26
+ typeorm_1.DeleteDateColumn(),
27
+ __metadata("design:type", Date)
28
+ ], ProductAttribute.prototype, "deletedAt", void 0);
29
+ __decorate([
30
+ typeorm_1.ManyToOne(() => Attribute_1.default, (attribute) => attribute.productAttribute, {
31
+ eager: true,
32
+ onDelete: 'CASCADE',
33
+ }),
34
+ typeorm_1.JoinColumn(),
35
+ __metadata("design:type", Attribute_1.default)
36
+ ], ProductAttribute.prototype, "attribute", void 0);
37
+ __decorate([
38
+ typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.productAttribute, {
39
+ eager: true,
40
+ onDelete: 'CASCADE',
41
+ }),
42
+ typeorm_1.JoinColumn(),
43
+ __metadata("design:type", Product_entity_1.Product)
44
+ ], ProductAttribute.prototype, "product", void 0);
45
+ ProductAttribute = __decorate([
46
+ typeorm_1.Entity()
47
+ ], ProductAttribute);
48
+ exports.default = ProductAttribute;
49
+ //# sourceMappingURL=ProductAttribute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductAttribute.js","sourceRoot":"","sources":["../../src/entity/ProductAttribute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAkG;AAClG,4DAAoC;AACpC,kEAA0C;AAC1C,qDAA2C;AAG3C,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,sBAAY;CAoBzD,CAAA;AAlBC;IADC,gCAAsB,EAAE;;4CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;mDAAC;AAOhB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,mBAAS,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,gBAAgB,EAAE;QAChF,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACF,mBAAS;mDAAC;AAOrB;IALC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE;QACxE,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;iDAAC;AAnBE,gBAAgB;IADpC,gBAAM,EAAE;GACY,gBAAgB,CAoBpC;kBApBoB,gBAAgB"}
@@ -0,0 +1,9 @@
1
+ import AuditedModel from './AuditedModel';
2
+ import { Product } from './Product.entity';
3
+ import Category from './Category';
4
+ export default class ProductCategory extends AuditedModel {
5
+ id: number;
6
+ deletedAt: Date;
7
+ product: Product;
8
+ category: Category;
9
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const typeorm_1 = require("typeorm");
16
+ const AuditedModel_1 = __importDefault(require("./AuditedModel"));
17
+ const Product_entity_1 = require("./Product.entity");
18
+ const Category_1 = __importDefault(require("./Category"));
19
+ let ProductCategory = class ProductCategory extends AuditedModel_1.default {
20
+ };
21
+ __decorate([
22
+ typeorm_1.PrimaryGeneratedColumn(),
23
+ __metadata("design:type", Number)
24
+ ], ProductCategory.prototype, "id", void 0);
25
+ __decorate([
26
+ typeorm_1.DeleteDateColumn(),
27
+ __metadata("design:type", Date)
28
+ ], ProductCategory.prototype, "deletedAt", void 0);
29
+ __decorate([
30
+ typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.id, {
31
+ eager: false,
32
+ }),
33
+ typeorm_1.JoinColumn(),
34
+ __metadata("design:type", Product_entity_1.Product)
35
+ ], ProductCategory.prototype, "product", void 0);
36
+ __decorate([
37
+ typeorm_1.ManyToOne(() => Category_1.default, (category) => category.id, {
38
+ eager: false,
39
+ }),
40
+ typeorm_1.JoinColumn(),
41
+ __metadata("design:type", Category_1.default)
42
+ ], ProductCategory.prototype, "category", void 0);
43
+ ProductCategory = __decorate([
44
+ typeorm_1.Entity()
45
+ ], ProductCategory);
46
+ exports.default = ProductCategory;
47
+ //# sourceMappingURL=ProductCategory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductCategory.js","sourceRoot":"","sources":["../../src/entity/ProductCategory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAkG;AAClG,kEAA0C;AAC1C,qDAA2C;AAC3C,0DAAkC;AAGlC,IAAqB,eAAe,GAApC,MAAqB,eAAgB,SAAQ,sBAAY;CAkBxD,CAAA;AAhBC;IADC,gCAAsB,EAAE;;2CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;kDAAC;AAMhB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE;QAC1D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACJ,wBAAO;gDAAC;AAMjB;IAJC,mBAAS,CAAC,GAAG,EAAE,CAAC,kBAAQ,EAAE,CAAC,QAAkB,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;QAC9D,KAAK,EAAE,KAAK;KACb,CAAC;IACD,oBAAU,EAAE;8BACH,kBAAQ;iDAAC;AAjBA,eAAe;IADnC,gBAAM,EAAE;GACY,eAAe,CAkBnC;kBAlBoB,eAAe"}
@@ -0,0 +1,29 @@
1
+ import AuditedModel from './AuditedModel';
2
+ import { Product } from './Product.entity';
3
+ import { Price } from './Price.entity';
4
+ export declare enum _type {
5
+ downloadable = 1,
6
+ sample = 2,
7
+ link = 3
8
+ }
9
+ export declare enum _shareable {
10
+ yes = 1,
11
+ no = 2,
12
+ useConfig = 3
13
+ }
14
+ export default class ProductDigital extends AuditedModel {
15
+ id: number;
16
+ deletedAt: Date;
17
+ file_url: string;
18
+ file_url_reachu: string;
19
+ file_size: number;
20
+ shareable: _shareable | null;
21
+ type: _type | null;
22
+ position: number;
23
+ productDigital: ProductDigital;
24
+ price: Price;
25
+ donwload_limit: number;
26
+ expiration_date: Date;
27
+ product: Product;
28
+ name: string;
29
+ }
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ var ProductDigital_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports._shareable = exports._type = void 0;
17
+ const typeorm_1 = require("typeorm");
18
+ const AuditedModel_1 = __importDefault(require("./AuditedModel"));
19
+ const Product_entity_1 = require("./Product.entity");
20
+ const Price_entity_1 = require("./Price.entity");
21
+ var _type;
22
+ (function (_type) {
23
+ _type[_type["downloadable"] = 1] = "downloadable";
24
+ _type[_type["sample"] = 2] = "sample";
25
+ _type[_type["link"] = 3] = "link";
26
+ })(_type = exports._type || (exports._type = {}));
27
+ var _shareable;
28
+ (function (_shareable) {
29
+ _shareable[_shareable["yes"] = 1] = "yes";
30
+ _shareable[_shareable["no"] = 2] = "no";
31
+ _shareable[_shareable["useConfig"] = 3] = "useConfig";
32
+ })(_shareable = exports._shareable || (exports._shareable = {}));
33
+ let ProductDigital = ProductDigital_1 = class ProductDigital extends AuditedModel_1.default {
34
+ };
35
+ __decorate([
36
+ typeorm_1.PrimaryGeneratedColumn(),
37
+ __metadata("design:type", Number)
38
+ ], ProductDigital.prototype, "id", void 0);
39
+ __decorate([
40
+ typeorm_1.DeleteDateColumn(),
41
+ __metadata("design:type", Date)
42
+ ], ProductDigital.prototype, "deletedAt", void 0);
43
+ __decorate([
44
+ typeorm_1.Column('text', { nullable: false }),
45
+ __metadata("design:type", String)
46
+ ], ProductDigital.prototype, "file_url", void 0);
47
+ __decorate([
48
+ typeorm_1.Column('text', { nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], ProductDigital.prototype, "file_url_reachu", void 0);
51
+ __decorate([
52
+ typeorm_1.Column('integer', { nullable: true }),
53
+ __metadata("design:type", Number)
54
+ ], ProductDigital.prototype, "file_size", void 0);
55
+ __decorate([
56
+ typeorm_1.Column('integer', { nullable: true }),
57
+ __metadata("design:type", Number)
58
+ ], ProductDigital.prototype, "shareable", void 0);
59
+ __decorate([
60
+ typeorm_1.Column('integer', { nullable: true }),
61
+ __metadata("design:type", Number)
62
+ ], ProductDigital.prototype, "type", void 0);
63
+ __decorate([
64
+ typeorm_1.Column('integer', { nullable: true }),
65
+ __metadata("design:type", Number)
66
+ ], ProductDigital.prototype, "position", void 0);
67
+ __decorate([
68
+ typeorm_1.OneToOne(() => ProductDigital_1, (productDigital) => productDigital.id, {
69
+ eager: false,
70
+ nullable: true,
71
+ }),
72
+ typeorm_1.JoinColumn(),
73
+ __metadata("design:type", ProductDigital)
74
+ ], ProductDigital.prototype, "productDigital", void 0);
75
+ __decorate([
76
+ typeorm_1.Column(() => Price_entity_1.Price, { prefix: 'price_' }),
77
+ __metadata("design:type", Price_entity_1.Price)
78
+ ], ProductDigital.prototype, "price", void 0);
79
+ __decorate([
80
+ typeorm_1.Column('integer', { nullable: true }),
81
+ __metadata("design:type", Number)
82
+ ], ProductDigital.prototype, "donwload_limit", void 0);
83
+ __decorate([
84
+ typeorm_1.Column('datetime', { nullable: true }),
85
+ __metadata("design:type", Date)
86
+ ], ProductDigital.prototype, "expiration_date", void 0);
87
+ __decorate([
88
+ typeorm_1.ManyToOne(() => Product_entity_1.Product, (product) => product.id, {
89
+ eager: false,
90
+ }),
91
+ typeorm_1.JoinColumn(),
92
+ __metadata("design:type", Product_entity_1.Product)
93
+ ], ProductDigital.prototype, "product", void 0);
94
+ __decorate([
95
+ typeorm_1.Column('text', { nullable: false }),
96
+ __metadata("design:type", String)
97
+ ], ProductDigital.prototype, "name", void 0);
98
+ ProductDigital = ProductDigital_1 = __decorate([
99
+ typeorm_1.Entity()
100
+ ], ProductDigital);
101
+ exports.default = ProductDigital;
102
+ //# sourceMappingURL=ProductDigital.js.map