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