@flaks/onerecord 0.1.2

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 (819) hide show
  1. package/CHANGELOG.md +305 -0
  2. package/LICENSE +202 -0
  3. package/MIGRATING.md +43 -0
  4. package/NOTICE +14 -0
  5. package/README.md +253 -0
  6. package/SECURITY.md +54 -0
  7. package/dist/booking-flow/can-transition.d.ts +3 -0
  8. package/dist/booking-flow/can-transition.d.ts.map +1 -0
  9. package/dist/booking-flow/can-transition.js +7 -0
  10. package/dist/booking-flow/can-transition.js.map +1 -0
  11. package/dist/booking-flow/index.d.ts +5 -0
  12. package/dist/booking-flow/index.d.ts.map +1 -0
  13. package/dist/booking-flow/index.js +5 -0
  14. package/dist/booking-flow/index.js.map +1 -0
  15. package/dist/booking-flow/state-diagram.d.ts +19 -0
  16. package/dist/booking-flow/state-diagram.d.ts.map +1 -0
  17. package/dist/booking-flow/state-diagram.js +34 -0
  18. package/dist/booking-flow/state-diagram.js.map +1 -0
  19. package/dist/booking-flow/transitions.d.ts +9 -0
  20. package/dist/booking-flow/transitions.d.ts.map +1 -0
  21. package/dist/booking-flow/transitions.js +94 -0
  22. package/dist/booking-flow/transitions.js.map +1 -0
  23. package/dist/classes/access-delegation/codec.d.ts +4 -0
  24. package/dist/classes/access-delegation/codec.d.ts.map +1 -0
  25. package/dist/classes/access-delegation/codec.js +11 -0
  26. package/dist/classes/access-delegation/codec.js.map +1 -0
  27. package/dist/classes/access-delegation/deserialize.d.ts +5 -0
  28. package/dist/classes/access-delegation/deserialize.d.ts.map +1 -0
  29. package/dist/classes/access-delegation/deserialize.js +64 -0
  30. package/dist/classes/access-delegation/deserialize.js.map +1 -0
  31. package/dist/classes/access-delegation/index.d.ts +6 -0
  32. package/dist/classes/access-delegation/index.d.ts.map +1 -0
  33. package/dist/classes/access-delegation/index.js +5 -0
  34. package/dist/classes/access-delegation/index.js.map +1 -0
  35. package/dist/classes/access-delegation/schema.d.ts +19 -0
  36. package/dist/classes/access-delegation/schema.d.ts.map +1 -0
  37. package/dist/classes/access-delegation/schema.js +12 -0
  38. package/dist/classes/access-delegation/schema.js.map +1 -0
  39. package/dist/classes/access-delegation/serialize.d.ts +6 -0
  40. package/dist/classes/access-delegation/serialize.d.ts.map +1 -0
  41. package/dist/classes/access-delegation/serialize.js +28 -0
  42. package/dist/classes/access-delegation/serialize.js.map +1 -0
  43. package/dist/classes/access-delegation-request/codec.d.ts +4 -0
  44. package/dist/classes/access-delegation-request/codec.d.ts.map +1 -0
  45. package/dist/classes/access-delegation-request/codec.js +11 -0
  46. package/dist/classes/access-delegation-request/codec.js.map +1 -0
  47. package/dist/classes/access-delegation-request/deserialize.d.ts +5 -0
  48. package/dist/classes/access-delegation-request/deserialize.d.ts.map +1 -0
  49. package/dist/classes/access-delegation-request/deserialize.js +64 -0
  50. package/dist/classes/access-delegation-request/deserialize.js.map +1 -0
  51. package/dist/classes/access-delegation-request/index.d.ts +6 -0
  52. package/dist/classes/access-delegation-request/index.d.ts.map +1 -0
  53. package/dist/classes/access-delegation-request/index.js +5 -0
  54. package/dist/classes/access-delegation-request/index.js.map +1 -0
  55. package/dist/classes/access-delegation-request/schema.d.ts +17 -0
  56. package/dist/classes/access-delegation-request/schema.d.ts.map +1 -0
  57. package/dist/classes/access-delegation-request/schema.js +14 -0
  58. package/dist/classes/access-delegation-request/schema.js.map +1 -0
  59. package/dist/classes/access-delegation-request/serialize.d.ts +6 -0
  60. package/dist/classes/access-delegation-request/serialize.d.ts.map +1 -0
  61. package/dist/classes/access-delegation-request/serialize.js +28 -0
  62. package/dist/classes/access-delegation-request/serialize.js.map +1 -0
  63. package/dist/classes/account-number/codec.d.ts +4 -0
  64. package/dist/classes/account-number/codec.d.ts.map +1 -0
  65. package/dist/classes/account-number/codec.js +11 -0
  66. package/dist/classes/account-number/codec.js.map +1 -0
  67. package/dist/classes/account-number/deserialize.d.ts +5 -0
  68. package/dist/classes/account-number/deserialize.d.ts.map +1 -0
  69. package/dist/classes/account-number/deserialize.js +64 -0
  70. package/dist/classes/account-number/deserialize.js.map +1 -0
  71. package/dist/classes/account-number/index.d.ts +6 -0
  72. package/dist/classes/account-number/index.d.ts.map +1 -0
  73. package/dist/classes/account-number/index.js +5 -0
  74. package/dist/classes/account-number/index.js.map +1 -0
  75. package/dist/classes/account-number/schema.d.ts +17 -0
  76. package/dist/classes/account-number/schema.d.ts.map +1 -0
  77. package/dist/classes/account-number/schema.js +10 -0
  78. package/dist/classes/account-number/schema.js.map +1 -0
  79. package/dist/classes/account-number/serialize.d.ts +6 -0
  80. package/dist/classes/account-number/serialize.d.ts.map +1 -0
  81. package/dist/classes/account-number/serialize.js +28 -0
  82. package/dist/classes/account-number/serialize.js.map +1 -0
  83. package/dist/classes/address/codec.d.ts +4 -0
  84. package/dist/classes/address/codec.d.ts.map +1 -0
  85. package/dist/classes/address/codec.js +11 -0
  86. package/dist/classes/address/codec.js.map +1 -0
  87. package/dist/classes/address/deserialize.d.ts +5 -0
  88. package/dist/classes/address/deserialize.d.ts.map +1 -0
  89. package/dist/classes/address/deserialize.js +64 -0
  90. package/dist/classes/address/deserialize.js.map +1 -0
  91. package/dist/classes/address/index.d.ts +6 -0
  92. package/dist/classes/address/index.d.ts.map +1 -0
  93. package/dist/classes/address/index.js +5 -0
  94. package/dist/classes/address/index.js.map +1 -0
  95. package/dist/classes/address/schema.d.ts +17 -0
  96. package/dist/classes/address/schema.d.ts.map +1 -0
  97. package/dist/classes/address/schema.js +11 -0
  98. package/dist/classes/address/schema.js.map +1 -0
  99. package/dist/classes/address/serialize.d.ts +6 -0
  100. package/dist/classes/address/serialize.d.ts.map +1 -0
  101. package/dist/classes/address/serialize.js +28 -0
  102. package/dist/classes/address/serialize.js.map +1 -0
  103. package/dist/classes/booking/codec.d.ts +4 -0
  104. package/dist/classes/booking/codec.d.ts.map +1 -0
  105. package/dist/classes/booking/codec.js +11 -0
  106. package/dist/classes/booking/codec.js.map +1 -0
  107. package/dist/classes/booking/deserialize.d.ts +5 -0
  108. package/dist/classes/booking/deserialize.d.ts.map +1 -0
  109. package/dist/classes/booking/deserialize.js +47 -0
  110. package/dist/classes/booking/deserialize.js.map +1 -0
  111. package/dist/classes/booking/index.d.ts +6 -0
  112. package/dist/classes/booking/index.d.ts.map +1 -0
  113. package/dist/classes/booking/index.js +6 -0
  114. package/dist/classes/booking/index.js.map +1 -0
  115. package/dist/classes/booking/schema.d.ts +16 -0
  116. package/dist/classes/booking/schema.d.ts.map +1 -0
  117. package/dist/classes/booking/schema.js +11 -0
  118. package/dist/classes/booking/schema.js.map +1 -0
  119. package/dist/classes/booking/serialize.d.ts +6 -0
  120. package/dist/classes/booking/serialize.d.ts.map +1 -0
  121. package/dist/classes/booking/serialize.js +28 -0
  122. package/dist/classes/booking/serialize.js.map +1 -0
  123. package/dist/classes/booking-option/codec.d.ts +4 -0
  124. package/dist/classes/booking-option/codec.d.ts.map +1 -0
  125. package/dist/classes/booking-option/codec.js +11 -0
  126. package/dist/classes/booking-option/codec.js.map +1 -0
  127. package/dist/classes/booking-option/deserialize.d.ts +5 -0
  128. package/dist/classes/booking-option/deserialize.d.ts.map +1 -0
  129. package/dist/classes/booking-option/deserialize.js +47 -0
  130. package/dist/classes/booking-option/deserialize.js.map +1 -0
  131. package/dist/classes/booking-option/index.d.ts +6 -0
  132. package/dist/classes/booking-option/index.d.ts.map +1 -0
  133. package/dist/classes/booking-option/index.js +6 -0
  134. package/dist/classes/booking-option/index.js.map +1 -0
  135. package/dist/classes/booking-option/schema.d.ts +18 -0
  136. package/dist/classes/booking-option/schema.d.ts.map +1 -0
  137. package/dist/classes/booking-option/schema.js +12 -0
  138. package/dist/classes/booking-option/schema.js.map +1 -0
  139. package/dist/classes/booking-option/serialize.d.ts +6 -0
  140. package/dist/classes/booking-option/serialize.d.ts.map +1 -0
  141. package/dist/classes/booking-option/serialize.js +28 -0
  142. package/dist/classes/booking-option/serialize.js.map +1 -0
  143. package/dist/classes/booking-option-request/codec.d.ts +4 -0
  144. package/dist/classes/booking-option-request/codec.d.ts.map +1 -0
  145. package/dist/classes/booking-option-request/codec.js +11 -0
  146. package/dist/classes/booking-option-request/codec.js.map +1 -0
  147. package/dist/classes/booking-option-request/deserialize.d.ts +5 -0
  148. package/dist/classes/booking-option-request/deserialize.d.ts.map +1 -0
  149. package/dist/classes/booking-option-request/deserialize.js +47 -0
  150. package/dist/classes/booking-option-request/deserialize.js.map +1 -0
  151. package/dist/classes/booking-option-request/index.d.ts +6 -0
  152. package/dist/classes/booking-option-request/index.d.ts.map +1 -0
  153. package/dist/classes/booking-option-request/index.js +6 -0
  154. package/dist/classes/booking-option-request/index.js.map +1 -0
  155. package/dist/classes/booking-option-request/schema.d.ts +17 -0
  156. package/dist/classes/booking-option-request/schema.d.ts.map +1 -0
  157. package/dist/classes/booking-option-request/schema.js +15 -0
  158. package/dist/classes/booking-option-request/schema.js.map +1 -0
  159. package/dist/classes/booking-option-request/serialize.d.ts +6 -0
  160. package/dist/classes/booking-option-request/serialize.d.ts.map +1 -0
  161. package/dist/classes/booking-option-request/serialize.js +28 -0
  162. package/dist/classes/booking-option-request/serialize.js.map +1 -0
  163. package/dist/classes/booking-preferences/codec.d.ts +4 -0
  164. package/dist/classes/booking-preferences/codec.d.ts.map +1 -0
  165. package/dist/classes/booking-preferences/codec.js +11 -0
  166. package/dist/classes/booking-preferences/codec.js.map +1 -0
  167. package/dist/classes/booking-preferences/deserialize.d.ts +5 -0
  168. package/dist/classes/booking-preferences/deserialize.d.ts.map +1 -0
  169. package/dist/classes/booking-preferences/deserialize.js +43 -0
  170. package/dist/classes/booking-preferences/deserialize.js.map +1 -0
  171. package/dist/classes/booking-preferences/index.d.ts +6 -0
  172. package/dist/classes/booking-preferences/index.d.ts.map +1 -0
  173. package/dist/classes/booking-preferences/index.js +6 -0
  174. package/dist/classes/booking-preferences/index.js.map +1 -0
  175. package/dist/classes/booking-preferences/schema.d.ts +13 -0
  176. package/dist/classes/booking-preferences/schema.d.ts.map +1 -0
  177. package/dist/classes/booking-preferences/schema.js +10 -0
  178. package/dist/classes/booking-preferences/schema.js.map +1 -0
  179. package/dist/classes/booking-preferences/serialize.d.ts +6 -0
  180. package/dist/classes/booking-preferences/serialize.d.ts.map +1 -0
  181. package/dist/classes/booking-preferences/serialize.js +28 -0
  182. package/dist/classes/booking-preferences/serialize.js.map +1 -0
  183. package/dist/classes/booking-request/codec.d.ts +4 -0
  184. package/dist/classes/booking-request/codec.d.ts.map +1 -0
  185. package/dist/classes/booking-request/codec.js +11 -0
  186. package/dist/classes/booking-request/codec.js.map +1 -0
  187. package/dist/classes/booking-request/deserialize.d.ts +5 -0
  188. package/dist/classes/booking-request/deserialize.d.ts.map +1 -0
  189. package/dist/classes/booking-request/deserialize.js +47 -0
  190. package/dist/classes/booking-request/deserialize.js.map +1 -0
  191. package/dist/classes/booking-request/index.d.ts +6 -0
  192. package/dist/classes/booking-request/index.d.ts.map +1 -0
  193. package/dist/classes/booking-request/index.js +6 -0
  194. package/dist/classes/booking-request/index.js.map +1 -0
  195. package/dist/classes/booking-request/schema.d.ts +18 -0
  196. package/dist/classes/booking-request/schema.d.ts.map +1 -0
  197. package/dist/classes/booking-request/schema.js +16 -0
  198. package/dist/classes/booking-request/schema.js.map +1 -0
  199. package/dist/classes/booking-request/serialize.d.ts +6 -0
  200. package/dist/classes/booking-request/serialize.d.ts.map +1 -0
  201. package/dist/classes/booking-request/serialize.js +28 -0
  202. package/dist/classes/booking-request/serialize.js.map +1 -0
  203. package/dist/classes/booking-segment/codec.d.ts +4 -0
  204. package/dist/classes/booking-segment/codec.d.ts.map +1 -0
  205. package/dist/classes/booking-segment/codec.js +11 -0
  206. package/dist/classes/booking-segment/codec.js.map +1 -0
  207. package/dist/classes/booking-segment/deserialize.d.ts +5 -0
  208. package/dist/classes/booking-segment/deserialize.d.ts.map +1 -0
  209. package/dist/classes/booking-segment/deserialize.js +47 -0
  210. package/dist/classes/booking-segment/deserialize.js.map +1 -0
  211. package/dist/classes/booking-segment/index.d.ts +6 -0
  212. package/dist/classes/booking-segment/index.d.ts.map +1 -0
  213. package/dist/classes/booking-segment/index.js +6 -0
  214. package/dist/classes/booking-segment/index.js.map +1 -0
  215. package/dist/classes/booking-segment/schema.d.ts +14 -0
  216. package/dist/classes/booking-segment/schema.d.ts.map +1 -0
  217. package/dist/classes/booking-segment/schema.js +12 -0
  218. package/dist/classes/booking-segment/schema.js.map +1 -0
  219. package/dist/classes/booking-segment/serialize.d.ts +6 -0
  220. package/dist/classes/booking-segment/serialize.d.ts.map +1 -0
  221. package/dist/classes/booking-segment/serialize.js +28 -0
  222. package/dist/classes/booking-segment/serialize.js.map +1 -0
  223. package/dist/classes/booking-shipment/codec.d.ts +4 -0
  224. package/dist/classes/booking-shipment/codec.d.ts.map +1 -0
  225. package/dist/classes/booking-shipment/codec.js +11 -0
  226. package/dist/classes/booking-shipment/codec.js.map +1 -0
  227. package/dist/classes/booking-shipment/deserialize.d.ts +5 -0
  228. package/dist/classes/booking-shipment/deserialize.d.ts.map +1 -0
  229. package/dist/classes/booking-shipment/deserialize.js +47 -0
  230. package/dist/classes/booking-shipment/deserialize.js.map +1 -0
  231. package/dist/classes/booking-shipment/index.d.ts +6 -0
  232. package/dist/classes/booking-shipment/index.d.ts.map +1 -0
  233. package/dist/classes/booking-shipment/index.js +6 -0
  234. package/dist/classes/booking-shipment/index.js.map +1 -0
  235. package/dist/classes/booking-shipment/schema.d.ts +16 -0
  236. package/dist/classes/booking-shipment/schema.d.ts.map +1 -0
  237. package/dist/classes/booking-shipment/schema.js +13 -0
  238. package/dist/classes/booking-shipment/schema.js.map +1 -0
  239. package/dist/classes/booking-shipment/serialize.d.ts +6 -0
  240. package/dist/classes/booking-shipment/serialize.d.ts.map +1 -0
  241. package/dist/classes/booking-shipment/serialize.js +28 -0
  242. package/dist/classes/booking-shipment/serialize.js.map +1 -0
  243. package/dist/classes/booking-times/codec.d.ts +4 -0
  244. package/dist/classes/booking-times/codec.d.ts.map +1 -0
  245. package/dist/classes/booking-times/codec.js +11 -0
  246. package/dist/classes/booking-times/codec.js.map +1 -0
  247. package/dist/classes/booking-times/deserialize.d.ts +5 -0
  248. package/dist/classes/booking-times/deserialize.d.ts.map +1 -0
  249. package/dist/classes/booking-times/deserialize.js +43 -0
  250. package/dist/classes/booking-times/deserialize.js.map +1 -0
  251. package/dist/classes/booking-times/index.d.ts +6 -0
  252. package/dist/classes/booking-times/index.d.ts.map +1 -0
  253. package/dist/classes/booking-times/index.js +6 -0
  254. package/dist/classes/booking-times/index.js.map +1 -0
  255. package/dist/classes/booking-times/schema.d.ts +13 -0
  256. package/dist/classes/booking-times/schema.d.ts.map +1 -0
  257. package/dist/classes/booking-times/schema.js +10 -0
  258. package/dist/classes/booking-times/schema.js.map +1 -0
  259. package/dist/classes/booking-times/serialize.d.ts +6 -0
  260. package/dist/classes/booking-times/serialize.d.ts.map +1 -0
  261. package/dist/classes/booking-times/serialize.js +28 -0
  262. package/dist/classes/booking-times/serialize.js.map +1 -0
  263. package/dist/classes/change/codec.d.ts +4 -0
  264. package/dist/classes/change/codec.d.ts.map +1 -0
  265. package/dist/classes/change/codec.js +11 -0
  266. package/dist/classes/change/codec.js.map +1 -0
  267. package/dist/classes/change/deserialize.d.ts +5 -0
  268. package/dist/classes/change/deserialize.d.ts.map +1 -0
  269. package/dist/classes/change/deserialize.js +64 -0
  270. package/dist/classes/change/deserialize.js.map +1 -0
  271. package/dist/classes/change/index.d.ts +6 -0
  272. package/dist/classes/change/index.d.ts.map +1 -0
  273. package/dist/classes/change/index.js +5 -0
  274. package/dist/classes/change/index.js.map +1 -0
  275. package/dist/classes/change/schema.d.ts +22 -0
  276. package/dist/classes/change/schema.d.ts.map +1 -0
  277. package/dist/classes/change/schema.js +11 -0
  278. package/dist/classes/change/schema.js.map +1 -0
  279. package/dist/classes/change/serialize.d.ts +6 -0
  280. package/dist/classes/change/serialize.d.ts.map +1 -0
  281. package/dist/classes/change/serialize.js +28 -0
  282. package/dist/classes/change/serialize.js.map +1 -0
  283. package/dist/classes/change-request/codec.d.ts +4 -0
  284. package/dist/classes/change-request/codec.d.ts.map +1 -0
  285. package/dist/classes/change-request/codec.js +11 -0
  286. package/dist/classes/change-request/codec.js.map +1 -0
  287. package/dist/classes/change-request/deserialize.d.ts +5 -0
  288. package/dist/classes/change-request/deserialize.d.ts.map +1 -0
  289. package/dist/classes/change-request/deserialize.js +64 -0
  290. package/dist/classes/change-request/deserialize.js.map +1 -0
  291. package/dist/classes/change-request/index.d.ts +6 -0
  292. package/dist/classes/change-request/index.d.ts.map +1 -0
  293. package/dist/classes/change-request/index.js +5 -0
  294. package/dist/classes/change-request/index.js.map +1 -0
  295. package/dist/classes/change-request/schema.d.ts +19 -0
  296. package/dist/classes/change-request/schema.d.ts.map +1 -0
  297. package/dist/classes/change-request/schema.js +20 -0
  298. package/dist/classes/change-request/schema.js.map +1 -0
  299. package/dist/classes/change-request/serialize.d.ts +6 -0
  300. package/dist/classes/change-request/serialize.d.ts.map +1 -0
  301. package/dist/classes/change-request/serialize.js +28 -0
  302. package/dist/classes/change-request/serialize.js.map +1 -0
  303. package/dist/classes/handling-service/codec.d.ts +4 -0
  304. package/dist/classes/handling-service/codec.d.ts.map +1 -0
  305. package/dist/classes/handling-service/codec.js +11 -0
  306. package/dist/classes/handling-service/codec.js.map +1 -0
  307. package/dist/classes/handling-service/deserialize.d.ts +5 -0
  308. package/dist/classes/handling-service/deserialize.d.ts.map +1 -0
  309. package/dist/classes/handling-service/deserialize.js +64 -0
  310. package/dist/classes/handling-service/deserialize.js.map +1 -0
  311. package/dist/classes/handling-service/index.d.ts +6 -0
  312. package/dist/classes/handling-service/index.d.ts.map +1 -0
  313. package/dist/classes/handling-service/index.js +5 -0
  314. package/dist/classes/handling-service/index.js.map +1 -0
  315. package/dist/classes/handling-service/schema.d.ts +14 -0
  316. package/dist/classes/handling-service/schema.d.ts.map +1 -0
  317. package/dist/classes/handling-service/schema.js +11 -0
  318. package/dist/classes/handling-service/schema.js.map +1 -0
  319. package/dist/classes/handling-service/serialize.d.ts +6 -0
  320. package/dist/classes/handling-service/serialize.d.ts.map +1 -0
  321. package/dist/classes/handling-service/serialize.js +28 -0
  322. package/dist/classes/handling-service/serialize.js.map +1 -0
  323. package/dist/classes/location/codec.d.ts +4 -0
  324. package/dist/classes/location/codec.d.ts.map +1 -0
  325. package/dist/classes/location/codec.js +11 -0
  326. package/dist/classes/location/codec.js.map +1 -0
  327. package/dist/classes/location/deserialize.d.ts +5 -0
  328. package/dist/classes/location/deserialize.d.ts.map +1 -0
  329. package/dist/classes/location/deserialize.js +64 -0
  330. package/dist/classes/location/deserialize.js.map +1 -0
  331. package/dist/classes/location/index.d.ts +6 -0
  332. package/dist/classes/location/index.d.ts.map +1 -0
  333. package/dist/classes/location/index.js +5 -0
  334. package/dist/classes/location/index.js.map +1 -0
  335. package/dist/classes/location/schema.d.ts +18 -0
  336. package/dist/classes/location/schema.d.ts.map +1 -0
  337. package/dist/classes/location/schema.js +11 -0
  338. package/dist/classes/location/schema.js.map +1 -0
  339. package/dist/classes/location/serialize.d.ts +6 -0
  340. package/dist/classes/location/serialize.d.ts.map +1 -0
  341. package/dist/classes/location/serialize.js +28 -0
  342. package/dist/classes/location/serialize.js.map +1 -0
  343. package/dist/classes/logistics-event/codec.d.ts +4 -0
  344. package/dist/classes/logistics-event/codec.d.ts.map +1 -0
  345. package/dist/classes/logistics-event/codec.js +11 -0
  346. package/dist/classes/logistics-event/codec.js.map +1 -0
  347. package/dist/classes/logistics-event/deserialize.d.ts +5 -0
  348. package/dist/classes/logistics-event/deserialize.d.ts.map +1 -0
  349. package/dist/classes/logistics-event/deserialize.js +64 -0
  350. package/dist/classes/logistics-event/deserialize.js.map +1 -0
  351. package/dist/classes/logistics-event/index.d.ts +6 -0
  352. package/dist/classes/logistics-event/index.d.ts.map +1 -0
  353. package/dist/classes/logistics-event/index.js +5 -0
  354. package/dist/classes/logistics-event/index.js.map +1 -0
  355. package/dist/classes/logistics-event/schema.d.ts +15 -0
  356. package/dist/classes/logistics-event/schema.d.ts.map +1 -0
  357. package/dist/classes/logistics-event/schema.js +12 -0
  358. package/dist/classes/logistics-event/schema.js.map +1 -0
  359. package/dist/classes/logistics-event/serialize.d.ts +6 -0
  360. package/dist/classes/logistics-event/serialize.d.ts.map +1 -0
  361. package/dist/classes/logistics-event/serialize.js +28 -0
  362. package/dist/classes/logistics-event/serialize.js.map +1 -0
  363. package/dist/classes/movement-time/codec.d.ts +4 -0
  364. package/dist/classes/movement-time/codec.d.ts.map +1 -0
  365. package/dist/classes/movement-time/codec.js +11 -0
  366. package/dist/classes/movement-time/codec.js.map +1 -0
  367. package/dist/classes/movement-time/deserialize.d.ts +5 -0
  368. package/dist/classes/movement-time/deserialize.d.ts.map +1 -0
  369. package/dist/classes/movement-time/deserialize.js +64 -0
  370. package/dist/classes/movement-time/deserialize.js.map +1 -0
  371. package/dist/classes/movement-time/index.d.ts +6 -0
  372. package/dist/classes/movement-time/index.d.ts.map +1 -0
  373. package/dist/classes/movement-time/index.js +5 -0
  374. package/dist/classes/movement-time/index.js.map +1 -0
  375. package/dist/classes/movement-time/schema.d.ts +20 -0
  376. package/dist/classes/movement-time/schema.d.ts.map +1 -0
  377. package/dist/classes/movement-time/schema.js +9 -0
  378. package/dist/classes/movement-time/schema.js.map +1 -0
  379. package/dist/classes/movement-time/serialize.d.ts +6 -0
  380. package/dist/classes/movement-time/serialize.d.ts.map +1 -0
  381. package/dist/classes/movement-time/serialize.js +28 -0
  382. package/dist/classes/movement-time/serialize.js.map +1 -0
  383. package/dist/classes/notification/codec.d.ts +4 -0
  384. package/dist/classes/notification/codec.d.ts.map +1 -0
  385. package/dist/classes/notification/codec.js +11 -0
  386. package/dist/classes/notification/codec.js.map +1 -0
  387. package/dist/classes/notification/deserialize.d.ts +5 -0
  388. package/dist/classes/notification/deserialize.d.ts.map +1 -0
  389. package/dist/classes/notification/deserialize.js +64 -0
  390. package/dist/classes/notification/deserialize.js.map +1 -0
  391. package/dist/classes/notification/index.d.ts +6 -0
  392. package/dist/classes/notification/index.d.ts.map +1 -0
  393. package/dist/classes/notification/index.js +5 -0
  394. package/dist/classes/notification/index.js.map +1 -0
  395. package/dist/classes/notification/schema.d.ts +18 -0
  396. package/dist/classes/notification/schema.d.ts.map +1 -0
  397. package/dist/classes/notification/schema.js +11 -0
  398. package/dist/classes/notification/schema.js.map +1 -0
  399. package/dist/classes/notification/serialize.d.ts +6 -0
  400. package/dist/classes/notification/serialize.d.ts.map +1 -0
  401. package/dist/classes/notification/serialize.js +28 -0
  402. package/dist/classes/notification/serialize.js.map +1 -0
  403. package/dist/classes/operation/codec.d.ts +4 -0
  404. package/dist/classes/operation/codec.d.ts.map +1 -0
  405. package/dist/classes/operation/codec.js +11 -0
  406. package/dist/classes/operation/codec.js.map +1 -0
  407. package/dist/classes/operation/deserialize.d.ts +5 -0
  408. package/dist/classes/operation/deserialize.d.ts.map +1 -0
  409. package/dist/classes/operation/deserialize.js +64 -0
  410. package/dist/classes/operation/deserialize.js.map +1 -0
  411. package/dist/classes/operation/index.d.ts +6 -0
  412. package/dist/classes/operation/index.d.ts.map +1 -0
  413. package/dist/classes/operation/index.js +5 -0
  414. package/dist/classes/operation/index.js.map +1 -0
  415. package/dist/classes/operation/schema.d.ts +29 -0
  416. package/dist/classes/operation/schema.d.ts.map +1 -0
  417. package/dist/classes/operation/schema.js +22 -0
  418. package/dist/classes/operation/schema.js.map +1 -0
  419. package/dist/classes/operation/serialize.d.ts +6 -0
  420. package/dist/classes/operation/serialize.d.ts.map +1 -0
  421. package/dist/classes/operation/serialize.js +28 -0
  422. package/dist/classes/operation/serialize.js.map +1 -0
  423. package/dist/classes/organization/codec.d.ts +4 -0
  424. package/dist/classes/organization/codec.d.ts.map +1 -0
  425. package/dist/classes/organization/codec.js +11 -0
  426. package/dist/classes/organization/codec.js.map +1 -0
  427. package/dist/classes/organization/deserialize.d.ts +5 -0
  428. package/dist/classes/organization/deserialize.d.ts.map +1 -0
  429. package/dist/classes/organization/deserialize.js +64 -0
  430. package/dist/classes/organization/deserialize.js.map +1 -0
  431. package/dist/classes/organization/index.d.ts +6 -0
  432. package/dist/classes/organization/index.d.ts.map +1 -0
  433. package/dist/classes/organization/index.js +5 -0
  434. package/dist/classes/organization/index.js.map +1 -0
  435. package/dist/classes/organization/schema.d.ts +14 -0
  436. package/dist/classes/organization/schema.d.ts.map +1 -0
  437. package/dist/classes/organization/schema.js +11 -0
  438. package/dist/classes/organization/schema.js.map +1 -0
  439. package/dist/classes/organization/serialize.d.ts +6 -0
  440. package/dist/classes/organization/serialize.d.ts.map +1 -0
  441. package/dist/classes/organization/serialize.js +28 -0
  442. package/dist/classes/organization/serialize.js.map +1 -0
  443. package/dist/classes/party/codec.d.ts +4 -0
  444. package/dist/classes/party/codec.d.ts.map +1 -0
  445. package/dist/classes/party/codec.js +11 -0
  446. package/dist/classes/party/codec.js.map +1 -0
  447. package/dist/classes/party/deserialize.d.ts +5 -0
  448. package/dist/classes/party/deserialize.d.ts.map +1 -0
  449. package/dist/classes/party/deserialize.js +64 -0
  450. package/dist/classes/party/deserialize.js.map +1 -0
  451. package/dist/classes/party/index.d.ts +6 -0
  452. package/dist/classes/party/index.d.ts.map +1 -0
  453. package/dist/classes/party/index.js +5 -0
  454. package/dist/classes/party/index.js.map +1 -0
  455. package/dist/classes/party/schema.d.ts +21 -0
  456. package/dist/classes/party/schema.d.ts.map +1 -0
  457. package/dist/classes/party/schema.js +10 -0
  458. package/dist/classes/party/schema.js.map +1 -0
  459. package/dist/classes/party/serialize.d.ts +6 -0
  460. package/dist/classes/party/serialize.d.ts.map +1 -0
  461. package/dist/classes/party/serialize.js +28 -0
  462. package/dist/classes/party/serialize.js.map +1 -0
  463. package/dist/classes/person/codec.d.ts +4 -0
  464. package/dist/classes/person/codec.d.ts.map +1 -0
  465. package/dist/classes/person/codec.js +11 -0
  466. package/dist/classes/person/codec.js.map +1 -0
  467. package/dist/classes/person/deserialize.d.ts +5 -0
  468. package/dist/classes/person/deserialize.d.ts.map +1 -0
  469. package/dist/classes/person/deserialize.js +64 -0
  470. package/dist/classes/person/deserialize.js.map +1 -0
  471. package/dist/classes/person/index.d.ts +6 -0
  472. package/dist/classes/person/index.d.ts.map +1 -0
  473. package/dist/classes/person/index.js +5 -0
  474. package/dist/classes/person/index.js.map +1 -0
  475. package/dist/classes/person/schema.d.ts +15 -0
  476. package/dist/classes/person/schema.d.ts.map +1 -0
  477. package/dist/classes/person/schema.js +11 -0
  478. package/dist/classes/person/schema.js.map +1 -0
  479. package/dist/classes/person/serialize.d.ts +6 -0
  480. package/dist/classes/person/serialize.d.ts.map +1 -0
  481. package/dist/classes/person/serialize.js +28 -0
  482. package/dist/classes/person/serialize.js.map +1 -0
  483. package/dist/classes/piece/codec.d.ts +4 -0
  484. package/dist/classes/piece/codec.d.ts.map +1 -0
  485. package/dist/classes/piece/codec.js +11 -0
  486. package/dist/classes/piece/codec.js.map +1 -0
  487. package/dist/classes/piece/deserialize.d.ts +5 -0
  488. package/dist/classes/piece/deserialize.d.ts.map +1 -0
  489. package/dist/classes/piece/deserialize.js +64 -0
  490. package/dist/classes/piece/deserialize.js.map +1 -0
  491. package/dist/classes/piece/index.d.ts +6 -0
  492. package/dist/classes/piece/index.d.ts.map +1 -0
  493. package/dist/classes/piece/index.js +5 -0
  494. package/dist/classes/piece/index.js.map +1 -0
  495. package/dist/classes/piece/schema.d.ts +22 -0
  496. package/dist/classes/piece/schema.d.ts.map +1 -0
  497. package/dist/classes/piece/schema.js +17 -0
  498. package/dist/classes/piece/schema.js.map +1 -0
  499. package/dist/classes/piece/serialize.d.ts +6 -0
  500. package/dist/classes/piece/serialize.d.ts.map +1 -0
  501. package/dist/classes/piece/serialize.js +28 -0
  502. package/dist/classes/piece/serialize.js.map +1 -0
  503. package/dist/classes/server-information/codec.d.ts +4 -0
  504. package/dist/classes/server-information/codec.d.ts.map +1 -0
  505. package/dist/classes/server-information/codec.js +11 -0
  506. package/dist/classes/server-information/codec.js.map +1 -0
  507. package/dist/classes/server-information/deserialize.d.ts +5 -0
  508. package/dist/classes/server-information/deserialize.d.ts.map +1 -0
  509. package/dist/classes/server-information/deserialize.js +64 -0
  510. package/dist/classes/server-information/deserialize.js.map +1 -0
  511. package/dist/classes/server-information/index.d.ts +6 -0
  512. package/dist/classes/server-information/index.d.ts.map +1 -0
  513. package/dist/classes/server-information/index.js +5 -0
  514. package/dist/classes/server-information/index.js.map +1 -0
  515. package/dist/classes/server-information/schema.d.ts +14 -0
  516. package/dist/classes/server-information/schema.d.ts.map +1 -0
  517. package/dist/classes/server-information/schema.js +17 -0
  518. package/dist/classes/server-information/schema.js.map +1 -0
  519. package/dist/classes/server-information/serialize.d.ts +6 -0
  520. package/dist/classes/server-information/serialize.d.ts.map +1 -0
  521. package/dist/classes/server-information/serialize.js +28 -0
  522. package/dist/classes/server-information/serialize.js.map +1 -0
  523. package/dist/classes/shared/codec.d.ts +15 -0
  524. package/dist/classes/shared/codec.d.ts.map +1 -0
  525. package/dist/classes/shared/codec.js +2 -0
  526. package/dist/classes/shared/codec.js.map +1 -0
  527. package/dist/classes/shared/index.d.ts +4 -0
  528. package/dist/classes/shared/index.d.ts.map +1 -0
  529. package/dist/classes/shared/index.js +3 -0
  530. package/dist/classes/shared/index.js.map +1 -0
  531. package/dist/classes/shared/jsonld-brand.d.ts +20 -0
  532. package/dist/classes/shared/jsonld-brand.d.ts.map +1 -0
  533. package/dist/classes/shared/jsonld-brand.js +3 -0
  534. package/dist/classes/shared/jsonld-brand.js.map +1 -0
  535. package/dist/classes/shared/logistics-object.d.ts +23 -0
  536. package/dist/classes/shared/logistics-object.d.ts.map +1 -0
  537. package/dist/classes/shared/logistics-object.js +25 -0
  538. package/dist/classes/shared/logistics-object.js.map +1 -0
  539. package/dist/classes/shared/parse-utils.d.ts +46 -0
  540. package/dist/classes/shared/parse-utils.d.ts.map +1 -0
  541. package/dist/classes/shared/parse-utils.js +105 -0
  542. package/dist/classes/shared/parse-utils.js.map +1 -0
  543. package/dist/classes/shipment/codec.d.ts +4 -0
  544. package/dist/classes/shipment/codec.d.ts.map +1 -0
  545. package/dist/classes/shipment/codec.js +11 -0
  546. package/dist/classes/shipment/codec.js.map +1 -0
  547. package/dist/classes/shipment/deserialize.d.ts +5 -0
  548. package/dist/classes/shipment/deserialize.d.ts.map +1 -0
  549. package/dist/classes/shipment/deserialize.js +64 -0
  550. package/dist/classes/shipment/deserialize.js.map +1 -0
  551. package/dist/classes/shipment/index.d.ts +6 -0
  552. package/dist/classes/shipment/index.d.ts.map +1 -0
  553. package/dist/classes/shipment/index.js +5 -0
  554. package/dist/classes/shipment/index.js.map +1 -0
  555. package/dist/classes/shipment/schema.d.ts +23 -0
  556. package/dist/classes/shipment/schema.d.ts.map +1 -0
  557. package/dist/classes/shipment/schema.js +16 -0
  558. package/dist/classes/shipment/schema.js.map +1 -0
  559. package/dist/classes/shipment/serialize.d.ts +6 -0
  560. package/dist/classes/shipment/serialize.d.ts.map +1 -0
  561. package/dist/classes/shipment/serialize.js +28 -0
  562. package/dist/classes/shipment/serialize.js.map +1 -0
  563. package/dist/classes/subscription/codec.d.ts +4 -0
  564. package/dist/classes/subscription/codec.d.ts.map +1 -0
  565. package/dist/classes/subscription/codec.js +11 -0
  566. package/dist/classes/subscription/codec.js.map +1 -0
  567. package/dist/classes/subscription/deserialize.d.ts +5 -0
  568. package/dist/classes/subscription/deserialize.d.ts.map +1 -0
  569. package/dist/classes/subscription/deserialize.js +64 -0
  570. package/dist/classes/subscription/deserialize.js.map +1 -0
  571. package/dist/classes/subscription/index.d.ts +6 -0
  572. package/dist/classes/subscription/index.d.ts.map +1 -0
  573. package/dist/classes/subscription/index.js +5 -0
  574. package/dist/classes/subscription/index.js.map +1 -0
  575. package/dist/classes/subscription/schema.d.ts +24 -0
  576. package/dist/classes/subscription/schema.d.ts.map +1 -0
  577. package/dist/classes/subscription/schema.js +13 -0
  578. package/dist/classes/subscription/schema.js.map +1 -0
  579. package/dist/classes/subscription/serialize.d.ts +6 -0
  580. package/dist/classes/subscription/serialize.d.ts.map +1 -0
  581. package/dist/classes/subscription/serialize.js +28 -0
  582. package/dist/classes/subscription/serialize.js.map +1 -0
  583. package/dist/classes/subscription-request/codec.d.ts +4 -0
  584. package/dist/classes/subscription-request/codec.d.ts.map +1 -0
  585. package/dist/classes/subscription-request/codec.js +11 -0
  586. package/dist/classes/subscription-request/codec.js.map +1 -0
  587. package/dist/classes/subscription-request/deserialize.d.ts +5 -0
  588. package/dist/classes/subscription-request/deserialize.d.ts.map +1 -0
  589. package/dist/classes/subscription-request/deserialize.js +64 -0
  590. package/dist/classes/subscription-request/deserialize.js.map +1 -0
  591. package/dist/classes/subscription-request/index.d.ts +6 -0
  592. package/dist/classes/subscription-request/index.d.ts.map +1 -0
  593. package/dist/classes/subscription-request/index.js +5 -0
  594. package/dist/classes/subscription-request/index.js.map +1 -0
  595. package/dist/classes/subscription-request/schema.d.ts +17 -0
  596. package/dist/classes/subscription-request/schema.d.ts.map +1 -0
  597. package/dist/classes/subscription-request/schema.js +14 -0
  598. package/dist/classes/subscription-request/schema.js.map +1 -0
  599. package/dist/classes/subscription-request/serialize.d.ts +6 -0
  600. package/dist/classes/subscription-request/serialize.d.ts.map +1 -0
  601. package/dist/classes/subscription-request/serialize.js +28 -0
  602. package/dist/classes/subscription-request/serialize.js.map +1 -0
  603. package/dist/classes/transport-movement/codec.d.ts +4 -0
  604. package/dist/classes/transport-movement/codec.d.ts.map +1 -0
  605. package/dist/classes/transport-movement/codec.js +11 -0
  606. package/dist/classes/transport-movement/codec.js.map +1 -0
  607. package/dist/classes/transport-movement/deserialize.d.ts +5 -0
  608. package/dist/classes/transport-movement/deserialize.d.ts.map +1 -0
  609. package/dist/classes/transport-movement/deserialize.js +64 -0
  610. package/dist/classes/transport-movement/deserialize.js.map +1 -0
  611. package/dist/classes/transport-movement/index.d.ts +6 -0
  612. package/dist/classes/transport-movement/index.d.ts.map +1 -0
  613. package/dist/classes/transport-movement/index.js +5 -0
  614. package/dist/classes/transport-movement/index.js.map +1 -0
  615. package/dist/classes/transport-movement/schema.d.ts +20 -0
  616. package/dist/classes/transport-movement/schema.d.ts.map +1 -0
  617. package/dist/classes/transport-movement/schema.js +12 -0
  618. package/dist/classes/transport-movement/schema.js.map +1 -0
  619. package/dist/classes/transport-movement/serialize.d.ts +6 -0
  620. package/dist/classes/transport-movement/serialize.d.ts.map +1 -0
  621. package/dist/classes/transport-movement/serialize.js +28 -0
  622. package/dist/classes/transport-movement/serialize.js.map +1 -0
  623. package/dist/classes/verification/codec.d.ts +16 -0
  624. package/dist/classes/verification/codec.d.ts.map +1 -0
  625. package/dist/classes/verification/codec.js +23 -0
  626. package/dist/classes/verification/codec.js.map +1 -0
  627. package/dist/classes/verification/deserialize.d.ts +5 -0
  628. package/dist/classes/verification/deserialize.d.ts.map +1 -0
  629. package/dist/classes/verification/deserialize.js +64 -0
  630. package/dist/classes/verification/deserialize.js.map +1 -0
  631. package/dist/classes/verification/index.d.ts +6 -0
  632. package/dist/classes/verification/index.d.ts.map +1 -0
  633. package/dist/classes/verification/index.js +5 -0
  634. package/dist/classes/verification/index.js.map +1 -0
  635. package/dist/classes/verification/schema.d.ts +28 -0
  636. package/dist/classes/verification/schema.d.ts.map +1 -0
  637. package/dist/classes/verification/schema.js +10 -0
  638. package/dist/classes/verification/schema.js.map +1 -0
  639. package/dist/classes/verification/serialize.d.ts +6 -0
  640. package/dist/classes/verification/serialize.d.ts.map +1 -0
  641. package/dist/classes/verification/serialize.js +28 -0
  642. package/dist/classes/verification/serialize.js.map +1 -0
  643. package/dist/classes/verification-request/codec.d.ts +4 -0
  644. package/dist/classes/verification-request/codec.d.ts.map +1 -0
  645. package/dist/classes/verification-request/codec.js +11 -0
  646. package/dist/classes/verification-request/codec.js.map +1 -0
  647. package/dist/classes/verification-request/deserialize.d.ts +5 -0
  648. package/dist/classes/verification-request/deserialize.d.ts.map +1 -0
  649. package/dist/classes/verification-request/deserialize.js +64 -0
  650. package/dist/classes/verification-request/deserialize.js.map +1 -0
  651. package/dist/classes/verification-request/index.d.ts +6 -0
  652. package/dist/classes/verification-request/index.d.ts.map +1 -0
  653. package/dist/classes/verification-request/index.js +5 -0
  654. package/dist/classes/verification-request/index.js.map +1 -0
  655. package/dist/classes/verification-request/schema.d.ts +17 -0
  656. package/dist/classes/verification-request/schema.d.ts.map +1 -0
  657. package/dist/classes/verification-request/schema.js +14 -0
  658. package/dist/classes/verification-request/schema.js.map +1 -0
  659. package/dist/classes/verification-request/serialize.d.ts +6 -0
  660. package/dist/classes/verification-request/serialize.d.ts.map +1 -0
  661. package/dist/classes/verification-request/serialize.js +28 -0
  662. package/dist/classes/verification-request/serialize.js.map +1 -0
  663. package/dist/classes/waybill/codec.d.ts +4 -0
  664. package/dist/classes/waybill/codec.d.ts.map +1 -0
  665. package/dist/classes/waybill/codec.js +11 -0
  666. package/dist/classes/waybill/codec.js.map +1 -0
  667. package/dist/classes/waybill/deserialize.d.ts +5 -0
  668. package/dist/classes/waybill/deserialize.d.ts.map +1 -0
  669. package/dist/classes/waybill/deserialize.js +67 -0
  670. package/dist/classes/waybill/deserialize.js.map +1 -0
  671. package/dist/classes/waybill/index.d.ts +6 -0
  672. package/dist/classes/waybill/index.d.ts.map +1 -0
  673. package/dist/classes/waybill/index.js +5 -0
  674. package/dist/classes/waybill/index.js.map +1 -0
  675. package/dist/classes/waybill/schema.d.ts +22 -0
  676. package/dist/classes/waybill/schema.d.ts.map +1 -0
  677. package/dist/classes/waybill/schema.js +15 -0
  678. package/dist/classes/waybill/schema.js.map +1 -0
  679. package/dist/classes/waybill/serialize.d.ts +6 -0
  680. package/dist/classes/waybill/serialize.d.ts.map +1 -0
  681. package/dist/classes/waybill/serialize.js +28 -0
  682. package/dist/classes/waybill/serialize.js.map +1 -0
  683. package/dist/codecs.d.ts +39 -0
  684. package/dist/codecs.d.ts.map +1 -0
  685. package/dist/codecs.js +46 -0
  686. package/dist/codecs.js.map +1 -0
  687. package/dist/codes/enums.d.ts +52 -0
  688. package/dist/codes/enums.d.ts.map +1 -0
  689. package/dist/codes/enums.js +38 -0
  690. package/dist/codes/enums.js.map +1 -0
  691. package/dist/codes/fsu-event-codes.d.ts +35 -0
  692. package/dist/codes/fsu-event-codes.d.ts.map +1 -0
  693. package/dist/codes/fsu-event-codes.js +35 -0
  694. package/dist/codes/fsu-event-codes.js.map +1 -0
  695. package/dist/codes/index.d.ts +4 -0
  696. package/dist/codes/index.d.ts.map +1 -0
  697. package/dist/codes/index.js +4 -0
  698. package/dist/codes/index.js.map +1 -0
  699. package/dist/context.d.ts +24 -0
  700. package/dist/context.d.ts.map +1 -0
  701. package/dist/context.js +62 -0
  702. package/dist/context.js.map +1 -0
  703. package/dist/error/assert-never.d.ts +6 -0
  704. package/dist/error/assert-never.d.ts.map +1 -0
  705. package/dist/error/assert-never.js +9 -0
  706. package/dist/error/assert-never.js.map +1 -0
  707. package/dist/error/format.d.ts +7 -0
  708. package/dist/error/format.d.ts.map +1 -0
  709. package/dist/error/format.js +56 -0
  710. package/dist/error/format.js.map +1 -0
  711. package/dist/error/index.d.ts +4 -0
  712. package/dist/error/index.d.ts.map +1 -0
  713. package/dist/error/index.js +5 -0
  714. package/dist/error/index.js.map +1 -0
  715. package/dist/error/redact.d.ts +7 -0
  716. package/dist/error/redact.d.ts.map +1 -0
  717. package/dist/error/redact.js +12 -0
  718. package/dist/error/redact.js.map +1 -0
  719. package/dist/facade.d.ts +18 -0
  720. package/dist/facade.d.ts.map +1 -0
  721. package/dist/facade.js +14 -0
  722. package/dist/facade.js.map +1 -0
  723. package/dist/factory-classes.d.ts +78 -0
  724. package/dist/factory-classes.d.ts.map +1 -0
  725. package/dist/factory-classes.js +85 -0
  726. package/dist/factory-classes.js.map +1 -0
  727. package/dist/factory.d.ts +41 -0
  728. package/dist/factory.d.ts.map +1 -0
  729. package/dist/factory.js +31 -0
  730. package/dist/factory.js.map +1 -0
  731. package/dist/index.d.ts +83 -0
  732. package/dist/index.d.ts.map +1 -0
  733. package/dist/index.js +86 -0
  734. package/dist/index.js.map +1 -0
  735. package/dist/iri/build.d.ts +8 -0
  736. package/dist/iri/build.d.ts.map +1 -0
  737. package/dist/iri/build.js +11 -0
  738. package/dist/iri/build.js.map +1 -0
  739. package/dist/iri/default-strategy.d.ts +8 -0
  740. package/dist/iri/default-strategy.d.ts.map +1 -0
  741. package/dist/iri/default-strategy.js +27 -0
  742. package/dist/iri/default-strategy.js.map +1 -0
  743. package/dist/iri/index.d.ts +8 -0
  744. package/dist/iri/index.d.ts.map +1 -0
  745. package/dist/iri/index.js +6 -0
  746. package/dist/iri/index.js.map +1 -0
  747. package/dist/iri/normalize.d.ts +13 -0
  748. package/dist/iri/normalize.d.ts.map +1 -0
  749. package/dist/iri/normalize.js +25 -0
  750. package/dist/iri/normalize.js.map +1 -0
  751. package/dist/iri/strategy.d.ts +26 -0
  752. package/dist/iri/strategy.d.ts.map +1 -0
  753. package/dist/iri/strategy.js +3 -0
  754. package/dist/iri/strategy.js.map +1 -0
  755. package/dist/iri/validate.d.ts +8 -0
  756. package/dist/iri/validate.d.ts.map +1 -0
  757. package/dist/iri/validate.js +54 -0
  758. package/dist/iri/validate.js.map +1 -0
  759. package/dist/iri/zod-safe-iri.d.ts +48 -0
  760. package/dist/iri/zod-safe-iri.d.ts.map +1 -0
  761. package/dist/iri/zod-safe-iri.js +79 -0
  762. package/dist/iri/zod-safe-iri.js.map +1 -0
  763. package/dist/operations/apply-change.d.ts +19 -0
  764. package/dist/operations/apply-change.d.ts.map +1 -0
  765. package/dist/operations/apply-change.js +232 -0
  766. package/dist/operations/apply-change.js.map +1 -0
  767. package/dist/operations/index.d.ts +6 -0
  768. package/dist/operations/index.d.ts.map +1 -0
  769. package/dist/operations/index.js +5 -0
  770. package/dist/operations/index.js.map +1 -0
  771. package/dist/operations/json-pointer.d.ts +20 -0
  772. package/dist/operations/json-pointer.d.ts.map +1 -0
  773. package/dist/operations/json-pointer.js +31 -0
  774. package/dist/operations/json-pointer.js.map +1 -0
  775. package/dist/operations/validate-operation.d.ts +10 -0
  776. package/dist/operations/validate-operation.d.ts.map +1 -0
  777. package/dist/operations/validate-operation.js +27 -0
  778. package/dist/operations/validate-operation.js.map +1 -0
  779. package/dist/result.d.ts +169 -0
  780. package/dist/result.d.ts.map +1 -0
  781. package/dist/result.js +82 -0
  782. package/dist/result.js.map +1 -0
  783. package/dist/safety/circular-ref.d.ts +8 -0
  784. package/dist/safety/circular-ref.d.ts.map +1 -0
  785. package/dist/safety/circular-ref.js +37 -0
  786. package/dist/safety/circular-ref.js.map +1 -0
  787. package/dist/safety/index.d.ts +8 -0
  788. package/dist/safety/index.d.ts.map +1 -0
  789. package/dist/safety/index.js +6 -0
  790. package/dist/safety/index.js.map +1 -0
  791. package/dist/safety/limits.d.ts +26 -0
  792. package/dist/safety/limits.d.ts.map +1 -0
  793. package/dist/safety/limits.js +36 -0
  794. package/dist/safety/limits.js.map +1 -0
  795. package/dist/safety/path-traversal.d.ts +11 -0
  796. package/dist/safety/path-traversal.d.ts.map +1 -0
  797. package/dist/safety/path-traversal.js +41 -0
  798. package/dist/safety/path-traversal.js.map +1 -0
  799. package/dist/safety/pre-validate.d.ts +20 -0
  800. package/dist/safety/pre-validate.d.ts.map +1 -0
  801. package/dist/safety/pre-validate.js +123 -0
  802. package/dist/safety/pre-validate.js.map +1 -0
  803. package/dist/safety/prototype-pollution.d.ts +19 -0
  804. package/dist/safety/prototype-pollution.d.ts.map +1 -0
  805. package/dist/safety/prototype-pollution.js +72 -0
  806. package/dist/safety/prototype-pollution.js.map +1 -0
  807. package/dist/types/index.d.ts +39 -0
  808. package/dist/types/index.d.ts.map +1 -0
  809. package/dist/types/index.js +2 -0
  810. package/dist/types/index.js.map +1 -0
  811. package/dist/util/deep-freeze.d.ts +8 -0
  812. package/dist/util/deep-freeze.d.ts.map +1 -0
  813. package/dist/util/deep-freeze.js +21 -0
  814. package/dist/util/deep-freeze.js.map +1 -0
  815. package/dist/version.d.ts +23 -0
  816. package/dist/version.d.ts.map +1 -0
  817. package/dist/version.js +49 -0
  818. package/dist/version.js.map +1 -0
  819. package/package.json +88 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,305 @@
