@shushed/helpers 0.0.247 → 0.0.248-main-20260130150622

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 (66) hide show
  1. package/dist/cjs/dist-dereferenced/category-tree.js +4 -0
  2. package/dist/cjs/dist-dereferenced/gift-voucher.js +1 -1
  3. package/dist/cjs/dist-dereferenced/index.js +3 -1
  4. package/dist/cjs/dist-dereferenced/messages/order/delivered.js +1 -1
  5. package/dist/cjs/dist-dereferenced/messages/order/new.js +1 -1
  6. package/dist/cjs/dist-dereferenced/messages/order/processed.js +1 -1
  7. package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +1 -1
  8. package/dist/cjs/dist-dereferenced/messages/order/returned.js +1 -1
  9. package/dist/cjs/dist-dereferenced/messages/order/shipped.js +1 -1
  10. package/dist/cjs/dist-dereferenced/messages/product-draft.js +1 -1
  11. package/dist/cjs/dist-dereferenced/messages/product.js +1 -1
  12. package/dist/cjs/dist-dereferenced/money.js +1 -1
  13. package/dist/cjs/dist-dereferenced/order/customer.js +1 -1
  14. package/dist/cjs/dist-dereferenced/order/item.js +1 -1
  15. package/dist/cjs/dist-dereferenced/order/orderMain.js +1 -1
  16. package/dist/cjs/dist-dereferenced/order/payment.js +1 -1
  17. package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
  18. package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +1 -1
  19. package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
  20. package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +1 -1
  21. package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +1 -1
  22. package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +1 -1
  23. package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +1 -1
  24. package/dist/cjs/dist-dereferenced/product-draft.js +1 -1
  25. package/dist/cjs/dist-dereferenced/product.js +1 -1
  26. package/dist/cjs/dist-dereferenced/purchase-orderline.js +1 -1
  27. package/dist/cjs/dist-dereferenced/stock-movement.js +1 -1
  28. package/dist/cjs/dist-dereferenced/stock.js +1 -1
  29. package/dist/cjs/dist-dereferenced/total.js +1 -1
  30. package/dist/cjs/dist-types/category-tree.js +2 -0
  31. package/dist/types/dist-dereferenced/category-tree.d.ts +59 -0
  32. package/dist/types/dist-dereferenced/gift-voucher.d.ts +1 -3
  33. package/dist/types/dist-dereferenced/index.d.ts +1 -0
  34. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +244 -2894
  35. package/dist/types/dist-dereferenced/messages/order/new.d.ts +244 -2894
  36. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +244 -2894
  37. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +244 -2894
  38. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +244 -2894
  39. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +244 -2894
  40. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +6 -188
  41. package/dist/types/dist-dereferenced/messages/product.d.ts +11 -108
  42. package/dist/types/dist-dereferenced/money.d.ts +1 -3
  43. package/dist/types/dist-dereferenced/order/customer.d.ts +1 -98
  44. package/dist/types/dist-dereferenced/order/index.d.ts +244 -2894
  45. package/dist/types/dist-dereferenced/order/item.d.ts +7 -221
  46. package/dist/types/dist-dereferenced/order/orderMain.d.ts +244 -2894
  47. package/dist/types/dist-dereferenced/order/payment.d.ts +1 -3
  48. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +5 -125
  49. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +5 -125
  50. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +6 -139
  51. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +5 -125
  52. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +6 -155
  53. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +5 -125
  54. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +5 -125
  55. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +6 -139
  56. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +6 -139
  57. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +5 -125
  58. package/dist/types/dist-dereferenced/product-draft.d.ts +6 -188
  59. package/dist/types/dist-dereferenced/product.d.ts +11 -108
  60. package/dist/types/dist-dereferenced/purchase-orderline.d.ts +1 -3
  61. package/dist/types/dist-dereferenced/stock-movement.d.ts +1 -3
  62. package/dist/types/dist-dereferenced/stock.d.ts +1 -3
  63. package/dist/types/dist-dereferenced/total.d.ts +4 -111
  64. package/dist/types/dist-types/category-tree.d.ts +14 -0
  65. package/dist/types/dist-types/index.d.ts +1 -0
  66. package/package.json +1 -1
