@things-factory/integration-marketplace 4.3.367 → 4.3.378

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.
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./migrations"), exports);
19
+ __exportStar(require("./graphql"), exports);
20
+ __exportStar(require("./controllers"), exports);
21
+ require("./routes");
22
+ require("./engine");
23
+ process.on('bootstrap-module-start', async ({ app, config, client }) => { });
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,+CAA4B;AAC5B,4CAAyB;AACzB,gDAA6B;AAE7B,oBAAiB;AACjB,oBAAiB;AAEjB,OAAO,CAAC,EAAE,CAAC,wBAA+B,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAO,EAAE,EAAE,GAAE,CAAC,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const shopify_public_router_1 = require("./routers/shopify-public-router");
4
+ // import { shopifyPrivateRouter } from './routers/shopify-private-router'
5
+ const shopify_install_public_router_1 = require("./routers/shopify-install-public-router");
6
+ const shopify_install_private_router_1 = require("./routers/shopify-install-private-router");
7
+ const woocommerce_router_1 = require("./routers/woocommerce-router");
8
+ const magento_public_router_1 = require("./routers/magento-public-router");
9
+ const magento_private_router_1 = require("./routers/magento-private-router");
10
+ process.on('bootstrap-module-global-public-route', (app, globalPublicRouter) => {
11
+ globalPublicRouter.use(shopify_public_router_1.shopifyPublicRouter.routes(), shopify_public_router_1.shopifyPublicRouter.allowedMethods());
12
+ globalPublicRouter.use(shopify_install_public_router_1.shopifyInstallPublicRouter.routes(), shopify_install_public_router_1.shopifyInstallPublicRouter.allowedMethods());
13
+ globalPublicRouter.use(woocommerce_router_1.woocommerceRouter.routes(), woocommerce_router_1.woocommerceRouter.allowedMethods());
14
+ globalPublicRouter.use(magento_public_router_1.magentoPublicRouter.routes(), magento_public_router_1.magentoPublicRouter.allowedMethods());
15
+ });
16
+ process.on('bootstrap-module-domain-private-route', (app, domainPrivateRouter) => {
17
+ // domainPrivateRouter.use(shopifyPrivateRouter.routes(), shopifyPrivateRouter.allowedMethods())
18
+ domainPrivateRouter.use(shopify_install_private_router_1.shopifyInstallPrivateRouter.routes(), shopify_install_private_router_1.shopifyInstallPrivateRouter.allowedMethods());
19
+ domainPrivateRouter.use(magento_private_router_1.magentoPrivateRouter.routes(), magento_private_router_1.magentoPrivateRouter.allowedMethods());
20
+ });
21
+ //# sourceMappingURL=routes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,2EAAqE;AACrE,0EAA0E;AAC1E,2FAAoF;AACpF,6FAAsF;AACtF,qEAAgE;AAChE,2EAAqE;AACrE,6EAAuE;AAEvE,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE;IACpF,kBAAkB,CAAC,GAAG,CAAC,2CAAmB,CAAC,MAAM,EAAE,EAAE,2CAAmB,CAAC,cAAc,EAAE,CAAC,CAAA;IAC1F,kBAAkB,CAAC,GAAG,CAAC,0DAA0B,CAAC,MAAM,EAAE,EAAE,0DAA0B,CAAC,cAAc,EAAE,CAAC,CAAA;IAExG,kBAAkB,CAAC,GAAG,CAAC,sCAAiB,CAAC,MAAM,EAAE,EAAE,sCAAiB,CAAC,cAAc,EAAE,CAAC,CAAA;IACtF,kBAAkB,CAAC,GAAG,CAAC,2CAAmB,CAAC,MAAM,EAAE,EAAE,2CAAmB,CAAC,cAAc,EAAE,CAAC,CAAA;AAC5F,CAAC,CAAC,CAAA;AAEF,OAAO,CAAC,EAAE,CAAC,uCAA8C,EAAE,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;IACtF,gGAAgG;IAChG,mBAAmB,CAAC,GAAG,CAAC,4DAA2B,CAAC,MAAM,EAAE,EAAE,4DAA2B,CAAC,cAAc,EAAE,CAAC,CAAA;IAC3G,mBAAmB,CAAC,GAAG,CAAC,6CAAoB,CAAC,MAAM,EAAE,EAAE,6CAAoB,CAAC,cAAc,EAAE,CAAC,CAAA;AAC/F,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-marketplace",
3
- "version": "4.3.367",
3
+ "version": "4.3.378",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,19 +24,19 @@
24
24
  "test": "DEBUG=things-factory:* NODE_ENV=development npx mocha -r ts-node/register ./test/**/*spec.ts"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/apptool-ui": "^4.3.281",
