@shushed/helpers 0.0.246 → 0.0.247-cat-tree-schema-20260130105151
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/product-draft.schema.json +0 -14
- package/dist/cjs/contracts/product.schema.json +376 -119
- package/dist/cjs/dist-dereferenced/category-tree.js +4 -0
- package/dist/cjs/dist-dereferenced/gift-voucher.js +1 -1
- package/dist/cjs/dist-dereferenced/index.js +3 -1
- package/dist/cjs/dist-dereferenced/messages/order/delivered.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/new.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/processed.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/returned.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/order/shipped.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/product-draft.js +1 -1
- package/dist/cjs/dist-dereferenced/messages/product.js +1 -1
- package/dist/cjs/dist-dereferenced/money.js +1 -1
- package/dist/cjs/dist-dereferenced/order/customer.js +1 -1
- package/dist/cjs/dist-dereferenced/order/item.js +1 -1
- package/dist/cjs/dist-dereferenced/order/orderMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/payment.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +1 -1
- package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +1 -1
- package/dist/cjs/dist-dereferenced/product-draft.js +1 -1
- package/dist/cjs/dist-dereferenced/product.js +1 -1
- package/dist/cjs/dist-dereferenced/purchase-orderline.js +1 -1
- package/dist/cjs/dist-dereferenced/stock-movement.js +1 -1
- package/dist/cjs/dist-dereferenced/stock.js +1 -1
- package/dist/cjs/dist-dereferenced/total.js +1 -1
- package/dist/cjs/dist-types/category-tree.js +2 -0
- package/dist/types/dist-dereferenced/category-tree.d.ts +59 -0
- package/dist/types/dist-dereferenced/gift-voucher.d.ts +1 -3
- package/dist/types/dist-dereferenced/index.d.ts +1 -0
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +244 -2894
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +244 -2894
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +244 -2894
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +244 -2894
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +244 -2894
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +244 -2894
- package/dist/types/dist-dereferenced/messages/product-draft.d.ts +6 -194
- package/dist/types/dist-dereferenced/messages/product.d.ts +207 -178
- package/dist/types/dist-dereferenced/money.d.ts +1 -3
- package/dist/types/dist-dereferenced/order/customer.d.ts +1 -98
- package/dist/types/dist-dereferenced/order/index.d.ts +244 -2894
- package/dist/types/dist-dereferenced/order/item.d.ts +7 -221
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +244 -2894
- package/dist/types/dist-dereferenced/order/payment.d.ts +1 -3
- package/dist/types/dist-dereferenced/order/shipment/index.d.ts +5 -125
- package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +5 -125
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +6 -139
- package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +5 -125
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +6 -155
- package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +5 -125
- package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +5 -125
- package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +6 -139
- package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +6 -139
- package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +5 -125
- package/dist/types/dist-dereferenced/product-draft.d.ts +6 -194
- package/dist/types/dist-dereferenced/product.d.ts +207 -178
- package/dist/types/dist-dereferenced/purchase-orderline.d.ts +1 -3
- package/dist/types/dist-dereferenced/stock-movement.d.ts +1 -3
- package/dist/types/dist-dereferenced/stock.d.ts +1 -3
- package/dist/types/dist-dereferenced/total.d.ts +4 -111
- package/dist/types/dist-types/category-tree.d.ts +14 -0
- package/dist/types/dist-types/index.d.ts +1 -0
- package/dist/types/dist-types/messages/product-draft.d.ts +0 -2
- package/dist/types/dist-types/messages/product.d.ts +66 -29
- package/dist/types/dist-types/product-draft.d.ts +0 -2
- package/dist/types/dist-types/product.d.ts +66 -29
- package/package.json +1 -1
|
@@ -29,10 +29,8 @@ declare const schema: {
|
|
|
29
29
|
readonly minimum: 0;
|
|
30
30
|
};
|
|
31
31
|
readonly lcy_currency: {
|
|
32
|
+
readonly $ref: "#/properties/amount_net/properties/currency";
|
|
32
33
|
readonly title: "LCY Currency";
|
|
33
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
36
34
|
};
|
|
37
35
|
readonly lcy_decimal_places: {
|
|
38
36
|
readonly type: "integer";
|
|
@@ -43,121 +41,16 @@ declare const schema: {
|
|
|
43
41
|
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
44
42
|
};
|
|
45
43
|
readonly amount_gross: {
|
|
44
|
+
readonly $ref: "#/properties/amount_net";
|
|
46
45
|
readonly title: "Amount gross";
|
|
47
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
48
|
-
readonly type: "object";
|
|
49
|
-
readonly additionalProperties: false;
|
|
50
|
-
readonly properties: {
|
|
51
|
-
readonly value: {
|
|
52
|
-
readonly type: "integer";
|
|
53
|
-
readonly minimum: 0;
|
|
54
|
-
};
|
|
55
|
-
readonly decimal_places: {
|
|
56
|
-
readonly type: "integer";
|
|
57
|
-
readonly minimum: 0;
|
|
58
|
-
readonly maximum: 4;
|
|
59
|
-
};
|
|
60
|
-
readonly currency: {
|
|
61
|
-
readonly title: "Currency";
|
|
62
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
63
|
-
readonly type: "string";
|
|
64
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
65
|
-
};
|
|
66
|
-
readonly lcy_value: {
|
|
67
|
-
readonly type: "integer";
|
|
68
|
-
readonly minimum: 0;
|
|
69
|
-
};
|
|
70
|
-
readonly lcy_currency: {
|
|
71
|
-
readonly title: "LCY Currency";
|
|
72
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
73
|
-
readonly type: "string";
|
|
74
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
75
|
-
};
|
|
76
|
-
readonly lcy_decimal_places: {
|
|
77
|
-
readonly type: "integer";
|
|
78
|
-
readonly minimum: 0;
|
|
79
|
-
readonly maximum: 4;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
83
46
|
};
|
|
84
47
|
readonly discount_amount_net: {
|
|
48
|
+
readonly $ref: "#/properties/amount_net";
|
|
85
49
|
readonly title: "Discount Amount Net";
|
|
86
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
87
|
-
readonly type: "object";
|
|
88
|
-
readonly additionalProperties: false;
|
|
89
|
-
readonly properties: {
|
|
90
|
-
readonly value: {
|
|
91
|
-
readonly type: "integer";
|
|
92
|
-
readonly minimum: 0;
|
|
93
|
-
};
|
|
94
|
-
readonly decimal_places: {
|
|
95
|
-
readonly type: "integer";
|
|
96
|
-
readonly minimum: 0;
|
|
97
|
-
readonly maximum: 4;
|
|
98
|
-
};
|
|
99
|
-
readonly currency: {
|
|
100
|
-
readonly title: "Currency";
|
|
101
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
104
|
-
};
|
|
105
|
-
readonly lcy_value: {
|
|
106
|
-
readonly type: "integer";
|
|
107
|
-
readonly minimum: 0;
|
|
108
|
-
};
|
|
109
|
-
readonly lcy_currency: {
|
|
110
|
-
readonly title: "LCY Currency";
|
|
111
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
112
|
-
readonly type: "string";
|
|
113
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
114
|
-
};
|
|
115
|
-
readonly lcy_decimal_places: {
|
|
116
|
-
readonly type: "integer";
|
|
117
|
-
readonly minimum: 0;
|
|
118
|
-
readonly maximum: 4;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
122
50
|
};
|
|
123
51
|
readonly discount_amount_gross: {
|
|
52
|
+
readonly $ref: "#/properties/amount_net";
|
|
124
53
|
readonly title: "Discount Amount Gross";
|
|
125
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
126
|
-
readonly type: "object";
|
|
127
|
-
readonly additionalProperties: false;
|
|
128
|
-
readonly properties: {
|
|
129
|
-
readonly value: {
|
|
130
|
-
readonly type: "integer";
|
|
131
|
-
readonly minimum: 0;
|
|
132
|
-
};
|
|
133
|
-
readonly decimal_places: {
|
|
134
|
-
readonly type: "integer";
|
|
135
|
-
readonly minimum: 0;
|
|
136
|
-
readonly maximum: 4;
|
|
137
|
-
};
|
|
138
|
-
readonly currency: {
|
|
139
|
-
readonly title: "Currency";
|
|
140
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
141
|
-
readonly type: "string";
|
|
142
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
143
|
-
};
|
|
144
|
-
readonly lcy_value: {
|
|
145
|
-
readonly type: "integer";
|
|
146
|
-
readonly minimum: 0;
|
|
147
|
-
};
|
|
148
|
-
readonly lcy_currency: {
|
|
149
|
-
readonly title: "LCY Currency";
|
|
150
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
151
|
-
readonly type: "string";
|
|
152
|
-
readonly enum: readonly ["AFN", "ALL", "DZD", "USD", "EUR", "AOA", "XCD", "ARS", "AMD", "AWG", "AUD", "AZN", "BSD", "BHD", "BDT", "BBD", "BYN", "BZD", "XOF", "BMD", "BTN", "INR", "BOB", "BOV", "BAM", "BWP", "NOK", "BRL", "BND", "BGN", "BIF", "CVE", "KHR", "XAF", "CAD", "KYD", "CLF", "CLP", "CNY", "COP", "COU", "KMF", "CDF", "NZD", "CRC", "CUC", "CUP", "ANG", "CZK", "DKK", "DJF", "DOP", "EGP", "SVC", "ERN", "ETB", "FKP", "FJD", "XPF", "GMD", "GEL", "GHS", "GIP", "GTQ", "GBP", "GNF", "GYD", "HTG", "HNL", "HKD", "HUF", "ISK", "IDR", "XDR", "IRR", "IQD", "ILS", "JMD", "JPY", "JOD", "KZT", "KES", "KPW", "KRW", "KWD", "KGS", "LAK", "LBP", "LSL", "ZAR", "LRD", "LYD", "CHF", "MOP", "MGA", "MWK", "MYR", "MVR", "MRU", "MUR", "XUA", "MXN", "MXV", "MDL", "MNT", "MAD", "MZN", "MMK", "NAD", "NPR", "NIO", "NGN", "OMR", "PKR", "PAB", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "MKD", "RON", "RUB", "RWF", "SHP", "WST", "STN", "SAR", "RSD", "SCR", "SLE", "SGD", "XSU", "SBD", "SOS", "SSP", "LKR", "SDG", "SRD", "SZL", "SEK", "CHE", "CHW", "SYP", "TWD", "TJS", "TZS", "THB", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "USN", "UYI", "UYU", "UZS", "VUV", "VEF", "VED", "VND", "YER", "ZMW", "ZWL"];
|
|
153
|
-
};
|
|
154
|
-
readonly lcy_decimal_places: {
|
|
155
|
-
readonly type: "integer";
|
|
156
|
-
readonly minimum: 0;
|
|
157
|
-
readonly maximum: 4;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
161
54
|
};
|
|
162
55
|
readonly discount_amount_percent: {
|
|
163
56
|
readonly type: "number";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface __MainSchema {
|
|
2
|
+
children: CategoryNode[];
|
|
3
|
+
}
|
|
4
|
+
export interface CategoryNode {
|
|
5
|
+
id: string;
|
|
6
|
+
branchId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
path: string[];
|
|
9
|
+
parentCategory?: (string | null);
|
|
10
|
+
displayPath?: string;
|
|
11
|
+
pathId: string[];
|
|
12
|
+
children: CategoryNode[];
|
|
13
|
+
}
|
|
14
|
+
export default __MainSchema;
|
|
@@ -85,7 +85,6 @@ export interface ProductDraft {
|
|
|
85
85
|
strategy_type?: (string | null);
|
|
86
86
|
pattern_name?: (string | null);
|
|
87
87
|
neckline?: (string | null);
|
|
88
|
-
neckline_statement?: (string | null);
|
|
89
88
|
sleeve_length?: (string | null);
|
|
90
89
|
leg_length?: (string | null);
|
|
91
90
|
heel_height?: (string | null);
|
|
@@ -100,7 +99,6 @@ export interface ProductDraft {
|
|
|
100
99
|
weight_statement?: (string | null);
|
|
101
100
|
weight?: (number | null);
|
|
102
101
|
extra_selling_points?: string[];
|
|
103
|
-
length_statement?: (string | null);
|
|
104
102
|
length_measurement?: (string | null);
|
|
105
103
|
fabric_composition?: (string | null);
|
|
106
104
|
};
|
|
@@ -4,23 +4,38 @@ export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "
|
|
|
4
4
|
export interface Product {
|
|
5
5
|
product_id: string;
|
|
6
6
|
slug?: string;
|
|
7
|
+
style_slug?: string;
|
|
7
8
|
style_id: string;
|
|
8
9
|
colour_id?: string;
|
|
9
10
|
style_name?: string;
|
|
10
|
-
|
|
11
|
+
product_name: string;
|
|
12
|
+
display_name?: (string | null);
|
|
11
13
|
buffer_quantity?: number;
|
|
12
14
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
13
15
|
available_to_sell_from?: (string | null);
|
|
16
|
+
online_from: (string | null);
|
|
17
|
+
online_to?: (string | null);
|
|
18
|
+
first_online_at?: (string | null);
|
|
19
|
+
last_online_at?: (string | null);
|
|
20
|
+
first_purchased_at?: string;
|
|
21
|
+
first_markdown_at?: (string | null);
|
|
14
22
|
created_at?: string;
|
|
15
23
|
last_modified_at?: string;
|
|
16
24
|
colour_family_name?: string;
|
|
25
|
+
colour_code?: string;
|
|
17
26
|
colour_name?: string;
|
|
18
27
|
display_tags?: DisplayTags;
|
|
19
28
|
sizerange_code?: string;
|
|
29
|
+
sizerange_name?: string;
|
|
20
30
|
variants?: {
|
|
21
31
|
code: string;
|
|
22
32
|
name: string;
|
|
23
|
-
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}[];
|
|
35
|
+
images?: {
|
|
36
|
+
type: ("Campaign" | "Ecom" | "Flatlay" | "UGC" | "AI");
|
|
37
|
+
url: string;
|
|
38
|
+
description?: string;
|
|
24
39
|
[k: string]: unknown;
|
|
25
40
|
}[];
|
|
26
41
|
vat_rate_uk?: (number | null);
|
|
@@ -29,40 +44,47 @@ export interface Product {
|
|
|
29
44
|
commodity_code_ref?: string;
|
|
30
45
|
country_of_origin?: Country;
|
|
31
46
|
port_of_origin?: string;
|
|
47
|
+
supplier_id?: string;
|
|
48
|
+
supplier_name?: string;
|
|
49
|
+
factory_id?: string;
|
|
32
50
|
packing_method?: (("Standard" | "Hanging") | null);
|
|
33
51
|
is_bought_in_product?: boolean;
|
|
34
52
|
[k: string]: unknown;
|
|
35
53
|
};
|
|
36
54
|
merch?: {
|
|
37
55
|
strategy_type?: string;
|
|
56
|
+
product_type?: string;
|
|
57
|
+
stock_type?: string;
|
|
38
58
|
category?: string;
|
|
39
59
|
subcategory?: string;
|
|
60
|
+
range?: (("Main Collection" | "Seasonal") | null);
|
|
61
|
+
channels_availability?: ("DIRECT-UK" | "DIRECT-INT" | "DIRECT-US" | "JL-STORES" | "JL-WEB" | "NEXT" | "MS" | "FENWICK" | "MORLEYS")[];
|
|
62
|
+
collections?: string;
|
|
40
63
|
seasons?: string[];
|
|
41
64
|
drops?: string[];
|
|
65
|
+
fashionability?: (string | null);
|
|
42
66
|
[k: string]: unknown;
|
|
43
67
|
};
|
|
44
|
-
category_assignments?: {
|
|
45
|
-
display_path?: string[];
|
|
46
|
-
path?: string[];
|
|
47
|
-
name?: string;
|
|
48
|
-
id?: string;
|
|
49
|
-
[k: string]: unknown;
|
|
50
|
-
}[];
|
|
51
68
|
attributes?: Attributes;
|
|
52
|
-
|
|
53
|
-
markets_overrides?: {
|
|
69
|
+
presentations?: {
|
|
54
70
|
[k: string]: {
|
|
55
71
|
locale: string;
|
|
56
|
-
|
|
72
|
+
presentation_type: string;
|
|
57
73
|
slug?: string;
|
|
74
|
+
style_slug?: string;
|
|
58
75
|
style_name?: string;
|
|
59
|
-
display_name?: string;
|
|
76
|
+
display_name?: (string | null);
|
|
60
77
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
61
78
|
available_to_sell_from?: (string | null);
|
|
79
|
+
online_from?: (string | null);
|
|
80
|
+
online_to?: (string | null);
|
|
81
|
+
last_online_at?: (string | null);
|
|
82
|
+
first_purchased_at?: string;
|
|
83
|
+
first_markdown_at?: (string | null);
|
|
62
84
|
colour_family_name?: string;
|
|
63
85
|
colour_name?: string;
|
|
64
86
|
display_tags?: DisplayTags;
|
|
65
|
-
|
|
87
|
+
sizerange_name?: string;
|
|
66
88
|
variants?: {
|
|
67
89
|
code: string;
|
|
68
90
|
name: string;
|
|
@@ -73,34 +95,49 @@ export interface Product {
|
|
|
73
95
|
};
|
|
74
96
|
}
|
|
75
97
|
export interface Attributes {
|
|
76
|
-
stock_quantity_score?: number;
|
|
77
|
-
stock_availability?: number;
|
|
78
|
-
measurement_chart?: (string | null);
|
|
79
|
-
sizeguide_type?: (string | null);
|
|
80
|
-
brand?: (string | null);
|
|
81
|
-
shoes_type?: (string | null);
|
|
82
98
|
seo_url_name?: string;
|
|
99
|
+
embellishment?: (string | null);
|
|
83
100
|
seo_title?: (string | null);
|
|
84
101
|
seo_description?: (string | null);
|
|
85
102
|
fit_description?: (string | null);
|
|
86
103
|
description?: (string | null);
|
|
87
104
|
fabric_care?: (string | null);
|
|
105
|
+
delivery_returns?: (string | null);
|
|
88
106
|
weight?: (number | null);
|
|
107
|
+
weight_statement?: (string | null);
|
|
89
108
|
main_fibre?: (string | null);
|
|
90
109
|
main_metal?: (string | null);
|
|
110
|
+
extra_selling_points?: string[];
|
|
111
|
+
length_measurement?: (string | null);
|
|
112
|
+
measurement_table_code?: string;
|
|
113
|
+
fit?: (string | null);
|
|
114
|
+
pockets?: (string | null);
|
|
115
|
+
pleats_gathers?: (string | null);
|
|
116
|
+
lining?: (string | null);
|
|
117
|
+
bias_cut?: (string | null);
|
|
91
118
|
designer?: (string | null);
|
|
119
|
+
fabric?: (string | null);
|
|
120
|
+
fabric_composition?: (string | null);
|
|
92
121
|
certificate_code?: (string | null);
|
|
122
|
+
shape?: (string | null);
|
|
123
|
+
development_type?: string;
|
|
124
|
+
occasion?: (string | null);
|
|
125
|
+
design?: (string | null);
|
|
126
|
+
block?: (string | null);
|
|
93
127
|
pattern_name?: (string | null);
|
|
94
128
|
fit_type?: (string | null);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
129
|
+
neckline?: (string | null);
|
|
130
|
+
sleeve_length?: (string | null);
|
|
131
|
+
sleeve_type?: (string | null);
|
|
132
|
+
heel_height?: (string | null);
|
|
133
|
+
heel_shape?: (string | null);
|
|
134
|
+
toe_shape?: (string | null);
|
|
135
|
+
trouser_fit?: (string | null);
|
|
136
|
+
leg_length?: (string | null);
|
|
137
|
+
handle_straps?: (string | null);
|
|
138
|
+
straps_features?: (string | null);
|
|
139
|
+
fastening?: ((string[] | null) | null);
|
|
140
|
+
sole_material?: (string | null);
|
|
104
141
|
care_instructions?: string[];
|
|
105
142
|
[k: string]: unknown;
|
|
106
143
|
}
|
|
@@ -84,7 +84,6 @@ export interface __MainSchema {
|
|
|
84
84
|
strategy_type?: (string | null);
|
|
85
85
|
pattern_name?: (string | null);
|
|
86
86
|
neckline?: (string | null);
|
|
87
|
-
neckline_statement?: (string | null);
|
|
88
87
|
sleeve_length?: (string | null);
|
|
89
88
|
leg_length?: (string | null);
|
|
90
89
|
heel_height?: (string | null);
|
|
@@ -99,7 +98,6 @@ export interface __MainSchema {
|
|
|
99
98
|
weight_statement?: (string | null);
|
|
100
99
|
weight?: (number | null);
|
|
101
100
|
extra_selling_points?: string[];
|
|
102
|
-
length_statement?: (string | null);
|
|
103
101
|
length_measurement?: (string | null);
|
|
104
102
|
fabric_composition?: (string | null);
|
|
105
103
|
};
|
|
@@ -3,23 +3,38 @@ export type Country = ("AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "
|
|
|
3
3
|
export interface __MainSchema {
|
|
4
4
|
product_id: string;
|
|
5
5
|
slug?: string;
|
|
6
|
+
style_slug?: string;
|
|
6
7
|
style_id: string;
|
|
7
8
|
colour_id?: string;
|
|
8
9
|
style_name?: string;
|
|
9
|
-
|
|
10
|
+
product_name: string;
|
|
11
|
+
display_name?: (string | null);
|
|
10
12
|
buffer_quantity?: number;
|
|
11
13
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
12
14
|
available_to_sell_from?: (string | null);
|
|
15
|
+
online_from: (string | null);
|
|
16
|
+
online_to?: (string | null);
|
|
17
|
+
first_online_at?: (string | null);
|
|
18
|
+
last_online_at?: (string | null);
|
|
19
|
+
first_purchased_at?: string;
|
|
20
|
+
first_markdown_at?: (string | null);
|
|
13
21
|
created_at?: string;
|
|
14
22
|
last_modified_at?: string;
|
|
15
23
|
colour_family_name?: string;
|
|
24
|
+
colour_code?: string;
|
|
16
25
|
colour_name?: string;
|
|
17
26
|
display_tags?: DisplayTags;
|
|
18
27
|
sizerange_code?: string;
|
|
28
|
+
sizerange_name?: string;
|
|
19
29
|
variants?: {
|
|
20
30
|
code: string;
|
|
21
31
|
name: string;
|
|
22
|
-
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
}[];
|
|
34
|
+
images?: {
|
|
35
|
+
type: ("Campaign" | "Ecom" | "Flatlay" | "UGC" | "AI");
|
|
36
|
+
url: string;
|
|
37
|
+
description?: string;
|
|
23
38
|
[k: string]: unknown;
|
|
24
39
|
}[];
|
|
25
40
|
vat_rate_uk?: (number | null);
|
|
@@ -28,40 +43,47 @@ export interface __MainSchema {
|
|
|
28
43
|
commodity_code_ref?: string;
|
|
29
44
|
country_of_origin?: Country;
|
|
30
45
|
port_of_origin?: string;
|
|
46
|
+
supplier_id?: string;
|
|
47
|
+
supplier_name?: string;
|
|
48
|
+
factory_id?: string;
|
|
31
49
|
packing_method?: (("Standard" | "Hanging") | null);
|
|
32
50
|
is_bought_in_product?: boolean;
|
|
33
51
|
[k: string]: unknown;
|
|
34
52
|
};
|
|
35
53
|
merch?: {
|
|
36
54
|
strategy_type?: string;
|
|
55
|
+
product_type?: string;
|
|
56
|
+
stock_type?: string;
|
|
37
57
|
category?: string;
|
|
38
58
|
subcategory?: string;
|
|
59
|
+
range?: (("Main Collection" | "Seasonal") | null);
|
|
60
|
+
channels_availability?: ("DIRECT-UK" | "DIRECT-INT" | "DIRECT-US" | "JL-STORES" | "JL-WEB" | "NEXT" | "MS" | "FENWICK" | "MORLEYS")[];
|
|
61
|
+
collections?: string;
|
|
39
62
|
seasons?: string[];
|
|
40
63
|
drops?: string[];
|
|
64
|
+
fashionability?: (string | null);
|
|
41
65
|
[k: string]: unknown;
|
|
42
66
|
};
|
|
43
|
-
category_assignments?: {
|
|
44
|
-
display_path?: string[];
|
|
45
|
-
path?: string[];
|
|
46
|
-
name?: string;
|
|
47
|
-
id?: string;
|
|
48
|
-
[k: string]: unknown;
|
|
49
|
-
}[];
|
|
50
67
|
attributes?: Attributes;
|
|
51
|
-
|
|
52
|
-
markets_overrides?: {
|
|
68
|
+
presentations?: {
|
|
53
69
|
[k: string]: {
|
|
54
70
|
locale: string;
|
|
55
|
-
|
|
71
|
+
presentation_type: string;
|
|
56
72
|
slug?: string;
|
|
73
|
+
style_slug?: string;
|
|
57
74
|
style_name?: string;
|
|
58
|
-
display_name?: string;
|
|
75
|
+
display_name?: (string | null);
|
|
59
76
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
60
77
|
available_to_sell_from?: (string | null);
|
|
78
|
+
online_from?: (string | null);
|
|
79
|
+
online_to?: (string | null);
|
|
80
|
+
last_online_at?: (string | null);
|
|
81
|
+
first_purchased_at?: string;
|
|
82
|
+
first_markdown_at?: (string | null);
|
|
61
83
|
colour_family_name?: string;
|
|
62
84
|
colour_name?: string;
|
|
63
85
|
display_tags?: DisplayTags;
|
|
64
|
-
|
|
86
|
+
sizerange_name?: string;
|
|
65
87
|
variants?: {
|
|
66
88
|
code: string;
|
|
67
89
|
name: string;
|
|
@@ -72,34 +94,49 @@ export interface __MainSchema {
|
|
|
72
94
|
};
|
|
73
95
|
}
|
|
74
96
|
export interface Attributes {
|
|
75
|
-
stock_quantity_score?: number;
|
|
76
|
-
stock_availability?: number;
|
|
77
|
-
measurement_chart?: (string | null);
|
|
78
|
-
sizeguide_type?: (string | null);
|
|
79
|
-
brand?: (string | null);
|
|
80
|
-
shoes_type?: (string | null);
|
|
81
97
|
seo_url_name?: string;
|
|
98
|
+
embellishment?: (string | null);
|
|
82
99
|
seo_title?: (string | null);
|
|
83
100
|
seo_description?: (string | null);
|
|
84
101
|
fit_description?: (string | null);
|
|
85
102
|
description?: (string | null);
|
|
86
103
|
fabric_care?: (string | null);
|
|
104
|
+
delivery_returns?: (string | null);
|
|
87
105
|
weight?: (number | null);
|
|
106
|
+
weight_statement?: (string | null);
|
|
88
107
|
main_fibre?: (string | null);
|
|
89
108
|
main_metal?: (string | null);
|
|
109
|
+
extra_selling_points?: string[];
|
|
110
|
+
length_measurement?: (string | null);
|
|
111
|
+
measurement_table_code?: string;
|
|
112
|
+
fit?: (string | null);
|
|
113
|
+
pockets?: (string | null);
|
|
114
|
+
pleats_gathers?: (string | null);
|
|
115
|
+
lining?: (string | null);
|
|
116
|
+
bias_cut?: (string | null);
|
|
90
117
|
designer?: (string | null);
|
|
118
|
+
fabric?: (string | null);
|
|
119
|
+
fabric_composition?: (string | null);
|
|
91
120
|
certificate_code?: (string | null);
|
|
121
|
+
shape?: (string | null);
|
|
122
|
+
development_type?: string;
|
|
123
|
+
occasion?: (string | null);
|
|
124
|
+
design?: (string | null);
|
|
125
|
+
block?: (string | null);
|
|
92
126
|
pattern_name?: (string | null);
|
|
93
127
|
fit_type?: (string | null);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
128
|
+
neckline?: (string | null);
|
|
129
|
+
sleeve_length?: (string | null);
|
|
130
|
+
sleeve_type?: (string | null);
|
|
131
|
+
heel_height?: (string | null);
|
|
132
|
+
heel_shape?: (string | null);
|
|
133
|
+
toe_shape?: (string | null);
|
|
134
|
+
trouser_fit?: (string | null);
|
|
135
|
+
leg_length?: (string | null);
|
|
136
|
+
handle_straps?: (string | null);
|
|
137
|
+
straps_features?: (string | null);
|
|
138
|
+
fastening?: ((string[] | null) | null);
|
|
139
|
+
sole_material?: (string | null);
|
|
103
140
|
care_instructions?: string[];
|
|
104
141
|
[k: string]: unknown;
|
|
105
142
|
}
|