@shushed/helpers 0.0.202 → 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 (290) 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/contracts/asset.schema.json +0 -78
  6. package/dist/cjs/contracts/category.schema.json +0 -86
  7. package/dist/cjs/contracts/country.schema.json +0 -258
  8. package/dist/cjs/contracts/currency.schema.json +0 -177
  9. package/dist/cjs/contracts/customer-segment.schema.json +0 -32
  10. package/dist/cjs/contracts/development-colour.schema.json +0 -97
  11. package/dist/cjs/contracts/index.js +0 -48
  12. package/dist/cjs/contracts/marketing-preferences.schema.json +0 -41
  13. package/dist/cjs/contracts/messages/ean-change.schema.json +0 -22
  14. package/dist/cjs/contracts/messages/index.js +0 -29
  15. package/dist/cjs/contracts/messages/order/delivered.schema.json +0 -26
  16. package/dist/cjs/contracts/messages/order/index.js +0 -18
  17. package/dist/cjs/contracts/messages/order/new.schema.json +0 -32
  18. package/dist/cjs/contracts/messages/order/processed.schema.json +0 -15
  19. package/dist/cjs/contracts/messages/order/return-initiated.schema.json +0 -26
  20. package/dist/cjs/contracts/messages/order/returned.schema.json +0 -25
  21. package/dist/cjs/contracts/messages/order/shipped.schema.json +0 -26
  22. package/dist/cjs/contracts/messages/product-category.schema.json +0 -21
  23. package/dist/cjs/contracts/messages/product-draft.schema.json +0 -66
  24. package/dist/cjs/contracts/messages/product.schema.json +0 -29
  25. package/dist/cjs/contracts/money.schema.json +0 -54
  26. package/dist/cjs/contracts/order/address.schema.json +0 -127
  27. package/dist/cjs/contracts/order/customer.schema.json +0 -149
  28. package/dist/cjs/contracts/order/index.js +0 -31
  29. package/dist/cjs/contracts/order/item.schema.json +0 -98
  30. package/dist/cjs/contracts/order/payment.schema.json +0 -115
  31. package/dist/cjs/contracts/order/shipment/index.js +0 -29
  32. package/dist/cjs/contracts/order/shipment/item/index.js +0 -8
  33. package/dist/cjs/contracts/order/shipment/item/returned.schema.json +0 -30
  34. package/dist/cjs/contracts/order/shipment/item.schema.json +0 -22
  35. package/dist/cjs/contracts/order/shipment/pos/index.js +0 -10
  36. package/dist/cjs/contracts/order/shipment/pos/outbound.schema.json +0 -37
  37. package/dist/cjs/contracts/order/shipment/pos/return.schema.json +0 -31
  38. package/dist/cjs/contracts/order/shipment/pos.schema.json +0 -48
  39. package/dist/cjs/contracts/order/shipment/shipped/index.js +0 -10
  40. package/dist/cjs/contracts/order/shipment/shipped/outbound.schema.json +0 -34
  41. package/dist/cjs/contracts/order/shipment/shipped/return.schema.json +0 -43
  42. package/dist/cjs/contracts/order/shipment/shipped.schema.json +0 -52
  43. package/dist/cjs/contracts/order/shipment.schema.json +0 -58
  44. package/dist/cjs/contracts/order.schema.json +0 -231
  45. package/dist/cjs/contracts/product-category.schema.json +0 -34
  46. package/dist/cjs/contracts/product-draft.schema.json +0 -782
  47. package/dist/cjs/contracts/product.schema.json +0 -816
  48. package/dist/cjs/contracts/total.schema.json +0 -41
  49. package/dist/cjs/dist-dereferenced/asset.js +0 -4
  50. package/dist/cjs/dist-dereferenced/category.js +0 -4
  51. package/dist/cjs/dist-dereferenced/country.js +0 -4
  52. package/dist/cjs/dist-dereferenced/currency.js +0 -4
  53. package/dist/cjs/dist-dereferenced/customer-segment.js +0 -4
  54. package/dist/cjs/dist-dereferenced/development-colour.js +0 -4
  55. package/dist/cjs/dist-dereferenced/index.js +0 -69
  56. package/dist/cjs/dist-dereferenced/marketing-preferences.js +0 -4
  57. package/dist/cjs/dist-dereferenced/messages/ean-change.js +0 -4
  58. package/dist/cjs/dist-dereferenced/messages/index.js +0 -50
  59. package/dist/cjs/dist-dereferenced/messages/order/delivered.js +0 -4
  60. package/dist/cjs/dist-dereferenced/messages/order/index.js +0 -18
  61. package/dist/cjs/dist-dereferenced/messages/order/new.js +0 -4
  62. package/dist/cjs/dist-dereferenced/messages/order/processed.js +0 -4
  63. package/dist/cjs/dist-dereferenced/messages/order/return-initiated.js +0 -4
  64. package/dist/cjs/dist-dereferenced/messages/order/returned.js +0 -4
  65. package/dist/cjs/dist-dereferenced/messages/order/shipped.js +0 -4
  66. package/dist/cjs/dist-dereferenced/messages/price-change.js +0 -4
  67. package/dist/cjs/dist-dereferenced/messages/product-category.js +0 -4
  68. package/dist/cjs/dist-dereferenced/messages/product-draft.js +0 -4
  69. package/dist/cjs/dist-dereferenced/messages/product.js +0 -4
  70. package/dist/cjs/dist-dereferenced/money.js +0 -4
  71. package/dist/cjs/dist-dereferenced/order/address.js +0 -4
  72. package/dist/cjs/dist-dereferenced/order/customer.js +0 -4
  73. package/dist/cjs/dist-dereferenced/order/index.js +0 -51
  74. package/dist/cjs/dist-dereferenced/order/item.js +0 -4
  75. package/dist/cjs/dist-dereferenced/order/orderMain.js +0 -4
  76. package/dist/cjs/dist-dereferenced/order/payment.js +0 -4
  77. package/dist/cjs/dist-dereferenced/order/shipment/index.js +0 -45
  78. package/dist/cjs/dist-dereferenced/order/shipment/item/index.js +0 -11
  79. package/dist/cjs/dist-dereferenced/order/shipment/item/itemMain.js +0 -4
  80. package/dist/cjs/dist-dereferenced/order/shipment/item/returned.js +0 -4
  81. package/dist/cjs/dist-dereferenced/order/shipment/pos/index.js +0 -13
  82. package/dist/cjs/dist-dereferenced/order/shipment/pos/outbound.js +0 -4
  83. package/dist/cjs/dist-dereferenced/order/shipment/pos/posMain.js +0 -4
  84. package/dist/cjs/dist-dereferenced/order/shipment/pos/return.js +0 -4
  85. package/dist/cjs/dist-dereferenced/order/shipment/shipmentMain.js +0 -4
  86. package/dist/cjs/dist-dereferenced/order/shipment/shipped/index.js +0 -13
  87. package/dist/cjs/dist-dereferenced/order/shipment/shipped/outbound.js +0 -4
  88. package/dist/cjs/dist-dereferenced/order/shipment/shipped/return.js +0 -4
  89. package/dist/cjs/dist-dereferenced/order/shipment/shipped/shippedMain.js +0 -4
  90. package/dist/cjs/dist-dereferenced/price.js +0 -4
  91. package/dist/cjs/dist-dereferenced/product-category.js +0 -4
  92. package/dist/cjs/dist-dereferenced/product-draft.js +0 -4
  93. package/dist/cjs/dist-dereferenced/product.js +0 -4
  94. package/dist/cjs/dist-dereferenced/stock.js +0 -4
  95. package/dist/cjs/dist-dereferenced/total.js +0 -4
  96. package/dist/cjs/dist-types/asset.js +0 -2
  97. package/dist/cjs/dist-types/category.js +0 -2
  98. package/dist/cjs/dist-types/country.js +0 -2
  99. package/dist/cjs/dist-types/currency.js +0 -2
  100. package/dist/cjs/dist-types/customer-segment.js +0 -2
  101. package/dist/cjs/dist-types/development-colour.js +0 -2
  102. package/dist/cjs/dist-types/index.js +0 -38
  103. package/dist/cjs/dist-types/marketing-preferences.js +0 -2
  104. package/dist/cjs/dist-types/messages/ean-change.js +0 -2
  105. package/dist/cjs/dist-types/messages/index.js +0 -37
  106. package/dist/cjs/dist-types/messages/order/delivered.js +0 -2
  107. package/dist/cjs/dist-types/messages/order/index.js +0 -2
  108. package/dist/cjs/dist-types/messages/order/new.js +0 -2
  109. package/dist/cjs/dist-types/messages/order/processed.js +0 -2
  110. package/dist/cjs/dist-types/messages/order/return-initiated.js +0 -2
  111. package/dist/cjs/dist-types/messages/order/returned.js +0 -2
  112. package/dist/cjs/dist-types/messages/order/shipped.js +0 -2
  113. package/dist/cjs/dist-types/messages/price-change.js +0 -2
  114. package/dist/cjs/dist-types/messages/product-category.js +0 -2
  115. package/dist/cjs/dist-types/messages/product-draft.js +0 -2
  116. package/dist/cjs/dist-types/messages/product.js +0 -2
  117. package/dist/cjs/dist-types/money.js +0 -2
  118. package/dist/cjs/dist-types/order/address.js +0 -2
  119. package/dist/cjs/dist-types/order/customer.js +0 -2
  120. package/dist/cjs/dist-types/order/index.js +0 -37
  121. package/dist/cjs/dist-types/order/item.js +0 -2
  122. package/dist/cjs/dist-types/order/orderMain.js +0 -2
  123. package/dist/cjs/dist-types/order/payment.js +0 -2
  124. package/dist/cjs/dist-types/order/shipment/index.js +0 -39
  125. package/dist/cjs/dist-types/order/shipment/item/index.js +0 -2
  126. package/dist/cjs/dist-types/order/shipment/item/itemMain.js +0 -2
  127. package/dist/cjs/dist-types/order/shipment/item/returned.js +0 -2
  128. package/dist/cjs/dist-types/order/shipment/pos/index.js +0 -2
  129. package/dist/cjs/dist-types/order/shipment/pos/outbound.js +0 -2
  130. package/dist/cjs/dist-types/order/shipment/pos/posMain.js +0 -2
  131. package/dist/cjs/dist-types/order/shipment/pos/return.js +0 -2
  132. package/dist/cjs/dist-types/order/shipment/shipmentMain.js +0 -2
  133. package/dist/cjs/dist-types/order/shipment/shipped/index.js +0 -2
  134. package/dist/cjs/dist-types/order/shipment/shipped/outbound.js +0 -2
  135. package/dist/cjs/dist-types/order/shipment/shipped/return.js +0 -2
  136. package/dist/cjs/dist-types/order/shipment/shipped/shippedMain.js +0 -2
  137. package/dist/cjs/dist-types/price.js +0 -2
  138. package/dist/cjs/dist-types/product-category.js +0 -2
  139. package/dist/cjs/dist-types/product-draft.js +0 -2
  140. package/dist/cjs/dist-types/product.js +0 -2
  141. package/dist/cjs/dist-types/stock.js +0 -2
  142. package/dist/cjs/dist-types/total.js +0 -2
  143. package/dist/cjs/index.js +0 -39
  144. package/dist/cjs/src-public/airtable.js +0 -625
  145. package/dist/cjs/src-public/bcOrder.js +0 -943
  146. package/dist/cjs/src-public/bigquery.js +0 -59
  147. package/dist/cjs/src-public/centra.js +0 -1053
  148. package/dist/cjs/src-public/cloudtasks.js +0 -207
  149. package/dist/cjs/src-public/dato.js +0 -403
  150. package/dist/cjs/src-public/env.js +0 -900
  151. package/dist/cjs/src-public/getEventTime.js +0 -28
  152. package/dist/cjs/src-public/index.js +0 -54
  153. package/dist/cjs/src-public/ipValidation.js +0 -167
  154. package/dist/cjs/src-public/jwks.js +0 -108
  155. package/dist/cjs/src-public/pubsub.js +0 -423
  156. package/dist/cjs/src-public/rateLimit.js +0 -140
  157. package/dist/cjs/src-public/redisClient.js +0 -44
  158. package/dist/cjs/src-public/runtime.js +0 -145
  159. package/dist/cjs/src-public/sanitize.js +0 -25
  160. package/dist/cjs/src-public/scheduler.js +0 -247
  161. package/dist/cjs/src-public/secret.js +0 -16
  162. package/dist/cjs/src-public/setHeaders.js +0 -16
  163. package/dist/cjs/src-public/types.js +0 -2
  164. package/dist/cjs/src-public/utils.js +0 -457
  165. package/dist/cjs/src-public/validate.js +0 -74
  166. package/dist/types/contracts/index.d.ts +0 -15
  167. package/dist/types/contracts/messages/index.d.ts +0 -5
  168. package/dist/types/contracts/messages/order/index.d.ts +0 -6
  169. package/dist/types/contracts/order/index.d.ts +0 -6
  170. package/dist/types/contracts/order/shipment/index.d.ts +0 -6
  171. package/dist/types/contracts/order/shipment/item/index.d.ts +0 -1
  172. package/dist/types/contracts/order/shipment/pos/index.d.ts +0 -2
  173. package/dist/types/contracts/order/shipment/shipped/index.d.ts +0 -2
  174. package/dist/types/dist-dereferenced/asset.d.ts +0 -51
  175. package/dist/types/dist-dereferenced/category.d.ts +0 -58
  176. package/dist/types/dist-dereferenced/country.d.ts +0 -8
  177. package/dist/types/dist-dereferenced/currency.d.ts +0 -8
  178. package/dist/types/dist-dereferenced/customer-segment.d.ts +0 -26
  179. package/dist/types/dist-dereferenced/development-colour.d.ts +0 -114
  180. package/dist/types/dist-dereferenced/index.d.ts +0 -16
  181. package/dist/types/dist-dereferenced/marketing-preferences.d.ts +0 -31
  182. package/dist/types/dist-dereferenced/messages/ean-change.d.ts +0 -17
  183. package/dist/types/dist-dereferenced/messages/index.d.ts +0 -6
  184. package/dist/types/dist-dereferenced/messages/order/delivered.d.ts +0 -3438
  185. package/dist/types/dist-dereferenced/messages/order/index.d.ts +0 -6
  186. package/dist/types/dist-dereferenced/messages/order/new.d.ts +0 -3438
  187. package/dist/types/dist-dereferenced/messages/order/processed.d.ts +0 -3432
  188. package/dist/types/dist-dereferenced/messages/order/return-initiated.d.ts +0 -3438
  189. package/dist/types/dist-dereferenced/messages/order/returned.d.ts +0 -3437
  190. package/dist/types/dist-dereferenced/messages/order/shipped.d.ts +0 -3436
  191. package/dist/types/dist-dereferenced/messages/price-change.d.ts +0 -67
  192. package/dist/types/dist-dereferenced/messages/product-category.d.ts +0 -33
  193. package/dist/types/dist-dereferenced/messages/product-draft.d.ts +0 -589
  194. package/dist/types/dist-dereferenced/messages/product.d.ts +0 -628
  195. package/dist/types/dist-dereferenced/money.d.ts +0 -41
  196. package/dist/types/dist-dereferenced/order/address.d.ts +0 -98
  197. package/dist/types/dist-dereferenced/order/customer.d.ts +0 -312
  198. package/dist/types/dist-dereferenced/order/index.d.ts +0 -3428
  199. package/dist/types/dist-dereferenced/order/item.d.ts +0 -339
  200. package/dist/types/dist-dereferenced/order/orderMain.d.ts +0 -3423
  201. package/dist/types/dist-dereferenced/order/payment.d.ts +0 -110
  202. package/dist/types/dist-dereferenced/order/shipment/index.d.ts +0 -253
  203. package/dist/types/dist-dereferenced/order/shipment/item/index.d.ts +0 -19
  204. package/dist/types/dist-dereferenced/order/shipment/item/itemMain.d.ts +0 -18
  205. package/dist/types/dist-dereferenced/order/shipment/item/returned.d.ts +0 -34
  206. package/dist/types/dist-dereferenced/order/shipment/pos/index.d.ts +0 -282
  207. package/dist/types/dist-dereferenced/order/shipment/pos/outbound.d.ts +0 -319
  208. package/dist/types/dist-dereferenced/order/shipment/pos/posMain.d.ts +0 -280
  209. package/dist/types/dist-dereferenced/order/shipment/pos/return.d.ts +0 -330
  210. package/dist/types/dist-dereferenced/order/shipment/shipmentMain.d.ts +0 -250
  211. package/dist/types/dist-dereferenced/order/shipment/shipped/index.d.ts +0 -288
  212. package/dist/types/dist-dereferenced/order/shipment/shipped/outbound.d.ts +0 -286
  213. package/dist/types/dist-dereferenced/order/shipment/shipped/return.d.ts +0 -287
  214. package/dist/types/dist-dereferenced/order/shipment/shipped/shippedMain.d.ts +0 -286
  215. package/dist/types/dist-dereferenced/price.d.ts +0 -58
  216. package/dist/types/dist-dereferenced/product-category.d.ts +0 -24
  217. package/dist/types/dist-dereferenced/product-draft.d.ts +0 -580
  218. package/dist/types/dist-dereferenced/product.d.ts +0 -619
  219. package/dist/types/dist-dereferenced/stock.d.ts +0 -74
  220. package/dist/types/dist-dereferenced/total.d.ts +0 -172
  221. package/dist/types/dist-types/asset.d.ts +0 -16
  222. package/dist/types/dist-types/category.d.ts +0 -20
  223. package/dist/types/dist-types/country.d.ts +0 -2
  224. package/dist/types/dist-types/currency.d.ts +0 -2
  225. package/dist/types/dist-types/customer-segment.d.ts +0 -6
  226. package/dist/types/dist-types/development-colour.d.ts +0 -31
  227. package/dist/types/dist-types/index.d.ts +0 -16
  228. package/dist/types/dist-types/marketing-preferences.d.ts +0 -9
  229. package/dist/types/dist-types/messages/ean-change.d.ts +0 -5
  230. package/dist/types/dist-types/messages/index.d.ts +0 -6
  231. package/dist/types/dist-types/messages/order/delivered.d.ts +0 -300
  232. package/dist/types/dist-types/messages/order/index.d.ts +0 -6
  233. package/dist/types/dist-types/messages/order/new.d.ts +0 -300
  234. package/dist/types/dist-types/messages/order/processed.d.ts +0 -300
  235. package/dist/types/dist-types/messages/order/return-initiated.d.ts +0 -300
  236. package/dist/types/dist-types/messages/order/returned.d.ts +0 -301
  237. package/dist/types/dist-types/messages/order/shipped.d.ts +0 -301
  238. package/dist/types/dist-types/messages/price-change.d.ts +0 -16
  239. package/dist/types/dist-types/messages/product-category.d.ts +0 -7
  240. package/dist/types/dist-types/messages/product-draft.d.ts +0 -136
  241. package/dist/types/dist-types/messages/product.d.ts +0 -144
  242. package/dist/types/dist-types/money.d.ts +0 -11
  243. package/dist/types/dist-types/order/address.d.ts +0 -27
  244. package/dist/types/dist-types/order/customer.d.ts +0 -82
  245. package/dist/types/dist-types/order/index.d.ts +0 -8
  246. package/dist/types/dist-types/order/item.d.ts +0 -86
  247. package/dist/types/dist-types/order/orderMain.d.ts +0 -297
  248. package/dist/types/dist-types/order/payment.d.ts +0 -30
  249. package/dist/types/dist-types/order/shipment/index.d.ts +0 -6
  250. package/dist/types/dist-types/order/shipment/item/index.d.ts +0 -4
  251. package/dist/types/dist-types/order/shipment/item/itemMain.d.ts +0 -6
  252. package/dist/types/dist-types/order/shipment/item/returned.d.ts +0 -11
  253. package/dist/types/dist-types/order/shipment/pos/index.d.ts +0 -5
  254. package/dist/types/dist-types/order/shipment/pos/outbound.d.ts +0 -76
  255. package/dist/types/dist-types/order/shipment/pos/posMain.d.ts +0 -71
  256. package/dist/types/dist-types/order/shipment/pos/return.d.ts +0 -75
  257. package/dist/types/dist-types/order/shipment/shipmentMain.d.ts +0 -62
  258. package/dist/types/dist-types/order/shipment/shipped/index.d.ts +0 -5
  259. package/dist/types/dist-types/order/shipment/shipped/outbound.d.ts +0 -68
  260. package/dist/types/dist-types/order/shipment/shipped/return.d.ts +0 -68
  261. package/dist/types/dist-types/order/shipment/shipped/shippedMain.d.ts +0 -69
  262. package/dist/types/dist-types/price.d.ts +0 -15
  263. package/dist/types/dist-types/product-category.d.ts +0 -6
  264. package/dist/types/dist-types/product-draft.d.ts +0 -135
  265. package/dist/types/dist-types/product.d.ts +0 -143
  266. package/dist/types/dist-types/stock.d.ts +0 -19
  267. package/dist/types/dist-types/total.d.ts +0 -44
  268. package/dist/types/index.d.ts +0 -3
  269. package/dist/types/src-public/airtable.d.ts +0 -227
  270. package/dist/types/src-public/bcOrder.d.ts +0 -84
  271. package/dist/types/src-public/bigquery.d.ts +0 -17
  272. package/dist/types/src-public/centra.d.ts +0 -176
  273. package/dist/types/src-public/cloudtasks.d.ts +0 -74
  274. package/dist/types/src-public/dato.d.ts +0 -62
  275. package/dist/types/src-public/env.d.ts +0 -144
  276. package/dist/types/src-public/getEventTime.d.ts +0 -1
  277. package/dist/types/src-public/index.d.ts +0 -19
  278. package/dist/types/src-public/ipValidation.d.ts +0 -15
  279. package/dist/types/src-public/jwks.d.ts +0 -15
  280. package/dist/types/src-public/pubsub.d.ts +0 -95
  281. package/dist/types/src-public/rateLimit.d.ts +0 -21
  282. package/dist/types/src-public/redisClient.d.ts +0 -6
  283. package/dist/types/src-public/runtime.d.ts +0 -58
  284. package/dist/types/src-public/sanitize.d.ts +0 -4
  285. package/dist/types/src-public/scheduler.d.ts +0 -71
  286. package/dist/types/src-public/secret.d.ts +0 -6
  287. package/dist/types/src-public/setHeaders.d.ts +0 -13
  288. package/dist/types/src-public/types.d.ts +0 -264
  289. package/dist/types/src-public/utils.d.ts +0 -101
  290. package/dist/types/src-public/validate.d.ts +0 -9
