@shushed/helpers 0.0.226 → 0.0.227-main-20260107085003

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 (42) hide show
  1. package/dist/cjs/contracts/index.js +1 -5
  2. package/dist/cjs/contracts/product-draft.schema.json +5 -159
  3. package/dist/cjs/dist-dereferenced/index.js +1 -5
  4. package/dist/cjs/dist-dereferenced/messages/product-draft.js +1 -1
  5. package/dist/cjs/dist-dereferenced/product-draft.js +1 -1
  6. package/dist/cjs/src-public/airtable.js +59 -96
  7. package/dist/cjs/src-public/bcOrder.js +77 -60
  8. package/dist/cjs/src-public/centra.js +5 -56
  9. package/dist/cjs/src-public/env.js +1 -1
  10. package/dist/cjs/src-public/index.js +1 -3
  11. package/dist/cjs/src-public/pubsub.js +10 -35
  12. package/dist/cjs/src-public/runtime.js +9 -48
  13. package/dist/cjs/src-public/utils.js +0 -3
  14. package/dist/package.json +2 -3
  15. package/dist/types/contracts/index.d.ts +0 -2
  16. package/dist/types/dist-dereferenced/index.d.ts +0 -2
  17. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +1 -148
  18. package/dist/types/dist-dereferenced/product-draft.d.ts +1 -148
  19. package/dist/types/dist-types/index.d.ts +0 -2
  20. package/dist/types/dist-types/messages/product-draft.d.ts +4 -23
  21. package/dist/types/dist-types/product-draft.d.ts +4 -23
  22. package/dist/types/src-public/airtable.d.ts +9 -0
  23. package/dist/types/src-public/centra.d.ts +0 -3
  24. package/dist/types/src-public/env.d.ts +1 -1
  25. package/dist/types/src-public/index.d.ts +0 -1
  26. package/dist/types/src-public/pubsub.d.ts +1 -4
  27. package/dist/types/src-public/runtime.d.ts +4 -17
  28. package/dist/types/src-public/types.d.ts +0 -6
  29. package/dist/types/src-public/utils.d.ts +1 -1
  30. package/package.json +3 -4
  31. package/dist/cjs/contracts/purchase-orderline.schema.json +0 -135
  32. package/dist/cjs/contracts/stock-movement.schema.json +0 -144
  33. package/dist/cjs/dist-dereferenced/purchase-orderline.js +0 -4
  34. package/dist/cjs/dist-dereferenced/stock-movement.js +0 -4
  35. package/dist/cjs/dist-types/purchase-orderline.js +0 -2
  36. package/dist/cjs/dist-types/stock-movement.js +0 -2
  37. package/dist/cjs/src-public/sitoo.js +0 -349
  38. package/dist/types/dist-dereferenced/purchase-orderline.d.ts +0 -114
  39. package/dist/types/dist-dereferenced/stock-movement.d.ts +0 -110
  40. package/dist/types/dist-types/purchase-orderline.d.ts +0 -31
  41. package/dist/types/dist-types/stock-movement.d.ts +0 -30
  42. package/dist/types/src-public/sitoo.d.ts +0 -254
@@ -16,12 +16,6 @@ declare const schema: {
16
16
  readonly type: "string";
17
17
  readonly pattern: "^[A-Z]{2}\\d{2}[A-Z]+?-\\d{6}$";
18
18
  };
19
- readonly centric_id: {
20
- readonly type: readonly ["string"];
21
- };
22
- readonly style_centric_id: {
23
- readonly type: readonly ["string"];
24
- };
25
19
  readonly product_id: {
26
20
  readonly type: readonly ["string"];
27
21
  };
@@ -29,29 +23,12 @@ declare const schema: {
29
23
  readonly type: "string";
30
24
  readonly format: "date-time";
31
25
  };
32
- readonly erp_settings: {
33
- readonly type: readonly ["string", "null"];
34
- };
35
- readonly erp_created_at: {
36
- readonly type: readonly ["string", "null"];
37
- readonly format: "date-time";
38
- };
39
- readonly erp_export_settings: {
40
- readonly type: "array";
41
- readonly items: {
42
- readonly type: "string";
43
- readonly enum: readonly ["Exportable to Website", "Exportable to Next", "Available to sell"];
44
- };
45
- };
46
26
  readonly is_colourway_approved: {
47
27
  readonly type: "boolean";
48
28
  };
49
29
  readonly product_name: {
50
30
  readonly type: readonly ["string", "null"];
51
31
  };
