@shushed/helpers 0.0.244 → 0.0.245

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.
@@ -14,9 +14,6 @@ declare const schema: {
14
14
  readonly slug: {
15
15
  readonly type: readonly ["string"];
16
16
  };
17
- readonly style_slug: {
18
- readonly type: readonly ["string"];
19
- };
20
17
  readonly style_id: {
21
18
  readonly type: readonly ["string"];
22
19
  };
@@ -26,11 +23,8 @@ declare const schema: {
26
23
  readonly style_name: {
27
24
  readonly type: "string";
28
25
  };
29
- readonly product_name: {
30
- readonly type: "string";
31
- };
32
26
  readonly display_name: {
33
- readonly type: readonly ["string", "null"];
27
+ readonly type: readonly ["string"];
34
28
  };
35
29
  readonly buffer_quantity: {
36
30
  readonly type: "integer";
@@ -44,30 +38,6 @@ declare const schema: {
44
38
  readonly type: readonly ["string", "null"];
45
39
  readonly format: "date";
46
40
  };
47
- readonly online_from: {
48
- readonly type: readonly ["string", "null"];
49
- readonly format: "date-time";
50
- };
51
- readonly online_to: {
52
- readonly type: readonly ["string", "null"];
53
- readonly format: "date-time";
54
- };
55
- readonly first_online_at: {
56
- readonly type: readonly ["string", "null"];
57
- readonly format: "date-time";
58
- };
59
- readonly last_online_at: {
60
- readonly type: readonly ["string", "null"];
61
- readonly format: "date-time";
62
- };
63
- readonly first_purchased_at: {
64
- readonly type: "string";
65
- readonly format: "date-time";
66
- };
67
- readonly first_markdown_at: {
68
- readonly type: readonly ["string", "null"];
69
- readonly format: "date-time";
70
- };
71
41
  readonly created_at: {
72
42
  readonly type: "string";
73
43
  readonly format: "date-time";
@@ -79,9 +49,6 @@ declare const schema: {
79
49
  readonly colour_family_name: {
80
50
  readonly type: "string";
81
51
  };
82
- readonly colour_code: {
83
- readonly type: "string";
84
- };
85
52
  readonly colour_name: {
86
53
  readonly type: "string";
87
54
  };
@@ -94,9 +61,6 @@ declare const schema: {
94
61
  readonly sizerange_code: {
95
62
  readonly type: "string";
96
63
  };
97
- readonly sizerange_name: {
98
- readonly type: "string";
99
- };
100
64
  readonly variants: {
101
65
  readonly type: "array";
102
66
  readonly items: {
@@ -108,25 +72,11 @@ declare const schema: {
108
72
  readonly name: {
109
73
  readonly type: readonly ["string"];
110
74
  };
111
- };
112
- readonly required: readonly ["code", "name"];
113
- };
114
- };
115
- readonly images: {
116
- readonly type: "array";
117
- readonly items: {
118
- readonly type: "object";
119
- readonly properties: {
120
- readonly type: {
121
- readonly type: "string";
122
- readonly enum: readonly ["Campaign", "Ecom", "Flatlay", "UGC", "AI"];
123
- };
124
- readonly url: {
125
- readonly type: "string";
126
- readonly format: "uri";
75
+ readonly ean: {
76
+ readonly type: readonly ["string", "null"];
127
77
  };
128
78
  };
129
- readonly required: readonly ["type", "url"];
79
+ readonly required: readonly ["code", "name"];
130
80
  };
131
81
  };
132
82
  readonly vat_rate_uk: {
@@ -151,17 +101,6 @@ declare const schema: {
151
101
  readonly port_of_origin: {
152
102
  readonly type: "string";
153
103
  };
154
- readonly supplier_id: {
155
- readonly type: "string";
156
- readonly pattern: "^SUP\\d{5}$";
157
- };
158
- readonly supplier_name: {
159
- readonly type: "string";
160
- };
161
- readonly factory_id: {
162
- readonly type: "string";
163
- readonly pattern: "^FAC\\d{5}$";
164
- };
165
104
  readonly packing_method: {
166
105
  readonly type: readonly ["string", "null"];
167
106
  readonly enum: readonly ["Standard", "Hanging"];
@@ -178,32 +117,12 @@ declare const schema: {
178
117
  readonly strategy_type: {
179
118
  readonly type: "string";
180
119
  };
181
- readonly product_type: {
182
- readonly type: "string";
183
- };
184
- readonly stock_type: {
185
- readonly type: "string";
186
- };
187
120
  readonly category: {
188
121
  readonly type: "string";
189
122
  };
190
123
  readonly subcategory: {
191
124
  readonly type: "string";
192
125
  };
193
- readonly range: {
194
- readonly type: readonly ["string", "null"];
195
- readonly enum: readonly ["Main Collection", "Seasonal"];
196
- };
197
- readonly channels_availability: {
198
- readonly type: readonly ["array"];
199
- readonly items: {
200
- readonly type: "string";
201
- readonly enum: readonly ["DIRECT-UK", "DIRECT-INT", "DIRECT-US", "JL-STORES", "JL-WEB", "NEXT", "MS", "FENWICK", "MORLEYS"];
202
- };
203
- };
204
- readonly collections: {
205
- readonly type: readonly ["string"];
206
- };
207
126
  readonly seasons: {
208
127
  readonly type: readonly ["array"];
209
128
  readonly items: {
@@ -216,22 +135,60 @@ declare const schema: {
216
135
  readonly type: "string";
217
136
  };
218
137
  };
219
- readonly fashionability: {
220
- readonly type: readonly ["string", "null"];
221
- };
222
138
  };
223
139
  readonly required: readonly [];
224
140
  };
141
+ readonly category_assignments: {
142
+ readonly type: "array";
143
+ readonly items: {
144
+ readonly type: "object";
145
+ readonly properties: {
146
+ readonly display_path: {
147
+ readonly type: "array";
148
+ readonly items: {
149
+ readonly type: "string";
150
+ };
151
+ };
152
+ readonly path: {
153
+ readonly type: "array";
154
+ readonly items: {
155
+ readonly type: "string";
156
+ };
157
+ };
158
+ readonly name: {
159
+ readonly type: "string";
160
+ };
161
+ readonly id: {
162
+ readonly type: "string";
163
+ };
164
+ };
165
+ };
166
+ };
225
167
  readonly attributes: {
226
168
  readonly type: "object";
227
169
  readonly properties: {
170
+ readonly stock_quantity_score: {
171
+ readonly type: "number";
172
+ };
173
+ readonly stock_availability: {
174
+ readonly type: "number";
175
+ };
176
+ readonly measurement_chart: {
177
+ readonly type: readonly ["string", "null"];
178
+ };
179
+ readonly sizeguide_type: {
180
+ readonly type: readonly ["string", "null"];
181
+ };
182
+ readonly brand: {
183
+ readonly type: readonly ["string", "null"];
184
+ };
185
+ readonly shoes_type: {
186
+ readonly type: readonly ["string", "null"];
187
+ };
228
188
  readonly seo_url_name: {
229
189
  readonly type: "string";
230
190
  readonly pattern: "^[a-z-]+$";
231
191
  };
232
- readonly embellishment: {
233
- readonly type: readonly ["string", "null"];
234
- };
235
192
  readonly seo_title: {
236
193
  readonly type: readonly ["string", "null"];
237
194
  };
@@ -244,125 +201,50 @@ declare const schema: {
244
201
  readonly fabric_care: {
245
202
  readonly type: readonly ["string", "null"];
246
203
  };
247
- readonly delivery_returns: {
248
- readonly type: readonly ["string", "null"];
249
- };
250
204
  readonly weight: {
251
205
  readonly type: readonly ["number", "null"];
252
206
  };
253
- readonly weight_statement: {
254
- readonly type: readonly ["string", "null"];
255
- };
256
207
  readonly main_fibre: {
257
208
  readonly type: readonly ["string", "null"];
258
209
  };
259
210
  readonly main_metal: {
260
211
  readonly type: readonly ["string", "null"];
261
212
  };
262
- readonly extra_selling_points: {
263
- readonly type: "array";
264
- readonly items: {
265
- readonly type: "string";
266
- };
267
- };
268
- readonly length_measurement: {
269
- readonly type: readonly ["string", "null"];
270
- };
271
- readonly measurement_table_code: {
272
- readonly type: readonly ["string"];
273
- };
274
- readonly fit: {
275
- readonly type: readonly ["string", "null"];
276
- };
277
- readonly pockets: {
278
- readonly type: readonly ["string", "null"];
279
- };
280
- readonly pleats_gathers: {
281
- readonly type: readonly ["string", "null"];
282
- };
283
- readonly lining: {
284
- readonly type: readonly ["string", "null"];
285
- };
286
- readonly bias_cut: {
287
- readonly type: readonly ["string", "null"];
288
- };
289
213
  readonly designer: {
290
214
  readonly type: readonly ["string", "null"];
291
215
  };
292
- readonly fabric: {
293
- readonly type: readonly ["string", "null"];
294
- };
295
- readonly fabric_composition: {
296
- readonly type: readonly ["string", "null"];
297
- };
298
216
  readonly certificate_code: {
299
217
  readonly type: readonly ["string", "null"];
300
218
  };
301
- readonly shape: {
302
- readonly type: readonly ["string", "null"];
303
- };
304
- readonly development_type: {
305
- readonly type: "string";
306
- };
307
- readonly occasion: {
308
- readonly type: readonly ["string", "null"];
309
- };
310
- readonly design: {
311
- readonly type: readonly ["string", "null"];
312
- };
313
- readonly block: {
314
- readonly type: readonly ["string", "null"];
315
- };
316
219
  readonly pattern_name: {
317
220
  readonly type: readonly ["string", "null"];
318
221
  };
319
222
  readonly fit_type: {
320
223
  readonly type: readonly ["string", "null"];
321
224
  };
322
- readonly neckline: {
323
- readonly type: readonly ["string", "null"];
324
- };
325
- readonly sleeve_length: {
225
+ readonly trousers_fit: {
326
226
  readonly type: readonly ["string", "null"];
327
227
  readonly nullable: true;
328
228
  };
329
- readonly sleeve_type: {
330
- readonly type: readonly ["string", "null"];
331
- readonly nullable: true;
332
- };
333
- readonly heel_height: {
334
- readonly type: readonly ["string", "null"];
335
- };
336
- readonly heel_shape: {
229
+ readonly trousers_length: {
337
230
  readonly type: readonly ["string", "null"];
338
231
  };
339
- readonly toe_shape: {
232
+ readonly dresses_skirts_length: {
340
233
  readonly type: readonly ["string", "null"];
341
234
  };
342
- readonly trouser_fit: {
235
+ readonly coats_jackets_type: {
343
236
  readonly type: readonly ["string", "null"];
344
- readonly nullable: true;
345
237
  };
346
- readonly leg_length: {
238
+ readonly dresses_skirts_type: {
347
239
  readonly type: readonly ["string", "null"];
348
240
  };
349
- readonly handle_straps: {
241
+ readonly bag_type: {
350
242
  readonly type: readonly ["string", "null"];
351
243
  };
352
- readonly straps_features: {
244
+ readonly product_category: {
353
245
  readonly type: readonly ["string", "null"];
354
246
  };
355
- readonly fastening: {
356
- readonly anyOf: readonly [{
357
- readonly type: readonly ["array", "null"];
358
- readonly items: {
359
- readonly type: "string";
360
- };
361
- }, {
362
- readonly type: "null";
363
- }];
364
- };
365
- readonly sole_material: {
247
+ readonly product_type: {
366
248
  readonly type: readonly ["string", "null"];
367
249
  };
368
250
  readonly care_instructions: {
@@ -374,7 +256,13 @@ declare const schema: {
374
256
  };
375
257
  readonly required: readonly [];
376
258
  };
377
- readonly presentations: {
259
+ readonly markets: {
260
+ readonly type: "array";
261
+ readonly items: {
262
+ readonly type: "string";
263
+ };
264
+ };
265
+ readonly markets_overrides: {
378
266
  readonly type: "object";
379
267
  readonly additionalProperties: false;
380
268
  readonly patternProperties: {
@@ -386,20 +274,17 @@ declare const schema: {
386
274
  readonly type: "string";
387
275
  readonly pattern: "^[a-z]{2}-[A-Z]{2}$";
388
276
  };
389
- readonly presentation_type: {
277
+ readonly market: {
390
278
  readonly type: "string";
391
279
  };
392
280
  readonly slug: {
393
281
  readonly type: readonly ["string"];
394
282
  };
395
- readonly style_slug: {
396
- readonly type: readonly ["string"];
397
- };
398
283
  readonly style_name: {
399
284
  readonly type: "string";
400
285
  };
401
286
  readonly display_name: {
402
- readonly type: readonly ["string", "null"];
287
+ readonly type: readonly ["string"];
403
288
  };
404
289
  readonly display_type: {
405
290
  readonly type: "string";
@@ -409,26 +294,6 @@ declare const schema: {
409
294
  readonly type: readonly ["string", "null"];
410
295
  readonly format: "date";
411
296
  };
412
- readonly online_from: {
413
- readonly type: readonly ["string", "null"];
414
- readonly format: "date-time";
415
- };
416
- readonly online_to: {
417
- readonly type: readonly ["string", "null"];
418
- readonly format: "date-time";
419
- };
420
- readonly last_online_at: {
421
- readonly type: readonly ["string", "null"];
422
- readonly format: "date-time";
423
- };
424
- readonly first_purchased_at: {
425
- readonly type: "string";
426
- readonly format: "date-time";
427
- };
428
- readonly first_markdown_at: {
429
- readonly type: readonly ["string", "null"];
430
- readonly format: "date-time";
431
- };
432
297
  readonly colour_family_name: {
433
298
  readonly type: "string";
434
299
  };
@@ -441,8 +306,9 @@ declare const schema: {
441
306
  readonly type: "string";
442
307
  };
443
308
  };
444
- readonly sizerange_name: {
445
- readonly type: "string";
309
+ readonly last_online_at: {
310
+ readonly type: readonly ["string", "null"];
311
+ readonly format: "date-time";
446
312
  };
447
313
  readonly variants: {
448
314
  readonly type: "array";
@@ -462,13 +328,28 @@ declare const schema: {
462
328
  readonly attributes: {
463
329
  readonly type: "object";
464
330
  readonly properties: {
331
+ readonly stock_quantity_score: {
332
+ readonly type: "number";
333
+ };
334
+ readonly stock_availability: {
335
+ readonly type: "number";
336
+ };
337
+ readonly measurement_chart: {
338
+ readonly type: readonly ["string", "null"];
339
+ };
340
+ readonly sizeguide_type: {
341
+ readonly type: readonly ["string", "null"];
342
+ };
343
+ readonly brand: {
344
+ readonly type: readonly ["string", "null"];
345
+ };
346
+ readonly shoes_type: {
347
+ readonly type: readonly ["string", "null"];
348
+ };
465
349
  readonly seo_url_name: {
466
350
  readonly type: "string";
467
351
  readonly pattern: "^[a-z-]+$";
468
352
  };
469
- readonly embellishment: {
470
- readonly type: readonly ["string", "null"];
471
- };
472
353
  readonly seo_title: {
473
354
  readonly type: readonly ["string", "null"];
474
355
  };
@@ -481,125 +362,50 @@ declare const schema: {
481
362
  readonly fabric_care: {
482
363
  readonly type: readonly ["string", "null"];
483
364
  };
484
- readonly delivery_returns: {
485
- readonly type: readonly ["string", "null"];
486
- };
487
365
  readonly weight: {
488
366
  readonly type: readonly ["number", "null"];
489
367
  };
490
- readonly weight_statement: {
491
- readonly type: readonly ["string", "null"];
492
- };
493
368
  readonly main_fibre: {
494
369
  readonly type: readonly ["string", "null"];
495
370
  };
496
371
  readonly main_metal: {
497
372
  readonly type: readonly ["string", "null"];
498
373
  };
499
- readonly extra_selling_points: {
500
- readonly type: "array";
501
- readonly items: {
502
- readonly type: "string";
503
- };
504
- };
505
- readonly length_measurement: {
506
- readonly type: readonly ["string", "null"];
507
- };
508
- readonly measurement_table_code: {
509
- readonly type: readonly ["string"];
510
- };
511
- readonly fit: {
512
- readonly type: readonly ["string", "null"];
513
- };
514
- readonly pockets: {
515
- readonly type: readonly ["string", "null"];
516
- };
517
- readonly pleats_gathers: {
518
- readonly type: readonly ["string", "null"];
519
- };
520
- readonly lining: {
521
- readonly type: readonly ["string", "null"];
522
- };
523
- readonly bias_cut: {
524
- readonly type: readonly ["string", "null"];
525
- };
526
374
  readonly designer: {
527
375
  readonly type: readonly ["string", "null"];
528
376
  };
529
- readonly fabric: {
530
- readonly type: readonly ["string", "null"];
531
- };
532
- readonly fabric_composition: {
533
- readonly type: readonly ["string", "null"];
534
- };
535
377
  readonly certificate_code: {
536
378
  readonly type: readonly ["string", "null"];
537
379
  };
538
- readonly shape: {
539
- readonly type: readonly ["string", "null"];
540
- };
541
- readonly development_type: {
542
- readonly type: "string";
543
- };
544
- readonly occasion: {
545
- readonly type: readonly ["string", "null"];
546
- };
547
- readonly design: {
548
- readonly type: readonly ["string", "null"];
549
- };
550
- readonly block: {
551
- readonly type: readonly ["string", "null"];
552
- };
553
380
  readonly pattern_name: {
554
381
  readonly type: readonly ["string", "null"];
555
382
  };
556
383
  readonly fit_type: {
557
384
  readonly type: readonly ["string", "null"];
558
385
  };
559
- readonly neckline: {
560
- readonly type: readonly ["string", "null"];
561
- };
562
- readonly sleeve_length: {
386
+ readonly trousers_fit: {
563
387
  readonly type: readonly ["string", "null"];
564
388
  readonly nullable: true;
565
389
  };
566
- readonly sleeve_type: {
567
- readonly type: readonly ["string", "null"];
568
- readonly nullable: true;
569
- };
570
- readonly heel_height: {
390
+ readonly trousers_length: {
571
391
  readonly type: readonly ["string", "null"];
572
392
  };
573
- readonly heel_shape: {
393
+ readonly dresses_skirts_length: {
574
394
  readonly type: readonly ["string", "null"];
575
395
  };
576
- readonly toe_shape: {
396
+ readonly coats_jackets_type: {
577
397
  readonly type: readonly ["string", "null"];
578
398
  };
579
- readonly trouser_fit: {
399
+ readonly dresses_skirts_type: {
580
400
  readonly type: readonly ["string", "null"];
581
- readonly nullable: true;
582
401
  };
583
- readonly leg_length: {
402
+ readonly bag_type: {
584
403
  readonly type: readonly ["string", "null"];
585
404
  };
586
- readonly handle_straps: {
405
+ readonly product_category: {
587
406
  readonly type: readonly ["string", "null"];
588
407
  };
589
- readonly straps_features: {
590
- readonly type: readonly ["string", "null"];
591
- };
592
- readonly fastening: {
593
- readonly anyOf: readonly [{
594
- readonly type: readonly ["array", "null"];
595
- readonly items: {
596
- readonly type: "string";
597
- };
598
- }, {
599
- readonly type: "null";
600
- }];
601
- };
602
- readonly sole_material: {
408
+ readonly product_type: {
603
409
  readonly type: readonly ["string", "null"];
604
410
  };
605
411
  readonly care_instructions: {
@@ -612,12 +418,12 @@ declare const schema: {
612
418
  readonly required: readonly [];
613
419
  };
614
420
  };
615
- readonly required: readonly ["locale", "presentation_type"];
421
+ readonly required: readonly ["locale", "market"];
616
422
  };
617
423
  };
618
424
  };
619
425
  };
620
- readonly required: readonly ["product_id", "style_id", "product_name", "online_from"];
426
+ readonly required: readonly ["product_id", "style_id", "color_id", "product_name"];
621
427
  }, {
622
428
  readonly type: "object";
623
429
  readonly additionalProperties: false;