@shushed/helpers 0.0.247-cat-tree-schema-20260130105151 → 0.0.247-fh-20260130141017

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.
Files changed (32) hide show
  1. package/dist/cjs/contracts/product-draft.schema.json +14 -0
  2. package/dist/cjs/contracts/product.schema.json +119 -376
  3. package/dist/cjs/dist-dereferenced/category-tree.js +1 -1
  4. package/dist/cjs/dist-dereferenced/messages/product-draft.js +1 -1
  5. package/dist/cjs/dist-dereferenced/messages/product.js +1 -1
  6. package/dist/cjs/dist-dereferenced/product-draft.js +1 -1
  7. package/dist/cjs/dist-dereferenced/product.js +1 -1
  8. package/dist/cjs/src-public/env.js +2 -0
  9. package/dist/cjs/src-public/fredhopper/fredhopper.base.js +497 -0
  10. package/dist/cjs/src-public/fredhopper/fredhopper.js +105 -0
  11. package/dist/cjs/src-public/fredhopper/fredhopper.types.js +10 -0
  12. package/dist/cjs/src-public/fredhopper/index.js +10 -0
  13. package/dist/cjs/src-public/index.js +2 -3
  14. package/dist/package.json +1 -0
  15. package/dist/types/dist-dereferenced/category-tree.d.ts +0 -6
  16. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +6 -0
  17. package/dist/types/dist-dereferenced/messages/product.d.ts +70 -196
  18. package/dist/types/dist-dereferenced/product-draft.d.ts +6 -0
  19. package/dist/types/dist-dereferenced/product.d.ts +70 -196
  20. package/dist/types/dist-types/category-tree.d.ts +0 -2
  21. package/dist/types/dist-types/messages/product-draft.d.ts +2 -0
  22. package/dist/types/dist-types/messages/product.d.ts +29 -66
  23. package/dist/types/dist-types/product-draft.d.ts +2 -0
  24. package/dist/types/dist-types/product.d.ts +29 -66
  25. package/dist/types/src-public/fredhopper/fredhopper.base.d.ts +59 -0
  26. package/dist/types/src-public/fredhopper/fredhopper.d.ts +21 -0
  27. package/dist/types/src-public/fredhopper/fredhopper.types.d.ts +70 -0
  28. package/dist/types/src-public/fredhopper/index.d.ts +2 -0
  29. package/dist/types/src-public/index.d.ts +1 -1
  30. package/package.json +2 -1
  31. package/dist/cjs/src-public/sitoo.js +0 -349
  32. package/dist/types/src-public/sitoo.d.ts +0 -254
@@ -325,6 +325,9 @@ declare const schema: {
325
325
  readonly neckline: {
326
326
  readonly type: readonly ["string", "null"];
327
327
  };
328
+ readonly neckline_statement: {
329
+ readonly type: readonly ["string", "null"];
330
+ };
328
331
  readonly sleeve_length: {
329
332
  readonly type: readonly ["string", "null"];
330
333
  };
@@ -378,6 +381,9 @@ declare const schema: {
378
381
  readonly type: "string";
379
382
  };
380
383
  };
384
+ readonly length_statement: {
385
+ readonly type: readonly ["string", "null"];
386
+ };
381
387
  readonly length_measurement: {
382
388
  readonly type: readonly ["string", "null"];
383
389
  };
