@decocms/apps-wake 8.1.0-next.0 → 8.1.0-next.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/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/storefront.d.ts +14 -0
- package/dist/storefront.d.ts.map +1 -0
- package/dist/storefront.js +14 -0
- package/dist/storefront.js.map +1 -0
- package/dist/storefrontTypes.d.ts +7 -0
- package/dist/storefrontTypes.d.ts.map +1 -0
- package/dist/storefrontTypes.js +2 -0
- package/dist/storefrontTypes.js.map +1 -0
- package/dist/utils/client.d.ts +12 -0
- package/dist/utils/client.d.ts.map +1 -0
- package/dist/utils/client.js +2 -0
- package/dist/utils/client.js.map +1 -0
- package/dist/utils/gql.d.ts +16 -0
- package/dist/utils/gql.d.ts.map +1 -0
- package/dist/utils/gql.js +16 -0
- package/dist/utils/gql.js.map +1 -0
- package/dist/utils/graphql/queries.d.ts +117 -0
- package/dist/utils/graphql/queries.d.ts.map +1 -0
- package/dist/utils/graphql/queries.js +1323 -0
- package/dist/utils/graphql/queries.js.map +1 -0
- package/dist/utils/graphql/storefront.graphql.gen.d.ts +10344 -0
- package/dist/utils/graphql/storefront.graphql.gen.d.ts.map +1 -0
- package/dist/utils/graphql/storefront.graphql.gen.js +9 -0
- package/dist/utils/graphql/storefront.graphql.gen.js.map +1 -0
- package/dist/utils/graphqlOperationName.d.ts +36 -0
- package/dist/utils/graphqlOperationName.d.ts.map +1 -0
- package/dist/utils/graphqlOperationName.js +59 -0
- package/dist/utils/graphqlOperationName.js.map +1 -0
- package/dist/wakeClient.d.ts +54 -0
- package/dist/wakeClient.d.ts.map +1 -0
- package/dist/wakeClient.js +85 -0
- package/dist/wakeClient.js.map +1 -0
- package/package.json +26 -37
- package/src/index.ts +3 -63
- package/src/storefront.ts +1 -1
- package/src/storefrontTypes.ts +1 -1
- package/src/utils/gql.ts +1 -2
- package/src/utils/graphql/queries.ts +1 -1
- package/src/wakeClient.ts +3 -3
- package/src/__tests__/wakeClient.test.ts +0 -136
- package/src/actions/cart/addCoupon.ts +0 -43
- package/src/actions/cart/addItem.ts +0 -10
- package/src/actions/cart/addItems.ts +0 -50
- package/src/actions/cart/addKit.ts +0 -53
- package/src/actions/cart/partnerAssociate.ts +0 -48
- package/src/actions/cart/partnerDisassociate.ts +0 -43
- package/src/actions/cart/removeCoupon.ts +0 -39
- package/src/actions/cart/removeKit.ts +0 -56
- package/src/actions/cart/updateItemQuantity.ts +0 -69
- package/src/actions/newsletter/register.ts +0 -32
- package/src/actions/notifyme.ts +0 -28
- package/src/actions/review/create.ts +0 -30
- package/src/actions/shippingSimulation.ts +0 -60
- package/src/actions/submmitForm.ts +0 -25
- package/src/actions/wishlist/addProduct.ts +0 -43
- package/src/actions/wishlist/removeProduct.ts +0 -45
- package/src/client.ts +0 -123
- package/src/commerceLoaders.ts +0 -137
- package/src/handlers/sitemap.ts +0 -61
- package/src/loaders/cart.ts +0 -46
- package/src/loaders/partners.ts +0 -58
- package/src/loaders/productDetailsPage.ts +0 -174
- package/src/loaders/productList.ts +0 -262
- package/src/loaders/productListingPage.ts +0 -333
- package/src/loaders/proxy.ts +0 -79
- package/src/loaders/recommendations.ts +0 -84
- package/src/loaders/shop.ts +0 -37
- package/src/loaders/suggestion.ts +0 -67
- package/src/loaders/user.ts +0 -48
- package/src/loaders/wishlist.ts +0 -40
- package/src/manifest.gen.ts +0 -69
- package/src/mod.ts +0 -88
- package/src/registry.ts +0 -9
- package/src/utils/authError.ts +0 -107
- package/src/utils/authenticate.ts +0 -42
- package/src/utils/capitalize.ts +0 -9
- package/src/utils/cart.ts +0 -33
- package/src/utils/cookies.ts +0 -82
- package/src/utils/getVariations.ts +0 -47
- package/src/utils/graphql.ts +0 -72
- package/src/utils/httpError.ts +0 -15
- package/src/utils/instrumentedFetch.ts +0 -46
- package/src/utils/operationRouter.ts +0 -51
- package/src/utils/parseHeaders.ts +0 -19
- package/src/utils/partner.ts +0 -34
- package/src/utils/requestCtx.ts +0 -41
- package/src/utils/transform.ts +0 -460
- package/src/utils/types.ts +0 -6
- package/src/utils/user.ts +0 -9
- package/tsconfig.json +0 -7
|
@@ -0,0 +1,1323 @@
|
|
|
1
|
+
import { gql } from "../gql.js";
|
|
2
|
+
const Checkout = gql `
|
|
3
|
+
fragment Checkout on Checkout {
|
|
4
|
+
checkoutId
|
|
5
|
+
shippingFee
|
|
6
|
+
subtotal
|
|
7
|
+
total
|
|
8
|
+
completed
|
|
9
|
+
coupon
|
|
10
|
+
customer {
|
|
11
|
+
customerId
|
|
12
|
+
}
|
|
13
|
+
products {
|
|
14
|
+
imageUrl
|
|
15
|
+
brand
|
|
16
|
+
ajustedPrice
|
|
17
|
+
listPrice
|
|
18
|
+
totalListPrice
|
|
19
|
+
totalAdjustedPrice
|
|
20
|
+
seller {
|
|
21
|
+
sellerName
|
|
22
|
+
distributionCenterId
|
|
23
|
+
}
|
|
24
|
+
productAttributes {
|
|
25
|
+
name
|
|
26
|
+
type
|
|
27
|
+
value
|
|
28
|
+
}
|
|
29
|
+
adjustments {
|
|
30
|
+
observation
|
|
31
|
+
type
|
|
32
|
+
value
|
|
33
|
+
}
|
|
34
|
+
price
|
|
35
|
+
name
|
|
36
|
+
productId
|
|
37
|
+
productVariantId
|
|
38
|
+
quantity
|
|
39
|
+
sku
|
|
40
|
+
url
|
|
41
|
+
category
|
|
42
|
+
kit
|
|
43
|
+
gift
|
|
44
|
+
subscription {
|
|
45
|
+
availableSubscriptions {
|
|
46
|
+
name
|
|
47
|
+
recurringDays
|
|
48
|
+
recurringTypeId
|
|
49
|
+
selected
|
|
50
|
+
subscriptionGroupDiscount
|
|
51
|
+
subscriptionGroupId
|
|
52
|
+
}
|
|
53
|
+
selected {
|
|
54
|
+
selected
|
|
55
|
+
name
|
|
56
|
+
recurringDays
|
|
57
|
+
recurringTypeId
|
|
58
|
+
subscriptionGroupDiscount
|
|
59
|
+
subscriptionGroupId
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
customization {
|
|
63
|
+
availableCustomizations {
|
|
64
|
+
cost
|
|
65
|
+
customizationId
|
|
66
|
+
groupName
|
|
67
|
+
id
|
|
68
|
+
maxLength
|
|
69
|
+
name
|
|
70
|
+
order
|
|
71
|
+
type
|
|
72
|
+
values
|
|
73
|
+
}
|
|
74
|
+
id
|
|
75
|
+
values {
|
|
76
|
+
cost
|
|
77
|
+
name
|
|
78
|
+
value
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
attributeSelections {
|
|
82
|
+
selectedVariant {
|
|
83
|
+
id
|
|
84
|
+
alias
|
|
85
|
+
available
|
|
86
|
+
images {
|
|
87
|
+
fileName
|
|
88
|
+
url
|
|
89
|
+
}
|
|
90
|
+
prices {
|
|
91
|
+
listPrice
|
|
92
|
+
price
|
|
93
|
+
discountPercentage
|
|
94
|
+
installmentPlans {
|
|
95
|
+
displayName
|
|
96
|
+
name
|
|
97
|
+
installments {
|
|
98
|
+
discount
|
|
99
|
+
fees
|
|
100
|
+
number
|
|
101
|
+
value
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
bestInstallment {
|
|
105
|
+
name
|
|
106
|
+
displayName
|
|
107
|
+
discount
|
|
108
|
+
fees
|
|
109
|
+
number
|
|
110
|
+
value
|
|
111
|
+
}
|
|
112
|
+
wholesalePrices {
|
|
113
|
+
price
|
|
114
|
+
quantity
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
productId
|
|
118
|
+
productVariantId
|
|
119
|
+
stock
|
|
120
|
+
}
|
|
121
|
+
selections {
|
|
122
|
+
attributeId
|
|
123
|
+
displayType
|
|
124
|
+
name
|
|
125
|
+
varyByParent
|
|
126
|
+
values {
|
|
127
|
+
alias
|
|
128
|
+
available
|
|
129
|
+
printUrl
|
|
130
|
+
selected
|
|
131
|
+
value
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
selectedAddress {
|
|
137
|
+
addressNumber
|
|
138
|
+
cep
|
|
139
|
+
city
|
|
140
|
+
complement
|
|
141
|
+
id
|
|
142
|
+
neighborhood
|
|
143
|
+
referencePoint
|
|
144
|
+
state
|
|
145
|
+
street
|
|
146
|
+
}
|
|
147
|
+
selectedShipping {
|
|
148
|
+
deadline
|
|
149
|
+
deadlineInHours
|
|
150
|
+
deliverySchedule {
|
|
151
|
+
date
|
|
152
|
+
endDateTime
|
|
153
|
+
endTime
|
|
154
|
+
startDateTime
|
|
155
|
+
startTime
|
|
156
|
+
}
|
|
157
|
+
name
|
|
158
|
+
shippingQuoteId
|
|
159
|
+
type
|
|
160
|
+
value
|
|
161
|
+
}
|
|
162
|
+
selectedPaymentMethod {
|
|
163
|
+
html
|
|
164
|
+
id
|
|
165
|
+
installments {
|
|
166
|
+
adjustment
|
|
167
|
+
number
|
|
168
|
+
total
|
|
169
|
+
value
|
|
170
|
+
}
|
|
171
|
+
paymentMethodId
|
|
172
|
+
scripts
|
|
173
|
+
selectedInstallment {
|
|
174
|
+
adjustment
|
|
175
|
+
number
|
|
176
|
+
total
|
|
177
|
+
value
|
|
178
|
+
}
|
|
179
|
+
suggestedCards {
|
|
180
|
+
brand
|
|
181
|
+
key
|
|
182
|
+
name
|
|
183
|
+
number
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
orders {
|
|
187
|
+
adjustments {
|
|
188
|
+
name
|
|
189
|
+
type
|
|
190
|
+
value
|
|
191
|
+
}
|
|
192
|
+
date
|
|
193
|
+
delivery {
|
|
194
|
+
address {
|
|
195
|
+
address
|
|
196
|
+
cep
|
|
197
|
+
city
|
|
198
|
+
complement
|
|
199
|
+
isPickupStore
|
|
200
|
+
name
|
|
201
|
+
neighborhood
|
|
202
|
+
pickupStoreText
|
|
203
|
+
}
|
|
204
|
+
cost
|
|
205
|
+
deliveryTime
|
|
206
|
+
deliveryTimeInHours
|
|
207
|
+
name
|
|
208
|
+
}
|
|
209
|
+
discountValue
|
|
210
|
+
dispatchTimeText
|
|
211
|
+
interestValue
|
|
212
|
+
orderId
|
|
213
|
+
orderStatus
|
|
214
|
+
payment {
|
|
215
|
+
card {
|
|
216
|
+
brand
|
|
217
|
+
cardInterest
|
|
218
|
+
installments
|
|
219
|
+
name
|
|
220
|
+
number
|
|
221
|
+
}
|
|
222
|
+
invoice {
|
|
223
|
+
digitableLine
|
|
224
|
+
paymentLink
|
|
225
|
+
}
|
|
226
|
+
name
|
|
227
|
+
pix {
|
|
228
|
+
qrCode
|
|
229
|
+
qrCodeExpirationDate
|
|
230
|
+
qrCodeUrl
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
products {
|
|
234
|
+
adjustments {
|
|
235
|
+
additionalInformation
|
|
236
|
+
name
|
|
237
|
+
type
|
|
238
|
+
value
|
|
239
|
+
}
|
|
240
|
+
attributes {
|
|
241
|
+
name
|
|
242
|
+
value
|
|
243
|
+
}
|
|
244
|
+
imageUrl
|
|
245
|
+
name
|
|
246
|
+
productVariantId
|
|
247
|
+
quantity
|
|
248
|
+
unitValue
|
|
249
|
+
value
|
|
250
|
+
}
|
|
251
|
+
shippingValue
|
|
252
|
+
totalValue
|
|
253
|
+
|
|
254
|
+
}
|
|
255
|
+
kits {
|
|
256
|
+
kitId
|
|
257
|
+
kitGroupId
|
|
258
|
+
alias
|
|
259
|
+
imageUrl
|
|
260
|
+
listPrice
|
|
261
|
+
price
|
|
262
|
+
totalListPrice
|
|
263
|
+
totalAdjustedPrice
|
|
264
|
+
name
|
|
265
|
+
quantity
|
|
266
|
+
products {
|
|
267
|
+
productId
|
|
268
|
+
productVariantId
|
|
269
|
+
imageUrl
|
|
270
|
+
name
|
|
271
|
+
url
|
|
272
|
+
quantity
|
|
273
|
+
productAttributes {
|
|
274
|
+
name
|
|
275
|
+
value
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
`;
|
|
281
|
+
const Product = gql `
|
|
282
|
+
fragment Product on Product {
|
|
283
|
+
mainVariant
|
|
284
|
+
productName
|
|
285
|
+
productId
|
|
286
|
+
alias
|
|
287
|
+
attributes {
|
|
288
|
+
id
|
|
289
|
+
type
|
|
290
|
+
value
|
|
291
|
+
name
|
|
292
|
+
}
|
|
293
|
+
productCategories {
|
|
294
|
+
id
|
|
295
|
+
name
|
|
296
|
+
url
|
|
297
|
+
hierarchy
|
|
298
|
+
main
|
|
299
|
+
googleCategories
|
|
300
|
+
}
|
|
301
|
+
informations {
|
|
302
|
+
title
|
|
303
|
+
value
|
|
304
|
+
type
|
|
305
|
+
}
|
|
306
|
+
available
|
|
307
|
+
averageRating
|
|
308
|
+
condition
|
|
309
|
+
createdAt
|
|
310
|
+
ean
|
|
311
|
+
id
|
|
312
|
+
images {
|
|
313
|
+
url
|
|
314
|
+
fileName
|
|
315
|
+
print
|
|
316
|
+
}
|
|
317
|
+
minimumOrderQuantity
|
|
318
|
+
prices {
|
|
319
|
+
bestInstallment {
|
|
320
|
+
discount
|
|
321
|
+
displayName
|
|
322
|
+
fees
|
|
323
|
+
name
|
|
324
|
+
number
|
|
325
|
+
value
|
|
326
|
+
}
|
|
327
|
+
discountPercentage
|
|
328
|
+
discounted
|
|
329
|
+
installmentPlans {
|
|
330
|
+
displayName
|
|
331
|
+
installments {
|
|
332
|
+
discount
|
|
333
|
+
fees
|
|
334
|
+
number
|
|
335
|
+
value
|
|
336
|
+
}
|
|
337
|
+
name
|
|
338
|
+
}
|
|
339
|
+
listPrice
|
|
340
|
+
multiplicationFactor
|
|
341
|
+
price
|
|
342
|
+
priceTables {
|
|
343
|
+
discountPercentage
|
|
344
|
+
id
|
|
345
|
+
listPrice
|
|
346
|
+
price
|
|
347
|
+
}
|
|
348
|
+
wholesalePrices {
|
|
349
|
+
price
|
|
350
|
+
quantity
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
productBrand {
|
|
354
|
+
fullUrlLogo
|
|
355
|
+
logoUrl
|
|
356
|
+
name
|
|
357
|
+
alias
|
|
358
|
+
}
|
|
359
|
+
productVariantId
|
|
360
|
+
seller {
|
|
361
|
+
name
|
|
362
|
+
}
|
|
363
|
+
parentId
|
|
364
|
+
sku
|
|
365
|
+
numberOfVotes
|
|
366
|
+
stock
|
|
367
|
+
variantName
|
|
368
|
+
variantStock
|
|
369
|
+
collection
|
|
370
|
+
urlVideo
|
|
371
|
+
similarProducts {
|
|
372
|
+
alias
|
|
373
|
+
image
|
|
374
|
+
imageUrl
|
|
375
|
+
name
|
|
376
|
+
}
|
|
377
|
+
promotions {
|
|
378
|
+
content
|
|
379
|
+
disclosureType
|
|
380
|
+
id
|
|
381
|
+
fullStampUrl
|
|
382
|
+
stamp
|
|
383
|
+
title
|
|
384
|
+
}
|
|
385
|
+
# parallelOptions
|
|
386
|
+
}
|
|
387
|
+
`;
|
|
388
|
+
const ProductVariant = gql `
|
|
389
|
+
fragment ProductVariant on ProductVariant {
|
|
390
|
+
|
|
391
|
+
aggregatedStock
|
|
392
|
+
alias
|
|
393
|
+
available
|
|
394
|
+
attributes {
|
|
395
|
+
attributeId
|
|
396
|
+
displayType
|
|
397
|
+
id
|
|
398
|
+
name
|
|
399
|
+
type
|
|
400
|
+
value
|
|
401
|
+
}
|
|
402
|
+
ean
|
|
403
|
+
id
|
|
404
|
+
images {
|
|
405
|
+
fileName
|
|
406
|
+
mini
|
|
407
|
+
order
|
|
408
|
+
print
|
|
409
|
+
url
|
|
410
|
+
}
|
|
411
|
+
productId
|
|
412
|
+
productVariantId
|
|
413
|
+
productVariantName
|
|
414
|
+
sku
|
|
415
|
+
stock
|
|
416
|
+
prices {
|
|
417
|
+
discountPercentage
|
|
418
|
+
discounted
|
|
419
|
+
installmentPlans {
|
|
420
|
+
displayName
|
|
421
|
+
name
|
|
422
|
+
installments {
|
|
423
|
+
discount
|
|
424
|
+
fees
|
|
425
|
+
number
|
|
426
|
+
value
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
listPrice
|
|
430
|
+
multiplicationFactor
|
|
431
|
+
price
|
|
432
|
+
priceTables {
|
|
433
|
+
discountPercentage
|
|
434
|
+
id
|
|
435
|
+
listPrice
|
|
436
|
+
price
|
|
437
|
+
}
|
|
438
|
+
wholesalePrices {
|
|
439
|
+
price
|
|
440
|
+
quantity
|
|
441
|
+
}
|
|
442
|
+
bestInstallment {
|
|
443
|
+
discount
|
|
444
|
+
displayName
|
|
445
|
+
fees
|
|
446
|
+
name
|
|
447
|
+
number
|
|
448
|
+
value
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
offers {
|
|
452
|
+
name
|
|
453
|
+
prices {
|
|
454
|
+
installmentPlans {
|
|
455
|
+
displayName
|
|
456
|
+
installments {
|
|
457
|
+
discount
|
|
458
|
+
fees
|
|
459
|
+
number
|
|
460
|
+
value
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
listPrice
|
|
464
|
+
price
|
|
465
|
+
}
|
|
466
|
+
productVariantId
|
|
467
|
+
}
|
|
468
|
+
promotions {
|
|
469
|
+
content
|
|
470
|
+
disclosureType
|
|
471
|
+
id
|
|
472
|
+
fullStampUrl
|
|
473
|
+
stamp
|
|
474
|
+
title
|
|
475
|
+
}
|
|
476
|
+
}`;
|
|
477
|
+
const BuyList = gql `
|
|
478
|
+
fragment BuyList on BuyList {
|
|
479
|
+
|
|
480
|
+
mainVariant
|
|
481
|
+
productName
|
|
482
|
+
productId
|
|
483
|
+
alias
|
|
484
|
+
collection
|
|
485
|
+
kit
|
|
486
|
+
attributes {
|
|
487
|
+
name
|
|
488
|
+
type
|
|
489
|
+
value
|
|
490
|
+
attributeId
|
|
491
|
+
displayType
|
|
492
|
+
id
|
|
493
|
+
}
|
|
494
|
+
numberOfVotes
|
|
495
|
+
productCategories {
|
|
496
|
+
id
|
|
497
|
+
name
|
|
498
|
+
url
|
|
499
|
+
hierarchy
|
|
500
|
+
main
|
|
501
|
+
googleCategories
|
|
502
|
+
}
|
|
503
|
+
informations {
|
|
504
|
+
title
|
|
505
|
+
value
|
|
506
|
+
type
|
|
507
|
+
}
|
|
508
|
+
available
|
|
509
|
+
averageRating
|
|
510
|
+
breadcrumbs {
|
|
511
|
+
text
|
|
512
|
+
link
|
|
513
|
+
}
|
|
514
|
+
condition
|
|
515
|
+
createdAt
|
|
516
|
+
ean
|
|
517
|
+
id
|
|
518
|
+
images {
|
|
519
|
+
url
|
|
520
|
+
fileName
|
|
521
|
+
print
|
|
522
|
+
}
|
|
523
|
+
minimumOrderQuantity
|
|
524
|
+
prices {
|
|
525
|
+
bestInstallment {
|
|
526
|
+
discount
|
|
527
|
+
displayName
|
|
528
|
+
fees
|
|
529
|
+
name
|
|
530
|
+
number
|
|
531
|
+
value
|
|
532
|
+
}
|
|
533
|
+
discountPercentage
|
|
534
|
+
discounted
|
|
535
|
+
installmentPlans {
|
|
536
|
+
displayName
|
|
537
|
+
installments {
|
|
538
|
+
discount
|
|
539
|
+
fees
|
|
540
|
+
number
|
|
541
|
+
value
|
|
542
|
+
}
|
|
543
|
+
name
|
|
544
|
+
}
|
|
545
|
+
listPrice
|
|
546
|
+
multiplicationFactor
|
|
547
|
+
price
|
|
548
|
+
priceTables {
|
|
549
|
+
discountPercentage
|
|
550
|
+
id
|
|
551
|
+
listPrice
|
|
552
|
+
price
|
|
553
|
+
}
|
|
554
|
+
wholesalePrices {
|
|
555
|
+
price
|
|
556
|
+
quantity
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
productBrand {
|
|
560
|
+
fullUrlLogo
|
|
561
|
+
logoUrl
|
|
562
|
+
name
|
|
563
|
+
alias
|
|
564
|
+
}
|
|
565
|
+
productVariantId
|
|
566
|
+
seller {
|
|
567
|
+
name
|
|
568
|
+
}
|
|
569
|
+
seo {
|
|
570
|
+
name
|
|
571
|
+
scheme
|
|
572
|
+
type
|
|
573
|
+
httpEquiv
|
|
574
|
+
content
|
|
575
|
+
}
|
|
576
|
+
sku
|
|
577
|
+
stock
|
|
578
|
+
variantName
|
|
579
|
+
parallelOptions
|
|
580
|
+
urlVideo
|
|
581
|
+
reviews {
|
|
582
|
+
rating
|
|
583
|
+
review
|
|
584
|
+
reviewDate
|
|
585
|
+
email
|
|
586
|
+
customer
|
|
587
|
+
}
|
|
588
|
+
similarProducts {
|
|
589
|
+
alias
|
|
590
|
+
image
|
|
591
|
+
imageUrl
|
|
592
|
+
name
|
|
593
|
+
}
|
|
594
|
+
attributeSelections {
|
|
595
|
+
selections {
|
|
596
|
+
attributeId
|
|
597
|
+
displayType
|
|
598
|
+
name
|
|
599
|
+
varyByParent
|
|
600
|
+
values {
|
|
601
|
+
alias
|
|
602
|
+
available
|
|
603
|
+
value
|
|
604
|
+
selected
|
|
605
|
+
printUrl
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
canBeMatrix
|
|
609
|
+
matrix {
|
|
610
|
+
column {
|
|
611
|
+
displayType
|
|
612
|
+
name
|
|
613
|
+
values {
|
|
614
|
+
value
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
data {
|
|
618
|
+
available
|
|
619
|
+
productVariantId
|
|
620
|
+
stock
|
|
621
|
+
}
|
|
622
|
+
row {
|
|
623
|
+
displayType
|
|
624
|
+
name
|
|
625
|
+
values {
|
|
626
|
+
value
|
|
627
|
+
printUrl
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
buyTogether {
|
|
633
|
+
productId
|
|
634
|
+
}
|
|
635
|
+
promotions {
|
|
636
|
+
content
|
|
637
|
+
disclosureType
|
|
638
|
+
id
|
|
639
|
+
fullStampUrl
|
|
640
|
+
stamp
|
|
641
|
+
title
|
|
642
|
+
}
|
|
643
|
+
alias
|
|
644
|
+
buyListId
|
|
645
|
+
kit
|
|
646
|
+
available
|
|
647
|
+
variantName
|
|
648
|
+
buyListProducts {
|
|
649
|
+
productId
|
|
650
|
+
quantity
|
|
651
|
+
includeSameParent
|
|
652
|
+
}
|
|
653
|
+
images{
|
|
654
|
+
url
|
|
655
|
+
fileName
|
|
656
|
+
print
|
|
657
|
+
}
|
|
658
|
+
informations{
|
|
659
|
+
id
|
|
660
|
+
title
|
|
661
|
+
type
|
|
662
|
+
value
|
|
663
|
+
}
|
|
664
|
+
promotions{
|
|
665
|
+
content
|
|
666
|
+
id
|
|
667
|
+
stamp
|
|
668
|
+
fullStampUrl
|
|
669
|
+
title
|
|
670
|
+
disclosureType
|
|
671
|
+
}
|
|
672
|
+
productName
|
|
673
|
+
prices {
|
|
674
|
+
listPrice
|
|
675
|
+
price
|
|
676
|
+
discountPercentage
|
|
677
|
+
installmentPlans{
|
|
678
|
+
displayName
|
|
679
|
+
name
|
|
680
|
+
installments{
|
|
681
|
+
discount
|
|
682
|
+
fees
|
|
683
|
+
number
|
|
684
|
+
value
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
bestInstallment {
|
|
688
|
+
name
|
|
689
|
+
displayName
|
|
690
|
+
discount
|
|
691
|
+
fees
|
|
692
|
+
number
|
|
693
|
+
value
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
}
|
|
698
|
+
`;
|
|
699
|
+
const SingleProductPart = gql `
|
|
700
|
+
fragment SingleProductPart on SingleProduct {
|
|
701
|
+
mainVariant
|
|
702
|
+
productName
|
|
703
|
+
productId
|
|
704
|
+
alias
|
|
705
|
+
collection
|
|
706
|
+
attributes {
|
|
707
|
+
name
|
|
708
|
+
type
|
|
709
|
+
value
|
|
710
|
+
attributeId
|
|
711
|
+
displayType
|
|
712
|
+
id
|
|
713
|
+
}
|
|
714
|
+
numberOfVotes
|
|
715
|
+
productCategories {
|
|
716
|
+
id
|
|
717
|
+
name
|
|
718
|
+
url
|
|
719
|
+
hierarchy
|
|
720
|
+
main
|
|
721
|
+
googleCategories
|
|
722
|
+
}
|
|
723
|
+
informations {
|
|
724
|
+
title
|
|
725
|
+
value
|
|
726
|
+
type
|
|
727
|
+
}
|
|
728
|
+
available
|
|
729
|
+
averageRating
|
|
730
|
+
breadcrumbs {
|
|
731
|
+
text
|
|
732
|
+
link
|
|
733
|
+
}
|
|
734
|
+
condition
|
|
735
|
+
createdAt
|
|
736
|
+
ean
|
|
737
|
+
id
|
|
738
|
+
images {
|
|
739
|
+
url
|
|
740
|
+
fileName
|
|
741
|
+
print
|
|
742
|
+
}
|
|
743
|
+
minimumOrderQuantity
|
|
744
|
+
prices {
|
|
745
|
+
bestInstallment {
|
|
746
|
+
discount
|
|
747
|
+
displayName
|
|
748
|
+
fees
|
|
749
|
+
name
|
|
750
|
+
number
|
|
751
|
+
value
|
|
752
|
+
}
|
|
753
|
+
discountPercentage
|
|
754
|
+
discounted
|
|
755
|
+
installmentPlans {
|
|
756
|
+
displayName
|
|
757
|
+
installments {
|
|
758
|
+
discount
|
|
759
|
+
fees
|
|
760
|
+
number
|
|
761
|
+
value
|
|
762
|
+
}
|
|
763
|
+
name
|
|
764
|
+
}
|
|
765
|
+
listPrice
|
|
766
|
+
multiplicationFactor
|
|
767
|
+
price
|
|
768
|
+
priceTables {
|
|
769
|
+
discountPercentage
|
|
770
|
+
id
|
|
771
|
+
listPrice
|
|
772
|
+
price
|
|
773
|
+
}
|
|
774
|
+
wholesalePrices {
|
|
775
|
+
price
|
|
776
|
+
quantity
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
productBrand {
|
|
780
|
+
fullUrlLogo
|
|
781
|
+
logoUrl
|
|
782
|
+
name
|
|
783
|
+
alias
|
|
784
|
+
}
|
|
785
|
+
productVariantId
|
|
786
|
+
seller {
|
|
787
|
+
name
|
|
788
|
+
}
|
|
789
|
+
seo {
|
|
790
|
+
name
|
|
791
|
+
scheme
|
|
792
|
+
type
|
|
793
|
+
httpEquiv
|
|
794
|
+
content
|
|
795
|
+
}
|
|
796
|
+
sku
|
|
797
|
+
stock
|
|
798
|
+
variantName
|
|
799
|
+
parallelOptions
|
|
800
|
+
urlVideo
|
|
801
|
+
reviews {
|
|
802
|
+
rating
|
|
803
|
+
review
|
|
804
|
+
reviewDate
|
|
805
|
+
email
|
|
806
|
+
customer
|
|
807
|
+
}
|
|
808
|
+
similarProducts {
|
|
809
|
+
alias
|
|
810
|
+
image
|
|
811
|
+
imageUrl
|
|
812
|
+
name
|
|
813
|
+
}
|
|
814
|
+
attributeSelections(includeParentIdVariants: $includeParentIdVariants) {
|
|
815
|
+
selections {
|
|
816
|
+
attributeId
|
|
817
|
+
displayType
|
|
818
|
+
name
|
|
819
|
+
varyByParent
|
|
820
|
+
values {
|
|
821
|
+
alias
|
|
822
|
+
available
|
|
823
|
+
value
|
|
824
|
+
selected
|
|
825
|
+
printUrl
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
canBeMatrix
|
|
829
|
+
matrix {
|
|
830
|
+
column {
|
|
831
|
+
displayType
|
|
832
|
+
name
|
|
833
|
+
values {
|
|
834
|
+
value
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
data {
|
|
838
|
+
available
|
|
839
|
+
productVariantId
|
|
840
|
+
stock
|
|
841
|
+
}
|
|
842
|
+
row {
|
|
843
|
+
displayType
|
|
844
|
+
name
|
|
845
|
+
values {
|
|
846
|
+
value
|
|
847
|
+
printUrl
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
selectedVariant {
|
|
852
|
+
...ProductVariant
|
|
853
|
+
}
|
|
854
|
+
candidateVariant {
|
|
855
|
+
...ProductVariant
|
|
856
|
+
}
|
|
857
|
+
},
|
|
858
|
+
promotions {
|
|
859
|
+
content
|
|
860
|
+
disclosureType
|
|
861
|
+
id
|
|
862
|
+
fullStampUrl
|
|
863
|
+
stamp
|
|
864
|
+
title
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
}
|
|
868
|
+
`;
|
|
869
|
+
const SingleProduct = gql `
|
|
870
|
+
fragment SingleProduct on SingleProduct {
|
|
871
|
+
...SingleProductPart,
|
|
872
|
+
buyTogether {
|
|
873
|
+
productId
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
`;
|
|
878
|
+
const RestockAlertNode = gql `
|
|
879
|
+
fragment RestockAlertNode on RestockAlertNode {
|
|
880
|
+
email,
|
|
881
|
+
name,
|
|
882
|
+
productVariantId,
|
|
883
|
+
requestDate
|
|
884
|
+
}
|
|
885
|
+
`;
|
|
886
|
+
const NewsletterNode = gql `
|
|
887
|
+
fragment NewsletterNode on NewsletterNode {
|
|
888
|
+
email,
|
|
889
|
+
name,
|
|
890
|
+
createDate,
|
|
891
|
+
updateDate
|
|
892
|
+
}
|
|
893
|
+
`;
|
|
894
|
+
const ShippingQuote = gql `
|
|
895
|
+
fragment ShippingQuote on ShippingQuote {
|
|
896
|
+
id
|
|
897
|
+
type
|
|
898
|
+
name
|
|
899
|
+
value
|
|
900
|
+
deadline
|
|
901
|
+
shippingQuoteId
|
|
902
|
+
deliverySchedules {
|
|
903
|
+
date
|
|
904
|
+
periods {
|
|
905
|
+
end
|
|
906
|
+
id
|
|
907
|
+
start
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
products {
|
|
911
|
+
productVariantId
|
|
912
|
+
value
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
`;
|
|
916
|
+
export const Customer = gql `
|
|
917
|
+
fragment Customer on Customer {
|
|
918
|
+
id
|
|
919
|
+
email
|
|
920
|
+
gender
|
|
921
|
+
customerId
|
|
922
|
+
companyName
|
|
923
|
+
customerName
|
|
924
|
+
customerType
|
|
925
|
+
responsibleName
|
|
926
|
+
informationGroups {
|
|
927
|
+
exibitionName
|
|
928
|
+
name
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
`;
|
|
932
|
+
export const WishlistReducedProduct = gql `
|
|
933
|
+
fragment WishlistReducedProduct on Product {
|
|
934
|
+
productId
|
|
935
|
+
productName
|
|
936
|
+
}
|
|
937
|
+
`;
|
|
938
|
+
export const GetProduct = {
|
|
939
|
+
fragments: [SingleProductPart, SingleProduct, ProductVariant],
|
|
940
|
+
query: gql `query GetProduct($productId: Long!, $includeParentIdVariants: Boolean, $partnerAccessToken: String) {
|
|
941
|
+
product(productId: $productId , partnerAccessToken: $partnerAccessToken) {
|
|
942
|
+
...SingleProduct
|
|
943
|
+
}
|
|
944
|
+
}`,
|
|
945
|
+
};
|
|
946
|
+
export const GetCart = {
|
|
947
|
+
fragments: [Checkout],
|
|
948
|
+
query: gql `query GetCart($checkoutId: String!) {
|
|
949
|
+
checkout(checkoutId: $checkoutId) { ...Checkout }
|
|
950
|
+
}`,
|
|
951
|
+
};
|
|
952
|
+
export const CreateCart = {
|
|
953
|
+
fragments: [Checkout],
|
|
954
|
+
query: gql `mutation CreateCart { checkout: createCheckout { ...Checkout } }`,
|
|
955
|
+
};
|
|
956
|
+
export const GetProducts = {
|
|
957
|
+
fragments: [Product],
|
|
958
|
+
query: gql `query GetProducts($filters: ProductExplicitFiltersInput!, $first: Int!, $sortDirection: SortDirection!, $sortKey: ProductSortKeys, $after: String, $partnerAccessToken: String) { products(filters: $filters, first: $first, sortDirection: $sortDirection, sortKey: $sortKey, after: $after, partnerAccessToken: $partnerAccessToken) {
|
|
959
|
+
nodes { ...Product }
|
|
960
|
+
totalCount
|
|
961
|
+
pageInfo{
|
|
962
|
+
hasNextPage,
|
|
963
|
+
endCursor,
|
|
964
|
+
hasPreviousPage,
|
|
965
|
+
startCursor
|
|
966
|
+
}
|
|
967
|
+
}}`,
|
|
968
|
+
};
|
|
969
|
+
export const Search = {
|
|
970
|
+
fragments: [Product],
|
|
971
|
+
query: gql `query Search($operation: Operation!, $query: String, $onlyMainVariant: Boolean, $minimumPrice: Decimal, $maximumPrice: Decimal , $limit: Int, $offset: Int, $sortDirection: SortDirection, $sortKey: ProductSearchSortKeys, $filters: [ProductFilterInput], $partnerAccessToken: String) {
|
|
972
|
+
result: search(query: $query, operation: $operation, partnerAccessToken: $partnerAccessToken) {
|
|
973
|
+
aggregations {
|
|
974
|
+
maximumPrice
|
|
975
|
+
minimumPrice
|
|
976
|
+
priceRanges {
|
|
977
|
+
quantity
|
|
978
|
+
range
|
|
979
|
+
}
|
|
980
|
+
filters {
|
|
981
|
+
field
|
|
982
|
+
origin
|
|
983
|
+
values {
|
|
984
|
+
quantity
|
|
985
|
+
name
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
breadcrumbs {
|
|
990
|
+
link
|
|
991
|
+
text
|
|
992
|
+
}
|
|
993
|
+
forbiddenTerm {
|
|
994
|
+
text
|
|
995
|
+
suggested
|
|
996
|
+
}
|
|
997
|
+
pageSize
|
|
998
|
+
redirectUrl
|
|
999
|
+
searchTime
|
|
1000
|
+
productsByOffset(
|
|
1001
|
+
filters: $filters,
|
|
1002
|
+
limit: $limit,
|
|
1003
|
+
maximumPrice: $maximumPrice,
|
|
1004
|
+
minimumPrice: $minimumPrice,
|
|
1005
|
+
onlyMainVariant: $onlyMainVariant
|
|
1006
|
+
offset: $offset,
|
|
1007
|
+
sortDirection: $sortDirection,
|
|
1008
|
+
sortKey: $sortKey
|
|
1009
|
+
) {
|
|
1010
|
+
items {
|
|
1011
|
+
...Product
|
|
1012
|
+
}
|
|
1013
|
+
page
|
|
1014
|
+
pageSize
|
|
1015
|
+
totalCount
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
}
|
|
1019
|
+
}`,
|
|
1020
|
+
};
|
|
1021
|
+
export const AddCoupon = {
|
|
1022
|
+
fragments: [Checkout],
|
|
1023
|
+
query: gql `mutation AddCoupon($checkoutId: Uuid!, $coupon: String!) {
|
|
1024
|
+
checkout: checkoutAddCoupon(
|
|
1025
|
+
checkoutId: $checkoutId
|
|
1026
|
+
coupon: $coupon
|
|
1027
|
+
) { ...Checkout }
|
|
1028
|
+
}`,
|
|
1029
|
+
};
|
|
1030
|
+
export const AddItemToCart = {
|
|
1031
|
+
fragments: [Checkout],
|
|
1032
|
+
query: gql `mutation AddItemToCart($input: CheckoutProductInput!) {
|
|
1033
|
+
checkout: checkoutAddProduct(input: $input) { ...Checkout }
|
|
1034
|
+
}`,
|
|
1035
|
+
};
|
|
1036
|
+
export const RemoveCoupon = {
|
|
1037
|
+
fragments: [Checkout],
|
|
1038
|
+
query: gql `mutation RemoveCoupon($checkoutId: Uuid!) {
|
|
1039
|
+
checkout: checkoutRemoveCoupon(checkoutId: $checkoutId) {
|
|
1040
|
+
...Checkout
|
|
1041
|
+
}
|
|
1042
|
+
}`,
|
|
1043
|
+
};
|
|
1044
|
+
export const RemoveItemFromCart = {
|
|
1045
|
+
fragments: [Checkout],
|
|
1046
|
+
query: gql `mutation RemoveItemFromCart($input: CheckoutProductInput!) {
|
|
1047
|
+
checkout: checkoutRemoveProduct(input: $input) { ...Checkout }
|
|
1048
|
+
}`,
|
|
1049
|
+
};
|
|
1050
|
+
export const ProductRestockAlert = {
|
|
1051
|
+
fragments: [RestockAlertNode],
|
|
1052
|
+
query: gql `mutation ProductRestockAlert($input: RestockAlertInput!) {
|
|
1053
|
+
productRestockAlert(input: $input) { ...RestockAlertNode }
|
|
1054
|
+
}`,
|
|
1055
|
+
};
|
|
1056
|
+
export const WishlistAddProduct = {
|
|
1057
|
+
fragments: [Product],
|
|
1058
|
+
query: gql `mutation WishlistAddProduct($customerAccessToken: String!, $productId: Long!) {
|
|
1059
|
+
wishlistAddProduct(customerAccessToken: $customerAccessToken, productId: $productId) { ...Product }
|
|
1060
|
+
}`,
|
|
1061
|
+
};
|
|
1062
|
+
export const WishlistRemoveProduct = {
|
|
1063
|
+
fragments: [Product],
|
|
1064
|
+
query: gql `mutation WishlistRemoveProduct($customerAccessToken: String!, $productId: Long!) {
|
|
1065
|
+
wishlistRemoveProduct(customerAccessToken: $customerAccessToken, productId: $productId) { ...Product }
|
|
1066
|
+
}`,
|
|
1067
|
+
};
|
|
1068
|
+
export const CreateNewsletterRegister = {
|
|
1069
|
+
fragments: [NewsletterNode],
|
|
1070
|
+
query: gql `mutation CreateNewsletterRegister($input: NewsletterInput!) {
|
|
1071
|
+
createNewsletterRegister(input: $input) { ...NewsletterNode }
|
|
1072
|
+
}`,
|
|
1073
|
+
};
|
|
1074
|
+
export const Autocomplete = {
|
|
1075
|
+
fragments: [Product],
|
|
1076
|
+
query: gql `query Autocomplete($limit: Int, $query: String, $partnerAccessToken: String) {
|
|
1077
|
+
autocomplete(limit: $limit, query: $query , partnerAccessToken: $partnerAccessToken ) {
|
|
1078
|
+
suggestions,
|
|
1079
|
+
products {
|
|
1080
|
+
...Product
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
}`,
|
|
1084
|
+
};
|
|
1085
|
+
export const ProductRecommendations = {
|
|
1086
|
+
fragments: [Product],
|
|
1087
|
+
query: gql `query ProductRecommendations(
|
|
1088
|
+
$productId: Long!,
|
|
1089
|
+
$algorithm: ProductRecommendationAlgorithm!,
|
|
1090
|
+
$partnerAccessToken: String,
|
|
1091
|
+
$quantity: Int!
|
|
1092
|
+
) {
|
|
1093
|
+
productRecommendations(productId: $productId, algorithm: $algorithm, partnerAccessToken: $partnerAccessToken, quantity: $quantity) {
|
|
1094
|
+
...Product
|
|
1095
|
+
}
|
|
1096
|
+
}`,
|
|
1097
|
+
};
|
|
1098
|
+
export const ShippingQuotes = {
|
|
1099
|
+
fragments: [ShippingQuote],
|
|
1100
|
+
query: gql `query ShippingQuotes($cep: CEP,$checkoutId: Uuid, $productVariantId: Long,$quantity: Int = 1, $useSelectedAddress: Boolean){
|
|
1101
|
+
shippingQuotes(cep: $cep,checkoutId: $checkoutId,productVariantId: $productVariantId,quantity: $quantity, useSelectedAddress: $useSelectedAddress){
|
|
1102
|
+
...ShippingQuote
|
|
1103
|
+
}
|
|
1104
|
+
}`,
|
|
1105
|
+
};
|
|
1106
|
+
export const GetUser = {
|
|
1107
|
+
fragments: [Customer],
|
|
1108
|
+
query: gql `query getUser($customerAccessToken: String){
|
|
1109
|
+
customer(customerAccessToken: $customerAccessToken) {
|
|
1110
|
+
...Customer
|
|
1111
|
+
}
|
|
1112
|
+
}`,
|
|
1113
|
+
};
|
|
1114
|
+
export const GetWishlist = {
|
|
1115
|
+
fragments: [WishlistReducedProduct],
|
|
1116
|
+
query: gql `query getWishlist($customerAccessToken: String){
|
|
1117
|
+
customer(customerAccessToken: $customerAccessToken) {
|
|
1118
|
+
wishlist {
|
|
1119
|
+
products {
|
|
1120
|
+
...WishlistReducedProduct
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}`,
|
|
1125
|
+
};
|
|
1126
|
+
export const GetURL = {
|
|
1127
|
+
query: gql `query getURL($url: String!) {
|
|
1128
|
+
uri(url: $url) {
|
|
1129
|
+
hotsiteSubtype
|
|
1130
|
+
kind
|
|
1131
|
+
partnerSubtype
|
|
1132
|
+
productAlias
|
|
1133
|
+
productCategoriesIds
|
|
1134
|
+
redirectCode
|
|
1135
|
+
redirectUrl
|
|
1136
|
+
}
|
|
1137
|
+
}`,
|
|
1138
|
+
};
|
|
1139
|
+
export const CreateProductReview = {
|
|
1140
|
+
query: gql `mutation createProductReview ($email: String!, $name: String!, $productVariantId: Long!, $rating: Int!, $review: String!){
|
|
1141
|
+
createProductReview(input: {email: $email, name: $name, productVariantId: $productVariantId, rating: $rating, review: $review}) {
|
|
1142
|
+
customer
|
|
1143
|
+
email
|
|
1144
|
+
rating
|
|
1145
|
+
review
|
|
1146
|
+
reviewDate
|
|
1147
|
+
}}`,
|
|
1148
|
+
};
|
|
1149
|
+
export const SendGenericForm = {
|
|
1150
|
+
query: gql `mutation sendGenericForm ($body: Any, $file: Upload, $recaptchaToken: String){
|
|
1151
|
+
sendGenericForm(body: $body, file: $file, recaptchaToken: $recaptchaToken) {
|
|
1152
|
+
isSuccess
|
|
1153
|
+
}}`,
|
|
1154
|
+
};
|
|
1155
|
+
export const Hotsite = {
|
|
1156
|
+
fragments: [Product],
|
|
1157
|
+
query: gql `query Hotsite($url: String,
|
|
1158
|
+
$filters: [ProductFilterInput],
|
|
1159
|
+
$limit: Int,
|
|
1160
|
+
$maximumPrice: Decimal,
|
|
1161
|
+
$minimumPrice: Decimal,
|
|
1162
|
+
$onlyMainVariant: Boolean
|
|
1163
|
+
$offset: Int,
|
|
1164
|
+
$sortDirection: SortDirection,
|
|
1165
|
+
$sortKey: ProductSortKeys,
|
|
1166
|
+
$partnerAccessToken: String) {
|
|
1167
|
+
result: hotsite(url: $url, partnerAccessToken: $partnerAccessToken) {
|
|
1168
|
+
aggregations {
|
|
1169
|
+
filters {
|
|
1170
|
+
field
|
|
1171
|
+
origin
|
|
1172
|
+
values {
|
|
1173
|
+
name
|
|
1174
|
+
quantity
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
maximumPrice
|
|
1178
|
+
minimumPrice
|
|
1179
|
+
priceRanges {
|
|
1180
|
+
quantity
|
|
1181
|
+
range
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
productsByOffset(
|
|
1185
|
+
filters: $filters,
|
|
1186
|
+
limit: $limit,
|
|
1187
|
+
maximumPrice: $maximumPrice,
|
|
1188
|
+
minimumPrice: $minimumPrice,
|
|
1189
|
+
onlyMainVariant: $onlyMainVariant
|
|
1190
|
+
offset: $offset,
|
|
1191
|
+
sortDirection: $sortDirection,
|
|
1192
|
+
sortKey: $sortKey
|
|
1193
|
+
) {
|
|
1194
|
+
items {
|
|
1195
|
+
...Product
|
|
1196
|
+
}
|
|
1197
|
+
page
|
|
1198
|
+
pageSize
|
|
1199
|
+
totalCount
|
|
1200
|
+
}
|
|
1201
|
+
breadcrumbs {
|
|
1202
|
+
link
|
|
1203
|
+
text
|
|
1204
|
+
}
|
|
1205
|
+
endDate
|
|
1206
|
+
expression
|
|
1207
|
+
id
|
|
1208
|
+
name
|
|
1209
|
+
pageSize
|
|
1210
|
+
seo {
|
|
1211
|
+
content
|
|
1212
|
+
httpEquiv
|
|
1213
|
+
name
|
|
1214
|
+
scheme
|
|
1215
|
+
type
|
|
1216
|
+
}
|
|
1217
|
+
sorting {
|
|
1218
|
+
direction
|
|
1219
|
+
field
|
|
1220
|
+
}
|
|
1221
|
+
startDate
|
|
1222
|
+
subtype
|
|
1223
|
+
template
|
|
1224
|
+
url
|
|
1225
|
+
hotsiteId
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
`,
|
|
1229
|
+
};
|
|
1230
|
+
export const productOptions = {
|
|
1231
|
+
query: gql `query productOptions ($productId: Long!){
|
|
1232
|
+
productOptions(productId: $productId) {
|
|
1233
|
+
attributes {
|
|
1234
|
+
attributeId
|
|
1235
|
+
displayType
|
|
1236
|
+
id
|
|
1237
|
+
name
|
|
1238
|
+
type
|
|
1239
|
+
values {
|
|
1240
|
+
productVariants {
|
|
1241
|
+
...ProductVariant
|
|
1242
|
+
}
|
|
1243
|
+
value
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
id
|
|
1247
|
+
}
|
|
1248
|
+
}`,
|
|
1249
|
+
};
|
|
1250
|
+
export const Shop = {
|
|
1251
|
+
query: gql `query shop{
|
|
1252
|
+
shop {
|
|
1253
|
+
checkoutUrl
|
|
1254
|
+
mainUrl
|
|
1255
|
+
mobileCheckoutUrl
|
|
1256
|
+
mobileUrl
|
|
1257
|
+
modifiedName
|
|
1258
|
+
name
|
|
1259
|
+
}
|
|
1260
|
+
}`,
|
|
1261
|
+
};
|
|
1262
|
+
export const GetBuyList = {
|
|
1263
|
+
fragments: [BuyList],
|
|
1264
|
+
query: gql `query BuyList($id: Long!, $partnerAccessToken: String) {
|
|
1265
|
+
buyList(id: $id, partnerAccessToken: $partnerAccessToken){
|
|
1266
|
+
...BuyList
|
|
1267
|
+
}
|
|
1268
|
+
}`,
|
|
1269
|
+
};
|
|
1270
|
+
export const AddKit = {
|
|
1271
|
+
fragments: [Checkout],
|
|
1272
|
+
query: gql `mutation AddKit($input: CheckoutKitInput!, $customerAccessToken: String, $recaptchaToken: String) {
|
|
1273
|
+
checkout: checkoutAddKit(input: $input, customerAccessToken: $customerAccessToken, recaptchaToken: $recaptchaToken) {
|
|
1274
|
+
...Checkout
|
|
1275
|
+
}
|
|
1276
|
+
}`,
|
|
1277
|
+
};
|
|
1278
|
+
export const RemoveKit = {
|
|
1279
|
+
fragments: [Checkout],
|
|
1280
|
+
query: gql `mutation RemoveKit($input: CheckoutKitInput!, $customerAccessToken: String, $recaptchaToken: String) {
|
|
1281
|
+
checkout: checkoutRemoveKit(input: $input, customerAccessToken: $customerAccessToken, recaptchaToken: $recaptchaToken) {
|
|
1282
|
+
...Checkout
|
|
1283
|
+
}
|
|
1284
|
+
}`,
|
|
1285
|
+
};
|
|
1286
|
+
export const GetPartners = {
|
|
1287
|
+
query: gql `query GetPartners($first: Int,$last: Int,$names: [String],$priceTableIds: [Int!],$sortDirection: SortDirection! = ASC,$sortKey: PartnerSortKeys! = ID,$before: String,$alias: [String],$after: String) {
|
|
1288
|
+
partners(first:$first,last:$last,names:$names,priceTableIds:$priceTableIds,sortDirection:$sortDirection,sortKey:$sortKey ,before:$before,alias:$alias,after:$after){
|
|
1289
|
+
edges{
|
|
1290
|
+
node{
|
|
1291
|
+
partnerId
|
|
1292
|
+
priceTableId
|
|
1293
|
+
portfolioId
|
|
1294
|
+
type
|
|
1295
|
+
startDate
|
|
1296
|
+
endDate
|
|
1297
|
+
name
|
|
1298
|
+
alias
|
|
1299
|
+
fullUrlLogo
|
|
1300
|
+
origin
|
|
1301
|
+
partnerAccessToken
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}`,
|
|
1306
|
+
};
|
|
1307
|
+
export const CheckoutPartnerAssociate = {
|
|
1308
|
+
fragments: [Checkout],
|
|
1309
|
+
query: gql `mutation CheckoutPartnerAssociate($checkoutId: Uuid!,$customerAccessToken: String, $partnerAccessToken: String!){
|
|
1310
|
+
checkout: checkoutPartnerAssociate(checkoutId: $checkoutId ,customerAccessToken: $customerAccessToken ,partnerAccessToken: $partnerAccessToken ){
|
|
1311
|
+
...Checkout
|
|
1312
|
+
}
|
|
1313
|
+
}`,
|
|
1314
|
+
};
|
|
1315
|
+
export const CheckoutPartnerDisassociate = {
|
|
1316
|
+
fragments: [Checkout],
|
|
1317
|
+
query: gql `mutation CheckoutPartnerDisassociate($checkoutId: Uuid!, $customerAccessToken: String){
|
|
1318
|
+
checkout: checkoutPartnerDisassociate(checkoutId: $checkoutId , customerAccessToken: $customerAccessToken ){
|
|
1319
|
+
...Checkout
|
|
1320
|
+
}
|
|
1321
|
+
}`,
|
|
1322
|
+
};
|
|
1323
|
+
//# sourceMappingURL=queries.js.map
|