@shushed/helpers 0.0.79 → 0.0.81
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/index.d.ts +44 -40
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -81,15 +81,15 @@ declare const schema$m: {
|
|
|
81
81
|
};
|
|
82
82
|
readonly full_price: {
|
|
83
83
|
readonly type: "integer";
|
|
84
|
-
readonly minimum:
|
|
84
|
+
readonly minimum: 0;
|
|
85
85
|
};
|
|
86
86
|
readonly markdown: {
|
|
87
87
|
readonly type: "integer";
|
|
88
|
-
readonly minimum:
|
|
88
|
+
readonly minimum: 0;
|
|
89
89
|
};
|
|
90
90
|
readonly pos: {
|
|
91
91
|
readonly type: "integer";
|
|
92
|
-
readonly minimum:
|
|
92
|
+
readonly minimum: 0;
|
|
93
93
|
};
|
|
94
94
|
readonly currency: {
|
|
95
95
|
readonly title: "Currency";
|
|
@@ -100,16 +100,16 @@ declare const schema$m: {
|
|
|
100
100
|
readonly effective_from: {
|
|
101
101
|
readonly type: "string";
|
|
102
102
|
readonly format: "date-time";
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
readonly required: readonly ["style_id", "color_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"];
|
|
103
|
+
};
|
|
104
|
+
readonly effective_until: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly format: "date-time";
|
|
107
|
+
};
|
|
108
|
+
readonly channel: {
|
|
109
|
+
readonly type: "string";
|
|
111
110
|
};
|
|
112
111
|
};
|
|
112
|
+
readonly required: readonly ["style_id", "colour_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"];
|
|
113
113
|
readonly $id: "https://shushed.example.com/price.schema.json";
|
|
114
114
|
};
|
|
115
115
|
|
|
@@ -787,7 +787,7 @@ declare const schema$k: {
|
|
|
787
787
|
};
|
|
788
788
|
readonly development_type: {
|
|
789
789
|
readonly type: "string";
|
|
790
|
-
readonly
|
|
790
|
+
readonly enum: readonly ["Update", "Repeat", "Re-Colour", "New"];
|
|
791
791
|
};
|
|
792
792
|
readonly occasion: {
|
|
793
793
|
readonly type: "string";
|
|
@@ -1068,15 +1068,15 @@ declare const schema$h: {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
readonly full_price: {
|
|
1070
1070
|
readonly type: "integer";
|
|
1071
|
-
readonly minimum:
|
|
1071
|
+
readonly minimum: 0;
|
|
1072
1072
|
};
|
|
1073
1073
|
readonly markdown: {
|
|
1074
1074
|
readonly type: "integer";
|
|
1075
|
-
readonly minimum:
|
|
1075
|
+
readonly minimum: 0;
|
|
1076
1076
|
};
|
|
1077
1077
|
readonly pos: {
|
|
1078
1078
|
readonly type: "integer";
|
|
1079
|
-
readonly minimum:
|
|
1079
|
+
readonly minimum: 0;
|
|
1080
1080
|
};
|
|
1081
1081
|
readonly currency: {
|
|
1082
1082
|
readonly title: "Currency";
|
|
@@ -1087,16 +1087,16 @@ declare const schema$h: {
|
|
|
1087
1087
|
readonly effective_from: {
|
|
1088
1088
|
readonly type: "string";
|
|
1089
1089
|
readonly format: "date-time";
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
readonly required: readonly ["style_id", "color_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"];
|
|
1090
|
+
};
|
|
1091
|
+
readonly effective_until: {
|
|
1092
|
+
readonly type: "string";
|
|
1093
|
+
readonly format: "date-time";
|
|
1094
|
+
};
|
|
1095
|
+
readonly channel: {
|
|
1096
|
+
readonly type: "string";
|
|
1098
1097
|
};
|
|
1099
1098
|
};
|
|
1099
|
+
readonly required: readonly ["style_id", "colour_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"];
|
|
1100
1100
|
}, {
|
|
1101
1101
|
readonly type: "object";
|
|
1102
1102
|
readonly additionalProperties: false;
|
|
@@ -1792,7 +1792,7 @@ declare const schema$f: {
|
|
|
1792
1792
|
};
|
|
1793
1793
|
readonly development_type: {
|
|
1794
1794
|
readonly type: "string";
|
|
1795
|
-
readonly
|
|
1795
|
+
readonly enum: readonly ["Update", "Repeat", "Re-Colour", "New"];
|
|
1796
1796
|
};
|
|
1797
1797
|
readonly occasion: {
|
|
1798
1798
|
readonly type: "string";
|
|
@@ -27188,13 +27188,15 @@ interface __MainSchema$s {
|
|
|
27188
27188
|
|
|
27189
27189
|
type Currency$k = ("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");
|
|
27190
27190
|
interface __MainSchema$r {
|
|
27191
|
-
style_id
|
|
27192
|
-
colour_id
|
|
27193
|
-
full_price
|
|
27194
|
-
markdown
|
|
27195
|
-
pos
|
|
27196
|
-
currency
|
|
27197
|
-
effective_from
|
|
27191
|
+
style_id: (string | null);
|
|
27192
|
+
colour_id: (string | null);
|
|
27193
|
+
full_price: number;
|
|
27194
|
+
markdown: number;
|
|
27195
|
+
pos: number;
|
|
27196
|
+
currency: Currency$k;
|
|
27197
|
+
effective_from: string;
|
|
27198
|
+
effective_until?: string;
|
|
27199
|
+
channel: string;
|
|
27198
27200
|
}
|
|
27199
27201
|
|
|
27200
27202
|
type Currency$j = ("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");
|
|
@@ -27329,7 +27331,7 @@ interface __MainSchema$p {
|
|
|
27329
27331
|
first_markdown_at?: string;
|
|
27330
27332
|
measurement_table?: string;
|
|
27331
27333
|
stock_type: string;
|
|
27332
|
-
development_type?:
|
|
27334
|
+
development_type?: ("Update" | "Repeat" | "Re-Colour" | "New");
|
|
27333
27335
|
occasion: string;
|
|
27334
27336
|
strategy_type: string;
|
|
27335
27337
|
pattern_name: string;
|
|
@@ -27404,13 +27406,15 @@ interface __MainSchema$n {
|
|
|
27404
27406
|
type __MainSchema$m = (Price & {});
|
|
27405
27407
|
type Currency$h = ("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");
|
|
27406
27408
|
interface Price {
|
|
27407
|
-
style_id
|
|
27408
|
-
colour_id
|
|
27409
|
-
full_price
|
|
27410
|
-
markdown
|
|
27411
|
-
pos
|
|
27412
|
-
currency
|
|
27413
|
-
effective_from
|
|
27409
|
+
style_id: (string | null);
|
|
27410
|
+
colour_id: (string | null);
|
|
27411
|
+
full_price: number;
|
|
27412
|
+
markdown: number;
|
|
27413
|
+
pos: number;
|
|
27414
|
+
currency: Currency$h;
|
|
27415
|
+
effective_from: string;
|
|
27416
|
+
effective_until?: string;
|
|
27417
|
+
channel: string;
|
|
27414
27418
|
}
|
|
27415
27419
|
|
|
27416
27420
|
type __MainSchema$l = (ProductDraft & {});
|
|
@@ -27547,7 +27551,7 @@ interface Product {
|
|
|
27547
27551
|
first_markdown_at?: string;
|
|
27548
27552
|
measurement_table?: string;
|
|
27549
27553
|
stock_type: string;
|
|
27550
|
-
development_type?:
|
|
27554
|
+
development_type?: ("Update" | "Repeat" | "Re-Colour" | "New");
|
|
27551
27555
|
occasion: string;
|
|
27552
27556
|
strategy_type: string;
|
|
27553
27557
|
pattern_name: string;
|
package/dist/index.js
CHANGED
|
@@ -108952,7 +108952,7 @@ var schema3 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "
|
|
|
108952
108952
|
var money_default = schema3;
|
|
108953
108953
|
|
|
108954
108954
|
// dist-dereferenced/price.ts
|
|
108955
|
-
var schema4 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Price", "type": "object", "additionalProperties": false, "properties": { "style_id": { "type": ["string", "null"] }, "colour_id": { "type": ["string", "null"] }, "full_price": { "type": "integer", "minimum":
|
|
108955
|
+
var schema4 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Price", "type": "object", "additionalProperties": false, "properties": { "style_id": { "type": ["string", "null"] }, "colour_id": { "type": ["string", "null"] }, "full_price": { "type": "integer", "minimum": 0 }, "markdown": { "type": "integer", "minimum": 0 }, "pos": { "type": "integer", "minimum": 0 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "type": "string", "enum": ["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"] }, "effective_from": { "type": "string", "format": "date-time" }, "effective_until": { "type": "string", "format": "date-time" }, "channel": { "type": "string" } }, "required": ["style_id", "colour_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"], "$id": "https://shushed.example.com/price.schema.json" };
|
|
108956
108956
|
var price_default = schema4;
|
|
108957
108957
|
|
|
108958
108958
|
// dist-dereferenced/product-draft.ts
|
|
@@ -108960,7 +108960,7 @@ var schema5 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "
|
|
|
108960
108960
|
var product_draft_default = schema5;
|
|
108961
108961
|
|
|
108962
108962
|
// dist-dereferenced/product.ts
|
|
108963
|
-
var schema6 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Product", "additionalProperties": false, "type": "object", "properties": { "product_id": { "type": "string" }, "style_id": { "type": ["string"] }, "colour_code": { "type": "string", "pattern": "^[a-z]+(-[a-z]+)*$" }, "product_name": { "type": "string" }, "is_available_to_order": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "colour_family_name": { "type": "string" }, "colour_label": { "type": "string", "pattern": "^[A-Z][a-z]+( [A-Z][a-z]+)*$" }, "variants": { "type": "array", "items": { "type": "object", "properties": { "size": { "type": "string" }, "size_label": { "type": ["string"] } }, "required": ["size", "size_label"] } }, "images": { "type": "array", "properties": { "image_type": { "type": "string", "enum": ["Campaign", "Ecom x 4", "Flat lay", "UGC (multiple)", "AI Images"] }, "image_url": { "type": "string", "format": "uri" }, "path": { "type": "string" }, "title": { "type": "string" } }, "required": ["image_type", "image_url", "path", "title"] }, "vat_amount": { "type": "number", "minimum": 0 }, "commodity_code_ref": { "type": "string" }, "attributes": { "type": "object", "properties": { "product_type": { "type": "string" }, "main_fibre": { "type": "string" }, "merch_product_category": { "type": "string" }, "merch_product_subcategory": { "type": "string" }, "extra_selling_point": { "type": "string" }, "length_measurement": { "type": ["string", "null"] }, "country_of_origin": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Country", "type": "string", "enum": ["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"] }, "port_of_origin": { "type": "string", "pattern": "^[A-Z]+$" }, "supplier_id": { "type": "string", "pattern": "^SUP\\d{5}$" }, "supplier_name": { "type": "string" }, "factory_id": { "type": "string", "pattern": "^FAC\\d{5}$" }, "first_purchased_at": { "type": "string", "format": "date-time" }, "range": { "type": ["string", "null"], "enum": ["Main Collection", "Seasonal"] }, "channel_exclusivity": { "type": ["string", "null"] }, "collections": { "type": ["string"] }, "seasons": { "type": ["string"], "pattern": "^(AW|SS|FW|SP)[0-9]{2}$" }, "block": { "type": "string" }, "packing_method": { "type": ["string", "null"], "enum": ["Standard", "Hanging"] }, "is_bought_in_product": { "type": "boolean" }, "division": { "type": ["string", "null"], "enum": ["Women"] }, "drops": { "type": ["string"] }, "first_markdown_at": { "type": "string", "format": "date-time" }, "measurement_table": { "type": ["string"] }, "stock_type": { "type": "string" }, "development_type": { "type": "string", "
|
|
108963
|
+
var schema6 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Product", "additionalProperties": false, "type": "object", "properties": { "product_id": { "type": "string" }, "style_id": { "type": ["string"] }, "colour_code": { "type": "string", "pattern": "^[a-z]+(-[a-z]+)*$" }, "product_name": { "type": "string" }, "is_available_to_order": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "colour_family_name": { "type": "string" }, "colour_label": { "type": "string", "pattern": "^[A-Z][a-z]+( [A-Z][a-z]+)*$" }, "variants": { "type": "array", "items": { "type": "object", "properties": { "size": { "type": "string" }, "size_label": { "type": ["string"] } }, "required": ["size", "size_label"] } }, "images": { "type": "array", "properties": { "image_type": { "type": "string", "enum": ["Campaign", "Ecom x 4", "Flat lay", "UGC (multiple)", "AI Images"] }, "image_url": { "type": "string", "format": "uri" }, "path": { "type": "string" }, "title": { "type": "string" } }, "required": ["image_type", "image_url", "path", "title"] }, "vat_amount": { "type": "number", "minimum": 0 }, "commodity_code_ref": { "type": "string" }, "attributes": { "type": "object", "properties": { "product_type": { "type": "string" }, "main_fibre": { "type": "string" }, "merch_product_category": { "type": "string" }, "merch_product_subcategory": { "type": "string" }, "extra_selling_point": { "type": "string" }, "length_measurement": { "type": ["string", "null"] }, "country_of_origin": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Country", "type": "string", "enum": ["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"] }, "port_of_origin": { "type": "string", "pattern": "^[A-Z]+$" }, "supplier_id": { "type": "string", "pattern": "^SUP\\d{5}$" }, "supplier_name": { "type": "string" }, "factory_id": { "type": "string", "pattern": "^FAC\\d{5}$" }, "first_purchased_at": { "type": "string", "format": "date-time" }, "range": { "type": ["string", "null"], "enum": ["Main Collection", "Seasonal"] }, "channel_exclusivity": { "type": ["string", "null"] }, "collections": { "type": ["string"] }, "seasons": { "type": ["string"], "pattern": "^(AW|SS|FW|SP)[0-9]{2}$" }, "block": { "type": "string" }, "packing_method": { "type": ["string", "null"], "enum": ["Standard", "Hanging"] }, "is_bought_in_product": { "type": "boolean" }, "division": { "type": ["string", "null"], "enum": ["Women"] }, "drops": { "type": ["string"] }, "first_markdown_at": { "type": "string", "format": "date-time" }, "measurement_table": { "type": ["string"] }, "stock_type": { "type": "string" }, "development_type": { "type": "string", "enum": ["Update", "Repeat", "Re-Colour", "New"] }, "occasion": { "type": "string" }, "strategy_type": { "type": "string" }, "pattern_name": { "type": "string" }, "fit_type": { "type": "string" }, "neckline": { "type": "string" }, "sleeve_length": { "type": "string", "nullable": true }, "heel_height": { "type": ["string", "null"] }, "heel_shape": { "type": "string" }, "toe_shape": { "type": "string" }, "trouser_fit": { "type": "string", "nullable": true }, "leg_length": { "type": "string", "nullable": true }, "handle_straps": { "type": "string" }, "fastening": { "type": "string" }, "sole_code": { "type": "string" }, "fashionability": { "type": ["string", "null"], "enum": ["Core"] }, "weight": { "type": "number", "minimum": 1 }, "average_weight_grams": { "type": "number", "minimum": 1 }, "care_instructions": { "type": "string" }, "size_guide": { "type": "string" } }, "required": ["main_fibre", "merch_product_category", "product_type", "pattern_name", "fit_type", "care_instructions", "size_guide", "block", "stock_type", "packing_method", "is_bought_in_product", "merch_product_subcategory", "division", "range", "occasion", "strategy_type", "neckline", "sleeve_length", "leg_length", "heel_height", "heel_shape", "toe_shape", "handle_straps", "fastening", "sole_code", "fashionability", "weight", "average_weight_grams", "length_measurement"] } }, "required": ["product_id", "style_id", "product_name", "variants", "images", "attributes", "is_available_to_order", "created_at", "last_modified_at", "colour_family_name", "colour_label", "vat_amount"], "$id": "https://shushed.example.com/product.schema.json" };
|
|
108964
108964
|
var product_default = schema6;
|
|
108965
108965
|
|
|
108966
108966
|
// dist-dereferenced/total.ts
|
|
@@ -108982,7 +108982,7 @@ var schema8 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "
|
|
|
108982
108982
|
var ean_change_default = schema8;
|
|
108983
108983
|
|
|
108984
108984
|
// dist-dereferenced/messages/price-change.ts
|
|
108985
|
-
var schema9 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "PriceChange", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Price", "type": "object", "additionalProperties": false, "properties": { "style_id": { "type": ["string", "null"] }, "colour_id": { "type": ["string", "null"] }, "full_price": { "type": "integer", "minimum":
|
|
108985
|
+
var schema9 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "PriceChange", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Price", "type": "object", "additionalProperties": false, "properties": { "style_id": { "type": ["string", "null"] }, "colour_id": { "type": ["string", "null"] }, "full_price": { "type": "integer", "minimum": 0 }, "markdown": { "type": "integer", "minimum": 0 }, "pos": { "type": "integer", "minimum": 0 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "type": "string", "enum": ["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"] }, "effective_from": { "type": "string", "format": "date-time" }, "effective_until": { "type": "string", "format": "date-time" }, "channel": { "type": "string" } }, "required": ["style_id", "colour_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"] }, { "type": "object", "additionalProperties": false, "required": ["style_id", "colour_id", "full_price", "markdown", "pos", "currency", "effective_from", "channel"] }], "$id": "https://shushed.example.com/messages/price-change.schema.json" };
|
|
108986
108986
|
var price_change_default = schema9;
|
|
108987
108987
|
|
|
108988
108988
|
// dist-dereferenced/messages/product-draft.ts
|
|
@@ -108990,7 +108990,7 @@ var schema10 = { "$schema": "http://json-schema.org/draft-07/schema#", "title":
|
|
|
108990
108990
|
var product_draft_default2 = schema10;
|
|
108991
108991
|
|
|
108992
108992
|
// dist-dereferenced/messages/product.ts
|
|
108993
|
-
var schema11 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "ProductChange", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Product", "additionalProperties": false, "type": "object", "properties": { "product_id": { "type": "string" }, "style_id": { "type": ["string"] }, "colour_code": { "type": "string", "pattern": "^[a-z]+(-[a-z]+)*$" }, "product_name": { "type": "string" }, "is_available_to_order": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "colour_family_name": { "type": "string" }, "colour_label": { "type": "string", "pattern": "^[A-Z][a-z]+( [A-Z][a-z]+)*$" }, "variants": { "type": "array", "items": { "type": "object", "properties": { "size": { "type": "string" }, "size_label": { "type": ["string"] } }, "required": ["size", "size_label"] } }, "images": { "type": "array", "properties": { "image_type": { "type": "string", "enum": ["Campaign", "Ecom x 4", "Flat lay", "UGC (multiple)", "AI Images"] }, "image_url": { "type": "string", "format": "uri" }, "path": { "type": "string" }, "title": { "type": "string" } }, "required": ["image_type", "image_url", "path", "title"] }, "vat_amount": { "type": "number", "minimum": 0 }, "commodity_code_ref": { "type": "string" }, "attributes": { "type": "object", "properties": { "product_type": { "type": "string" }, "main_fibre": { "type": "string" }, "merch_product_category": { "type": "string" }, "merch_product_subcategory": { "type": "string" }, "extra_selling_point": { "type": "string" }, "length_measurement": { "type": ["string", "null"] }, "country_of_origin": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Country", "type": "string", "enum": ["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"] }, "port_of_origin": { "type": "string", "pattern": "^[A-Z]+$" }, "supplier_id": { "type": "string", "pattern": "^SUP\\d{5}$" }, "supplier_name": { "type": "string" }, "factory_id": { "type": "string", "pattern": "^FAC\\d{5}$" }, "first_purchased_at": { "type": "string", "format": "date-time" }, "range": { "type": ["string", "null"], "enum": ["Main Collection", "Seasonal"] }, "channel_exclusivity": { "type": ["string", "null"] }, "collections": { "type": ["string"] }, "seasons": { "type": ["string"], "pattern": "^(AW|SS|FW|SP)[0-9]{2}$" }, "block": { "type": "string" }, "packing_method": { "type": ["string", "null"], "enum": ["Standard", "Hanging"] }, "is_bought_in_product": { "type": "boolean" }, "division": { "type": ["string", "null"], "enum": ["Women"] }, "drops": { "type": ["string"] }, "first_markdown_at": { "type": "string", "format": "date-time" }, "measurement_table": { "type": ["string"] }, "stock_type": { "type": "string" }, "development_type": { "type": "string", "
|
|
108993
|
+
var schema11 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "ProductChange", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Product", "additionalProperties": false, "type": "object", "properties": { "product_id": { "type": "string" }, "style_id": { "type": ["string"] }, "colour_code": { "type": "string", "pattern": "^[a-z]+(-[a-z]+)*$" }, "product_name": { "type": "string" }, "is_available_to_order": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time" }, "last_modified_at": { "type": "string", "format": "date-time" }, "colour_family_name": { "type": "string" }, "colour_label": { "type": "string", "pattern": "^[A-Z][a-z]+( [A-Z][a-z]+)*$" }, "variants": { "type": "array", "items": { "type": "object", "properties": { "size": { "type": "string" }, "size_label": { "type": ["string"] } }, "required": ["size", "size_label"] } }, "images": { "type": "array", "properties": { "image_type": { "type": "string", "enum": ["Campaign", "Ecom x 4", "Flat lay", "UGC (multiple)", "AI Images"] }, "image_url": { "type": "string", "format": "uri" }, "path": { "type": "string" }, "title": { "type": "string" } }, "required": ["image_type", "image_url", "path", "title"] }, "vat_amount": { "type": "number", "minimum": 0 }, "commodity_code_ref": { "type": "string" }, "attributes": { "type": "object", "properties": { "product_type": { "type": "string" }, "main_fibre": { "type": "string" }, "merch_product_category": { "type": "string" }, "merch_product_subcategory": { "type": "string" }, "extra_selling_point": { "type": "string" }, "length_measurement": { "type": ["string", "null"] }, "country_of_origin": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Country", "type": "string", "enum": ["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"] }, "port_of_origin": { "type": "string", "pattern": "^[A-Z]+$" }, "supplier_id": { "type": "string", "pattern": "^SUP\\d{5}$" }, "supplier_name": { "type": "string" }, "factory_id": { "type": "string", "pattern": "^FAC\\d{5}$" }, "first_purchased_at": { "type": "string", "format": "date-time" }, "range": { "type": ["string", "null"], "enum": ["Main Collection", "Seasonal"] }, "channel_exclusivity": { "type": ["string", "null"] }, "collections": { "type": ["string"] }, "seasons": { "type": ["string"], "pattern": "^(AW|SS|FW|SP)[0-9]{2}$" }, "block": { "type": "string" }, "packing_method": { "type": ["string", "null"], "enum": ["Standard", "Hanging"] }, "is_bought_in_product": { "type": "boolean" }, "division": { "type": ["string", "null"], "enum": ["Women"] }, "drops": { "type": ["string"] }, "first_markdown_at": { "type": "string", "format": "date-time" }, "measurement_table": { "type": ["string"] }, "stock_type": { "type": "string" }, "development_type": { "type": "string", "enum": ["Update", "Repeat", "Re-Colour", "New"] }, "occasion": { "type": "string" }, "strategy_type": { "type": "string" }, "pattern_name": { "type": "string" }, "fit_type": { "type": "string" }, "neckline": { "type": "string" }, "sleeve_length": { "type": "string", "nullable": true }, "heel_height": { "type": ["string", "null"] }, "heel_shape": { "type": "string" }, "toe_shape": { "type": "string" }, "trouser_fit": { "type": "string", "nullable": true }, "leg_length": { "type": "string", "nullable": true }, "handle_straps": { "type": "string" }, "fastening": { "type": "string" }, "sole_code": { "type": "string" }, "fashionability": { "type": ["string", "null"], "enum": ["Core"] }, "weight": { "type": "number", "minimum": 1 }, "average_weight_grams": { "type": "number", "minimum": 1 }, "care_instructions": { "type": "string" }, "size_guide": { "type": "string" } }, "required": ["main_fibre", "merch_product_category", "product_type", "pattern_name", "fit_type", "care_instructions", "size_guide", "block", "stock_type", "packing_method", "is_bought_in_product", "merch_product_subcategory", "division", "range", "occasion", "strategy_type", "neckline", "sleeve_length", "leg_length", "heel_height", "heel_shape", "toe_shape", "handle_straps", "fastening", "sole_code", "fashionability", "weight", "average_weight_grams", "length_measurement"] } }, "required": ["product_id", "style_id", "product_name", "variants", "images", "attributes", "is_available_to_order", "created_at", "last_modified_at", "colour_family_name", "colour_label", "vat_amount"] }, { "type": "object", "additionalProperties": false, "required": ["product_id", "style_id", "product_name", "variants", "images", "attributes", "is_available_to_order", "created_at", "last_modified_at", "colour_family_name", "colour_label", "vat_amount"] }], "$id": "https://shushed.example.com/messages/product-change.schema.json" };
|
|
108994
108994
|
var product_default2 = schema11;
|
|
108995
108995
|
|
|
108996
108996
|
// dist-dereferenced/messages/order/index.ts
|