@@ -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,53 @@ 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: {
326
- readonly type: readonly ["string", "null"];
327
- readonly nullable: true;
328
- };
329
- readonly sleeve_type: {
225
+ readonly trousers_fit: {
330
226
  readonly type: readonly ["string", "null"];
331
227
  readonly nullable: true;
332
228
  };
333
- readonly heel_height: {
229
+ readonly trousers_length: {
334
230
  readonly type: readonly ["string", "null"];
335
231
  };
336
- readonly heel_shape: {
232
+ readonly dresses_skirts_length: {
337
233
  readonly type: readonly ["string", "null"];
338
234
  };
339
- readonly toe_shape: {
235
+ readonly coats_jackets_type: {
340
236
  readonly type: readonly ["string", "null"];
341
237
  };
342
- readonly trouser_fit: {
238
+ readonly dresses_skirts_type: {
343
239
  readonly type: readonly ["string", "null"];
344
- readonly nullable: true;
345
240
  };
346
- readonly leg_length: {
241
+ readonly bag_type: {
347
242
  readonly type: readonly ["string", "null"];
348
243
  };
349
- readonly handle_straps: {
244
+ readonly product_category: {
350
245
  readonly type: readonly ["string", "null"];
351
246
  };
352
- readonly straps_features: {
247
+ readonly product_type: {
353
248
  readonly type: readonly ["string", "null"];
354
249
  };
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: {
250
+ readonly metal: {
366
251
  readonly type: readonly ["string", "null"];
367
252
  };
368
253
  readonly care_instructions: {
@@ -374,7 +259,13 @@ declare const schema: {
374
259
  };
375
260
  readonly required: readonly [];
376
261
  };
377
- readonly presentations: {
262
+ readonly markets: {
263
+ readonly type: "array";
264
+ readonly items: {
265
+ readonly type: "string";
266
+ };
267
+ };
268
+ readonly markets_overrides: {
378
269
  readonly type: "object";
379
270
  readonly additionalProperties: false;
380
271
  readonly patternProperties: {
@@ -386,15 +277,12 @@ declare const schema: {
386
277
  readonly type: "string";
387
278
  readonly pattern: "^[a-z]{2}-[A-Z]{2}$";
388
279
  };
389
- readonly presentation_type: {
280
+ readonly market: {
390
281
  readonly type: "string";
391
282
  };
392
283
  readonly slug: {
393
284
  readonly $ref: "#/allOf/0/properties/slug";
394
285
  };
395
- readonly style_slug: {
396
- readonly $ref: "#/allOf/0/properties/style_slug";
397
- };
398
286
  readonly style_name: {
399
287
  readonly $ref: "#/allOf/0/properties/style_name";
400
288
  };
@@ -407,21 +295,6 @@ declare const schema: {
407
295
  readonly available_to_sell_from: {
408
296
  readonly $ref: "#/allOf/0/properties/available_to_sell_from";
409
297
  };
410
- readonly online_from: {
411
- readonly $ref: "#/allOf/0/properties/online_from";
412
- };
413
- readonly online_to: {
414
- readonly $ref: "#/allOf/0/properties/online_to";
415
- };
416
- readonly last_online_at: {
417
- readonly $ref: "#/allOf/0/properties/last_online_at";
418
- };
419
- readonly first_purchased_at: {
420
- readonly $ref: "#/allOf/0/properties/first_purchased_at";
421
- };
422
- readonly first_markdown_at: {
423
- readonly $ref: "#/allOf/0/properties/first_markdown_at";
424
- };
425
298
  readonly colour_family_name: {
426
299
  readonly $ref: "#/allOf/0/properties/colour_family_name";
427
300
  };
@@ -431,8 +304,9 @@ declare const schema: {
431
304
  readonly display_tags: {
432
305
  readonly $ref: "#/allOf/0/properties/display_tags";
433
306
  };
434
- readonly sizerange_name: {
435
- readonly $ref: "#/allOf/0/properties/sizerange_name";
307
+ readonly last_online_at: {
308
+ readonly type: readonly ["string", "null"];
309
+ readonly format: "date-time";
436
310
  };
437
311
  readonly variants: {
438
312
  readonly type: "array";
@@ -453,12 +327,12 @@ declare const schema: {
453
327
  readonly $ref: "#/allOf/0/properties/attributes";
454
328
  };
455
329
  };
456
- readonly required: readonly ["locale", "presentation_type"];
330
+ readonly required: readonly ["locale", "market"];
457
331
  };
458
332
  };
459
333
  };
460
334
  };
461
- readonly required: readonly ["product_id", "style_id", "product_name", "online_from"];
335
+ readonly required: readonly ["product_id", "style_id", "color_id", "display_name"];
462
336
  }, {
463
337
  readonly type: "object";
464
338
  readonly additionalProperties: false;
@@ -321,6 +321,9 @@ declare const schema: {
321
321
  readonly neckline: {
322
322
  readonly type: readonly ["string", "null"];
323
323
  };
324
+ readonly neckline_statement: {
325
+ readonly type: readonly ["string", "null"];
326
+ };
324
327
  readonly sleeve_length: {
325
328
  readonly type: readonly ["string", "null"];
326
329
  };
@@ -374,6 +377,9 @@ declare const schema: {
374
377
  readonly type: "string";
375
378
  };
376
379
  };
380
+ readonly length_statement: {
381
+ readonly type: readonly ["string", "null"];
382
+ };
377
383
  readonly length_measurement: {
378
384
  readonly type: readonly ["string", "null"];
379
385
  };