cloudcommerce 2.12.1 → 2.13.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/workflows/test-apps.yml +2 -2
- package/CHANGELOG.md +24 -0
- package/action.yml +10 -10
- package/ecomplus-stores/barradoce/.github/workflows/build-and-deploy.yml +4 -4
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/public/assets/cvv.png +0 -0
- package/ecomplus-stores/barradoce/functions/ssr/public/assets/payments.png +0 -0
- package/ecomplus-stores/barradoce/functions/ssr/src/components/AccountPage.vue +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/src/pages/app/account.astro +1 -1
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/package.json +8 -8
- package/packages/api/package.json +1 -1
- package/packages/api/types.d.ts +1 -1
- package/packages/apps/affiliate-program/package.json +2 -2
- 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 +2 -2
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/lib/functios-lib/handle-orders.js +5 -6
- package/packages/apps/emails/lib/functios-lib/handle-orders.js.map +1 -1
- package/packages/apps/emails/lib/functios-lib/utils.js +2 -3
- 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/handle-orders.ts +5 -14
- package/packages/apps/emails/src/functios-lib/utils.ts +2 -5
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/flash-courier/package.json +2 -2
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +2 -2
- package/packages/apps/melhor-envio/package.json +2 -2
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagaleve/package.json +2 -2
- package/packages/apps/pagarme/package.json +3 -3
- package/packages/apps/pagarme-v5/package.json +2 -2
- package/packages/apps/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/eslint/package.json +4 -4
- package/packages/events/package.json +2 -2
- package/packages/feeds/lib/firebase/serve-feeds.js +344 -3
- package/packages/feeds/lib/firebase/serve-feeds.js.map +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/feeds/src/firebase/serve-feeds.ts +367 -3
- package/packages/firebase/lib/helpers/pubsub.js +3 -1
- package/packages/firebase/lib/helpers/pubsub.js.map +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/firebase/src/handlers/check-store-events.ts +1 -1
- package/packages/firebase/src/helpers/pubsub.ts +3 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +2 -2
- package/packages/passport/package.json +2 -2
- package/packages/ssr/package.json +3 -3
- package/packages/storefront/package.json +4 -4
- package/packages/storefront/src/lib/scripts/vbeta-app.ts +1 -1
- package/packages/storefront/src/lib/state/customer-session.ts +8 -9
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/public/assets/.gitkeep +0 -2
|
@@ -104,11 +104,11 @@ jobs:
|
|
|
104
104
|
${{ steps.npm-paths.outputs.LIB_PATH }}
|
|
105
105
|
${{ steps.npm-paths.outputs.BIN_PATH }}
|
|
106
106
|
~/.npm-global/bin
|
|
107
|
-
key: ${{ runner.os }}-npm-globals-firebase-tools-13.7.
|
|
107
|
+
key: ${{ runner.os }}-npm-globals-firebase-tools-13.7.2
|
|
108
108
|
|
|
109
109
|
- if: steps.npm-g-cache.outputs.cache-hit != 'true'
|
|
110
110
|
shell: bash
|
|
111
|
-
run: npm install -g firebase-tools@13.7.
|
|
111
|
+
run: npm install -g firebase-tools@13.7.2
|
|
112
112
|
|
|
113
113
|
- name: Initialize Firebase emulators
|
|
114
114
|
shell: bash
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
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
|
+
## [2.13.0](https://github.com/ecomplus/cloud-commerce/compare/v2.12.2...v2.13.0) (2024-04-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **feeds:** Start rendering products XML catalog (Meta and GMC) at `/_feeds/catalog` endpoint ([8968e73](https://github.com/ecomplus/cloud-commerce/commit/8968e73089662d2564da529efc2a68b1b74f5510))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** Update non-major dependencies ([#364](https://github.com/ecomplus/cloud-commerce/issues/364)) ([92066a1](https://github.com/ecomplus/cloud-commerce/commit/92066a16c79c53f214ae6945f495c91c3f721599))
|
|
16
|
+
* **storefront:** Prevent antecipated logout and ensure logout reactivity on customer session state ([36c2b5d](https://github.com/ecomplus/cloud-commerce/commit/36c2b5d76ac368688b8d631b629b835c56dbc27c))
|
|
17
|
+
* **storefront:** Update vbeta-app script with `@ecomplus/storefront-app@2.0.0-beta.198` ([4781d32](https://github.com/ecomplus/cloud-commerce/commit/4781d32a1d4b3ed2cf537e3ad86241167aab71ec))
|
|
18
|
+
|
|
19
|
+
### [2.12.2](https://github.com/ecomplus/cloud-commerce/compare/v2.12.1...v2.12.2) (2024-04-09)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **api:** Improving `EventsResult` type def ([ffd7d87](https://github.com/ecomplus/cloud-commerce/commit/ffd7d871bd52ef06e066b3e205aa069eae5566a3))
|
|
25
|
+
* **apps:** Not relying on api event body anymore ([0e999d6](https://github.com/ecomplus/cloud-commerce/commit/0e999d68266e22a57535261424acc99770b5a1c1))
|
|
26
|
+
* **emails:** Prevent fatal error with undefined API event body ([22ab548](https://github.com/ecomplus/cloud-commerce/commit/22ab548ad4b5a049f93e0fb9d3271f788a7541c5))
|
|
27
|
+
* Ensure `body` and `resource` fields on store event objects ([65e7796](https://github.com/ecomplus/cloud-commerce/commit/65e7796093069ab47dc897f9a520e02e8b67cdfc))
|
|
28
|
+
|
|
5
29
|
### [2.12.1](https://github.com/ecomplus/cloud-commerce/compare/v2.12.0...v2.12.1) (2024-04-08)
|
|
6
30
|
|
|
7
31
|
|
package/action.yml
CHANGED
|
@@ -24,13 +24,13 @@ inputs:
|
|
|
24
24
|
description: 'Emails: sender name (default is store name)'
|
|
25
25
|
mail-reply-to:
|
|
26
26
|
description: 'Emails: Reply email'
|
|
27
|
-
|
|
27
|
+
smtp-host:
|
|
28
28
|
description: 'Emails: SMTP hostname'
|
|
29
|
-
|
|
29
|
+
smtp-port:
|
|
30
30
|
description: 'Emails: SMTP port number'
|
|
31
|
-
|
|
31
|
+
smtp-user:
|
|
32
32
|
description: 'Emails: SMTP username'
|
|
33
|
-
|
|
33
|
+
smtp-pass:
|
|
34
34
|
description: 'Emails: SMTP password'
|
|
35
35
|
bunnynet-api-key:
|
|
36
36
|
description: 'bunny.net API key (additional CDN layer)'
|
|
@@ -138,11 +138,11 @@ runs:
|
|
|
138
138
|
${{ steps.npm-paths.outputs.LIB_PATH }}
|
|
139
139
|
${{ steps.npm-paths.outputs.BIN_PATH }}
|
|
140
140
|
~/.npm-global/bin
|
|
141
|
-
key: ${{ runner.os }}-npm-g-firebase-tools-13.7.
|
|
141
|
+
key: ${{ runner.os }}-npm-g-firebase-tools-13.7.2
|
|
142
142
|
|
|
143
143
|
- if: github.event_name == 'push' && steps.npm-g-cache.outputs.cache-hit != 'true'
|
|
144
144
|
shell: bash
|
|
145
|
-
run: npm i --location=global firebase-tools@13.7.
|
|
145
|
+
run: npm i --location=global firebase-tools@13.7.2
|
|
146
146
|
|
|
147
147
|
- if: github.event_name == 'push'
|
|
148
148
|
uses: dorny/paths-filter@v3.0.2
|
|
@@ -258,10 +258,10 @@ runs:
|
|
|
258
258
|
MAIL_SENDER: ${{ inputs.mail-sender }}
|
|
259
259
|
MAIL_SENDER_NAME: ${{ inputs.mail-sender-name }}
|
|
260
260
|
MAIL_REPLY_TO: ${{ inputs.mail-reply-to }}
|
|
261
|
-
SMTP_HOST: ${{ inputs.
|
|
262
|
-
SMTP_PORT: ${{ inputs.
|
|
263
|
-
SMTP_USER: ${{ inputs.
|
|
264
|
-
SMTP_PASS: ${{ inputs.
|
|
261
|
+
SMTP_HOST: ${{ inputs.smtp-host }}
|
|
262
|
+
SMTP_PORT: ${{ inputs.smtp-port }}
|
|
263
|
+
SMTP_USER: ${{ inputs.smtp-user }}
|
|
264
|
+
SMTP_PASS: ${{ inputs.smtp-pass }}
|
|
265
265
|
BUNNYNET_API_KEY: ${{ inputs.bunnynet-api-key }}
|
|
266
266
|
SENDGRID_API_KEY: ${{ inputs.sendgrid-api-key }}
|
|
267
267
|
TINYERP_TOKEN: ${{ inputs.tinyerp-token }}
|
|
@@ -41,10 +41,10 @@ jobs:
|
|
|
41
41
|
mail-sender: ${{ secrets.MAIL_SENDER }}
|
|
42
42
|
mail-sender-name: ${{ secrets.MAIL_SENDER_NAME }}
|
|
43
43
|
mail-reply-to: ${{ secrets.MAIL_REPLY_TO }}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
smtp-host: ${{ secrets.SMTP_HOST }}
|
|
45
|
+
smtp-port: ${{ secrets.SMTP_PORT }}
|
|
46
|
+
smtp-user: ${{ secrets.SMTP_USER }}
|
|
47
|
+
smtp-pass: ${{ secrets.SMTP_PASS }}
|
|
48
48
|
bunnynet-api-key: ${{ secrets.BUNNYNET_API_KEY }}
|
|
49
49
|
sendgrid-api-key: ${{ secrets.SENDGRID_API_KEY }}
|
|
50
50
|
tinyerp-token: ${{ secrets.TINYERP_TOKEN }}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/feeds": "^2.12.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.12.
|
|
20
|
-
"@cloudcommerce/passport": "^2.12.
|
|
18
|
+
"@cloudcommerce/feeds": "^2.12.2",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.12.2",
|
|
20
|
+
"@cloudcommerce/passport": "^2.12.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@cloudcommerce/api": "^2.12.
|
|
23
|
-
"@cloudcommerce/firebase": "^2.12.
|
|
24
|
-
"@cloudcommerce/ssr": "^2.12.
|
|
22
|
+
"@cloudcommerce/api": "^2.12.2",
|
|
23
|
+
"@cloudcommerce/firebase": "^2.12.2",
|
|
24
|
+
"@cloudcommerce/ssr": "^2.12.2",
|
|
25
25
|
"@headlessui/vue": "^1.7.18",
|
|
26
26
|
"micromark": "^4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@cloudcommerce/i18n": "^2.12.
|
|
30
|
-
"@cloudcommerce/storefront": "^2.12.
|
|
31
|
-
"@cloudcommerce/types": "^2.12.
|
|
29
|
+
"@cloudcommerce/i18n": "^2.12.2",
|
|
30
|
+
"@cloudcommerce/storefront": "^2.12.2",
|
|
31
|
+
"@cloudcommerce/types": "^2.12.2",
|
|
32
32
|
"@iconify-json/mingcute": "^1.1.16",
|
|
33
33
|
"photoswipe": "^5.4.3"
|
|
34
34
|
}
|
|
Binary file
|
|
@@ -51,7 +51,7 @@ if (!import.meta.env.SSR) {
|
|
|
51
51
|
if (!returnUrl) {
|
|
52
52
|
const url = new URL(location.toString());
|
|
53
53
|
url.pathname = '/app/';
|
|
54
|
-
url.hash = `#${location.pathname.replace('/app/', '/')}`;
|
|
54
|
+
url.hash = location.hash || `#${location.pathname.replace('/app/', '/')}`;
|
|
55
55
|
loginLinkActionUrl = url.toString();
|
|
56
56
|
}
|
|
57
57
|
watch(isLogged, () => {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"main": "index.js",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cloudcommerce/events": "^2.12.
|
|
19
|
-
"@cloudcommerce/firebase": "^2.12.
|
|
20
|
-
"@cloudcommerce/modules": "^2.12.
|
|
18
|
+
"@cloudcommerce/events": "^2.12.2",
|
|
19
|
+
"@cloudcommerce/firebase": "^2.12.2",
|
|
20
|
+
"@cloudcommerce/modules": "^2.12.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@cloudcommerce/cli": "^2.12.
|
|
29
|
+
"@cloudcommerce/cli": "^2.12.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@cloudcommerce/eslint": "^2.12.
|
|
32
|
+
"@cloudcommerce/eslint": "^2.12.2",
|
|
33
33
|
"husky": "^9.0.10",
|
|
34
34
|
"lint-staged": "^15.2.2"
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.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>",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"packages/!(storefront)/**/*.ts": "eslint --fix"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@commitlint/cli": "^19.2.
|
|
24
|
-
"@commitlint/config-conventional": "^19.
|
|
23
|
+
"@commitlint/cli": "^19.2.2",
|
|
24
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
25
25
|
"@commitlint/rules": "^19.0.3",
|
|
26
|
-
"@types/node": "^18.19.
|
|
26
|
+
"@types/node": "^18.19.31",
|
|
27
27
|
"dotenv": "^16.4.5",
|
|
28
28
|
"eslint": "^8.57.0",
|
|
29
29
|
"husky": "^9.0.11",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"standard-version": "^9.5.0",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
33
33
|
"turbo": "^1.13.2",
|
|
34
|
-
"typescript": "~5.4.
|
|
34
|
+
"typescript": "~5.4.5",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
|
-
"vite": "^5.2.
|
|
37
|
-
"vitest": "^1.
|
|
36
|
+
"vite": "^5.2.8",
|
|
37
|
+
"vitest": "^1.5.0",
|
|
38
38
|
"zx": "^7.2.3",
|
|
39
|
-
"@cloudcommerce/eslint": "2.
|
|
39
|
+
"@cloudcommerce/eslint": "2.13.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"fix-install": "bash scripts/pre-install.sh && pnpm i",
|
package/packages/api/types.d.ts
CHANGED
|
@@ -369,7 +369,7 @@ type EventsResult<TEndpoint extends EventsEndpoint> = {
|
|
|
369
369
|
resource?: string,
|
|
370
370
|
authentication_id?: ResourceId | null,
|
|
371
371
|
resource_id?: ResourceId,
|
|
372
|
-
action:
|
|
372
|
+
action: 'create' | 'update' | 'delete',
|
|
373
373
|
modified_fields: string[],
|
|
374
374
|
method?: number | undefined,
|
|
375
375
|
endpoint?: string,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-affiliate-program",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app for simple affiliate program",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@cloudcommerce/api": "workspace:*",
|
|
29
29
|
"@cloudcommerce/firebase": "workspace:*",
|
|
30
30
|
"firebase-admin": "^12.0.0",
|
|
31
|
-
"firebase-functions": "^4.
|
|
31
|
+
"firebase-functions": "^4.9.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app for Correios shipping calculation",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"files": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@google-cloud/pubsub": "^4.3.3",
|
|
36
36
|
"axios": "^1.6.8",
|
|
37
37
|
"firebase-admin": "^12.0.0",
|
|
38
|
-
"firebase-functions": "^4.
|
|
38
|
+
"firebase-functions": "^4.9.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@cloudcommerce/test-base": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-datafrete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app to integrate Datafrete shipping gateway ",
|
|
6
6
|
"main": "lib/datafrete.js",
|
|
7
7
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
35
35
|
"axios": "^1.6.8",
|
|
36
36
|
"firebase-admin": "^12.0.0",
|
|
37
|
-
"firebase-functions": "^4.
|
|
37
|
+
"firebase-functions": "^4.9.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -48,9 +48,7 @@ export default async (trigger, application, order) => {
|
|
|
48
48
|
let html;
|
|
49
49
|
let templateId;
|
|
50
50
|
if (action !== 'delete') {
|
|
51
|
-
const triggerBody = trigger.body;
|
|
52
51
|
const resourceId = trigger.resource_id;
|
|
53
|
-
const insertedId = triggerBody._id || null;
|
|
54
52
|
const orderId = resourceId;
|
|
55
53
|
if (store && order && order.buyers && order.buyers) {
|
|
56
54
|
let checkStatus = order.status;
|
|
@@ -65,12 +63,13 @@ export default async (trigger, application, order) => {
|
|
|
65
63
|
if (Array.isArray(order[subresource])) {
|
|
66
64
|
const sortedRecords = order[subresource]
|
|
67
65
|
.sort((a, b) => (a.date_time > b.date_time ? -1 : 1));
|
|
68
|
-
lastValidRecord = sortedRecords.find(({ status }) =>
|
|
66
|
+
lastValidRecord = sortedRecords.find(({ status }) => {
|
|
67
|
+
return orderStatus.includes(status);
|
|
68
|
+
});
|
|
69
69
|
if (lastValidRecord) {
|
|
70
70
|
checkStatus = lastValidRecord.status;
|
|
71
71
|
}
|
|
72
|
-
isCustomerNotified = Boolean(
|
|
73
|
-
.find((entry) => entry._id === insertedId && entry.customer_notified));
|
|
72
|
+
isCustomerNotified = Boolean(lastValidRecord.customer_notified);
|
|
74
73
|
if (!isCustomerNotified) {
|
|
75
74
|
const lastNotification = sortedRecords.find((entry) => entry.customer_notified);
|
|
76
75
|
if (lastNotification) {
|
|
@@ -156,7 +155,7 @@ export default async (trigger, application, order) => {
|
|
|
156
155
|
});
|
|
157
156
|
// logger.log('>> Email sent');
|
|
158
157
|
if (subresource === 'payments_history' || subresource === 'fulfillment') {
|
|
159
|
-
await updateOrderSubresource(orderId, subresource, lastValidRecord
|
|
158
|
+
await updateOrderSubresource(orderId, subresource, lastValidRecord);
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-orders.js","sourceRoot":"","sources":["../../src/functios-lib/handle-orders.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAE9C,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,MAAM;IACN,YAAY;IACZ,oBAAoB;IACpB,UAAU;IACV,UAAU;IACV,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,oBAAoB;IACpB,mBAAmB;IACnB,SAAS;IACT,qBAAqB;IACrB,WAAW;IACX,uBAAuB;IACvB,uBAAuB;IACvB,UAAU;CACX,CAAC;AAEF,eAAe,KAAK,EAClB,OAAqC,EACrC,WAAoC,EACpC,KAAa,EACb,EAAE;IACF,MAAM,OAAO,GAAG;QACd,GAAG,WAAW,CAAC,IAAI;QACnB,GAAG,WAAW,CAAC,WAAW;KAC3B,CAAC;IAEF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,yBAAyB;IACzB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,cAAc,GAAoD,EAAE,CAAC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K;wCACL,IAAI;wCACJ,aAAa;qCACd;oCACD,WAAW;iCACZ,CACF,CAAC;gCACF,+BAA+B;gCAC/B,IAAI,WAAW,KAAK,kBAAkB,IAAI,WAAW,KAAK,aAAa,EAAE,CAAC;oCACxE,MAAM,sBAAsB,CAC1B,OAAO,EACP,WAAW,EACX,eAAe,CAChB,CAAC;gCACJ,CAAC;4BACH,CAAC;wBACH,CAAC;wBACD,sCAAsC;oBACxC,CAAC;yBAAM,CAAC;wBACN,MAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;oBAC/C,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import api from '@cloudcommerce/api';
|
|
2
2
|
import config from '@cloudcommerce/firebase/lib/config';
|
|
3
3
|
|
|
4
|
-
const updateOrderSubresource = (orderId, subresource, lastValidRecord
|
|
5
|
-
const statusRecordId = lastValidRecord ? lastValidRecord._id : insertedId;
|
|
4
|
+
const updateOrderSubresource = (orderId, subresource, lastValidRecord) => {
|
|
6
5
|
const body = {
|
|
7
6
|
customer_notified: true,
|
|
8
7
|
};
|
|
9
|
-
return api.patch(`orders/${orderId}/${subresource}/${
|
|
8
|
+
return api.patch(`orders/${orderId}/${subresource}/${lastValidRecord._id}`, body);
|
|
10
9
|
};
|
|
11
10
|
const toCamelCase = (status) => {
|
|
12
11
|
return status.replace(/^([A-Z])|[\s-_](\w)/g, (p1, p2) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/functios-lib/utils.ts"],"names":[],"mappings":"AACA,OAAO,G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AAI,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": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce default transactional email app",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"files": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@cloudcommerce/firebase": "workspace:*",
|
|
31
31
|
"@ecomplus/transactional-mails": "^2.0.3",
|
|
32
32
|
"firebase-admin": "^12.0.0",
|
|
33
|
-
"firebase-functions": "^4.
|
|
33
|
+
"firebase-functions": "^4.9.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -57,14 +57,12 @@ export default async (
|
|
|
57
57
|
let templateId: string | undefined;
|
|
58
58
|
|
|
59
59
|
if (action !== 'delete') {
|
|
60
|
-
const triggerBody = trigger.body;
|
|
61
60
|
const resourceId = trigger.resource_id;
|
|
62
|
-
const insertedId = triggerBody._id || null;
|
|
63
61
|
const orderId = resourceId;
|
|
64
62
|
|
|
65
63
|
if (store && order && order.buyers && order.buyers) {
|
|
66
64
|
let checkStatus: string | undefined = order.status;
|
|
67
|
-
let lastValidRecord: { status: string
|
|
65
|
+
let lastValidRecord: { status: string, customer_notified: boolean, _id: string };
|
|
68
66
|
const customerId = order.buyers[0]._id;
|
|
69
67
|
const customer = (await api.get(`customers/${customerId}`)).data;
|
|
70
68
|
// fulfillment payments_history
|
|
@@ -79,21 +77,15 @@ export default async (
|
|
|
79
77
|
a: { [x: string]: any; },
|
|
80
78
|
b: { [x: string]: any; },
|
|
81
79
|
) => (a.date_time > b.date_time ? -1 : 1));
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
);
|
|
86
|
-
|
|
80
|
+
lastValidRecord = sortedRecords.find(({ status }) => {
|
|
81
|
+
return orderStatus.includes(status);
|
|
82
|
+
});
|
|
87
83
|
if (lastValidRecord) {
|
|
88
84
|
checkStatus = lastValidRecord.status;
|
|
89
85
|
}
|
|
90
|
-
|
|
91
|
-
isCustomerNotified = Boolean(order[subresource]
|
|
92
|
-
.find((entry) => entry._id === insertedId && entry.customer_notified));
|
|
93
|
-
|
|
86
|
+
isCustomerNotified = Boolean(lastValidRecord.customer_notified);
|
|
94
87
|
if (!isCustomerNotified) {
|
|
95
88
|
const lastNotification = sortedRecords.find((entry) => entry.customer_notified);
|
|
96
|
-
|
|
97
89
|
if (lastNotification) {
|
|
98
90
|
lastNotifiedStatus = lastNotification.status;
|
|
99
91
|
}
|
|
@@ -212,7 +204,6 @@ export default async (
|
|
|
212
204
|
orderId,
|
|
213
205
|
subresource,
|
|
214
206
|
lastValidRecord,
|
|
215
|
-
insertedId,
|
|
216
207
|
);
|
|
217
208
|
}
|
|
218
209
|
}
|
|
@@ -5,15 +5,12 @@ import config from '@cloudcommerce/firebase/lib/config';
|
|
|
5
5
|
const updateOrderSubresource = (
|
|
6
6
|
orderId: ResourceId,
|
|
7
7
|
subresource: string,
|
|
8
|
-
lastValidRecord: {
|
|
9
|
-
insertedId: string,
|
|
8
|
+
lastValidRecord: Record<string, any> & { _id: string },
|
|
10
9
|
) => {
|
|
11
|
-
const statusRecordId: string = lastValidRecord ? lastValidRecord._id : insertedId;
|
|
12
|
-
|
|
13
10
|
const body = {
|
|
14
11
|
customer_notified: true,
|
|
15
12
|
};
|
|
16
|
-
return api.patch(`orders/${orderId}/${subresource}/${
|
|
13
|
+
return api.patch(`orders/${orderId}/${subresource}/${lastValidRecord._id}`, body);
|
|
17
14
|
};
|
|
18
15
|
|
|
19
16
|
const toCamelCase = (status: string) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-fb-conversions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.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
|
"files": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@cloudcommerce/firebase": "workspace:*",
|
|
30
30
|
"facebook-nodejs-business-sdk": "^19.0.2",
|
|
31
31
|
"firebase-admin": "^12.0.0",
|
|
32
|
-
"firebase-functions": "^4.
|
|
32
|
+
"firebase-functions": "^4.9.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-flash-courier",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app to integrate Flash Courier",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@cloudcommerce/api": "workspace:*",
|
|
33
33
|
"@cloudcommerce/firebase": "workspace:*",
|
|
34
34
|
"axios": "^1.6.8",
|
|
35
|
-
"firebase-functions": "^4.
|
|
35
|
+
"firebase-functions": "^4.9.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-frenet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.0",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app for Frenet shipping calculation",
|
|
6
6
|
"main": "lib/frenet.js",
|
|
7
7
|
"exports": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@cloudcommerce/firebase": "workspace:*",
|
|
35
35
|
"axios": "^1.6.8",
|
|
36
36
|
"firebase-admin": "^12.0.0",
|
|
37
|
-
"firebase-functions": "^4.
|
|
37
|
+
"firebase-functions": "^4.9.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@cloudcommerce/test-base": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.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": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@cloudcommerce/firebase": "workspace:*",
|
|
35
35
|
"axios": "^1.6.8",
|
|
36
36
|
"firebase-admin": "^12.0.0",
|
|
37
|
-
"firebase-functions": "^4.
|
|
37
|
+
"firebase-functions": "^4.9.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-google-analytics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.13.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
|
"files": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@cloudcommerce/firebase": "workspace:*",
|
|
30
30
|
"axios": "^1.6.8",
|
|
31
31
|
"firebase-admin": "^12.0.0",
|
|
32
|
-
"firebase-functions": "^4.
|
|
32
|
+
"firebase-functions": "^4.9.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@cloudcommerce/types": "workspace:*",
|