@shushed/helpers 0.0.12 → 0.0.13
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 +32 -32
- package/dist/index.js +10 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSONSchemaType } from 'ajv';
|
|
2
2
|
import { DeepRedact } from '@hackylabs/deep-redact';
|
|
3
3
|
|
|
4
|
-
declare const schema$
|
|
4
|
+
declare const schema$j: {
|
|
5
5
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
6
6
|
readonly title: "Country";
|
|
7
7
|
readonly $id: "https://shushed.example.com/country.schema.json";
|
|
@@ -9,7 +9,7 @@ declare const schema$o: {
|
|
|
9
9
|
readonly enum: readonly ["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"];
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
declare const schema$
|
|
12
|
+
declare const schema$i: {
|
|
13
13
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
14
14
|
readonly title: "Currency";
|
|
15
15
|
readonly $id: "https://shushed.example.com/currency.schema.json";
|
|
@@ -17,7 +17,7 @@ declare const schema$n: {
|
|
|
17
17
|
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"];
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
declare const schema$
|
|
20
|
+
declare const schema$h: {
|
|
21
21
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
22
22
|
readonly title: "Money";
|
|
23
23
|
readonly type: "object";
|
|
@@ -60,7 +60,7 @@ declare const schema$m: {
|
|
|
60
60
|
readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
declare const schema$
|
|
63
|
+
declare const schema$g: {
|
|
64
64
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
65
65
|
readonly $id: "https://shushed.example.com/productDraft.schema.json";
|
|
66
66
|
readonly title: "ProductDraft";
|
|
@@ -583,7 +583,7 @@ declare const schema$l: {
|
|
|
583
583
|
readonly required: readonly ["product_name", "colour_label", "developement_colourway_id", "colour_id", "style_id", "season_id", "drop_name", "stock_type", "block", "packing_method", "is_bought_in_product", "is_carry_over", "image_url", "product_type", "product_category", "division", "care_instructions", "range", "main_fibre", "size_range", "sizes", "occasion", "strategy_type", "pattern_name", "neckline", "sleeve_length", "leg_length", "heel_height", "heel_shape", "toe_shape", "handle_straps", "fastening", "sole_code", "fashionability", "weight", "average_weight_grams", "length_measurement", "fabric_composition_footwear", "retail_price", "current_cost", "currency", "moq", "finishing_cost", "other_costs", "freight_rate", "duty_rate", "commodity_code_ref", "country_of_origin", "port_of_origin", "supplier_id", "factory_id"];
|
|
584
584
|
};
|
|
585
585
|
|
|
586
|
-
declare const schema$
|
|
586
|
+
declare const schema$f: {
|
|
587
587
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
588
588
|
readonly title: "Total";
|
|
589
589
|
readonly type: "object";
|
|
@@ -768,7 +768,7 @@ declare const schema$k: {
|
|
|
768
768
|
readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
declare const schema$
|
|
771
|
+
declare const schema$e: {
|
|
772
772
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
773
773
|
readonly title: "OrderDelivered";
|
|
774
774
|
readonly $id: "https://shushed.example.com/messages/order/delivered.schema.json";
|
|
@@ -4178,7 +4178,7 @@ declare const schema$j: {
|
|
|
4178
4178
|
}];
|
|
4179
4179
|
};
|
|
4180
4180
|
|
|
4181
|
-
declare const schema$
|
|
4181
|
+
declare const schema$d: {
|
|
4182
4182
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
4183
4183
|
readonly title: "OrderNew";
|
|
4184
4184
|
readonly $id: "https://shushed.example.com/messages/order/new.schema.json";
|
|
@@ -7588,7 +7588,7 @@ declare const schema$i: {
|
|
|
7588
7588
|
}];
|
|
7589
7589
|
};
|
|
7590
7590
|
|
|
7591
|
-
declare const schema$
|
|
7591
|
+
declare const schema$c: {
|
|
7592
7592
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
7593
7593
|
readonly title: "OrderProcessed";
|
|
7594
7594
|
readonly $id: "https://shushed.example.com/messages/order/processed.schema.json";
|
|
@@ -10992,7 +10992,7 @@ declare const schema$h: {
|
|
|
10992
10992
|
}];
|
|
10993
10993
|
};
|
|
10994
10994
|
|
|
10995
|
-
declare const schema$
|
|
10995
|
+
declare const schema$b: {
|
|
10996
10996
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
10997
10997
|
readonly title: "OrderReturnInitiated";
|
|
10998
10998
|
readonly additionalProperties: false;
|
|
@@ -14402,7 +14402,7 @@ declare const schema$g: {
|
|
|
14402
14402
|
}];
|
|
14403
14403
|
};
|
|
14404
14404
|
|
|
14405
|
-
declare const schema$
|
|
14405
|
+
declare const schema$a: {
|
|
14406
14406
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
14407
14407
|
readonly title: "OrderReturnInitiated";
|
|
14408
14408
|
readonly $id: "https://shushed.example.com/messages/order/returned.schema.json";
|
|
@@ -17812,7 +17812,7 @@ declare const schema$f: {
|
|
|
17812
17812
|
}];
|
|
17813
17813
|
};
|
|
17814
17814
|
|
|
17815
|
-
declare const schema$
|
|
17815
|
+
declare const schema$9: {
|
|
17816
17816
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
17817
17817
|
readonly title: "OrderShipped";
|
|
17818
17818
|
readonly $id: "https://shushed.example.com/messages/order/shipped.schema.json";
|
|
@@ -21223,14 +21223,14 @@ declare const schema$e: {
|
|
|
21223
21223
|
};
|
|
21224
21224
|
|
|
21225
21225
|
declare namespace index$g {
|
|
21226
|
-
export { schema$
|
|
21226
|
+
export { schema$e as Delivered, schema$d as New, schema$c as Processed, schema$b as ReturnInitiated, schema$a as Returned, schema$9 as Shipped };
|
|
21227
21227
|
}
|
|
21228
21228
|
|
|
21229
21229
|
declare namespace index$f {
|
|
21230
21230
|
export { index$g as Order };
|
|
21231
21231
|
}
|
|
21232
21232
|
|
|
21233
|
-
declare const schema$
|
|
21233
|
+
declare const schema$8: {
|
|
21234
21234
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21235
21235
|
readonly title: "Address";
|
|
21236
21236
|
readonly type: "object";
|
|
@@ -21281,7 +21281,7 @@ declare const schema$d: {
|
|
|
21281
21281
|
readonly required: readonly ["first_name", "last_name", "address1", "city", "post_code", "country_code"];
|
|
21282
21282
|
};
|
|
21283
21283
|
|
|
21284
|
-
declare const schema$
|
|
21284
|
+
declare const schema$7: {
|
|
21285
21285
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21286
21286
|
readonly title: "Customer";
|
|
21287
21287
|
readonly $id: "https://shushed.example.com/order/customer.schema.json";
|
|
@@ -21291,7 +21291,7 @@ declare const schema$c: {
|
|
|
21291
21291
|
readonly required: readonly [];
|
|
21292
21292
|
};
|
|
21293
21293
|
|
|
21294
|
-
declare const schema$
|
|
21294
|
+
declare const schema$6: {
|
|
21295
21295
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21296
21296
|
readonly title: "Item";
|
|
21297
21297
|
readonly $id: "https://shushed.example.com/order/item.schema.json";
|
|
@@ -21741,7 +21741,7 @@ declare const schema$b: {
|
|
|
21741
21741
|
}];
|
|
21742
21742
|
};
|
|
21743
21743
|
|
|
21744
|
-
declare const schema$
|
|
21744
|
+
declare const schema$5: {
|
|
21745
21745
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21746
21746
|
readonly title: "Payment";
|
|
21747
21747
|
readonly type: "object";
|
|
@@ -21831,7 +21831,7 @@ declare const schema$a: {
|
|
|
21831
21831
|
readonly required: readonly ["created_at", "payment_method", "transaction_id", "psp_reference", "status", "amount", "created_by", "journey_label"];
|
|
21832
21832
|
};
|
|
21833
21833
|
|
|
21834
|
-
declare const schema$
|
|
21834
|
+
declare const schema$4: {
|
|
21835
21835
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21836
21836
|
readonly title: "Order Shipment Item Returned";
|
|
21837
21837
|
readonly type: "object";
|
|
@@ -21869,7 +21869,7 @@ declare const schema$9: {
|
|
|
21869
21869
|
}];
|
|
21870
21870
|
};
|
|
21871
21871
|
|
|
21872
|
-
declare const
|
|
21872
|
+
declare const MainModuleObj$4: {
|
|
21873
21873
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21874
21874
|
readonly title: "Order Shipment Item";
|
|
21875
21875
|
readonly type: "object";
|
|
@@ -21889,10 +21889,10 @@ declare const schema$8: {
|
|
|
21889
21889
|
};
|
|
21890
21890
|
|
|
21891
21891
|
declare namespace index$e {
|
|
21892
|
-
export { schema$
|
|
21892
|
+
export { schema$4 as Returned, MainModuleObj$4 as default };
|
|
21893
21893
|
}
|
|
21894
21894
|
|
|
21895
|
-
declare const schema$
|
|
21895
|
+
declare const schema$3: {
|
|
21896
21896
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
21897
21897
|
readonly title: "Order Shipment POS Outbound";
|
|
21898
21898
|
readonly type: "object";
|
|
@@ -22243,7 +22243,7 @@ declare const schema$7: {
|
|
|
22243
22243
|
}];
|
|
22244
22244
|
};
|
|
22245
22245
|
|
|
22246
|
-
declare const schema$
|
|
22246
|
+
declare const schema$2: {
|
|
22247
22247
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
22248
22248
|
readonly title: "Order Shipment POS Return";
|
|
22249
22249
|
readonly type: "object";
|
|
@@ -22608,7 +22608,7 @@ declare const schema$6: {
|
|
|
22608
22608
|
}];
|
|
22609
22609
|
};
|
|
22610
22610
|
|
|
22611
|
-
declare const
|
|
22611
|
+
declare const MainModuleObj$3: {
|
|
22612
22612
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
22613
22613
|
readonly title: "Order Shipment Outbound";
|
|
22614
22614
|
readonly type: "object";
|
|
@@ -22917,10 +22917,10 @@ declare const schema$5: {
|
|
|
22917
22917
|
};
|
|
22918
22918
|
|
|
22919
22919
|
declare namespace index$d {
|
|
22920
|
-
export { schema$
|
|
22920
|
+
export { schema$3 as Outbound, schema$2 as Return, MainModuleObj$3 as default };
|
|
22921
22921
|
}
|
|
22922
22922
|
|
|
22923
|
-
declare const schema$
|
|
22923
|
+
declare const schema$1: {
|
|
22924
22924
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
22925
22925
|
readonly title: "Order Shipment Shipped Outbound";
|
|
22926
22926
|
readonly type: "object";
|
|
@@ -23268,7 +23268,7 @@ declare const schema$4: {
|
|
|
23268
23268
|
}];
|
|
23269
23269
|
};
|
|
23270
23270
|
|
|
23271
|
-
declare const schema
|
|
23271
|
+
declare const schema: {
|
|
23272
23272
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
23273
23273
|
readonly title: "Order Shipment Shipped Return";
|
|
23274
23274
|
readonly type: "object";
|
|
@@ -23637,7 +23637,7 @@ declare const schema$3: {
|
|
|
23637
23637
|
}];
|
|
23638
23638
|
};
|
|
23639
23639
|
|
|
23640
|
-
declare const
|
|
23640
|
+
declare const MainModuleObj$2: {
|
|
23641
23641
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
23642
23642
|
readonly title: "Order Shipment Outbound";
|
|
23643
23643
|
readonly type: "object";
|
|
@@ -23945,10 +23945,10 @@ declare const schema$2: {
|
|
|
23945
23945
|
};
|
|
23946
23946
|
|
|
23947
23947
|
declare namespace index$c {
|
|
23948
|
-
export { schema$
|
|
23948
|
+
export { schema$1 as Outbound, schema as Return, MainModuleObj$2 as default };
|
|
23949
23949
|
}
|
|
23950
23950
|
|
|
23951
|
-
declare const
|
|
23951
|
+
declare const MainModuleObj$1: {
|
|
23952
23952
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
23953
23953
|
readonly title: "Shipment";
|
|
23954
23954
|
readonly type: "object";
|
|
@@ -24224,10 +24224,10 @@ declare const schema$1: {
|
|
|
24224
24224
|
};
|
|
24225
24225
|
|
|
24226
24226
|
declare namespace index$b {
|
|
24227
|
-
export { index$e as Item, index$d as Pos, index$c as Shipped,
|
|
24227
|
+
export { index$e as Item, index$d as Pos, index$c as Shipped, MainModuleObj$1 as default };
|
|
24228
24228
|
}
|
|
24229
24229
|
|
|
24230
|
-
declare const
|
|
24230
|
+
declare const MainModuleObj: {
|
|
24231
24231
|
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
24232
24232
|
readonly title: "Order";
|
|
24233
24233
|
readonly type: "object";
|
|
@@ -27622,11 +27622,11 @@ declare const schema: {
|
|
|
27622
27622
|
};
|
|
27623
27623
|
|
|
27624
27624
|
declare namespace index$a {
|
|
27625
|
-
export { schema$
|
|
27625
|
+
export { schema$8 as Address, schema$7 as Customer, schema$6 as Item, schema$5 as Payment, index$b as Shipment, MainModuleObj as default };
|
|
27626
27626
|
}
|
|
27627
27627
|
|
|
27628
27628
|
declare namespace index$9 {
|
|
27629
|
-
export { schema$
|
|
27629
|
+
export { schema$j as Country, schema$i as Currency, index$f as Messages, schema$h as Money, index$a as Order, schema$g as ProductDraft, schema$f as Total };
|
|
27630
27630
|
}
|
|
27631
27631
|
|
|
27632
27632
|
type __MainSchema$o = ("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");
|