@nuskin/ns-product-lib 2.13.3-cx24-5694.4 → 2.13.3-cx24-5694.6

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