52
- readonly erp_name: {
53
- readonly type: readonly ["string", "null"];
54
- };
55
32
  readonly colour_id: {
56
33
  readonly type: "string";
57
34
  };
@@ -99,9 +76,6 @@ declare const schema: {
99
76
  };
100
77
  };
101
78
  };
102
- readonly store_grade: {
103
- readonly type: readonly ["string", "null"];
104
- };
105
79
  readonly drops: {
106
80
  readonly type: "array";
107
81
  readonly items: {
@@ -116,22 +90,6 @@ declare const schema: {
116
90
  };
117
91
  };
118
92
  };
119
- readonly direct_stock_buffer: {
120
- readonly type: readonly ["number", "null"];
121
- };
122
- readonly qa_completed: {
123
- readonly type: readonly ["boolean", "null"];
124
- };
125
- readonly warehouse_instructions: {
126
- readonly type: readonly ["string", "null"];
127
- };
128
- readonly available_to_sell_from: {
129
- readonly type: readonly ["string", "null"];
130
- readonly format: "date-time";
131
- };
132
- readonly processing_time_warehouse: {
133
- readonly type: readonly ["number", "null"];
134
- };
135
93
  readonly stock_type: {
136
94
  readonly type: readonly ["string", "null"];
137
95
  };
@@ -141,9 +99,6 @@ declare const schema: {
141
99
  readonly packing_method: {
142
100
  readonly type: readonly ["string", "null"];
143
101
  };
144
- readonly packaging_code: {
145
- readonly type: readonly ["string", "null"];
146
- };
147
102
  readonly is_bought_in_product: {
148
103
  readonly type: readonly ["boolean", "null"];
149
104
  };
@@ -380,16 +335,6 @@ declare const schema: {
380
335
  };
381
336
  };
382
337
  };
