@shushed/helpers 0.0.8 → 0.0.10
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 +29663 -3
- package/dist/index.js +348 -3
- package/dist/package.json +1 -3
- package/package.json +2 -4
- package/dist/dist-dereferenced/country.d.ts +0 -8
- package/dist/dist-dereferenced/country.js +0 -2
- package/dist/dist-dereferenced/currency.d.ts +0 -8
- package/dist/dist-dereferenced/currency.js +0 -2
- package/dist/dist-dereferenced/index.d.ts +0 -7
- package/dist/dist-dereferenced/index.js +0 -7
- package/dist/dist-dereferenced/messages/index.d.ts +0 -1
- package/dist/dist-dereferenced/messages/index.js +0 -1
- package/dist/dist-dereferenced/messages/order/delivered.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/delivered.js +0 -2
- package/dist/dist-dereferenced/messages/order/index.d.ts +0 -6
- package/dist/dist-dereferenced/messages/order/index.js +0 -6
- package/dist/dist-dereferenced/messages/order/new.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/new.js +0 -2
- package/dist/dist-dereferenced/messages/order/processed.d.ts +0 -3404
- package/dist/dist-dereferenced/messages/order/processed.js +0 -2
- package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/return-initiated.js +0 -2
- package/dist/dist-dereferenced/messages/order/returned.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/returned.js +0 -2
- package/dist/dist-dereferenced/messages/order/shipped.d.ts +0 -3410
- package/dist/dist-dereferenced/messages/order/shipped.js +0 -2
- package/dist/dist-dereferenced/money.d.ts +0 -43
- package/dist/dist-dereferenced/money.js +0 -2
- package/dist/dist-dereferenced/order/address.d.ts +0 -51
- package/dist/dist-dereferenced/order/address.js +0 -2
- package/dist/dist-dereferenced/order/customer.d.ts +0 -10
- package/dist/dist-dereferenced/order/customer.js +0 -2
- package/dist/dist-dereferenced/order/index.d.ts +0 -7
- package/dist/dist-dereferenced/order/index.js +0 -7
- package/dist/dist-dereferenced/order/item.d.ts +0 -450
- package/dist/dist-dereferenced/order/item.js +0 -2
- package/dist/dist-dereferenced/order/orderMain.d.ts +0 -3394
- package/dist/dist-dereferenced/order/orderMain.js +0 -2
- package/dist/dist-dereferenced/order/payment.d.ts +0 -90
- package/dist/dist-dereferenced/order/payment.js +0 -2
- package/dist/dist-dereferenced/order/shipment/index.d.ts +0 -5
- package/dist/dist-dereferenced/order/shipment/index.js +0 -5
- package/dist/dist-dereferenced/order/shipment/item/index.d.ts +0 -3
- package/dist/dist-dereferenced/order/shipment/item/index.js +0 -3
- package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -19
- package/dist/dist-dereferenced/order/shipment/item/itemMain.js +0 -2
- package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +0 -38
- package/dist/dist-dereferenced/order/shipment/item/returned.js +0 -2
- package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +0 -4
- package/dist/dist-dereferenced/order/shipment/pos/index.js +0 -4
- package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -351
- package/dist/dist-dereferenced/order/shipment/pos/outbound.js +0 -2
- package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -308
- package/dist/dist-dereferenced/order/shipment/pos/posMain.js +0 -2
- package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +0 -365
- package/dist/dist-dereferenced/order/shipment/pos/return.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -275
- package/dist/dist-dereferenced/order/shipment/shipmentMain.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -4
- package/dist/dist-dereferenced/order/shipment/shipped/index.js +0 -4
- package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -348
- package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -369
- package/dist/dist-dereferenced/order/shipment/shipped/return.js +0 -2
- package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -307
- package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -2
- package/dist/dist-dereferenced/productDraft.d.ts +0 -523
- package/dist/dist-dereferenced/productDraft.js +0 -2
- package/dist/dist-dereferenced/total.d.ts +0 -185
- package/dist/dist-dereferenced/total.js +0 -2
- package/dist/dist-types/country.d.ts +0 -2
- package/dist/dist-types/country.js +0 -1
- package/dist/dist-types/currency.d.ts +0 -2
- package/dist/dist-types/currency.js +0 -1
- package/dist/dist-types/index.d.ts +0 -7
- package/dist/dist-types/index.js +0 -2
- package/dist/dist-types/messages/index.d.ts +0 -1
- package/dist/dist-types/messages/index.js +0 -1
- package/dist/dist-types/messages/order/delivered.d.ts +0 -178
- package/dist/dist-types/messages/order/delivered.js +0 -1
- package/dist/dist-types/messages/order/index.d.ts +0 -6
- package/dist/dist-types/messages/order/index.js +0 -1
- package/dist/dist-types/messages/order/new.d.ts +0 -178
- package/dist/dist-types/messages/order/new.js +0 -1
- package/dist/dist-types/messages/order/processed.d.ts +0 -176
- package/dist/dist-types/messages/order/processed.js +0 -1
- package/dist/dist-types/messages/order/return-initiated.d.ts +0 -178
- package/dist/dist-types/messages/order/return-initiated.js +0 -1
- package/dist/dist-types/messages/order/returned.d.ts +0 -178
- package/dist/dist-types/messages/order/returned.js +0 -1
- package/dist/dist-types/messages/order/shipped.d.ts +0 -178
- package/dist/dist-types/messages/order/shipped.js +0 -1
- package/dist/dist-types/money.d.ts +0 -11
- package/dist/dist-types/money.js +0 -1
- package/dist/dist-types/order/address.d.ts +0 -12
- package/dist/dist-types/order/address.js +0 -1
- package/dist/dist-types/order/customer.d.ts +0 -3
- package/dist/dist-types/order/customer.js +0 -1
- package/dist/dist-types/order/index.d.ts +0 -7
- package/dist/dist-types/order/index.js +0 -1
- package/dist/dist-types/order/item.d.ts +0 -70
- package/dist/dist-types/order/item.js +0 -1
- package/dist/dist-types/order/orderMain.d.ts +0 -175
- package/dist/dist-types/order/orderMain.js +0 -1
- package/dist/dist-types/order/payment.d.ts +0 -25
- package/dist/dist-types/order/payment.js +0 -1
- package/dist/dist-types/order/shipment/index.d.ts +0 -5
- package/dist/dist-types/order/shipment/index.js +0 -3
- package/dist/dist-types/order/shipment/item/index.d.ts +0 -3
- package/dist/dist-types/order/shipment/item/index.js +0 -1
- package/dist/dist-types/order/shipment/item/itemMain.d.ts +0 -5
- package/dist/dist-types/order/shipment/item/itemMain.js +0 -1
- package/dist/dist-types/order/shipment/item/returned.d.ts +0 -9
- package/dist/dist-types/order/shipment/item/returned.js +0 -1
- package/dist/dist-types/order/shipment/pos/index.d.ts +0 -4
- package/dist/dist-types/order/shipment/pos/index.js +0 -1
- package/dist/dist-types/order/shipment/pos/outbound.d.ts +0 -71
- package/dist/dist-types/order/shipment/pos/outbound.js +0 -1
- package/dist/dist-types/order/shipment/pos/posMain.d.ts +0 -66
- package/dist/dist-types/order/shipment/pos/posMain.js +0 -1
- package/dist/dist-types/order/shipment/pos/return.d.ts +0 -70
- package/dist/dist-types/order/shipment/pos/return.js +0 -1
- package/dist/dist-types/order/shipment/shipmentMain.d.ts +0 -58
- package/dist/dist-types/order/shipment/shipmentMain.js +0 -1
- package/dist/dist-types/order/shipment/shipped/index.d.ts +0 -4
- package/dist/dist-types/order/shipment/shipped/index.js +0 -1
- package/dist/dist-types/order/shipment/shipped/outbound.d.ts +0 -71
- package/dist/dist-types/order/shipment/shipped/outbound.js +0 -1
- package/dist/dist-types/order/shipment/shipped/return.d.ts +0 -70
- package/dist/dist-types/order/shipment/shipped/return.js +0 -1
- package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -65
- package/dist/dist-types/order/shipment/shipped/shippedMain.js +0 -1
- package/dist/dist-types/productDraft.d.ts +0 -87
- package/dist/dist-types/productDraft.js +0 -1
- package/dist/dist-types/total.d.ts +0 -43
- package/dist/dist-types/total.js +0 -1
- package/dist/src-public/index.d.ts +0 -2
- package/dist/src-public/index.js +0 -2
- package/dist/src-public/sanitize.d.ts +0 -4
- package/dist/src-public/sanitize.js +0 -21
- package/dist/src-public/validate.d.ts +0 -9
- package/dist/src-public/validate.js +0 -28
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shushed/helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"author": "",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "",
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
"lodash.clonedeep": "^4.5.0"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
"types",
|
|
16
|
-
"schemas"
|
|
14
|
+
"dist"
|
|
17
15
|
],
|
|
18
16
|
"main": "dist/index.js",
|
|
19
17
|
"types": "dist/index.d.ts",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const schema: {
|
|
2
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
-
readonly title: "Country";
|
|
4
|
-
readonly $id: "https://shushed.example.com/country.schema.json";
|
|
5
|
-
readonly type: "string";
|
|
6
|
-
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"];
|
|
7
|
-
};
|
|
8
|
-
export default schema;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Country", "$id": "https://shushed.example.com/country.schema.json", "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"] };
|
|
2
|
-
export default schema;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const schema: {
|
|
2
|
-
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
3
|
-
readonly title: "Currency";
|
|
4
|
-
readonly $id: "https://shushed.example.com/currency.schema.json";
|
|
5
|
-
readonly type: "string";
|
|
6
|
-
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"];
|
|
7
|
-
};
|
|
8
|
-
export default schema;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Currency", "$id": "https://shushed.example.com/currency.schema.json", "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"] };
|
|
2
|
-
export default schema;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Country } from './country';
|
|
2
|
-
export { default as Currency } from './currency';
|
|
3
|
-
export { default as Money } from './money';
|
|
4
|
-
export { default as ProductDraft } from './productDraft';
|
|
5
|
-
export { default as Total } from './total';
|
|
6
|
-
export * as Messages from './messages';
|
|
7
|
-
export * as Order from './order';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as Country } from './country';
|
|
2
|
-
export { default as Currency } from './currency';
|
|
3
|
-
export { default as Money } from './money';
|
|
4
|
-
export { default as ProductDraft } from './productDraft';
|
|
5
|
-
export { default as Total } from './total';
|
|
6
|
-
export * as Messages from './messages';
|
|
7
|
-
export * as Order from './order';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Order from './order';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Order from './order';
|