@longvansoftware/service-js-client 1.16.1 → 1.16.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/README.md +93 -93
- package/dist/src/graphql/accounting_service/mutations.js +96 -96
- package/dist/src/graphql/accounting_service/queries.js +57 -57
- package/dist/src/graphql/auth/mutations.js +235 -235
- package/dist/src/graphql/auth/queries.js +68 -68
- package/dist/src/graphql/cloud/mutations.js +282 -282
- package/dist/src/graphql/cloud/queries.js +341 -341
- package/dist/src/graphql/computing/mutations.js +303 -303
- package/dist/src/graphql/computing/queries.js +548 -548
- package/dist/src/graphql/crm/mutations.js +390 -390
- package/dist/src/graphql/crm/queries.js +357 -357
- package/dist/src/graphql/crm_camping/mutations.js +32 -32
- package/dist/src/graphql/crm_camping/queries.js +228 -199
- package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
- package/dist/src/graphql/orderGraphQL/queries.js +387 -387
- package/dist/src/graphql/payment/mutations.js +45 -45
- package/dist/src/graphql/payment/queries.js +60 -60
- package/dist/src/graphql/paymentLV/mutations.js +19 -19
- package/dist/src/graphql/paymentLV/queries.js +75 -75
- package/dist/src/graphql/product/queries.d.ts +1 -0
- package/dist/src/graphql/product/queries.js +910 -892
- package/dist/src/graphql/quicklab_service/mutations.js +154 -154
- package/dist/src/graphql/quicklab_service/queries.js +108 -108
- package/dist/src/graphql/resource_permission/mutations.js +57 -57
- package/dist/src/graphql/resource_permission/queries.js +13 -13
- package/dist/src/graphql/service/mutations.js +228 -228
- package/dist/src/graphql/service/queries.js +128 -128
- package/dist/src/graphql/user/mutations.js +214 -214
- package/dist/src/graphql/user/queries.js +312 -312
- package/dist/src/lib/crm_camping/index.d.ts +1 -1
- package/dist/src/lib/crm_camping/index.js +10 -6
- package/dist/src/lib/product/index.d.ts +1 -0
- package/dist/src/lib/product/index.js +18 -0
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/lib/serviceSDK.js +12 -12
- package/dist/src/utils/build-field-string.d.ts +1 -0
- package/dist/src/utils/build-field-string.js +16 -0
- package/package.json +43 -44
- package/dist/src/graphql/campaign/mutations.d.ts +0 -1
- package/dist/src/graphql/campaign/mutations.js +0 -34
- package/dist/src/graphql/campaign/queries.d.ts +0 -9
- package/dist/src/graphql/campaign/queries.js +0 -412
- package/dist/src/graphql/cashbook/queries.d.ts +0 -2
- package/dist/src/graphql/cashbook/queries.js +0 -99
- package/dist/src/graphql/paymentV2/mutations.d.ts +0 -3
- package/dist/src/graphql/paymentV2/mutations.js +0 -54
- package/dist/src/graphql/paymentV2/queries.d.ts +0 -6
- package/dist/src/graphql/paymentV2/queries.js +0 -186
- package/dist/src/graphql/store/mutations.d.ts +0 -1
- package/dist/src/graphql/store/mutations.js +0 -29
- package/dist/src/graphql/store/queries.d.ts +0 -1
- package/dist/src/graphql/store/queries.js +0 -29
- package/dist/src/lib/accounting/index.d.ts +0 -5
- package/dist/src/lib/accounting/index.js +0 -32
- package/dist/src/lib/campaign/index.d.ts +0 -20
- package/dist/src/lib/campaign/index.js +0 -213
- package/dist/src/lib/cashbook/index.d.ts +0 -6
- package/dist/src/lib/cashbook/index.js +0 -56
- package/dist/src/lib/comhub/index.d.ts +0 -6
- package/dist/src/lib/comhub/index.js +0 -50
- package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -6
- package/dist/src/lib/deepLinkVietQr/index.js +0 -45
- package/dist/src/lib/getImage/index.d.ts +0 -4
- package/dist/src/lib/getImage/index.js +0 -10
- package/dist/src/lib/image/index.d.ts +0 -7
- package/dist/src/lib/image/index.js +0 -49
- package/dist/src/lib/omnigateway/index.d.ts +0 -7
- package/dist/src/lib/omnigateway/index.js +0 -58
- package/dist/src/lib/paymentV2/index.d.ts +0 -13
- package/dist/src/lib/paymentV2/index.js +0 -163
- package/dist/src/lib/portal/index.d.ts +0 -21
- package/dist/src/lib/portal/index.js +0 -225
- package/dist/src/lib/store/index.d.ts +0 -30
- package/dist/src/lib/store/index.js +0 -74
- package/dist/src/lib/token/index.d.ts +0 -5
- package/dist/src/lib/token/index.js +0 -32
- package/dist/src/lib/upload/index.d.ts +0 -5
- package/dist/src/lib/upload/index.js +0 -35
- package/dist/src/lib/warehouseV2/index.d.ts +0 -13
- package/dist/src/lib/warehouseV2/index.js +0 -54
- package/dist/src/lib/zca/index.d.ts +0 -12
- package/dist/src/lib/zca/index.js +0 -41
- package/dist/src/types/campaign.d.ts +0 -14
- package/dist/src/types/campaign.js +0 -2
- package/dist/src/types/invoice.d.ts +0 -13
- package/dist/src/types/invoice.js +0 -2
- package/dist/src/types/store.d.ts +0 -158
- package/dist/src/types/store.js +0 -3
- package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
- package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
3
|
+
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
// export const GET_PRODUCT_BY_ID_QUERY = gql`
|
6
6
|
// query GetProductById(
|
@@ -89,932 +89,950 @@ const graphql_tag_1 = require("graphql-tag");
|
|
89
89
|
// }
|
90
90
|
// }
|
91
91
|
// `;
|
92
|
-
exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
|
93
|
-
query GetProductById(
|
94
|
-
$partnerId: String!
|
95
|
-
$storeChannel: String!
|
96
|
-
$productId: String!
|
97
|
-
) {
|
98
|
-
getProductById(
|
99
|
-
partnerId: $partnerId
|
100
|
-
storeChannel: $storeChannel
|
101
|
-
productId: $productId
|
102
|
-
) {
|
103
|
-
id
|
104
|
-
title
|
105
|
-
description
|
106
|
-
sku
|
107
|
-
shortDescription
|
108
|
-
subType
|
109
|
-
weight
|
110
|
-
width
|
111
|
-
depth
|
112
|
-
height
|
113
|
-
vat
|
114
|
-
unitDTO {
|
115
|
-
id
|
116
|
-
name
|
117
|
-
}
|
118
|
-
productAttributes {
|
119
|
-
attributeName
|
120
|
-
attributeValue
|
121
|
-
}
|
122
|
-
qualify
|
123
|
-
parentId
|
124
|
-
handle
|
125
|
-
price
|
126
|
-
priceType
|
127
|
-
salePolicy
|
128
|
-
priceTypeName
|
129
|
-
priceVaries
|
130
|
-
available
|
131
|
-
tags
|
132
|
-
options
|
133
|
-
optionsRelationship
|
134
|
-
compareAtPrice
|
135
|
-
featuredImage
|
136
|
-
images
|
137
|
-
variants {
|
138
|
-
id
|
139
|
-
handle
|
140
|
-
title
|
141
|
-
price
|
142
|
-
priceType
|
143
|
-
compareAtPrice
|
144
|
-
options
|
145
|
-
optionsIds
|
146
|
-
featuredImage
|
147
|
-
sku
|
148
|
-
}
|
149
|
-
featureTypes {
|
150
|
-
id
|
151
|
-
name
|
152
|
-
position
|
153
|
-
type
|
154
|
-
subType
|
155
|
-
fill
|
156
|
-
requireData
|
157
|
-
values
|
158
|
-
productFeatureDTOS {
|
159
|
-
featureTypeId
|
160
|
-
id
|
161
|
-
productOptionConfigs {
|
162
|
-
id
|
163
|
-
productId
|
164
|
-
productName
|
165
|
-
price
|
166
|
-
}
|
167
|
-
productOptionGroupItemDTOS {
|
168
|
-
id
|
169
|
-
price
|
170
|
-
productId
|
171
|
-
productName
|
172
|
-
}
|
173
|
-
}
|
174
|
-
createStamp
|
175
|
-
createdBy
|
176
|
-
}
|
177
|
-
categories {
|
178
|
-
id
|
179
|
-
title
|
180
|
-
image
|
181
|
-
icon
|
182
|
-
parentId
|
183
|
-
level
|
184
|
-
handle
|
185
|
-
}
|
186
|
-
groups {
|
187
|
-
id
|
188
|
-
name
|
189
|
-
policy
|
190
|
-
image
|
191
|
-
}
|
192
|
-
}
|
193
|
-
}
|
92
|
+
exports.GET_PRODUCT_BY_ID_QUERY = (0, graphql_tag_1.gql) `
|
93
|
+
query GetProductById(
|
94
|
+
$partnerId: String!
|
95
|
+
$storeChannel: String!
|
96
|
+
$productId: String!
|
97
|
+
) {
|
98
|
+
getProductById(
|
99
|
+
partnerId: $partnerId
|
100
|
+
storeChannel: $storeChannel
|
101
|
+
productId: $productId
|
102
|
+
) {
|
103
|
+
id
|
104
|
+
title
|
105
|
+
description
|
106
|
+
sku
|
107
|
+
shortDescription
|
108
|
+
subType
|
109
|
+
weight
|
110
|
+
width
|
111
|
+
depth
|
112
|
+
height
|
113
|
+
vat
|
114
|
+
unitDTO {
|
115
|
+
id
|
116
|
+
name
|
117
|
+
}
|
118
|
+
productAttributes {
|
119
|
+
attributeName
|
120
|
+
attributeValue
|
121
|
+
}
|
122
|
+
qualify
|
123
|
+
parentId
|
124
|
+
handle
|
125
|
+
price
|
126
|
+
priceType
|
127
|
+
salePolicy
|
128
|
+
priceTypeName
|
129
|
+
priceVaries
|
130
|
+
available
|
131
|
+
tags
|
132
|
+
options
|
133
|
+
optionsRelationship
|
134
|
+
compareAtPrice
|
135
|
+
featuredImage
|
136
|
+
images
|
137
|
+
variants {
|
138
|
+
id
|
139
|
+
handle
|
140
|
+
title
|
141
|
+
price
|
142
|
+
priceType
|
143
|
+
compareAtPrice
|
144
|
+
options
|
145
|
+
optionsIds
|
146
|
+
featuredImage
|
147
|
+
sku
|
148
|
+
}
|
149
|
+
featureTypes {
|
150
|
+
id
|
151
|
+
name
|
152
|
+
position
|
153
|
+
type
|
154
|
+
subType
|
155
|
+
fill
|
156
|
+
requireData
|
157
|
+
values
|
158
|
+
productFeatureDTOS {
|
159
|
+
featureTypeId
|
160
|
+
id
|
161
|
+
productOptionConfigs {
|
162
|
+
id
|
163
|
+
productId
|
164
|
+
productName
|
165
|
+
price
|
166
|
+
}
|
167
|
+
productOptionGroupItemDTOS {
|
168
|
+
id
|
169
|
+
price
|
170
|
+
productId
|
171
|
+
productName
|
172
|
+
}
|
173
|
+
}
|
174
|
+
createStamp
|
175
|
+
createdBy
|
176
|
+
}
|
177
|
+
categories {
|
178
|
+
id
|
179
|
+
title
|
180
|
+
image
|
181
|
+
icon
|
182
|
+
parentId
|
183
|
+
level
|
184
|
+
handle
|
185
|
+
}
|
186
|
+
groups {
|
187
|
+
id
|
188
|
+
name
|
189
|
+
policy
|
190
|
+
image
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
194
|
`;
|
195
195
|
const GET_PRODUCT_BY_ID_QUERY_DYNAMIC = (fields = []) => {
|
196
196
|
const fieldStr = fields.join("\n ");
|
197
197
|
const hasFields = fields.length > 0;
|
198
|
-
return (0, graphql_tag_1.gql) `
|
199
|
-
query GetProductById(
|
200
|
-
$partnerId: String!
|
201
|
-
$storeChannel: String!
|
202
|
-
$productId: String!
|
203
|
-
) {
|
204
|
-
getProductById(
|
205
|
-
partnerId: $partnerId
|
206
|
-
storeChannel: $storeChannel
|
207
|
-
productId: $productId
|
208
|
-
) ${hasFields ? `{ ${fieldStr} }` : ""}
|
209
|
-
}
|
198
|
+
return (0, graphql_tag_1.gql) `
|
199
|
+
query GetProductById(
|
200
|
+
$partnerId: String!
|
201
|
+
$storeChannel: String!
|
202
|
+
$productId: String!
|
203
|
+
) {
|
204
|
+
getProductById(
|
205
|
+
partnerId: $partnerId
|
206
|
+
storeChannel: $storeChannel
|
207
|
+
productId: $productId
|
208
|
+
) ${hasFields ? `{ ${fieldStr} }` : ""}
|
209
|
+
}
|
210
210
|
`;
|
211
211
|
};
|
212
212
|
exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = GET_PRODUCT_BY_ID_QUERY_DYNAMIC;
|
213
|
-
exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
|
214
|
-
query GetProductByHandle(
|
215
|
-
$partnerId: String!
|
216
|
-
$storeChannel: String!
|
217
|
-
$handle: String!
|
218
|
-
) {
|
219
|
-
getProductByHandle(
|
220
|
-
partnerId: $partnerId
|
221
|
-
storeChannel: $storeChannel
|
222
|
-
handle: $handle
|
223
|
-
) {
|
224
|
-
id
|
225
|
-
title
|
226
|
-
subType
|
227
|
-
description
|
228
|
-
sku
|
229
|
-
shortDescription
|
230
|
-
weight
|
231
|
-
width
|
232
|
-
depth
|
233
|
-
height
|
234
|
-
vat
|
235
|
-
unitDTO {
|
236
|
-
id
|
237
|
-
name
|
238
|
-
}
|
239
|
-
productAttributes {
|
240
|
-
attributeName
|
241
|
-
attributeValue
|
242
|
-
}
|
243
|
-
qualify
|
244
|
-
parentId
|
245
|
-
handle
|
246
|
-
price
|
247
|
-
priceType
|
248
|
-
salePolicy
|
249
|
-
priceTypeName
|
250
|
-
priceVaries
|
251
|
-
available
|
252
|
-
tags
|
253
|
-
options
|
254
|
-
optionsRelationship
|
255
|
-
compareAtPrice
|
256
|
-
featuredImage
|
257
|
-
images
|
258
|
-
variants {
|
259
|
-
id
|
260
|
-
handle
|
261
|
-
title
|
262
|
-
price
|
263
|
-
priceType
|
264
|
-
compareAtPrice
|
265
|
-
options
|
266
|
-
optionsIds
|
267
|
-
featuredImage
|
268
|
-
sku
|
269
|
-
}
|
270
|
-
featureTypes {
|
271
|
-
id
|
272
|
-
name
|
273
|
-
values
|
274
|
-
}
|
275
|
-
categories {
|
276
|
-
id
|
277
|
-
title
|
278
|
-
handle
|
279
|
-
}
|
280
|
-
groups {
|
281
|
-
id
|
282
|
-
name
|
283
|
-
policy
|
284
|
-
image
|
285
|
-
}
|
286
|
-
}
|
287
|
-
}
|
213
|
+
exports.GET_PRODUCT_BY_SLUG_QUERY = (0, graphql_tag_1.gql) `
|
214
|
+
query GetProductByHandle(
|
215
|
+
$partnerId: String!
|
216
|
+
$storeChannel: String!
|
217
|
+
$handle: String!
|
218
|
+
) {
|
219
|
+
getProductByHandle(
|
220
|
+
partnerId: $partnerId
|
221
|
+
storeChannel: $storeChannel
|
222
|
+
handle: $handle
|
223
|
+
) {
|
224
|
+
id
|
225
|
+
title
|
226
|
+
subType
|
227
|
+
description
|
228
|
+
sku
|
229
|
+
shortDescription
|
230
|
+
weight
|
231
|
+
width
|
232
|
+
depth
|
233
|
+
height
|
234
|
+
vat
|
235
|
+
unitDTO {
|
236
|
+
id
|
237
|
+
name
|
238
|
+
}
|
239
|
+
productAttributes {
|
240
|
+
attributeName
|
241
|
+
attributeValue
|
242
|
+
}
|
243
|
+
qualify
|
244
|
+
parentId
|
245
|
+
handle
|
246
|
+
price
|
247
|
+
priceType
|
248
|
+
salePolicy
|
249
|
+
priceTypeName
|
250
|
+
priceVaries
|
251
|
+
available
|
252
|
+
tags
|
253
|
+
options
|
254
|
+
optionsRelationship
|
255
|
+
compareAtPrice
|
256
|
+
featuredImage
|
257
|
+
images
|
258
|
+
variants {
|
259
|
+
id
|
260
|
+
handle
|
261
|
+
title
|
262
|
+
price
|
263
|
+
priceType
|
264
|
+
compareAtPrice
|
265
|
+
options
|
266
|
+
optionsIds
|
267
|
+
featuredImage
|
268
|
+
sku
|
269
|
+
}
|
270
|
+
featureTypes {
|
271
|
+
id
|
272
|
+
name
|
273
|
+
values
|
274
|
+
}
|
275
|
+
categories {
|
276
|
+
id
|
277
|
+
title
|
278
|
+
handle
|
279
|
+
}
|
280
|
+
groups {
|
281
|
+
id
|
282
|
+
name
|
283
|
+
policy
|
284
|
+
image
|
285
|
+
}
|
286
|
+
}
|
287
|
+
}
|
288
288
|
`;
|
289
|
-
exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
|
290
|
-
query GetSimpleProducts(
|
291
|
-
$partnerId: String!
|
292
|
-
$storeChannel: String!
|
293
|
-
$category: String
|
294
|
-
$product: String
|
295
|
-
$sku: String
|
296
|
-
$tag: String
|
297
|
-
$priceFrom: BigDecimal
|
298
|
-
$priceTo: BigDecimal
|
299
|
-
$status: String
|
300
|
-
$productType: String
|
301
|
-
$subType: String
|
302
|
-
$sortOrder: String
|
303
|
-
$sortBy: String
|
304
|
-
$brandId: String
|
305
|
-
$keyword: String
|
306
|
-
$display: String
|
307
|
-
$onlyPromotion: Boolean
|
308
|
-
$currentPage: Int
|
309
|
-
$maxResult: Int
|
310
|
-
) {
|
311
|
-
getSimpleProducts(
|
312
|
-
partnerId: $partnerId
|
313
|
-
storeChannel: $storeChannel
|
314
|
-
category: $category
|
315
|
-
product: $product
|
316
|
-
sku: $sku
|
317
|
-
tag: $tag
|
318
|
-
priceFrom: $priceFrom
|
319
|
-
priceTo: $priceTo
|
320
|
-
status: $status
|
321
|
-
productType: $productType
|
322
|
-
subType: $subType
|
323
|
-
sortOrder: $sortOrder
|
324
|
-
sortBy: $sortBy
|
325
|
-
brandId: $brandId
|
326
|
-
keyword: $keyword
|
327
|
-
display: $display
|
328
|
-
onlyPromotion: $onlyPromotion
|
329
|
-
currentPage: $currentPage
|
330
|
-
maxResult: $maxResult
|
331
|
-
) {
|
332
|
-
total
|
333
|
-
currentPage
|
334
|
-
maxResult
|
335
|
-
totalPage
|
336
|
-
data {
|
337
|
-
id
|
338
|
-
title
|
339
|
-
sku
|
340
|
-
shortDescription
|
341
|
-
description
|
342
|
-
subType
|
343
|
-
vat
|
344
|
-
qualify
|
345
|
-
parentId
|
346
|
-
handle
|
347
|
-
price
|
348
|
-
compareAtPrice
|
349
|
-
priceType
|
350
|
-
priceTypeName
|
351
|
-
featuredImage
|
352
|
-
unitDTO {
|
353
|
-
id
|
354
|
-
name
|
355
|
-
}
|
356
|
-
images
|
357
|
-
}
|
358
|
-
}
|
359
|
-
}
|
289
|
+
exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
|
290
|
+
query GetSimpleProducts(
|
291
|
+
$partnerId: String!
|
292
|
+
$storeChannel: String!
|
293
|
+
$category: String
|
294
|
+
$product: String
|
295
|
+
$sku: String
|
296
|
+
$tag: String
|
297
|
+
$priceFrom: BigDecimal
|
298
|
+
$priceTo: BigDecimal
|
299
|
+
$status: String
|
300
|
+
$productType: String
|
301
|
+
$subType: String
|
302
|
+
$sortOrder: String
|
303
|
+
$sortBy: String
|
304
|
+
$brandId: String
|
305
|
+
$keyword: String
|
306
|
+
$display: String
|
307
|
+
$onlyPromotion: Boolean
|
308
|
+
$currentPage: Int
|
309
|
+
$maxResult: Int
|
310
|
+
) {
|
311
|
+
getSimpleProducts(
|
312
|
+
partnerId: $partnerId
|
313
|
+
storeChannel: $storeChannel
|
314
|
+
category: $category
|
315
|
+
product: $product
|
316
|
+
sku: $sku
|
317
|
+
tag: $tag
|
318
|
+
priceFrom: $priceFrom
|
319
|
+
priceTo: $priceTo
|
320
|
+
status: $status
|
321
|
+
productType: $productType
|
322
|
+
subType: $subType
|
323
|
+
sortOrder: $sortOrder
|
324
|
+
sortBy: $sortBy
|
325
|
+
brandId: $brandId
|
326
|
+
keyword: $keyword
|
327
|
+
display: $display
|
328
|
+
onlyPromotion: $onlyPromotion
|
329
|
+
currentPage: $currentPage
|
330
|
+
maxResult: $maxResult
|
331
|
+
) {
|
332
|
+
total
|
333
|
+
currentPage
|
334
|
+
maxResult
|
335
|
+
totalPage
|
336
|
+
data {
|
337
|
+
id
|
338
|
+
title
|
339
|
+
sku
|
340
|
+
shortDescription
|
341
|
+
description
|
342
|
+
subType
|
343
|
+
vat
|
344
|
+
qualify
|
345
|
+
parentId
|
346
|
+
handle
|
347
|
+
price
|
348
|
+
compareAtPrice
|
349
|
+
priceType
|
350
|
+
priceTypeName
|
351
|
+
featuredImage
|
352
|
+
unitDTO {
|
353
|
+
id
|
354
|
+
name
|
355
|
+
}
|
356
|
+
images
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
360
360
|
`;
|
361
|
-
exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
|
362
|
-
query GetCategories(
|
363
|
-
$partnerId: String!
|
364
|
-
$storeChannel: String!
|
365
|
-
$typeBuild: String!
|
366
|
-
$level: Int!
|
367
|
-
) {
|
368
|
-
getCategories(
|
369
|
-
partnerId: $partnerId
|
370
|
-
storeChannel: $storeChannel
|
371
|
-
typeBuild: $typeBuild
|
372
|
-
level: $level
|
373
|
-
) {
|
374
|
-
id
|
375
|
-
title
|
376
|
-
image
|
377
|
-
icon
|
378
|
-
parentId
|
379
|
-
level
|
380
|
-
sequence
|
381
|
-
handle
|
382
|
-
child {
|
383
|
-
id
|
384
|
-
title
|
385
|
-
image
|
386
|
-
icon
|
387
|
-
parentId
|
388
|
-
level
|
389
|
-
sequence
|
390
|
-
handle
|
391
|
-
}
|
392
|
-
}
|
393
|
-
}
|
361
|
+
exports.GET_CATEGORIES_QUERY = (0, graphql_tag_1.gql) `
|
362
|
+
query GetCategories(
|
363
|
+
$partnerId: String!
|
364
|
+
$storeChannel: String!
|
365
|
+
$typeBuild: String!
|
366
|
+
$level: Int!
|
367
|
+
) {
|
368
|
+
getCategories(
|
369
|
+
partnerId: $partnerId
|
370
|
+
storeChannel: $storeChannel
|
371
|
+
typeBuild: $typeBuild
|
372
|
+
level: $level
|
373
|
+
) {
|
374
|
+
id
|
375
|
+
title
|
376
|
+
image
|
377
|
+
icon
|
378
|
+
parentId
|
379
|
+
level
|
380
|
+
sequence
|
381
|
+
handle
|
382
|
+
child {
|
383
|
+
id
|
384
|
+
title
|
385
|
+
image
|
386
|
+
icon
|
387
|
+
parentId
|
388
|
+
level
|
389
|
+
sequence
|
390
|
+
handle
|
391
|
+
}
|
392
|
+
}
|
393
|
+
}
|
394
394
|
`;
|
395
|
-
exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
|
396
|
-
query GetCategoryByHandle(
|
397
|
-
$partnerId: String!
|
398
|
-
$storeChannel: String!
|
399
|
-
$handle: String!
|
400
|
-
) {
|
401
|
-
getCategoryByHandle(
|
402
|
-
partnerId: $partnerId
|
403
|
-
storeChannel: $storeChannel
|
404
|
-
handle: $handle
|
405
|
-
) {
|
406
|
-
id
|
407
|
-
title
|
408
|
-
image
|
409
|
-
icon
|
410
|
-
parentId
|
411
|
-
level
|
412
|
-
handle
|
413
|
-
child {
|
414
|
-
id
|
415
|
-
title
|
416
|
-
image
|
417
|
-
icon
|
418
|
-
parentId
|
419
|
-
level
|
420
|
-
handle
|
421
|
-
}
|
422
|
-
}
|
423
|
-
}
|
395
|
+
exports.GET_CATEGORY_BY_HANDLE_QUERY = (0, graphql_tag_1.gql) `
|
396
|
+
query GetCategoryByHandle(
|
397
|
+
$partnerId: String!
|
398
|
+
$storeChannel: String!
|
399
|
+
$handle: String!
|
400
|
+
) {
|
401
|
+
getCategoryByHandle(
|
402
|
+
partnerId: $partnerId
|
403
|
+
storeChannel: $storeChannel
|
404
|
+
handle: $handle
|
405
|
+
) {
|
406
|
+
id
|
407
|
+
title
|
408
|
+
image
|
409
|
+
icon
|
410
|
+
parentId
|
411
|
+
level
|
412
|
+
handle
|
413
|
+
child {
|
414
|
+
id
|
415
|
+
title
|
416
|
+
image
|
417
|
+
icon
|
418
|
+
parentId
|
419
|
+
level
|
420
|
+
handle
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
424
|
`;
|
425
|
-
exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
|
426
|
-
query GetCategoryById(
|
427
|
-
$partnerId: String!
|
428
|
-
$storeChannel: String!
|
429
|
-
$categoryId: String!
|
430
|
-
) {
|
431
|
-
getCategoryById(
|
432
|
-
partnerId: $partnerId
|
433
|
-
storeChannel: $storeChannel
|
434
|
-
categoryId: $categoryId
|
435
|
-
) {
|
436
|
-
id
|
437
|
-
title
|
438
|
-
image
|
439
|
-
icon
|
440
|
-
parentId
|
441
|
-
level
|
442
|
-
handle
|
443
|
-
child {
|
444
|
-
id
|
445
|
-
title
|
446
|
-
image
|
447
|
-
icon
|
448
|
-
parentId
|
449
|
-
level
|
450
|
-
handle
|
451
|
-
}
|
452
|
-
}
|
453
|
-
}
|
425
|
+
exports.GET_CATEGORY_BY_ID_QUERY = (0, graphql_tag_1.gql) `
|
426
|
+
query GetCategoryById(
|
427
|
+
$partnerId: String!
|
428
|
+
$storeChannel: String!
|
429
|
+
$categoryId: String!
|
430
|
+
) {
|
431
|
+
getCategoryById(
|
432
|
+
partnerId: $partnerId
|
433
|
+
storeChannel: $storeChannel
|
434
|
+
categoryId: $categoryId
|
435
|
+
) {
|
436
|
+
id
|
437
|
+
title
|
438
|
+
image
|
439
|
+
icon
|
440
|
+
parentId
|
441
|
+
level
|
442
|
+
handle
|
443
|
+
child {
|
444
|
+
id
|
445
|
+
title
|
446
|
+
image
|
447
|
+
icon
|
448
|
+
parentId
|
449
|
+
level
|
450
|
+
handle
|
451
|
+
}
|
452
|
+
}
|
453
|
+
}
|
454
454
|
`;
|
455
|
-
exports.GET_BRANDS_QUERY = `
|
456
|
-
query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
|
457
|
-
getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
|
458
|
-
id
|
459
|
-
name
|
460
|
-
image
|
461
|
-
imageIcon
|
462
|
-
}
|
463
|
-
}
|
455
|
+
exports.GET_BRANDS_QUERY = `
|
456
|
+
query GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {
|
457
|
+
getBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {
|
458
|
+
id
|
459
|
+
name
|
460
|
+
image
|
461
|
+
imageIcon
|
462
|
+
}
|
463
|
+
}
|
464
464
|
`;
|
465
|
-
exports.GET_BRANDS_BY_CATEGORY_QUERY = `
|
466
|
-
query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
|
467
|
-
getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
|
468
|
-
id
|
469
|
-
name
|
470
|
-
image
|
471
|
-
imageIcon
|
472
|
-
}
|
473
|
-
}
|
465
|
+
exports.GET_BRANDS_BY_CATEGORY_QUERY = `
|
466
|
+
query GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {
|
467
|
+
getBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {
|
468
|
+
id
|
469
|
+
name
|
470
|
+
image
|
471
|
+
imageIcon
|
472
|
+
}
|
473
|
+
}
|
474
474
|
`;
|
475
|
-
exports.GET_BRAND_DETAIL_QUERY = `
|
476
|
-
query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
|
477
|
-
getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
|
478
|
-
id
|
479
|
-
name
|
480
|
-
image
|
481
|
-
imageIcon
|
482
|
-
}
|
483
|
-
}
|
475
|
+
exports.GET_BRAND_DETAIL_QUERY = `
|
476
|
+
query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {
|
477
|
+
getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {
|
478
|
+
id
|
479
|
+
name
|
480
|
+
image
|
481
|
+
imageIcon
|
482
|
+
}
|
483
|
+
}
|
484
484
|
`;
|
485
|
-
exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
|
486
|
-
query GetProductOption(
|
487
|
-
$partnerId: String!
|
488
|
-
$storeChannel: String!
|
489
|
-
$productId: String!
|
490
|
-
) {
|
491
|
-
getProductOption(
|
492
|
-
partnerId: $partnerId
|
493
|
-
storeChannel: $storeChannel
|
494
|
-
productId: $productId
|
495
|
-
) {
|
496
|
-
id
|
497
|
-
name
|
498
|
-
position
|
499
|
-
type
|
500
|
-
subType
|
501
|
-
fill
|
502
|
-
otherItem
|
503
|
-
requireData
|
504
|
-
values
|
505
|
-
valuesFull {
|
506
|
-
id
|
507
|
-
name
|
508
|
-
}
|
509
|
-
valuesPortal {
|
510
|
-
id
|
511
|
-
name
|
512
|
-
}
|
513
|
-
productFeatureDTOS {
|
514
|
-
id
|
515
|
-
featureTypeId
|
516
|
-
productOptionGroupItemDTOS {
|
517
|
-
id
|
518
|
-
price
|
519
|
-
productId
|
520
|
-
productName
|
521
|
-
qualify
|
522
|
-
}
|
523
|
-
productOptionConfigs {
|
524
|
-
id
|
525
|
-
price
|
526
|
-
productId
|
527
|
-
productName
|
528
|
-
qualify
|
529
|
-
}
|
530
|
-
}
|
531
|
-
createStamp
|
532
|
-
createdBy
|
533
|
-
}
|
534
|
-
}
|
485
|
+
exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
|
486
|
+
query GetProductOption(
|
487
|
+
$partnerId: String!
|
488
|
+
$storeChannel: String!
|
489
|
+
$productId: String!
|
490
|
+
) {
|
491
|
+
getProductOption(
|
492
|
+
partnerId: $partnerId
|
493
|
+
storeChannel: $storeChannel
|
494
|
+
productId: $productId
|
495
|
+
) {
|
496
|
+
id
|
497
|
+
name
|
498
|
+
position
|
499
|
+
type
|
500
|
+
subType
|
501
|
+
fill
|
502
|
+
otherItem
|
503
|
+
requireData
|
504
|
+
values
|
505
|
+
valuesFull {
|
506
|
+
id
|
507
|
+
name
|
508
|
+
}
|
509
|
+
valuesPortal {
|
510
|
+
id
|
511
|
+
name
|
512
|
+
}
|
513
|
+
productFeatureDTOS {
|
514
|
+
id
|
515
|
+
featureTypeId
|
516
|
+
productOptionGroupItemDTOS {
|
517
|
+
id
|
518
|
+
price
|
519
|
+
productId
|
520
|
+
productName
|
521
|
+
qualify
|
522
|
+
}
|
523
|
+
productOptionConfigs {
|
524
|
+
id
|
525
|
+
price
|
526
|
+
productId
|
527
|
+
productName
|
528
|
+
qualify
|
529
|
+
}
|
530
|
+
}
|
531
|
+
createStamp
|
532
|
+
createdBy
|
533
|
+
}
|
534
|
+
}
|
535
535
|
`;
|
536
|
-
exports.GET_POLICY = (0, graphql_tag_1.gql) `
|
537
|
-
query GetPolicy($groupId: String!) {
|
538
|
-
getPolicy(groupId: $groupId) {
|
539
|
-
value
|
540
|
-
}
|
541
|
-
}
|
536
|
+
exports.GET_POLICY = (0, graphql_tag_1.gql) `
|
537
|
+
query GetPolicy($groupId: String!) {
|
538
|
+
getPolicy(groupId: $groupId) {
|
539
|
+
value
|
540
|
+
}
|
541
|
+
}
|
542
542
|
`;
|
543
|
-
exports.GET_PRODUCTS = (0, graphql_tag_1.gql) `
|
544
|
-
query GetProducts(
|
545
|
-
$partnerId: String!
|
546
|
-
$storeChannel: String!
|
547
|
-
$hash: String
|
548
|
-
$publicOnStore: Boolean
|
549
|
-
$category: String
|
550
|
-
$product: String
|
551
|
-
$group: String
|
552
|
-
$sku: String
|
553
|
-
$priceFrom: BigDecimal
|
554
|
-
$priceTo: BigDecimal
|
555
|
-
$tag: String
|
556
|
-
$status: String
|
557
|
-
$ecommerceId: String
|
558
|
-
$productIgnoresIds: String
|
559
|
-
$toDate: Long
|
560
|
-
$fromDate: Long
|
561
|
-
$productType: String
|
562
|
-
$sortOrder: String
|
563
|
-
$sortBy: String
|
564
|
-
$option: String
|
565
|
-
$brandId: String
|
566
|
-
$feature: String
|
567
|
-
$keyword: String
|
568
|
-
$external: String
|
569
|
-
$userId: String
|
570
|
-
$onlyFavorite: Boolean
|
571
|
-
$buildPriceStore: Boolean
|
572
|
-
$buildType: String
|
573
|
-
$buildPromotion: Boolean
|
574
|
-
$variant: Boolean
|
575
|
-
$deleteChild: Boolean
|
576
|
-
$display: String
|
577
|
-
$subType: String
|
578
|
-
$currentPage: Int
|
579
|
-
$maxResult: Int
|
580
|
-
$isSync: Boolean
|
581
|
-
$isMapped: Boolean
|
582
|
-
) {
|
583
|
-
getProducts(
|
584
|
-
partnerId: $partnerId
|
585
|
-
storeChannel: $storeChannel
|
586
|
-
hash: $hash
|
587
|
-
publicOnStore: $publicOnStore
|
588
|
-
category: $category
|
589
|
-
product: $product
|
590
|
-
group: $group
|
591
|
-
sku: $sku
|
592
|
-
priceFrom: $priceFrom
|
593
|
-
priceTo: $priceTo
|
594
|
-
tag: $tag
|
595
|
-
status: $status
|
596
|
-
ecommerceId: $ecommerceId
|
597
|
-
productIgnoresIds: $productIgnoresIds
|
598
|
-
toDate: $toDate
|
599
|
-
fromDate: $fromDate
|
600
|
-
productType: $productType
|
601
|
-
sortOrder: $sortOrder
|
602
|
-
sortBy: $sortBy
|
603
|
-
option: $option
|
604
|
-
brandId: $brandId
|
605
|
-
feature: $feature
|
606
|
-
keyword: $keyword
|
607
|
-
external: $external
|
608
|
-
userId: $userId
|
609
|
-
onlyFavorite: $onlyFavorite
|
610
|
-
buildPriceStore: $buildPriceStore
|
611
|
-
buildType: $buildType
|
612
|
-
buildPromotion: $buildPromotion
|
613
|
-
variant: $variant
|
614
|
-
deleteChild: $deleteChild
|
615
|
-
display: $display
|
616
|
-
subType: $subType
|
617
|
-
currentPage: $currentPage
|
618
|
-
maxResult: $maxResult
|
619
|
-
isSync: $isSync
|
620
|
-
isMapped: $isMapped
|
621
|
-
) {
|
622
|
-
total
|
623
|
-
currentPage
|
624
|
-
maxResult
|
625
|
-
totalPage
|
626
|
-
data {
|
627
|
-
id
|
628
|
-
title
|
629
|
-
description
|
630
|
-
sku
|
631
|
-
shortDescription
|
632
|
-
weight
|
633
|
-
width
|
634
|
-
depth
|
635
|
-
height
|
636
|
-
vat
|
637
|
-
unitDTO {
|
638
|
-
id
|
639
|
-
name
|
640
|
-
}
|
641
|
-
productAttributes {
|
642
|
-
attributeName
|
643
|
-
attributeValue
|
644
|
-
}
|
645
|
-
qualify
|
646
|
-
parentId
|
647
|
-
handle
|
648
|
-
price
|
649
|
-
priceType
|
650
|
-
salePolicy
|
651
|
-
priceTypeName
|
652
|
-
priceVaries
|
653
|
-
available
|
654
|
-
tags
|
655
|
-
options
|
656
|
-
optionsRelationship
|
657
|
-
compareAtPrice
|
658
|
-
featuredImage
|
659
|
-
images
|
660
|
-
variants {
|
661
|
-
id
|
662
|
-
handle
|
663
|
-
title
|
664
|
-
price
|
665
|
-
compareAtPrice
|
666
|
-
options
|
667
|
-
optionsIds
|
668
|
-
featuredImage
|
669
|
-
sku
|
670
|
-
}
|
671
|
-
groups {
|
672
|
-
id
|
673
|
-
name
|
674
|
-
policy
|
675
|
-
image
|
676
|
-
}
|
677
|
-
categories {
|
678
|
-
id
|
679
|
-
title
|
680
|
-
image
|
681
|
-
icon
|
682
|
-
parentId
|
683
|
-
level
|
684
|
-
handle
|
685
|
-
}
|
686
|
-
}
|
687
|
-
}
|
688
|
-
}
|
543
|
+
exports.GET_PRODUCTS = (0, graphql_tag_1.gql) `
|
544
|
+
query GetProducts(
|
545
|
+
$partnerId: String!
|
546
|
+
$storeChannel: String!
|
547
|
+
$hash: String
|
548
|
+
$publicOnStore: Boolean
|
549
|
+
$category: String
|
550
|
+
$product: String
|
551
|
+
$group: String
|
552
|
+
$sku: String
|
553
|
+
$priceFrom: BigDecimal
|
554
|
+
$priceTo: BigDecimal
|
555
|
+
$tag: String
|
556
|
+
$status: String
|
557
|
+
$ecommerceId: String
|
558
|
+
$productIgnoresIds: String
|
559
|
+
$toDate: Long
|
560
|
+
$fromDate: Long
|
561
|
+
$productType: String
|
562
|
+
$sortOrder: String
|
563
|
+
$sortBy: String
|
564
|
+
$option: String
|
565
|
+
$brandId: String
|
566
|
+
$feature: String
|
567
|
+
$keyword: String
|
568
|
+
$external: String
|
569
|
+
$userId: String
|
570
|
+
$onlyFavorite: Boolean
|
571
|
+
$buildPriceStore: Boolean
|
572
|
+
$buildType: String
|
573
|
+
$buildPromotion: Boolean
|
574
|
+
$variant: Boolean
|
575
|
+
$deleteChild: Boolean
|
576
|
+
$display: String
|
577
|
+
$subType: String
|
578
|
+
$currentPage: Int
|
579
|
+
$maxResult: Int
|
580
|
+
$isSync: Boolean
|
581
|
+
$isMapped: Boolean
|
582
|
+
) {
|
583
|
+
getProducts(
|
584
|
+
partnerId: $partnerId
|
585
|
+
storeChannel: $storeChannel
|
586
|
+
hash: $hash
|
587
|
+
publicOnStore: $publicOnStore
|
588
|
+
category: $category
|
589
|
+
product: $product
|
590
|
+
group: $group
|
591
|
+
sku: $sku
|
592
|
+
priceFrom: $priceFrom
|
593
|
+
priceTo: $priceTo
|
594
|
+
tag: $tag
|
595
|
+
status: $status
|
596
|
+
ecommerceId: $ecommerceId
|
597
|
+
productIgnoresIds: $productIgnoresIds
|
598
|
+
toDate: $toDate
|
599
|
+
fromDate: $fromDate
|
600
|
+
productType: $productType
|
601
|
+
sortOrder: $sortOrder
|
602
|
+
sortBy: $sortBy
|
603
|
+
option: $option
|
604
|
+
brandId: $brandId
|
605
|
+
feature: $feature
|
606
|
+
keyword: $keyword
|
607
|
+
external: $external
|
608
|
+
userId: $userId
|
609
|
+
onlyFavorite: $onlyFavorite
|
610
|
+
buildPriceStore: $buildPriceStore
|
611
|
+
buildType: $buildType
|
612
|
+
buildPromotion: $buildPromotion
|
613
|
+
variant: $variant
|
614
|
+
deleteChild: $deleteChild
|
615
|
+
display: $display
|
616
|
+
subType: $subType
|
617
|
+
currentPage: $currentPage
|
618
|
+
maxResult: $maxResult
|
619
|
+
isSync: $isSync
|
620
|
+
isMapped: $isMapped
|
621
|
+
) {
|
622
|
+
total
|
623
|
+
currentPage
|
624
|
+
maxResult
|
625
|
+
totalPage
|
626
|
+
data {
|
627
|
+
id
|
628
|
+
title
|
629
|
+
description
|
630
|
+
sku
|
631
|
+
shortDescription
|
632
|
+
weight
|
633
|
+
width
|
634
|
+
depth
|
635
|
+
height
|
636
|
+
vat
|
637
|
+
unitDTO {
|
638
|
+
id
|
639
|
+
name
|
640
|
+
}
|
641
|
+
productAttributes {
|
642
|
+
attributeName
|
643
|
+
attributeValue
|
644
|
+
}
|
645
|
+
qualify
|
646
|
+
parentId
|
647
|
+
handle
|
648
|
+
price
|
649
|
+
priceType
|
650
|
+
salePolicy
|
651
|
+
priceTypeName
|
652
|
+
priceVaries
|
653
|
+
available
|
654
|
+
tags
|
655
|
+
options
|
656
|
+
optionsRelationship
|
657
|
+
compareAtPrice
|
658
|
+
featuredImage
|
659
|
+
images
|
660
|
+
variants {
|
661
|
+
id
|
662
|
+
handle
|
663
|
+
title
|
664
|
+
price
|
665
|
+
compareAtPrice
|
666
|
+
options
|
667
|
+
optionsIds
|
668
|
+
featuredImage
|
669
|
+
sku
|
670
|
+
}
|
671
|
+
groups {
|
672
|
+
id
|
673
|
+
name
|
674
|
+
policy
|
675
|
+
image
|
676
|
+
}
|
677
|
+
categories {
|
678
|
+
id
|
679
|
+
title
|
680
|
+
image
|
681
|
+
icon
|
682
|
+
parentId
|
683
|
+
level
|
684
|
+
handle
|
685
|
+
}
|
686
|
+
}
|
687
|
+
}
|
688
|
+
}
|
689
689
|
`;
|
690
690
|
const GET_PRODUCTS_DYNAMIC = (fields = []) => {
|
691
691
|
const fieldStr = fields.join("\n ");
|
692
692
|
const hasFields = fields.length > 0;
|
693
|
-
return (0, graphql_tag_1.gql) `
|
694
|
-
query GetProducts(
|
695
|
-
$partnerId: String!
|
696
|
-
$storeChannel: String!
|
697
|
-
$hash: String
|
698
|
-
$publicOnStore: Boolean
|
699
|
-
$category: String
|
700
|
-
$product: String
|
701
|
-
$group: String
|
702
|
-
$sku: String
|
703
|
-
$priceFrom: BigDecimal
|
704
|
-
$priceTo: BigDecimal
|
705
|
-
$tag: String
|
706
|
-
$status: String
|
707
|
-
$ecommerceId: String
|
708
|
-
$productIgnoresIds: String
|
709
|
-
$toDate: Long
|
710
|
-
$fromDate: Long
|
711
|
-
$productType: String
|
712
|
-
$sortOrder: String
|
713
|
-
$sortBy: String
|
714
|
-
$option: String
|
715
|
-
$brandId: String
|
716
|
-
$feature: String
|
717
|
-
$keyword: String
|
718
|
-
$external: String
|
719
|
-
$userId: String
|
720
|
-
$onlyFavorite: Boolean
|
721
|
-
$buildPriceStore: Boolean
|
722
|
-
$buildType: String
|
723
|
-
$buildPromotion: Boolean
|
724
|
-
$variant: Boolean
|
725
|
-
$deleteChild: Boolean
|
726
|
-
$display: String
|
727
|
-
$subType: String
|
728
|
-
$currentPage: Int
|
729
|
-
$maxResult: Int
|
730
|
-
$isSync: Boolean
|
731
|
-
$isMapped: Boolean
|
732
|
-
) {
|
733
|
-
getProducts(
|
734
|
-
partnerId: $partnerId
|
735
|
-
storeChannel: $storeChannel
|
736
|
-
hash: $hash
|
737
|
-
publicOnStore: $publicOnStore
|
738
|
-
category: $category
|
739
|
-
product: $product
|
740
|
-
group: $group
|
741
|
-
sku: $sku
|
742
|
-
priceFrom: $priceFrom
|
743
|
-
priceTo: $priceTo
|
744
|
-
tag: $tag
|
745
|
-
status: $status
|
746
|
-
ecommerceId: $ecommerceId
|
747
|
-
productIgnoresIds: $productIgnoresIds
|
748
|
-
toDate: $toDate
|
749
|
-
fromDate: $fromDate
|
750
|
-
productType: $productType
|
751
|
-
sortOrder: $sortOrder
|
752
|
-
sortBy: $sortBy
|
753
|
-
option: $option
|
754
|
-
brandId: $brandId
|
755
|
-
feature: $feature
|
756
|
-
keyword: $keyword
|
757
|
-
external: $external
|
758
|
-
userId: $userId
|
759
|
-
onlyFavorite: $onlyFavorite
|
760
|
-
buildPriceStore: $buildPriceStore
|
761
|
-
buildType: $buildType
|
762
|
-
buildPromotion: $buildPromotion
|
763
|
-
variant: $variant
|
764
|
-
deleteChild: $deleteChild
|
765
|
-
display: $display
|
766
|
-
subType: $subType
|
767
|
-
currentPage: $currentPage
|
768
|
-
maxResult: $maxResult
|
769
|
-
isSync: $isSync
|
770
|
-
isMapped: $isMapped
|
771
|
-
) {
|
772
|
-
total
|
773
|
-
currentPage
|
774
|
-
maxResult
|
775
|
-
totalPage
|
776
|
-
data {
|
777
|
-
${hasFields ? `${fieldStr}` : ""}
|
778
|
-
}
|
779
|
-
}
|
780
|
-
}
|
693
|
+
return (0, graphql_tag_1.gql) `
|
694
|
+
query GetProducts(
|
695
|
+
$partnerId: String!
|
696
|
+
$storeChannel: String!
|
697
|
+
$hash: String
|
698
|
+
$publicOnStore: Boolean
|
699
|
+
$category: String
|
700
|
+
$product: String
|
701
|
+
$group: String
|
702
|
+
$sku: String
|
703
|
+
$priceFrom: BigDecimal
|
704
|
+
$priceTo: BigDecimal
|
705
|
+
$tag: String
|
706
|
+
$status: String
|
707
|
+
$ecommerceId: String
|
708
|
+
$productIgnoresIds: String
|
709
|
+
$toDate: Long
|
710
|
+
$fromDate: Long
|
711
|
+
$productType: String
|
712
|
+
$sortOrder: String
|
713
|
+
$sortBy: String
|
714
|
+
$option: String
|
715
|
+
$brandId: String
|
716
|
+
$feature: String
|
717
|
+
$keyword: String
|
718
|
+
$external: String
|
719
|
+
$userId: String
|
720
|
+
$onlyFavorite: Boolean
|
721
|
+
$buildPriceStore: Boolean
|
722
|
+
$buildType: String
|
723
|
+
$buildPromotion: Boolean
|
724
|
+
$variant: Boolean
|
725
|
+
$deleteChild: Boolean
|
726
|
+
$display: String
|
727
|
+
$subType: String
|
728
|
+
$currentPage: Int
|
729
|
+
$maxResult: Int
|
730
|
+
$isSync: Boolean
|
731
|
+
$isMapped: Boolean
|
732
|
+
) {
|
733
|
+
getProducts(
|
734
|
+
partnerId: $partnerId
|
735
|
+
storeChannel: $storeChannel
|
736
|
+
hash: $hash
|
737
|
+
publicOnStore: $publicOnStore
|
738
|
+
category: $category
|
739
|
+
product: $product
|
740
|
+
group: $group
|
741
|
+
sku: $sku
|
742
|
+
priceFrom: $priceFrom
|
743
|
+
priceTo: $priceTo
|
744
|
+
tag: $tag
|
745
|
+
status: $status
|
746
|
+
ecommerceId: $ecommerceId
|
747
|
+
productIgnoresIds: $productIgnoresIds
|
748
|
+
toDate: $toDate
|
749
|
+
fromDate: $fromDate
|
750
|
+
productType: $productType
|
751
|
+
sortOrder: $sortOrder
|
752
|
+
sortBy: $sortBy
|
753
|
+
option: $option
|
754
|
+
brandId: $brandId
|
755
|
+
feature: $feature
|
756
|
+
keyword: $keyword
|
757
|
+
external: $external
|
758
|
+
userId: $userId
|
759
|
+
onlyFavorite: $onlyFavorite
|
760
|
+
buildPriceStore: $buildPriceStore
|
761
|
+
buildType: $buildType
|
762
|
+
buildPromotion: $buildPromotion
|
763
|
+
variant: $variant
|
764
|
+
deleteChild: $deleteChild
|
765
|
+
display: $display
|
766
|
+
subType: $subType
|
767
|
+
currentPage: $currentPage
|
768
|
+
maxResult: $maxResult
|
769
|
+
isSync: $isSync
|
770
|
+
isMapped: $isMapped
|
771
|
+
) {
|
772
|
+
total
|
773
|
+
currentPage
|
774
|
+
maxResult
|
775
|
+
totalPage
|
776
|
+
data {
|
777
|
+
${hasFields ? `${fieldStr}` : ""}
|
778
|
+
}
|
779
|
+
}
|
780
|
+
}
|
781
781
|
`;
|
782
782
|
};
|
783
783
|
exports.GET_PRODUCTS_DYNAMIC = GET_PRODUCTS_DYNAMIC;
|
784
|
-
exports.GET_HANDLE_BY_SERVICETYPE = (0, graphql_tag_1.gql) `
|
785
|
-
query GetHandleByServiceTypes(
|
786
|
-
$partnerId: String!
|
787
|
-
$storeChannel: String!
|
788
|
-
$serviceTypes: [String]!
|
789
|
-
) {
|
790
|
-
getHandleByServiceTypes(
|
791
|
-
partnerId: $partnerId
|
792
|
-
storeChannel: $storeChannel
|
793
|
-
serviceTypes: $serviceTypes
|
794
|
-
)
|
795
|
-
}
|
784
|
+
exports.GET_HANDLE_BY_SERVICETYPE = (0, graphql_tag_1.gql) `
|
785
|
+
query GetHandleByServiceTypes(
|
786
|
+
$partnerId: String!
|
787
|
+
$storeChannel: String!
|
788
|
+
$serviceTypes: [String]!
|
789
|
+
) {
|
790
|
+
getHandleByServiceTypes(
|
791
|
+
partnerId: $partnerId
|
792
|
+
storeChannel: $storeChannel
|
793
|
+
serviceTypes: $serviceTypes
|
794
|
+
)
|
795
|
+
}
|
796
796
|
`;
|
797
|
-
exports.GET_RESOURCE_BY_PRODUCT = (0, graphql_tag_1.gql) `
|
798
|
-
query getResourceByProduct(
|
799
|
-
$partnerId: String!
|
800
|
-
$storeChannel: String!
|
801
|
-
$productId: String!
|
802
|
-
) {
|
803
|
-
getResourceByProduct(
|
804
|
-
partnerId: $partnerId
|
805
|
-
storeChannel: $storeChannel
|
806
|
-
productId: $productId
|
807
|
-
) {
|
808
|
-
id
|
809
|
-
quantity
|
810
|
-
qualify
|
811
|
-
handle
|
812
|
-
unitDTO {
|
813
|
-
id
|
814
|
-
name
|
815
|
-
}
|
816
|
-
productId
|
817
|
-
productName
|
818
|
-
resourceName
|
819
|
-
resourceUnit
|
820
|
-
price
|
821
|
-
}
|
822
|
-
}
|
797
|
+
exports.GET_RESOURCE_BY_PRODUCT = (0, graphql_tag_1.gql) `
|
798
|
+
query getResourceByProduct(
|
799
|
+
$partnerId: String!
|
800
|
+
$storeChannel: String!
|
801
|
+
$productId: String!
|
802
|
+
) {
|
803
|
+
getResourceByProduct(
|
804
|
+
partnerId: $partnerId
|
805
|
+
storeChannel: $storeChannel
|
806
|
+
productId: $productId
|
807
|
+
) {
|
808
|
+
id
|
809
|
+
quantity
|
810
|
+
qualify
|
811
|
+
handle
|
812
|
+
unitDTO {
|
813
|
+
id
|
814
|
+
name
|
815
|
+
}
|
816
|
+
productId
|
817
|
+
productName
|
818
|
+
resourceName
|
819
|
+
resourceUnit
|
820
|
+
price
|
821
|
+
}
|
822
|
+
}
|
823
823
|
`;
|
824
|
-
exports.GET_PRODUCT_VARIANT_BY_ID = (0, graphql_tag_1.gql) `
|
825
|
-
query GetProductVariantById(
|
826
|
-
$partnerId: String!
|
827
|
-
$storeChannel: String!
|
828
|
-
$variantId: String!
|
829
|
-
) {
|
830
|
-
getProductVariantById(
|
831
|
-
partnerId: $partnerId
|
832
|
-
storeChannel: $storeChannel
|
833
|
-
variantId: $variantId
|
834
|
-
) {
|
835
|
-
id
|
836
|
-
title
|
837
|
-
description
|
838
|
-
sku
|
839
|
-
shortDescription
|
840
|
-
subType
|
841
|
-
weight
|
842
|
-
width
|
843
|
-
depth
|
844
|
-
height
|
845
|
-
vat
|
846
|
-
unitDTO {
|
847
|
-
id
|
848
|
-
name
|
849
|
-
}
|
850
|
-
productAttributes {
|
851
|
-
attributeName
|
852
|
-
attributeValue
|
853
|
-
}
|
854
|
-
qualify
|
855
|
-
parentId
|
856
|
-
handle
|
857
|
-
price
|
858
|
-
priceType
|
859
|
-
salePolicy
|
860
|
-
priceTypeName
|
861
|
-
priceVaries
|
862
|
-
available
|
863
|
-
tags
|
864
|
-
options
|
865
|
-
optionsRelationship
|
866
|
-
compareAtPrice
|
867
|
-
featuredImage
|
868
|
-
images
|
869
|
-
variants {
|
870
|
-
id
|
871
|
-
handle
|
872
|
-
title
|
873
|
-
price
|
874
|
-
compareAtPrice
|
875
|
-
options
|
876
|
-
optionsIds
|
877
|
-
featuredImage
|
878
|
-
sku
|
879
|
-
}
|
880
|
-
featureTypes {
|
881
|
-
id
|
882
|
-
name
|
883
|
-
position
|
884
|
-
type
|
885
|
-
subType
|
886
|
-
fill
|
887
|
-
requireData
|
888
|
-
values
|
889
|
-
createStamp
|
890
|
-
createdBy
|
891
|
-
}
|
892
|
-
categories {
|
893
|
-
id
|
894
|
-
title
|
895
|
-
image
|
896
|
-
icon
|
897
|
-
parentId
|
898
|
-
level
|
899
|
-
handle
|
900
|
-
}
|
901
|
-
groups {
|
902
|
-
id
|
903
|
-
name
|
904
|
-
policy
|
905
|
-
image
|
906
|
-
}
|
907
|
-
}
|
908
|
-
}
|
824
|
+
exports.GET_PRODUCT_VARIANT_BY_ID = (0, graphql_tag_1.gql) `
|
825
|
+
query GetProductVariantById(
|
826
|
+
$partnerId: String!
|
827
|
+
$storeChannel: String!
|
828
|
+
$variantId: String!
|
829
|
+
) {
|
830
|
+
getProductVariantById(
|
831
|
+
partnerId: $partnerId
|
832
|
+
storeChannel: $storeChannel
|
833
|
+
variantId: $variantId
|
834
|
+
) {
|
835
|
+
id
|
836
|
+
title
|
837
|
+
description
|
838
|
+
sku
|
839
|
+
shortDescription
|
840
|
+
subType
|
841
|
+
weight
|
842
|
+
width
|
843
|
+
depth
|
844
|
+
height
|
845
|
+
vat
|
846
|
+
unitDTO {
|
847
|
+
id
|
848
|
+
name
|
849
|
+
}
|
850
|
+
productAttributes {
|
851
|
+
attributeName
|
852
|
+
attributeValue
|
853
|
+
}
|
854
|
+
qualify
|
855
|
+
parentId
|
856
|
+
handle
|
857
|
+
price
|
858
|
+
priceType
|
859
|
+
salePolicy
|
860
|
+
priceTypeName
|
861
|
+
priceVaries
|
862
|
+
available
|
863
|
+
tags
|
864
|
+
options
|
865
|
+
optionsRelationship
|
866
|
+
compareAtPrice
|
867
|
+
featuredImage
|
868
|
+
images
|
869
|
+
variants {
|
870
|
+
id
|
871
|
+
handle
|
872
|
+
title
|
873
|
+
price
|
874
|
+
compareAtPrice
|
875
|
+
options
|
876
|
+
optionsIds
|
877
|
+
featuredImage
|
878
|
+
sku
|
879
|
+
}
|
880
|
+
featureTypes {
|
881
|
+
id
|
882
|
+
name
|
883
|
+
position
|
884
|
+
type
|
885
|
+
subType
|
886
|
+
fill
|
887
|
+
requireData
|
888
|
+
values
|
889
|
+
createStamp
|
890
|
+
createdBy
|
891
|
+
}
|
892
|
+
categories {
|
893
|
+
id
|
894
|
+
title
|
895
|
+
image
|
896
|
+
icon
|
897
|
+
parentId
|
898
|
+
level
|
899
|
+
handle
|
900
|
+
}
|
901
|
+
groups {
|
902
|
+
id
|
903
|
+
name
|
904
|
+
policy
|
905
|
+
image
|
906
|
+
}
|
907
|
+
}
|
908
|
+
}
|
909
909
|
`;
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
910
|
+
const GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = (fields = []) => {
|
911
|
+
const fieldStr = fields.join("\n ");
|
912
|
+
const hasFields = fields.length > 0;
|
913
|
+
return (0, graphql_tag_1.gql) `
|
914
|
+
query GetProductVariantById(
|
915
|
+
$partnerId: String!
|
916
|
+
$storeChannel: String!
|
917
|
+
$variantId: String!
|
918
|
+
) {
|
919
|
+
getProductVariantById(
|
920
|
+
partnerId: $partnerId
|
921
|
+
storeChannel: $storeChannel
|
922
|
+
variantId: $variantId
|
923
|
+
) ${hasFields ? `{ ${fieldStr} }` : ""}
|
924
|
+
}
|
925
|
+
`;
|
926
|
+
};
|
927
|
+
exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC;
|
928
|
+
exports.GET_RELATED_INFOR = (0, graphql_tag_1.gql) `
|
929
|
+
query GetProductVariantById($id: String!) {
|
930
|
+
getRelatedInfor(id: $id) {
|
931
|
+
id
|
932
|
+
type
|
933
|
+
}
|
934
|
+
}
|
917
935
|
`;
|
918
|
-
exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
|
919
|
-
query GetDetailStores($partnerId: String!, $storeId: String!) {
|
920
|
-
getDetailStores(partnerId: $partnerId, storeId: $storeId) {
|
921
|
-
id
|
922
|
-
createdStamp
|
923
|
-
name
|
924
|
-
description {
|
925
|
-
name
|
926
|
-
phone
|
927
|
-
address
|
928
|
-
footer
|
929
|
-
showInfoStore
|
930
|
-
showBarcode
|
931
|
-
showFooter
|
932
|
-
showVat
|
933
|
-
showPromotion
|
934
|
-
}
|
935
|
-
type
|
936
|
-
enable
|
937
|
-
partyId
|
938
|
-
warehouses
|
939
|
-
warehouseIdDefault
|
940
|
-
enableOrderAbleFuture
|
941
|
-
enableOrderNegativeQuantity
|
942
|
-
storeEcommerceName
|
943
|
-
shippingCompanies
|
944
|
-
shippingCompanyIdPrimary
|
945
|
-
customerIdPrimary
|
946
|
-
paymentMethodIdPrimary
|
947
|
-
enableCustomProductPrice
|
948
|
-
enablePaymentPartial
|
949
|
-
paymentPartialPercent
|
950
|
-
productStoreLink
|
951
|
-
}
|
952
|
-
}
|
936
|
+
exports.GET_DETAIL_STORES = (0, graphql_tag_1.gql) `
|
937
|
+
query GetDetailStores($partnerId: String!, $storeId: String!) {
|
938
|
+
getDetailStores(partnerId: $partnerId, storeId: $storeId) {
|
939
|
+
id
|
940
|
+
createdStamp
|
941
|
+
name
|
942
|
+
description {
|
943
|
+
name
|
944
|
+
phone
|
945
|
+
address
|
946
|
+
footer
|
947
|
+
showInfoStore
|
948
|
+
showBarcode
|
949
|
+
showFooter
|
950
|
+
showVat
|
951
|
+
showPromotion
|
952
|
+
}
|
953
|
+
type
|
954
|
+
enable
|
955
|
+
partyId
|
956
|
+
warehouses
|
957
|
+
warehouseIdDefault
|
958
|
+
enableOrderAbleFuture
|
959
|
+
enableOrderNegativeQuantity
|
960
|
+
storeEcommerceName
|
961
|
+
shippingCompanies
|
962
|
+
shippingCompanyIdPrimary
|
963
|
+
customerIdPrimary
|
964
|
+
paymentMethodIdPrimary
|
965
|
+
enableCustomProductPrice
|
966
|
+
enablePaymentPartial
|
967
|
+
paymentPartialPercent
|
968
|
+
productStoreLink
|
969
|
+
}
|
970
|
+
}
|
953
971
|
`;
|
954
|
-
exports.GET_LIST_PRICE = (0, graphql_tag_1.gql) `
|
955
|
-
query GetListPrice(
|
956
|
-
$partnerId: String!
|
957
|
-
$storeChannel: String!
|
958
|
-
$productIds: [String!]!
|
959
|
-
) {
|
960
|
-
getListPrice(
|
961
|
-
partnerId: $partnerId
|
962
|
-
storeChannel: $storeChannel
|
963
|
-
productIds: $productIds
|
964
|
-
)
|
965
|
-
}
|
972
|
+
exports.GET_LIST_PRICE = (0, graphql_tag_1.gql) `
|
973
|
+
query GetListPrice(
|
974
|
+
$partnerId: String!
|
975
|
+
$storeChannel: String!
|
976
|
+
$productIds: [String!]!
|
977
|
+
) {
|
978
|
+
getListPrice(
|
979
|
+
partnerId: $partnerId
|
980
|
+
storeChannel: $storeChannel
|
981
|
+
productIds: $productIds
|
982
|
+
)
|
983
|
+
}
|
966
984
|
`;
|
967
|
-
exports.GET_TAGS = (0, graphql_tag_1.gql) `
|
968
|
-
query GetTags($partnerId: String!, $storeChannel: String!) {
|
969
|
-
getTags(partnerId: $partnerId, storeChannel: $storeChannel) {
|
970
|
-
id
|
971
|
-
name
|
972
|
-
slug
|
973
|
-
type
|
974
|
-
scope
|
975
|
-
storeIds
|
976
|
-
selected
|
977
|
-
}
|
978
|
-
}
|
985
|
+
exports.GET_TAGS = (0, graphql_tag_1.gql) `
|
986
|
+
query GetTags($partnerId: String!, $storeChannel: String!) {
|
987
|
+
getTags(partnerId: $partnerId, storeChannel: $storeChannel) {
|
988
|
+
id
|
989
|
+
name
|
990
|
+
slug
|
991
|
+
type
|
992
|
+
scope
|
993
|
+
storeIds
|
994
|
+
selected
|
995
|
+
}
|
996
|
+
}
|
979
997
|
`;
|
980
|
-
exports.GET_TAGS_BY_CATEGORY = (0, graphql_tag_1.gql) `
|
981
|
-
query GetTagsByCategory(
|
982
|
-
$partnerId: String!
|
983
|
-
$storeChannel: String!
|
984
|
-
$categoryId: String!
|
985
|
-
) {
|
986
|
-
getTagsByCategory(
|
987
|
-
partnerId: $partnerId
|
988
|
-
storeChannel: $storeChannel
|
989
|
-
categoryId: $categoryId
|
990
|
-
) {
|
991
|
-
id
|
992
|
-
name
|
993
|
-
slug
|
994
|
-
type
|
995
|
-
scope
|
996
|
-
storeIds
|
997
|
-
selected
|
998
|
-
}
|
999
|
-
}
|
998
|
+
exports.GET_TAGS_BY_CATEGORY = (0, graphql_tag_1.gql) `
|
999
|
+
query GetTagsByCategory(
|
1000
|
+
$partnerId: String!
|
1001
|
+
$storeChannel: String!
|
1002
|
+
$categoryId: String!
|
1003
|
+
) {
|
1004
|
+
getTagsByCategory(
|
1005
|
+
partnerId: $partnerId
|
1006
|
+
storeChannel: $storeChannel
|
1007
|
+
categoryId: $categoryId
|
1008
|
+
) {
|
1009
|
+
id
|
1010
|
+
name
|
1011
|
+
slug
|
1012
|
+
type
|
1013
|
+
scope
|
1014
|
+
storeIds
|
1015
|
+
selected
|
1016
|
+
}
|
1017
|
+
}
|
1000
1018
|
`;
|
1001
1019
|
const GET_LIST_PRODUCTS_CONFIG_DYNAMIC = (fields = []) => {
|
1002
1020
|
const fieldStr = fields.join("\n ");
|
1003
1021
|
const hasFields = fields.length > 0;
|
1004
|
-
return (0, graphql_tag_1.gql) `
|
1005
|
-
query getListProductConfig(
|
1006
|
-
$partnerId: String!
|
1007
|
-
$storeChannel: String!
|
1008
|
-
$productId: String!
|
1009
|
-
) {
|
1010
|
-
getListProductConfig(
|
1011
|
-
partnerId: $partnerId
|
1012
|
-
storeChannel: $storeChannel
|
1013
|
-
productId: $productId
|
1014
|
-
) {
|
1015
|
-
${hasFields ? `${fieldStr}` : ""}
|
1016
|
-
}
|
1017
|
-
}
|
1022
|
+
return (0, graphql_tag_1.gql) `
|
1023
|
+
query getListProductConfig(
|
1024
|
+
$partnerId: String!
|
1025
|
+
$storeChannel: String!
|
1026
|
+
$productId: String!
|
1027
|
+
) {
|
1028
|
+
getListProductConfig(
|
1029
|
+
partnerId: $partnerId
|
1030
|
+
storeChannel: $storeChannel
|
1031
|
+
productId: $productId
|
1032
|
+
) {
|
1033
|
+
${hasFields ? `${fieldStr}` : ""}
|
1034
|
+
}
|
1035
|
+
}
|
1018
1036
|
`;
|
1019
1037
|
};
|
1020
1038
|
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = GET_LIST_PRODUCTS_CONFIG_DYNAMIC;
|