@@ -277,33 +277,28 @@ declare const schema: {
277
277
  readonly type: "string";
278
278
  };
279
279
  readonly slug: {
280
- readonly type: readonly ["string"];
280
+ readonly $ref: "#/properties/slug";
281
281
  };
282
282
  readonly style_name: {
283
- readonly type: "string";
283
+ readonly $ref: "#/properties/style_name";
284
284
  };
285
285
  readonly display_name: {
286
- readonly type: readonly ["string"];
286
+ readonly $ref: "#/properties/display_name";
287
287
  };
288
288
  readonly display_type: {
289
- readonly type: "string";
290
- readonly enum: readonly ["Out-of-stock", "Permanently-unavailable"];
289
+ readonly $ref: "#/properties/display_type";
291
290
  };
292
291
  readonly available_to_sell_from: {
293
- readonly type: readonly ["string", "null"];
294
- readonly format: "date";
292
+ readonly $ref: "#/properties/available_to_sell_from";
295
293
  };
296
294
  readonly colour_family_name: {
297
- readonly type: "string";
295
+ readonly $ref: "#/properties/colour_family_name";
298
296
  };
299
297
  readonly colour_name: {
300
- readonly type: "string";
298
+ readonly $ref: "#/properties/colour_name";
301
299
  };
302
300
  readonly display_tags: {
303
- readonly type: "array";
304
- readonly items: {
305
- readonly type: "string";
306
- };
301
+ readonly $ref: "#/properties/display_tags";
307
302
  };
308
303
  readonly last_online_at: {
309
304
  readonly type: readonly ["string", "null"];
@@ -315,109 +310,17 @@ declare const schema: {
315
310
  readonly type: "object";
316
311
  readonly properties: {
317
312
  readonly code: {
318
- readonly type: "string";
313
+ readonly $ref: "#/properties/variants/items/properties/code";
319
314
  };
320
315
  readonly name: {
321
- readonly type: readonly ["string"];
316
+ readonly $ref: "#/properties/variants/items/properties/name";
322
317
  };
323
318
  };
324
319
  readonly required: readonly ["code", "name"];
325
320
  };
326
321
  };
327
322
  readonly attributes: {
328
- readonly type: "object";
329
- readonly properties: {
330
- readonly stock_quantity_score: {
331
- readonly type: "number";
332
- };
333
- readonly stock_availability: {
334
- readonly type: "number";
335
- };
336
- readonly measurement_chart: {
337
- readonly type: readonly ["string", "null"];
338
- };
339
- readonly sizeguide_type: {
340
- readonly type: readonly ["string", "null"];
341
- };
342
- readonly brand: {
343
- readonly type: readonly ["string", "null"];
344
- };
345
- readonly shoes_type: {
346
- readonly type: readonly ["string", "null"];
347
- };
348
- readonly seo_url_name: {
349
- readonly type: "string";
350
- readonly pattern: "^[a-z-]+$";
351
- };
352
- readonly seo_title: {
353
- readonly type: readonly ["string", "null"];
354
- };
355
- readonly seo_description: {
356
- readonly type: readonly ["string", "null"];
357
- };
358
- readonly fit_description: {
359
- readonly type: readonly ["string", "null"];
360
- };
361
- readonly fabric_care: {
362
- readonly type: readonly ["string", "null"];
363
- };
364
- readonly weight: {
365
- readonly type: readonly ["number", "null"];
366
- };
367
- readonly main_fibre: {
368
- readonly type: readonly ["string", "null"];
369
- };
370
- readonly main_metal: {
371
- readonly type: readonly ["string", "null"];
372
- };
373
- readonly designer: {
374
- readonly type: readonly ["string", "null"];
375
- };
376
- readonly certificate_code: {
377
- readonly type: readonly ["string", "null"];
378
- };
379
- readonly pattern_name: {
380
- readonly type: readonly ["string", "null"];
381
- };
382
- readonly fit_type: {
383
- readonly type: readonly ["string", "null"];
384
- };
385
- readonly trousers_fit: {
386
- readonly type: readonly ["string", "null"];
387
- readonly nullable: true;
388
- };
389
- readonly trousers_length: {
390
- readonly type: readonly ["string", "null"];
391
- };
392
- readonly dresses_skirts_length: {
393
- readonly type: readonly ["string", "null"];
394
- };
395
- readonly coats_jackets_type: {
396
- readonly type: readonly ["string", "null"];
397
- };
398
- readonly dresses_skirts_type: {
399
- readonly type: readonly ["string", "null"];
400
- };
401
- readonly bag_type: {
402
- readonly type: readonly ["string", "null"];
403
- };
404
- readonly product_category: {
405
- readonly type: readonly ["string", "null"];
406
- };
407
- readonly product_type: {
408
- readonly type: readonly ["string", "null"];
409
- };
410
- readonly metal: {
411
- readonly type: readonly ["string", "null"];
412
- };
413
- readonly care_instructions: {
414
- readonly type: "array";
415
- readonly items: {
416
- readonly type: "string";
417
- };
418
- };
419
- };
420
- readonly required: readonly [];
323
+ readonly $ref: "#/properties/attributes";
421
324
  };
