@scayle/storefront-core 8.16.0 → 8.17.1

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.
@@ -1,838 +0,0 @@
1
- const BILD_HINTERGRUND_LABEL = "Bild Hintergrund";
2
- const CREATED_AT = "2022-04-26T15:04:56+00:00";
3
- const WOMEN_CLOTHING_CATEGORY_URL = "/women/kleidung";
4
- export const product = {
5
- id: 6,
6
- isActive: true,
7
- isSoldOut: false,
8
- isNew: false,
9
- createdAt: CREATED_AT,
10
- updatedAt: "2022-06-21T20:02:33+00:00",
11
- masterKey: "HGO3464001000001",
12
- referenceKey: "1",
13
- firstLiveAt: "2022-04-28T14:13:07+00:00",
14
- attributes: {
15
- color: {
16
- id: 1001,
17
- key: "color",
18
- label: "Color",
19
- type: "",
20
- multiSelect: false,
21
- values: {
22
- id: 6,
23
- label: "Wei\xDF",
24
- value: "weiss"
25
- }
26
- },
27
- brand: {
28
- id: 550,
29
- key: "brand",
30
- label: "Marke",
31
- type: "",
32
- multiSelect: false,
33
- values: {
34
- id: 63,
35
- label: "HUGO",
36
- value: "hugo"
37
- }
38
- },
39
- name: {
40
- id: 20005,
41
- key: "name",
42
- label: "Name",
43
- type: null,
44
- multiSelect: false,
45
- values: {
46
- label: "HUGO Sweatshirt 'Dakimara'"
47
- }
48
- }
49
- },
50
- lowestPriorPrice: {
51
- withTax: null,
52
- relativeDifferenceToPrice: null
53
- },
54
- images: [
55
- {
56
- hash: "images/fe8ee645c772b98de23b00e4f600a613.png",
57
- attributes: {}
58
- }
59
- ],
60
- variants: [
61
- {
62
- id: 12,
63
- referenceKey: "1",
64
- firstLiveAt: "2022-04-28T14:13:07+00:00",
65
- createdAt: CREATED_AT,
66
- updatedAt: "2022-05-05T15:05:35+00:00",
67
- price: {
68
- currencyCode: "EUR",
69
- withTax: 8990,
70
- withoutTax: 7555,
71
- appliedReductions: [],
72
- recommendedRetailPrice: null,
73
- tax: {
74
- vat: {
75
- amount: 1435,
76
- rate: 0.19
77
- }
78
- }
79
- },
80
- stock: {
81
- supplierId: 1,
82
- warehouseId: 1,
83
- quantity: 999,
84
- isSellableWithoutStock: false
85
- },
86
- attributes: {
87
- shopSize: {
88
- id: 2,
89
- key: "shopSize",
90
- label: "Gr\xF6\xDFe",
91
- type: "",
92
- multiSelect: false,
93
- values: {
94
- id: 25472,
95
- label: "34",
96
- value: "34"
97
- }
98
- }
99
- }
100
- },
101
- {
102
- id: 13,
103
- referenceKey: "2",
104
- firstLiveAt: "2022-04-28T14:13:27+00:00",
105
- createdAt: CREATED_AT,
106
- updatedAt: "2022-05-05T15:05:35+00:00",
107
- price: {
108
- currencyCode: "EUR",
109
- withTax: 8990,
110
- withoutTax: 7555,
111
- appliedReductions: [],
112
- recommendedRetailPrice: null,
113
- tax: {
114
- vat: {
115
- amount: 1435,
116
- rate: 0.19
117
- }
118
- }
119
- },
120
- stock: {
121
- supplierId: 1,
122
- warehouseId: 1,
123
- quantity: 492,
124
- isSellableWithoutStock: false
125
- },
126
- attributes: {
127
- shopSize: {
128
- id: 2,
129
- key: "shopSize",
130
- label: "Gr\xF6\xDFe",
131
- type: "",
132
- multiSelect: false,
133
- values: {
134
- id: 25482,
135
- label: "36",
136
- value: "36"
137
- }
138
- }
139
- }
140
- }
141
- ],
142
- siblings: [],
143
- priceRange: {
144
- min: {
145
- currencyCode: "EUR",
146
- withTax: 8990,
147
- withoutTax: 7555,
148
- appliedReductions: [],
149
- recommendedRetailPrice: null,
150
- tax: {
151
- vat: {
152
- amount: 1435,
153
- rate: 0.19
154
- }
155
- }
156
- },
157
- max: {
158
- currencyCode: "EUR",
159
- withTax: 8990,
160
- withoutTax: 7555,
161
- appliedReductions: [],
162
- recommendedRetailPrice: null,
163
- tax: {
164
- vat: {
165
- amount: 1435,
166
- rate: 0.19
167
- }
168
- }
169
- }
170
- },
171
- categories: [
172
- [
173
- {
174
- categoryId: 2045,
175
- categoryName: "Women",
176
- categorySlug: "women",
177
- categoryUrl: "/women",
178
- categoryHidden: false,
179
- categoryProperties: []
180
- }
181
- ]
182
- ]
183
- };
184
- export const productFromEDT = {
185
- id: 5703863,
186
- isActive: true,
187
- isSoldOut: false,
188
- isNew: false,
189
- createdAt: "2021-02-02T10:39:10+00:00",
190
- updatedAt: "2022-07-02T00:45:20+00:00",
191
- masterKey: "EDT3759-130",
192
- referenceKey: "EDT3759001",
193
- firstLiveAt: "2021-04-07T09:29:34+00:00",
194
- attributes: {
195
- brand: {
196
- id: 550,
197
- key: "brand",
198
- label: "Marke",
199
- type: "",
200
- multiSelect: false,
201
- values: {
202
- id: 4517,
203
- label: "EDITED",
204
- value: "edited_the_label"
205
- }
206
- },
207
- colorDetail: {
208
- id: 210,
209
- key: "colorDetail",
210
- label: "Detailfarbe",
211
- type: "",
212
- multiSelect: true,
213
- values: [
214
- {
215
- id: 38905,
216
- label: "schwarz",
217
- value: "schwarz"
218
- }
219
- ]
220
- },
221
- name: {
222
- id: 20005,
223
- key: "name",
224
- label: "Name",
225
- type: "",
226
- multiSelect: false,
227
- values: {
228
- id: 20005,
229
- label: "Rock 'Cara'",
230
- value: "name"
231
- }
232
- }
233
- },
234
- lowestPriorPrice: {
235
- withTax: null,
236
- relativeDifferenceToPrice: null
237
- },
238
- images: [
239
- {
240
- hash: "images/14e40f72fae877ccf3a210943974fbd1.png",
241
- attributes: {
242
- imageBackground: {
243
- id: 1258,
244
- key: "imageBackground",
245
- label: BILD_HINTERGRUND_LABEL,
246
- type: "",
247
- multiSelect: false,
248
- values: {
249
- id: 66507,
250
- label: "transparent",
251
- value: "transparent"
252
- }
253
- },
254
- imageKind: {
255
- id: 1534,
256
- key: "imageKind",
257
- label: "Bild Art",
258
- type: "",
259
- multiSelect: false,
260
- values: {
261
- id: 73860,
262
- label: "Bust Image",
263
- value: "bust_image"
264
- }
265
- },
266
- imageView: {
267
- id: 1254,
268
- key: "imageView",
269
- label: "Bild Ansicht",
270
- type: "",
271
- multiSelect: false,
272
- values: {
273
- id: 66486,
274
- label: "Frontalansicht",
275
- value: "front"
276
- }
277
- },
278
- imageType: {
279
- id: 1252,
280
- key: "imageType",
281
- label: "Bild Typ",
282
- type: "",
283
- multiSelect: false,
284
- values: {
285
- id: 66480,
286
- label: "B\xFCste",
287
- value: "bust"
288
- }
289
- }
290
- }
291
- },
292
- {
293
- hash: "images/2ad7fdef5654e9f4204156a9c9f8c127.jpg",
294
- attributes: {
295
- imageBackground: {
296
- id: 1258,
297
- key: "imageBackground",
298
- label: BILD_HINTERGRUND_LABEL,
299
- type: "",
300
- multiSelect: false,
301
- values: {
302
- id: 66506,
303
- label: "grau",
304
- value: "grey"
305
- }
306
- },
307
- imageKind: {
308
- id: 1534,
309
- key: "imageKind",
310
- label: "Bild Art",
311
- type: "",
312
- multiSelect: false,
313
- values: {
314
- id: 73861,
315
- label: "Model Image",
316
- value: "model_image"
317
- }
318
- },
319
- imageView: {
320
- id: 1254,
321
- key: "imageView",
322
- label: "Bild Ansicht",
323
- type: "",
324
- multiSelect: false,
325
- values: {
326
- id: 66486,
327
- label: "Frontalansicht",
328
- value: "front"
329
- }
330
- },
331
- imageType: {
332
- id: 1252,
333
- key: "imageType",
334
- label: "Bild Typ",
335
- type: "",
336
- multiSelect: false,
337
- values: {
338
- id: 66481,
339
- label: "Model",
340
- value: "model"
341
- }
342
- }
343
- }
344
- },
345
- {
346
- hash: "images/30a9e84e2d22dbb2ae6b195109a79382.jpg",
347
- attributes: {
348
- imageBackground: {
349
- id: 1258,
350
- key: "imageBackground",
351
- label: BILD_HINTERGRUND_LABEL,
352
- type: "",
353
- multiSelect: false,
354
- values: {
355
- id: 66506,
356
- label: "grau",
357
- value: "grey"
358
- }
359
- },
360
- imageKind: {
361
- id: 1534,
362
- key: "imageKind",
363
- label: "Bild Art",
364
- type: "",
365
- multiSelect: false,
366
- values: {
367
- id: 73861,
368
- label: "Model Image",
369
- value: "model_image"
370
- }
371
- },
372
- imageType: {
373
- id: 1252,
374
- key: "imageType",
375
- label: "Bild Typ",
376
- type: "",
377
- multiSelect: false,
378
- values: {
379
- id: 66481,
380
- label: "Model",
381
- value: "model"
382
- }
383
- }
384
- }
385
- },
386
- {
387
- hash: "images/43998efe919bd825b71d2ef1ff159353.jpg",
388
- attributes: {
389
- imageBackground: {
390
- id: 1258,
391
- key: "imageBackground",
392
- label: BILD_HINTERGRUND_LABEL,
393
- type: "",
394
- multiSelect: false,
395
- values: {
396
- id: 66506,
397
- label: "grau",
398
- value: "grey"
399
- }
400
- },
401
- imageKind: {
402
- id: 1534,
403
- key: "imageKind",
404
- label: "Bild Art",
405
- type: "",
406
- multiSelect: false,
407
- values: {
408
- id: 73859,
409
- label: "Model-Outfit Image",
410
- value: "modeloutfit_image"
411
- }
412
- },
413
- imageType: {
414
- id: 1252,
415
- key: "imageType",
416
- label: "Bild Typ",
417
- type: "",
418
- multiSelect: false,
419
- values: {
420
- id: 66481,
421
- label: "Model",
422
- value: "model"
423
- }
424
- }
425
- }
426
- },
427
- {
428
- hash: "images/b953361cab23976305778c556282ef0b.jpg",
429
- attributes: {
430
- imageBackground: {
431
- id: 1258,
432
- key: "imageBackground",
433
- label: BILD_HINTERGRUND_LABEL,
434
- type: "",
435
- multiSelect: false,
436
- values: {
437
- id: 66506,
438
- label: "grau",
439
- value: "grey"
440
- }
441
- },
442
- imageKind: {
443
- id: 1534,
444
- key: "imageKind",
445
- label: "Bild Art",
446
- type: "",
447
- multiSelect: false,
448
- values: {
449
- id: 73858,
450
- label: "Detail Image",
451
- value: "detail_image"
452
- }
453
- },
454
- imageType: {
455
- id: 1252,
456
- key: "imageType",
457
- label: "Bild Typ",
458
- type: "",
459
- multiSelect: false,
460
- values: {
461
- id: 66480,
462
- label: "B\xFCste",
463
- value: "bust"
464
- }
465
- }
466
- }
467
- },
468
- {
469
- hash: "images/a735bfeefc11d14d703f697133958bd6.jpg",
470
- attributes: {
471
- imageBackground: {
472
- id: 1258,
473
- key: "imageBackground",
474
- label: BILD_HINTERGRUND_LABEL,
475
- type: "",
476
- multiSelect: false,
477
- values: {
478
- id: 66506,
479
- label: "grau",
480
- value: "grey"
481
- }
482
- },
483
- imageKind: {
484
- id: 1534,
485
- key: "imageKind",
486
- label: "Bild Art",
487
- type: "",
488
- multiSelect: false,
489
- values: {
490
- id: 73858,
491
- label: "Detail Image",
492
- value: "detail_image"
493
- }
494
- },
495
- imageType: {
496
- id: 1252,
497
- key: "imageType",
498
- label: "Bild Typ",
499
- type: "",
500
- multiSelect: false,
501
- values: {
502
- id: 66480,
503
- label: "B\xFCste",
504
- value: "bust"
505
- }
506
- }
507
- }
508
- }
509
- ],
510
- variants: [
511
- {
512
- id: 43239673,
513
- referenceKey: "EDT3759001000001",
514
- firstLiveAt: "2021-04-07T09:30:06+00:00",
515
- createdAt: "2021-02-02T10:39:10+00:00",
516
- updatedAt: "2022-07-30T08:38:55+00:00",
517
- price: {
518
- currencyCode: "EUR",
519
- withTax: 16500,
520
- withoutTax: 13866,
521
- appliedReductions: [
522
- {
523
- category: "sale",
524
- type: "relative",
525
- amount: {
526
- relative: 0.21,
527
- absoluteWithTax: 4400
528
- }
529
- },
530
- {
531
- category: "campaign",
532
- type: "relative",
533
- amount: {
534
- relative: 0.5,
535
- absoluteWithTax: 2200
536
- }
537
- }
538
- ],
539
- recommendedRetailPrice: null,
540
- tax: {
541
- vat: {
542
- amount: 2634,
543
- rate: 0.19
544
- }
545
- }
546
- },
547
- stock: {
548
- supplierId: 130,
549
- warehouseId: 115,
550
- quantity: 0,
551
- isSellableWithoutStock: false
552
- },
553
- attributes: {},
554
- advancedAttributes: {
555
- variantCrosssellings: {
556
- id: 1430,
557
- key: "variantCrosssellings",
558
- label: "Crosssellings",
559
- type: "",
560
- values: [
561
- {
562
- fieldSet: [
563
- [
564
- {
565
- value: "4063582377638"
566
- }
567
- ],
568
- [
569
- {
570
- value: "4063582448338"
571
- }
572
- ]
573
- ],
574
- groupSet: []
575
- }
576
- ]
577
- }
578
- },
579
- lowestPriorPrice: {
580
- withTax: null,
581
- relativeDifferenceToPrice: null
582
- }
583
- }
584
- ],
585
- siblings: [],
586
- priceRange: {
587
- min: {
588
- currencyCode: "EUR",
589
- withTax: 16500,
590
- withoutTax: 13866,
591
- appliedReductions: [
592
- {
593
- category: "sale",
594
- type: "relative",
595
- amount: {
596
- relative: 0.21,
597
- absoluteWithTax: 4400
598
- }
599
- }
600
- ],
601
- recommendedRetailPrice: null,
602
- tax: {
603
- vat: {
604
- amount: 2634,
605
- rate: 0.19
606
- }
607
- }
608
- },
609
- max: {
610
- currencyCode: "EUR",
611
- withTax: 16500,
612
- withoutTax: 13866,
613
- appliedReductions: [
614
- {
615
- category: "sale",
616
- type: "relative",
617
- amount: {
618
- relative: 0.21,
619
- absoluteWithTax: 4400
620
- }
621
- }
622
- ],
623
- recommendedRetailPrice: null,
624
- tax: {
625
- vat: {
626
- amount: 2634,
627
- rate: 0.19
628
- }
629
- }
630
- }
631
- },
632
- categories: [
633
- [
634
- {
635
- categoryId: 607403,
636
- categoryName: "Women",
637
- categorySlug: "women",
638
- categoryUrl: "/women",
639
- categoryHidden: false,
640
- categoryProperties: []
641
- }
642
- ],
643
- [
644
- {
645
- categoryId: 607403,
646
- categoryName: "Women",
647
- categorySlug: "women",
648
- categoryUrl: "/women",
649
- categoryHidden: false,
650
- categoryProperties: []
651
- },
652
- {
653
- categoryId: 608453,
654
- categoryName: "Kleidung",
655
- categorySlug: "kleidung",
656
- categoryUrl: WOMEN_CLOTHING_CATEGORY_URL,
657
- categoryHidden: false,
658
- categoryProperties: []
659
- },
660
- {
661
- categoryId: 607404,
662
- categoryName: "Sale",
663
- categorySlug: "sale",
664
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/sale`,
665
- categoryHidden: false,
666
- categoryProperties: []
667
- }
668
- ],
669
- [
670
- {
671
- categoryId: 607403,
672
- categoryName: "Women",
673
- categorySlug: "women",
674
- categoryUrl: "/women",
675
- categoryHidden: false,
676
- categoryProperties: []
677
- },
678
- {
679
- categoryId: 608453,
680
- categoryName: "Kleidung",
681
- categorySlug: "kleidung",
682
- categoryUrl: WOMEN_CLOTHING_CATEGORY_URL,
683
- categoryHidden: false,
684
- categoryProperties: []
685
- },
686
- {
687
- categoryId: 607404,
688
- categoryName: "Sale",
689
- categorySlug: "sale",
690
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/sale`,
691
- categoryHidden: false,
692
- categoryProperties: []
693
- },
694
- {
695
- categoryId: 607405,
696
- categoryName: "Kleidung",
697
- categorySlug: "kleidung",
698
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/sale/kleidung`,
699
- categoryHidden: false,
700
- categoryProperties: []
701
- }
702
- ],
703
- [
704
- {
705
- categoryId: 607403,
706
- categoryName: "Women",
707
- categorySlug: "women",
708
- categoryUrl: "/women",
709
- categoryHidden: false,
710
- categoryProperties: []
711
- },
712
- {
713
- categoryId: 608453,
714
- categoryName: "Kleidung",
715
- categorySlug: "kleidung",
716
- categoryUrl: WOMEN_CLOTHING_CATEGORY_URL,
717
- categoryHidden: false,
718
- categoryProperties: []
719
- },
720
- {
721
- categoryId: 607404,
722
- categoryName: "Sale",
723
- categorySlug: "sale",
724
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/sale`,
725
- categoryHidden: false,
726
- categoryProperties: []
727
- },
728
- {
729
- categoryId: 607405,
730
- categoryName: "Kleidung",
731
- categorySlug: "kleidung",
732
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/sale/kleidung`,
733
- categoryHidden: false,
734
- categoryProperties: []
735
- },
736
- {
737
- categoryId: 607409,
738
- categoryName: "R\xF6cke",
739
- categorySlug: "roecke",
740
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/sale/kleidung/roecke`,
741
- categoryHidden: false,
742
- categoryProperties: []
743
- }
744
- ],
745
- [
746
- {
747
- categoryId: 607403,
748
- categoryName: "Women",
749
- categorySlug: "women",
750
- categoryUrl: "/women",
751
- categoryHidden: false,
752
- categoryProperties: []
753
- },
754
- {
755
- categoryId: 608453,
756
- categoryName: "Kleidung",
757
- categorySlug: "kleidung",
758
- categoryUrl: WOMEN_CLOTHING_CATEGORY_URL,
759
- categoryHidden: false,
760
- categoryProperties: []
761
- },
762
- {
763
- categoryId: 607443,
764
- categoryName: "R\xF6cke",
765
- categorySlug: "roecke",
766
- categoryUrl: `${WOMEN_CLOTHING_CATEGORY_URL}/roecke`,
767
- categoryHidden: false,
768
- categoryProperties: []
769
- }
770
- ],
771
- [
772
- {
773
- categoryId: 607497,
774
- categoryName: "Looks",
775
- categorySlug: "looks",
776
- categoryUrl: "/looks",
777
- categoryHidden: false,
778
- categoryProperties: []
779
- }
780
- ],
781
- [
782
- {
783
- categoryId: 607497,
784
- categoryName: "Looks",
785
- categorySlug: "looks",
786
- categoryUrl: "/looks",
787
- categoryHidden: false,
788
- categoryProperties: []
789
- },
790
- {
791
- categoryId: 607707,
792
- categoryName: "Black Mania",
793
- categorySlug: "black-mania",
794
- categoryUrl: "/looks/black-mania",
795
- categoryHidden: false,
796
- categoryProperties: []
797
- }
798
- ],
799
- [
800
- {
801
- categoryId: 607497,
802
- categoryName: "Looks",
803
- categorySlug: "looks",
804
- categoryUrl: "/looks",
805
- categoryHidden: false,
806
- categoryProperties: []
807
- },
808
- {
809
- categoryId: 607791,
810
- categoryName: "Best of Basics",
811
- categorySlug: "best-of-basics",
812
- categoryUrl: "/looks/best-of-basics",
813
- categoryHidden: false,
814
- categoryProperties: []
815
- }
816
- ],
817
- [
818
- {
819
- categoryId: 607403,
820
- categoryName: "Women",
821
- categorySlug: "women",
822
- categoryUrl: "/women",
823
- categoryHidden: false,
824
- categoryProperties: []
825
- },
826
- {
827
- categoryId: 608453,
828
- categoryName: "Kleidung",
829
- categorySlug: "kleidung",
830
- categoryUrl: WOMEN_CLOTHING_CATEGORY_URL,
831
- categoryHidden: false,
832
- categoryProperties: []
833
- }
834
- ]
835
- ]
836
- };
837
- export const priceFixture = product.variants[0].price;
838
- export const priceFixtureWithReductions = productFromEDT.variants[0].price;