cloudcommerce 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/renovate.json +1 -2
- package/CHANGELOG.md +20 -0
- package/action.yml +1 -1
- package/ecomplus-stores/monocard/functions/core/package.json +2 -2
- package/ecomplus-stores/monocard/functions/events/package.json +3 -3
- package/ecomplus-stores/monocard/functions/modules/package.json +3 -3
- package/ecomplus-stores/monocard/functions/passport/package.json +3 -3
- package/ecomplus-stores/monocard/functions/ssr/package.json +7 -7
- package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +1 -1
- package/ecomplus-stores/monocard/package.json +2 -2
- package/package.json +14 -14
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +3 -3
- package/packages/apps/discounts/lib-mjs/apply-discount.mjs +4 -2
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/lib/functios-lib/utils.js +8 -8
- package/packages/apps/emails/lib/functios-lib/utils.js.map +1 -1
- package/packages/apps/emails/package.json +2 -2
- package/packages/apps/emails/src/functios-lib/utils.ts +8 -8
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/frenet/package.json +3 -3
- package/packages/apps/galaxpay/package.json +3 -3
- package/packages/apps/google-analytics/package.json +3 -3
- package/packages/apps/infinitepay/package.json +3 -3
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +3 -3
- package/packages/apps/mercadopago/package.json +3 -3
- package/packages/apps/pagarme/package.json +3 -3
- package/packages/apps/paghiper/package.json +3 -3
- package/packages/apps/pix/package.json +3 -3
- package/packages/apps/tiny-erp/package.json +3 -3
- package/packages/apps/webhooks/package.json +3 -3
- package/packages/cli/package.json +2 -2
- package/packages/config/lib/config.d.ts +2 -2
- package/packages/config/lib/config.js +6 -6
- package/packages/config/lib/config.js.map +1 -1
- package/packages/config/package.json +1 -1
- package/packages/config/src/config.ts +8 -8
- package/packages/emails/lib/index.js +3 -3
- package/packages/emails/lib/index.js.map +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/emails/src/index.ts +3 -3
- package/packages/events/package.json +2 -2
- package/packages/firebase/lib/config.d.ts +2 -2
- package/packages/firebase/lib/config.js +5 -5
- package/packages/firebase/lib/config.js.map +1 -1
- package/packages/firebase/package.json +3 -3
- package/packages/firebase/src/config.ts +6 -6
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +3 -3
- package/packages/passport/package.json +2 -2
- package/packages/ssr/lib/firebase.js +6 -4
- package/packages/ssr/lib/firebase.js.map +1 -1
- package/packages/ssr/package.json +4 -4
- package/packages/ssr/src/firebase.ts +6 -4
- package/packages/ssr/src/tests/benchmark.sh +50 -0
- package/packages/storefront/.base.eslintrc.cjs +9 -1
- package/packages/storefront/astro.config.mjs +1 -0
- package/packages/storefront/client.d.ts +1 -1
- package/packages/storefront/config/storefront.cms.cjs +6 -6
- package/packages/storefront/config/storefront.cms.mjs +6 -6
- package/packages/storefront/dist/client/_astro/{PitchBar.8945ceb4.js → PitchBar.57e90997.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ShopHeader.5d83d6d5.js → ShopHeader.0fddff0d.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.5636c034.js +128 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.2840bd36.js → firebase-app.f42d3d05.js} +44 -44
- package/packages/storefront/dist/client/_astro/{index.2899cbe4.js → index.2402c50a.js} +2 -2
- package/packages/storefront/dist/client/_astro/{index.es.28e34903.js → index.es.f69f3875.js} +1 -1
- package/packages/storefront/dist/client/_astro/{server.browser.e1b1e312.js → server.browser.5ca16f46.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{astro.39f7f387.mjs → astro.5c9f0bea.mjs} +4 -4
- package/packages/storefront/dist/server/chunks/pages/{all.e51db7f0.mjs → all.5155c178.mjs} +39 -40
- package/packages/storefront/dist/server/entry.mjs +11 -6
- package/packages/storefront/package.json +11 -11
- package/packages/storefront/server.d.ts +2 -2
- package/packages/storefront/src/lib/composables/use-pitch-bar.ts +2 -2
- package/packages/storefront/src/lib/content.d.ts +21 -0
- package/packages/storefront/src/lib/layouts/Base.astro +5 -5
- package/packages/storefront/src/lib/layouts/BaseHead.astro +10 -10
- package/packages/storefront/src/lib/layouts/sections/use-hero-section.ts +5 -5
- package/packages/storefront/src/lib/layouts/use-page-layout.ts +12 -12
- package/packages/storefront/src/lib/ssr-context.ts +13 -14
- package/packages/storefront/src/vue-globals.d.ts +2 -2
- package/packages/storefront/storefront.config.mjs +3 -3
- package/packages/types/index.ts +2 -2
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +2 -4
- package/packages/storefront/dist/client/_astro/client.f447e2e8.js +0 -128
- package/packages/storefront/src/lib/cms.d.ts +0 -21
- package/packages/storefront/src/lib/components/Post.vue +0 -107
package/.github/renovate.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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.11.0](https://github.com/ecomplus/cloud-commerce/compare/v0.10.0...v0.11.0) (2023-05-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* **storefront:** Previously duplicated function `pageContext.cms` removed in favor of `pageContext.getContent` only
|
|
11
|
+
* **types:** Export `CmsSettings` no more existing from `@cloudcommerce/types`
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** Update non-major dependencies ([#152](https://github.com/ecomplus/cloud-commerce/issues/152)) ([9e27ab8](https://github.com/ecomplus/cloud-commerce/commit/9e27ab8855b457b2ae7efa5c7e923d50fe17f207))
|
|
16
|
+
* **discounts:** Do not count cancelled order on count for max usages ([c668701](https://github.com/ecomplus/cloud-commerce/commit/c668701b327cd31981dbb4ddd3a38e7e3502d560))
|
|
17
|
+
* **storefront:** Explicit ignore /admin/ folder on Workbox precache ([1eae550](https://github.com/ecomplus/cloud-commerce/commit/1eae55035e968158da15b683a733e141f8b40547))
|
|
18
|
+
* **storefront:** Fix `SettingsContent` metafields typedef [[#149](https://github.com/ecomplus/cloud-commerce/issues/149)] ([5d6ea94](https://github.com/ecomplus/cloud-commerce/commit/5d6ea94957f0b9a44acc4925f9c356e91e15ebd6))
|
|
19
|
+
* **storefront:** Update Astro to v2.3.3 ([#153](https://github.com/ecomplus/cloud-commerce/issues/153)) ([0e6523d](https://github.com/ecomplus/cloud-commerce/commit/0e6523d10f7f2b86753bd3e1b4927d5947ded552))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* **storefront:** Renaming "CMS" things to "content" ([a48653d](https://github.com/ecomplus/cloud-commerce/commit/a48653d0281123531ee2d4146046ecae81abb89f))
|
|
23
|
+
* **types:** Renaming `CmsSettings` to `SettingsContent` ([3fe4f7a](https://github.com/ecomplus/cloud-commerce/commit/3fe4f7a0a1e3e3b082e7942ae26bf5c993077094))
|
|
24
|
+
|
|
5
25
|
## [0.10.0](https://github.com/ecomplus/cloud-commerce/compare/v0.9.1...v0.10.0) (2023-04-28)
|
|
6
26
|
|
|
7
27
|
|
package/action.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "core",
|
|
2
|
+
"name": "monocard-core",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/firebase": "^0.
|
|
18
|
+
"@cloudcommerce/firebase": "^0.10.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "events",
|
|
2
|
+
"name": "monocard-events",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^0.
|
|
19
|
-
"@cloudcommerce/firebase": "^0.
|
|
18
|
+
"@cloudcommerce/events": "^0.10.0",
|
|
19
|
+
"@cloudcommerce/firebase": "^0.10.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "modules",
|
|
2
|
+
"name": "monocard-modules",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/firebase": "^0.
|
|
19
|
-
"@cloudcommerce/modules": "^0.
|
|
18
|
+
"@cloudcommerce/firebase": "^0.10.0",
|
|
19
|
+
"@cloudcommerce/modules": "^0.10.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "passport",
|
|
2
|
+
"name": "monocard-passport",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/firebase": "^0.
|
|
19
|
-
"@cloudcommerce/passport": "^0.
|
|
18
|
+
"@cloudcommerce/firebase": "^0.10.0",
|
|
19
|
+
"@cloudcommerce/passport": "^0.10.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "ssr",
|
|
2
|
+
"name": "monocard-ssr",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudcommerce/api": "^0.
|
|
21
|
-
"@cloudcommerce/firebase": "^0.
|
|
22
|
-
"@cloudcommerce/ssr": "^0.
|
|
20
|
+
"@cloudcommerce/api": "^0.10.0",
|
|
21
|
+
"@cloudcommerce/firebase": "^0.10.0",
|
|
22
|
+
"@cloudcommerce/ssr": "^0.10.0",
|
|
23
23
|
"@vueuse/motion": "2.0.0-beta.22"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@cloudcommerce/i18n": "^0.
|
|
27
|
-
"@cloudcommerce/storefront": "^0.
|
|
28
|
-
"@cloudcommerce/types": "^0.
|
|
26
|
+
"@cloudcommerce/i18n": "^0.10.0",
|
|
27
|
+
"@cloudcommerce/storefront": "^0.10.0",
|
|
28
|
+
"@cloudcommerce/types": "^0.10.0",
|
|
29
29
|
"@fontsource/inter": "^4.5.15",
|
|
30
30
|
"@iconify-json/ri": "^1.1.8",
|
|
31
31
|
"@iconify-json/wpf": "^1.1.4",
|
|
@@ -36,7 +36,7 @@ const products = (await api.get('products')).data.result;
|
|
|
36
36
|
basis-1/2 lg:basis-auto rounded-full px-4 py-2.5 xl:px-7 xl:py-4">
|
|
37
37
|
Compre agora
|
|
38
38
|
</a>
|
|
39
|
-
<a role="button" href={settings.metafields
|
|
39
|
+
<a role="button" href={settings.metafields.business_lp_url}
|
|
40
40
|
class="bg-primary/40 text-primary-900 lg:border-4 border-primary/20
|
|
41
41
|
hover:primary hover:border-primary-bold active:primary-bold
|
|
42
42
|
basis-1/2 lg:basis-auto rounded-full px-4 py-2.5 xl:px-7 xl:py-4">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@ecomplus/
|
|
2
|
+
"name": "@ecomplus-stores/monocard",
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce starter store",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cloudcommerce/cli": "^0.
|
|
26
|
+
"@cloudcommerce/cli": "^0.10.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
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>",
|
|
@@ -16,33 +16,33 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@commitlint/cli": "^17.6.
|
|
20
|
-
"@commitlint/config-conventional": "^17.6.
|
|
19
|
+
"@commitlint/cli": "^17.6.3",
|
|
20
|
+
"@commitlint/config-conventional": "^17.6.3",
|
|
21
21
|
"@commitlint/rules": "^17.6.1",
|
|
22
|
-
"@types/node": "^18.16.
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
24
|
-
"@typescript-eslint/parser": "^5.59.
|
|
22
|
+
"@types/node": "^18.16.5",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
24
|
+
"@typescript-eslint/parser": "^5.59.2",
|
|
25
25
|
"esbuild": "^0.17.18",
|
|
26
|
-
"eslint": "^8.
|
|
26
|
+
"eslint": "^8.40.0",
|
|
27
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
28
28
|
"eslint-plugin-import": "^2.27.5",
|
|
29
|
-
"eslint-plugin-vue": "^9.11.
|
|
29
|
+
"eslint-plugin-vue": "^9.11.1",
|
|
30
30
|
"husky": "^8.0.3",
|
|
31
31
|
"standard-version": "^9.5.0",
|
|
32
32
|
"ts-node": "^10.9.1",
|
|
33
|
-
"turbo": "1.
|
|
33
|
+
"turbo": "^1.9.3",
|
|
34
34
|
"typescript": "^5.0.4",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
|
-
"vite": "^4.3.
|
|
37
|
-
"vitest": "^0.
|
|
38
|
-
"zx": "^7.2.
|
|
36
|
+
"vite": "^4.3.5",
|
|
37
|
+
"vitest": "^0.31.0",
|
|
38
|
+
"zx": "^7.2.2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
|
42
42
|
"postinstall": "husky install && pnpm run -r prepare-monorepo",
|
|
43
43
|
"new-pkg": "bash scripts/new-package.sh",
|
|
44
|
-
"build": "turbo run build",
|
|
45
|
-
"test": "turbo run test",
|
|
44
|
+
"build": "turbo run build --filter='!./ecomplus-stores/**'",
|
|
45
|
+
"test": "turbo run test --filter='!./ecomplus-stores/**'",
|
|
46
46
|
"release": "bash scripts/version-and-release.sh",
|
|
47
47
|
"store:run": "pnpm build && npm --prefix \"store\" run",
|
|
48
48
|
"start": "pnpm store:run start",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/correios.js",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
|
-
"axios": "^1.
|
|
23
|
+
"axios": "^1.4.0",
|
|
24
24
|
"xml2js": "^0.5.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-datafrete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
|
|
6
6
|
"main": "lib/datafrete.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"@ecomplus/utils": "1.5.0-rc.3",
|
|
29
|
-
"axios": "^1.
|
|
30
|
-
"firebase-admin": "^11.
|
|
29
|
+
"axios": "^1.4.0",
|
|
30
|
+
"firebase-admin": "^11.8.0",
|
|
31
31
|
"firebase-functions": "^4.3.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -352,7 +352,7 @@ export default async ({ params, application }) => {
|
|
|
352
352
|
) {
|
|
353
353
|
// list orders to check discount usage limits
|
|
354
354
|
// eslint-disable-next-line prefer-template
|
|
355
|
-
const endpoint = 'orders?fields=
|
|
355
|
+
const endpoint = 'orders?fields=status'
|
|
356
356
|
+ `&extra_discount.app.label${(discountRule.case_insensitive ? '%=' : '=')}`
|
|
357
357
|
+ encodeURIComponent(label);
|
|
358
358
|
const usageLimits = [{
|
|
@@ -372,7 +372,9 @@ export default async ({ params, application }) => {
|
|
|
372
372
|
// send Store API request to list orders with filters
|
|
373
373
|
// eslint-disable-next-line no-await-in-loop
|
|
374
374
|
const { data } = await api.get(`${endpoint}${query}`);
|
|
375
|
-
countOrders = data.result
|
|
375
|
+
countOrders = data.result
|
|
376
|
+
.filter(({ status }) => status !== 'cancelled')
|
|
377
|
+
.length;
|
|
376
378
|
} catch (err) {
|
|
377
379
|
return {
|
|
378
380
|
error: 'CANT_CHECK_USAGE_LIMITS',
|
|
@@ -15,17 +15,17 @@ const toCamelCase = (status) => {
|
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
const getStore = () => {
|
|
18
|
-
const {
|
|
18
|
+
const { settingsContent } = config.get();
|
|
19
19
|
return {
|
|
20
|
-
lang:
|
|
21
|
-
domain:
|
|
22
|
-
name:
|
|
23
|
-
corporate_name:
|
|
24
|
-
contact_email:
|
|
20
|
+
lang: settingsContent.lang,
|
|
21
|
+
domain: settingsContent.domain,
|
|
22
|
+
name: settingsContent.name,
|
|
23
|
+
corporate_name: settingsContent.corporate_name || settingsContent.name,
|
|
24
|
+
contact_email: settingsContent.email,
|
|
25
25
|
logo: {
|
|
26
|
-
url: `https://${
|
|
26
|
+
url: `https://${settingsContent.domain}${settingsContent.logo}`,
|
|
27
27
|
},
|
|
28
|
-
address:
|
|
28
|
+
address: settingsContent.address,
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/functios-lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,MAAM,sBAAsB,GAAG,CAC7B,OAAe,EACf,WAAmB,EACnB,eAAuC,EACvC,UAAkB,EAClB,EAAE;IACF,MAAM,cAAc,GAAW,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC;IAElF,MAAM,IAAI,GAAG;QACX,iBAAiB,EAAE,IAAI;KACxB,CAAC;IACF,OAAO,GAAG,CAAC,KAAK,CAAC,UAAU,OAAO,IAAI,WAAW,IAAI,cAAc,EAAE,EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,EAAE;IACrC,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;QACvD,IAAI,EAAE;YAAE,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/functios-lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,MAAM,sBAAsB,GAAG,CAC7B,OAAe,EACf,WAAmB,EACnB,eAAuC,EACvC,UAAkB,EAClB,EAAE;IACF,MAAM,cAAc,GAAW,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC;IAElF,MAAM,IAAI,GAAG;QACX,iBAAiB,EAAE,IAAI;KACxB,CAAC;IACF,OAAO,GAAG,CAAC,KAAK,CAAC,UAAU,OAAO,IAAI,WAAW,IAAI,cAAc,EAAE,EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,EAAE;IACrC,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;QACvD,IAAI,EAAE;YAAE,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;QAChC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;IACzC,OAAO;QACL,IAAI,EAAE,eAAe,CAAC,IAAI;QAC1B,MAAM,EAAE,eAAe,CAAC,MAAM;QAC9B,IAAI,EAAE,eAAe,CAAC,IAAI;QAC1B,cAAc,EAAE,eAAe,CAAC,cAAc,IAAI,eAAe,CAAC,IAAI;QACtE,aAAa,EAAE,eAAe,CAAC,KAAK;QACpC,IAAI,EAAE;YACJ,GAAG,EAAE,WAAW,eAAe,CAAC,MAAM,GAAG,eAAe,CAAC,IAAI,EAAE;SAChE;QACD,OAAO,EAAE,eAAe,CAAC,OAAO;KACjC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,QAAQ,GACT,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-emails",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce default transactional email app",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@cloudcommerce/emails": "workspace:*",
|
|
24
24
|
"@cloudcommerce/firebase": "workspace:*",
|
|
25
25
|
"@ecomplus/transactional-mails": "^2.0.0",
|
|
26
|
-
"firebase-admin": "^11.
|
|
26
|
+
"firebase-admin": "^11.8.0",
|
|
27
27
|
"firebase-functions": "^3.24.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -23,17 +23,17 @@ const toCamelCase = (status: string) => {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const getStore = () => {
|
|
26
|
-
const {
|
|
26
|
+
const { settingsContent } = config.get();
|
|
27
27
|
return {
|
|
28
|
-
lang:
|
|
29
|
-
domain:
|
|
30
|
-
name:
|
|
31
|
-
corporate_name:
|
|
32
|
-
contact_email:
|
|
28
|
+
lang: settingsContent.lang,
|
|
29
|
+
domain: settingsContent.domain,
|
|
30
|
+
name: settingsContent.name,
|
|
31
|
+
corporate_name: settingsContent.corporate_name || settingsContent.name,
|
|
32
|
+
contact_email: settingsContent.email,
|
|
33
33
|
logo: {
|
|
34
|
-
url: `https://${
|
|
34
|
+
url: `https://${settingsContent.domain}${settingsContent.logo}`,
|
|
35
35
|
},
|
|
36
|
-
address:
|
|
36
|
+
address: settingsContent.address,
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-fb-conversions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.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": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
24
|
"facebook-nodejs-business-sdk": "^16.0.2",
|
|
25
|
-
"firebase-admin": "^11.
|
|
25
|
+
"firebase-admin": "^11.8.0",
|
|
26
26
|
"firebase-functions": "^4.3.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-frenet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
|
|
6
6
|
"main": "lib/frenet.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"firebase-admin": "^11.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
|
+
"firebase-admin": "^11.8.0",
|
|
30
30
|
"firebase-functions": "^4.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.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": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"firebase-admin": "^11.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
|
+
"firebase-admin": "^11.8.0",
|
|
30
30
|
"firebase-functions": "^4.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-google-analytics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.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": {
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"axios": "^1.
|
|
25
|
-
"firebase-admin": "^11.
|
|
24
|
+
"axios": "^1.4.0",
|
|
25
|
+
"firebase-admin": "^11.8.0",
|
|
26
26
|
"firebase-functions": "^4.3.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-infinitepay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate InfinitePay",
|
|
6
6
|
"main": "lib/infinitepay.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
29
|
"crypto-js": "^4.1.1",
|
|
30
|
-
"firebase-admin": "^11.
|
|
30
|
+
"firebase-admin": "^11.8.0",
|
|
31
31
|
"firebase-functions": "^4.3.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-jadlog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
|
-
"axios": "^1.
|
|
23
|
+
"axios": "^1.4.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-melhor-envio",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Melhor Envio",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"firebase-admin": "^11.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
|
+
"firebase-admin": "^11.8.0",
|
|
30
30
|
"firebase-functions": "^4.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-mercadopago",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
|
|
6
6
|
"main": "lib/mercadopago.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"firebase-admin": "^11.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
|
+
"firebase-admin": "^11.8.0",
|
|
30
30
|
"firebase-functions": "^4.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-pagarme",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
|
|
6
6
|
"main": "lib/pagarme.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"firebase-admin": "^11.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
|
+
"firebase-admin": "^11.8.0",
|
|
30
30
|
"firebase-functions": "^4.3.1",
|
|
31
31
|
"pagarme": "^4.31.0",
|
|
32
32
|
"qs": "^6.11.1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-paghiper",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate PagHiper",
|
|
6
6
|
"main": "lib/paghiper.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.
|
|
29
|
-
"firebase-admin": "^11.
|
|
28
|
+
"axios": "^1.4.0",
|
|
29
|
+
"firebase-admin": "^11.8.0",
|
|
30
30
|
"firebase-functions": "^4.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|