@cloudcommerce/app-tiny-erp 0.0.62 → 0.0.63

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.
@@ -1,32 +1,32 @@
1
- @cloudcommerce/app-tiny-erp:build: cache hit, replaying output 82601d1ff0658b41
2
- @cloudcommerce/app-tiny-erp:build: 
3
- @cloudcommerce/app-tiny-erp:build: > @cloudcommerce/app-tiny-erp@0.0.61 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp
4
- @cloudcommerce/app-tiny-erp:build: > sh ../../../scripts/build-lib.sh
5
- @cloudcommerce/app-tiny-erp:build: 
6
- @cloudcommerce/app-tiny-erp:build: 
7
- @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/after-tiny-queue.js
8
- @cloudcommerce/app-tiny-erp:build:  37:32 warning 'data' is already declared in the upper scope on line 29 column 17 no-shadow
9
- @cloudcommerce/app-tiny-erp:build: 
10
- @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js
11
- @cloudcommerce/app-tiny-erp:build:  22:41 warning 'variation' is already declared in the upper scope on line 22 column 11 no-shadow
12
- @cloudcommerce/app-tiny-erp:build:  63:16 warning 'produto' is already declared in the upper scope on line 38 column 30 no-shadow
13
- @cloudcommerce/app-tiny-erp:build:  66:13 warning 'productId' is already declared in the upper scope on line 8 column 15 no-shadow
14
- @cloudcommerce/app-tiny-erp:build:  77:63 warning 'product' is already declared in the upper scope on line 9 column 7 no-shadow
15
- @cloudcommerce/app-tiny-erp:build:  79:13 warning Assignment to property of function parameter 'product' no-param-reassign
16
- @cloudcommerce/app-tiny-erp:build: 
17
- @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js
18
- @cloudcommerce/app-tiny-erp:build:  30:9 warning Assignment to property of function parameter 'tinyObject' no-param-reassign
19
- @cloudcommerce/app-tiny-erp:build: 
20
- @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js
21
- @cloudcommerce/app-tiny-erp:build:  27:16 warning 'data' is already declared in the upper scope on line 17 column 14 no-shadow
22
- @cloudcommerce/app-tiny-erp:build:  32:22 warning Assignment to property of function parameter 'data' no-param-reassign
23
- @cloudcommerce/app-tiny-erp:build:  36:22 warning Assignment to property of function parameter 'data' no-param-reassign
24
- @cloudcommerce/app-tiny-erp:build:  38:13 warning Assignment to property of function parameter 'data' no-param-reassign
25
- @cloudcommerce/app-tiny-erp:build: 
26
- @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js
27
- @cloudcommerce/app-tiny-erp:build:  13:14 warning Do not nest ternary expressions no-nested-ternary
28
- @cloudcommerce/app-tiny-erp:build:  60:21 warning Do not nest ternary expressions no-nested-ternary
29
- @cloudcommerce/app-tiny-erp:build:  117:42 warning 'i' is already declared in the upper scope on line 106 column 45 no-shadow
30
- @cloudcommerce/app-tiny-erp:build: 
31
- @cloudcommerce/app-tiny-erp:build: ✖ 14 problems (0 errors, 14 warnings)
32
- @cloudcommerce/app-tiny-erp:build: 
1
+ @cloudcommerce/app-tiny-erp:build: cache hit, replaying output 9f6bd93684410e8e
2
+ @cloudcommerce/app-tiny-erp:build: 
3
+ @cloudcommerce/app-tiny-erp:build: > @cloudcommerce/app-tiny-erp@0.0.62 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp
4
+ @cloudcommerce/app-tiny-erp:build: > sh ../../../scripts/build-lib.sh
5
+ @cloudcommerce/app-tiny-erp:build: 
6
+ @cloudcommerce/app-tiny-erp:build: 
7
+ @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/after-tiny-queue.js
8
+ @cloudcommerce/app-tiny-erp:build:  37:32 warning 'data' is already declared in the upper scope on line 29 column 17 no-shadow
9
+ @cloudcommerce/app-tiny-erp:build: 
10
+ @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js
11
+ @cloudcommerce/app-tiny-erp:build:  22:41 warning 'variation' is already declared in the upper scope on line 22 column 11 no-shadow
12
+ @cloudcommerce/app-tiny-erp:build:  63:16 warning 'produto' is already declared in the upper scope on line 38 column 30 no-shadow
13
+ @cloudcommerce/app-tiny-erp:build:  66:13 warning 'productId' is already declared in the upper scope on line 8 column 15 no-shadow
14
+ @cloudcommerce/app-tiny-erp:build:  77:63 warning 'product' is already declared in the upper scope on line 9 column 7 no-shadow
15
+ @cloudcommerce/app-tiny-erp:build:  79:13 warning Assignment to property of function parameter 'product' no-param-reassign
16
+ @cloudcommerce/app-tiny-erp:build: 
17
+ @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js
18
+ @cloudcommerce/app-tiny-erp:build:  30:9 warning Assignment to property of function parameter 'tinyObject' no-param-reassign
19
+ @cloudcommerce/app-tiny-erp:build: 
20
+ @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js
21
+ @cloudcommerce/app-tiny-erp:build:  27:16 warning 'data' is already declared in the upper scope on line 17 column 14 no-shadow
22
+ @cloudcommerce/app-tiny-erp:build:  32:22 warning Assignment to property of function parameter 'data' no-param-reassign
23
+ @cloudcommerce/app-tiny-erp:build:  36:22 warning Assignment to property of function parameter 'data' no-param-reassign
24
+ @cloudcommerce/app-tiny-erp:build:  38:13 warning Assignment to property of function parameter 'data' no-param-reassign
25
+ @cloudcommerce/app-tiny-erp:build: 
26
+ @cloudcommerce/app-tiny-erp:build: /home/leo/code/ecomplus/cloud-commerce/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js
27
+ @cloudcommerce/app-tiny-erp:build:  13:14 warning Do not nest ternary expressions no-nested-ternary
28
+ @cloudcommerce/app-tiny-erp:build:  60:21 warning Do not nest ternary expressions no-nested-ternary
29
+ @cloudcommerce/app-tiny-erp:build:  117:42 warning 'i' is already declared in the upper scope on line 106 column 45 no-shadow
30
+ @cloudcommerce/app-tiny-erp:build: 
31
+ @cloudcommerce/app-tiny-erp:build: ✖ 14 problems (0 errors, 14 warnings)
32
+ @cloudcommerce/app-tiny-erp:build: 
package/lib/tiny-erp.js CHANGED
@@ -9,9 +9,10 @@ import handleTinyWebhook from './tiny-webhook.js';
9
9
 
