cloudcommerce 0.2.1 → 0.2.2
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/.eslintrc.cjs +1 -93
- package/CHANGELOG.md +23 -0
- package/ecomplus-stores/monocard/functions/ssr/package.json +2 -1
- package/ecomplus-stores/tia-sonia/functions/ssr/package.json +2 -1
- package/package.json +6 -6
- 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 +4 -4
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +2 -2
- package/packages/apps/fb-conversions/package.json +4 -4
- package/packages/apps/frenet/package.json +4 -4
- package/packages/apps/galaxpay/lib/galaxpay-list-payments.d.ts +2 -2
- package/packages/apps/galaxpay/lib/galaxpay.d.ts +2 -2
- package/packages/apps/galaxpay/package.json +4 -4
- package/packages/apps/google-analytics/package.json +4 -4
- package/packages/apps/infinitepay/package.json +4 -4
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mercadopago/package.json +4 -4
- package/packages/apps/pagarme/package.json +4 -4
- package/packages/apps/paghiper/CHANGELOG.md +1 -0
- package/packages/apps/paghiper/README.md +1 -0
- package/packages/apps/paghiper/lib/functions-lib/create-axios.d.ts +2 -0
- package/packages/apps/paghiper/lib/functions-lib/create-axios.js +22 -0
- package/packages/apps/paghiper/lib/functions-lib/create-axios.js.map +1 -0
- package/packages/apps/paghiper/lib/functions-lib/handle-webhook.d.ts +3 -0
- package/packages/apps/paghiper/lib/functions-lib/handle-webhook.js +154 -0
- package/packages/apps/paghiper/lib/functions-lib/handle-webhook.js.map +1 -0
- package/packages/apps/paghiper/lib/index.d.ts +1 -0
- package/packages/apps/paghiper/lib/index.js +2 -0
- package/packages/apps/paghiper/lib/index.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper-create-transaction.d.ts +71 -0
- package/packages/apps/paghiper/lib/paghiper-create-transaction.js +199 -0
- package/packages/apps/paghiper/lib/paghiper-create-transaction.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper-list-payments.d.ts +7 -0
- package/packages/apps/paghiper/lib/paghiper-list-payments.js +97 -0
- package/packages/apps/paghiper/lib/paghiper-list-payments.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper-webhook.d.ts +5 -0
- package/packages/apps/paghiper/lib/paghiper-webhook.js +18 -0
- package/packages/apps/paghiper/lib/paghiper-webhook.js.map +1 -0
- package/packages/apps/paghiper/lib/paghiper.d.ts +76 -0
- package/packages/apps/paghiper/lib/paghiper.js +12 -0
- package/packages/apps/paghiper/lib/paghiper.js.map +1 -0
- package/packages/apps/paghiper/package.json +36 -0
- package/packages/apps/paghiper/src/functions-lib/create-axios.ts +21 -0
- package/packages/apps/paghiper/src/functions-lib/handle-webhook.ts +176 -0
- package/packages/apps/paghiper/src/index.ts +1 -0
- package/packages/apps/paghiper/src/paghiper-create-transaction.ts +242 -0
- package/packages/apps/paghiper/src/paghiper-list-payments.ts +127 -0
- package/packages/apps/paghiper/src/paghiper-webhook.ts +17 -0
- package/packages/apps/paghiper/src/paghiper.ts +12 -0
- package/packages/apps/paghiper/tsconfig.json +6 -0
- package/packages/apps/paghiper/types/config-app.d.ts +34 -0
- package/packages/apps/paghiper/webhook.js +1 -0
- package/packages/apps/pix/package.json +4 -4
- package/packages/apps/tiny-erp/lib/integration/post-tiny-erp.js.map +1 -1
- package/packages/apps/tiny-erp/package.json +4 -4
- package/packages/apps/tiny-erp/src/integration/post-tiny-erp.ts +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- package/packages/events/lib/firebase.js +2 -0
- package/packages/events/lib/firebase.js.map +1 -1
- package/packages/events/package.json +4 -3
- package/packages/events/src/firebase.ts +2 -0
- package/packages/firebase/lib/config.d.ts +3 -0
- package/packages/firebase/lib/config.js +3 -0
- package/packages/firebase/lib/config.js.map +1 -1
- package/packages/firebase/package.json +3 -3
- package/packages/firebase/src/config.ts +3 -0
- package/packages/i18n/package.json +1 -1
- package/packages/modules/lib/firebase/call-app-module.js +12 -0
- package/packages/modules/lib/firebase/call-app-module.js.map +1 -1
- package/packages/modules/package.json +6 -5
- package/packages/modules/src/firebase/call-app-module.ts +12 -0
- package/packages/passport/package.json +3 -3
- package/packages/ssr/package.json +4 -4
- package/packages/storefront/.base.eslintrc.cjs +93 -0
- package/packages/storefront/.eslintrc.cjs +1 -1
- package/packages/storefront/astro.config.mjs +2 -0
- package/packages/storefront/client.d.ts +1 -1
- package/packages/storefront/config/storefront.cms.mjs +2 -2
- package/packages/storefront/dist/client/PitchBar.5ae15bda.js +1 -0
- package/packages/storefront/dist/client/Prices.248d1aae.js +1 -0
- package/packages/storefront/dist/client/ProductCard.4848304c.js +1 -0
- package/packages/storefront/dist/client/assets/{_...slug_.fea84512.css → _...slug_.b701cbb1.css} +1 -1
- package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.2d01aaa2.js +1 -0
- package/packages/storefront/dist/client/chunks/ecom-utils.cd6787a7.js +1 -0
- package/packages/storefront/dist/client/chunks/modules-info.fcab5bba.js +1 -0
- package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.923790dc.js +1 -0
- package/packages/storefront/dist/client/chunks/session-utm.ceebe967.js +1 -0
- package/packages/storefront/dist/client/client.2356f675.js +1 -0
- package/packages/storefront/dist/client/{hoisted.4671ed15.js → hoisted.11b849a7.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/entry.mjs +432 -92
- package/packages/storefront/package.json +3 -3
- package/packages/storefront/src/lib/components/Carousel.vue +1 -0
- package/packages/storefront/src/lib/components/CarouselControl.vue +1 -1
- package/packages/storefront/src/lib/components/PitchBar.vue +27 -10
- package/packages/storefront/src/lib/components/StickyHeader.vue +43 -0
- package/packages/storefront/src/lib/layouts/Base.astro +6 -0
- package/packages/storefront/src/lib/layouts/BaseBody.astro +0 -1
- package/packages/storefront/src/lib/layouts/PagesHeader.astro +24 -3
- package/packages/storefront/src/lib/scripts/modules-info-preset.ts +60 -0
- package/packages/storefront/src/lib/ssr/Picture.astro +13 -0
- package/packages/storefront/src/lib/ssr/image.ts +12 -2
- package/packages/storefront/src/lib/ssr-context.ts +18 -4
- package/packages/storefront/src/lib/state/modules-info.ts +44 -14
- package/packages/storefront/src/lib/types/cms-settings.d.ts +2 -1
- package/packages/storefront/storefront.config.mjs +20 -8
- package/packages/storefront/tailwind.config.cjs +1 -1
- package/packages/types/index.ts +17 -0
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/PitchBar.afe7ff5c.js +0 -1
- package/packages/storefront/dist/client/Prices.eaf8a32c.js +0 -1
- package/packages/storefront/dist/client/ProductCard.1106b153.js +0 -1
- package/packages/storefront/dist/client/chunks/Prices.vue_vue_type_script_setup_true_lang.781b6501.js +0 -1
- package/packages/storefront/dist/client/chunks/ecom-utils.63984324.js +0 -1
- package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.fa6cdb60.js +0 -1
- package/packages/storefront/dist/client/chunks/session-utm.2de8b604.js +0 -1
- package/packages/storefront/dist/client/client.367a6497.js +0 -1
package/.eslintrc.cjs
CHANGED
|
@@ -1,95 +1,3 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
browser: true,
|
|
4
|
-
es2020: true,
|
|
5
|
-
node: true,
|
|
6
|
-
},
|
|
7
|
-
extends: [
|
|
8
|
-
'plugin:vue/essential',
|
|
9
|
-
'airbnb-base',
|
|
10
|
-
],
|
|
11
|
-
parserOptions: {
|
|
12
|
-
ecmaVersion: 2020,
|
|
13
|
-
parser: '@typescript-eslint/parser',
|
|
14
|
-
sourceType: 'module',
|
|
15
|
-
},
|
|
16
|
-
plugins: [
|
|
17
|
-
'vue',
|
|
18
|
-
'@typescript-eslint',
|
|
19
|
-
],
|
|
20
|
-
ignorePatterns: [
|
|
21
|
-
'**/dist',
|
|
22
|
-
'**/types/*.d.ts',
|
|
23
|
-
],
|
|
24
|
-
settings: {
|
|
25
|
-
'import/resolver': {
|
|
26
|
-
node: {
|
|
27
|
-
extensions: ['.js', '.ts'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
rules: {
|
|
32
|
-
'import/no-unresolved': [
|
|
33
|
-
'error',
|
|
34
|
-
{
|
|
35
|
-
ignore: [
|
|
36
|
-
// https://github.com/import-js/eslint-plugin-import/issues/1810
|
|
37
|
-
'firebase-functions/logger',
|
|
38
|
-
'firebase-functions/v2/https',
|
|
39
|
-
'firebase-functions/v1',
|
|
40
|
-
'firebase-admin/app',
|
|
41
|
-
'firebase-admin/firestore',
|
|
42
|
-
'firebase-admin/auth',
|
|
43
|
-
'@astrojs/[^/]+$',
|
|
44
|
-
'astro/config',
|
|
45
|
-
'unocss/astro',
|
|
46
|
-
'unplugin-vue-components/*',
|
|
47
|
-
'unplugin-auto-import/*',
|
|
48
|
-
'@@.*',
|
|
49
|
-
'content/.*',
|
|
50
|
-
'~/.*',
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
'no-unused-vars': 'off',
|
|
55
|
-
'@typescript-eslint/no-unused-vars': ['error'],
|
|
56
|
-
'prefer-template': 'warn',
|
|
57
|
-
'no-nested-ternary': 'warn',
|
|
58
|
-
'no-await-in-loop': 'warn',
|
|
59
|
-
'no-shadow': 'warn',
|
|
60
|
-
'no-param-reassign': 'off',
|
|
61
|
-
'no-underscore-dangle': 'off',
|
|
62
|
-
'no-continue': 'off',
|
|
63
|
-
'lines-between-class-members': 'off',
|
|
64
|
-
'arrow-body-style': 'off',
|
|
65
|
-
'vue/no-multiple-template-root': 'off',
|
|
66
|
-
'import/extensions': [
|
|
67
|
-
'error',
|
|
68
|
-
'ignorePackages',
|
|
69
|
-
{ js: 'ignorePackages', ts: 'never' },
|
|
70
|
-
],
|
|
71
|
-
'padded-blocks': [
|
|
72
|
-
'error',
|
|
73
|
-
'never',
|
|
74
|
-
],
|
|
75
|
-
'padding-line-between-statements': [
|
|
76
|
-
'error',
|
|
77
|
-
{ blankLine: 'always', prev: ['directive', 'import', 'export'], next: '*' },
|
|
78
|
-
{ blankLine: 'always', prev: '*', next: ['directive', 'export'] },
|
|
79
|
-
{ blankLine: 'never', prev: 'directive', next: 'directive' },
|
|
80
|
-
{ blankLine: 'never', prev: 'import', next: 'import' },
|
|
81
|
-
],
|
|
82
|
-
'import/order': [
|
|
83
|
-
'error',
|
|
84
|
-
{ groups: ['type', 'builtin', 'external', 'parent', 'sibling', 'index'] },
|
|
85
|
-
],
|
|
86
|
-
'no-plusplus': [
|
|
87
|
-
'error',
|
|
88
|
-
{ allowForLoopAfterthoughts: true },
|
|
89
|
-
],
|
|
90
|
-
'no-multi-spaces': [
|
|
91
|
-
'error',
|
|
92
|
-
{ ignoreEOLComments: true },
|
|
93
|
-
],
|
|
94
|
-
},
|
|
2
|
+
extends: './packages/storefront/.base.eslintrc.cjs',
|
|
95
3
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.2.2](https://github.com/ecomplus/cloud-commerce/compare/v0.2.1...v0.2.2) (2023-01-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **paghiper:** Create PagHiper app from https://github.com/ecomplus/app-paghiper ([#105](https://github.com/ecomplus/cloud-commerce/issues/105)) ([5f1c7c5](https://github.com/ecomplus/cloud-commerce/commit/5f1c7c5f5ba0f64d20637f403339e61c595e4633))
|
|
11
|
+
* **storefront:** Add /img and /assets Vite aliases to public dir on Astro config ([93a9da3](https://github.com/ecomplus/cloud-commerce/commit/93a9da389817818f0ba36e5e85353267d63e66ca))
|
|
12
|
+
* **storefront:** Add `parseShippingPhrase` util to modules info state exports ([6645159](https://github.com/ecomplus/cloud-commerce/commit/6645159c1f81a24898bc810d7206db7ddfa094df))
|
|
13
|
+
* **storefront:** Export new `getAspecRatio` on SSR image helpers ([7626a53](https://github.com/ecomplus/cloud-commerce/commit/7626a532ba400c58b0ba0d7b5c741bf905203ec6))
|
|
14
|
+
* **storefront:** Load modules info presets (payment, shipping) from CMS settings ([56afb71](https://github.com/ecomplus/cloud-commerce/commit/56afb71c9b05c34954b4ea56adf304abc0b281cb))
|
|
15
|
+
* **storefront:** New `ssr/Picture.astro` to automatically handle aspect ration for local images ([3da9bb2](https://github.com/ecomplus/cloud-commerce/commit/3da9bb2831c1f110497993e2f1c7fd1598f6b56b))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **storefront:** Add SSR `global.storefront.onLoad` emitter and async load modules info preset ([235934d](https://github.com/ecomplus/cloud-commerce/commit/235934d46295ca41496ceb2be305c765d1aa337c))
|
|
21
|
+
* **storefront:** Also load modules info preset on SSR, prevents hydration mismatch ([911ab0e](https://github.com/ecomplus/cloud-commerce/commit/911ab0e6951fdbc82202e396aff60337a25fb49d))
|
|
22
|
+
* **storefront:** Config fallbacks to `config.json` when `ECOM_STORE_ID` not set (dev) ([13d8db7](https://github.com/ecomplus/cloud-commerce/commit/13d8db713928328ba229e58891fd5ce8b04d134c))
|
|
23
|
+
* **storefront:** Fix merged `CmsSettings` typedef and update `window.storefront` interface ([2dfee42](https://github.com/ecomplus/cloud-commerce/commit/2dfee422a9f782daaca8d37568d56fdad2c93a2a))
|
|
24
|
+
* **storefront:** Move base ES Lint config to Storefront codebase to be imported ([62c8ba4](https://github.com/ecomplus/cloud-commerce/commit/62c8ba446a88f68192d113bb9bbfd14d436db64d))
|
|
25
|
+
* **storefront:** Reduce default darken factor for brand colors pallete (bold) ([6441ef8](https://github.com/ecomplus/cloud-commerce/commit/6441ef8fa836958c0cf2f6e66df496e8934cf4ef))
|
|
26
|
+
* **storefront:** Update `PitchBar` to use `parseShippingPhrase` and check number of slides ([9c0fe4a](https://github.com/ecomplus/cloud-commerce/commit/9c0fe4aa48ceca87a433497edc5fd4f9d037f71f))
|
|
27
|
+
|
|
5
28
|
### [0.2.1](https://github.com/ecomplus/cloud-commerce/compare/v0.2.0...v0.2.1) (2023-01-21)
|
|
6
29
|
|
|
7
30
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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,12 +20,12 @@
|
|
|
20
20
|
"@commitlint/config-conventional": "^17.4.2",
|
|
21
21
|
"@commitlint/rules": "^17.4.2",
|
|
22
22
|
"@types/node": "^18.11.18",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^5.48.
|
|
24
|
-
"@typescript-eslint/parser": "^5.48.
|
|
25
|
-
"esbuild": "^0.17.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
|
24
|
+
"@typescript-eslint/parser": "^5.48.2",
|
|
25
|
+
"esbuild": "^0.17.4",
|
|
26
26
|
"eslint": "^8.32.0",
|
|
27
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
28
|
-
"eslint-plugin-import": "^2.27.
|
|
28
|
+
"eslint-plugin-import": "^2.27.5",
|
|
29
29
|
"eslint-plugin-vue": "^9.9.0",
|
|
30
30
|
"husky": "^8.0.3",
|
|
31
31
|
"standard-version": "^9.5.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typescript": "^4.9.4",
|
|
35
35
|
"uglify-js": "^3.17.4",
|
|
36
36
|
"vite": "^3.2.5",
|
|
37
|
-
"vitest": "^0.
|
|
37
|
+
"vitest": "^0.28.1",
|
|
38
38
|
"zx": "^7.1.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-correios",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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.2.
|
|
23
|
+
"axios": "^1.2.3",
|
|
24
24
|
"xml2js": "^0.4.23"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-datafrete",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
|
|
6
6
|
"main": "lib/datafrete.js",
|
|
7
7
|
"exports": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
28
|
"@ecomplus/utils": "1.5.0-rc.3",
|
|
29
|
-
"axios": "^1.2.
|
|
30
|
-
"firebase-admin": "^11.
|
|
31
|
-
"firebase-functions": "^4.
|
|
29
|
+
"axios": "^1.2.3",
|
|
30
|
+
"firebase-admin": "^11.5.0",
|
|
31
|
+
"firebase-functions": "^4.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-emails",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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": "^1.11.1",
|
|
26
|
-
"firebase-admin": "^11.
|
|
26
|
+
"firebase-admin": "^11.5.0",
|
|
27
27
|
"firebase-functions": "^3.24.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-fb-conversions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"facebook-nodejs-business-sdk": "^15.0.
|
|
25
|
-
"firebase-admin": "^11.
|
|
26
|
-
"firebase-functions": "^4.
|
|
24
|
+
"facebook-nodejs-business-sdk": "^15.0.2",
|
|
25
|
+
"firebase-admin": "^11.5.0",
|
|
26
|
+
"firebase-functions": "^4.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-frenet",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
|
|
6
6
|
"main": "lib/frenet.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.2.
|
|
29
|
-
"firebase-admin": "^11.
|
|
30
|
-
"firebase-functions": "^4.
|
|
28
|
+
"axios": "^1.2.3",
|
|
29
|
+
"firebase-admin": "^11.5.0",
|
|
30
|
+
"firebase-functions": "^4.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AppModuleBody, ListPaymentsResponse } from '@cloudcommerce/types';
|
|
2
|
-
declare const _default: (data: AppModuleBody) => Promise<{
|
|
2
|
+
declare const _default: (data: AppModuleBody) => Promise<ListPaymentsResponse | {
|
|
3
3
|
status: number;
|
|
4
4
|
error: string;
|
|
5
5
|
message: string;
|
|
6
|
-
}
|
|
6
|
+
}>;
|
|
7
7
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AppModuleBody } from '@cloudcommerce/types';
|
|
2
2
|
import '@cloudcommerce/firebase/lib/init';
|
|
3
|
-
export declare const listPayments: (modBody: AppModuleBody) => Promise<{
|
|
3
|
+
export declare const listPayments: (modBody: AppModuleBody) => Promise<import("@cloudcommerce/types").ListPaymentsResponse | {
|
|
4
4
|
status: number;
|
|
5
5
|
error: string;
|
|
6
6
|
message: string;
|
|
7
|
-
}
|
|
7
|
+
}>;
|
|
8
8
|
export declare const createTransaction: (modBody: AppModuleBody) => Promise<{
|
|
9
9
|
status: number;
|
|
10
10
|
error: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-galaxpay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.2.
|
|
29
|
-
"firebase-admin": "^11.
|
|
30
|
-
"firebase-functions": "^4.
|
|
28
|
+
"axios": "^1.2.3",
|
|
29
|
+
"firebase-admin": "^11.5.0",
|
|
30
|
+
"firebase-functions": "^4.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-google-analytics",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@cloudcommerce/api": "workspace:*",
|
|
23
23
|
"@cloudcommerce/firebase": "workspace:*",
|
|
24
|
-
"axios": "^1.2.
|
|
25
|
-
"firebase-admin": "^11.
|
|
26
|
-
"firebase-functions": "^4.
|
|
24
|
+
"axios": "^1.2.3",
|
|
25
|
+
"firebase-admin": "^11.5.0",
|
|
26
|
+
"firebase-functions": "^4.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-infinitepay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate InfinitePay",
|
|
6
6
|
"main": "lib/infinitepay.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.2.
|
|
28
|
+
"axios": "^1.2.3",
|
|
29
29
|
"crypto-js": "^4.1.1",
|
|
30
|
-
"firebase-admin": "^11.
|
|
31
|
-
"firebase-functions": "^4.
|
|
30
|
+
"firebase-admin": "^11.5.0",
|
|
31
|
+
"firebase-functions": "^4.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-jadlog",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
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.2.
|
|
23
|
+
"axios": "^1.2.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@cloudcommerce/types": "workspace:*"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-mercadopago",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
|
|
6
6
|
"main": "lib/mercadopago.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.2.
|
|
29
|
-
"firebase-admin": "^11.
|
|
30
|
-
"firebase-functions": "^4.
|
|
28
|
+
"axios": "^1.2.3",
|
|
29
|
+
"firebase-admin": "^11.5.0",
|
|
30
|
+
"firebase-functions": "^4.2.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@cloudcommerce/types": "workspace:*",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-pagarme",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
|
|
6
6
|
"main": "lib/pagarme.js",
|
|
7
7
|
"exports": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@cloudcommerce/api": "workspace:*",
|
|
27
27
|
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
-
"axios": "^1.2.
|
|
29
|
-
"firebase-admin": "^11.
|
|
30
|
-
"firebase-functions": "^4.
|
|
28
|
+
"axios": "^1.2.3",
|
|
29
|
+
"firebase-admin": "^11.5.0",
|
|
30
|
+
"firebase-functions": "^4.2.0",
|
|
31
31
|
"pagarme": "^4.29.0",
|
|
32
32
|
"qs": "^6.11.0"
|
|
33
33
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Please refer to GitHub [repository releases](https://github.com/ecomplus/cloud-commerce/releases) or monorepo unified [CHANGELOG.md](https://github.com/ecomplus/cloud-commerce/blob/main/CHANGELOG.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `@cloudcommerce/app-paghiper`
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Axios HTTP client
|
|
2
|
+
import axios from 'axios';
|
|
3
|
+
|
|
4
|
+
// returns a reusable axios instance for PagHiper API
|
|
5
|
+
export default (isPix) => axios.create({
|
|
6
|
+
// https://github.com/axios/axios#creating-an-instance
|
|
7
|
+
baseURL: isPix ? 'https://pix.paghiper.com/'
|
|
8
|
+
: 'https://api.paghiper.com/',
|
|
9
|
+
headers: {
|
|
10
|
+
'Content-Type': 'application/json;charset=UTF-8',
|
|
11
|
+
Accept: 'application/json',
|
|
12
|
+
'Accept-Charset': 'UTF-8',
|
|
13
|
+
'Accept-Encoding': 'application/json',
|
|
14
|
+
},
|
|
15
|
+
// wait up to 30s
|
|
16
|
+
timeout: 30000,
|
|
17
|
+
validateStatus(status) {
|
|
18
|
+
// success only when received 201
|
|
19
|
+
return status === 201;
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
// # sourceMappingURL=create-axios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-axios.js","sourceRoot":"","sources":["../../src/functions-lib/create-axios.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,qDAAqD;AACrD,eAAe,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;IAC/C,sDAAsD;IACtD,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,2BAA2B;QAC1C,CAAC,CAAC,2BAA2B;IAC/B,OAAO,EAAE;QACP,cAAc,EAAE,gCAAgC;QAChD,MAAM,EAAE,kBAAkB;QAC1B,gBAAgB,EAAE,OAAO;QACzB,iBAAiB,EAAE,kBAAkB;KACtC;IACD,iBAAiB;IACjB,OAAO,EAAE,KAAK;IACd,cAAc,CAAC,MAAM;QACnB,iCAAiC;QACjC,OAAO,MAAM,KAAK,GAAG,CAAC;IACxB,CAAC;CACF,CAAC,CAAC"}
|