@things-factory/integration-marketplace 8.0.6 → 8.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-marketplace",
3
- "version": "8.0.6",
3
+ "version": "8.0.8",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -26,17 +26,17 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@operato/data-grist": "^8.0.0",
29
- "@things-factory/apptool-ui": "^8.0.5",
30
- "@things-factory/auth-ui": "^8.0.5",
31
- "@things-factory/biz-base": "^8.0.6",
32
- "@things-factory/code-ui": "^8.0.5",
33
- "@things-factory/context-ui": "^8.0.2",
34
- "@things-factory/i18n-base": "^8.0.5",
35
- "@things-factory/integration-lmd": "^8.0.6",
36
- "@things-factory/integration-ui": "^8.0.5",
37
- "@things-factory/more-ui": "^8.0.2",
38
- "@things-factory/resource-ui": "^8.0.5",
39
- "@things-factory/setting-ui": "^8.0.5",
29
+ "@things-factory/apptool-ui": "^8.0.8",
30
+ "@things-factory/auth-ui": "^8.0.8",
31
+ "@things-factory/biz-base": "^8.0.8",
32
+ "@things-factory/code-ui": "^8.0.8",
33
+ "@things-factory/context-ui": "^8.0.8",
34
+ "@things-factory/i18n-base": "^8.0.8",
35
+ "@things-factory/integration-lmd": "^8.0.8",
36
+ "@things-factory/integration-ui": "^8.0.8",
37
+ "@things-factory/more-ui": "^8.0.8",
38
+ "@things-factory/resource-ui": "^8.0.8",
39
+ "@things-factory/setting-ui": "^8.0.8",
40
40
  "debug": "^4.1.1",
41
41
  "node-fetch": "^2.6.0"
42
42
  },
@@ -50,5 +50,5 @@
50
50
  "nock": "^13.0.2",
51
51
  "should": "^13.2.3"
52
52
  },
53
- "gitHead": "89abb01bba2376bc5f074e0bc0088e32188d0396"
53
+ "gitHead": "2f53ec5833616a278c1f5fc057a5ce50f309cebd"
54
54
  }
@@ -11,7 +11,7 @@ import { STORE_STATUS } from '../graphql/constants'
11
11
 
12
12
  const debug = require('debug')('things-factory:integration-marketplace:magento-private-router')
13
13
 
14
- const isPathBaseDomain = !config.get('subdomain') && !config.get('useVirtualHostBasedDomain')
14
+ const isPathBaseDomain = !config.get('subdomain')
15
15
 
16
16
  export const magentoPrivateRouter = new Router()
17
17
 
@@ -24,7 +24,7 @@ export type MagentoAccessInfo = {
24
24
  }
25
25
 
26
26
  magentoPrivateRouter.get(
27
- `${isPathBaseDomain ? '/domain/:domain' : ''}/callback-magento-pre-install`,
27
+ `${isPathBaseDomain ? '/:domainType/:domain' : ''}/callback-magento-pre-install`,
28
28
  async (context, next) => {
29
29
  const { domain, user } = context.state
30
30
 
@@ -184,7 +184,7 @@ magentoPrivateRouter.get(
184
184
 
185
185
  var message = 'success to activate'
186
186
  context.redirect(
187
- `${getRedirectSubdomainPath(context, domain.subdomain)}marketplace-store-magento/${
187
+ `${getRedirectSubdomainPath(context, domain)}marketplace-store-magento/${
188
188
  marketplaceStore.id
189
189
  }/connect-callback?status=${marketplaceStore.status}&message=${message}`
190
190
  )
@@ -7,14 +7,14 @@ import { getRedirectSubdomainPath, getRepository } from '@things-factory/shell'
7
7
  import { MarketplaceSetting, MarketplaceStore } from '../entities'
8
8
  import { STORE_STATUS } from '../graphql/constants'
9
9
 
10
- const isPathBaseDomain = !config.get('subdomain') && !config.get('useVirtualHostBasedDomain')
10
+ const isPathBaseDomain = !config.get('subdomain')
11
11
 
12
12
  const debug = require('debug')('things-factory:integration-marketplace:shopify-install-private-router')
13
13
 
14
14
  export const shopifyInstallPrivateRouter = new Router()
15
15
 
16
16
  shopifyInstallPrivateRouter.get(
17
- `${isPathBaseDomain ? '/domain/:domain' : ''}/callback-shopify-post-install`,
17
+ `${isPathBaseDomain ? '/:domainType/:domain' : ''}/callback-shopify-post-install`,
18
18
  async (context, next) => {
19
19
  const { secure } = context
20
20
  const { domain, user } = context.state
@@ -87,7 +87,7 @@ shopifyInstallPrivateRouter.get(
87
87
 
88
88
  var message = 'success to activate'
89
89
  context.redirect(
90
- `${getRedirectSubdomainPath(context, domain.subdomain)}marketplace-store-shopify/${
90
+ `${getRedirectSubdomainPath(context, domain)}marketplace-store-shopify/${
91
91
  marketplaceStore.id
92
92
  }/connect-callback?status=${marketplaceStore.status}&message=${message}`
93
93
  )
@@ -11,14 +11,14 @@ import { STORE_STATUS } from '../graphql/constants'
11
11
 
12
12
  const shopifyConfig = config.get('marketplaceIntegrationShopify', {})
13
13
  const { apiKey, apiSecret } = shopifyConfig
14
- const isPathBaseDomain = !config.get('subdomain') && !config.get('useVirtualHostBasedDomain')
14
+ const isPathBaseDomain = !config.get('subdomain')
15
15
 
16
16
  const debug = require('debug')('things-factory:integration-marketplace:shopify-private-router')
17
17
 
18
18
  export const shopifyPrivateRouter = new Router()
19
19
 
20
20
  shopifyPrivateRouter.get(
21
- `${isPathBaseDomain ? '/domain/:domain' : ''}/callback-shopify-install`,
21
+ `${isPathBaseDomain ? '/:domainType/:domain' : ''}/callback-shopify-install`,
22
22
  async (context, next) => {
23
23
  // https://example.org/callback-shopify-install?shop={shop}&hmac=da9d83c171400a41f8db91a950508985&timestamp=1409617544
24
24
  const { hmac, timestamp } = context.query
@@ -95,7 +95,7 @@ shopifyPublicRouter.get('/callback-shopify', async (context, next) => {
95
95
 
96
96
  var message = 'success to activate'
97
97
  context.redirect(
98
- `${getRedirectSubdomainPath(context, store.domain.subdomain)}marketplace-store-shopify/${
98
+ `${getRedirectSubdomainPath(context, store.domain)}marketplace-store-shopify/${
99
99
  store.id
100
100
  }/connect-callback?status=${store.status}&message=${message}`
101
101
  )
@@ -104,7 +104,7 @@ shopifyPublicRouter.get('/callback-shopify', async (context, next) => {
104
104
 
105
105
  if (store) {
106
106
  context.redirect(
107
- `${getRedirectSubdomainPath(context, store.domain.subdomain)}marketplace-store-shopify/${
107
+ `${getRedirectSubdomainPath(context, store.domain)}marketplace-store-shopify/${
108
108
  store.id
109
109
  }/connect-callback?status=${store.status}&message=${message}`
110
110
  )