28
- "@things-factory/auth-ui": "^4.3.281",
29
- "@things-factory/biz-base": "^4.3.344",
30
- "@things-factory/code-ui": "^4.3.281",
31
- "@things-factory/context-ui": "^4.3.281",
32
- "@things-factory/grist-ui": "^4.3.281",
33
- "@things-factory/i18n-base": "^4.3.281",
34
- "@things-factory/integration-lmd": "^4.3.367",
35
- "@things-factory/integration-ui": "^4.3.367",
36
- "@things-factory/more-ui": "^4.3.281",
37
- "@things-factory/resource-ui": "^4.3.281",
38
- "@things-factory/setting-ui": "^4.3.281",
39
- "@things-factory/system-ui": "^4.3.281",
27
+ "@things-factory/apptool-ui": "^4.3.378",
28
+ "@things-factory/auth-ui": "^4.3.378",
29
+ "@things-factory/biz-base": "^4.3.378",
30
+ "@things-factory/code-ui": "^4.3.378",
31
+ "@things-factory/context-ui": "^4.3.378",
32
+ "@things-factory/grist-ui": "^4.3.378",
33
+ "@things-factory/i18n-base": "^4.3.378",
34
+ "@things-factory/integration-lmd": "^4.3.378",
35
+ "@things-factory/integration-ui": "^4.3.378",
36
+ "@things-factory/more-ui": "^4.3.378",
37
+ "@things-factory/resource-ui": "^4.3.378",
38
+ "@things-factory/setting-ui": "^4.3.378",
39
+ "@things-factory/system-ui": "^4.3.378",
40
40
  "debug": "^4.1.1",
41
41
  "node-fetch": "^2.6.0",
42
42
  "querystring": "^0.2.1"
@@ -51,5 +51,5 @@
51
51
  "nock": "^13.0.2",
52
52
  "should": "^13.2.3"
53
53
  },
54
- "gitHead": "7ca4aeb73080cd52d7058fe97e6cbb2cc431a80d"
54
+ "gitHead": "9de7af5e7b61574cdb4773876a41e1b9b77c1689"
55
55
  }
@@ -3,7 +3,7 @@ import Debug from 'debug'
3
3
  import fetch from 'node-fetch'
4
4
  import { v4 as uuidv4 } from 'uuid'
5
5
 
6
- import { config } from '@things-factory/env'
6
+ import { config, logger } from '@things-factory/env'
7
7
 
8
8
  import { MarketplaceSetting, MarketplaceStore } from '../../../../entities'
9
9
  import { STORE_STATUS } from '../../../constants'
@@ -53,8 +53,10 @@ export const generateShopeeAccessToken = {
53
53
  })
54
54
 
55
55
  if (!response.ok) {
56
- debug('response result', await response.text())
57
- throw new Error(`unexpected error with response code - ${response.status}`)
56
+ const errorText = await response.text()
57
+ debug('response result', errorText)
58
+ logger.error(`[Generate-Shopee-Access-Token]: Response code: ${response.status}, Message: ${errorText}`)
59
+ throw new Error(`unexpected error with response code - ${response.status}, message: ${errorText}`)
58
60
  }
59
61
 
60
62
  const result = await response.json()