@shushed/helpers 0.0.226-fix-erp-631-20260105165305 → 0.0.226

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 +5 -1
  2. package/dist/cjs/contracts/product-draft.schema.json +159 -5
  3. package/dist/cjs/contracts/purchase-orderline.schema.json +135 -0
  4. package/dist/cjs/contracts/stock-movement.schema.json +144 -0
  5. package/dist/cjs/dist-dereferenced/index.js +5 -1
  6. package/dist/cjs/dist-dereferenced/messages/product-draft.js +1 -1
  7. package/dist/cjs/dist-dereferenced/product-draft.js +1 -1
  8. package/dist/cjs/dist-dereferenced/purchase-orderline.js +4 -0
  9. package/dist/cjs/dist-dereferenced/stock-movement.js +4 -0
  10. package/dist/cjs/dist-types/purchase-orderline.js +2 -0
  11. package/dist/cjs/dist-types/stock-movement.js +2 -0
  12. package/dist/cjs/src-public/airtable.js +96 -59
  13. package/dist/cjs/src-public/bcOrder.js +60 -77
  14. package/dist/cjs/src-public/centra.js +56 -5
  15. package/dist/cjs/src-public/env.js +1 -1
  16. package/dist/cjs/src-public/index.js +3 -1
  17. package/dist/cjs/src-public/pubsub.js +35 -10
  18. package/dist/cjs/src-public/runtime.js +48 -9
  19. package/dist/cjs/src-public/sitoo.js +349 -0
  20. package/dist/cjs/src-public/utils.js +3 -0
  21. package/dist/package.json +3 -2
  22. package/dist/types/contracts/index.d.ts +2 -0
  23. package/dist/types/dist-dereferenced/index.d.ts +2 -0
  24. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +148 -1
  25. package/dist/types/dist-dereferenced/product-draft.d.ts +148 -1
  26. package/dist/types/dist-dereferenced/purchase-orderline.d.ts +114 -0
  27. package/dist/types/dist-dereferenced/stock-movement.d.ts +110 -0
  28. package/dist/types/dist-types/index.d.ts +2 -0
  29. package/dist/types/dist-types/messages/product-draft.d.ts +23 -4
  30. package/dist/types/dist-types/product-draft.d.ts +23 -4
  31. package/dist/types/dist-types/purchase-orderline.d.ts +31 -0
  32. package/dist/types/dist-types/stock-movement.d.ts +30 -0
  33. package/dist/types/src-public/airtable.d.ts +0 -9
  34. package/dist/types/src-public/centra.d.ts +3 -0
  35. package/dist/types/src-public/env.d.ts +1 -1
  36. package/dist/types/src-public/index.d.ts +1 -0
  37. package/dist/types/src-public/pubsub.d.ts +4 -1
  38. package/dist/types/src-public/runtime.d.ts +17 -4
  39. package/dist/types/src-public/sitoo.d.ts +254 -0
  40. package/dist/types/src-public/types.d.ts +6 -0
  41. package/dist/types/src-public/utils.d.ts +1 -1
  42. package/package.json +4 -3
@@ -16,6 +16,12 @@ 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
+ };
19
25
  readonly product_id: {
20
26
  readonly type: readonly ["string"];
21
27
  };
@@ -23,12 +29,29 @@ declare const schema: {
23
29
  readonly type: "string";
24
30
  readonly format: "date-time";
25
31
  };
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
+ };
26
46
  readonly is_colourway_approved: {
27
47
  readonly type: "boolean";
28
48
  };
29
49
  readonly product_name: {
30
50
  readonly type: readonly ["string", "null"];
31
51
  };
52
+ readonly erp_name: {
53
+ readonly type: readonly ["string", "null"];
54
+ };
32
55
  readonly colour_id: {
33
56
  readonly type: "string";
34
57
  };
@@ -76,6 +99,9 @@ declare const schema: {
76
99
  };
77
100
  };
78
101
  };
102
+ readonly store_grade: {
103
+ readonly type: readonly ["string", "null"];
104
+ };
79
105
  readonly drops: {
80
106
  readonly type: "array";
81
107
  readonly items: {
@@ -90,6 +116,22 @@ declare const schema: {
90
116
  };
91
117
  };
92
118
  };
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
+ };
93
135
  readonly stock_type: {
94
136
  readonly type: readonly ["string", "null"];
95
137
  };