383
- readonly preorder_options: {
384
- readonly type: readonly ["string", "null"];
385
- readonly enum: readonly ["Never", "Default", "Weeks", null];
386
- };
387
- readonly preorder_num_period: {
388
- readonly type: readonly ["string", "null"];
389
- };
390
- readonly vat_posting_group_code: {
391
- readonly type: readonly ["string", "null"];
392
- };
393
338
  readonly retail_price: {
394
339
  readonly oneOf: readonly [{
395
340
  readonly $schema: "http://json-schema.org/draft-07/schema#";
@@ -575,92 +520,6 @@ declare const schema: {
575
520
  readonly duty_rate: {
576
521
  readonly type: readonly ["number", "null"];
577
522
  };
578
- readonly unit_cost: {
579
- readonly oneOf: readonly [{
580
- readonly $schema: "http://json-schema.org/draft-07/schema#";
581
- readonly title: "Money";
582
- readonly type: "object";
583
- readonly additionalProperties: false;
584
- readonly properties: {
585
- readonly value: {
586
- readonly type: "integer";
587
- readonly minimum: 0;
588
- };
589
- readonly decimal_places: {
590
- readonly type: "integer";
591
- readonly minimum: 0;
592
- readonly maximum: 4;
593
- };
594
- readonly currency: {
595
- readonly title: "Currency";
596
- readonly $schema: "http://json-schema.org/draft-07/schema#";
597
- readonly type: "string";
598
- 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"];
599
- };
600
- readonly lcy_value: {
601
- readonly type: "integer";
602
- readonly minimum: 0;
603
- };
604
- readonly lcy_currency: {
605
- readonly title: "LCY Currency";
606
- readonly $schema: "http://json-schema.org/draft-07/schema#";
607
- readonly type: "string";
608
- 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"];
609
- };
610
- readonly lcy_decimal_places: {
611
- readonly type: "integer";
612
- readonly minimum: 0;
613
- readonly maximum: 4;
614
- };
615
- };
616
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
617
- }, {
618
- readonly type: "null";
619
- }];
620
- };
621
- readonly last_direct_cost: {
622
- readonly oneOf: readonly [{
623
- readonly $schema: "http://json-schema.org/draft-07/schema#";
624
- readonly title: "Money";
625
- readonly type: "object";
626
- readonly additionalProperties: false;
627
- readonly properties: {
628
- readonly value: {
629
- readonly type: "integer";
630
- readonly minimum: 0;
631
- };
632
- readonly decimal_places: {
633
- readonly type: "integer";
634
- readonly minimum: 0;
635
- readonly maximum: 4;
636
- };
637
- readonly currency: {
638
- readonly title: "Currency";
639
- readonly $schema: "http://json-schema.org/draft-07/schema#";
640
- readonly type: "string";
641
- 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"];
642
- };
643
- readonly lcy_value: {
644
- readonly type: "integer";
645
- readonly minimum: 0;
646
- };
647
- readonly lcy_currency: {
648
- readonly title: "LCY Currency";
649
- readonly $schema: "http://json-schema.org/draft-07/schema#";
650
- readonly type: "string";
651
- 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"];
652
- };
653
- readonly lcy_decimal_places: {
654
- readonly type: "integer";
655
- readonly minimum: 0;
656
- readonly maximum: 4;
657
- };
658
- };
659
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
660
- }, {
661
- readonly type: "null";
662
- }];
663
- };
664
523
  };
665
524
  };
666
525
  readonly duty: {
@@ -673,9 +532,6 @@ declare const schema: {
673
532
  readonly commodity_code: {
674
533
  readonly type: readonly ["string", "null"];
675
534
  };
676
- readonly tariff_no: {
677
- readonly type: readonly ["string", "null"];
678
- };
679
535
  };
680
536
  readonly payment_terms: {
681
537
  readonly type: "object";
@@ -713,9 +569,6 @@ declare const schema: {
713
569
  readonly supplier_id: {
714
570
  readonly type: readonly ["string", "null"];
715
571
  };
716
- readonly erp_supplier_id: {
717
- readonly type: readonly ["string", "null"];
718
- };
719
572
  readonly supplier_name: {
720
573
  readonly type: readonly ["string", "null"];
721
574
  };
@@ -725,7 +578,7 @@ declare const schema: {
725
578
  };
726
579
  };
727
580
  };
728
- readonly required: readonly ["product_id", "colour_id", "style_id"];
581
+ readonly required: readonly ["development_colourway_id", "development_style_id", "product_id", "colour_id", "style_id", "created_at", "season_id"];
729
582
  }, {
730
583
  readonly type: "object";
731
584
  readonly additionalProperties: false;
@@ -12,12 +12,6 @@ declare const schema: {
12
12
  readonly type: "string";
13
13
  readonly pattern: "^[A-Z]{2}\\d{2}[A-Z]+?-\\d{6}$";
14
14
  };
15
- readonly centric_id: {
16
- readonly type: readonly ["string"];
17
- };
18
- readonly style_centric_id: {
19
- readonly type: readonly ["string"];
20
- };
21
15
  readonly product_id: {
22
16
  readonly type: readonly ["string"];
23
17
  };
@@ -25,29 +19,12 @@ declare const schema: {
25
19
  readonly type: "string";
26
20
  readonly format: "date-time";
27
21
  };
28
- readonly erp_settings: {
29
- readonly type: readonly ["string", "null"];
30
- };
31
- readonly erp_created_at: {
32
- readonly type: readonly ["string", "null"];
33
- readonly format: "date-time";
34
- };
35
- readonly erp_export_settings: {
36
- readonly type: "array";
37
- readonly items: {
38
- readonly type: "string";
39
- readonly enum: readonly ["Exportable to Website", "Exportable to Next", "Available to sell"];
40
- };
41
- };
42
22
  readonly is_colourway_approved: {
43
23
  readonly type: "boolean";
44
24
  };
45
25
  readonly product_name: {
46
26
  readonly type: readonly ["string", "null"];
47
27
  };
48
- readonly erp_name: {
49
- readonly type: readonly ["string", "null"];
50
- };
51
28
  readonly colour_id: {
52
29
  readonly type: "string";
53
30
  };
@@ -95,9 +72,6 @@ declare const schema: {
95
72
  };
96
73
  };
97
74
  };
98
- readonly store_grade: {
99
- readonly type: readonly ["string", "null"];
100
- };
101
75
  readonly drops: {
102
76
  readonly type: "array";
103
77
  readonly items: {
@@ -112,22 +86,6 @@ declare const schema: {
112
86
  };
113
87
  };
114
88
  };
115
- readonly direct_stock_buffer: {
116
- readonly type: readonly ["number", "null"];
117
- };
118
- readonly qa_completed: {
119
- readonly type: readonly ["boolean", "null"];
120
- };
121
- readonly warehouse_instructions: {
122
- readonly type: readonly ["string", "null"];
123
- };
124
- readonly available_to_sell_from: {
125
- readonly type: readonly ["string", "null"];
126
- readonly format: "date-time";
127
- };
128
- readonly processing_time_warehouse: {
129
- readonly type: readonly ["number", "null"];
130
- };
131
89
  readonly stock_type: {
132
90
  readonly type: readonly ["string", "null"];
133
91
  };
@@ -137,9 +95,6 @@ declare const schema: {
137
95
  readonly packing_method: {
138
96
  readonly type: readonly ["string", "null"];
139
97
  };
140
- readonly packaging_code: {
141
- readonly type: readonly ["string", "null"];
142
- };
143
98
  readonly is_bought_in_product: {
144
99
  readonly type: readonly ["boolean", "null"];
145
100
  };
@@ -376,16 +331,6 @@ declare const schema: {
376
331
  };
377
332
  };
378
333
  };
