@shushed/helpers 0.0.8 → 0.0.9

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.
Files changed (142) hide show
  1. package/dist/index.d.ts +29663 -3
  2. package/dist/index.js +348 -3
  3. package/dist/package.json +1 -3
  4. package/package.json +2 -4
  5. package/dist/dist-dereferenced/country.d.ts +0 -8
  6. package/dist/dist-dereferenced/country.js +0 -2
  7. package/dist/dist-dereferenced/currency.d.ts +0 -8
  8. package/dist/dist-dereferenced/currency.js +0 -2
  9. package/dist/dist-dereferenced/index.d.ts +0 -7
  10. package/dist/dist-dereferenced/index.js +0 -7
  11. package/dist/dist-dereferenced/messages/index.d.ts +0 -1
  12. package/dist/dist-dereferenced/messages/index.js +0 -1
  13. package/dist/dist-dereferenced/messages/order/delivered.d.ts +0 -3410
  14. package/dist/dist-dereferenced/messages/order/delivered.js +0 -2
  15. package/dist/dist-dereferenced/messages/order/index.d.ts +0 -6
  16. package/dist/dist-dereferenced/messages/order/index.js +0 -6
  17. package/dist/dist-dereferenced/messages/order/new.d.ts +0 -3410
  18. package/dist/dist-dereferenced/messages/order/new.js +0 -2
  19. package/dist/dist-dereferenced/messages/order/processed.d.ts +0 -3404
  20. package/dist/dist-dereferenced/messages/order/processed.js +0 -2
  21. package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3410
  22. package/dist/dist-dereferenced/messages/order/return-initiated.js +0 -2
  23. package/dist/dist-dereferenced/messages/order/returned.d.ts +0 -3410
  24. package/dist/dist-dereferenced/messages/order/returned.js +0 -2
  25. package/dist/dist-dereferenced/messages/order/shipped.d.ts +0 -3410
  26. package/dist/dist-dereferenced/messages/order/shipped.js +0 -2
  27. package/dist/dist-dereferenced/money.d.ts +0 -43
  28. package/dist/dist-dereferenced/money.js +0 -2
  29. package/dist/dist-dereferenced/order/address.d.ts +0 -51
  30. package/dist/dist-dereferenced/order/address.js +0 -2
  31. package/dist/dist-dereferenced/order/customer.d.ts +0 -10
  32. package/dist/dist-dereferenced/order/customer.js +0 -2
  33. package/dist/dist-dereferenced/order/index.d.ts +0 -7
  34. package/dist/dist-dereferenced/order/index.js +0 -7
  35. package/dist/dist-dereferenced/order/item.d.ts +0 -450
  36. package/dist/dist-dereferenced/order/item.js +0 -2
  37. package/dist/dist-dereferenced/order/orderMain.d.ts +0 -3394
  38. package/dist/dist-dereferenced/order/orderMain.js +0 -2
  39. package/dist/dist-dereferenced/order/payment.d.ts +0 -90
  40. package/dist/dist-dereferenced/order/payment.js +0 -2
  41. package/dist/dist-dereferenced/order/shipment/index.d.ts +0 -5
  42. package/dist/dist-dereferenced/order/shipment/index.js +0 -5
  43. package/dist/dist-dereferenced/order/shipment/item/index.d.ts +0 -3
  44. package/dist/dist-dereferenced/order/shipment/item/index.js +0 -3
  45. package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -19
  46. package/dist/dist-dereferenced/order/shipment/item/itemMain.js +0 -2
  47. package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +0 -38
  48. package/dist/dist-dereferenced/order/shipment/item/returned.js +0 -2
  49. package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +0 -4
  50. package/dist/dist-dereferenced/order/shipment/pos/index.js +0 -4
  51. package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -351
  52. package/dist/dist-dereferenced/order/shipment/pos/outbound.js +0 -2
  53. package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -308
  54. package/dist/dist-dereferenced/order/shipment/pos/posMain.js +0 -2
  55. package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +0 -365
  56. package/dist/dist-dereferenced/order/shipment/pos/return.js +0 -2
  57. package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -275
  58. package/dist/dist-dereferenced/order/shipment/shipmentMain.js +0 -2
  59. package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -4
  60. package/dist/dist-dereferenced/order/shipment/shipped/index.js +0 -4
  61. package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -348
  62. package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +0 -2
  63. package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -369
  64. package/dist/dist-dereferenced/order/shipment/shipped/return.js +0 -2
  65. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -307
  66. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -2
  67. package/dist/dist-dereferenced/productDraft.d.ts +0 -523
  68. package/dist/dist-dereferenced/productDraft.js +0 -2
  69. package/dist/dist-dereferenced/total.d.ts +0 -185
  70. package/dist/dist-dereferenced/total.js +0 -2
  71. package/dist/dist-types/country.d.ts +0 -2
  72. package/dist/dist-types/country.js +0 -1
  73. package/dist/dist-types/currency.d.ts +0 -2
  74. package/dist/dist-types/currency.js +0 -1
  75. package/dist/dist-types/index.d.ts +0 -7
  76. package/dist/dist-types/index.js +0 -2
  77. package/dist/dist-types/messages/index.d.ts +0 -1
  78. package/dist/dist-types/messages/index.js +0 -1
  79. package/dist/dist-types/messages/order/delivered.d.ts +0 -178
  80. package/dist/dist-types/messages/order/delivered.js +0 -1
  81. package/dist/dist-types/messages/order/index.d.ts +0 -6
  82. package/dist/dist-types/messages/order/index.js +0 -1
  83. package/dist/dist-types/messages/order/new.d.ts +0 -178
  84. package/dist/dist-types/messages/order/new.js +0 -1
  85. package/dist/dist-types/messages/order/processed.d.ts +0 -176
  86. package/dist/dist-types/messages/order/processed.js +0 -1
  87. package/dist/dist-types/messages/order/return-initiated.d.ts +0 -178
  88. package/dist/dist-types/messages/order/return-initiated.js +0 -1
  89. package/dist/dist-types/messages/order/returned.d.ts +0 -178
  90. package/dist/dist-types/messages/order/returned.js +0 -1
  91. package/dist/dist-types/messages/order/shipped.d.ts +0 -178
  92. package/dist/dist-types/messages/order/shipped.js +0 -1
  93. package/dist/dist-types/money.d.ts +0 -11
  94. package/dist/dist-types/money.js +0 -1
  95. package/dist/dist-types/order/address.d.ts +0 -12
  96. package/dist/dist-types/order/address.js +0 -1
  97. package/dist/dist-types/order/customer.d.ts +0 -3
  98. package/dist/dist-types/order/customer.js +0 -1
  99. package/dist/dist-types/order/index.d.ts +0 -7
  100. package/dist/dist-types/order/index.js +0 -1
  101. package/dist/dist-types/order/item.d.ts +0 -70
  102. package/dist/dist-types/order/item.js +0 -1
  103. package/dist/dist-types/order/orderMain.d.ts +0 -175
  104. package/dist/dist-types/order/orderMain.js +0 -1
  105. package/dist/dist-types/order/payment.d.ts +0 -25
  106. package/dist/dist-types/order/payment.js +0 -1
  107. package/dist/dist-types/order/shipment/index.d.ts +0 -5
  108. package/dist/dist-types/order/shipment/index.js +0 -3
  109. package/dist/dist-types/order/shipment/item/index.d.ts +0 -3
  110. package/dist/dist-types/order/shipment/item/index.js +0 -1
  111. package/dist/dist-types/order/shipment/item/itemMain.d.ts +0 -5
  112. package/dist/dist-types/order/shipment/item/itemMain.js +0 -1
  113. package/dist/dist-types/order/shipment/item/returned.d.ts +0 -9
  114. package/dist/dist-types/order/shipment/item/returned.js +0 -1
  115. package/dist/dist-types/order/shipment/pos/index.d.ts +0 -4
  116. package/dist/dist-types/order/shipment/pos/index.js +0 -1
  117. package/dist/dist-types/order/shipment/pos/outbound.d.ts +0 -71
  118. package/dist/dist-types/order/shipment/pos/outbound.js +0 -1
  119. package/dist/dist-types/order/shipment/pos/posMain.d.ts +0 -66
  120. package/dist/dist-types/order/shipment/pos/posMain.js +0 -1
  121. package/dist/dist-types/order/shipment/pos/return.d.ts +0 -70
  122. package/dist/dist-types/order/shipment/pos/return.js +0 -1
  123. package/dist/dist-types/order/shipment/shipmentMain.d.ts +0 -58
  124. package/dist/dist-types/order/shipment/shipmentMain.js +0 -1
  125. package/dist/dist-types/order/shipment/shipped/index.d.ts +0 -4
  126. package/dist/dist-types/order/shipment/shipped/index.js +0 -1
  127. package/dist/dist-types/order/shipment/shipped/outbound.d.ts +0 -71
  128. package/dist/dist-types/order/shipment/shipped/outbound.js +0 -1
  129. package/dist/dist-types/order/shipment/shipped/return.d.ts +0 -70
  130. package/dist/dist-types/order/shipment/shipped/return.js +0 -1
  131. package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -65
  132. package/dist/dist-types/order/shipment/shipped/shippedMain.js +0 -1
  133. package/dist/dist-types/productDraft.d.ts +0 -87
  134. package/dist/dist-types/productDraft.js +0 -1
  135. package/dist/dist-types/total.d.ts +0 -43
  136. package/dist/dist-types/total.js +0 -1
  137. package/dist/src-public/index.d.ts +0 -2
  138. package/dist/src-public/index.js +0 -2
  139. package/dist/src-public/sanitize.d.ts +0 -4
  140. package/dist/src-public/sanitize.js +0 -21
  141. package/dist/src-public/validate.d.ts +0 -9
  142. package/dist/src-public/validate.js +0 -28
package/dist/package.json CHANGED
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
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';