422
325
  };
423
326
  readonly required: readonly ["locale", "market"];
@@ -91,10 +91,8 @@ declare const schema: {
91
91
  readonly minimum: 0;
92
92
  };
93
93
  readonly lcy_currency: {
94
+ readonly $ref: "#/properties/unit_price/oneOf/0/properties/currency";
94
95
  readonly title: "LCY Currency";
95
- readonly $schema: "http://json-schema.org/draft-07/schema#";
96
- readonly type: "string";
97
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
98
96
  };
99
97
  readonly lcy_decimal_places: {
100
98
  readonly type: "integer";
@@ -71,10 +71,8 @@ declare const schema: {
71
71
  readonly minimum: 0;
72
72
  };
73
73
  readonly lcy_currency: {
74
+ readonly $ref: "#/properties/unit_cost/oneOf/0/properties/currency";
74
75
  readonly title: "LCY Currency";
75
- readonly $schema: "http://json-schema.org/draft-07/schema#";
76
- readonly type: "string";
77
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
78
76
  };
79
77
  readonly lcy_decimal_places: {
80
78
  readonly type: "integer";
@@ -51,10 +51,8 @@ declare const schema: {
51
51
  readonly minimum: 0;
52
52
  };
53
53
  readonly lcy_currency: {
54
+ readonly $ref: "#/properties/unit_cost/oneOf/0/properties/currency";
54
55
  readonly title: "LCY Currency";
55
- readonly $schema: "http://json-schema.org/draft-07/schema#";
56
- readonly type: "string";
57
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
58
56
  };
59
57
  readonly lcy_decimal_places: {
60
58
  readonly type: "integer";
@@ -29,10 +29,8 @@ declare const schema: {
29
29
  readonly minimum: 0;
30
30
  };
31
31
  readonly lcy_currency: {
32
+ readonly $ref: "#/properties/amount_net/properties/currency";
32
33
  readonly title: "LCY Currency";
33
- readonly $schema: "http://json-schema.org/draft-07/schema#";
34
- readonly type: "string";
35
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
36
34
  };
37
35
  readonly lcy_decimal_places: {
38
36
  readonly type: "integer";
@@ -43,121 +41,16 @@ declare const schema: {
43
41
  readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
44
42
  };
45
43
  readonly amount_gross: {
44
+ readonly $ref: "#/properties/amount_net";
46
45
  readonly title: "Amount gross";
47
- readonly $schema: "http://json-schema.org/draft-07/schema#";
48
- readonly type: "object";
49
- readonly additionalProperties: false;
50
- readonly properties: {
51
- readonly value: {
52
- readonly type: "integer";
53
- readonly minimum: 0;
54
- };
55
- readonly decimal_places: {
56
- readonly type: "integer";
57
- readonly minimum: 0;
58
- readonly maximum: 4;
59
- };
60
- readonly currency: {
61
- readonly title: "Currency";
62
- readonly $schema: "http://json-schema.org/draft-07/schema#";
63
- readonly type: "string";
64
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
65
- };
66
- readonly lcy_value: {
67
- readonly type: "integer";
68
- readonly minimum: 0;
69
- };
70
- readonly lcy_currency: {
71
- readonly title: "LCY Currency";
72
- readonly $schema: "http://json-schema.org/draft-07/schema#";
73
- readonly type: "string";
74
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
75
- };
76
- readonly lcy_decimal_places: {
77
- readonly type: "integer";
78
- readonly minimum: 0;
79
- readonly maximum: 4;
80
- };
81
- };
82
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
83
46
  };
84
47
  readonly discount_amount_net: {
48
+ readonly $ref: "#/properties/amount_net";
85
49
  readonly title: "Discount Amount Net";
86
- readonly $schema: "http://json-schema.org/draft-07/schema#";
87
- readonly type: "object";
88
- readonly additionalProperties: false;
89
- readonly properties: {
90
- readonly value: {
91
- readonly type: "integer";
92
- readonly minimum: 0;
93
- };
94
- readonly decimal_places: {
95
- readonly type: "integer";
96
- readonly minimum: 0;
97
- readonly maximum: 4;
98
- };
99
- readonly currency: {
100
- readonly title: "Currency";
101
- readonly $schema: "http://json-schema.org/draft-07/schema#";
102
- readonly type: "string";
103
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
104
- };
105
- readonly lcy_value: {
106
- readonly type: "integer";
107
- readonly minimum: 0;
108
- };
109
- readonly lcy_currency: {
110
- readonly title: "LCY Currency";
111
- readonly $schema: "http://json-schema.org/draft-07/schema#";
112
- readonly type: "string";
113
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
114
- };
115
- readonly lcy_decimal_places: {
116
- readonly type: "integer";
117
- readonly minimum: 0;
118
- readonly maximum: 4;
119
- };
120
- };
121
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
122
50
  };
123
51
  readonly discount_amount_gross: {
52
+ readonly $ref: "#/properties/amount_net";
124
53
  readonly title: "Discount Amount Gross";
125
- readonly $schema: "http://json-schema.org/draft-07/schema#";
126
- readonly type: "object";
127
- readonly additionalProperties: false;
128
- readonly properties: {
129
- readonly value: {
130
- readonly type: "integer";
131
- readonly minimum: 0;
132
- };
133
- readonly decimal_places: {
134
- readonly type: "integer";
135
- readonly minimum: 0;
136
- readonly maximum: 4;
137
- };
138
- readonly currency: {
139
- readonly title: "Currency";
140
- readonly $schema: "http://json-schema.org/draft-07/schema#";
141
- readonly type: "string";
142
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
143
- };
144
- readonly lcy_value: {
145
- readonly type: "integer";
146
- readonly minimum: 0;
147
- };
148
- readonly lcy_currency: {
149
- readonly title: "LCY Currency";
150
- readonly $schema: "http://json-schema.org/draft-07/schema#";
151
- readonly type: "string";
152
- readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
153
- };
154
- readonly lcy_decimal_places: {
155
- readonly type: "integer";
156
- readonly minimum: 0;
157
- readonly maximum: 4;
158
- };
159
- };
160
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
161
54
  };
162
55
  readonly discount_amount_percent: {
163
56
  readonly type: "number";
@@ -0,0 +1,14 @@
1
+ export interface __MainSchema {
2
+ children: CategoryNode[];
3
+ }
4
+ export interface CategoryNode {
5
+ id: string;
6
+ branchId: string;
7
+ name: string;
8
+ path: string[];
9
+ parentCategory?: (string | null);
10
+ displayPath?: string;
11
+ pathId: string[];
12
+ children: CategoryNode[];
13
+ }
14
+ export default __MainSchema;
@@ -1,4 +1,5 @@
1
1
  export { default as Asset } from './asset';
2
+ export { default as CategoryTree } from './category-tree';
2
3
  export { default as Category } from './category';
3
4
  export { default as Country } from './country';
4
5
  export { default as Currency } from './currency';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.247",
3
+ "version": "0.0.248-main-20260130150622",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",