@things-factory/integration-marketplace 6.0.25 → 6.0.28
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/client/pages/create-store-popup.js +1 -1
- package/client/pages/marketplace-store-lazada.js +2 -2
- package/client/pages/marketplace-store-magento.js +9 -3
- package/client/pages/marketplace-store-shopee.js +2 -2
- package/client/pages/marketplace-store-shopify.js +2 -2
- package/client/pages/marketplace-store-woocommerce.js +9 -3
- package/client/pages/marketplace-store-zalora.js +8 -3
- package/client/pages/marketplace-stores.js +3 -3
- package/components/add-distributor.js +1 -1
- package/components/distributor-editor.js +2 -2
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
|
@@ -3,7 +3,7 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
4
4
|
import { client } from '@things-factory/shell'
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
|
-
import { css, html, LitElement } from 'lit
|
|
6
|
+
import { css, html, LitElement } from 'lit'
|
|
7
7
|
|
|
8
8
|
class CreateStorePopup extends localize(i18next)(LitElement) {
|
|
9
9
|
static get properties() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, css } from 'lit
|
|
1
|
+
import { html, css } from 'lit'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
@@ -208,7 +208,7 @@ class MarketplaceStoreLazada extends connect(store)(localize(i18next)(PageView))
|
|
|
208
208
|
|
|
209
209
|
var response = await client.query({
|
|
210
210
|
query: gql`
|
|
211
|
-
query($redirectUrl: String!) {
|
|
211
|
+
query ($redirectUrl: String!) {
|
|
212
212
|
getLazadaAuthURL(redirectUrl: $redirectUrl)
|
|
213
213
|
}
|
|
214
214
|
`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@things-factory/component-ui'
|
|
2
2
|
import { client, PageView, store } from '@things-factory/shell'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html } from 'lit
|
|
4
|
+
import { css, html } from 'lit'
|
|
5
5
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
6
6
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
7
7
|
import LOGO from '../../assets/images/magento-logo.png'
|
|
@@ -154,8 +154,14 @@ class MarketplaceStoreMagento extends connect(store)(localize(i18next)(PageView)
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
render() {
|
|
157
|
-
var {
|
|
158
|
-
|
|
157
|
+
var {
|
|
158
|
+
id = '',
|
|
159
|
+
name = '',
|
|
160
|
+
storeId = '',
|
|
161
|
+
status = '',
|
|
162
|
+
countryCode = '',
|
|
163
|
+
accessInfo = ''
|
|
164
|
+
} = this.marketplaceStore || {}
|
|
159
165
|
|
|
160
166
|
const data = {
|
|
161
167
|
distributors:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, css } from 'lit
|
|
1
|
+
import { html, css } from 'lit'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import { client, store, PageView } from '@things-factory/shell'
|
|
@@ -213,7 +213,7 @@ class MarketplaceStoreShopee extends connect(store)(localize(i18next)(PageView))
|
|
|
213
213
|
|
|
214
214
|
var response = await client.query({
|
|
215
215
|
query: gql`
|
|
216
|
-
query($redirectUrl: String!, $cancel: Boolean) {
|
|
216
|
+
query ($redirectUrl: String!, $cancel: Boolean) {
|
|
217
217
|
getShopeeAuthURL(redirectUrl: $redirectUrl, cancel: $cancel)
|
|
218
218
|
}
|
|
219
219
|
`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, css } from 'lit
|
|
1
|
+
import { html, css } from 'lit'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
@@ -330,7 +330,7 @@ class MarketplaceStoreShopify extends connect(store)(localize(i18next)(PageView)
|
|
|
330
330
|
async getShopifyAuthURL() {
|
|
331
331
|
var response = await client.query({
|
|
332
332
|
query: gql`
|
|
333
|
-
query($redirectUrl: String!, $storeId: String!, $marketplaceStoreId: String!) {
|
|
333
|
+
query ($redirectUrl: String!, $storeId: String!, $marketplaceStoreId: String!) {
|
|
334
334
|
getShopifyAuthURL(marketplaceStoreId: $marketplaceStoreId, storeId: $storeId, redirectUrl: $redirectUrl)
|
|
335
335
|
}
|
|
336
336
|
`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import gql from 'graphql-tag'
|
|
2
|
-
import { css, html } from 'lit
|
|
2
|
+
import { css, html } from 'lit'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
|
|
5
5
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
@@ -146,8 +146,14 @@ class MarketplaceStoreWoocommerce extends connect(store)(localize(i18next)(PageV
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
render() {
|
|
149
|
-
var {
|
|
150
|
-
|
|
149
|
+
var {
|
|
150
|
+
id = '',
|
|
151
|
+
name = '',
|
|
152
|
+
storeId = '',
|
|
153
|
+
status = '',
|
|
154
|
+
countryCode = '',
|
|
155
|
+
accessInfo = ''
|
|
156
|
+
} = this.marketplaceStore || {}
|
|
151
157
|
|
|
152
158
|
return html`
|
|
153
159
|
<a href="marketplace-stores"><mwc-icon>store_mall_directory</mwc-icon> ${i18next.t('title.stores')}</a>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, css } from 'lit
|
|
1
|
+
import { html, css } from 'lit'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
3
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
4
4
|
import { client, store, PageView } from '@things-factory/shell'
|
|
@@ -128,8 +128,13 @@ class MarketplaceStoreZalora extends connect(store)(localize(i18next)(PageView))
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
render() {
|
|
131
|
-
var {
|
|
132
|
-
|
|
131
|
+
var {
|
|
132
|
+
name = '',
|
|
133
|
+
storeId: userId = '',
|
|
134
|
+
status = '',
|
|
135
|
+
countryCode = '',
|
|
136
|
+
accessInfo = ''
|
|
137
|
+
} = this.marketplaceStore || {}
|
|
133
138
|
|
|
134
139
|
return html`
|
|
135
140
|
<a href="marketplace-stores"><mwc-icon>store_mall_directory</mwc-icon> ${i18next.t('title.stores')}</a>
|
|
@@ -2,7 +2,7 @@ import '@things-factory/form-ui'
|
|
|
2
2
|
import './create-store-popup'
|
|
3
3
|
|
|
4
4
|
import gql from 'graphql-tag'
|
|
5
|
-
import { css, html } from 'lit
|
|
5
|
+
import { css, html } from 'lit'
|
|
6
6
|
|
|
7
7
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
8
|
import { openPopup } from '@things-factory/layout-base'
|
|
@@ -293,7 +293,7 @@ class MarketplaceStores extends localize(i18next)(PageView) {
|
|
|
293
293
|
if (patches && patches.length) {
|
|
294
294
|
const response = await client.mutate({
|
|
295
295
|
mutation: gql`
|
|
296
|
-
mutation($patches: [MarketplaceStorePatch]!) {
|
|
296
|
+
mutation ($patches: [MarketplaceStorePatch]!) {
|
|
297
297
|
updateMultipleMarketplaceStore(patches: $patches) {
|
|
298
298
|
name
|
|
299
299
|
}
|
|
@@ -329,7 +329,7 @@ class MarketplaceStores extends localize(i18next)(PageView) {
|
|
|
329
329
|
if (names && names.length > 0) {
|
|
330
330
|
const response = await client.mutate({
|
|
331
331
|
mutation: gql`
|
|
332
|
-
mutation($names: [String]!) {
|
|
332
|
+
mutation ($names: [String]!) {
|
|
333
333
|
deleteMarketplaceStores(names: $names)
|
|
334
334
|
}
|
|
335
335
|
`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
2
2
|
import { client, CustomAlert, gqlContext } from '@things-factory/shell'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html, LitElement } from 'lit
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
6
|
class AddDistributor extends localize(i18next)(LitElement) {
|
|
7
7
|
static get styles() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { client } from '@things-factory/shell'
|
|
2
2
|
import gql from 'graphql-tag'
|
|
3
|
-
import { LitElement, html, css } from 'lit
|
|
3
|
+
import { LitElement, html, css } from 'lit'
|
|
4
4
|
import { localize, i18next } from '@things-factory/i18n-base'
|
|
5
5
|
|
|
6
6
|
class DistributorEditor extends localize(i18next)(LitElement) {
|
|
@@ -118,7 +118,7 @@ class DistributorEditor extends localize(i18next)(LitElement) {
|
|
|
118
118
|
try {
|
|
119
119
|
var response = await client.mutate({
|
|
120
120
|
mutation: gql`
|
|
121
|
-
mutation($marketplaceDistributorPatch: MarketplaceDistributorPatch!) {
|
|
121
|
+
mutation ($marketplaceDistributorPatch: MarketplaceDistributorPatch!) {
|
|
122
122
|
updateMarketplaceDistributor(marketplaceDistributorPatch: $marketplaceDistributorPatch) {
|
|
123
123
|
id
|
|
124
124
|
name
|