@shushed/helpers 0.0.202-v2-20251208085030 → 0.0.203-bug-erp-770-20251208112219

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 (236) hide show
  1. package/dist/index.d.ts +34970 -0
  2. package/dist/index.js +113321 -0
  3. package/dist/package.json +3 -6
  4. package/package.json +4 -7
  5. package/dist/cjs/dist-dereferenced/asset.js +0 -4
  6. package/dist/cjs/dist-dereferenced/category.js +0 -4
  7. package/dist/cjs/dist-dereferenced/country.js +0 -4
  8. package/dist/cjs/dist-dereferenced/currency.js +0 -4
  9. package/dist/cjs/dist-dereferenced/customer-segment.js +0 -4
  10. package/dist/cjs/dist-dereferenced/development-colour.js +0 -4
  11. package/dist/cjs/dist-dereferenced/index.js +0 -69
  12. package/dist/cjs/dist-dereferenced/marketing-preferences.js +0 -4
  13. package/dist/cjs/dist-dereferenced/messages/ean-change.js +0 -4
  14. package/dist/cjs/dist-dereferenced/messages/index.js +0 -50
  15. package/dist/cjs/dist-dereferenced/messages/order/delivered.js +0 -4
  16. package/dist/cjs/dist-dereferenced/messages/order/index.js +0 -18
  17. package/dist/cjs/dist-dereferenced/messages/order/new.js +0 -4
  18. package/dist/cjs/dist-dereferenced/messages/order/processed.js +0 -4
  19. package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +0 -4
  20. package/dist/cjs/dist-dereferenced/messages/order/returned.js +0 -4
  21. package/dist/cjs/dist-dereferenced/messages/order/shipped.js +0 -4
  22. package/dist/cjs/dist-dereferenced/messages/price-change.js +0 -4
  23. package/dist/cjs/dist-dereferenced/messages/product-category.js +0 -4
  24. package/dist/cjs/dist-dereferenced/messages/product-draft.js +0 -4
  25. package/dist/cjs/dist-dereferenced/messages/product.js +0 -4
  26. package/dist/cjs/dist-dereferenced/money.js +0 -4
  27. package/dist/cjs/dist-dereferenced/order/address.js +0 -4
  28. package/dist/cjs/dist-dereferenced/order/customer.js +0 -4
  29. package/dist/cjs/dist-dereferenced/order/index.js +0 -51
  30. package/dist/cjs/dist-dereferenced/order/item.js +0 -4
  31. package/dist/cjs/dist-dereferenced/order/orderMain.js +0 -4
  32. package/dist/cjs/dist-dereferenced/order/payment.js +0 -4
  33. package/dist/cjs/dist-dereferenced/order/shipment/index.js +0 -45
  34. package/dist/cjs/dist-dereferenced/order/shipment/item/index.js +0 -11
  35. package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +0 -4
  36. package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +0 -4
  37. package/dist/cjs/dist-dereferenced/order/shipment/pos/index.js +0 -13
  38. package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +0 -4
  39. package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +0 -4
  40. package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +0 -4
  41. package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +0 -4
  42. package/dist/cjs/dist-dereferenced/order/shipment/shipped/index.js +0 -13
  43. package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +0 -4
  44. package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +0 -4
  45. package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -4
  46. package/dist/cjs/dist-dereferenced/price.js +0 -4
  47. package/dist/cjs/dist-dereferenced/product-category.js +0 -4
  48. package/dist/cjs/dist-dereferenced/product-draft.js +0 -4
  49. package/dist/cjs/dist-dereferenced/product.js +0 -4
  50. package/dist/cjs/dist-dereferenced/stock.js +0 -4
  51. package/dist/cjs/dist-dereferenced/total.js +0 -4
  52. package/dist/cjs/dist-types/asset.js +0 -2
  53. package/dist/cjs/dist-types/category.js +0 -2
  54. package/dist/cjs/dist-types/country.js +0 -2
  55. package/dist/cjs/dist-types/currency.js +0 -2
  56. package/dist/cjs/dist-types/customer-segment.js +0 -2
  57. package/dist/cjs/dist-types/development-colour.js +0 -2
  58. package/dist/cjs/dist-types/index.js +0 -38
  59. package/dist/cjs/dist-types/marketing-preferences.js +0 -2
  60. package/dist/cjs/dist-types/messages/ean-change.js +0 -2
  61. package/dist/cjs/dist-types/messages/index.js +0 -37
  62. package/dist/cjs/dist-types/messages/order/delivered.js +0 -2
  63. package/dist/cjs/dist-types/messages/order/index.js +0 -2
  64. package/dist/cjs/dist-types/messages/order/new.js +0 -2
  65. package/dist/cjs/dist-types/messages/order/processed.js +0 -2
  66. package/dist/cjs/dist-types/messages/order/return-initiated.js +0 -2
  67. package/dist/cjs/dist-types/messages/order/returned.js +0 -2
  68. package/dist/cjs/dist-types/messages/order/shipped.js +0 -2
  69. package/dist/cjs/dist-types/messages/price-change.js +0 -2
  70. package/dist/cjs/dist-types/messages/product-category.js +0 -2
  71. package/dist/cjs/dist-types/messages/product-draft.js +0 -2
  72. package/dist/cjs/dist-types/messages/product.js +0 -2
  73. package/dist/cjs/dist-types/money.js +0 -2
  74. package/dist/cjs/dist-types/order/address.js +0 -2
  75. package/dist/cjs/dist-types/order/customer.js +0 -2
  76. package/dist/cjs/dist-types/order/index.js +0 -37
  77. package/dist/cjs/dist-types/order/item.js +0 -2
  78. package/dist/cjs/dist-types/order/orderMain.js +0 -2
  79. package/dist/cjs/dist-types/order/payment.js +0 -2
  80. package/dist/cjs/dist-types/order/shipment/index.js +0 -39
  81. package/dist/cjs/dist-types/order/shipment/item/index.js +0 -2
  82. package/dist/cjs/dist-types/order/shipment/item/itemMain.js +0 -2
  83. package/dist/cjs/dist-types/order/shipment/item/returned.js +0 -2
  84. package/dist/cjs/dist-types/order/shipment/pos/index.js +0 -2
  85. package/dist/cjs/dist-types/order/shipment/pos/outbound.js +0 -2
  86. package/dist/cjs/dist-types/order/shipment/pos/posMain.js +0 -2
  87. package/dist/cjs/dist-types/order/shipment/pos/return.js +0 -2
  88. package/dist/cjs/dist-types/order/shipment/shipmentMain.js +0 -2
  89. package/dist/cjs/dist-types/order/shipment/shipped/index.js +0 -2
  90. package/dist/cjs/dist-types/order/shipment/shipped/outbound.js +0 -2
  91. package/dist/cjs/dist-types/order/shipment/shipped/return.js +0 -2
  92. package/dist/cjs/dist-types/order/shipment/shipped/shippedMain.js +0 -2
  93. package/dist/cjs/dist-types/price.js +0 -2
  94. package/dist/cjs/dist-types/product-category.js +0 -2
  95. package/dist/cjs/dist-types/product-draft.js +0 -2
  96. package/dist/cjs/dist-types/product.js +0 -2
  97. package/dist/cjs/dist-types/stock.js +0 -2
  98. package/dist/cjs/dist-types/total.js +0 -2
  99. package/dist/cjs/index.js +0 -39
  100. package/dist/cjs/src-public/airtable.js +0 -625
  101. package/dist/cjs/src-public/bigquery.js +0 -59
  102. package/dist/cjs/src-public/centra.js +0 -1053
  103. package/dist/cjs/src-public/cloudtasks.js +0 -207
  104. package/dist/cjs/src-public/dato.js +0 -680
  105. package/dist/cjs/src-public/env.js +0 -900
  106. package/dist/cjs/src-public/getEventTime.js +0 -28
  107. package/dist/cjs/src-public/index.js +0 -52
  108. package/dist/cjs/src-public/ipValidation.js +0 -167
  109. package/dist/cjs/src-public/jwks.js +0 -108
  110. package/dist/cjs/src-public/pubsub.js +0 -423
  111. package/dist/cjs/src-public/rateLimit.js +0 -140
  112. package/dist/cjs/src-public/redisClient.js +0 -44
  113. package/dist/cjs/src-public/runtime.js +0 -145
  114. package/dist/cjs/src-public/sanitize.js +0 -25
  115. package/dist/cjs/src-public/scheduler.js +0 -247
  116. package/dist/cjs/src-public/secret.js +0 -16
  117. package/dist/cjs/src-public/setHeaders.js +0 -16
  118. package/dist/cjs/src-public/types.js +0 -2
  119. package/dist/cjs/src-public/utils.js +0 -457
  120. package/dist/cjs/src-public/validate.js +0 -40
  121. package/dist/types/dist-dereferenced/asset.d.ts +0 -51
  122. package/dist/types/dist-dereferenced/category.d.ts +0 -58
  123. package/dist/types/dist-dereferenced/country.d.ts +0 -8
  124. package/dist/types/dist-dereferenced/currency.d.ts +0 -8
  125. package/dist/types/dist-dereferenced/customer-segment.d.ts +0 -26
  126. package/dist/types/dist-dereferenced/development-colour.d.ts +0 -114
  127. package/dist/types/dist-dereferenced/index.d.ts +0 -16
  128. package/dist/types/dist-dereferenced/marketing-preferences.d.ts +0 -31
  129. package/dist/types/dist-dereferenced/messages/ean-change.d.ts +0 -17
  130. package/dist/types/dist-dereferenced/messages/index.d.ts +0 -6
  131. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +0 -3414
  132. package/dist/types/dist-dereferenced/messages/order/index.d.ts +0 -6
  133. package/dist/types/dist-dereferenced/messages/order/new.d.ts +0 -3414
  134. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +0 -3408
  135. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3414
  136. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +0 -3413
  137. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +0 -3412
  138. package/dist/types/dist-dereferenced/messages/price-change.d.ts +0 -67
  139. package/dist/types/dist-dereferenced/messages/product-category.d.ts +0 -33
  140. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +0 -589
  141. package/dist/types/dist-dereferenced/messages/product.d.ts +0 -628
  142. package/dist/types/dist-dereferenced/money.d.ts +0 -41
  143. package/dist/types/dist-dereferenced/order/address.d.ts +0 -98
  144. package/dist/types/dist-dereferenced/order/customer.d.ts +0 -309
  145. package/dist/types/dist-dereferenced/order/index.d.ts +0 -3404
  146. package/dist/types/dist-dereferenced/order/item.d.ts +0 -336
  147. package/dist/types/dist-dereferenced/order/orderMain.d.ts +0 -3399
  148. package/dist/types/dist-dereferenced/order/payment.d.ts +0 -94
  149. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +0 -253
  150. package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +0 -19
  151. package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -18
  152. package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +0 -34
  153. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +0 -282
  154. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -320
  155. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -280
  156. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +0 -331
  157. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -250
  158. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -288
  159. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -286
  160. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -287
  161. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -286
  162. package/dist/types/dist-dereferenced/price.d.ts +0 -58
  163. package/dist/types/dist-dereferenced/product-category.d.ts +0 -24
  164. package/dist/types/dist-dereferenced/product-draft.d.ts +0 -580
  165. package/dist/types/dist-dereferenced/product.d.ts +0 -619
  166. package/dist/types/dist-dereferenced/stock.d.ts +0 -74
  167. package/dist/types/dist-dereferenced/total.d.ts +0 -172
  168. package/dist/types/dist-types/asset.d.ts +0 -16
  169. package/dist/types/dist-types/category.d.ts +0 -20
  170. package/dist/types/dist-types/country.d.ts +0 -2
  171. package/dist/types/dist-types/currency.d.ts +0 -2
  172. package/dist/types/dist-types/customer-segment.d.ts +0 -6
  173. package/dist/types/dist-types/development-colour.d.ts +0 -31
  174. package/dist/types/dist-types/index.d.ts +0 -16
  175. package/dist/types/dist-types/marketing-preferences.d.ts +0 -9
  176. package/dist/types/dist-types/messages/ean-change.d.ts +0 -5
  177. package/dist/types/dist-types/messages/index.d.ts +0 -6
  178. package/dist/types/dist-types/messages/order/delivered.d.ts +0 -292
  179. package/dist/types/dist-types/messages/order/index.d.ts +0 -6
  180. package/dist/types/dist-types/messages/order/new.d.ts +0 -292
  181. package/dist/types/dist-types/messages/order/processed.d.ts +0 -292
  182. package/dist/types/dist-types/messages/order/return-initiated.d.ts +0 -292
  183. package/dist/types/dist-types/messages/order/returned.d.ts +0 -293
  184. package/dist/types/dist-types/messages/order/shipped.d.ts +0 -293
  185. package/dist/types/dist-types/messages/price-change.d.ts +0 -16
  186. package/dist/types/dist-types/messages/product-category.d.ts +0 -7
  187. package/dist/types/dist-types/messages/product-draft.d.ts +0 -136
  188. package/dist/types/dist-types/messages/product.d.ts +0 -144
  189. package/dist/types/dist-types/money.d.ts +0 -11
  190. package/dist/types/dist-types/order/address.d.ts +0 -27
  191. package/dist/types/dist-types/order/customer.d.ts +0 -81
  192. package/dist/types/dist-types/order/index.d.ts +0 -8
  193. package/dist/types/dist-types/order/item.d.ts +0 -85
  194. package/dist/types/dist-types/order/orderMain.d.ts +0 -289
  195. package/dist/types/dist-types/order/payment.d.ts +0 -26
  196. package/dist/types/dist-types/order/shipment/index.d.ts +0 -6
  197. package/dist/types/dist-types/order/shipment/item/index.d.ts +0 -4
  198. package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +0 -6
  199. package/dist/types/dist-types/order/shipment/item/returned.d.ts +0 -11
  200. package/dist/types/dist-types/order/shipment/pos/index.d.ts +0 -5
  201. package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +0 -76
  202. package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +0 -71
  203. package/dist/types/dist-types/order/shipment/pos/return.d.ts +0 -75
  204. package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +0 -62
  205. package/dist/types/dist-types/order/shipment/shipped/index.d.ts +0 -5
  206. package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +0 -68
  207. package/dist/types/dist-types/order/shipment/shipped/return.d.ts +0 -68
  208. package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -69
  209. package/dist/types/dist-types/price.d.ts +0 -15
  210. package/dist/types/dist-types/product-category.d.ts +0 -6
  211. package/dist/types/dist-types/product-draft.d.ts +0 -135
  212. package/dist/types/dist-types/product.d.ts +0 -143
  213. package/dist/types/dist-types/stock.d.ts +0 -19
  214. package/dist/types/dist-types/total.d.ts +0 -44
  215. package/dist/types/index.d.ts +0 -3
  216. package/dist/types/src-public/airtable.d.ts +0 -227
  217. package/dist/types/src-public/bigquery.d.ts +0 -17
  218. package/dist/types/src-public/centra.d.ts +0 -176
  219. package/dist/types/src-public/cloudtasks.d.ts +0 -74
  220. package/dist/types/src-public/dato.d.ts +0 -95
  221. package/dist/types/src-public/env.d.ts +0 -144
  222. package/dist/types/src-public/getEventTime.d.ts +0 -1
  223. package/dist/types/src-public/index.d.ts +0 -18
  224. package/dist/types/src-public/ipValidation.d.ts +0 -15
  225. package/dist/types/src-public/jwks.d.ts +0 -15
  226. package/dist/types/src-public/pubsub.d.ts +0 -95
  227. package/dist/types/src-public/rateLimit.d.ts +0 -21
  228. package/dist/types/src-public/redisClient.d.ts +0 -6
  229. package/dist/types/src-public/runtime.d.ts +0 -58
  230. package/dist/types/src-public/sanitize.d.ts +0 -4
  231. package/dist/types/src-public/scheduler.d.ts +0 -71
  232. package/dist/types/src-public/secret.d.ts +0 -6
  233. package/dist/types/src-public/setHeaders.d.ts +0 -13
  234. package/dist/types/src-public/types.d.ts +0 -264
  235. package/dist/types/src-public/utils.d.ts +0 -101
  236. package/dist/types/src-public/validate.d.ts +0 -9