@@ -99,6 +141,9 @@ declare const schema: {
99
141
  readonly packing_method: {
100
142
  readonly type: readonly ["string", "null"];
101
143
  };
144
+ readonly packaging_code: {
145
+ readonly type: readonly ["string", "null"];
146
+ };
102
147
  readonly is_bought_in_product: {
103
148
  readonly type: readonly ["boolean", "null"];
104
149
  };
@@ -335,6 +380,16 @@ declare const schema: {
335
380
  };
336
381
  };
337
382
  };
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
+ };
338
393
  readonly retail_price: {
339
394
  readonly oneOf: readonly [{
340
395
  readonly $schema: "http://json-schema.org/draft-07/schema#";
@@ -520,6 +575,92 @@ declare const schema: {
520
575
  readonly duty_rate: {
521
576
  readonly type: readonly ["number", "null"];
522
577
  };
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
+ };
523
664
  };
524
665
  };
525
666
  readonly duty: {
@@ -532,6 +673,9 @@ declare const schema: {
532
673
  readonly commodity_code: {
533
674
  readonly type: readonly ["string", "null"];
534
675
  };
676
+ readonly tariff_no: {
677
+ readonly type: readonly ["string", "null"];
678
+ };
535
679
  };
536
680
  readonly payment_terms: {
537
681
  readonly type: "object";
@@ -569,6 +713,9 @@ declare const schema: {
569
713
  readonly supplier_id: {
570
714
  readonly type: readonly ["string", "null"];
571
715
  };
716
+ readonly erp_supplier_id: {
717
+ readonly type: readonly ["string", "null"];
718
+ };
572
719
  readonly supplier_name: {
573
720
  readonly type: readonly ["string", "null"];
574
721
  };
@@ -578,7 +725,7 @@ declare const schema: {
578
725
  };
579
726
  };
580
727
  };
581
- readonly required: readonly ["development_colourway_id", "development_style_id", "product_id", "colour_id", "style_id", "created_at", "season_id"];
728
+ readonly required: readonly ["product_id", "colour_id", "style_id"];
582
729
  }, {
583
730
  readonly type: "object";
584
731
  readonly additionalProperties: false;
@@ -12,6 +12,12 @@ 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
+ };
15
21
  readonly product_id: {
16
22
  readonly type: readonly ["string"];
17
23
  };
@@ -19,12 +25,29 @@ declare const schema: {
19
25
  readonly type: "string";
20
26
  readonly format: "date-time";
21
27
  };
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
+ };
22
42
  readonly is_colourway_approved: {
23
43
  readonly type: "boolean";
24
44
  };
25
45
  readonly product_name: {
26
46
  readonly type: readonly ["string", "null"];
27
47
  };
48
+ readonly erp_name: {
49
+ readonly type: readonly ["string", "null"];
50
+ };
28
51
  readonly colour_id: {
29
52
  readonly type: "string";
30
53
  };
@@ -72,6 +95,9 @@ declare const schema: {
72
95
  };
73
96
  };
74
97
  };
98
+ readonly store_grade: {
99
+ readonly type: readonly ["string", "null"];
100
+ };
75
101
  readonly drops: {
76
102
  readonly type: "array";
77
103
  readonly items: {
@@ -86,6 +112,22 @@ declare const schema: {
86
112
  };
87
113
  };
88
114
  };
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
+ };
89
131
  readonly stock_type: {
90
132
  readonly type: readonly ["string", "null"];
91
133
  };
@@ -95,6 +137,9 @@ declare const schema: {
95
137
  readonly packing_method: {
96
138
  readonly type: readonly ["string", "null"];
97
139
  };
140
+ readonly packaging_code: {
141
+ readonly type: readonly ["string", "null"];
142
+ };
98
143
  readonly is_bought_in_product: {
99
144
  readonly type: readonly ["boolean", "null"];
100
145
  };
@@ -331,6 +376,16 @@ declare const schema: {
331
376
  };
332
377
  };
