cloudcommerce 2.0.8 → 2.1.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 (214) hide show
  1. package/.husky/pre-commit +4 -0
  2. package/.vscode/settings.json +7 -2
  3. package/CHANGELOG.md +24 -0
  4. package/LICENSE +21 -0
  5. package/action.yml +43 -3
  6. package/ecomplus-stores/barra-doce/.github/workflows/build-and-deploy.yml +1 -0
  7. package/ecomplus-stores/barra-doce/.husky/pre-commit +4 -0
  8. package/ecomplus-stores/barra-doce/.vscode/settings.json +7 -1
  9. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  10. package/ecomplus-stores/barra-doce/functions/ssr/.staged.eslintrc.cjs +6 -0
  11. package/ecomplus-stores/barra-doce/functions/ssr/package.json +8 -7
  12. package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountMenu.vue +4 -1
  13. package/ecomplus-stores/barra-doce/functions/ssr/src/components/AccountPage.vue +6 -3
  14. package/ecomplus-stores/barra-doce/functions/ssr/src/components/Banner.vue +2 -1
  15. package/ecomplus-stores/barra-doce/functions/ssr/src/components/BlogPosts.vue +8 -2
  16. package/ecomplus-stores/barra-doce/functions/ssr/src/components/Breadcrumbs.vue +4 -1
  17. package/ecomplus-stores/barra-doce/functions/ssr/src/components/CartItem.vue +4 -3
  18. package/ecomplus-stores/barra-doce/functions/ssr/src/components/CartSidebar.vue +1 -1
  19. package/ecomplus-stores/barra-doce/functions/ssr/src/components/CheckoutPage.vue +2 -2
  20. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ContentEntry.vue +1 -1
  21. package/ecomplus-stores/barra-doce/functions/ssr/src/components/FooterStamps.vue +8 -6
  22. package/ecomplus-stores/barra-doce/functions/ssr/src/components/HeroSlider.vue +7 -3
  23. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ImagesGallery.vue +13 -11
  24. package/ecomplus-stores/barra-doce/functions/ssr/src/components/LoginForm.vue +1 -1
  25. package/ecomplus-stores/barra-doce/functions/ssr/src/components/PitchBar.vue +5 -2
  26. package/ecomplus-stores/barra-doce/functions/ssr/src/components/Prices.vue +1 -1
  27. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +13 -13
  28. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductDetails.vue +1 -1
  29. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductShelf.vue +9 -6
  30. package/ecomplus-stores/barra-doce/functions/ssr/src/components/SearchModal.vue +1 -1
  31. package/ecomplus-stores/barra-doce/functions/ssr/src/components/SearchShowcase.vue +8 -9
  32. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopFooter.vue +15 -6
  33. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +11 -15
  34. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeaderMenu.vue +6 -3
  35. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeaderSubmenu.vue +7 -4
  36. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopSidenav.vue +5 -2
  37. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopSidenavCategory.vue +3 -2
  38. package/ecomplus-stores/barra-doce/functions/ssr/src/components/SkuSelector.vue +8 -5
  39. package/ecomplus-stores/barra-doce/functions/ssr/src/layouts/PageFooter.astro +1 -2
  40. package/ecomplus-stores/barra-doce/functions/ssr/src/layouts/PageHeader.astro +2 -1
  41. package/ecomplus-stores/barra-doce/functions/ssr/src/main/Fallback.astro +3 -3
  42. package/ecomplus-stores/barra-doce/functions/ssr/src/main/Main.astro +2 -2
  43. package/ecomplus-stores/barra-doce/functions/ssr/src/pages/[...slug].astro +13 -5
  44. package/ecomplus-stores/barra-doce/functions/ssr/src/scripts/InlineScripts.astro +8 -8
  45. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  46. package/ecomplus-stores/barra-doce/package.json +10 -3
  47. package/ecomplus-stores/barra-doce/tailwind.config.cjs +5 -0
  48. package/ecomplus-stores/tia-sonia/.vscode/settings.json +7 -1
  49. package/package.json +13 -8
  50. package/packages/__skeleton/package.json +1 -1
  51. package/packages/api/lib/api.js +1 -1
  52. package/packages/api/lib/api.js.map +1 -1
  53. package/packages/api/package.json +2 -2
  54. package/packages/api/src/api.ts +1 -1
  55. package/packages/apps/affiliate-program/package.json +2 -2
  56. package/packages/apps/correios/package.json +2 -2
  57. package/packages/apps/custom-payment/package.json +2 -2
  58. package/packages/apps/custom-shipping/package.json +2 -2
  59. package/packages/apps/datafrete/package.json +2 -2
  60. package/packages/apps/discounts/package.json +2 -2
  61. package/packages/apps/emails/package.json +2 -2
  62. package/packages/apps/fb-conversions/package.json +2 -2
  63. package/packages/apps/flash-courier/package.json +2 -2
  64. package/packages/apps/frenet/package.json +2 -2
  65. package/packages/apps/galaxpay/package.json +2 -2
  66. package/packages/apps/google-analytics/package.json +2 -2
  67. package/packages/apps/jadlog/package.json +2 -2
  68. package/packages/apps/loyalty-points/package.json +2 -2
  69. package/packages/apps/mandae/package.json +2 -2
  70. package/packages/apps/melhor-envio/package.json +2 -2
  71. package/packages/apps/mercadopago/package.json +2 -2
  72. package/packages/apps/pagarme/package.json +2 -2
  73. package/packages/apps/pagarme-v5/package.json +2 -2
  74. package/packages/apps/paghiper/package.json +2 -2
  75. package/packages/apps/pix/package.json +2 -2
  76. package/packages/apps/tiny-erp/package.json +2 -2
  77. package/packages/apps/webhooks/package.json +2 -2
  78. package/packages/cli/ci/bunny-config-base.sh +169 -0
  79. package/packages/cli/ci/bunny-prepare-ab.sh +164 -0
  80. package/packages/cli/config/firebase.json +13 -0
  81. package/packages/cli/lib/cli.js +17 -3
  82. package/packages/cli/package.json +3 -2
  83. package/packages/cli/src/cli.ts +17 -7
  84. package/packages/config/package.json +2 -2
  85. package/packages/emails/package.json +2 -2
  86. package/packages/eslint/base.eslintrc.cjs +3 -2
  87. package/packages/eslint/package.json +5 -4
  88. package/packages/eslint/storefront.eslintrc.cjs +17 -2
  89. package/packages/eslint/storefront.staged.eslintrc.cjs +9 -0
  90. package/packages/events/package.json +2 -2
  91. package/packages/feeds/package.json +2 -2
  92. package/packages/firebase/package.json +3 -3
  93. package/packages/i18n/package.json +2 -2
  94. package/packages/modules/package.json +2 -2
  95. package/packages/passport/package.json +2 -2
  96. package/packages/ssr/package.json +6 -6
  97. package/packages/storefront/dist/client/_astro/{AccountPage.sfdU6Ju1.js → AccountPage.9BlGHXT3.js} +1 -1
  98. package/packages/storefront/dist/client/_astro/CartSidebar.55UgTcV0.js +1 -0
  99. package/packages/storefront/dist/client/_astro/{HeroSlider.GWgaYE3A.js → HeroSlider.XZb2xsyV.js} +1 -1
  100. package/packages/storefront/dist/client/_astro/{PitchBar._m4Oyh26.js → PitchBar.Nr7T3S3T.js} +1 -1
  101. package/packages/storefront/dist/client/_astro/{Prices.ij-wiXyI.js → Prices.Ye-m2HTo.js} +1 -1
  102. package/packages/storefront/dist/client/_astro/ProductDetails.ENLKdSz_.js +7 -0
  103. package/packages/storefront/dist/client/_astro/ProductShelf.CNf5JDrU.js +1 -0
  104. package/packages/storefront/dist/client/_astro/ProductShelf.lCBJky3e.js +1 -0
  105. package/packages/storefront/dist/client/_astro/{QuantitySelector.BLGwL_-E.js → QuantitySelector.tumfWDjC.js} +1 -1
  106. package/packages/storefront/dist/client/_astro/{SearchModal.3j8PYOg4.js → SearchModal.4osqtafp.js} +1 -1
  107. package/packages/storefront/dist/client/_astro/{SearchShowcase.na8UFES5.js → SearchShowcase.hg6TWrz3.js} +1 -1
  108. package/packages/storefront/dist/client/_astro/ShopHeader.xLMeJpqV.js +7 -0
  109. package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.zwYIxbLv.js → _plugin-vue_export-helper.SO-0jCqa.js} +2 -2
  110. package/packages/storefront/dist/client/_astro/{_slug_.gHu56-HX.css → _slug_.r344YGqG.css} +1 -1
  111. package/packages/storefront/dist/client/_astro/client.ZhEmw4hZ.js +1 -0
  112. package/packages/storefront/dist/client/_astro/{customer-session.zys3PDaD.js → customer-session.hXdZh5Ii.js} +1 -1
  113. package/packages/storefront/dist/client/_astro/{format-money.85X7Tchr.js → format-money.iK5LGydz.js} +1 -1
  114. package/packages/storefront/dist/client/_astro/{grid-title.tJFKNjnT.js → grid-title.vGKBy72g.js} +1 -1
  115. package/packages/storefront/dist/client/_astro/{hoisted.J3ui9KfA.js → hoisted.HGTzAuTI.js} +1 -1
  116. package/packages/storefront/dist/client/_astro/{hoisted.3l9XzKQq.js → hoisted.J15ErMtK.js} +1 -1
  117. package/packages/storefront/dist/client/_astro/hoisted.KYhwGfsv.js +1 -0
  118. package/packages/storefront/dist/client/_astro/{i18n.vH3oaO8m.js → i18n.Lxnz1oF-.js} +1 -1
  119. package/packages/storefront/dist/client/_astro/{img.PXVYiEi4.js → img.WnsidxCx.js} +1 -1
  120. package/packages/storefront/dist/client/_astro/{index._z3KfWlu.js → index.R7A-Pg5V.js} +1 -1
  121. package/packages/storefront/dist/client/_astro/{index.ZVw4Qnet.js → index.q6KIyKlJ.js} +1 -1
  122. package/packages/storefront/dist/client/_astro/{modules-info.39sWCsAH.js → modules-info.tVRhvxNm.js} +1 -1
  123. package/packages/storefront/dist/client/_astro/name.urFqJ5yn.js +1 -0
  124. package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.XTSAdOlw.js +13 -0
  125. package/packages/storefront/dist/client/_astro/{shopping-cart.bLFDGb3i.js → shopping-cart.ZdSCrjS6.js} +1 -1
  126. package/packages/storefront/dist/client/_astro/{use-analytics.qryUNUh7.js → use-analytics.tCrQbW8O.js} +1 -1
  127. package/packages/storefront/dist/client/_astro/{use-product-card.h3dJsLOD.js → use-product-card.-9TsgDDW.js} +1 -1
  128. package/packages/storefront/dist/client/_astro/use-text-value.XE_A2nDM.js +4 -0
  129. package/packages/storefront/dist/server/chunks/{CartSidebar_8VAKl-jR.mjs → CartSidebar_7UWmGIF6.mjs} +5 -5
  130. package/packages/storefront/dist/server/chunks/{SearchModal_7debttOi.mjs → SearchModal_MNdcYMws.mjs} +4 -4
  131. package/packages/storefront/dist/server/chunks/{_.._D6rq0cLa.mjs → _.._h5R83hoK.mjs} +1 -1
  132. package/packages/storefront/dist/server/chunks/{_page__WXDIwV7g.mjs → _page__lWVlZyRe.mjs} +1 -1
  133. package/packages/storefront/dist/server/chunks/{account_DOT2RzND.mjs → account_jmelxnlw.mjs} +1 -1
  134. package/packages/storefront/dist/server/chunks/astro/{assets-service_gJYJeEDH.mjs → assets-service_xNulQtBO.mjs} +1 -1
  135. package/packages/storefront/dist/server/chunks/{astro_H-6uiAAG.mjs → astro_tggR3S_9.mjs} +2 -2
  136. package/packages/storefront/dist/server/chunks/{index_eXlHIU83.mjs → index_e3ytAL8v.mjs} +1 -1
  137. package/packages/storefront/dist/server/chunks/{node_-eQO2yOn.mjs → node_kUJIRL0c.mjs} +1 -1
  138. package/packages/storefront/dist/server/chunks/pages/{__fI3NeWvy.mjs → __wihn0dYD.mjs} +864 -856
  139. package/packages/storefront/dist/server/chunks/pages/{_page__Piz8geXW.mjs → _page__Sb1eYhpz.mjs} +2 -2
  140. package/packages/storefront/dist/server/chunks/pages/{account_6pD7OYw-.mjs → account_-mULVQUB.mjs} +2 -2
  141. package/packages/storefront/dist/server/chunks/pages/{index_2F5yi6YO.mjs → index_mQXYNYRg.mjs} +4 -4
  142. package/packages/storefront/dist/server/chunks/pages/{node_-Buhxl8v.mjs → node_-qe5LuQh.mjs} +3 -3
  143. package/packages/storefront/dist/server/chunks/pages/{~fallback_okEL1qQ3.mjs → ~fallback_ad_xyGHU.mjs} +4 -4
  144. package/packages/storefront/dist/server/chunks/~fallback_EZqiEAFE.mjs +6 -0
  145. package/packages/storefront/dist/server/entry.mjs +376 -307
  146. package/packages/storefront/dist/server/manifest_RrmXPEuL.mjs +196 -0
  147. package/packages/storefront/dist/server/renderers.mjs +1 -1
  148. package/packages/storefront/package.json +9 -8
  149. package/packages/storefront/src/lib/components/BannerPictures.astro +7 -6
  150. package/packages/storefront/src/lib/components/CarouselControl.vue +2 -2
  151. package/packages/storefront/src/lib/components/ContentClearfix.vue +1 -1
  152. package/packages/storefront/src/lib/components/Drawer.vue +2 -2
  153. package/packages/storefront/src/lib/components/Picture.astro +2 -2
  154. package/packages/storefront/src/lib/components/QuantitySelectorControl.vue +2 -2
  155. package/packages/storefront/src/lib/components/ViewTransitions.astro +1 -0
  156. package/packages/storefront/src/lib/layouts/BaseBody.astro +3 -3
  157. package/packages/storefront/src/lib/layouts/BaseHead.astro +29 -29
  158. package/packages/test-base/package.json +2 -2
  159. package/packages/types/package.json +2 -2
  160. package/tailwind.config.cjs +5 -0
  161. package/LICENSE.md +0 -230
  162. package/packages/storefront/dist/client/_astro/CartSidebar.1fFe2RGR.js +0 -1
  163. package/packages/storefront/dist/client/_astro/ProductDetails.WXj4miM3.js +0 -7
  164. package/packages/storefront/dist/client/_astro/ProductShelf.GkYOYehE.js +0 -1
  165. package/packages/storefront/dist/client/_astro/ProductShelf.I8ZQzwkT.js +0 -1
  166. package/packages/storefront/dist/client/_astro/ShopHeader.27oTzgGP.js +0 -7
  167. package/packages/storefront/dist/client/_astro/client.guyl5T6O.js +0 -1
  168. package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
  169. package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
  170. package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
  171. package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
  172. package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
  173. package/packages/storefront/dist/client/_astro/hoisted.X6EeZJCY.js +0 -1
  174. package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
  175. package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
  176. package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
  177. package/packages/storefront/dist/client/_astro/name.LjTu3VQY.js +0 -1
  178. package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
  179. package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
  180. package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
  181. package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
  182. package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
  183. package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
  184. package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
  185. package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
  186. package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
  187. package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
  188. package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
  189. package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
  190. package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
  191. package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
  192. package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
  193. package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
  194. package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
  195. package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
  196. package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
  197. package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
  198. package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
  199. package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
  200. package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.arxvxBux.js +0 -13
  201. package/packages/storefront/dist/client/_astro/use-text-value.dpiQwgOv.js +0 -4
  202. package/packages/storefront/dist/client/app/account/index.html +0 -56
  203. package/packages/storefront/dist/client/app/index.html +0 -96
  204. package/packages/storefront/dist/client/blog/1/index.html +0 -82
  205. package/packages/storefront/dist/client/index.html +0 -122
  206. package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +0 -89
  207. package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +0 -89
  208. package/packages/storefront/dist/client/p/contato/index.html +0 -86
  209. package/packages/storefront/dist/client/p/terms/index.html +0 -97
  210. package/packages/storefront/dist/client/posts/3/index.html +0 -97
  211. package/packages/storefront/dist/client/posts/4/index.html +0 -97
  212. package/packages/storefront/dist/client/~fallback/index.html +0 -97
  213. package/packages/storefront/dist/server/chunks/~fallback_M-xiy2GE.mjs +0 -6
  214. package/packages/storefront/dist/server/manifest_oV2meNKS.mjs +0 -196