@@ -1,41 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Money";
4
- readonly type: "object";
5
- readonly additionalProperties: false;
6
- readonly properties: {
7
- readonly value: {
8
- readonly type: "integer";
9
- readonly minimum: 0;
10
- };
11
- readonly decimal_places: {
12
- readonly type: "integer";
13
- readonly minimum: 0;
14
- readonly maximum: 4;
15
- };
16
- readonly currency: {
17
- readonly title: "Currency";
18
- readonly $schema: "http://json-schema.org/draft-07/schema#";
19
- readonly type: "string";
20
- 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"];
21
- };
22
- readonly lcy_value: {
23
- readonly type: "integer";
24
- readonly minimum: 0;
25
- };
26
- readonly lcy_currency: {
27
- readonly title: "LCY Currency";
28
- readonly $schema: "http://json-schema.org/draft-07/schema#";
29
- readonly type: "string";
30
- 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"];
31
- };
32
- readonly lcy_decimal_places: {
33
- readonly type: "integer";
34
- readonly minimum: 0;
35
- readonly maximum: 4;
36
- };
37
- };
38
- readonly required: readonly ["value", "currency", "lcy_value", "lcy_currency", "decimal_places", "lcy_decimal_places"];
39
- readonly $id: "https://shushed.example.com/money.schema.json";
40
- };
41
- export default schema;
@@ -1,98 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Address";
4
- readonly type: "object";
5
- readonly additionalProperties: false;
6
- readonly properties: {
7
- readonly address_id: {
8
- readonly type: "string";
9
- };
10
- readonly sfcc_customer_id: {
11
- readonly type: "string";
12
- };
13
- readonly sitoo_customer_id: {
14
- readonly type: "string";
15
- };
16
- readonly bc_customer_id: {
17
- readonly type: "string";
18
- };
19
- readonly centra_customer_id: {
20
- readonly type: "string";
21
- };
22
- readonly is_default_billing: {
23
- readonly type: "boolean";
24
- };
25
- readonly is_default_shipping: {
26
- readonly type: "boolean";
27
- };
28
- readonly scv_household_id: {
29
- readonly type: readonly ["string", "null"];
30
- };
31
- readonly is_last_used_shipping: {
32
- readonly type: "boolean";
33
- };
34
- readonly is_retrieved_from_payment_method: {
35
- readonly type: "boolean";
36
- };
37
- readonly opt_in_mail: {
38
- readonly type: "boolean";
39
- };
40
- readonly company_name: {
41
- readonly type: "string";
42
- readonly maxLength: 30;
43
- };
44
- readonly first_name: {
45
- readonly type: "string";
46
- readonly maxLength: 30;
47
- readonly minLength: 1;
48
- };
49
- readonly last_name: {
50
- readonly type: "string";
51
- readonly maxLength: 30;
52
- readonly minLength: 1;
53
- };
54
- readonly address1: {
55
- readonly type: readonly ["string"];
56
- readonly minLength: 1;
57
- readonly maxLength: 30;
58
- };
59
- readonly address2: {
60
- readonly type: readonly ["string", "null"];
61
- readonly maxLength: 30;
62
- };
63
- readonly city: {
64
- readonly type: readonly ["string"];
65
- readonly maxLength: 30;
66
- readonly minLength: 1;
67
- };
68
- readonly post_code: {
69
- readonly type: readonly ["string", "null"];
70
- readonly maxLength: 20;
71
- readonly pattern: "^[A-Z0-9 ]*$";
72
- };
73
- readonly country_code: {
74
- readonly $schema: "http://json-schema.org/draft-07/schema#";
75
- readonly title: "Country";
76
- readonly type: "string";
77
- 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"];
78
- };
79
- readonly phone: {
80
- readonly type: readonly ["string", "null"];
81
- readonly maxLength: 30;
82
- };
83
- readonly click_collect_id: {
84
- readonly type: readonly ["string", "null"];
85
- };
86
- readonly created_at: {
87
- readonly type: "string";
88
- readonly format: "date-time";
89
- };
90
- readonly last_modified_at: {
91
- readonly type: "string";
92
- readonly format: "date-time";
93
- };
94
- };
95
- readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
96
- readonly $id: "https://shushed.example.com/order/address.schema.json";
97
- };
98
- export default schema;
@@ -1,309 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Customer";
4
- readonly type: "object";
5
- readonly additionalProperties: false;
6
- readonly properties: {
7
- readonly first_name: {
8
- readonly type: "string";
9
- readonly maxLength: 30;
10
- };
11
- readonly last_name: {
12
- readonly type: "string";
13
- readonly maxLength: 30;
14
- };
15
- readonly sfcc_id: {
16
- readonly type: "string";
17
- };
18
- readonly bc_customer_id: {
19
- readonly type: "string";
20
- readonly maxLength: 20;
21
- };
22
- readonly merged_bc_customer_ids: {
23
- readonly type: "array";
24
- readonly items: {
25
- readonly type: "string";
26
- };
27
- readonly example: readonly ["CUST00011111", "CUST00022222"];
28
- };
29
- readonly centra_id: {
30
- readonly type: "string";
31
- };
32
- readonly sitoo_id: {
33
- readonly type: "string";
34
- };
35
- readonly scv_customer_id: {
36
- readonly type: "string";
37
- };
38
- readonly addresses: {
39
- readonly type: "array";
40
- readonly items: {
41
- readonly $schema: "http://json-schema.org/draft-07/schema#";
42
- readonly title: "Address";
43
- readonly type: "object";
44
- readonly additionalProperties: false;
45
- readonly properties: {
46
- readonly address_id: {
47
- readonly type: "string";
48
- };
49
- readonly sfcc_customer_id: {
50
- readonly type: "string";
51
- };
52
- readonly sitoo_customer_id: {
53
- readonly type: "string";
54
- };
55
- readonly bc_customer_id: {
56
- readonly type: "string";
57
- };
58
- readonly centra_customer_id: {
59
- readonly type: "string";
60
- };
61
- readonly is_default_billing: {
62
- readonly type: "boolean";
63
- };
64
- readonly is_default_shipping: {
65
- readonly type: "boolean";
66
- };
67
- readonly scv_household_id: {
68
- readonly type: readonly ["string", "null"];
69
- };
70
- readonly is_last_used_shipping: {
71
- readonly type: "boolean";
72
- };
73
- readonly is_retrieved_from_payment_method: {
74
- readonly type: "boolean";
75
- };
76
- readonly opt_in_mail: {
77
- readonly type: "boolean";
78
- };
79
- readonly company_name: {
80
- readonly type: "string";
81
- readonly maxLength: 30;
82
- };
83
- readonly first_name: {
84
- readonly type: "string";
85
- readonly maxLength: 30;
86
- readonly minLength: 1;
87
- };
88
- readonly last_name: {
89
- readonly type: "string";
90
- readonly maxLength: 30;
91
- readonly minLength: 1;
92
- };
93
- readonly address1: {
94
- readonly type: readonly ["string"];
95
- readonly minLength: 1;
96
- readonly maxLength: 30;
97
- };
98
- readonly address2: {
99
- readonly type: readonly ["string", "null"];
100
- readonly maxLength: 30;
101
- };
102
- readonly city: {
103
- readonly type: readonly ["string"];
104
- readonly maxLength: 30;
105
- readonly minLength: 1;
106
- };
107
- readonly post_code: {
108
- readonly type: readonly ["string", "null"];
109
- readonly maxLength: 20;
110
- readonly pattern: "^[A-Z0-9 ]*$";
111
- };
112
- readonly country_code: {
113
- readonly $schema: "http://json-schema.org/draft-07/schema#";
114
- readonly title: "Country";
115
- readonly type: "string";
116
- 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"];
117
- };
118
- readonly phone: {
119
- readonly type: readonly ["string", "null"];
120
- readonly maxLength: 30;
121
- };
122
- readonly click_collect_id: {
123
- readonly type: readonly ["string", "null"];
124
- };
125
- readonly created_at: {
126
- readonly type: "string";
127
- readonly format: "date-time";
128
- };
129
- readonly last_modified_at: {
130
- readonly type: "string";
131
- readonly format: "date-time";
132
- };
133
- };
134
- readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
135
- };
136
- };
137
- readonly default_shipping_address: {
138
- readonly $schema: "http://json-schema.org/draft-07/schema#";
139
- readonly title: "Address";
140
- readonly type: "object";
141
- readonly additionalProperties: false;
142
- readonly properties: {
143
- readonly address_id: {
144
- readonly type: "string";
145
- };
146
- readonly sfcc_customer_id: {
147
- readonly type: "string";
148
- };
149
- readonly sitoo_customer_id: {
150
- readonly type: "string";
151
- };
152
- readonly bc_customer_id: {
153
- readonly type: "string";
154
- };
155
- readonly centra_customer_id: {
156
- readonly type: "string";
157
- };
158
- readonly is_default_billing: {
159
- readonly type: "boolean";
160
- };
161
- readonly is_default_shipping: {
162
- readonly type: "boolean";
163
- };
164
- readonly scv_household_id: {
165
- readonly type: readonly ["string", "null"];
166
- };
167
- readonly is_last_used_shipping: {
168
- readonly type: "boolean";
169
- };
170
- readonly is_retrieved_from_payment_method: {
171
- readonly type: "boolean";
172
- };
173
- readonly opt_in_mail: {
174
- readonly type: "boolean";
175
- };
176
- readonly company_name: {
177
- readonly type: "string";
178
- readonly maxLength: 30;
179
- };
180
- readonly first_name: {
181
- readonly type: "string";
182
- readonly maxLength: 30;
183
- readonly minLength: 1;
184
- };
185
- readonly last_name: {
186
- readonly type: "string";
187
- readonly maxLength: 30;
188
- readonly minLength: 1;
189
- };
190
- readonly address1: {
191
- readonly type: readonly ["string"];
192
- readonly minLength: 1;
193
- readonly maxLength: 30;
194
- };
195
- readonly address2: {
196
- readonly type: readonly ["string", "null"];
197
- readonly maxLength: 30;
198
- };
199
- readonly city: {
200
- readonly type: readonly ["string"];
201
- readonly maxLength: 30;
202
- readonly minLength: 1;
203
- };
204
- readonly post_code: {
205
- readonly type: readonly ["string", "null"];
206
- readonly maxLength: 20;
207
- readonly pattern: "^[A-Z0-9 ]*$";
208
- };
209
- readonly country_code: {
210
- readonly $schema: "http://json-schema.org/draft-07/schema#";
211
- readonly title: "Country";
212
- readonly type: "string";
213
- 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"];
214
- };
215
- readonly phone: {
216
- readonly type: readonly ["string", "null"];
217
- readonly maxLength: 30;
218
- };
219
- readonly click_collect_id: {
220
- readonly type: readonly ["string", "null"];
221
- };
222
- readonly created_at: {
223
- readonly type: "string";
224
- readonly format: "date-time";
225
- };
226
- readonly last_modified_at: {
227
- readonly type: "string";
228
- readonly format: "date-time";
229
- };
230
- };
231
- readonly required: readonly ["first_name", "last_name", "address1", "city", "country_code"];
232
- };
233
- readonly email: {
234
- readonly type: readonly ["string", "null"];
235
- readonly format: "email";
236
- readonly example: "alice.johnson@example.com";
237
- };
238
- readonly opt_in_email: {
239
- readonly type: "boolean";
240
- };
241
- readonly opt_in_phone: {
242
- readonly type: "boolean";
243
- };
244
- readonly opt_in_3rdparty: {
245
- readonly type: "boolean";
246
- };
247
- readonly segments: {
248
- readonly type: "array";
249
- readonly items: {
250
- readonly type: "string";
251
- };
252
- readonly example: readonly ["VIP", "NewsletterSubscriber"];
253
- };
254
- readonly registered_at: {
255
- readonly type: "string";
256
- readonly format: "date-time";
257
- };
258
- readonly scv_first_purchase_at: {
259
- readonly type: "string";
260
- readonly format: "date-time";
261
- };
262
- readonly scv_last_purchase_at: {
263
- readonly type: "string";
264
- readonly format: "date-time";
265
- };
266
- readonly scv_linked_customer_ids: {
267
- readonly type: "array";
268
- readonly items: {
269
- readonly type: "string";
270
- };
271
- readonly example: readonly ["SCV987654321", "SCV123987654"];
272
- };
273
- readonly scv_total_transactions: {
274
- readonly type: "integer";
275
- readonly minimum: 0;
276
- };
277
- readonly scv_total_demand: {
278
- readonly type: "integer";
279
- readonly minimum: 0;
280
- };
281
- readonly scv_total_demand_cost: {
282
- readonly type: "number";
283
- readonly minimum: 0;
284
- };
285
- readonly scv_total_returns: {
286
- readonly type: "integer";
287
- readonly minimum: 0;
288
- };
289
- readonly scv_total_returns_cost: {
290
- readonly type: "number";
291
- readonly minimum: 0;
292
- };
293
- readonly last_modified_by: {
294
- readonly type: "string";
295
- };
296
- readonly is_deleted: {
297
- readonly type: "boolean";
298
- };
299
- readonly other_bc_ids: {
300
- readonly type: "array";
301
- readonly items: {
302
- readonly type: "string";
303
- };
304
- };
305
- };
306
- readonly required: readonly ["email"];
307
- readonly $id: "https://shushed.example.com/order/customer.schema.json";
308
- };
309
- export default schema;