@shushed/helpers 0.0.8

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/dist-dereferenced/country.d.ts +8 -0
  2. package/dist/dist-dereferenced/country.js +2 -0
  3. package/dist/dist-dereferenced/currency.d.ts +8 -0
  4. package/dist/dist-dereferenced/currency.js +2 -0
  5. package/dist/dist-dereferenced/index.d.ts +7 -0
  6. package/dist/dist-dereferenced/index.js +7 -0
  7. package/dist/dist-dereferenced/messages/index.d.ts +1 -0
  8. package/dist/dist-dereferenced/messages/index.js +1 -0
  9. package/dist/dist-dereferenced/messages/order/delivered.d.ts +3410 -0
  10. package/dist/dist-dereferenced/messages/order/delivered.js +2 -0
  11. package/dist/dist-dereferenced/messages/order/index.d.ts +6 -0
  12. package/dist/dist-dereferenced/messages/order/index.js +6 -0
  13. package/dist/dist-dereferenced/messages/order/new.d.ts +3410 -0
  14. package/dist/dist-dereferenced/messages/order/new.js +2 -0
  15. package/dist/dist-dereferenced/messages/order/processed.d.ts +3404 -0
  16. package/dist/dist-dereferenced/messages/order/processed.js +2 -0
  17. package/dist/dist-dereferenced/messages/order/return-initiated.d.ts +3410 -0
  18. package/dist/dist-dereferenced/messages/order/return-initiated.js +2 -0
  19. package/dist/dist-dereferenced/messages/order/returned.d.ts +3410 -0
  20. package/dist/dist-dereferenced/messages/order/returned.js +2 -0
  21. package/dist/dist-dereferenced/messages/order/shipped.d.ts +3410 -0
  22. package/dist/dist-dereferenced/messages/order/shipped.js +2 -0
  23. package/dist/dist-dereferenced/money.d.ts +43 -0
  24. package/dist/dist-dereferenced/money.js +2 -0
  25. package/dist/dist-dereferenced/order/address.d.ts +51 -0
  26. package/dist/dist-dereferenced/order/address.js +2 -0
  27. package/dist/dist-dereferenced/order/customer.d.ts +10 -0
  28. package/dist/dist-dereferenced/order/customer.js +2 -0
  29. package/dist/dist-dereferenced/order/index.d.ts +7 -0
  30. package/dist/dist-dereferenced/order/index.js +7 -0
  31. package/dist/dist-dereferenced/order/item.d.ts +450 -0
  32. package/dist/dist-dereferenced/order/item.js +2 -0
  33. package/dist/dist-dereferenced/order/orderMain.d.ts +3394 -0
  34. package/dist/dist-dereferenced/order/orderMain.js +2 -0
  35. package/dist/dist-dereferenced/order/payment.d.ts +90 -0
  36. package/dist/dist-dereferenced/order/payment.js +2 -0
  37. package/dist/dist-dereferenced/order/shipment/index.d.ts +5 -0
  38. package/dist/dist-dereferenced/order/shipment/index.js +5 -0
  39. package/dist/dist-dereferenced/order/shipment/item/index.d.ts +3 -0
  40. package/dist/dist-dereferenced/order/shipment/item/index.js +3 -0
  41. package/dist/dist-dereferenced/order/shipment/item/itemMain.d.ts +19 -0
  42. package/dist/dist-dereferenced/order/shipment/item/itemMain.js +2 -0
  43. package/dist/dist-dereferenced/order/shipment/item/returned.d.ts +38 -0
  44. package/dist/dist-dereferenced/order/shipment/item/returned.js +2 -0
  45. package/dist/dist-dereferenced/order/shipment/pos/index.d.ts +4 -0
  46. package/dist/dist-dereferenced/order/shipment/pos/index.js +4 -0
  47. package/dist/dist-dereferenced/order/shipment/pos/outbound.d.ts +351 -0
  48. package/dist/dist-dereferenced/order/shipment/pos/outbound.js +2 -0
  49. package/dist/dist-dereferenced/order/shipment/pos/posMain.d.ts +308 -0
  50. package/dist/dist-dereferenced/order/shipment/pos/posMain.js +2 -0
  51. package/dist/dist-dereferenced/order/shipment/pos/return.d.ts +365 -0
  52. package/dist/dist-dereferenced/order/shipment/pos/return.js +2 -0
  53. package/dist/dist-dereferenced/order/shipment/shipmentMain.d.ts +275 -0
  54. package/dist/dist-dereferenced/order/shipment/shipmentMain.js +2 -0
  55. package/dist/dist-dereferenced/order/shipment/shipped/index.d.ts +4 -0
  56. package/dist/dist-dereferenced/order/shipment/shipped/index.js +4 -0
  57. package/dist/dist-dereferenced/order/shipment/shipped/outbound.d.ts +348 -0
  58. package/dist/dist-dereferenced/order/shipment/shipped/outbound.js +2 -0
  59. package/dist/dist-dereferenced/order/shipment/shipped/return.d.ts +369 -0
  60. package/dist/dist-dereferenced/order/shipment/shipped/return.js +2 -0
  61. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +307 -0
  62. package/dist/dist-dereferenced/order/shipment/shipped/shippedMain.js +2 -0
  63. package/dist/dist-dereferenced/productDraft.d.ts +523 -0
  64. package/dist/dist-dereferenced/productDraft.js +2 -0
  65. package/dist/dist-dereferenced/total.d.ts +185 -0
  66. package/dist/dist-dereferenced/total.js +2 -0
  67. package/dist/dist-types/country.d.ts +2 -0
  68. package/dist/dist-types/country.js +1 -0
  69. package/dist/dist-types/currency.d.ts +2 -0
  70. package/dist/dist-types/currency.js +1 -0
  71. package/dist/dist-types/index.d.ts +7 -0
  72. package/dist/dist-types/index.js +2 -0
  73. package/dist/dist-types/messages/index.d.ts +1 -0
  74. package/dist/dist-types/messages/index.js +1 -0
  75. package/dist/dist-types/messages/order/delivered.d.ts +178 -0
  76. package/dist/dist-types/messages/order/delivered.js +1 -0
  77. package/dist/dist-types/messages/order/index.d.ts +6 -0
  78. package/dist/dist-types/messages/order/index.js +1 -0
  79. package/dist/dist-types/messages/order/new.d.ts +178 -0
  80. package/dist/dist-types/messages/order/new.js +1 -0
  81. package/dist/dist-types/messages/order/processed.d.ts +176 -0
  82. package/dist/dist-types/messages/order/processed.js +1 -0
  83. package/dist/dist-types/messages/order/return-initiated.d.ts +178 -0
  84. package/dist/dist-types/messages/order/return-initiated.js +1 -0
  85. package/dist/dist-types/messages/order/returned.d.ts +178 -0
  86. package/dist/dist-types/messages/order/returned.js +1 -0
  87. package/dist/dist-types/messages/order/shipped.d.ts +178 -0
  88. package/dist/dist-types/messages/order/shipped.js +1 -0
  89. package/dist/dist-types/money.d.ts +11 -0
  90. package/dist/dist-types/money.js +1 -0
  91. package/dist/dist-types/order/address.d.ts +12 -0
  92. package/dist/dist-types/order/address.js +1 -0
  93. package/dist/dist-types/order/customer.d.ts +3 -0
  94. package/dist/dist-types/order/customer.js +1 -0
  95. package/dist/dist-types/order/index.d.ts +7 -0
  96. package/dist/dist-types/order/index.js +1 -0
  97. package/dist/dist-types/order/item.d.ts +70 -0
  98. package/dist/dist-types/order/item.js +1 -0
  99. package/dist/dist-types/order/orderMain.d.ts +175 -0
  100. package/dist/dist-types/order/orderMain.js +1 -0
  101. package/dist/dist-types/order/payment.d.ts +25 -0
  102. package/dist/dist-types/order/payment.js +1 -0
  103. package/dist/dist-types/order/shipment/index.d.ts +5 -0
  104. package/dist/dist-types/order/shipment/index.js +3 -0
  105. package/dist/dist-types/order/shipment/item/index.d.ts +3 -0
  106. package/dist/dist-types/order/shipment/item/index.js +1 -0
  107. package/dist/dist-types/order/shipment/item/itemMain.d.ts +5 -0
  108. package/dist/dist-types/order/shipment/item/itemMain.js +1 -0
  109. package/dist/dist-types/order/shipment/item/returned.d.ts +9 -0
  110. package/dist/dist-types/order/shipment/item/returned.js +1 -0
  111. package/dist/dist-types/order/shipment/pos/index.d.ts +4 -0
  112. package/dist/dist-types/order/shipment/pos/index.js +1 -0
  113. package/dist/dist-types/order/shipment/pos/outbound.d.ts +71 -0
  114. package/dist/dist-types/order/shipment/pos/outbound.js +1 -0
  115. package/dist/dist-types/order/shipment/pos/posMain.d.ts +66 -0
  116. package/dist/dist-types/order/shipment/pos/posMain.js +1 -0
  117. package/dist/dist-types/order/shipment/pos/return.d.ts +70 -0
  118. package/dist/dist-types/order/shipment/pos/return.js +1 -0
  119. package/dist/dist-types/order/shipment/shipmentMain.d.ts +58 -0
  120. package/dist/dist-types/order/shipment/shipmentMain.js +1 -0
  121. package/dist/dist-types/order/shipment/shipped/index.d.ts +4 -0
  122. package/dist/dist-types/order/shipment/shipped/index.js +1 -0
  123. package/dist/dist-types/order/shipment/shipped/outbound.d.ts +71 -0
  124. package/dist/dist-types/order/shipment/shipped/outbound.js +1 -0
  125. package/dist/dist-types/order/shipment/shipped/return.d.ts +70 -0
  126. package/dist/dist-types/order/shipment/shipped/return.js +1 -0
  127. package/dist/dist-types/order/shipment/shipped/shippedMain.d.ts +65 -0
  128. package/dist/dist-types/order/shipment/shipped/shippedMain.js +1 -0
  129. package/dist/dist-types/productDraft.d.ts +87 -0
  130. package/dist/dist-types/productDraft.js +1 -0
  131. package/dist/dist-types/total.d.ts +43 -0
  132. package/dist/dist-types/total.js +1 -0
  133. package/dist/index.d.ts +3 -0
  134. package/dist/index.js +3 -0
  135. package/dist/package.json +23 -0
  136. package/dist/src-public/index.d.ts +2 -0
  137. package/dist/src-public/index.js +2 -0
  138. package/dist/src-public/sanitize.d.ts +4 -0
  139. package/dist/src-public/sanitize.js +21 -0
  140. package/dist/src-public/validate.d.ts +9 -0
  141. package/dist/src-public/validate.js +28 -0
  142. package/package.json +23 -0