1
+ # Changelog
2
+
3
+ All notable changes are documented here. Format follows
4
+ [Keep a Changelog](https://keepachangelog.com/), versioning follows
5
+ [SemVer](https://semver.org/) per the policy in `MIGRATING.md`.
6
+
7
+ ## [0.1.1] - 2026-04-27 (install fix + open-sourcing pass)
8
+
9
+ First public release. v0.1.0 was tagged but unconsumable via git URL
10
+ (see "Critical install fix" below); v0.1.1 is the first version Tracks
11
+ B and C should pin to.
12
+
13
+ ### Critical install fix
14
+
15
+ - Add `prepare` lifecycle script to `package.json` so
16
+ `bun add git+https://github.com/tjo099/onerecord-mapper#v0.1.1`
17
+ builds `dist/` on install. v0.1.0 published `exports` pointing at
18
+ `./dist/...` but had no `prepare` script and `dist/` is gitignored,
19
+ so consumers got an unimportable package: "Cannot find module
20
+ '@flaks/onerecord'". The `prepare` script runs
21
+ `tsc -p tsconfig.build.json` at install time (Bun and npm both run
22
+ `prepare` for git-URL packages by default).
23
+
24
+ **Note for consumers with `ignore-scripts=true`** (security-hardened
25
+ npm/bun config): `prepare` will not run automatically. Either
26
+ temporarily allow scripts when installing this package, run
27
+ `bun run build` manually inside `node_modules/@flaks/onerecord/`
28
+ post-install, or wait for v0.2.0, which publishes `@flaks/onerecord`
29
+ to npm with prebuilt `dist/` in the registry tarball (no `prepare`
30
+ needed).
31
+
32
+ ### Release pipeline corrections
33
+
34
+ - Remove the "Verify built dist matches committed dist" step from
35
+ `release.yml`. It was incompatible with `.gitignore` excluding
36
+ `dist/`; the gate would always fail on a real release run. Build
37
+ artefact integrity is now provided by the `prepare` script on
38
+ consumer machines and (in v0.2.0) by the npm registry tarball.
39
+ - Disable (comment) the NE:ONE contract gate step in `release.yml`.
40
+ The `test/contract/docker-compose.neone.yml` file referenced by the
41
+ step does not exist; the contract test was deferred to v0.2 Phase 14
42
+ (Tasks 68-71). The step is restored when Phase 14 lands.
43
+
44
+ ### Open-sourcing pass — completed
45
+
46
+ - Maintainer GPG signing key generated: `ed25519/55BABA8EED158AD1`
47
+ (fingerprint `8033 2600 17B9 BAE5 BAD9 CA15 55BA BA8E ED15 8AD1`),
48
+ UID `tjo099 <tjo099@gmail.com>`, expires 2028-04-26. Public key
49
+ served at `https://github.com/tjo099.gpg`.
50
+ - Local git config: `commit.gpgsign=true`, `tag.gpgsign=true`,
51
+ `user.signingkey` set globally. Signing verified end-to-end via
52
+ `gpg --clearsign` and via signed commits landing on `main`.
53
+ - `MAINTAINER_GPG_PUBLIC_KEY` repository secret set on
54
+ `tjo099/onerecord-mapper` with the ASCII-armored public key.
55
+ - `release.yml` imports the maintainer GPG public key from
56
+ `secrets.MAINTAINER_GPG_PUBLIC_KEY` before the `git tag -v`
57
+ verification gate. Closes the cold-runner failure mode flagged in
58
+ v0.1.0 "Known gaps" item #2.
59
+ - `SECURITY.md`: GPG fingerprint placeholder filled with the real
60
+ fingerprint and updated to point at `https://github.com/tjo099.gpg`
61
+ as the canonical public-key source. Placeholder `security@flaks.io`
62
+ (no MX record) replaced with GitHub Private Vulnerability Reporting
63
+ URL. Closes v0.1.0 "Known gaps" item #5.
64
+ - Public-OSS hygiene scaffolding added: `CONTRIBUTING.md`,
65
+ `CODE_OF_CONDUCT.md` (adopts Contributor Covenant 2.1 by reference),
66
+ `.github/ISSUE_TEMPLATE/{bug_report,feature_request,config}`,
67
+ `.github/PULL_REQUEST_TEMPLATE.md`, `.github/CODEOWNERS`.
68
+ - README + MIGRATING rewritten for public consumers (drop "internal
69
+ use only" framing, drop `GITHUB_TOKEN` requirement). Added "Why use
70
+ this library?" section.
71
+ - New `docs/spec-deviations.md`: consumer-focused documentation of
72
+ five deliberate divergences from canonical IATA OneRecord behavior
73
+ in v0.1.x. Source of truth for deviations.
74
+ - Repository visibility flipped PRIVATE → PUBLIC. First signed commits
75
+ landed on `main` and verified by GitHub.
76
+
77
+ ### Carry-forward to v0.2.0
78
+
79
+ - npm publish workflow for `@flaks/onerecord` as a public scoped
80
+ package — removes the `prepare`-script dependency on consumer
81
+ toolchain and closes the `ignore-scripts=true` fragility.
82
+ - Maintainer must back up the auto-generated revocation certificate at
83
+ `~/.gnupg/openpgp-revocs.d/8033260017B9BAE5BAD9CA1555BABA8EED158AD1.rev`
84
+ to offline storage (user-action; not code-shippable).
85
+
86
+ ## [0.2.0] - planned (open-sourcing pass + ecosystem hardening)
87
+
88
+ Internal consumption from Tracks B+C plus selective external publication. Goal:
89
+ make the mapper safe to flip the repo public and accept community contributions
90
+ without retroactive scrubbing.
91
+
92
+ ### Open-sourcing prep
93
+
94
+ - Re-enable commit signing (GPG or SSH) — `git config commit.gpgsign true` +
95
+ `tag.gpgsign true`. All v0.1.x commits remain unsigned; v0.2 commits will be
96
+ signed.
97
+ - Wire `gpg --import` step into `release.yml` before the `git tag -v`
98
+ verification gate. Public key sourced from `secrets.MAINTAINER_GPG_PUBLIC_KEY`.
99
+ - Replace `security@flaks.io` placeholder in `SECURITY.md` with either a
100
+ maintained address or the GitHub Private Vulnerability Reporting URL.
101
+ - Flip GitHub repo from private to public.
102
+ - npm publish workflow (`@flaks/onerecord` scoped public) — alternative to
103
+ git-URL distribution.
104
+
105
+ ### Phase 14 — NE:ONE Docker contract test (deferred from v0.1)
106
+
107
+ - Tasks 68-71: docker-compose for NE:ONE Server reference impl, contract test
108
+ against a running server (`bun run test:contract`), nightly CI job, release
109
+ gate exercises the contract test before tagging.
110
+
111
+ ### Ecosystem hardening
112
+
113
+ - Property-based round-trip tests extended beyond Waybill (Shipment, Piece,
114
+ Address, Party, ...) — same pattern as `test/property/waybill-roundtrip.property.test.ts`.
115
+ - SBOM via `syft` + SLSA provenance docs (T70).
116
+ - Bundle-size assertion in `release.yml` — keeps tree-shake claims honest
117
+ (T82 step 4b).
118
+
119
+ ### API additions under consideration
120
+
121
+ - Graph-walk validation: emit `duplicate_id_in_graph`, `missing_id`,
122
+ `wrong_type_for_endpoint`, `missing_type` from a higher-level dispatch
123
+ layer (currently these kinds exist in the union but no per-class deserializer
124
+ emits them).
125
+ - Reconcile `acceptBookingOption` divergence — either implement the
126
+ spec §5.4 BookingOptionRequest intermediate, or formalize the v0.1
127
+ shortcut with a spec amendment PR to IATA.
128
+ - Zod 4 migration if upstream stabilizes.
129
+
130
+ ### Plan deviations from v3 spec to revisit
131
+
132
+ - Replace hand-pinned T37a fixture (`pinnedSha: manually-pinned-v0.1.0`) with
133
+ a real upstream xlsx SHA via `scripts/convert-iata-xlsx.ts --only fsu`.
134
+ - Re-enable T48a Phase 9+ catalogue assertions: `forbidden-state-transition`,
135
+ `operation-field-not-allowed`, `prototype-key-injection` (the applyChange
136
+ variants), `change_partial_failure` in `zod-shape.test.ts`. Currently
137
+ placeholder-skipped.
138
+
139
+ ---
140
+
141
+ ## [0.1.0] - 2026-04-27 (internal-only)
142
+
143
+ First minor release for internal consumption by Tracks B+C SaaS products. Not
144
+ published to public npm; not flagged for external distribution. All open-source
145
+ prep (commit signing, public repo flip, GPG release-tag verification) deferred
146
+ to v0.2.
147
+
148
+ ### Library surface
149
+
150
+ - 32 OneRecord cargo data model 3.2 classes with full round-trip codec, Zod schema,
151
+ JsonLd<T> brand, and snapshot test coverage:
152
+ - Ring 1: Waybill, Shipment, Piece
153
+ - Ring 2: Address, Person, Organization, Party, AccountNumber
154
+ - Ring 3: TransportMovement, LogisticsEvent, MovementTime, Location
155
+ - Ring 4: Subscription, SubscriptionRequest, Notification, ChangeRequest, Change,
156
+ Operation, AccessDelegation, AccessDelegationRequest, Verification (with
157
+ UnverifiedVerification brand per spec §3.1), VerificationRequest, ServerInformation
158
+ - Ring 5: HandlingService
159
+ - Booking: Booking, BookingRequest, BookingOption, BookingOptionRequest,
160
+ BookingPreferences, BookingSegment, BookingShipment, BookingTimes
161
+ - `createMapper({ limits, iriStrategy, allowedSchemes })` — bound-methods factory
162
+ with deep-frozen options at creation time
163
+ - `onerecord.{deserialize,serialize}.<Class>` — namespaced facade with no bound
164
+ state, suitable for one-off operations
165
+ - `applyChange(codec, obj, change)` JSON-Patch-style mutation per spec §6.5 with
166
+ invalid_pointer for traversal failures
167
+ - `validateOperation(op, allowedFields: ReadonlyArray<JsonPointer | RegExp>)` with
168
+ locked type per spec §13
169
+ - Booking state machine: deep-frozen `STATE_DIAGRAM`, `canTransition` predicate,
170
+ typed transition wrappers (acceptBookingRequest, acceptBookingOption,
171
+ rejectBookingOption, revokeBookingOption)
172
+ - 22-variant `ParseError` discriminated union including v3 `invalid_pointer` for
173
+ JSON-pointer traversal failures
174
+ - `SerializationError` class with `code: 'invalid_application_object' |
175
+ 'iri_construction_failed'`
176
+ - `formatError(e)` + `redactError(e)` helpers — exhaustive switch over all 22
177
+ ParseError kinds
178
+ - 26-code FSU event-code map per spec acceptance #2
179
+ - Safety: pre-Zod sanity pass (depth/nodes/string/array/payload limits, prototype-
180
+ pollution defense, JS-level circular reference detection)
181
+ - Branded `SafeIri` (https-only by default) + `safeIri()` Zod helper that lifts
182
+ IRI failures into kind: 'invalid_iri' before the generic zod_validation envelope
183
+ - `Codec` subpath export `@flaks/onerecord/codecs` for tree-shake-optimized
184
+ consumers
185
+ - Type-only barrel `@flaks/onerecord/types` for zero-runtime imports
186
+
187
+ ### Test coverage
188
+
189
+ - 518 passing + 10 skipped = 528 total tests across 119 test files
190
+ - Property-based round-trip tests via fast-check (Waybill — extensible to other classes)
191
+ - Per-error-kind negative deserialize catalogue (15 files, manifest-verified via
192
+ PARSE_ERROR_KIND_TO_FILE rename map)
193
+ - Class-completeness introspection (asserts all 32 classes have schema + tests +
194
+ snapshots)
195
+ - Public API surface lock via snapshot test
196
+
197
+ ### Internal-only release notes
198
+
199
+ - v0.1.0 ships as a private GitHub repo. Consumers (Tracks B+C) install via
200
+ `bun install git+https://github.com/tjo099/onerecord-mapper#v0.1.0` with
201
+ GitHub token auth.
202
+ - Commit signing remains suspended; release.yml's signed-tag verification gate
203
+ is bypassed for v0.1.0. Both will be re-enabled before any public release.
204
+ - `security@flaks.io` placeholder in SECURITY.md remains (no MX record); replace
205
+ before flipping the repo public.
206
+
207
+ ---
208
+
209
+ ## [Unreleased] (0.0.x prerelease scaffold — content promoted to [0.1.0] above)
210
+
211
+ ### Build / dev environment changes (vs locked plan)
212
+ - Bun pin: `engines.bun` set to `1.3.x` (plan was `1.1.x`); CI `bun-version: '1.3.11'`. Reason: local toolchain is 1.3.11.
213
+ - `xlsx` devDep pinned to `^0.18.5` (plan was `^0.20.0`). Reason: 0.20.x is SheetJS Pro CDN-only, not public npm.
214
+ - `dependabot.yml` adds `ignore: [{ dependency-name: "*", update-types: ["version-update:semver-major"] }]` for both `github-actions` and `npm` ecosystems. Reason: locked plan pins specific majors (Biome 1.x, Vitest 2.x, fast-check 3.x, attw 0.16, types/node 20.x); without this rule Dependabot opens unwanted major-bump PRs every week. The first 5 such PRs (#1–#5) were closed manually.
215
+ - GHA workflow YAML: quoted `${{ }}` template expressions inside flow-style `with: { ... }` mappings in `ci.yml` (line 54: `node-version`) and `release.yml` (line 48: `artifact-name`). Reason: YAML's flow-mapping tokenizer collides with the `${` + `{` of the template delimiter, causing both workflows to fail GHA validation in 0s. The locked plan's verbatim YAML was invalid.
216
+
217
+ ### Plan deviations
218
+ - **v3 plan correction (Phase 5 Task 25 onwards)**: per-class `deserialize.ts`
219
+ runs `findFirstEmptyArray` BEFORE Zod (was post-Zod in the v3 template).
220
+ Reason: harness `emptyArrayField` invocation expects `cardinality_violation`
221
+ for `[]` injected into a single-IRI field whose schema is `safeIri().optional()`.
222
+ Post-Zod placement is unreachable because Zod emits `zod_validation` first.
223
+ Pre-Zod placement matches the spec's "reject empty arrays on the wire" intent
224
+ and works regardless of the field's declared schema type.
225
+ - **T37a fixture hand-pinned**: `test/fixtures/iata/xfsu-status-codes.json` was
226
+ written directly from the v2 plan's authoritative 26-code listing rather than
227
+ being generated by `scripts/convert-iata-xlsx.ts --only fsu` (the xlsx-fetch
228
+ script — full implementation deferred to T77). The 26 codes match the IATA
229
+ Cargo XFSU-Status-Codes.xlsx working draft as of the v2 plan authoring date.
230
+ Field `pinnedSha` is set to the placeholder `manually-pinned-v0.1.0`; T77
231
+ will replace it with the upstream xlsx SHA.
232
+ - **T48a manifest assertion**: v3 plan said `expect(fileSet.size).toBe(16)`. The
233
+ actual unique-file count from `PARSE_ERROR_KIND_TO_FILE` (in src/result.ts) is
234
+ 15 — `cardinality.test.ts` and `empty-array-on-wire.test.ts` are different
235
+ files but only `cardinality.test.ts` is in the rename map (the empty-array
236
+ regression file is referenced by T48b prose, not by the manifest). Adjusted
237
+ the assertion to `toBe(15)`. The 16th file `empty-array-on-wire.test.ts`
238
+ exists in `test/deserialize-errors/` but is NOT in the manifest map (it's a
239
+ regression test for nested-empty-array detection per T48b).
240
+ - **Phase 9+ catalogue stubs**: `forbidden-state-transition.test.ts`,
241
+ `operation-field-not-allowed.test.ts`, `prototype-key-injection.test.ts`
242
+ (for prototype_pollution_attempt + invalid_pointer kinds), and
243
+ `zod-shape.test.ts` (for change_partial_failure) contain `it.skip`
244
+ placeholders for assertions that require Phase 9-10 machinery (applyChange,
245
+ validateOperation, STATE_DIAGRAM). The manifest test still passes because
246
+ these files exist and the placeholder tests are skipped (vitest counts
247
+ skipped tests as neither passed nor failed).
248
+ - **`missing_type`, `wrong_type_for_endpoint`, `missing_id`,
249
+ `duplicate_id_in_graph`, `mixed_context`**: per-class deserializers
250
+ currently don't emit these kinds (Zod fires first for shape errors;
251
+ graph-walk validation isn't implemented in v0.1.0). Their files exist
252
+ with `it.skip` placeholders documenting "reserved for higher-level
253
+ dispatch / facade" or similar. The kinds remain in the union for forward
254
+ compatibility. (Exception: `mixed_context` IS emitted by `assertContextAllowed`
255
+ for array `@context` with mixed allowed/unallowed members — its test file
256
+ uses a real assertion, not a skip.)
257
+ - **T48a circular-reference test**: `circular_reference` kind is architecturally
258
+ unreachable via a simple self-referential object (`wb.self = wb`) because
259
+ `preValidate` step 2 (depth/node walk) recurses into the cycle and emits
260
+ `depth_limit_exceeded` before step 4 (`detectCycle`) runs. The test covers
261
+ both accepted kinds (`circular_reference` or `depth_limit_exceeded`) for the
262
+ self-referential case, and separately verifies that `detectCycle` correctly
263
+ accepts diamond (shared reference) patterns without false positive.
264
+ - **Phase 9-12 dispatched in 4 parallel worktrees**: To maximise throughput,
265
+ Phase 9 (Tasks 49-53), Phase 10 (Tasks 54-63), Phase 11 (Task 64), and
266
+ Phase 12 (Tasks 65-66) were implemented by 4 isolated subagents with
267
+ `isolation: "worktree"`. Each agent committed to its own branch; Phase 9
268
+ and Phase 11 were based on current main (clean fast-forward merges).
269
+ Phase 10 and Phase 12 were based on the pre-Phase-4 main (stale worktree
270
+ init), so their branches were cherry-picked file-by-file rather than
271
+ merged: only the new `src/booking-flow/`, 8 booking class directories,
272
+ their tests/factories, plus the `synthetic-fwb-1.expected.json` fixture
273
+ and `synthetic-fwb.test.ts` integration test are taken. Phase 12's
274
+ worktree-local Waybill re-creation was discarded (main already has the
275
+ canonical Waybill from c8a7af0).
276
+ - **`toPreValidateOpts` + `toContextOpts` helpers (Phase 10)**: Phase 10's
277
+ worktree introduced two helper functions in `src/classes/shared/parse-utils.ts`
278
+ that encapsulate the conditional-spread pattern for
279
+ `exactOptionalPropertyTypes`. Existing per-class deserialize.ts files
280
+ (Phases 5-8) inline the conditional-spread; new booking deserialize.ts
281
+ files (Phase 10) use the helpers. Both styles work — the helpers are
282
+ the recommended pattern for new code.
283
+ - **`acceptBookingOption` deliberate divergence**: The typed transition
284
+ wrapper (`src/booking-flow/transitions.ts`) skips the
285
+ `BookingOptionRequest` intermediate state and returns a `Booking`
286
+ directly. This contradicts spec §5.4 STATE_DIAGRAM (which routes
287
+ `BookingOption.accept -> BookingOptionRequest`) but matches spec §5.2
288
+ signature. v0.1.0 ships this divergence; v0.2 will reconcile.
289
+
290
+ ### Known gaps to resolve before v0.1.0 release tag
291
+ - Commit signing (`git commit -S`) currently suspended (Tasks 1–8 commits are unsigned). Re-enable: configure SSH or GPG signing key + `git config commit.gpgsign true` + `tag.gpgsign true`. `release.yml` signed-tag verify is the release gate.
292
+ - `release.yml` step `Verify signed tag` (`git tag -v`) requires the maintainer GPG public key in the runner keyring. No `gpg --import` step is wired in yet — first release run will fail at tag verification on a cold runner. Add a `gpg --import` step that pulls the public key from a GitHub secret (`secrets.MAINTAINER_GPG_PUBLIC_KEY`) before `git tag -v`. Pair with the signing-key setup above.
293
+ - Repository visibility: PRIVATE. Flip to PUBLIC before v0.1.0 tag for Bun git-URL install by consumers (Tracks B + C). Apache 2.0 + git-URL distribution model.
294
+ - `SECURITY.md` "Supply chain" section currently flags signing as suspended; revert to unconditional once signing resumes. Same applies to the qualifier in the "Maintainer signing key" section.
295
+ - `SECURITY.md` `security@flaks.io` disclosure address is a placeholder — the `flaks.io` domain has no verified MX record at scaffold time. Before flipping the repo public, replace with either a maintained address or a GitHub Private Vulnerability Reporting URL (`https://github.com/tjo099/onerecord-mapper/security/advisories/new`).
296
+
297
+ ### Feature changes
298
+ (To be filled in during Phase 17.)
299
+
300
+ ---
301
+
302
+ ## Ontology version pins
303
+
304
+ - Cargo data model: **3.2** (2025-07 endorsed standard)
305
+ - API spec: **2.2.0**
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/MIGRATING.md ADDED
@@ -0,0 +1,43 @@
1
+ # Migrating between versions
2
+
3
+ This file documents one entry per minor release.
4
+
5
+ ## Migrating to v0.1.0
6
+
7
+ v0.1.0 is the first minor release. There is no prior version to migrate from.
8
+
9
+ ### Install
10
+
11
+ ```bash
12
+ bun add git+https://github.com/tjo099/onerecord-mapper#v0.1.0
13
+ ```
14
+
15
+ Pin to a specific tag in production. A future v0.2.0 release will
16
+ additionally publish to npm as the public scoped package
17
+ `@flaks/onerecord`; installing via git URL works today.
18
+
19
+ ### Recommended import patterns
20
+
21
+ Standard imports:
22
+
23
+ ```typescript
24
+ import { WaybillCodec, createMapper } from '@flaks/onerecord'
25
+ ```
26
+
27
+ Tree-shake-optimized:
28
+
29
+ ```typescript
30
+ import { WaybillCodec } from '@flaks/onerecord/codecs'
31
+ ```
32
+
33
+ Type-only (zero runtime):
34
+
35
+ ```typescript
36
+ import type { Waybill, ParseError } from '@flaks/onerecord/types'
37
+ ```
38
+
39
+ ### v0.x → v0.x+1 stability
40
+
41
+ Per `MIGRATING.md` policy: minor versions (0.1.x → 0.2.x) MAY introduce
42
+ breaking changes documented in the CHANGELOG; patch versions (0.1.0 → 0.1.x)
43
+ WILL NOT. Pin to a specific minor in CI.
package/NOTICE ADDED
@@ -0,0 +1,14 @@
1
+ @flaks/onerecord
2
+ Copyright 2026 tjo099 and @flaks/onerecord contributors
3
+
4
+ This product implements the IATA OneRecord cargo data model v3.2 and
5
+ ONE Record API specification v2.2.0. The OneRecord standards are
6
+ published by IATA at https://github.com/IATA-Cargo/ONE-Record under
7
+ their respective licenses. See https://iata-cargo.github.io/ONE-Record/
8
+ for canonical documentation.
9
+
10
+ Class names, IRI shapes, and ontology terms reproduced in source code
11
+ are interface elements and not copyrighted material.
12
+
13
+ Test fixtures derived from IATA-published xlsx mappings retain their
14
+ upstream attribution; see test/fixtures/iata/README.md.