379
- readonly preorder_options: {
380
- readonly type: readonly ["string", "null"];
381
- readonly enum: readonly ["Never", "Default", "Weeks", null];
382
- };
383
- readonly preorder_num_period: {
384
- readonly type: readonly ["string", "null"];
385
- };
386
- readonly vat_posting_group_code: {
387
- readonly type: readonly ["string", "null"];
388
- };
389
334
  readonly retail_price: {
390
335
  readonly oneOf: readonly [{
391
336
  readonly $schema: "http://json-schema.org/draft-07/schema#";
@@ -571,92 +516,6 @@ declare const schema: {
571
516
  readonly duty_rate: {
572
517
  readonly type: readonly ["number", "null"];
573
518
  };
574
- readonly unit_cost: {
575
- readonly oneOf: readonly [{
576
- readonly $schema: "http://json-schema.org/draft-07/schema#";
577
- readonly title: "Money";
578
- readonly type: "object";
579
- readonly additionalProperties: false;
580
- readonly properties: {
581
- readonly value: {
582
- readonly type: "integer";
583
- readonly minimum: 0;
584
- };
585
- readonly decimal_places: {
586
- readonly type: "integer";
587
- readonly minimum: 0;
588
- readonly maximum: 4;
589
- };
590
- readonly currency: {
591
- readonly title: "Currency";
592
- readonly $schema: "http://json-schema.org/draft-07/schema#";
593
- readonly type: "string";
594
- 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"];
595
- };
596
- readonly lcy_value: {
597
- readonly type: "integer";
598
- readonly minimum: 0;
599
- };
600
- readonly lcy_currency: {
601
- readonly title: "LCY Currency";
602
- readonly $schema: "http://json-schema.org/draft-07/schema#";
603
- readonly type: "string";
604
- 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"];
605
- };
606
- readonly lcy_decimal_places: {
607
- readonly type: "integer";
608
- readonly minimum: 0;
609
- readonly maximum: 4;
610
- };
611
- };
612
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
613
- }, {
614
- readonly type: "null";
615
- }];
616
- };
617
- readonly last_direct_cost: {
618
- readonly oneOf: readonly [{
619
- readonly $schema: "http://json-schema.org/draft-07/schema#";
620
- readonly title: "Money";
621
- readonly type: "object";
622
- readonly additionalProperties: false;
623
- readonly properties: {
624
- readonly value: {
625
- readonly type: "integer";
626
- readonly minimum: 0;
627
- };
628
- readonly decimal_places: {
629
- readonly type: "integer";
630
- readonly minimum: 0;
631
- readonly maximum: 4;
632
- };
633
- readonly currency: {
634
- readonly title: "Currency";
635
- readonly $schema: "http://json-schema.org/draft-07/schema#";
636
- readonly type: "string";
637
- 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"];
638
- };
639
- readonly lcy_value: {
640
- readonly type: "integer";
641
- readonly minimum: 0;
642
- };
643
- readonly lcy_currency: {
644
- readonly title: "LCY Currency";
645
- readonly $schema: "http://json-schema.org/draft-07/schema#";
646
- readonly type: "string";
647
- 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"];
648
- };
649
- readonly lcy_decimal_places: {
650
- readonly type: "integer";
651
- readonly minimum: 0;
652
- readonly maximum: 4;
653
- };
654
- };
655
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
656
- }, {
657
- readonly type: "null";
658
- }];
659
- };
660
519
  };
661
520
  };
662
521
  readonly duty: {
@@ -669,9 +528,6 @@ declare const schema: {
669
528
  readonly commodity_code: {
670
529
  readonly type: readonly ["string", "null"];
671
530
  };
672
- readonly tariff_no: {
673
- readonly type: readonly ["string", "null"];
674
- };
675
531
  };
676
532
  readonly payment_terms: {
677
533
  readonly type: "object";
@@ -709,9 +565,6 @@ declare const schema: {
709
565
  readonly supplier_id: {
710
566
  readonly type: readonly ["string", "null"];
711
567
  };
712
- readonly erp_supplier_id: {
713
- readonly type: readonly ["string", "null"];
714
- };
715
568
  readonly supplier_name: {
716
569
  readonly type: readonly ["string", "null"];
717
570
  };
@@ -721,7 +574,7 @@ declare const schema: {
721
574
  };
722
575
  };
723
576
  };
724
- readonly required: readonly ["product_id", "colour_id", "style_id"];
577
+ readonly required: readonly ["development_colourway_id", "development_style_id", "product_id", "colour_id", "style_id", "created_at", "season_id"];
725
578
  readonly $id: "https://shushed.example.com/product-draft.schema.json";
726
579
  };
727
580
  export default schema;
@@ -10,8 +10,6 @@ export { default as Price } from './price';
10
10
  export { default as ProductCategory } from './product-category';
11
11
  export { default as ProductDraft } from './product-draft';
12
12
  export { default as Product } from './product';
13
- export { default as PurchaseOrderline } from './purchase-orderline';
14
- export { default as StockMovement } from './stock-movement';
15
13
  export { default as Stock } from './stock';
16
14
  export { default as Total } from './total';
17
15
  export * as Messages from './messages';
@@ -3,39 +3,26 @@ export type Currency = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" |
3
3
  export type LCYCurrency = ("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");
4
4
  export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "CV" | "KH" | "CM" | "CA" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CD" | "CG" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "SZ" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MK" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW");
5
5
  export interface ProductDraft {
6
- development_colourway_id?: string;
7
- development_style_id?: string;
8
- centric_id?: string;
9
- style_centric_id?: string;
6
+ development_colourway_id: string;
7
+ development_style_id: string;
10
8
  product_id: string;
11
- created_at?: string;
12
- erp_settings?: (string | null);
13
- erp_created_at?: (string | null);
14
- erp_export_settings?: ("Exportable to Website" | "Exportable to Next" | "Available to sell")[];
9
+ created_at: string;
15
10
  is_colourway_approved?: boolean;
16
11
  product_name?: (string | null);
17
- erp_name?: (string | null);
18
12
  colour_id: string;
19
13
  colour_label?: (string | null);
20
14
  style_id: string;
21
- season_id?: string;
15
+ season_id: string;
22
16
  size_curves?: {
23
17
  channel?: string;
24
18
  name?: string;
25
19
  [k: string]: unknown;
26
20
  }[];
27
21
  plm_buying_quantities?: BuyingQuantitiesChannel[];
28
- store_grade?: (string | null);
29
22
  drops?: DropChannel[];
30
- direct_stock_buffer?: (number | null);
31
- qa_completed?: (boolean | null);
32
- warehouse_instructions?: (string | null);
33
- available_to_sell_from?: (string | null);
34
- processing_time_warehouse?: (number | null);
35
23
  stock_type?: (string | null);
36
24
  block?: (string | null);
37
25
  packing_method?: (string | null);
38
- packaging_code?: (string | null);
39
26
  is_bought_in_product?: (boolean | null);
40
27
  reprocess_method?: (string | null);
41
28
  is_carry_over?: (boolean | null);
@@ -103,9 +90,6 @@ export interface ProductDraft {
103
90
  length_measurement?: (string | null);
104
91
  fabric_composition?: (string | null);
105
92
  };
106
- preorder_options?: ("Never" | "Default" | "Weeks" | null);
107
- preorder_num_period?: (string | null);
108
- vat_posting_group_code?: (string | null);
109
93
  retail_price?: (Money | null);
110
94
  cost?: {
111
95
  current_cost?: (Money | null);
@@ -114,8 +98,6 @@ export interface ProductDraft {
114
98
  commission_rate?: (number | null);
115
99
  freight_rate?: (number | null);
116
100
  duty_rate?: (number | null);
117
- unit_cost?: (Money | null);
118
- last_direct_cost?: (Money | null);
119
101
  };
120
102
  duty?: {
121
103
  [k: string]: unknown;
@@ -129,7 +111,6 @@ export interface ProductDraft {
129
111
  port_of_origin?: (string | null);
130
112
  moq?: (number | null);
131
113
  supplier_id?: (string | null);
132
- erp_supplier_id?: (string | null);
133
114
  supplier_name?: (string | null);
134
115
  factory_id?: (string | null);
135
116
  };