@@ -0,0 +1,275 @@
1
+ declare const schema: {
2
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
3
+ readonly title: "Shipment";
4
+ readonly type: "object";
5
+ readonly $id: "https://shushed.example.com/order/shipment.schema.json";
6
+ readonly additionalProperties: false;
7
+ readonly allOf: readonly [{
8
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
9
+ readonly title: "Total";
10
+ readonly type: "object";
11
+ readonly $id: "https://shushed.example.com/total.schema.json";
12
+ readonly additionalProperties: false;
13
+ readonly properties: {
14
+ readonly amount_net: {
15
+ readonly title: "Amount Net";
16
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
17
+ readonly type: "object";
18
+ readonly additionalProperties: false;
19
+ readonly $id: "https://shushed.example.com/money.schema.json";
20
+ readonly properties: {
21
+ readonly value: {
22
+ readonly type: "integer";
23
+ readonly minimum: 1;
24
+ };
25
+ readonly decimal_places: {
26
+ readonly type: "integer";
27
+ readonly minimum: 0;
28
+ readonly maximum: 4;
29
+ };
30
+ readonly currency: {
31
+ readonly title: "Currency";
32
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
33
+ readonly $id: "https://shushed.example.com/currency.schema.json";
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"];
36
+ };
37
+ readonly lcy_value: {
38
+ readonly type: "integer";
39
+ readonly minimum: 1;
40
+ };
41
+ readonly lcy_currency: {
42
+ readonly title: "LCY Currency";
43
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
44
+ readonly $id: "https://shushed.example.com/currency.schema.json";
45
+ readonly type: "string";
46
+ 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"];
47
+ };
48
+ readonly lcy_decimal_places: {
49
+ readonly type: "integer";
50
+ readonly minimum: 0;
51
+ readonly maximum: 4;
52
+ };
53
+ };
54
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
55
+ };
56
+ readonly amount_gross: {
57
+ readonly title: "Amount gross";
58
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
59
+ readonly type: "object";
60
+ readonly additionalProperties: false;
61
+ readonly $id: "https://shushed.example.com/money.schema.json";
62
+ readonly properties: {
63
+ readonly value: {
64
+ readonly type: "integer";
65
+ readonly minimum: 1;
66
+ };
67
+ readonly decimal_places: {
68
+ readonly type: "integer";
69
+ readonly minimum: 0;
70
+ readonly maximum: 4;
71
+ };
72
+ readonly currency: {
73
+ readonly title: "Currency";
74
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
75
+ readonly $id: "https://shushed.example.com/currency.schema.json";
76
+ readonly type: "string";
77
+ 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"];
78
+ };
79
+ readonly lcy_value: {
80
+ readonly type: "integer";
81
+ readonly minimum: 1;
82
+ };
83
+ readonly lcy_currency: {
84
+ readonly title: "LCY Currency";
85
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
86
+ readonly $id: "https://shushed.example.com/currency.schema.json";
87
+ readonly type: "string";
88
+ 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"];
89
+ };
90
+ readonly lcy_decimal_places: {
91
+ readonly type: "integer";
92
+ readonly minimum: 0;
93
+ readonly maximum: 4;
94
+ };
95
+ };
96
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
97
+ };
98
+ readonly discount_amount_net: {
99
+ readonly title: "Discount Amount Net";
100
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
101
+ readonly type: "object";
102
+ readonly additionalProperties: false;
103
+ readonly $id: "https://shushed.example.com/money.schema.json";
104
+ readonly properties: {
105
+ readonly value: {
106
+ readonly type: "integer";
107
+ readonly minimum: 1;
108
+ };
109
+ readonly decimal_places: {
110
+ readonly type: "integer";
111
+ readonly minimum: 0;
112
+ readonly maximum: 4;
113
+ };
114
+ readonly currency: {
115
+ readonly title: "Currency";
116
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
117
+ readonly $id: "https://shushed.example.com/currency.schema.json";
118
+ readonly type: "string";
119
+ 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"];
120
+ };
121
+ readonly lcy_value: {
122
+ readonly type: "integer";
123
+ readonly minimum: 1;
124
+ };
125
+ readonly lcy_currency: {
126
+ readonly title: "LCY Currency";
127
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
128
+ readonly $id: "https://shushed.example.com/currency.schema.json";
129
+ readonly type: "string";
130
+ 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"];
131
+ };
132
+ readonly lcy_decimal_places: {
133
+ readonly type: "integer";
134
+ readonly minimum: 0;
135
+ readonly maximum: 4;
136
+ };
137
+ };
138
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
139
+ };
140
+ readonly discount_amount_gross: {
141
+ readonly title: "Discount Amount Gross";
142
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
143
+ readonly type: "object";
144
+ readonly additionalProperties: false;
145
+ readonly $id: "https://shushed.example.com/money.schema.json";
146
+ readonly properties: {
147
+ readonly value: {
148
+ readonly type: "integer";
149
+ readonly minimum: 1;
150
+ };
151
+ readonly decimal_places: {
152
+ readonly type: "integer";
153
+ readonly minimum: 0;
154
+ readonly maximum: 4;
155
+ };
156
+ readonly currency: {
157
+ readonly title: "Currency";
158
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
159
+ readonly $id: "https://shushed.example.com/currency.schema.json";
160
+ readonly type: "string";
161
+ 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"];
162
+ };
163
+ readonly lcy_value: {
164
+ readonly type: "integer";
165
+ readonly minimum: 1;
166
+ };
167
+ readonly lcy_currency: {
168
+ readonly title: "LCY Currency";
169
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
170
+ readonly $id: "https://shushed.example.com/currency.schema.json";
171
+ readonly type: "string";
172
+ 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"];
173
+ };
174
+ readonly lcy_decimal_places: {
175
+ readonly type: "integer";
176
+ readonly minimum: 0;
177
+ readonly maximum: 4;
178
+ };
179
+ };
180
+ readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
181
+ };
182
+ readonly discount_amount_percent: {
183
+ readonly type: "number";
184
+ readonly title: "Discount Amount Percent";
185
+ readonly minimum: 0;
186
+ readonly maximum: 100;
187
+ };
188
+ };
189
+ readonly required: readonly ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"];
190
+ }, {
191
+ readonly type: "object";
192
+ readonly additionalProperties: false;
193
+ readonly properties: {
194
+ readonly erp_id: {
195
+ readonly type: readonly ["string"];
196
+ };
197
+ readonly type: {
198
+ readonly type: readonly ["string"];
199
+ readonly enum: readonly ["SHIPPED-OUTBOUND", "SHIPPED-RETURN", "POS-OUTBOUND", "POS-RETURN"];
200
+ };
201
+ readonly shipped_at: {
202
+ readonly type: readonly ["string"];
203
+ readonly format: "date-time";
204
+ };
205
+ readonly status: {
206
+ readonly type: readonly ["string"];
207
+ readonly enum: readonly ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"];
208
+ };
209
+ readonly items: {
210
+ readonly type: readonly ["array"];
211
+ readonly additionalProperties: false;
212
+ readonly items: {
213
+ readonly type: "object";
214
+ readonly additionalProperties: false;
215
+ readonly anyOf: readonly [{
216
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
217
+ readonly title: "Order Shipment Item";
218
+ readonly type: "object";
219
+ readonly additionalProperties: false;
220
+ readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
221
+ readonly properties: {
222
+ readonly lineNumber: {
223
+ readonly type: readonly ["integer"];
224
+ readonly minimum: 0;
225
+ };
226
+ readonly quantity: {
227
+ readonly type: readonly ["integer"];
228
+ readonly minimum: 1;
229
+ };
230
+ };
231
+ readonly required: readonly ["lineNumber", "quantity"];
232
+ }, {
233
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
234
+ readonly title: "Order Shipment Item Returned";
235
+ readonly type: "object";
236
+ readonly additionalProperties: false;
237
+ readonly $id: "https://shushed.example.com/order/shipment/item/returned.schema.json";
238
+ readonly allOf: readonly [{
239
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
240
+ readonly title: "Order Shipment Item";
241
+ readonly type: "object";
242
+ readonly additionalProperties: false;
243
+ readonly $id: "https://shushed.example.com/order/shipment/item.schema.json";
244
+ readonly properties: {
245
+ readonly lineNumber: {
246
+ readonly type: readonly ["integer"];
247
+ readonly minimum: 0;
248
+ };
249
+ readonly quantity: {
250
+ readonly type: readonly ["integer"];
251
+ readonly minimum: 1;
252
+ };
253
+ };
254
+ readonly required: readonly ["lineNumber", "quantity"];
255
+ }, {
256
+ readonly type: "object";
257
+ readonly additionalProperties: false;
258
+ readonly properties: {
259
+ readonly returnReasonCode: {
260
+ readonly type: readonly ["string"];
261
+ };
262
+ readonly returnReason: {
263
+ readonly type: readonly ["string", "null"];
264
+ };
265
+ };
266
+ readonly required: readonly ["returnReasonCode", "returnReason"];
267
+ }];
268
+ }];
269
+ };
270
+ };
271
+ };
272
+ readonly required: readonly ["erp_id", "shipped_at", "status", "items"];
273
+ }];
274
+ };
275
+ export default schema;
@@ -0,0 +1,2 @@
1
+ const schema = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Shipment", "type": "object", "$id": "https://shushed.example.com/order/shipment.schema.json", "additionalProperties": false, "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Total", "type": "object", "$id": "https://shushed.example.com/total.schema.json", "additionalProperties": false, "properties": { "amount_net": { "title": "Amount Net", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "amount_gross": { "title": "Amount gross", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_net": { "title": "Discount Amount Net", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_gross": { "title": "Discount Amount Gross", "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/money.schema.json", "properties": { "value": { "type": "integer", "minimum": 1 }, "decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 }, "currency": { "title": "Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_value": { "type": "integer", "minimum": 1 }, "lcy_currency": { "title": "LCY Currency", "$schema": "http://json-schema.org/draft-07/schema#", "$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"] }, "lcy_decimal_places": { "type": "integer", "minimum": 0, "maximum": 4 } }, "required": ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"] }, "discount_amount_percent": { "type": "number", "title": "Discount Amount Percent", "minimum": 0, "maximum": 100 } }, "required": ["amount_net", "amount_gross", "discount_amount_net", "discount_amount_gross", "discount_amount_percent"] }, { "type": "object", "additionalProperties": false, "properties": { "erp_id": { "type": ["string"] }, "type": { "type": ["string"], "enum": ["SHIPPED-OUTBOUND", "SHIPPED-RETURN", "POS-OUTBOUND", "POS-RETURN"] }, "shipped_at": { "type": ["string"], "format": "date-time" }, "status": { "type": ["string"], "enum": ["PENDING", "SHIPPED", "RECEIVED", "CANCELLED"] }, "items": { "type": ["array"], "additionalProperties": false, "items": { "type": "object", "additionalProperties": false, "anyOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] }, { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item Returned", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item/returned.schema.json", "allOf": [{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Order Shipment Item", "type": "object", "additionalProperties": false, "$id": "https://shushed.example.com/order/shipment/item.schema.json", "properties": { "lineNumber": { "type": ["integer"], "minimum": 0 }, "quantity": { "type": ["integer"], "minimum": 1 } }, "required": ["lineNumber", "quantity"] }, { "type": "object", "additionalProperties": false, "properties": { "returnReasonCode": { "type": ["string"] }, "returnReason": { "type": ["string", "null"] } }, "required": ["returnReasonCode", "returnReason"] }] }] } } }, "required": ["erp_id", "shipped_at", "status", "items"] }] };
2
+ export default schema;
@@ -0,0 +1,4 @@
1
+ export { default as Outbound } from './outbound';
2
+ export { default as Return } from './return';
3
+ import MainModule from './shippedMain';
4
+ export default MainModule;
@@ -0,0 +1,4 @@
1
+ export { default as Outbound } from './outbound';
2
+ export { default as Return } from './return';
3
+ import MainModule from './shippedMain';
4
+ export default MainModule;