@shushed/helpers 0.0.247-cat-tree-schema-20260130105151 → 0.0.247-main-20260130130323
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 +14 -0
- package/dist/cjs/contracts/product.schema.json +119 -376
- package/dist/cjs/dist-dereferenced/gift-voucher.js +1 -1
- package/dist/cjs/dist-dereferenced/index.js +1 -3
- 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/src-public/airtable.js +17 -7
- package/dist/types/dist-dereferenced/gift-voucher.d.ts +3 -1
- package/dist/types/dist-dereferenced/index.d.ts +0 -1
- package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +2903 -253
- package/dist/types/dist-dereferenced/messages/order/new.d.ts +2903 -253
- package/dist/types/dist-dereferenced/messages/order/processed.d.ts +2903 -253
- package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +2903 -253
- package/dist/types/dist-dereferenced/messages/order/returned.d.ts +2903 -253
- package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +2903 -253
- package/dist/types/dist-dereferenced/messages/product-draft.d.ts +194 -6
- package/dist/types/dist-dereferenced/messages/product.d.ts +178 -207
- package/dist/types/dist-dereferenced/money.d.ts +3 -1
- package/dist/types/dist-dereferenced/order/customer.d.ts +98 -1
- package/dist/types/dist-dereferenced/order/index.d.ts +2903 -253
- package/dist/types/dist-dereferenced/order/item.d.ts +221 -7
- package/dist/types/dist-dereferenced/order/orderMain.d.ts +2903 -253
- package/dist/types/dist-dereferenced/order/payment.d.ts +3 -1
- package/dist/types/dist-dereferenced/order/shipment/index.d.ts +125 -5
- package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +125 -5
- package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +139 -6
- package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +125 -5
- package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +155 -6
- package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +125 -5
- package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +125 -5
- package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +139 -6
- package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +139 -6
- package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +125 -5
- package/dist/types/dist-dereferenced/product-draft.d.ts +194 -6
- package/dist/types/dist-dereferenced/product.d.ts +178 -207
- package/dist/types/dist-dereferenced/purchase-orderline.d.ts +3 -1
- package/dist/types/dist-dereferenced/stock-movement.d.ts +3 -1
- package/dist/types/dist-dereferenced/stock.d.ts +3 -1
- package/dist/types/dist-dereferenced/total.d.ts +111 -4
- package/dist/types/dist-types/index.d.ts +0 -1
- package/dist/types/dist-types/messages/product-draft.d.ts +2 -0
- package/dist/types/dist-types/messages/product.d.ts +30 -67
- package/dist/types/dist-types/product-draft.d.ts +2 -0
- package/dist/types/dist-types/product.d.ts +30 -67
- package/dist/types/src-public/airtable.d.ts +3 -3
- package/package.json +1 -1
- package/dist/cjs/dist-dereferenced/category-tree.js +0 -4
- package/dist/cjs/dist-types/category-tree.js +0 -2
- package/dist/types/dist-dereferenced/category-tree.d.ts +0 -59
- package/dist/types/dist-types/category-tree.d.ts +0 -14
|
@@ -29,8 +29,10 @@ declare const schema: {
|
|
|
29
29
|
readonly minimum: 0;
|
|
30
30
|
};
|
|
31
31
|
readonly lcy_currency: {
|
|
32
|
-
readonly $ref: "#/properties/amount_net/properties/currency";
|
|
33
32
|
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"];
|
|
34
36
|
};
|
|
35
37
|
readonly lcy_decimal_places: {
|
|
36
38
|
readonly type: "integer";
|
|
@@ -41,16 +43,121 @@ declare const schema: {
|
|
|
41
43
|
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
42
44
|
};
|
|
43
45
|
readonly amount_gross: {
|
|
44
|
-
readonly $ref: "#/properties/amount_net";
|
|
45
46
|
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"];
|
|
46
83
|
};
|
|
47
84
|
readonly discount_amount_net: {
|
|
48
|
-
readonly $ref: "#/properties/amount_net";
|
|
49
85
|
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"];
|
|
50
122
|
};
|
|
51
123
|
readonly discount_amount_gross: {
|
|
52
|
-
readonly $ref: "#/properties/amount_net";
|
|
53
124
|
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"];
|
|
54
161
|
};
|
|
55
162
|
readonly discount_amount_percent: {
|
|
56
163
|
readonly type: "number";
|
|
@@ -85,6 +85,7 @@ 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);
|
|
88
89
|
sleeve_length?: (string | null);
|
|
89
90
|
leg_length?: (string | null);
|
|
90
91
|
heel_height?: (string | null);
|
|
@@ -99,6 +100,7 @@ export interface ProductDraft {
|
|
|
99
100
|
weight_statement?: (string | null);
|
|
100
101
|
weight?: (number | null);
|
|
101
102
|
extra_selling_points?: string[];
|
|
103
|
+
length_statement?: (string | null);
|
|
102
104
|
length_measurement?: (string | null);
|
|
103
105
|
fabric_composition?: (string | null);
|
|
104
106
|
};
|
|
@@ -4,38 +4,23 @@ 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;
|
|
8
7
|
style_id: string;
|
|
9
|
-
colour_id
|
|
8
|
+
colour_id: string;
|
|
10
9
|
style_name?: string;
|
|
11
|
-
|
|
12
|
-
display_name?: (string | null);
|
|
10
|
+
display_name: string;
|
|
13
11
|
buffer_quantity?: number;
|
|
14
12
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
15
13
|
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);
|
|
22
14
|
created_at?: string;
|
|
23
15
|
last_modified_at?: string;
|
|
24
16
|
colour_family_name?: string;
|
|
25
|
-
colour_code?: string;
|
|
26
17
|
colour_name?: string;
|
|
27
18
|
display_tags?: DisplayTags;
|
|
28
19
|
sizerange_code?: string;
|
|
29
|
-
sizerange_name?: string;
|
|
30
20
|
variants?: {
|
|
31
21
|
code: string;
|
|
32
22
|
name: string;
|
|
33
|
-
|
|
34
|
-
}[];
|
|
35
|
-
images?: {
|
|
36
|
-
type: ("Campaign" | "Ecom" | "Flatlay" | "UGC" | "AI");
|
|
37
|
-
url: string;
|
|
38
|
-
description?: string;
|
|
23
|
+
ean?: (string | null);
|
|
39
24
|
[k: string]: unknown;
|
|
40
25
|
}[];
|
|
41
26
|
vat_rate_uk?: (number | null);
|
|
@@ -44,47 +29,40 @@ export interface Product {
|
|
|
44
29
|
commodity_code_ref?: string;
|
|
45
30
|
country_of_origin?: Country;
|
|
46
31
|
port_of_origin?: string;
|
|
47
|
-
supplier_id?: string;
|
|
48
|
-
supplier_name?: string;
|
|
49
|
-
factory_id?: string;
|
|
50
32
|
packing_method?: (("Standard" | "Hanging") | null);
|
|
51
33
|
is_bought_in_product?: boolean;
|
|
52
34
|
[k: string]: unknown;
|
|
53
35
|
};
|
|
54
36
|
merch?: {
|
|
55
37
|
strategy_type?: string;
|
|
56
|
-
product_type?: string;
|
|
57
|
-
stock_type?: string;
|
|
58
38
|
category?: string;
|
|
59
39
|
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;
|
|
63
40
|
seasons?: string[];
|
|
64
41
|
drops?: string[];
|
|
65
|
-
fashionability?: (string | null);
|
|
66
42
|
[k: string]: unknown;
|
|
67
43
|
};
|
|
44
|
+
category_assignments?: {
|
|
45
|
+
display_path?: string[];
|
|
46
|
+
path?: string[];
|
|
47
|
+
name?: string;
|
|
48
|
+
id?: string;
|
|
49
|
+
[k: string]: unknown;
|
|
50
|
+
}[];
|
|
68
51
|
attributes?: Attributes;
|
|
69
|
-
|
|
52
|
+
markets?: string[];
|
|
53
|
+
markets_overrides?: {
|
|
70
54
|
[k: string]: {
|
|
71
55
|
locale: string;
|
|
72
|
-
|
|
56
|
+
market: string;
|
|
73
57
|
slug?: string;
|
|
74
|
-
style_slug?: string;
|
|
75
58
|
style_name?: string;
|
|
76
|
-
display_name?:
|
|
59
|
+
display_name?: string;
|
|
77
60
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
78
61
|
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);
|
|
84
62
|
colour_family_name?: string;
|
|
85
63
|
colour_name?: string;
|
|
86
64
|
display_tags?: DisplayTags;
|
|
87
|
-
|
|
65
|
+
last_online_at?: (string | null);
|
|
88
66
|
variants?: {
|
|
89
67
|
code: string;
|
|
90
68
|
name: string;
|
|
@@ -95,49 +73,34 @@ export interface Product {
|
|
|
95
73
|
};
|
|
96
74
|
}
|
|
97
75
|
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);
|
|
98
82
|
seo_url_name?: string;
|
|
99
|
-
embellishment?: (string | null);
|
|
100
83
|
seo_title?: (string | null);
|
|
101
84
|
seo_description?: (string | null);
|
|
102
85
|
fit_description?: (string | null);
|
|
103
86
|
description?: (string | null);
|
|
104
87
|
fabric_care?: (string | null);
|
|
105
|
-
delivery_returns?: (string | null);
|
|
106
88
|
weight?: (number | null);
|
|
107
|
-
weight_statement?: (string | null);
|
|
108
89
|
main_fibre?: (string | null);
|
|
109
90
|
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);
|
|
118
91
|
designer?: (string | null);
|
|
119
|
-
fabric?: (string | null);
|
|
120
|
-
fabric_composition?: (string | null);
|
|
121
92
|
certificate_code?: (string | null);
|
|
122
|
-
shape?: (string | null);
|
|
123
|
-
development_type?: string;
|
|
124
|
-
occasion?: (string | null);
|
|
125
|
-
design?: (string | null);
|
|
126
|
-
block?: (string | null);
|
|
127
93
|
pattern_name?: (string | null);
|
|
128
94
|
fit_type?: (string | null);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
straps_features?: (string | null);
|
|
139
|
-
fastening?: ((string[] | null) | null);
|
|
140
|
-
sole_material?: (string | null);
|
|
95
|
+
trousers_fit?: (string | null);
|
|
96
|
+
trousers_length?: (string | null);
|
|
97
|
+
dresses_skirts_length?: (string | null);
|
|
98
|
+
coats_jackets_type?: (string | null);
|
|
99
|
+
dresses_skirts_type?: (string | null);
|
|
100
|
+
bag_type?: (string | null);
|
|
101
|
+
product_category?: (string | null);
|
|
102
|
+
product_type?: (string | null);
|
|
103
|
+
metal?: (string | null);
|
|
141
104
|
care_instructions?: string[];
|
|
142
105
|
[k: string]: unknown;
|
|
143
106
|
}
|
|
@@ -84,6 +84,7 @@ 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);
|
|
87
88
|
sleeve_length?: (string | null);
|
|
88
89
|
leg_length?: (string | null);
|
|
89
90
|
heel_height?: (string | null);
|
|
@@ -98,6 +99,7 @@ export interface __MainSchema {
|
|
|
98
99
|
weight_statement?: (string | null);
|
|
99
100
|
weight?: (number | null);
|
|
100
101
|
extra_selling_points?: string[];
|
|
102
|
+
length_statement?: (string | null);
|
|
101
103
|
length_measurement?: (string | null);
|
|
102
104
|
fabric_composition?: (string | null);
|
|
103
105
|
};
|
|
@@ -3,38 +3,23 @@ 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;
|
|
7
6
|
style_id: string;
|
|
8
|
-
colour_id
|
|
7
|
+
colour_id: string;
|
|
9
8
|
style_name?: string;
|
|
10
|
-
|
|
11
|
-
display_name?: (string | null);
|
|
9
|
+
display_name: string;
|
|
12
10
|
buffer_quantity?: number;
|
|
13
11
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
14
12
|
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);
|
|
21
13
|
created_at?: string;
|
|
22
14
|
last_modified_at?: string;
|
|
23
15
|
colour_family_name?: string;
|
|
24
|
-
colour_code?: string;
|
|
25
16
|
colour_name?: string;
|
|
26
17
|
display_tags?: DisplayTags;
|
|
27
18
|
sizerange_code?: string;
|
|
28
|
-
sizerange_name?: string;
|
|
29
19
|
variants?: {
|
|
30
20
|
code: string;
|
|
31
21
|
name: string;
|
|
32
|
-
|
|
33
|
-
}[];
|
|
34
|
-
images?: {
|
|
35
|
-
type: ("Campaign" | "Ecom" | "Flatlay" | "UGC" | "AI");
|
|
36
|
-
url: string;
|
|
37
|
-
description?: string;
|
|
22
|
+
ean?: (string | null);
|
|
38
23
|
[k: string]: unknown;
|
|
39
24
|
}[];
|
|
40
25
|
vat_rate_uk?: (number | null);
|
|
@@ -43,47 +28,40 @@ export interface __MainSchema {
|
|
|
43
28
|
commodity_code_ref?: string;
|
|
44
29
|
country_of_origin?: Country;
|
|
45
30
|
port_of_origin?: string;
|
|
46
|
-
supplier_id?: string;
|
|
47
|
-
supplier_name?: string;
|
|
48
|
-
factory_id?: string;
|
|
49
31
|
packing_method?: (("Standard" | "Hanging") | null);
|
|
50
32
|
is_bought_in_product?: boolean;
|
|
51
33
|
[k: string]: unknown;
|
|
52
34
|
};
|
|
53
35
|
merch?: {
|
|
54
36
|
strategy_type?: string;
|
|
55
|
-
product_type?: string;
|
|
56
|
-
stock_type?: string;
|
|
57
37
|
category?: string;
|
|
58
38
|
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;
|
|
62
39
|
seasons?: string[];
|
|
63
40
|
drops?: string[];
|
|
64
|
-
fashionability?: (string | null);
|
|
65
41
|
[k: string]: unknown;
|
|
66
42
|
};
|
|
43
|
+
category_assignments?: {
|
|
44
|
+
display_path?: string[];
|
|
45
|
+
path?: string[];
|
|
46
|
+
name?: string;
|
|
47
|
+
id?: string;
|
|
48
|
+
[k: string]: unknown;
|
|
49
|
+
}[];
|
|
67
50
|
attributes?: Attributes;
|
|
68
|
-
|
|
51
|
+
markets?: string[];
|
|
52
|
+
markets_overrides?: {
|
|
69
53
|
[k: string]: {
|
|
70
54
|
locale: string;
|
|
71
|
-
|
|
55
|
+
market: string;
|
|
72
56
|
slug?: string;
|
|
73
|
-
style_slug?: string;
|
|
74
57
|
style_name?: string;
|
|
75
|
-
display_name?:
|
|
58
|
+
display_name?: string;
|
|
76
59
|
display_type?: ("Out-of-stock" | "Permanently-unavailable");
|
|
77
60
|
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);
|
|
83
61
|
colour_family_name?: string;
|
|
84
62
|
colour_name?: string;
|
|
85
63
|
display_tags?: DisplayTags;
|
|
86
|
-
|
|
64
|
+
last_online_at?: (string | null);
|
|
87
65
|
variants?: {
|
|
88
66
|
code: string;
|
|
89
67
|
name: string;
|
|
@@ -94,49 +72,34 @@ export interface __MainSchema {
|
|
|
94
72
|
};
|
|
95
73
|
}
|
|
96
74
|
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);
|
|
97
81
|
seo_url_name?: string;
|
|
98
|
-
embellishment?: (string | null);
|
|
99
82
|
seo_title?: (string | null);
|
|
100
83
|
seo_description?: (string | null);
|
|
101
84
|
fit_description?: (string | null);
|
|
102
85
|
description?: (string | null);
|
|
103
86
|
fabric_care?: (string | null);
|
|
104
|
-
delivery_returns?: (string | null);
|
|
105
87
|
weight?: (number | null);
|
|
106
|
-
weight_statement?: (string | null);
|
|
107
88
|
main_fibre?: (string | null);
|
|
108
89
|
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);
|
|
117
90
|
designer?: (string | null);
|
|
118
|
-
fabric?: (string | null);
|
|
119
|
-
fabric_composition?: (string | null);
|
|
120
91
|
certificate_code?: (string | null);
|
|
121
|
-
shape?: (string | null);
|
|
122
|
-
development_type?: string;
|
|
123
|
-
occasion?: (string | null);
|
|
124
|
-
design?: (string | null);
|
|
125
|
-
block?: (string | null);
|
|
126
92
|
pattern_name?: (string | null);
|
|
127
93
|
fit_type?: (string | null);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
straps_features?: (string | null);
|
|
138
|
-
fastening?: ((string[] | null) | null);
|
|
139
|
-
sole_material?: (string | null);
|
|
94
|
+
trousers_fit?: (string | null);
|
|
95
|
+
trousers_length?: (string | null);
|
|
96
|
+
dresses_skirts_length?: (string | null);
|
|
97
|
+
coats_jackets_type?: (string | null);
|
|
98
|
+
dresses_skirts_type?: (string | null);
|
|
99
|
+
bag_type?: (string | null);
|
|
100
|
+
product_category?: (string | null);
|
|
101
|
+
product_type?: (string | null);
|
|
102
|
+
metal?: (string | null);
|
|
140
103
|
care_instructions?: string[];
|
|
141
104
|
[k: string]: unknown;
|
|
142
105
|
}
|
|
@@ -12,6 +12,7 @@ declare class AirtableHelper<T extends Record<string, string>, K extends keyof T
|
|
|
12
12
|
dictionary: T;
|
|
13
13
|
primaryKeyFieldName: K;
|
|
14
14
|
primaryKeyWritable: boolean;
|
|
15
|
+
viewId?: string;
|
|
15
16
|
constructor(opts: RuntimeOpts, airtableOpts: {
|
|
16
17
|
baseId: string;
|
|
17
18
|
tableId: string;
|
|
@@ -19,11 +20,10 @@ declare class AirtableHelper<T extends Record<string, string>, K extends keyof T
|
|
|
19
20
|
dictionary: T;
|
|
20
21
|
primaryKeyFieldName: K;
|
|
21
22
|
primaryKeyWritable?: boolean;
|
|
23
|
+
viewId?: string;
|
|
22
24
|
});
|
|
23
25
|
static translateFields<T extends Record<string, string>, S extends {
|
|
24
|
-
fields:
|
|
25
|
-
[key in T[keyof T]]: any;
|
|
26
|
-
};
|
|
26
|
+
fields: Record<string, any>;
|
|
27
27
|
}>(dictionary: T, y: S): S & {
|
|
28
28
|
fields: {
|
|
29
29
|
[key in keyof T]: any;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Category Tree", "additionalProperties": false, "type": "object", "$defs": { "categoryNode": { "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" }, "branchId": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "array", "items": { "type": "string" } }, "parentCategory": { "type": ["string", "null"] }, "displayPath": { "type": "string" }, "pathId": { "type": "array", "items": { "type": "string" } }, "children": { "type": "array", "items": { "$ref": "#/$defs/categoryNode" } } }, "required": ["id", "branchId", "name", "path", "pathId", "children"] } }, "properties": { "children": { "type": "array", "items": { "$ref": "#/$defs/categoryNode" } } }, "required": ["children"], "$id": "https://shushed.example.com/category-tree.schema.json" };
|
|
4
|
-
exports.default = schema;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
declare const schema: {
|
|
2
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
-
readonly title: "Category Tree";
|
|
4
|
-
readonly additionalProperties: false;
|
|
5
|
-
readonly type: "object";
|
|
6
|
-
readonly $defs: {
|
|
7
|
-
readonly categoryNode: {
|
|
8
|
-
readonly type: "object";
|
|
9
|
-
readonly additionalProperties: false;
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly id: {
|
|
12
|
-
readonly type: "string";
|
|
13
|
-
};
|
|
14
|
-
readonly branchId: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
};
|
|
17
|
-
readonly name: {
|
|
18
|
-
readonly type: "string";
|
|
19
|
-
};
|
|
20
|
-
readonly path: {
|
|
21
|
-
readonly type: "array";
|
|
22
|
-
readonly items: {
|
|
23
|
-
readonly type: "string";
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
readonly parentCategory: {
|
|
27
|
-
readonly type: readonly ["string", "null"];
|
|
28
|
-
};
|
|
29
|
-
readonly displayPath: {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
};
|
|
32
|
-
readonly pathId: {
|
|
33
|
-
readonly type: "array";
|
|
34
|
-
readonly items: {
|
|
35
|
-
readonly type: "string";
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
readonly children: {
|
|
39
|
-
readonly type: "array";
|
|
40
|
-
readonly items: {
|
|
41
|
-
readonly $ref: "#/$defs/categoryNode";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
readonly required: readonly ["id", "branchId", "name", "path", "pathId", "children"];
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
readonly properties: {
|
|
49
|
-
readonly children: {
|
|
50
|
-
readonly type: "array";
|
|
51
|
-
readonly items: {
|
|
52
|
-
readonly $ref: "#/$defs/categoryNode";
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
readonly required: readonly ["children"];
|
|
57
|
-
readonly $id: "https://shushed.example.com/category-tree.schema.json";
|
|
58
|
-
};
|
|
59
|
-
export default schema;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|