cloudcommerce 0.14.0 → 0.15.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.
Files changed (383) hide show
  1. package/.github/renovate.json +20 -3
  2. package/.github/workflows/{e2e-tests.yml → test-e2e.yml} +28 -19
  3. package/.vscode/settings.json +6 -0
  4. package/CHANGELOG.md +99 -0
  5. package/action.yml +74 -2
  6. package/ecomplus-stores/monocard/README.md +1 -1
  7. package/ecomplus-stores/monocard/README.pt-BR.md +1 -1
  8. package/ecomplus-stores/monocard/functions/ssr/tailwind.config.cjs +2 -3
  9. package/ecomplus-stores/monocard/functions/ssr/uno.config.cjs +3 -3
  10. package/ecomplus-stores/tia-sonia/README.md +1 -1
  11. package/ecomplus-stores/tia-sonia/README.pt-BR.md +1 -1
  12. package/ecomplus-stores/tia-sonia/functions/ssr/tailwind.config.cjs +2 -3
  13. package/ecomplus-stores/tia-sonia/functions/ssr/uno.config.cjs +3 -3
  14. package/package.json +14 -14
  15. package/packages/api/lib/api.d.ts +13 -12
  16. package/packages/api/lib/api.js +51 -29
  17. package/packages/api/lib/api.js.map +1 -1
  18. package/packages/api/package.json +3 -3
  19. package/packages/api/src/api.ts +52 -22
  20. package/packages/api/tests/index.test.ts +18 -3
  21. package/packages/api/{src/types → types}/brands.d.ts +1 -1
  22. package/packages/api/{lib/types → types}/carts.d.ts +5 -5
  23. package/packages/api/{src/types → types}/categories.d.ts +2 -2
  24. package/packages/api/{src/types → types}/collections.d.ts +2 -2
  25. package/packages/api/{src/types → types}/customers.d.ts +1 -1
  26. package/packages/api/{src/types → types}/grids.d.ts +1 -1
  27. package/packages/api/{lib/types → types}/orders.d.ts +13 -13
  28. package/packages/api/{lib/types → types}/products.d.ts +10 -10
  29. package/packages/api/{src/types.ts → types.d.ts} +254 -31
  30. package/packages/api/types.ts +1 -1
  31. package/packages/apps/affilate-program/CHANGELOG.md +1 -0
  32. package/packages/apps/affilate-program/README.md +1 -0
  33. package/packages/apps/affilate-program/lib/affilate-program.js +9 -0
  34. package/packages/apps/affilate-program/lib/affilate-program.js.map +1 -0
  35. package/packages/apps/affilate-program/lib/events-to-affilate-program.js +154 -0
  36. package/packages/apps/affilate-program/lib/events-to-affilate-program.js.map +1 -0
  37. package/packages/apps/affilate-program/lib/index.js +2 -0
  38. package/packages/apps/affilate-program/lib/index.js.map +1 -0
  39. package/packages/apps/affilate-program/package.json +30 -0
  40. package/packages/apps/affilate-program/src/affilate-program.ts +14 -0
  41. package/packages/apps/affilate-program/src/events-to-affilate-program.ts +184 -0
  42. package/packages/apps/affilate-program/src/index.ts +1 -0
  43. package/packages/apps/affilate-program/tsconfig.json +3 -0
  44. package/packages/apps/correios/package.json +2 -2
  45. package/packages/apps/custom-payment/lib/custom-payment-create-transaction.d.ts +4 -0
  46. package/packages/apps/custom-payment/lib/custom-payment.d.ts +4 -0
  47. package/packages/apps/custom-payment/package.json +1 -1
  48. package/packages/apps/custom-shipping/package.json +1 -1
  49. package/packages/apps/datafrete/package.json +4 -4
  50. package/packages/apps/discounts/lib-mjs/apply-discount.mjs +27 -2
  51. package/packages/apps/discounts/lib-mjs/helpers.mjs +4 -2
  52. package/packages/apps/discounts/package.json +2 -2
  53. package/packages/apps/emails/lib/functios-lib/utils.js.map +1 -1
  54. package/packages/apps/emails/package.json +3 -3
  55. package/packages/apps/emails/src/functios-lib/utils.ts +2 -1
  56. package/packages/apps/fb-conversions/lib/fb-conversions-events.js +20 -6
  57. package/packages/apps/fb-conversions/lib/fb-conversions-events.js.map +1 -1
  58. package/packages/apps/fb-conversions/package.json +3 -3
  59. package/packages/apps/fb-conversions/src/fb-conversions-events.ts +21 -6
  60. package/packages/apps/flash-courier/CHANGELOG.md +1 -0
  61. package/packages/apps/flash-courier/README.md +1 -0
  62. package/packages/apps/flash-courier/events.js +1 -0
  63. package/packages/apps/flash-courier/lib/flash-courier-events.d.ts +5 -0
  64. package/packages/apps/flash-courier/lib/flash-courier-events.js +14 -0
  65. package/packages/apps/flash-courier/lib/flash-courier-events.js.map +1 -0
  66. package/packages/apps/flash-courier/lib/flash-courier.d.ts +2 -0
  67. package/packages/apps/flash-courier/lib/flash-courier.js +6 -0
  68. package/packages/apps/flash-courier/lib/flash-courier.js.map +1 -0
  69. package/packages/apps/flash-courier/lib/index.d.ts +1 -0
  70. package/packages/apps/flash-courier/lib/index.js +2 -0
  71. package/packages/apps/flash-courier/lib/index.js.map +1 -0
  72. package/packages/apps/flash-courier/lib-mjs/calculate-flash-courier.mjs +246 -0
  73. package/packages/apps/flash-courier/lib-mjs/update-tracking.mjs +176 -0
  74. package/packages/apps/flash-courier/package.json +34 -0
  75. package/packages/apps/flash-courier/src/flash-courier-events.ts +13 -0
  76. package/packages/apps/flash-courier/src/flash-courier.ts +7 -0
  77. package/packages/apps/flash-courier/src/index.ts +1 -0
  78. package/packages/apps/flash-courier/tsconfig.json +6 -0
  79. package/packages/apps/frenet/lib/functions-lib/database.d.ts +4 -3
  80. package/packages/apps/frenet/lib/functions-lib/database.js.map +1 -1
  81. package/packages/apps/frenet/lib/functions-lib/update-fulfillments.d.ts +3 -2
  82. package/packages/apps/frenet/lib/functions-lib/update-fulfillments.js.map +1 -1
  83. package/packages/apps/frenet/lib-mjs/calculate-frenet.mjs +13 -6
  84. package/packages/apps/frenet/package.json +3 -3
  85. package/packages/apps/frenet/src/functions-lib/database.ts +4 -3
  86. package/packages/apps/frenet/src/functions-lib/update-fulfillments.ts +2 -1
  87. package/packages/apps/galaxpay/lib/functions-lib/all-parses.js +1 -1
  88. package/packages/apps/galaxpay/lib/functions-lib/all-parses.js.map +1 -1
  89. package/packages/apps/galaxpay/lib/functions-lib/ecom/events-to-galaxpay.js +18 -2
  90. package/packages/apps/galaxpay/lib/functions-lib/ecom/events-to-galaxpay.js.map +1 -1
  91. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/auth/create-access.d.ts +2 -2
  92. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/handle-plans.d.ts +1 -1
  93. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/handle-plans.js.map +1 -1
  94. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/update-subscription.js +19 -2
  95. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/update-subscription.js.map +1 -1
  96. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/webhook.js +18 -2
  97. package/packages/apps/galaxpay/lib/functions-lib/galaxpay/webhook.js.map +1 -1
  98. package/packages/apps/galaxpay/lib/functions-lib/utils.js +3 -3
  99. package/packages/apps/galaxpay/lib/functions-lib/utils.js.map +1 -1
  100. package/packages/apps/galaxpay/lib/galaxpay-create-transaction.d.ts +4 -0
  101. package/packages/apps/galaxpay/lib/galaxpay-create-transaction.js +19 -3
  102. package/packages/apps/galaxpay/lib/galaxpay-create-transaction.js.map +1 -1
  103. package/packages/apps/galaxpay/lib/galaxpay-list-payments.js +17 -1
  104. package/packages/apps/galaxpay/lib/galaxpay-list-payments.js.map +1 -1
  105. package/packages/apps/galaxpay/lib/galaxpay.d.ts +4 -0
  106. package/packages/apps/galaxpay/package.json +3 -3
  107. package/packages/apps/galaxpay/src/functions-lib/all-parses.ts +1 -1
  108. package/packages/apps/galaxpay/src/functions-lib/ecom/events-to-galaxpay.ts +21 -2
  109. package/packages/apps/galaxpay/src/functions-lib/galaxpay/auth/create-access.ts +2 -2
  110. package/packages/apps/galaxpay/src/functions-lib/galaxpay/handle-plans.ts +1 -2
  111. package/packages/apps/galaxpay/src/functions-lib/galaxpay/update-subscription.ts +21 -2
  112. package/packages/apps/galaxpay/src/functions-lib/galaxpay/webhook.ts +23 -5
  113. package/packages/apps/galaxpay/src/functions-lib/utils.ts +3 -3
  114. package/packages/apps/galaxpay/src/galaxpay-create-transaction.ts +19 -2
  115. package/packages/apps/galaxpay/src/galaxpay-list-payments.ts +19 -1
  116. package/packages/apps/google-analytics/lib/google-analytics-events.js +20 -4
  117. package/packages/apps/google-analytics/lib/google-analytics-events.js.map +1 -1
  118. package/packages/apps/google-analytics/package.json +3 -3
  119. package/packages/apps/google-analytics/src/google-analytics-events.ts +21 -4
  120. package/packages/apps/infinitepay/lib/functions-lib/add-installments.d.ts +1 -1
  121. package/packages/apps/infinitepay/lib/functions-lib/ip-auth/create-access.d.ts +2 -2
  122. package/packages/apps/infinitepay/lib/functions-lib/ip-auth/create-access.js +12 -8
  123. package/packages/apps/infinitepay/lib/functions-lib/ip-auth/create-access.js.map +1 -1
  124. package/packages/apps/infinitepay/lib/functions-lib/utils.js +3 -3
  125. package/packages/apps/infinitepay/lib/functions-lib/utils.js.map +1 -1
  126. package/packages/apps/infinitepay/lib/infinitepay.d.ts +4 -0
  127. package/packages/apps/infinitepay/lib/ip-create-transaction.d.ts +4 -0
  128. package/packages/apps/infinitepay/lib/ip-create-transaction.js +18 -2
  129. package/packages/apps/infinitepay/lib/ip-create-transaction.js.map +1 -1
  130. package/packages/apps/infinitepay/lib/ip-list-payments.js +19 -3
  131. package/packages/apps/infinitepay/lib/ip-list-payments.js.map +1 -1
  132. package/packages/apps/infinitepay/lib/ip-webhook.js.map +1 -1
  133. package/packages/apps/infinitepay/package.json +3 -3
  134. package/packages/apps/infinitepay/src/functions-lib/add-installments.ts +1 -1
  135. package/packages/apps/infinitepay/src/functions-lib/ip-auth/create-access.ts +14 -10
  136. package/packages/apps/infinitepay/src/functions-lib/utils.ts +3 -3
  137. package/packages/apps/infinitepay/src/ip-create-transaction.ts +20 -2
  138. package/packages/apps/infinitepay/src/ip-list-payments.ts +21 -3
  139. package/packages/apps/infinitepay/src/ip-webhook.ts +4 -5
  140. package/packages/apps/jadlog/lib-mjs/calculate-jadlog.mjs +19 -6
  141. package/packages/apps/jadlog/package.json +1 -1
  142. package/packages/apps/loyalty-points/lib/functions-lib/handle-loyalty-points-event.js.map +1 -1
  143. package/packages/apps/loyalty-points/lib/loyalty-create-transaction.d.ts +4 -0
  144. package/packages/apps/loyalty-points/lib/loyalty-create-transaction.js.map +1 -1
  145. package/packages/apps/loyalty-points/lib/loyalty-points.d.ts +4 -0
  146. package/packages/apps/loyalty-points/package.json +1 -1
  147. package/packages/apps/loyalty-points/src/functions-lib/handle-loyalty-points-event.ts +2 -2
  148. package/packages/apps/loyalty-points/src/loyalty-create-transaction.ts +4 -3
  149. package/packages/apps/melhor-envio/lib/functions-lib/events-to-melhor-envio.js +18 -14
  150. package/packages/apps/melhor-envio/lib/functions-lib/events-to-melhor-envio.js.map +1 -1
  151. package/packages/apps/melhor-envio/lib-mjs/calculate-melhor-envio.mjs +21 -15
  152. package/packages/apps/melhor-envio/package.json +3 -3
  153. package/packages/apps/melhor-envio/src/functions-lib/events-to-melhor-envio.ts +34 -22
  154. package/packages/apps/mercadopago/lib/mercadopago.d.ts +4 -0
  155. package/packages/apps/mercadopago/lib/mp-create-transaction.d.ts +4 -0
  156. package/packages/apps/mercadopago/lib/mp-create-transaction.js +14 -1
  157. package/packages/apps/mercadopago/lib/mp-create-transaction.js.map +1 -1
  158. package/packages/apps/mercadopago/lib/mp-list-payments.js +16 -7
  159. package/packages/apps/mercadopago/lib/mp-list-payments.js.map +1 -1
  160. package/packages/apps/mercadopago/lib/mp-webhook.js +10 -3
  161. package/packages/apps/mercadopago/lib/mp-webhook.js.map +1 -1
  162. package/packages/apps/mercadopago/package.json +3 -3
  163. package/packages/apps/mercadopago/src/mp-create-transaction.ts +15 -1
  164. package/packages/apps/mercadopago/src/mp-list-payments.ts +17 -7
  165. package/packages/apps/mercadopago/src/mp-webhook.ts +11 -3
  166. package/packages/apps/pagarme/assets/onload-expression.js +22 -8
  167. package/packages/apps/pagarme/assets/onload-expression.min.js +1 -1
  168. package/packages/apps/pagarme/lib/functions-lib/add-installments.d.ts +3 -3
  169. package/packages/apps/pagarme/lib/functions-lib/add-installments.js +5 -1
  170. package/packages/apps/pagarme/lib/functions-lib/add-installments.js.map +1 -1
  171. package/packages/apps/pagarme/lib/pagarme-create-transaction.d.ts +4 -0
  172. package/packages/apps/pagarme/lib/pagarme-create-transaction.js +27 -2
  173. package/packages/apps/pagarme/lib/pagarme-create-transaction.js.map +1 -1
  174. package/packages/apps/pagarme/lib/pagarme-list-payments.js +28 -6
  175. package/packages/apps/pagarme/lib/pagarme-list-payments.js.map +1 -1
  176. package/packages/apps/pagarme/lib/pagarme-webhook.js +10 -2
  177. package/packages/apps/pagarme/lib/pagarme-webhook.js.map +1 -1
  178. package/packages/apps/pagarme/lib/pagarme.d.ts +4 -0
  179. package/packages/apps/pagarme/package.json +3 -3
  180. package/packages/apps/pagarme/src/functions-lib/add-installments.ts +8 -2
  181. package/packages/apps/pagarme/src/pagarme-create-transaction.ts +28 -2
  182. package/packages/apps/pagarme/src/pagarme-list-payments.ts +37 -6
  183. package/packages/apps/pagarme/src/pagarme-webhook.ts +11 -2
  184. package/packages/apps/paghiper/lib/functions-lib/handle-webhook.js +11 -3
  185. package/packages/apps/paghiper/lib/functions-lib/handle-webhook.js.map +1 -1
  186. package/packages/apps/paghiper/lib/paghiper-create-transaction.d.ts +4 -0
  187. package/packages/apps/paghiper/lib/paghiper-create-transaction.js +9 -1
  188. package/packages/apps/paghiper/lib/paghiper-create-transaction.js.map +1 -1
  189. package/packages/apps/paghiper/lib/paghiper-list-payments.js +11 -4
  190. package/packages/apps/paghiper/lib/paghiper-list-payments.js.map +1 -1
  191. package/packages/apps/paghiper/lib/paghiper.d.ts +4 -0
  192. package/packages/apps/paghiper/package.json +3 -3
  193. package/packages/apps/paghiper/src/functions-lib/handle-webhook.ts +13 -4
  194. package/packages/apps/paghiper/src/paghiper-create-transaction.ts +9 -1
  195. package/packages/apps/paghiper/src/paghiper-list-payments.ts +15 -8
  196. package/packages/apps/pix/lib/functions-lib/get-certificate.js +3 -3
  197. package/packages/apps/pix/lib/functions-lib/get-certificate.js.map +1 -1
  198. package/packages/apps/pix/lib/pix-create-transaction.d.ts +4 -0
  199. package/packages/apps/pix/lib/pix-create-transaction.js +23 -3
  200. package/packages/apps/pix/lib/pix-create-transaction.js.map +1 -1
  201. package/packages/apps/pix/lib/pix-list-payments.js +23 -1
  202. package/packages/apps/pix/lib/pix-list-payments.js.map +1 -1
  203. package/packages/apps/pix/lib/pix.d.ts +4 -0
  204. package/packages/apps/pix/package.json +3 -3
  205. package/packages/apps/pix/src/functions-lib/get-certificate.ts +3 -3
  206. package/packages/apps/pix/src/pix-create-transaction.ts +26 -3
  207. package/packages/apps/pix/src/pix-list-payments.ts +26 -1
  208. package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js +8 -7
  209. package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js.map +1 -1
  210. package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js +4 -2
  211. package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js.map +1 -1
  212. package/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js.map +1 -1
  213. package/packages/apps/tiny-erp/package.json +4 -4
  214. package/packages/apps/tiny-erp/src/integration/import-order-from-tiny.ts +9 -9
  215. package/packages/apps/tiny-erp/src/integration/import-product-from-tiny.ts +4 -2
  216. package/packages/apps/tiny-erp/src/integration/parsers/product-from-tiny.ts +1 -1
  217. package/packages/apps/webhooks/lib/events-to-webhooks-app.js +12 -8
  218. package/packages/apps/webhooks/lib/events-to-webhooks-app.js.map +1 -1
  219. package/packages/apps/webhooks/package.json +3 -3
  220. package/packages/apps/webhooks/src/events-to-webhooks-app.ts +22 -12
  221. package/packages/cli/package.json +1 -1
  222. package/packages/config/lib/config.js +2 -4
  223. package/packages/config/lib/config.js.map +1 -1
  224. package/packages/config/lib/env.js +2 -4
  225. package/packages/config/lib/env.js.map +1 -1
  226. package/packages/config/package.json +1 -1
  227. package/packages/config/src/config.ts +4 -4
  228. package/packages/config/src/env.ts +4 -4
  229. package/packages/emails/package.json +3 -3
  230. package/packages/emails/tests/sendgrid.test.ts +2 -2
  231. package/packages/emails/tests/smtp.test.ts +2 -2
  232. package/packages/events/lib/firebase.js +4 -0
  233. package/packages/events/lib/firebase.js.map +1 -1
  234. package/packages/events/package.json +5 -3
  235. package/packages/events/src/firebase.ts +4 -0
  236. package/packages/feeds/lib/firebase.js +3 -3
  237. package/packages/feeds/lib/firebase.js.map +1 -1
  238. package/packages/feeds/package.json +2 -2
  239. package/packages/feeds/src/firebase.ts +5 -3
  240. package/packages/firebase/lib/config.d.ts +11 -1
  241. package/packages/firebase/lib/config.js +12 -0
  242. package/packages/firebase/lib/config.js.map +1 -1
  243. package/packages/firebase/lib/helpers/update-app-data.d.ts +1 -1
  244. package/packages/firebase/package.json +4 -4
  245. package/packages/firebase/src/config.ts +14 -1
  246. package/packages/i18n/package.json +1 -1
  247. package/packages/modules/lib/firebase/call-app-module.js +5 -0
  248. package/packages/modules/lib/firebase/call-app-module.js.map +1 -1
  249. package/packages/modules/lib/firebase/checkout.js.map +1 -1
  250. package/packages/modules/lib/firebase/functions-checkout/fix-items.js.map +1 -1
  251. package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js.map +1 -1
  252. package/packages/modules/lib/firebase/functions-checkout/new-order.js.map +1 -1
  253. package/packages/modules/lib/firebase/functions-checkout/request-to-module.js +1 -1
  254. package/packages/modules/lib/firebase/functions-checkout/request-to-module.js.map +1 -1
  255. package/packages/modules/lib/firebase/functions-checkout/utils.js +1 -1
  256. package/packages/modules/lib/firebase/functions-checkout/utils.js.map +1 -1
  257. package/packages/modules/package.json +6 -5
  258. package/packages/modules/schemas/@checkout.cjs +5 -0
  259. package/packages/modules/schemas/apply_discount.cjs +6 -0
  260. package/packages/modules/schemas/create_transaction.cjs +22 -0
  261. package/packages/modules/src/firebase/call-app-module.ts +5 -0
  262. package/packages/modules/src/firebase/checkout.ts +9 -9
  263. package/packages/modules/src/firebase/functions-checkout/fix-items.ts +3 -3
  264. package/packages/modules/src/firebase/functions-checkout/handle-order-transaction.ts +8 -8
  265. package/packages/modules/src/firebase/functions-checkout/new-order.ts +6 -7
  266. package/packages/modules/src/firebase/functions-checkout/request-to-module.ts +2 -4
  267. package/packages/modules/src/firebase/functions-checkout/utils.ts +23 -23
  268. package/packages/modules/src/types/index.d.ts +4 -8
  269. package/packages/modules/tests/modules.test.mjs +1 -1
  270. package/packages/passport/package.json +3 -3
  271. package/packages/ssr/lib/firebase/serve-storefront.js +2 -2
  272. package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
  273. package/packages/ssr/package.json +10 -10
  274. package/packages/ssr/src/firebase/serve-storefront.ts +2 -2
  275. package/packages/storefront/.base.eslintrc.cjs +4 -0
  276. package/packages/storefront/.eslintrc.cjs +4 -1
  277. package/packages/storefront/astro.config.mjs +6 -2
  278. package/packages/storefront/config/{storefront.cms.cjs → storefront.cms.js} +6 -5
  279. package/packages/storefront/{storefront.config.mjs → config/storefront.config.mjs} +5 -5
  280. package/packages/storefront/config/storefront.tailwind.cjs +266 -0
  281. package/packages/storefront/config/storefront.unocss.cjs +139 -0
  282. package/packages/storefront/dist/client/_astro/Carousel.93c2309b.js +1 -0
  283. package/packages/storefront/dist/client/_astro/HeroSlider.c5b673b3.js +1 -0
  284. package/packages/storefront/dist/client/_astro/{PitchBar.94f525f9.js → PitchBar.d0e3362e.js} +1 -1
  285. package/packages/storefront/dist/client/_astro/Prices.51598206.js +1 -0
  286. package/packages/storefront/dist/client/_astro/Prices.5186c09f.js +1 -0
  287. package/packages/storefront/dist/client/_astro/ProductShelf.d90bfc6e.js +1 -0
  288. package/packages/storefront/dist/client/_astro/ShopHeader.06c4c46e.js +4 -0
  289. package/packages/storefront/dist/client/_astro/_...slug_.ab554647.css +1 -0
  290. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.8870d8dc.js +1 -0
  291. package/packages/storefront/dist/client/_astro/api.7f62c1ff.js +1 -0
  292. package/packages/storefront/dist/client/_astro/client.06720904.js +1 -0
  293. package/packages/storefront/dist/client/_astro/{firebase-app.d513d4b8.js → firebase-app.4381f424.js} +17 -4
  294. package/packages/storefront/dist/client/_astro/{format-money.1a95a3b5.js → format-money.3868f219.js} +1 -1
  295. package/packages/storefront/dist/client/_astro/{hoisted.be7b77c7.js → hoisted.6aebc438.js} +1 -1
  296. package/packages/storefront/dist/client/_astro/img.2ae78c70.js +1 -0
  297. package/packages/storefront/dist/client/_astro/index.3de006ba.js +1 -0
  298. package/packages/storefront/dist/client/_astro/{modules-info.bc2146d9.js → modules-info.c65d970c.js} +1 -1
  299. package/packages/storefront/dist/client/_astro/{runtime-dom.esm-bundler.e2053595.js → runtime-dom.esm-bundler.7a95af90.js} +1 -1
  300. package/packages/storefront/dist/client/_astro/{workbox-window.prod.es5.dc90f814.js → workbox-window.prod.es5.a7b12eab.js} +2 -2
  301. package/packages/storefront/dist/client/sw.js +1 -1
  302. package/packages/storefront/dist/client/{workbox-e0d788d4.js → workbox-5e0bf4e4.js} +1 -1
  303. package/packages/storefront/dist/server/_empty-middleware.mjs +3 -0
  304. package/packages/storefront/dist/server/chunks/_...51f243e0.mjs +35 -0
  305. package/packages/storefront/dist/server/chunks/account@_@astro.70d0a2b6.mjs +35 -0
  306. package/packages/storefront/dist/server/chunks/{astro.7ac24846.mjs → astro.c449fda8.mjs} +1479 -1217
  307. package/packages/storefront/dist/server/chunks/endpoint@_@js.58e19bda.mjs +35 -0
  308. package/packages/storefront/dist/server/chunks/fallback@_@astro.6c6e2bf9.mjs +35 -0
  309. package/packages/storefront/dist/server/chunks/index@_@astro.09a10813.mjs +35 -0
  310. package/packages/storefront/dist/server/chunks/index@_@astro.81422b02.mjs +35 -0
  311. package/packages/storefront/dist/server/chunks/pages/{all.a42f9fc6.mjs → _...slug_.astro.5667273a.mjs} +215 -1017
  312. package/packages/storefront/dist/server/chunks/pages/account.astro.72dc24f9.mjs +23 -0
  313. package/packages/storefront/dist/server/chunks/pages/endpoint.js.5d128d9d.mjs +119 -0
  314. package/packages/storefront/dist/server/chunks/pages/fallback.astro.72b8d520.mjs +64 -0
  315. package/packages/storefront/dist/server/chunks/pages/index.astro.e80eea52.mjs +1098 -0
  316. package/packages/storefront/dist/server/entry.mjs +57 -313
  317. package/packages/storefront/dist/server/renderers.mjs +333 -0
  318. package/packages/storefront/package.json +18 -21
  319. package/packages/storefront/scripts/prepare-monorepo.sh +0 -1
  320. package/packages/storefront/server.d.ts +8 -1
  321. package/packages/storefront/src/env.d.ts +0 -1
  322. package/packages/storefront/src/helpers/afetch.ts +2 -2
  323. package/packages/storefront/src/lib/assets/components.css +28 -0
  324. package/packages/storefront/src/lib/components/Carousel.vue +9 -23
  325. package/packages/storefront/src/lib/components/CarouselControl.vue +2 -2
  326. package/packages/storefront/src/lib/components/globals/AImg.vue +4 -7
  327. package/packages/storefront/src/lib/components/globals/ALink.vue +1 -1
  328. package/packages/storefront/src/lib/components/globals/Fade.vue +5 -30
  329. package/packages/storefront/src/lib/composables/use-hero-slider.ts +2 -0
  330. package/packages/storefront/src/lib/composables/use-prices.ts +4 -1
  331. package/packages/storefront/src/lib/composables/use-product-card.ts +104 -0
  332. package/packages/storefront/src/lib/composables/use-product-shelf.ts +91 -0
  333. package/packages/storefront/src/lib/composables/use-shop-header-submenu.ts +2 -0
  334. package/packages/storefront/src/lib/composables/use-sticky-header.ts +2 -0
  335. package/packages/storefront/src/lib/content.d.ts +3 -4
  336. package/packages/storefront/src/lib/layouts/Base.astro +5 -7
  337. package/packages/storefront/src/lib/layouts/BaseBody.astro +4 -8
  338. package/packages/storefront/src/lib/layouts/BaseHead.astro +1 -7
  339. package/packages/storefront/src/lib/layouts/BaseStateJson.astro +11 -18
  340. package/packages/storefront/src/lib/layouts/{sections/use-hero-section.ts → main/use-page-hero.ts} +7 -8
  341. package/packages/storefront/src/lib/layouts/main/use-page-sections.ts +98 -0
  342. package/packages/storefront/src/lib/layouts/use-page-layout.ts +4 -4
  343. package/packages/storefront/src/lib/ssr-context.ts +26 -19
  344. package/packages/storefront/src/lib/state/customer-session.ts +1 -1
  345. package/packages/storefront/tailwind.config.cjs +2 -225
  346. package/packages/storefront/uno.config.cjs +2 -141
  347. package/packages/types/index.ts +5 -1
  348. package/packages/types/modules/@checkout:params.d.ts +4 -0
  349. package/packages/types/modules/apply_discount:params.d.ts +4 -0
  350. package/packages/types/modules/create_transaction:response.d.ts +15 -0
  351. package/packages/types/package.json +1 -1
  352. package/packages/api/lib/types/brands.d.ts +0 -157
  353. package/packages/api/lib/types/categories.d.ts +0 -199
  354. package/packages/api/lib/types/collections.d.ts +0 -159
  355. package/packages/api/lib/types/customers.d.ts +0 -523
  356. package/packages/api/lib/types/grids.d.ts +0 -157
  357. package/packages/api/lib/types.d.ts +0 -132
  358. package/packages/api/lib/types.js +0 -2
  359. package/packages/api/lib/types.js.map +0 -1
  360. package/packages/api/src/types/applications.d.ts +0 -165
  361. package/packages/api/src/types/authentications.d.ts +0 -107
  362. package/packages/api/src/types/carts.d.ts +0 -360
  363. package/packages/api/src/types/orders.d.ts +0 -1720
  364. package/packages/api/src/types/products.d.ts +0 -1424
  365. package/packages/api/src/types/stores.d.ts +0 -123
  366. package/packages/storefront/.astro/types.d.ts +0 -117
  367. package/packages/storefront/config/storefront.cms.mjs +0 -72
  368. package/packages/storefront/dist/client/_astro/Carousel.e137cab2.js +0 -1
  369. package/packages/storefront/dist/client/_astro/HeroSlider.d677b64a.js +0 -1
  370. package/packages/storefront/dist/client/_astro/Prices.b8d4b8e4.js +0 -1
  371. package/packages/storefront/dist/client/_astro/ShopHeader.f12e72f6.js +0 -4
  372. package/packages/storefront/dist/client/_astro/_...slug_.48ea2ee1.css +0 -1
  373. package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.116fec5b.js +0 -1
  374. package/packages/storefront/dist/client/_astro/client.c2102734.js +0 -1
  375. package/packages/storefront/dist/client/_astro/index.1190ddf5.js +0 -1
  376. package/packages/storefront/dist/client/_astro/index.1eaf97c3.css +0 -1
  377. package/packages/storefront/dist/client/_astro/index.e56fc6b3.css +0 -1
  378. package/packages/storefront/dist/client/_astro/server.1dabec03.css +0 -1
  379. package/packages/storefront/src/lib/layouts/use-home-main.ts +0 -16
  380. /package/packages/api/{lib/types → types}/applications.d.ts +0 -0
  381. /package/packages/api/{lib/types → types}/authentications.d.ts +0 -0
  382. /package/packages/api/{lib/types → types}/stores.d.ts +0 -0
  383. /package/packages/storefront/src/lib/assets/{preflight.css → reset.css} +0 -0
