@shushed/helpers 0.0.230-main-20260109161637 → 0.0.230
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.
- package/dist/cjs/contracts/index.js +5 -1
- package/dist/cjs/contracts/product-draft.schema.json +159 -5
- package/dist/cjs/contracts/purchase-orderline.schema.json +135 -0
- package/dist/cjs/contracts/stock-movement.schema.json +144 -0
- package/dist/cjs/dist-dereferenced/index.js +5 -1
- package/dist/cjs/dist-dereferenced/messages/product-draft.js +1 -1
- package/dist/cjs/dist-dereferenced/product-draft.js +1 -1
- package/dist/cjs/dist-dereferenced/purchase-orderline.js +4 -0
- package/dist/cjs/dist-dereferenced/stock-movement.js +4 -0
- package/dist/cjs/dist-types/purchase-orderline.js +2 -0
- package/dist/cjs/dist-types/stock-movement.js +2 -0
- package/dist/cjs/src-public/airtable.js +96 -59
- package/dist/cjs/src-public/bcOrder.js +2 -6
- package/dist/cjs/src-public/centra.js +56 -5
- package/dist/cjs/src-public/env.js +1 -1
- package/dist/cjs/src-public/index.js +3 -1
- package/dist/cjs/src-public/pubsub.js +35 -16
- package/dist/cjs/src-public/runtime.js +48 -9
- package/dist/cjs/src-public/sitoo.js +349 -0
- package/dist/cjs/src-public/utils.js +3 -0
- package/dist/package.json +3 -2
- package/dist/types/contracts/index.d.ts +2 -0
- package/dist/types/dist-dereferenced/index.d.ts +2 -0
- package/dist/types/dist-dereferenced/messages/product-draft.d.ts +148 -1
- package/dist/types/dist-dereferenced/product-draft.d.ts +148 -1
- package/dist/types/dist-dereferenced/purchase-orderline.d.ts +114 -0
- package/dist/types/dist-dereferenced/stock-movement.d.ts +110 -0
- package/dist/types/dist-types/index.d.ts +2 -0
- package/dist/types/dist-types/messages/product-draft.d.ts +23 -4
- package/dist/types/dist-types/product-draft.d.ts +23 -4
- package/dist/types/dist-types/purchase-orderline.d.ts +31 -0
- package/dist/types/dist-types/stock-movement.d.ts +30 -0
- package/dist/types/src-public/airtable.d.ts +0 -9
- package/dist/types/src-public/centra.d.ts +3 -0
- package/dist/types/src-public/env.d.ts +1 -1
- package/dist/types/src-public/index.d.ts +1 -0
- package/dist/types/src-public/pubsub.d.ts +4 -7
- package/dist/types/src-public/runtime.d.ts +17 -4
- package/dist/types/src-public/sitoo.d.ts +254 -0
- package/dist/types/src-public/types.d.ts +6 -0
- package/dist/types/src-public/utils.d.ts +1 -1
- package/package.json +4 -3
|
@@ -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 ["
|
|
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;
|
|
@@ -0,0 +1,110 @@
|
|
|
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 size_code: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly minLength: 1;
|
|
18
|
+
};
|
|
19
|
+
readonly location_code: {
|
|
20
|
+
readonly type: "string";
|
|
21
|
+
readonly pattern: "^\\d{3}-[A-Z]+$|^[A-Z]{2,}-?[A-Z]*$|^[A-Z]{2,}\\d{3}$";
|
|
22
|
+
};
|
|
23
|
+
readonly source_system: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly enum: readonly ["bc", "centra", "sitoo"];
|
|
26
|
+
};
|
|
27
|
+
readonly quantity: {
|
|
28
|
+
readonly type: "integer";
|
|
29
|
+
readonly minimum: 0;
|
|
30
|
+
};
|
|
31
|
+
readonly entry_no: {
|
|
32
|
+
readonly type: "string";
|
|
33
|
+
};
|
|
34
|
+
readonly external_entry_no: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
};
|
|
37
|
+
readonly document_no: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
readonly external_document_no: {
|
|
41
|
+
readonly type: "string";
|
|
42
|
+
};
|
|
43
|
+
readonly type: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly enum: readonly ["transfer", "negative adjustment", "positive adjustment", "purchase", "sale"];
|
|
46
|
+
};
|
|
47
|
+
readonly unit_cost: {
|
|
48
|
+
readonly oneOf: readonly [{
|
|
49
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
50
|
+
readonly title: "Money";
|
|
51
|
+
readonly type: "object";
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly value: {
|
|
55
|
+
readonly type: "integer";
|
|
56
|
+
readonly minimum: 0;
|
|
57
|
+
};
|
|
58
|
+
readonly decimal_places: {
|
|
59
|
+
readonly type: "integer";
|
|
60
|
+
readonly minimum: 0;
|
|
61
|
+
readonly maximum: 4;
|
|
62
|
+
};
|
|
63
|
+
readonly currency: {
|
|
64
|
+
readonly title: "Currency";
|
|
65
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
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"];
|
|
68
|
+
};
|
|
69
|
+
readonly lcy_value: {
|
|
70
|
+
readonly type: "integer";
|
|
71
|
+
readonly minimum: 0;
|
|
72
|
+
};
|
|
73
|
+
readonly lcy_currency: {
|
|
74
|
+
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
|
+
};
|
|
79
|
+
readonly lcy_decimal_places: {
|
|
80
|
+
readonly type: "integer";
|
|
81
|
+
readonly minimum: 0;
|
|
82
|
+
readonly maximum: 4;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "null";
|
|
88
|
+
}];
|
|
89
|
+
};
|
|
90
|
+
readonly document_date: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly format: "date";
|
|
93
|
+
};
|
|
94
|
+
readonly posting_date: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly format: "date";
|
|
97
|
+
};
|
|
98
|
+
readonly created_at: {
|
|
99
|
+
readonly type: "string";
|
|
100
|
+
readonly format: "date-time";
|
|
101
|
+
};
|
|
102
|
+
readonly last_modified_at: {
|
|
103
|
+
readonly type: "string";
|
|
104
|
+
readonly format: "date-time";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly required: readonly ["style_id", "source_system", "location_code", "colour_id", "size_code", "last_modified_at", "quantity", "created_at", "document_date", "type"];
|
|
108
|
+
readonly $id: "https://shushed.example.com/stock-move.schema.json";
|
|
109
|
+
};
|
|
110
|
+
export default schema;
|
|
@@ -10,6 +10,8 @@ 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';
|
|
13
15
|
export { default as Stock } from './stock';
|
|
14
16
|
export { default as Total } from './total';
|
|
15
17
|
export * as Messages from './messages';
|
|
@@ -3,26 +3,39 @@ 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
|
|
7
|
-
development_style_id
|
|
6
|
+
development_colourway_id?: string;
|
|
7
|
+
development_style_id?: string;
|
|
8
|
+
centric_id?: string;
|
|
9
|
+
style_centric_id?: string;
|
|
8
10
|
product_id: string;
|
|
9
|
-
created_at
|
|
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")[];
|
|
10
15
|
is_colourway_approved?: boolean;
|
|
11
16
|
product_name?: (string | null);
|
|
17
|
+
erp_name?: (string | null);
|
|
12
18
|
colour_id: string;
|
|
13
19
|
colour_label?: (string | null);
|
|
14
20
|
style_id: string;
|
|
15
|
-
season_id
|
|
21
|
+
season_id?: string;
|
|
16
22
|
size_curves?: {
|
|
17
23
|
channel?: string;
|
|
18
24
|
name?: string;
|
|
19
25
|
[k: string]: unknown;
|
|
20
26
|
}[];
|
|
21
27
|
plm_buying_quantities?: BuyingQuantitiesChannel[];
|
|
28
|
+
store_grade?: (string | null);
|
|
22
29
|
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);
|
|
23
35
|
stock_type?: (string | null);
|
|
24
36
|
block?: (string | null);
|
|
25
37
|
packing_method?: (string | null);
|
|
38
|
+
packaging_code?: (string | null);
|
|
26
39
|
is_bought_in_product?: (boolean | null);
|
|
27
40
|
reprocess_method?: (string | null);
|
|
28
41
|
is_carry_over?: (boolean | null);
|
|
@@ -90,6 +103,9 @@ export interface ProductDraft {
|
|
|
90
103
|
length_measurement?: (string | null);
|
|
91
104
|
fabric_composition?: (string | null);
|
|
92
105
|
};
|
|
106
|
+
preorder_options?: ("Never" | "Default" | "Weeks" | null);
|
|
107
|
+
preorder_num_period?: (string | null);
|
|
108
|
+
vat_posting_group_code?: (string | null);
|
|
93
109
|
retail_price?: (Money | null);
|
|
94
110
|
cost?: {
|
|
95
111
|
current_cost?: (Money | null);
|
|
@@ -98,6 +114,8 @@ export interface ProductDraft {
|
|
|
98
114
|
commission_rate?: (number | null);
|
|
99
115
|
freight_rate?: (number | null);
|
|
100
116
|
duty_rate?: (number | null);
|
|
117
|
+
unit_cost?: (Money | null);
|
|
118
|
+
last_direct_cost?: (Money | null);
|
|
101
119
|
};
|
|
102
120
|
duty?: {
|
|
103
121
|
[k: string]: unknown;
|
|
@@ -111,6 +129,7 @@ export interface ProductDraft {
|
|
|
111
129
|
port_of_origin?: (string | null);
|
|
112
130
|
moq?: (number | null);
|
|
113
131
|
supplier_id?: (string | null);
|
|
132
|
+
erp_supplier_id?: (string | null);
|
|
114
133
|
supplier_name?: (string | null);
|
|
115
134
|
factory_id?: (string | null);
|
|
116
135
|
};
|