@@ -147,7 +147,7 @@ const api = async <T extends Config & { body?: any, data?: any }>(
147
147
  const {
148
148
  timeout = 20000,
149
149
  maxRetries = 3,
150
- cacheMaxAge = 600000, /* 10 minutes */
150
+ cacheMaxAge = Number(_env.API_CACHE_MAX_AGE) || 120000 /* 2 minutes */,
151
151
  } = config;
152
152
  const canCache = method === 'GET' && config.canCache;
153
153
  let cacheKey: string | undefined;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-affiliate-program",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for simple affiliate program",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/app-affiliate-program"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/correios"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-payment",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for simple custom payment methods",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/custom-payment"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-shipping",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for custom shipping methods",
6
6
  "main": "lib/custom-shipping.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/custom-shipping"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-datafrete",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
6
6
  "main": "lib/datafrete.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/datafrete"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "lib/discounts.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/discounts"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-emails",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce default transactional email app",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/send-transactional-emails"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-fb-conversions",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to send carts/orders to Facebook Conversions API",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/fb-conversions"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-flash-courier",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Flash Courier",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/app-flash-courier"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-frenet",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
6
6
  "main": "lib/frenet.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/frenet"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-galaxpay",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Galax Pay for recurring payments",
6
6
  "main": "lib/galaxpay.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/galaxpay"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-google-analytics",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to send carts/orders events to GA Measurement Protocol",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/google-analytics"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-jadlog",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/jadlog"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-loyalty-points",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to handle simple loyalty points programs",
6
6
  "main": "lib/loyalty-points.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/loyalty-points"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-mandae",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Mandaê shipping intermediator",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/mandae"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-melhor-envio",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Melhor Envio",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/melhor-envio"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-mercadopago",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
6
6
  "main": "lib/mercadopago.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/mercadopago"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pagarme",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
6
6
  "main": "lib/pagarme.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/pagar-me"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pagarme-v5",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pagar.me API v5 with recurring payments",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/pagarme-v5"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate PagHiper",
6
6
  "main": "lib/paghiper.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/paghiper"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pix",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pix API (Bacen)",
6
6
  "main": "lib/pix.js",
7
7
  "exports": {
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/apps/pix"
15
15
  },
16
16
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
17
- "license": "Apache 2.0 with Commons Clause",
17
+ "license": "MIT",
18
18
  "bugs": {
19
19
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
20
20
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for Tiny ERP",
6
6
  "main": "lib/tiny-erp.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/tiny-erp"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-webhooks",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "2.1.0",
5
5
  "description": "E-Com Plus Cloud Commerce app for general order webhooks",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/apps/webhooks"
11
11
  },
12
12
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
13
- "license": "Apache 2.0 with Commons Clause",
13
+ "license": "MIT",
14
14
  "bugs": {
15
15
  "url": "https://github.com/ecomplus/cloud-commerce/issues"
16
16
  },
@@ -0,0 +1,169 @@
1
+ #!/bin/bash
2
+
3
+ if [ -z "$BUNNYNET_API_KEY" ]; then
4
+ echo "BUNNYNET_API_KEY env var must be set"
5
+ exit 1
6
+ fi
7
+ if [ $# -eq 0 ]; then
8
+ echo "Provide the domain as the first argument"
9
+ exit 1
10
+ fi
11
+
12
+ domain=$1
13
+
14
+ response=$(curl --silent --request GET \
15
+ --url https://api.bunny.net/pullzone \
16
+ --header "AccessKey: $BUNNYNET_API_KEY" \
17
+ --header 'accept: application/json')
18
+
19
+ pull_zone_id=$(echo $response | jq --arg domain "$domain" '[.[] | select(.Hostnames[].Value | contains($domain)).Id][0]')
20
+ if [ -z "$pull_zone_id" ]; then
21
+ echo "bunny.net pull zone not found for domain $domain"
22
+ exit 1
23
+ fi
24
+
25
+ edge_rules=$(echo $response | jq --arg id "$pull_zone_id" '.[] | select(.Id == ($id | tonumber)).EdgeRules')
26
+
27
+ curl --silent --request POST \
28
+ --url "https://api.bunny.net/pullzone/$pull_zone_id" \
29
+ --header "AccessKey: $BUNNYNET_API_KEY" \
30
+ --header 'accept: application/json' \
31
+ --header 'content-type: application/json' \
32
+ --data '
33
+ {
34
+ "EnableGeoZoneUS": true,
35
+ "EnableGeoZoneEU": true,
36
+ "EnableGeoZoneASIA": false,
37
+ "EnableGeoZoneSA": true,
38
+ "EnableGeoZoneAF": false,
39
+ "ZoneSecurityEnabled": false,
40
+ "ZoneSecurityIncludeHashRemoteIP": false,
41
+ "IgnoreQueryStrings": true,
42
+ "MonthlyBandwidthLimit": 0,
43
+ "AddHostHeader": false,
44
+ "OriginHostHeader": "",
45
+ "Type": 0,
46
+ "AccessControlOriginHeaderExtensions": [
47
+ "eot",
48
+ "ttf",
49
+ "woff",
50
+ "woff2",
51
+ "css"
52
+ ],
53
+ "EnableAccessControlOriginHeader": true,
54
+ "DisableCookies": false,
55
+ "EnableOriginShield": true,
56
+ "CacheControlMaxAgeOverride": -1,
57
+ "CacheControlPublicMaxAgeOverride": -1,
58
+ "BurstSize": 0,
59
+ "RequestLimit": 0,
60
+ "BlockRootPathAccess": false,
61
+ "BlockPostRequests": false,
62
+ "LimitRatePerSecond": 0,
63
+ "LimitRateAfter": 0,
64
+ "ConnectionLimitPerIPCount": 0,
65
+ "AddCanonicalHeader": false,
66
+ "EnableLogging": true,
67
+ "EnableCacheSlice": false,
68
+ "EnableSmartCache": false,
69
+ "EnableWebPVary": false,
70
+ "EnableAvifVary": false,
71
+ "EnableCountryCodeVary": false,
72
+ "EnableMobileVary": false,
73
+ "EnableCookieVary": true,
74
+ "CookieVaryParameters": [
75
+ "bid",
76
+ "branch"
77
+ ],
78
+ "EnableHostnameVary": false,
79
+ "LoggingIPAnonymizationEnabled": true,
80
+ "EnableTLS1": true,
81
+ "EnableTLS1_1": true,
82
+ "VerifyOriginSSL": false,
83
+ "ErrorPageEnableCustomCode": false,
84
+ "ErrorPageEnableStatuspageWidget": false,
85
+ "ErrorPageWhitelabel": false,
86
+ "OriginShieldZoneCode": "IL",
87
+ "LogForwardingEnabled": false,
88
+ "LoggingSaveToStorage": false,
89
+ "FollowRedirects": false,
90
+ "PermaCacheStorageZoneId": 0,
91
+ "OriginRetries": 0,
92
+ "OriginConnectTimeout": 5,
93
+ "OriginResponseTimeout": 15,
94
+ "UseStaleWhileUpdating": true,
95
+ "UseStaleWhileOffline": true,
96
+ "OriginRetry5XXResponses": false,
97
+ "OriginRetryConnectionTimeout": true,
98
+ "OriginRetryResponseTimeout": true,
99
+ "OriginRetryDelay": 0,
100
+ "QueryStringVaryParameters": [],
101
+ "OriginShieldEnableConcurrencyLimit": false,
102
+ "OriginShieldMaxConcurrentRequests": 200,
103
+ "EnableSafeHop": false,
104
+ "CacheErrorResponses": false,
105
+ "OriginShieldQueueMaxWaitTime": 30,
106
+ "OriginShieldMaxQueuedRequests": 5000,
107
+ "UseBackgroundUpdate": true,
108
+ "EnableAutoSSL": false,
109
+ "EnableQueryStringOrdering": true,
110
+ "LogAnonymizationType": 0,
111
+ "LogFormat": 1,
112
+ "LogForwardingFormat": 1,
113
+ "ShieldDDosProtectionType": 1,
114
+ "ShieldDDosProtectionEnabled": false,
115
+ "EnableRequestCoalescing": true,
116
+ "RequestCoalescingTimeout": 30,
117
+ "DisableLetsEncrypt": false,
118
+ "EnableBunnyImageAi": false,
119
+ "PreloadingScreenEnabled": false,
120
+ "RoutingFilters": [
121
+ "all"
122
+ ]
123
+ }
124
+ '
125
+ printf "\n\n> Configured pull zone \"$pull_zone_id\"\n"
126
+
127
+ configure_edge_rule() {
128
+ printf "\n"
129
+ local description=$1
130
+ local rule_data=$2
131
+ local found_rule=$(echo $edge_rules | jq --arg description "$description" '.[] | select(.Description == $description)')
132
+ local guid=$(echo $found_rule | jq -r '.Guid // empty')
133
+
134
+ local json_data="$rule_data"
135
+ if [ -n "$guid" ]; then
136
+ json_data=$(echo $json_data | jq --arg guid "$guid" '. + {Guid: $guid}')
137
+ fi
138
+
139
+ curl --silent --request POST \
140
+ --url "https://api.bunny.net/pullzone/$pull_zone_id/edgerules/addOrUpdate" \
141
+ --header "AccessKey: $BUNNYNET_API_KEY" \
142
+ --header 'content-type: application/json' \
143
+ --data "$json_data"
144
+ printf "\n\n> Configured edge rule \"$description\"\n"
145
+ }
146
+
147
+ configure_edge_rule "APIs bypass CDN cache" '
148
+ {
149
+ "ActionType": 3,
150
+ "ActionParameter1": "0",
151
+ "ActionParameter2": "",
152
+ "Triggers": [
153
+ {
154
+ "Type": 0,
155
+ "PatternMatches": [
156
+ "*/_api/*",
157
+ "*/_feeds/*",
158
+ "*/.*/git/*",
159
+ "*/_analytics"
160
+ ],
161
+ "PatternMatchingType": 0,
162
+ "Parameter1": ""
163
+ }
164
+ ],
165
+ "TriggerMatchingType": 0,
166
+ "Description": "APIs bypass CDN cache",
167
+ "Enabled": true
168
+ }
169
+ '