@nuskin/ns-product-lib 2.17.2 → 2.18.0-brw-4218.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,547 +0,0 @@
1
- "use strict";
2
-
3
- // eslint-disable-next-line max-len
4
- const getProductsByIdQuery = `query getProducts($ids: [String!]!, $market: String, $language: String, $okta: String, $quantity: Int) {
5
- productsById(
6
- ids: $ids
7
- market: $market
8
- language: $language
9
- okta: $okta
10
- quantity: $quantity
11
- ) {
12
- products {
13
- ...Product
14
- bundle {
15
- ...Kit
16
- pricingJson
17
- __typename
18
- }
19
- __typename
20
- }
21
- skip
22
- totalCount
23
- validCount
24
- }
25
- }
26
-
27
- fragment Product on Product {
28
- id
29
- slug
30
- title
31
- secondaryTitle
32
- productImages {
33
- url
34
- alt
35
- thumbnail
36
- __typename
37
- }
38
- salesLabel
39
- salesText
40
- description
41
- salesDisclaimer
42
- variantSelectLabel
43
- variants {
44
- ...Variant
45
- __typename
46
- }
47
- features {
48
- image {
49
- url
50
- alt
51
- thumbnail
52
- __typename
53
- }
54
- subtitle
55
- features
56
- backgroundColor
57
- textColor
58
- __typename
59
- }
60
- productDetails {
61
- description
62
- includedItems
63
- highlights {
64
- iconUrl
65
- label
66
- __typename
67
- }
68
- originCountry
69
- importer
70
- warnings
71
- __typename
72
- }
73
- benefits {
74
- benefits
75
- image {
76
- url
77
- alt
78
- thumbnail
79
- __typename
80
- }
81
- youTubeVideoId
82
- __typename
83
- }
84
- results {
85
- summary
86
- results {
87
- percentage
88
- text
89
- __typename
90
- }
91
- report {
92
- url
93
- text
94
- __typename
95
- }
96
- image {
97
- url
98
- alt
99
- thumbnail
100
- __typename
101
- }
102
- youTubeVideoId
103
- __typename
104
- }
105
- sustainability {
106
- youTubeVideoId
107
- image {
108
- url
109
- __typename
110
- }
111
- description
112
- highlights {
113
- image {
114
- url
115
- __typename
116
- }
117
- description
118
- __typename
119
- }
120
- __typename
121
- }
122
- usage {
123
- steps
124
- recommendations
125
- warnings
126
- additionalText
127
- image {
128
- url
129
- alt
130
- thumbnail
131
- __typename
132
- }
133
- youTubeVideoId
134
- markdown
135
- __typename
136
- }
137
- resources {
138
- title
139
- url
140
- image {
141
- url
142
- alt
143
- thumbnail
144
- __typename
145
- }
146
- __typename
147
- }
148
- warranty
149
- faqs {
150
- question
151
- answers
152
- __typename
153
- }
154
- ingredients {
155
- productName
156
- allIngredients
157
- otherIngredients
158
- activeIngredients
159
- inactiveIngredients
160
- ingredientDisclaimers
161
- markdown
162
- keyIngredients {
163
- image {
164
- url
165
- alt
166
- thumbnail
167
- __typename
168
- }
169
- name
170
- description
171
- __typename
172
- }
173
- nutritionInformationImage {
174
- url
175
- alt
176
- __typename
177
- }
178
- __typename
179
- }
180
- disclaimers
181
- disclaimerWarnings {
182
- icon {
183
- url
184
- alt
185
- __typename
186
- }
187
- markdown
188
- __typename
189
- }
190
- seoInformation {
191
- metaDescription
192
- metaTitle
193
- canonicalURL
194
- ogImage {
195
- url
196
- alt
197
- __typename
198
- }
199
- __typename
200
- }
201
- thirdPartyScripts
202
- productDataSource {
203
- source
204
- webBaseUrl
205
- apiBaseUrl
206
- storeId
207
- __typename
208
- }
209
- error {
210
- name
211
- errors
212
- lines
213
- message
214
- status
215
- __typename
216
- }
217
- upSellProductIds
218
- crossProductIds
219
- __typename
220
- }
221
-
222
- fragment Variant on Variant {
223
- sku
224
- globalId
225
- slug
226
- variantLabel
227
- variantColor
228
- availableChannels
229
- availableQuantity
230
- customerTypes
231
- maxQuantity
232
- title
233
- size
234
- productImages {
235
- url
236
- alt
237
- thumbnail
238
- __typename
239
- }
240
- salesLabel
241
- salesText
242
- description
243
- salesDisclaimer
244
- nettoWeight
245
- features {
246
- image {
247
- url
248
- alt
249
- thumbnail
250
- __typename
251
- }
252
- subtitle
253
- features
254
- backgroundColor
255
- textColor
256
- __typename
257
- }
258
- productDetails {
259
- description
260
- includedItems
261
- highlights {
262
- iconUrl
263
- label
264
- __typename
265
- }
266
- originCountry
267
- importer
268
- warnings
269
- __typename
270
- }
271
- benefits {
272
- benefits
273
- image {
274
- url
275
- alt
276
- thumbnail
277
- __typename
278
- }
279
- youTubeVideoId
280
- __typename
281
- }
282
- results {
283
- summary
284
- results {
285
- percentage
286
- text
287
- __typename
288
- }
289
- report {
290
- url
291
- text
292
- __typename
293
- }
294
- image {
295
- url
296
- alt
297
- thumbnail
298
- __typename
299
- }
300
- youTubeVideoId
301
- __typename
302
- }
303
- usage {
304
- steps
305
- recommendations
306
- warnings
307
- additionalText
308
- image {
309
- url
310
- alt
311
- thumbnail
312
- __typename
313
- }
314
- youTubeVideoId
315
- markdown
316
- __typename
317
- }
318
- resources {
319
- title
320
- url
321
- image {
322
- url
323
- alt
324
- thumbnail
325
- __typename
326
- }
327
- __typename
328
- }
329
- faqs {
330
- question
331
- answers
332
- __typename
333
- }
334
- ingredients {
335
- productName
336
- allIngredients
337
- otherIngredients
338
- activeIngredients
339
- inactiveIngredients
340
- ingredientDisclaimers
341
- markdown
342
- keyIngredients {
343
- image {
344
- url
345
- alt
346
- thumbnail
347
- __typename
348
- }
349
- name
350
- description
351
- __typename
352
- }
353
- nutritionInformationImage {
354
- url
355
- alt
356
- __typename
357
- }
358
- __typename
359
- }
360
- isExclusive
361
- price {
362
- retail
363
- wholesale
364
- retailSales
365
- wholesaleSales
366
- retailSubscription
367
- wholesaleSubscription
368
- currencyCode
369
- retailOriginal
370
- wholesaleOriginal
371
- __typename
372
- }
373
- totalPrice {
374
- retail
375
- wholesale
376
- retailSales
377
- wholesaleSales
378
- retailSubscription
379
- wholesaleSubscription
380
- currencyCode
381
- retailOriginal
382
- wholesaleOriginal
383
- __typename
384
- }
385
- points {
386
- wholesale {
387
- cv
388
- pv
389
- __typename
390
- }
391
- subscription {
392
- cv
393
- pv
394
- __typename
395
- }
396
- __typename
397
- }
398
- totalPoints {
399
- wholesale {
400
- cv
401
- pv
402
- __typename
403
- }
404
- subscription {
405
- cv
406
- pv
407
- __typename
408
- }
409
- __typename
410
- }
411
- pricingJson
412
- availableQuantity
413
- maxQuantity
414
- status {
415
- isBackordered
416
- backorderedAvailableDate
417
- status
418
- __typename
419
- }
420
- purchaseTypes {
421
- buyOnce
422
- subscription
423
- __typename
424
- }
425
- marketAttributes {
426
- redeem
427
- earn
428
- __typename
429
- }
430
- disclaimers
431
- disclaimerWarnings {
432
- icon {
433
- url
434
- alt
435
- __typename
436
- }
437
- markdown
438
- __typename
439
- }
440
- restrictedMarkets
441
- matchingVariant
442
- shadeable
443
- productType
444
- primaryBrand
445
- brandFamily
446
- __typename
447
- }
448
-
449
- fragment Kit on Kit {
450
- id
451
- type
452
- price {
453
- currencyCode
454
- retail
455
- wholesale
456
- retailSales
457
- wholesaleSales
458
- retailSubscription
459
- wholesaleSubscription
460
- retailOriginal
461
- wholesaleOriginal
462
- __typename
463
- }
464
- totalPrice {
465
- currencyCode
466
- retail
467
- wholesale
468
- retailSales
469
- wholesaleSales
470
- retailSubscription
471
- wholesaleSubscription
472
- retailOriginal
473
- wholesaleOriginal
474
- __typename
475
- }
476
- points {
477
- wholesale {
478
- cv
479
- pv
480
- __typename
481
- }
482
- subscription {
483
- cv
484
- pv
485
- __typename
486
- }
487
- __typename
488
- }
489
- totalPoints {
490
- wholesale {
491
- cv
492
- pv
493
- __typename
494
- }
495
- subscription {
496
- cv
497
- pv
498
- __typename
499
- }
500
- __typename
501
- }
502
- retailDiscount
503
- wholesaleDiscount
504
- pvDiscount
505
- cvDiscount
506
- sbDiscount
507
- grpDiscount
508
- availableChannels
509
- customerTypes
510
- purchaseTypes {
511
- buyOnce
512
- subscription
513
- __typename
514
- }
515
- status {
516
- status
517
- isBackordered
518
- backorderedAvailableDate
519
- __typename
520
- }
521
- availableQuantity
522
- chargeShipping
523
- dangerousGoods
524
- excludeFromSearch
525
- isExclusive
526
- marketAttributes {
527
- discount
528
- redeem
529
- earn
530
- __typename
531
- }
532
- restrictedMarkets
533
- scanQualifiedCount
534
- kitProducts {
535
- quantity
536
- isMandatory
537
- product {
538
- ...Product
539
- __typename
540
- }
541
- __typename
542
- }
543
- __typename
544
- }`
545
-
546
-
547
- module.exports = getProductsByIdQuery;
@@ -1,7 +0,0 @@
1
- const getProductByIdQuery = require('./getProductById');
2
- const getProductsByIdQuery = require('./getProductsById');
3
-
4
- module.exports = {
5
- getProductByIdQuery,
6
- getProductsByIdQuery
7
- }