10
10
  const { httpsFunctionOptions } = config.get();
11
11
 
12
- export const tinyErpOnApiEvent = createAppEventsFunction('tinyErp', handleApiEvent);
13
-
14
- export const tinyErpWebhook = onRequest(httpsFunctionOptions, (req, res) => {
15
- handleTinyWebhook(req, res);
16
- });
12
+ export const tinyerp = {
13
+ onStoreEvent: createAppEventsFunction('tinyErp', handleApiEvent),
14
+ webhook: onRequest(httpsFunctionOptions, (req, res) => {
15
+ handleTinyWebhook(req, res);
16
+ }),
17
+ };
17
18
  // # sourceMappingURL=tiny-erp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiny-erp.js","sourceRoot":"","sources":["../src/tiny-erp.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,kCAAkC,CAAC;AAC1C,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,EACL,uBAAuB,GAExB,MAAM,4CAA4C,CAAC;AACpD,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,iBAAiB,MAAM,gBAAgB,CAAC;AAE/C,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CACtD,SAAS,EACT,cAAiC,CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,oBAAoB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACzE,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC9B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"tiny-erp.js","sourceRoot":"","sources":["../src/tiny-erp.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,kCAAkC,CAAC;AAC1C,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,EACL,uBAAuB,GAExB,MAAM,4CAA4C,CAAC;AACpD,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAC7C,OAAO,iBAAiB,MAAM,gBAAgB,CAAC;AAE/C,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY,EAAE,uBAAuB,CACnC,SAAS,EACT,cAAiC,CAClC;IAED,OAAO,EAAE,SAAS,CAAC,oBAAoB,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACpD,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC;CACH,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.0.62",
4
+ "version": "0.0.63",
5
5
  "description": "E-Com Plus Cloud Commerce app for Tiny ERP",
6
6
  "main": "lib/tiny-erp.js",
7
7
  "repository": {
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/tiny-erp#readme",
18
18
  "dependencies": {
19
- "@cloudcommerce/api": "0.0.62",
20
- "@cloudcommerce/firebase": "0.0.62",
19
+ "@cloudcommerce/api": "0.0.63",
20
+ "@cloudcommerce/firebase": "0.0.63",
21
21
  "@ecomplus/utils": "^1.4.1",
22
22
  "axios": "^0.27.2",
23
23
  "firebase-admin": "^11.0.1",
@@ -25,7 +25,7 @@
25
25
  "form-data": "^4.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@cloudcommerce/types": "0.0.62",
28
+ "@cloudcommerce/types": "0.0.63",
29
29
  "@firebase/app-types": "^0.7.0"
30
30
  },
31
31
  "scripts": {
package/src/tiny-erp.ts CHANGED
@@ -13,11 +13,13 @@ import handleTinyWebhook from './tiny-webhook';
13
13
 
14
14
  const { httpsFunctionOptions } = config.get();
15
15
 
16
- export const tinyErpOnApiEvent = createAppEventsFunction(
17
- 'tinyErp',
18
- handleApiEvent as ApiEventHandler,
19
- );
16
+ export const tinyerp = {
17
+ onStoreEvent: createAppEventsFunction(
18
+ 'tinyErp',
19
+ handleApiEvent as ApiEventHandler,
20
+ ),
20
21
 
21
- export const tinyErpWebhook = onRequest(httpsFunctionOptions, (req, res) => {
22
- handleTinyWebhook(req, res);
23
- });
22
+ webhook: onRequest(httpsFunctionOptions, (req, res) => {
23
+ handleTinyWebhook(req, res);
24
+ }),
25
+ };