333
378
  };
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
+ };
334
389
  readonly retail_price: {
335
390
  readonly oneOf: readonly [{
336
391
  readonly $schema: "http://json-schema.org/draft-07/schema#";
@@ -516,6 +571,92 @@ declare const schema: {
516
571
  readonly duty_rate: {
517
572
  readonly type: readonly ["number", "null"];
518
573
  };
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
+ };
519
660
  };
520
661
  };
521
662
  readonly duty: {
@@ -528,6 +669,9 @@ declare const schema: {
528
669
  readonly commodity_code: {
529
670
  readonly type: readonly ["string", "null"];
530
671
  };
672
+ readonly tariff_no: {
673
+ readonly type: readonly ["string", "null"];
674
+ };
531
675
  };
532
676
  readonly payment_terms: {
533
677
  readonly type: "object";
@@ -565,6 +709,9 @@ declare const schema: {
565
709
  readonly supplier_id: {
566
710
  readonly type: readonly ["string", "null"];
567
711
  };
712
+ readonly erp_supplier_id: {
713
+ readonly type: readonly ["string", "null"];
714
+ };
568
715
  readonly supplier_name: {
569
716
  readonly type: readonly ["string", "null"];
570
717
  };
@@ -574,7 +721,7 @@ declare const schema: {
574
721
  };
575
722
  };
576
723
  };
577
- readonly required: readonly ["development_colourway_id", "development_style_id", "product_id", "colour_id", "style_id", "created_at", "season_id"];
724
+ readonly required: readonly ["product_id", "colour_id", "style_id"];
578
725
  readonly $id: "https://shushed.example.com/product-draft.schema.json";
579
726
  };
580
727
  export default schema;
@@ -0,0 +1,114 @@
1
+ declare const schema: {
2
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
3
+ readonly title: "Stock Movement Schema";
4
+ readonly type: "object";
5
+ readonly additionalProperties: false;
6
+ readonly properties: {
7
+ readonly style_id: {
8
+ readonly type: "string";
9
+ readonly minLength: 1;
10
+ };
11
+ readonly colour_id: {
12
+ readonly type: "string";
13
+ readonly minLength: 1;
14
+ };
15
+ readonly product_id: {
16
+ readonly type: "string";
17
+ readonly minLength: 1;
18
+ };
19
+ readonly size_code: {
20
+ readonly type: "string";
21
+ readonly minLength: 1;
22
+ };
23
+ readonly sku: {
24
+ readonly type: "string";
25
+ readonly minLength: 1;
26
+ };
27
+ readonly season_id: {
28
+ readonly type: "string";
29
+ };
30
+ readonly drop: {
31
+ readonly type: "string";
32
+ };
33
+ readonly document_line_no: {
34
+ readonly type: "string";
35
+ };
36
+ readonly document_no: {
37
+ readonly type: "string";
38
+ };
39
+ readonly created_at: {
40
+ readonly type: "string";
41
+ readonly format: "date-time";
42
+ };
43
+ readonly location_code: {
44
+ readonly type: "string";
45
+ };
46
+ readonly quantity: {
47
+ readonly type: "number";
48
+ };
49
+ readonly quantity_received: {
50
+ readonly type: "number";
51
+ };
52
+ readonly quantity_to_receive: {
53
+ readonly type: "number";
54
+ };
55
+ readonly last_modified_at: {
56
+ readonly type: "string";
57
+ readonly format: "date-time";
58
+ };
59
+ readonly expected_date: {
60
+ readonly type: "string";
61
+ readonly format: "date-time";
62
+ };
63
+ readonly qa_completed_date: {
64
+ readonly type: "string";
65
+ readonly format: "date-time";
66
+ };
67
+ readonly unit_price: {
68
+ readonly oneOf: readonly [{
69
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
70
+ readonly title: "Money";
71
+ readonly type: "object";
72
+ readonly additionalProperties: false;
73
+ readonly properties: {
74
+ readonly value: {
75
+ readonly type: "integer";
76
+ readonly minimum: 0;
77
+ };
78
+ readonly decimal_places: {
79
+ readonly type: "integer";
80
+ readonly minimum: 0;
81
+ readonly maximum: 4;
82
+ };
83
+ readonly currency: {
84
+ readonly title: "Currency";
85
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
86
+ readonly type: "string";
87
+ 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"];
88
+ };
89
+ readonly lcy_value: {
90
+ readonly type: "integer";
91
+ readonly minimum: 0;
92
+ };
93
+ readonly lcy_currency: {
94
+ 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
+ };
99
+ readonly lcy_decimal_places: {
100
+ readonly type: "integer";
101
+ readonly minimum: 0;
102
+ readonly maximum: 4;
103
+ };
104
+ };
105
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
106
+ }, {
107
+ readonly type: "null";
108
+ }];
109
+ };
110
+ };
111
+ readonly required: readonly ["document_no", "document_line_no", "style_id", "colour_id", "size_code", "sku", "product_id", "season_id", "drop"];
112
+ readonly $id: "https://shushed.example.com/stock-move.schema.json";
113
+ };
114
+ export default schema;