@@ -1,523 +0,0 @@
1
- /* tslint:disable */
2
- /**
3
- * This file was automatically generated by json-schema-to-typescript.
4
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
- * and run json-schema-to-typescript to regenerate this file.
6
- */
7
-
8
- /**
9
- * Customer object model
10
- */
11
- export interface Customers {
12
- _id: string & { length: 24 };
13
- created_at: string;
14
- updated_at: string;
15
- store_id: number;
16
- /**
17
- * Whether customer was registered by staff and is trusted
18
- */
19
- staff_signature?: boolean;
20
- /**
21
- * The state of registration, if completed, invited and waiting, or declined by customer
22
- */
23
- state?: 'invited' | 'registered' | 'declined';
24
- /**
25
- * Whether customer account is enabled to make orders
26
- */
27
- enabled?: boolean;
28
- /**
29
- * Whether the customer can sign in to the store with this account
30
- */
31
- login?: boolean;
32
- /**
33
- * Status defined by seller, such as active or blocked
34
- */
35
- status?: string;
36
- /**
37
- * Code to identify the affiliate that referred the customer
38
- */
39
- affiliate_code?: string;
40
- /**
41
- * UTM campaign HTTP parameters associated with this customer's first access
42
- */
43
- utm?: {
44
- /**
45
- * Parameter 'utm_source', the referrer: (e.g. 'google', 'newsletter')
46
- */
47
- source?: string;
48
- /**
49
- * Parameter 'utm_medium', the marketing medium: (e.g. 'cpc', 'banner', 'email')
50
- */
51
- medium?: string;
52
- /**
53
- * Parameter 'utm_campaign', the product, promo code, or slogan (e.g. 'spring_sale')
54
- */
55
- campaign?: string;
56
- /**
57
- * Parameter 'utm_term', identifies the paid keywords
58
- */
59
- term?: string;
60
- /**
61
- * Parameter 'utm_content', used to differentiate ads
62
- */
63
- content?: string;
64
- };
65
- /**
66
- * Providers for OAuth authentication
67
- *
68
- * @maxItems 20
69
- */
70
- oauth_providers?: {
71
- /**
72
- * The provider with which the user authenticated, e.g.: 'facebook'
73
- */
74
- provider: string;
75
- /**
76
- * Unique ID for the user generated by the service provider
77
- */
78
- user_id: string;
79
- }[];
80
- /**
81
- * Customer language two letters code, sometimes with region, e.g.: 'pt_br', 'fr', 'en_us'
82
- */
83
- locale?: string;
84
- /**
85
- * Customer main email address
86
- */
87
- main_email: string;
88
- /**
89
- * Customer email addresses list
90
- *
91
- * @maxItems 20
92
- */
93
- emails?: {
94
- /**
95
- * The actual email address
96
- */
97
- address: string;
98
- /**
99
- * The type of email
100
- */
101
- type?: 'home' | 'personal' | 'work' | 'other';
102
- /**
103
- * States whether or not the email address has been verified
104
- */
105
- verified?: boolean;
106
- }[];
107
- /**
108
- * Indicates whether customer would like to receive email updates from the shop
109
- */
110
- accepts_marketing?: boolean;
111
- /**
112
- * The name of this Customer, suitable for display
113
- */
114
- display_name: string;
115
- /**
116
- * Customer name object
117
- */
118
- name?: {
119
- /**
120
- * The family name of this user, or "last name"
121
- */
122
- family_name?: string;
123
- /**
124
- * The "first name" of this user
125
- */
126
- given_name?: string;
127
- /**
128
- * The middle name(s) of this user
129
- */
130
- middle_name?: string;
131
- };
132
- /**
133
- * Date of customer birth
134
- */
135
- birth_date?: {
136
- /**
137
- * Day of birth
138
- */
139
- day?: number;
140
- /**
141
- * Number of month of birth
142
- */
143
- month?: number;
144
- /**
145
- * Year of birth
146
- */
147
- year?: number;
148
- };
149
- /**
150
- * Customer preferred pronoun
151
- */
152
- pronoun?: 'he' | 'she';
153
- /**
154
- * User profile pictures
155
- *
156
- * @maxItems 20
157
- */
158
- photos?: string[];
159
- /**
160
- * List of customer phone numbers
161
- *
162
- * @maxItems 20
163
- */
164
- phones?: {
165
- /**
166
- * Country calling code (without +), defined by standards E.123 and E.164
167
- */
168
- country_code?: number;
169
- /**
170
- * The actual phone number, digits only
171
- */
172
- number: string;
173
- /**
174
- * The type of phone
175
- */
176
- type?: 'home' | 'personal' | 'work' | 'other';
177
- }[];
178
- /**
179
- * Physical or juridical (company) person
180
- */
181
- registry_type?: 'p' | 'j';
182
- /**
183
- * Country of document origin, an ISO 3166-2 code
184
- */
185
- doc_country?: string;
186
- /**
187
- * Responsible person or organization document number (only numbers)
188
- */
189
- doc_number?: string;
190
- /**
191
- * Municipal or state registration if exists
192
- */
193
- inscription_type?: 'State' | 'Municipal';
194
- /**
195
- * Municipal or state registration number (with characters) if exists
196
- */
197
- inscription_number?: string;
198
- /**
199
- * Registered company name or responsible fullname
200
- */
201
- corporate_name?: string;
202
- /**
203
- * List of customer shipping addresses
204
- *
205
- * @maxItems 40
206
- */
207
- addresses?: {
208
- /**
209
- * ZIP (CEP, postal...) code
210
- */
211
- zip: string;
212
- /**
213
- * Street or public place name
214
- */
215
- street?: string;
216
- /**
217
- * House or building street number
218
- */
219
- number?: number;
220
- /**
221
- * Address complement or second line, such as apartment number
222
- */
223
- complement?: string;
224
- /**
225
- * Borough name
226
- */
227
- borough?: string;
228
- /**
229
- * Some optional other reference for this address
230
- */
231
- near_to?: string;
232
- /**
233
- * Full in line mailing address, should include street, number and borough
234
- */
235
- line_address?: string;
236
- /**
237
- * City name
238
- */
239
- city?: string;
240
- /**
241
- * Country name
242
- */
243
- country?: string;
244
- /**
245
- * An ISO 3166-2 country code
246
- */
247
- country_code?: string;
248
- /**
249
- * Province or state name
250
- */
251
- province?: string;
252
- /**
253
- * The two-letter code for the province or state
254
- */
255
- province_code?: string;
256
- /**
257
- * The name of recipient, generally is the customer's name
258
- */
259
- name?: string;
260
- /**
261
- * The recipient's last name
262
- */
263
- last_name?: string;
264
- /**
265
- * Customer phone number for this mailing address
266
- */
267
- phone?: {
268
- /**
269
- * Country calling code (without +), defined by standards E.123 and E.164
270
- */
271
- country_code?: number;
272
- /**
273
- * The actual phone number, digits only
274
- */
275
- number: string;
276
- };
277
- /**
278
- * Indicates whether this address is the default address for the customer
279
- */
280
- default?: boolean;
281
- }[];
282
- /**
283
- * Products marked as favorites
284
- *
285
- * @maxItems 3000
286
- */
287
- favorites?: string[];
288
- /**
289
- * Last products visited by the customer
290
- *
291
- * @maxItems 100
292
- */
293
- last_visited_products?: string[];
294
- /**
295
- * Last terms searched on shop by the customer
296
- *
297
- * @maxItems 100
298
- */
299
- last_searched_terms?: string[];
300
- /**
301
- * Default currency for the user, designator according to ISO 4217 (3 uppercase letters)
302
- */
303
- currency_id?: string;
304
- /**
305
- * Graphic symbol used as a shorthand for currency's name
306
- */
307
- currency_symbol?: string;
308
- /**
309
- * Total number of orders completed by this customer
310
- */
311
- orders_count?: number;
312
- /**
313
- * The total amount in orders completed by this customer
314
- */
315
- orders_total_value?: number;
316
- /**
317
- * List of customer accumulated loyalty points by program and expiration
318
- *
319
- * @maxItems 1000
320
- */
321
- loyalty_points_entries?: {
322
- /**
323
- * The name of the loyalty points program
324
- */
325
- name?: string;
326
- /**
327
- * Unique identifier, program name using only lowercase, numbers and underscore
328
- */
329
- program_id: string;
330
- /**
331
- * Number of loyalty points earned
332
- */
333
- earned_points?: number;
334
- /**
335
- * Number of active (not yet used) loyalty points
336
- */
337
- active_points: number;
338
- /**
339
- * The ratio of a point when converted to currency
340
- */
341
- ratio?: number;
342
- /**
343
- * Validity of the points entry, until this date the active points can be converted
344
- */
345
- valid_thru?: string;
346
- /**
347
- * Points origin order ID (ObjectID)
348
- */
349
- order_id?: string;
350
- }[];
351
- /**
352
- * The total amount of money that this customer has spent at the store
353
- */
354
- total_spent?: number;
355
- /**
356
- * The total amount in cancelled orders
357
- */
358
- total_cancelled?: number;
359
- /**
360
- * List of customer orders
361
- *
362
- * @maxItems 1000
363
- */
364
- orders?: {
365
- /**
366
- * Order ID (ObjectID)
367
- */
368
- _id: string & { length: 24 };
369
- /**
370
- * When order was saved, date and time in ISO 8601 standard representation
371
- */
372
- created_at?: string;
373
- /**
374
- * Auto incremented order number
375
- */
376
- number?: number;
377
- /**
378
- * Designator of currency according to ISO 4217 (3 uppercase letters)
379
- */
380
- currency_id?: string;
381
- /**
382
- * Graphic symbol used as a shorthand for currency's name
383
- */
384
- currency_symbol?: string;
385
- /**
386
- * Object with sums of values
387
- */
388
- amount?: {
389
- /**
390
- * Order total amount
391
- */
392
- total: number;
393
- /**
394
- * The sum of all items prices
395
- */
396
- subtotal?: number;
397
- /**
398
- * Order freight cost
399
- */
400
- freight?: number;
401
- /**
402
- * Applied discount value
403
- */
404
- discount?: number;
405
- /**
406
- * Value deducted via balance in wallet or loyalty points
407
- */
408
- balance?: number;
409
- /**
410
- * The sum of all the taxes applied to the order
411
- */
412
- tax?: number;
413
- /**
414
- * Sum of optional extra costs applied
415
- */
416
- extra?: number;
417
- };
418
- /**
419
- * Name or summary of order payment method(s)
420
- */
421
- payment_method_label?: string;
422
- /**
423
- * Name of order shipping method(s)
424
- */
425
- shipping_method_label?: string;
426
- }[];
427
- /**
428
- * List of customer saved credit cards
429
- *
430
- * @maxItems 40
431
- */
432
- credit_cards?: {
433
- /**
434
- * Full name of the holder, as it is on the credit card
435
- */
436
- holder_name?: string;
437
- /**
438
- * Issuer identification number (IIN), known as bank identification number (BIN)
439
- */
440
- bin?: number;
441
- /**
442
- * Credit card issuer name, eg.: Visa, American Express, MasterCard
443
- */
444
- company?: string;
445
- /**
446
- * Last digits (up to 4) of credit card number
447
- */
448
- last_digits: string;
449
- /**
450
- * Unique credit card token
451
- */
452
- token: string;
453
- /**
454
- * Payment intermediator
455
- */
456
- intermediator: {
457
- /**
458
- * Gateway name standardized as identification code
459
- */
460
- code: string;
461
- /**
462
- * ID of respective customer account in the intermediator
463
- */
464
- buyer_id?: string;
465
- };
466
- }[];
467
- /**
468
- * List of custom attributes
469
- *
470
- * @maxItems 100
471
- */
472
- metafields?: {
473
- /**
474
- * String to help distinguish who (or which app) created and can use the metafield
475
- */
476
- namespace?: string;
477
- /**
478
- * Field name
479
- */
480
- field?: string;
481
- /**
482
- * Custom property value
483
- */
484
- value: {
485
- [k: string]: unknown;
486
- };
487
- }[];
488
- /**
489
- * List of custom attributes
490
- *
491
- * @maxItems 100
492
- */
493
- hidden_metafields?: {
494
- /**
495
- * String to help distinguish who (or which app) created and can use the metafield
496
- */
497
- namespace?: string;
498
- /**
499
- * Field name
500
- */
501
- field?: string;
502
- /**
503
- * Custom property value
504
- */
505
- value: {
506
- [k: string]: unknown;
507
- };
508
- }[];
509
- /**
510
- * Flags to associate additional info
511
- *
512
- * @maxItems 10
513
- */
514
- flags?: string[];
515
- /**
516
- * Optional notes with additional info about this customer
517
- */
518
- notes?: string;
519
- /**
520
- * Description and notes about this customer, available only for shop administrators
521
- */
522
- staff_notes?: string;
523
- }
@@ -1,157 +0,0 @@
1
- /* tslint:disable */
2
- /**
3
- * This file was automatically generated by json-schema-to-typescript.
4
- * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
- * and run json-schema-to-typescript to regenerate this file.
6
- */
7
-
8
- export interface Grids {
9
- _id: string & { length: 24 };
10
- created_at: string;
11
- updated_at: string;
12
- store_id: number;
13
- /**
14
- * Grid title
15
- */
16
- title: string;
17
- /**
18
- * Text translations for internationalization
19
- */
20
- i18n?: {
21
- /**
22
- * Language specific text fields
23
- *
24
- * This interface was referenced by `undefined`'s JSON-Schema definition
25
- * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
26
- */
27
- [k: string]: {
28
- /**
29
- * Grid title
30
- */
31
- title?: string;
32
- };
33
- };
34
- /**
35
- * Identifier for integrations and syncronizations, generally the grid name normalized
36
- */
37
- grid_id?: string;
38
- /**
39
- * Pre-defined options for this grid, used in specifications, customization and variations
40
- *
41
- * @maxItems 3000
42
- */
43
- options?: {
44
- /**
45
- * Option ID (ObjectID) [auto]
46
- */
47
- _id?: string;
48
- /**
49
- * Option text value displayed for the client
50
- */
51
- text: string;
52
- /**
53
- * Text translations for internationalization
54
- */
55
- i18n?: {
56
- /**
57
- * Language specific text fields
58
- *
59
- * This interface was referenced by `undefined`'s JSON-Schema definition
60
- * via the `patternProperty` "^[a-z]{2}(_[a-z]{2})?$".
61
- */
62
- [k: string]: {
63
- /**
64
- * Option text value displayed for the client
65
- */
66
- text?: string;
67
- };
68
- };
69
- /**
70
- * Default normalized value to use in integrations
71
- */
72
- value?: string;
73
- /**
74
- * Normalized values to use in specific integrations (ID in property)
75
- */
76
- external_values?: {
77
- /**
78
- * Attribute text value
79
- *
80
- * This interface was referenced by `undefined`'s JSON-Schema definition
81
- * via the `patternProperty` "^[a-z0-9_]{2,30}$".
82
- */
83
- [k: string]: string;
84
- };
85
- /**
86
- * Option color palette (if the grid involves colors), starting by main color
87
- *
88
- * @maxItems 6
89
- */
90
- colors?: string[];
91
- /**
92
- * Default price alteration for product with this option for customization or variations
93
- */
94
- add_to_price?: {
95
- /**
96
- * Type of price addition
97
- */
98
- type?: 'percentage' | 'fixed';
99
- /**
100
- * Additional value, could be negative
101
- */
102
- addition: number;
103
- };
104
- }[];
105
- /**
106
- * If this grid accept custom value defined by customer (product customization)
107
- */
108
- custom_value?: boolean;
109
- /**
110
- * If this grid accept customer file attachment
111
- */
112
- attachment?: boolean;
113
- /**
114
- * Default price alteration for product with this grid for customization or variations
115
- */
116
- add_to_price?: {
117
- /**
118
- * Type of price addition
119
- */
120
- type?: 'percentage' | 'fixed';
121
- /**
122
- * Additional value, could be negative
123
- */
124
- addition: number;
125
- };
126
- /**
127
- * List of custom attributes
128
- *
129
- * @maxItems 100
130
- */
131
- metafields?: {
132
- /**
133
- * String to help distinguish who (or which app) created and can use the metafield
134
- */
135
- namespace?: string;
136
- /**
137
- * Field name
138
- */
139
- field?: string;
140
- /**
141
- * Custom property value
142
- */
143
- value: {
144
- [k: string]: unknown;
145
- };
146
- }[];
147
- /**
148
- * Flags to associate additional info
149
- *
150
- * @maxItems 10
151
- */
152
- flags?: string[];
153
- /**
154
- * Optional notes with additional info about this product
155
- */
156
- notes?: string;
157
- }