cloudcommerce 0.0.109 → 0.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/packages/api/lib/api.d.ts +4 -4940
- package/packages/api/lib/types.d.ts +17 -3
- package/packages/api/package.json +1 -1
- package/packages/api/src/types.ts +45 -23
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/frenet/lib-mjs/calculate-frenet.mjs +26 -23
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/tiny-erp/lib/event-to-tiny.js +94 -94
- package/packages/apps/tiny-erp/lib/index.js +1 -1
- package/packages/apps/tiny-erp/lib/integration/after-tiny-queue.js +71 -74
- package/packages/apps/tiny-erp/lib/integration/export-order-to-tiny.js +70 -73
- package/packages/apps/tiny-erp/lib/integration/export-product-to-tiny.js +49 -53
- package/packages/apps/tiny-erp/lib/integration/helpers/format-tiny-date.js +3 -3
- package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js +76 -75
- package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js +137 -140
- package/packages/apps/tiny-erp/lib/integration/parsers/order-from-tiny.js +40 -39
- package/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js +173 -178
- package/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js +173 -171
- package/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js +123 -127
- package/packages/apps/tiny-erp/lib/integration/parsers/status-from-tiny.js +32 -32
- package/packages/apps/tiny-erp/lib/integration/parsers/status-to-tiny.js +37 -37
- package/packages/apps/tiny-erp/lib/integration/post-tiny-erp.js +42 -43
- package/packages/apps/tiny-erp/lib/tiny-erp.js +8 -6
- package/packages/apps/tiny-erp/lib/tiny-webhook.js +76 -73
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/lib/en_us.d.ts +1 -0
- package/packages/i18n/lib/en_us.js +1 -0
- package/packages/i18n/lib/en_us.js.map +1 -1
- package/packages/i18n/lib/pt_br.d.ts +1 -0
- package/packages/i18n/lib/pt_br.js +1 -0
- package/packages/i18n/lib/pt_br.js.map +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/i18n/src/en_us.ts +1 -0
- package/packages/i18n/src/pt_br.ts +1 -0
- package/packages/modules/lib/firebase/ajv.js +24 -19
- package/packages/modules/lib/firebase/call-app-module.js +110 -116
- package/packages/modules/lib/firebase/checkout.js +149 -154
- package/packages/modules/lib/firebase/checkout.js.map +1 -1
- package/packages/modules/lib/firebase/functions-checkout/fix-items.js +187 -194
- package/packages/modules/lib/firebase/functions-checkout/get-custumerId.js +33 -27
- package/packages/modules/lib/firebase/functions-checkout/get-custumerId.js.map +1 -1
- package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js +111 -125
- package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js.map +1 -1
- package/packages/modules/lib/firebase/functions-checkout/new-order.js +178 -178
- package/packages/modules/lib/firebase/functions-checkout/new-order.js.map +1 -1
- package/packages/modules/lib/firebase/functions-checkout/request-to-module.js +53 -60
- package/packages/modules/lib/firebase/functions-checkout/request-to-module.js.map +1 -1
- package/packages/modules/lib/firebase/functions-checkout/utils.js +197 -195
- package/packages/modules/lib/firebase/handle-module.js +146 -144
- package/packages/modules/lib/firebase/handle-module.js.map +1 -1
- package/packages/modules/lib/firebase/proxy-apps.js +1 -2
- package/packages/modules/lib/firebase/serve-modules-api.js +53 -52
- package/packages/modules/lib/firebase/serve-modules-api.js.map +1 -1
- package/packages/modules/lib/firebase.js +6 -4
- package/packages/modules/lib/index.js +17 -12
- package/packages/modules/lib/index.js.map +1 -1
- package/packages/modules/package.json +2 -1
- package/packages/modules/schemas/@checkout.cjs +13 -1
- package/packages/modules/schemas/list_payments.cjs +6 -0
- package/packages/modules/src/firebase/checkout.ts +22 -49
- package/packages/modules/src/firebase/functions-checkout/get-custumerId.ts +23 -17
- package/packages/modules/src/firebase/functions-checkout/handle-order-transaction.ts +8 -45
- package/packages/modules/src/firebase/functions-checkout/new-order.ts +4 -9
- package/packages/modules/src/firebase/functions-checkout/request-to-module.ts +2 -11
- package/packages/modules/src/firebase/handle-module.ts +1 -1
- package/packages/modules/src/firebase/serve-modules-api.ts +1 -1
- package/packages/modules/src/index.ts +2 -0
- package/packages/passport/lib/firebase/authenticate-customer.js +81 -0
- package/packages/passport/lib/firebase/authenticate-customer.js.map +1 -0
- package/packages/passport/lib/firebase/serve-passport-api.js +20 -30
- package/packages/passport/lib/firebase/serve-passport-api.js.map +1 -1
- package/packages/passport/lib/firebase.js +1 -13
- package/packages/passport/lib/firebase.js.map +1 -1
- package/packages/passport/lib/index.js +1 -1
- package/packages/passport/lib/index.js.map +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/passport/src/firebase/authenticate-customer.ts +94 -0
- package/packages/passport/src/firebase/serve-passport-api.ts +21 -49
- package/packages/passport/src/firebase.ts +1 -21
- package/packages/passport/src/index.ts +4 -1
- package/packages/ssr/package.json +1 -1
- package/packages/storefront/content/header.json +6 -0
- package/packages/storefront/dist/client/LoginDrawer.e69d1c74.js +1 -0
- package/packages/storefront/dist/client/assets/_...d5980663.css +4 -0
- package/packages/storefront/dist/client/chunks/LoginDrawer.0c26574f.js +1 -0
- package/packages/storefront/dist/client/chunks/{LoginForm.c995d3d4.js → LoginForm.892d64a5.js} +109 -109
- package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.7f8f570f.js +1 -0
- package/packages/storefront/dist/client/{client.6736232b.js → client.246ab4a4.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/entry.mjs +2204 -26
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/assets/pico.css +3 -400
- package/packages/storefront/src/lib/components/{AOffcanvas.vue → ADrawer.vue} +3 -3
- package/packages/storefront/src/lib/components/LoginDrawer.vue +80 -0
- package/packages/storefront/src/lib/components/LoginForm.vue +31 -14
- package/packages/storefront/src/lib/layouts/PagesHeader.astro +18 -7
- package/packages/storefront/src/lib/state/customer-session.ts +137 -0
- package/packages/types/index.ts +22 -0
- package/packages/types/modules/@checkout:params.d.ts +9 -1
- package/packages/types/modules/list_payments:params.d.ts +4 -0
- package/packages/types/package.json +1 -1
- package/packages/passport/lib/firebase/handle-passport.js +0 -112
- package/packages/passport/lib/firebase/handle-passport.js.map +0 -1
- package/packages/passport/src/firebase/handle-passport.ts +0 -142
- package/packages/storefront/dist/client/LoginOffcanvas.28d2f50c.js +0 -1
- package/packages/storefront/dist/client/assets/_...41f686e3.css +0 -4
- package/packages/storefront/dist/client/chunks/LoginOffcanvas.a1f3fe3b.js +0 -1
- package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.62d623e7.js +0 -1
- package/packages/storefront/src/lib/components/LoginOffcanvas.vue +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.110](https://github.com/ecomplus/cloud-commerce/compare/v0.0.109...v0.0.110) (2022-10-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **modules:** Schema updates from https://github.com/ecomplus/modules-api/releases/tag/v0.12.53 ([32dedbb](https://github.com/ecomplus/cloud-commerce/commit/32dedbb4c835c551892e826fa70e462fa02d1a95))
|
|
11
|
+
* **storefront:** Setup `state/customer-session` with Nano Stores for authentication ([c02eab9](https://github.com/ecomplus/cloud-commerce/commit/c02eab953f4609c3a84d6ec554a0d781892b4791))
|
|
12
|
+
* **storefront:** Update `LoginDrawer` handling customer session ([86b5a49](https://github.com/ecomplus/cloud-commerce/commit/86b5a496e33a7e8509c0553651470d11a92e68a7))
|
|
13
|
+
* **types:** Add `{Resource}Set` types without auto set doc properties ([9be7c0b](https://github.com/ecomplus/cloud-commerce/commit/9be7c0b18a1b7128796d4146796311bdbf699b44))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **api:** Better type defs for list requests results (partial docs with IDs) ([8f407c2](https://github.com/ecomplus/cloud-commerce/commit/8f407c23a1674a032a8f44a5330646af2a081dd4))
|
|
19
|
+
* **frenet:** Calculate shipping updates with https://github.com/ecomplus/app-frenet/tree/v0.2.32 ([b6d21c0](https://github.com/ecomplus/cloud-commerce/commit/b6d21c0663448032ed34b5f703a1861c16406d8d))
|
|
20
|
+
* **modules:** Properly handling modules API base URL on checkout ([968c90a](https://github.com/ecomplus/cloud-commerce/commit/968c90a4a865ab55f0d6781119a1a2555e305efb))
|
|
21
|
+
* **modules:** Update checkout params and typedef to require `customer` field ([0c2ac51](https://github.com/ecomplus/cloud-commerce/commit/0c2ac517856329fae52ec0ee3e22635baf7c1056))
|
|
22
|
+
* **passport:** Must check `email_verified` to generate customer access token ([26674b4](https://github.com/ecomplus/cloud-commerce/commit/26674b46515c0a795b04ffc3d9864b49d4a54994))
|
|
23
|
+
* **passport:** Receive token from (web standard) Authorization header instead ([31d2a71](https://github.com/ecomplus/cloud-commerce/commit/31d2a718f42f234f6d790dd160910bfab232ecf0))
|
|
24
|
+
* **storefront:** Check customer session `isAuthorized` with token expires +10s ([3a33701](https://github.com/ecomplus/cloud-commerce/commit/3a3370184d15eaaa0995021384209d7abeb52c35))
|
|
25
|
+
|
|
5
26
|
### [0.0.109](https://github.com/ecomplus/cloud-commerce/compare/v0.0.108...v0.0.109) (2022-10-04)
|
|
6
27
|
|
|
7
28
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.110",
|
|
5
5
|
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
|
|
6
6
|
"main": "packages/api/lib/index.js",
|
|
7
7
|
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|