@@ -1,619 +0,0 @@
1
- declare const schema: {
2
- readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly title: "Product";
4
- readonly additionalProperties: false;
5
- readonly type: "object";
6
- readonly properties: {
7
- readonly product_id: {
8
- readonly type: "string";
9
- };
10
- readonly slug: {
11
- readonly type: readonly ["string"];
12
- };
13
- readonly style_slug: {
14
- readonly type: readonly ["string"];
15
- };
16
- readonly style_id: {
17
- readonly type: readonly ["string"];
18
- };
19
- readonly colour_id: {
20
- readonly type: "string";
21
- };
22
- readonly style_name: {
23
- readonly type: "string";
24
- };
25
- readonly product_name: {
26
- readonly type: "string";
27
- };
28
- readonly display_name: {
29
- readonly type: readonly ["string", "null"];
30
- };
31
- readonly buffer_quantity: {
32
- readonly type: "integer";
33
- readonly minimum: 0;
34
- };
35
- readonly display_type: {
36
- readonly type: "string";
37
- readonly enum: readonly ["Out-of-stock", "Permanently-unavailable"];
38
- };
39
- readonly available_to_sell_from: {
40
- readonly type: readonly ["string", "null"];
41
- readonly format: "date";
42
- };
43
- readonly online_from: {
44
- readonly type: readonly ["string", "null"];
45
- readonly format: "date-time";
46
- };
47
- readonly online_to: {
48
- readonly type: readonly ["string", "null"];
49
- readonly format: "date-time";
50
- };
51
- readonly first_online_at: {
52
- readonly type: readonly ["string", "null"];
53
- readonly format: "date-time";
54
- };
55
- readonly last_online_at: {
56
- readonly type: readonly ["string", "null"];
57
- readonly format: "date-time";
58
- };
59
- readonly first_purchased_at: {
60
- readonly type: "string";
61
- readonly format: "date-time";
62
- };
63
- readonly first_markdown_at: {
64
- readonly type: readonly ["string", "null"];
65
- readonly format: "date-time";
66
- };
67
- readonly created_at: {
68
- readonly type: "string";
69
- readonly format: "date-time";
70
- };
71
- readonly last_modified_at: {
72
- readonly type: "string";
73
- readonly format: "date-time";
74
- };
75
- readonly colour_family_name: {
76
- readonly type: "string";
77
- };
78
- readonly colour_code: {
79
- readonly type: "string";
80
- };
81
- readonly colour_name: {
82
- readonly type: "string";
83
- };
84
- readonly display_tags: {
85
- readonly type: "array";
86
- readonly items: {
87
- readonly type: "string";
88
- };
89
- };
90
- readonly sizerange_code: {
91
- readonly type: "string";
92
- };
93
- readonly sizerange_name: {
94
- readonly type: "string";
95
- };
96
- readonly variants: {
97
- readonly type: "array";
98
- readonly items: {
99
- readonly type: "object";
100
- readonly properties: {
101
- readonly code: {
102
- readonly type: "string";
103
- };
104
- readonly name: {
105
- readonly type: readonly ["string"];
106
- };
107
- };
108
- readonly required: readonly ["code", "name"];
109
- };
110
- };
111
- readonly images: {
112
- readonly type: "array";
113
- readonly items: {
114
- readonly type: "object";
115
- readonly properties: {
116
- readonly type: {
117
- readonly type: "string";
118
- readonly enum: readonly ["Campaign", "Ecom", "Flatlay", "UGC", "AI"];
119
- };
120
- readonly url: {
121
- readonly type: "string";
122
- readonly format: "uri";
123
- };
124
- };
125
- readonly required: readonly ["type", "url"];
126
- };
127
- };
128
- readonly vat_rate_uk: {
129
- readonly type: readonly ["number", "null"];
130
- readonly minimum: 0;
131
- };
132
- readonly supply_chain: {
133
- readonly type: "object";
134
- readonly properties: {
135
- readonly hs_code: {
136
- readonly type: readonly ["string", "null"];
137
- };
138
- readonly commodity_code_ref: {
139
- readonly type: "string";
140
- };
141
- readonly country_of_origin: {
142
- readonly $schema: "http://json-schema.org/draft-07/schema#";
143
- readonly title: "Country";
144
- readonly type: "string";
145
- 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"];
146
- };
147
- readonly port_of_origin: {
148
- readonly type: "string";
149
- };
150
- readonly supplier_id: {
151
- readonly type: "string";
152
- readonly pattern: "^SUP\\d{5}$";
153
- };
154
- readonly supplier_name: {
155
- readonly type: "string";
156
- };
157
- readonly factory_id: {
158
- readonly type: "string";
159
- readonly pattern: "^FAC\\d{5}$";
160
- };
161
- readonly packing_method: {
162
- readonly type: readonly ["string", "null"];
163
- readonly enum: readonly ["Standard", "Hanging"];
164
- };
165
- readonly is_bought_in_product: {
166
- readonly type: "boolean";
167
- };
168
- };
169
- readonly required: readonly [];
170
- };
171
- readonly merch: {
172
- readonly type: "object";
173
- readonly properties: {
174
- readonly strategy_type: {
175
- readonly type: "string";
176
- };
177
- readonly product_type: {
178
- readonly type: "string";
179
- };
180
- readonly stock_type: {
181
- readonly type: "string";
182
- };
183
- readonly category: {
184
- readonly type: "string";
185
- };
186
- readonly subcategory: {
187
- readonly type: "string";
188
- };
189
- readonly range: {
190
- readonly type: readonly ["string", "null"];
191
- readonly enum: readonly ["Main Collection", "Seasonal"];
192
- };
193
- readonly channels_availability: {
194
- readonly type: readonly ["array"];
195
- readonly items: {
196
- readonly type: "string";
197
- readonly enum: readonly ["DIRECT-UK", "DIRECT-INT", "DIRECT-US", "JL-STORES", "JL-WEB", "NEXT", "MS", "FENWICK", "MORLEYS"];
198
- };
199
- };
200
- readonly collections: {
201
- readonly type: readonly ["string"];
202
- };
203
- readonly seasons: {
204
- readonly type: readonly ["array"];
205
- readonly items: {
206
- readonly type: "string";
207
- };
208
- };
209
- readonly drops: {
210
- readonly type: readonly ["array"];
211
- readonly items: {
212
- readonly type: "string";
213
- };
214
- };
215
- readonly fashionability: {
216
- readonly type: readonly ["string", "null"];
217
- };
218
- };
219
- readonly required: readonly [];
220
- };
221
- readonly attributes: {
222
- readonly type: "object";
223
- readonly properties: {
224
- readonly seo_url_name: {
225
- readonly type: "string";
226
- readonly pattern: "^[a-z-]+$";
227
- };
228
- readonly embellishment: {
229
- readonly type: readonly ["string", "null"];
230
- };
231
- readonly seo_title: {
232
- readonly type: readonly ["string", "null"];
233
- };
234
- readonly seo_description: {
235
- readonly type: readonly ["string", "null"];
236
- };
237
- readonly fit_description: {
238
- readonly type: readonly ["string", "null"];
239
- };
240
- readonly fabric_care: {
241
- readonly type: readonly ["string", "null"];
242
- };
243
- readonly delivery_returns: {
244
- readonly type: readonly ["string", "null"];
245
- };
246
- readonly weight: {
247
- readonly type: readonly ["number", "null"];
248
- };
249
- readonly weight_statement: {
250
- readonly type: readonly ["string", "null"];
251
- };
252
- readonly main_fibre: {
253
- readonly type: readonly ["string", "null"];
254
- };
255
- readonly main_metal: {
256
- readonly type: readonly ["string", "null"];
257
- };
258
- readonly extra_selling_points: {
259
- readonly type: "array";
260
- readonly items: {
261
- readonly type: "string";
262
- };
263
- };
264
- readonly length_measurement: {
265
- readonly type: readonly ["string", "null"];
266
- };
267
- readonly measurement_table_code: {
268
- readonly type: readonly ["string"];
269
- };
270
- readonly fit: {
271
- readonly type: readonly ["string", "null"];
272
- };
273
- readonly pockets: {
274
- readonly type: readonly ["string", "null"];
275
- };
276
- readonly pleats_gathers: {
277
- readonly type: readonly ["string", "null"];
278
- };
279
- readonly lining: {
280
- readonly type: readonly ["string", "null"];
281
- };
282
- readonly bias_cut: {
283
- readonly type: readonly ["string", "null"];
284
- };
285
- readonly designer: {
286
- readonly type: readonly ["string", "null"];
287
- };
288
- readonly fabric: {
289
- readonly type: readonly ["string", "null"];
290
- };
291
- readonly fabric_composition: {
292
- readonly type: readonly ["string", "null"];
293
- };
294
- readonly certificate_code: {
295
- readonly type: readonly ["string", "null"];
296
- };
297
- readonly shape: {
298
- readonly type: readonly ["string", "null"];
299
- };
300
- readonly development_type: {
301
- readonly type: "string";
302
- };
303
- readonly occasion: {
304
- readonly type: readonly ["string", "null"];
305
- };
306
- readonly design: {
307
- readonly type: readonly ["string", "null"];
308
- };
309
- readonly block: {
310
- readonly type: readonly ["string", "null"];
311
- };
312
- readonly pattern_name: {
313
- readonly type: readonly ["string", "null"];
314
- };
315
- readonly fit_type: {
316
- readonly type: readonly ["string", "null"];
317
- };
318
- readonly neckline: {
319
- readonly type: readonly ["string", "null"];
320
- };
321
- readonly sleeve_length: {
322
- readonly type: readonly ["string", "null"];
323
- readonly nullable: true;
324
- };
325
- readonly sleeve_type: {
326
- readonly type: readonly ["string", "null"];
327
- readonly nullable: true;
328
- };
329
- readonly heel_height: {
330
- readonly type: readonly ["string", "null"];
331
- };
332
- readonly heel_shape: {
333
- readonly type: readonly ["string", "null"];
334
- };
335
- readonly toe_shape: {
336
- readonly type: readonly ["string", "null"];
337
- };
338
- readonly trouser_fit: {
339
- readonly type: readonly ["string", "null"];
340
- readonly nullable: true;
341
- };
342
- readonly leg_length: {
343
- readonly type: readonly ["string", "null"];
344
- };
345
- readonly handle_straps: {
346
- readonly type: readonly ["string", "null"];
347
- };
348
- readonly straps_features: {
349
- readonly type: readonly ["string", "null"];
350
- };
351
- readonly fastening: {
352
- readonly anyOf: readonly [{
353
- readonly type: readonly ["array", "null"];
354
- readonly items: {
355
- readonly type: "string";
356
- };
357
- }, {
358
- readonly type: "null";
359
- }];
360
- };
361
- readonly sole_material: {
362
- readonly type: readonly ["string", "null"];
363
- };
364
- readonly care_instructions: {
365
- readonly type: "array";
366
- readonly items: {
367
- readonly type: "string";
368
- };
369
- };
370
- };
371
- readonly required: readonly [];
372
- };
373
- readonly presentations: {
374
- readonly type: "object";
375
- readonly additionalProperties: false;
376
- readonly patternProperties: {
377
- readonly ".*": {
378
- readonly type: "object";
379
- readonly additionalProperties: false;
380
- readonly properties: {
381
- readonly locale: {
382
- readonly type: "string";
383
- readonly pattern: "^[a-z]{2}-[A-Z]{2}$";
384
- };
385
- readonly presentation_type: {
386
- readonly type: "string";
387
- };
388
- readonly slug: {
389
- readonly type: readonly ["string"];
390
- };
391
- readonly style_slug: {
392
- readonly type: readonly ["string"];
393
- };
394
- readonly style_name: {
395
- readonly type: "string";
396
- };
397
- readonly display_name: {
398
- readonly type: readonly ["string", "null"];
399
- };
400
- readonly display_type: {
401
- readonly type: "string";
402
- readonly enum: readonly ["Out-of-stock", "Permanently-unavailable"];
403
- };
404
- readonly available_to_sell_from: {
405
- readonly type: readonly ["string", "null"];
406
- readonly format: "date";
407
- };
408
- readonly online_from: {
409
- readonly type: readonly ["string", "null"];
410
- readonly format: "date-time";
411
- };
412
- readonly online_to: {
413
- readonly type: readonly ["string", "null"];
414
- readonly format: "date-time";
415
- };
416
- readonly last_online_at: {
417
- readonly type: readonly ["string", "null"];
418
- readonly format: "date-time";
419
- };
420
- readonly first_purchased_at: {
421
- readonly type: "string";
422
- readonly format: "date-time";
423
- };
424
- readonly first_markdown_at: {
425
- readonly type: readonly ["string", "null"];
426
- readonly format: "date-time";
427
- };
428
- readonly colour_family_name: {
429
- readonly type: "string";
430
- };
431
- readonly colour_name: {
432
- readonly type: "string";
433
- };
434
- readonly display_tags: {
435
- readonly type: "array";
436
- readonly items: {
437
- readonly type: "string";
438
- };
439
- };
440
- readonly sizerange_name: {
441
- readonly type: "string";
442
- };
443
- readonly variants: {
444
- readonly type: "array";
445
- readonly items: {
446
- readonly type: "object";
447
- readonly properties: {
448
- readonly code: {
449
- readonly type: "string";
450
- };
451
- readonly name: {
452
- readonly type: readonly ["string"];
453
- };
454
- };
455
- readonly required: readonly ["code", "name"];
456
- };
457
- };
458
- readonly attributes: {
459
- readonly type: "object";
460
- readonly properties: {
461
- readonly seo_url_name: {
462
- readonly type: "string";
463
- readonly pattern: "^[a-z-]+$";
464
- };
465
- readonly embellishment: {
466
- readonly type: readonly ["string", "null"];
467
- };
468
- readonly seo_title: {
469
- readonly type: readonly ["string", "null"];
470
- };
471
- readonly seo_description: {
472
- readonly type: readonly ["string", "null"];
473
- };
474
- readonly fit_description: {
475
- readonly type: readonly ["string", "null"];
476
- };
477
- readonly fabric_care: {
478
- readonly type: readonly ["string", "null"];
479
- };
480
- readonly delivery_returns: {
481
- readonly type: readonly ["string", "null"];
482
- };
483
- readonly weight: {
484
- readonly type: readonly ["number", "null"];
485
- };
486
- readonly weight_statement: {
487
- readonly type: readonly ["string", "null"];
488
- };
489
- readonly main_fibre: {
490
- readonly type: readonly ["string", "null"];
491
- };
492
- readonly main_metal: {
493
- readonly type: readonly ["string", "null"];
494
- };
495
- readonly extra_selling_points: {
496
- readonly type: "array";
497
- readonly items: {
498
- readonly type: "string";
499
- };
500
- };
501
- readonly length_measurement: {
502
- readonly type: readonly ["string", "null"];
503
- };
504
- readonly measurement_table_code: {
505
- readonly type: readonly ["string"];
506
- };
507
- readonly fit: {
508
- readonly type: readonly ["string", "null"];
509
- };
510
- readonly pockets: {
511
- readonly type: readonly ["string", "null"];
512
- };
513
- readonly pleats_gathers: {
514
- readonly type: readonly ["string", "null"];
515
- };
516
- readonly lining: {
517
- readonly type: readonly ["string", "null"];
518
- };
519
- readonly bias_cut: {
520
- readonly type: readonly ["string", "null"];
521
- };
522
- readonly designer: {
523
- readonly type: readonly ["string", "null"];
524
- };
525
- readonly fabric: {
526
- readonly type: readonly ["string", "null"];
527
- };
528
- readonly fabric_composition: {
529
- readonly type: readonly ["string", "null"];
530
- };
531
- readonly certificate_code: {
532
- readonly type: readonly ["string", "null"];
533
- };
534
- readonly shape: {
535
- readonly type: readonly ["string", "null"];
536
- };
537
- readonly development_type: {
538
- readonly type: "string";
539
- };
540
- readonly occasion: {
541
- readonly type: readonly ["string", "null"];
542
- };
543
- readonly design: {
544
- readonly type: readonly ["string", "null"];
545
- };
546
- readonly block: {
547
- readonly type: readonly ["string", "null"];
548
- };
549
- readonly pattern_name: {
550
- readonly type: readonly ["string", "null"];
551
- };
552
- readonly fit_type: {
553
- readonly type: readonly ["string", "null"];
554
- };
555
- readonly neckline: {
556
- readonly type: readonly ["string", "null"];
557
- };
558
- readonly sleeve_length: {
559
- readonly type: readonly ["string", "null"];
560
- readonly nullable: true;
561
- };
562
- readonly sleeve_type: {
563
- readonly type: readonly ["string", "null"];
564
- readonly nullable: true;
565
- };
566
- readonly heel_height: {
567
- readonly type: readonly ["string", "null"];
568
- };
569
- readonly heel_shape: {
570
- readonly type: readonly ["string", "null"];
571
- };
572
- readonly toe_shape: {
573
- readonly type: readonly ["string", "null"];
574
- };
575
- readonly trouser_fit: {
576
- readonly type: readonly ["string", "null"];
577
- readonly nullable: true;
578
- };
579
- readonly leg_length: {
580
- readonly type: readonly ["string", "null"];
581
- };
582
- readonly handle_straps: {
583
- readonly type: readonly ["string", "null"];
584
- };
585
- readonly straps_features: {
586
- readonly type: readonly ["string", "null"];
587
- };
588
- readonly fastening: {
589
- readonly anyOf: readonly [{
590
- readonly type: readonly ["array", "null"];
591
- readonly items: {
592
- readonly type: "string";
593
- };
594
- }, {
595
- readonly type: "null";
596
- }];
597
- };
598
- readonly sole_material: {
599
- readonly type: readonly ["string", "null"];
600
- };
601
- readonly care_instructions: {
602
- readonly type: "array";
603
- readonly items: {
604
- readonly type: "string";
605
- };
606
- };
607
- };
608
- readonly required: readonly [];
609
- };
610
- };
611
- readonly required: readonly ["locale", "presentation_type"];
612
- };
613
- };
614
- };
615
- };
616
- readonly required: readonly ["product_id", "style_id", "product_name", "online_from"];
617
- readonly $id: "https://shushed.example.com/product.schema.json";
618
- };
619
- export default schema;