@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.
- package/CHANGELOG.md +305 -0
- package/LICENSE +202 -0
- package/MIGRATING.md +43 -0
- package/NOTICE +14 -0
- package/README.md +253 -0
- package/SECURITY.md +54 -0
- package/dist/booking-flow/can-transition.d.ts +3 -0
- package/dist/booking-flow/can-transition.d.ts.map +1 -0
- package/dist/booking-flow/can-transition.js +7 -0
- package/dist/booking-flow/can-transition.js.map +1 -0
- package/dist/booking-flow/index.d.ts +5 -0
- package/dist/booking-flow/index.d.ts.map +1 -0
- package/dist/booking-flow/index.js +5 -0
- package/dist/booking-flow/index.js.map +1 -0
- package/dist/booking-flow/state-diagram.d.ts +19 -0
- package/dist/booking-flow/state-diagram.d.ts.map +1 -0
- package/dist/booking-flow/state-diagram.js +34 -0
- package/dist/booking-flow/state-diagram.js.map +1 -0
- package/dist/booking-flow/transitions.d.ts +9 -0
- package/dist/booking-flow/transitions.d.ts.map +1 -0
- package/dist/booking-flow/transitions.js +94 -0
- package/dist/booking-flow/transitions.js.map +1 -0
- package/dist/classes/access-delegation/codec.d.ts +4 -0
- package/dist/classes/access-delegation/codec.d.ts.map +1 -0
- package/dist/classes/access-delegation/codec.js +11 -0
- package/dist/classes/access-delegation/codec.js.map +1 -0
- package/dist/classes/access-delegation/deserialize.d.ts +5 -0
- package/dist/classes/access-delegation/deserialize.d.ts.map +1 -0
- package/dist/classes/access-delegation/deserialize.js +64 -0
- package/dist/classes/access-delegation/deserialize.js.map +1 -0
- package/dist/classes/access-delegation/index.d.ts +6 -0
- package/dist/classes/access-delegation/index.d.ts.map +1 -0
- package/dist/classes/access-delegation/index.js +5 -0
- package/dist/classes/access-delegation/index.js.map +1 -0
- package/dist/classes/access-delegation/schema.d.ts +19 -0
- package/dist/classes/access-delegation/schema.d.ts.map +1 -0
- package/dist/classes/access-delegation/schema.js +12 -0
- package/dist/classes/access-delegation/schema.js.map +1 -0
- package/dist/classes/access-delegation/serialize.d.ts +6 -0
- package/dist/classes/access-delegation/serialize.d.ts.map +1 -0
- package/dist/classes/access-delegation/serialize.js +28 -0
- package/dist/classes/access-delegation/serialize.js.map +1 -0
- package/dist/classes/access-delegation-request/codec.d.ts +4 -0
- package/dist/classes/access-delegation-request/codec.d.ts.map +1 -0
- package/dist/classes/access-delegation-request/codec.js +11 -0
- package/dist/classes/access-delegation-request/codec.js.map +1 -0
- package/dist/classes/access-delegation-request/deserialize.d.ts +5 -0
- package/dist/classes/access-delegation-request/deserialize.d.ts.map +1 -0
- package/dist/classes/access-delegation-request/deserialize.js +64 -0
- package/dist/classes/access-delegation-request/deserialize.js.map +1 -0
- package/dist/classes/access-delegation-request/index.d.ts +6 -0
- package/dist/classes/access-delegation-request/index.d.ts.map +1 -0
- package/dist/classes/access-delegation-request/index.js +5 -0
- package/dist/classes/access-delegation-request/index.js.map +1 -0
- package/dist/classes/access-delegation-request/schema.d.ts +17 -0
- package/dist/classes/access-delegation-request/schema.d.ts.map +1 -0
- package/dist/classes/access-delegation-request/schema.js +14 -0
- package/dist/classes/access-delegation-request/schema.js.map +1 -0
- package/dist/classes/access-delegation-request/serialize.d.ts +6 -0
- package/dist/classes/access-delegation-request/serialize.d.ts.map +1 -0
- package/dist/classes/access-delegation-request/serialize.js +28 -0
- package/dist/classes/access-delegation-request/serialize.js.map +1 -0
- package/dist/classes/account-number/codec.d.ts +4 -0
- package/dist/classes/account-number/codec.d.ts.map +1 -0
- package/dist/classes/account-number/codec.js +11 -0
- package/dist/classes/account-number/codec.js.map +1 -0
- package/dist/classes/account-number/deserialize.d.ts +5 -0
- package/dist/classes/account-number/deserialize.d.ts.map +1 -0
- package/dist/classes/account-number/deserialize.js +64 -0
- package/dist/classes/account-number/deserialize.js.map +1 -0
- package/dist/classes/account-number/index.d.ts +6 -0
- package/dist/classes/account-number/index.d.ts.map +1 -0
- package/dist/classes/account-number/index.js +5 -0
- package/dist/classes/account-number/index.js.map +1 -0
- package/dist/classes/account-number/schema.d.ts +17 -0
- package/dist/classes/account-number/schema.d.ts.map +1 -0
- package/dist/classes/account-number/schema.js +10 -0
- package/dist/classes/account-number/schema.js.map +1 -0
- package/dist/classes/account-number/serialize.d.ts +6 -0
- package/dist/classes/account-number/serialize.d.ts.map +1 -0
- package/dist/classes/account-number/serialize.js +28 -0
- package/dist/classes/account-number/serialize.js.map +1 -0
- package/dist/classes/address/codec.d.ts +4 -0
- package/dist/classes/address/codec.d.ts.map +1 -0
- package/dist/classes/address/codec.js +11 -0
- package/dist/classes/address/codec.js.map +1 -0
- package/dist/classes/address/deserialize.d.ts +5 -0
- package/dist/classes/address/deserialize.d.ts.map +1 -0
- package/dist/classes/address/deserialize.js +64 -0
- package/dist/classes/address/deserialize.js.map +1 -0
- package/dist/classes/address/index.d.ts +6 -0
- package/dist/classes/address/index.d.ts.map +1 -0
- package/dist/classes/address/index.js +5 -0
- package/dist/classes/address/index.js.map +1 -0
- package/dist/classes/address/schema.d.ts +17 -0
- package/dist/classes/address/schema.d.ts.map +1 -0
- package/dist/classes/address/schema.js +11 -0
- package/dist/classes/address/schema.js.map +1 -0
- package/dist/classes/address/serialize.d.ts +6 -0
- package/dist/classes/address/serialize.d.ts.map +1 -0
- package/dist/classes/address/serialize.js +28 -0
- package/dist/classes/address/serialize.js.map +1 -0
- package/dist/classes/booking/codec.d.ts +4 -0
- package/dist/classes/booking/codec.d.ts.map +1 -0
- package/dist/classes/booking/codec.js +11 -0
- package/dist/classes/booking/codec.js.map +1 -0
- package/dist/classes/booking/deserialize.d.ts +5 -0
- package/dist/classes/booking/deserialize.d.ts.map +1 -0
- package/dist/classes/booking/deserialize.js +47 -0
- package/dist/classes/booking/deserialize.js.map +1 -0
- package/dist/classes/booking/index.d.ts +6 -0
- package/dist/classes/booking/index.d.ts.map +1 -0
- package/dist/classes/booking/index.js +6 -0
- package/dist/classes/booking/index.js.map +1 -0
- package/dist/classes/booking/schema.d.ts +16 -0
- package/dist/classes/booking/schema.d.ts.map +1 -0
- package/dist/classes/booking/schema.js +11 -0
- package/dist/classes/booking/schema.js.map +1 -0
- package/dist/classes/booking/serialize.d.ts +6 -0
- package/dist/classes/booking/serialize.d.ts.map +1 -0
- package/dist/classes/booking/serialize.js +28 -0
- package/dist/classes/booking/serialize.js.map +1 -0
- package/dist/classes/booking-option/codec.d.ts +4 -0
- package/dist/classes/booking-option/codec.d.ts.map +1 -0
- package/dist/classes/booking-option/codec.js +11 -0
- package/dist/classes/booking-option/codec.js.map +1 -0
- package/dist/classes/booking-option/deserialize.d.ts +5 -0
- package/dist/classes/booking-option/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-option/deserialize.js +47 -0
- package/dist/classes/booking-option/deserialize.js.map +1 -0
- package/dist/classes/booking-option/index.d.ts +6 -0
- package/dist/classes/booking-option/index.d.ts.map +1 -0
- package/dist/classes/booking-option/index.js +6 -0
- package/dist/classes/booking-option/index.js.map +1 -0
- package/dist/classes/booking-option/schema.d.ts +18 -0
- package/dist/classes/booking-option/schema.d.ts.map +1 -0
- package/dist/classes/booking-option/schema.js +12 -0
- package/dist/classes/booking-option/schema.js.map +1 -0
- package/dist/classes/booking-option/serialize.d.ts +6 -0
- package/dist/classes/booking-option/serialize.d.ts.map +1 -0
- package/dist/classes/booking-option/serialize.js +28 -0
- package/dist/classes/booking-option/serialize.js.map +1 -0
- package/dist/classes/booking-option-request/codec.d.ts +4 -0
- package/dist/classes/booking-option-request/codec.d.ts.map +1 -0
- package/dist/classes/booking-option-request/codec.js +11 -0
- package/dist/classes/booking-option-request/codec.js.map +1 -0
- package/dist/classes/booking-option-request/deserialize.d.ts +5 -0
- package/dist/classes/booking-option-request/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-option-request/deserialize.js +47 -0
- package/dist/classes/booking-option-request/deserialize.js.map +1 -0
- package/dist/classes/booking-option-request/index.d.ts +6 -0
- package/dist/classes/booking-option-request/index.d.ts.map +1 -0
- package/dist/classes/booking-option-request/index.js +6 -0
- package/dist/classes/booking-option-request/index.js.map +1 -0
- package/dist/classes/booking-option-request/schema.d.ts +17 -0
- package/dist/classes/booking-option-request/schema.d.ts.map +1 -0
- package/dist/classes/booking-option-request/schema.js +15 -0
- package/dist/classes/booking-option-request/schema.js.map +1 -0
- package/dist/classes/booking-option-request/serialize.d.ts +6 -0
- package/dist/classes/booking-option-request/serialize.d.ts.map +1 -0
- package/dist/classes/booking-option-request/serialize.js +28 -0
- package/dist/classes/booking-option-request/serialize.js.map +1 -0
- package/dist/classes/booking-preferences/codec.d.ts +4 -0
- package/dist/classes/booking-preferences/codec.d.ts.map +1 -0
- package/dist/classes/booking-preferences/codec.js +11 -0
- package/dist/classes/booking-preferences/codec.js.map +1 -0
- package/dist/classes/booking-preferences/deserialize.d.ts +5 -0
- package/dist/classes/booking-preferences/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-preferences/deserialize.js +43 -0
- package/dist/classes/booking-preferences/deserialize.js.map +1 -0
- package/dist/classes/booking-preferences/index.d.ts +6 -0
- package/dist/classes/booking-preferences/index.d.ts.map +1 -0
- package/dist/classes/booking-preferences/index.js +6 -0
- package/dist/classes/booking-preferences/index.js.map +1 -0
- package/dist/classes/booking-preferences/schema.d.ts +13 -0
- package/dist/classes/booking-preferences/schema.d.ts.map +1 -0
- package/dist/classes/booking-preferences/schema.js +10 -0
- package/dist/classes/booking-preferences/schema.js.map +1 -0
- package/dist/classes/booking-preferences/serialize.d.ts +6 -0
- package/dist/classes/booking-preferences/serialize.d.ts.map +1 -0
- package/dist/classes/booking-preferences/serialize.js +28 -0
- package/dist/classes/booking-preferences/serialize.js.map +1 -0
- package/dist/classes/booking-request/codec.d.ts +4 -0
- package/dist/classes/booking-request/codec.d.ts.map +1 -0
- package/dist/classes/booking-request/codec.js +11 -0
- package/dist/classes/booking-request/codec.js.map +1 -0
- package/dist/classes/booking-request/deserialize.d.ts +5 -0
- package/dist/classes/booking-request/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-request/deserialize.js +47 -0
- package/dist/classes/booking-request/deserialize.js.map +1 -0
- package/dist/classes/booking-request/index.d.ts +6 -0
- package/dist/classes/booking-request/index.d.ts.map +1 -0
- package/dist/classes/booking-request/index.js +6 -0
- package/dist/classes/booking-request/index.js.map +1 -0
- package/dist/classes/booking-request/schema.d.ts +18 -0
- package/dist/classes/booking-request/schema.d.ts.map +1 -0
- package/dist/classes/booking-request/schema.js +16 -0
- package/dist/classes/booking-request/schema.js.map +1 -0
- package/dist/classes/booking-request/serialize.d.ts +6 -0
- package/dist/classes/booking-request/serialize.d.ts.map +1 -0
- package/dist/classes/booking-request/serialize.js +28 -0
- package/dist/classes/booking-request/serialize.js.map +1 -0
- package/dist/classes/booking-segment/codec.d.ts +4 -0
- package/dist/classes/booking-segment/codec.d.ts.map +1 -0
- package/dist/classes/booking-segment/codec.js +11 -0
- package/dist/classes/booking-segment/codec.js.map +1 -0
- package/dist/classes/booking-segment/deserialize.d.ts +5 -0
- package/dist/classes/booking-segment/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-segment/deserialize.js +47 -0
- package/dist/classes/booking-segment/deserialize.js.map +1 -0
- package/dist/classes/booking-segment/index.d.ts +6 -0
- package/dist/classes/booking-segment/index.d.ts.map +1 -0
- package/dist/classes/booking-segment/index.js +6 -0
- package/dist/classes/booking-segment/index.js.map +1 -0
- package/dist/classes/booking-segment/schema.d.ts +14 -0
- package/dist/classes/booking-segment/schema.d.ts.map +1 -0
- package/dist/classes/booking-segment/schema.js +12 -0
- package/dist/classes/booking-segment/schema.js.map +1 -0
- package/dist/classes/booking-segment/serialize.d.ts +6 -0
- package/dist/classes/booking-segment/serialize.d.ts.map +1 -0
- package/dist/classes/booking-segment/serialize.js +28 -0
- package/dist/classes/booking-segment/serialize.js.map +1 -0
- package/dist/classes/booking-shipment/codec.d.ts +4 -0
- package/dist/classes/booking-shipment/codec.d.ts.map +1 -0
- package/dist/classes/booking-shipment/codec.js +11 -0
- package/dist/classes/booking-shipment/codec.js.map +1 -0
- package/dist/classes/booking-shipment/deserialize.d.ts +5 -0
- package/dist/classes/booking-shipment/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-shipment/deserialize.js +47 -0
- package/dist/classes/booking-shipment/deserialize.js.map +1 -0
- package/dist/classes/booking-shipment/index.d.ts +6 -0
- package/dist/classes/booking-shipment/index.d.ts.map +1 -0
- package/dist/classes/booking-shipment/index.js +6 -0
- package/dist/classes/booking-shipment/index.js.map +1 -0
- package/dist/classes/booking-shipment/schema.d.ts +16 -0
- package/dist/classes/booking-shipment/schema.d.ts.map +1 -0
- package/dist/classes/booking-shipment/schema.js +13 -0
- package/dist/classes/booking-shipment/schema.js.map +1 -0
- package/dist/classes/booking-shipment/serialize.d.ts +6 -0
- package/dist/classes/booking-shipment/serialize.d.ts.map +1 -0
- package/dist/classes/booking-shipment/serialize.js +28 -0
- package/dist/classes/booking-shipment/serialize.js.map +1 -0
- package/dist/classes/booking-times/codec.d.ts +4 -0
- package/dist/classes/booking-times/codec.d.ts.map +1 -0
- package/dist/classes/booking-times/codec.js +11 -0
- package/dist/classes/booking-times/codec.js.map +1 -0
- package/dist/classes/booking-times/deserialize.d.ts +5 -0
- package/dist/classes/booking-times/deserialize.d.ts.map +1 -0
- package/dist/classes/booking-times/deserialize.js +43 -0
- package/dist/classes/booking-times/deserialize.js.map +1 -0
- package/dist/classes/booking-times/index.d.ts +6 -0
- package/dist/classes/booking-times/index.d.ts.map +1 -0
- package/dist/classes/booking-times/index.js +6 -0
- package/dist/classes/booking-times/index.js.map +1 -0
- package/dist/classes/booking-times/schema.d.ts +13 -0
- package/dist/classes/booking-times/schema.d.ts.map +1 -0
- package/dist/classes/booking-times/schema.js +10 -0
- package/dist/classes/booking-times/schema.js.map +1 -0
- package/dist/classes/booking-times/serialize.d.ts +6 -0
- package/dist/classes/booking-times/serialize.d.ts.map +1 -0
- package/dist/classes/booking-times/serialize.js +28 -0
- package/dist/classes/booking-times/serialize.js.map +1 -0
- package/dist/classes/change/codec.d.ts +4 -0
- package/dist/classes/change/codec.d.ts.map +1 -0
- package/dist/classes/change/codec.js +11 -0
- package/dist/classes/change/codec.js.map +1 -0
- package/dist/classes/change/deserialize.d.ts +5 -0
- package/dist/classes/change/deserialize.d.ts.map +1 -0
- package/dist/classes/change/deserialize.js +64 -0
- package/dist/classes/change/deserialize.js.map +1 -0
- package/dist/classes/change/index.d.ts +6 -0
- package/dist/classes/change/index.d.ts.map +1 -0
- package/dist/classes/change/index.js +5 -0
- package/dist/classes/change/index.js.map +1 -0
- package/dist/classes/change/schema.d.ts +22 -0
- package/dist/classes/change/schema.d.ts.map +1 -0
- package/dist/classes/change/schema.js +11 -0
- package/dist/classes/change/schema.js.map +1 -0
- package/dist/classes/change/serialize.d.ts +6 -0
- package/dist/classes/change/serialize.d.ts.map +1 -0
- package/dist/classes/change/serialize.js +28 -0
- package/dist/classes/change/serialize.js.map +1 -0
- package/dist/classes/change-request/codec.d.ts +4 -0
- package/dist/classes/change-request/codec.d.ts.map +1 -0
- package/dist/classes/change-request/codec.js +11 -0
- package/dist/classes/change-request/codec.js.map +1 -0
- package/dist/classes/change-request/deserialize.d.ts +5 -0
- package/dist/classes/change-request/deserialize.d.ts.map +1 -0
- package/dist/classes/change-request/deserialize.js +64 -0
- package/dist/classes/change-request/deserialize.js.map +1 -0
- package/dist/classes/change-request/index.d.ts +6 -0
- package/dist/classes/change-request/index.d.ts.map +1 -0
- package/dist/classes/change-request/index.js +5 -0
- package/dist/classes/change-request/index.js.map +1 -0
- package/dist/classes/change-request/schema.d.ts +19 -0
- package/dist/classes/change-request/schema.d.ts.map +1 -0
- package/dist/classes/change-request/schema.js +20 -0
- package/dist/classes/change-request/schema.js.map +1 -0
- package/dist/classes/change-request/serialize.d.ts +6 -0
- package/dist/classes/change-request/serialize.d.ts.map +1 -0
- package/dist/classes/change-request/serialize.js +28 -0
- package/dist/classes/change-request/serialize.js.map +1 -0
- package/dist/classes/handling-service/codec.d.ts +4 -0
- package/dist/classes/handling-service/codec.d.ts.map +1 -0
- package/dist/classes/handling-service/codec.js +11 -0
- package/dist/classes/handling-service/codec.js.map +1 -0
- package/dist/classes/handling-service/deserialize.d.ts +5 -0
- package/dist/classes/handling-service/deserialize.d.ts.map +1 -0
- package/dist/classes/handling-service/deserialize.js +64 -0
- package/dist/classes/handling-service/deserialize.js.map +1 -0
- package/dist/classes/handling-service/index.d.ts +6 -0
- package/dist/classes/handling-service/index.d.ts.map +1 -0
- package/dist/classes/handling-service/index.js +5 -0
- package/dist/classes/handling-service/index.js.map +1 -0
- package/dist/classes/handling-service/schema.d.ts +14 -0
- package/dist/classes/handling-service/schema.d.ts.map +1 -0
- package/dist/classes/handling-service/schema.js +11 -0
- package/dist/classes/handling-service/schema.js.map +1 -0
- package/dist/classes/handling-service/serialize.d.ts +6 -0
- package/dist/classes/handling-service/serialize.d.ts.map +1 -0
- package/dist/classes/handling-service/serialize.js +28 -0
- package/dist/classes/handling-service/serialize.js.map +1 -0
- package/dist/classes/location/codec.d.ts +4 -0
- package/dist/classes/location/codec.d.ts.map +1 -0
- package/dist/classes/location/codec.js +11 -0
- package/dist/classes/location/codec.js.map +1 -0
- package/dist/classes/location/deserialize.d.ts +5 -0
- package/dist/classes/location/deserialize.d.ts.map +1 -0
- package/dist/classes/location/deserialize.js +64 -0
- package/dist/classes/location/deserialize.js.map +1 -0
- package/dist/classes/location/index.d.ts +6 -0
- package/dist/classes/location/index.d.ts.map +1 -0
- package/dist/classes/location/index.js +5 -0
- package/dist/classes/location/index.js.map +1 -0
- package/dist/classes/location/schema.d.ts +18 -0
- package/dist/classes/location/schema.d.ts.map +1 -0
- package/dist/classes/location/schema.js +11 -0
- package/dist/classes/location/schema.js.map +1 -0
- package/dist/classes/location/serialize.d.ts +6 -0
- package/dist/classes/location/serialize.d.ts.map +1 -0
- package/dist/classes/location/serialize.js +28 -0
- package/dist/classes/location/serialize.js.map +1 -0
- package/dist/classes/logistics-event/codec.d.ts +4 -0
- package/dist/classes/logistics-event/codec.d.ts.map +1 -0
- package/dist/classes/logistics-event/codec.js +11 -0
- package/dist/classes/logistics-event/codec.js.map +1 -0
- package/dist/classes/logistics-event/deserialize.d.ts +5 -0
- package/dist/classes/logistics-event/deserialize.d.ts.map +1 -0
- package/dist/classes/logistics-event/deserialize.js +64 -0
- package/dist/classes/logistics-event/deserialize.js.map +1 -0
- package/dist/classes/logistics-event/index.d.ts +6 -0
- package/dist/classes/logistics-event/index.d.ts.map +1 -0
- package/dist/classes/logistics-event/index.js +5 -0
- package/dist/classes/logistics-event/index.js.map +1 -0
- package/dist/classes/logistics-event/schema.d.ts +15 -0
- package/dist/classes/logistics-event/schema.d.ts.map +1 -0
- package/dist/classes/logistics-event/schema.js +12 -0
- package/dist/classes/logistics-event/schema.js.map +1 -0
- package/dist/classes/logistics-event/serialize.d.ts +6 -0
- package/dist/classes/logistics-event/serialize.d.ts.map +1 -0
- package/dist/classes/logistics-event/serialize.js +28 -0
- package/dist/classes/logistics-event/serialize.js.map +1 -0
- package/dist/classes/movement-time/codec.d.ts +4 -0
- package/dist/classes/movement-time/codec.d.ts.map +1 -0
- package/dist/classes/movement-time/codec.js +11 -0
- package/dist/classes/movement-time/codec.js.map +1 -0
- package/dist/classes/movement-time/deserialize.d.ts +5 -0
- package/dist/classes/movement-time/deserialize.d.ts.map +1 -0
- package/dist/classes/movement-time/deserialize.js +64 -0
- package/dist/classes/movement-time/deserialize.js.map +1 -0
- package/dist/classes/movement-time/index.d.ts +6 -0
- package/dist/classes/movement-time/index.d.ts.map +1 -0
- package/dist/classes/movement-time/index.js +5 -0
- package/dist/classes/movement-time/index.js.map +1 -0
- package/dist/classes/movement-time/schema.d.ts +20 -0
- package/dist/classes/movement-time/schema.d.ts.map +1 -0
- package/dist/classes/movement-time/schema.js +9 -0
- package/dist/classes/movement-time/schema.js.map +1 -0
- package/dist/classes/movement-time/serialize.d.ts +6 -0
- package/dist/classes/movement-time/serialize.d.ts.map +1 -0
- package/dist/classes/movement-time/serialize.js +28 -0
- package/dist/classes/movement-time/serialize.js.map +1 -0
- package/dist/classes/notification/codec.d.ts +4 -0
- package/dist/classes/notification/codec.d.ts.map +1 -0
- package/dist/classes/notification/codec.js +11 -0
- package/dist/classes/notification/codec.js.map +1 -0
- package/dist/classes/notification/deserialize.d.ts +5 -0
- package/dist/classes/notification/deserialize.d.ts.map +1 -0
- package/dist/classes/notification/deserialize.js +64 -0
- package/dist/classes/notification/deserialize.js.map +1 -0
- package/dist/classes/notification/index.d.ts +6 -0
- package/dist/classes/notification/index.d.ts.map +1 -0
- package/dist/classes/notification/index.js +5 -0
- package/dist/classes/notification/index.js.map +1 -0
- package/dist/classes/notification/schema.d.ts +18 -0
- package/dist/classes/notification/schema.d.ts.map +1 -0
- package/dist/classes/notification/schema.js +11 -0
- package/dist/classes/notification/schema.js.map +1 -0
- package/dist/classes/notification/serialize.d.ts +6 -0
- package/dist/classes/notification/serialize.d.ts.map +1 -0
- package/dist/classes/notification/serialize.js +28 -0
- package/dist/classes/notification/serialize.js.map +1 -0
- package/dist/classes/operation/codec.d.ts +4 -0
- package/dist/classes/operation/codec.d.ts.map +1 -0
- package/dist/classes/operation/codec.js +11 -0
- package/dist/classes/operation/codec.js.map +1 -0
- package/dist/classes/operation/deserialize.d.ts +5 -0
- package/dist/classes/operation/deserialize.d.ts.map +1 -0
- package/dist/classes/operation/deserialize.js +64 -0
- package/dist/classes/operation/deserialize.js.map +1 -0
- package/dist/classes/operation/index.d.ts +6 -0
- package/dist/classes/operation/index.d.ts.map +1 -0
- package/dist/classes/operation/index.js +5 -0
- package/dist/classes/operation/index.js.map +1 -0
- package/dist/classes/operation/schema.d.ts +29 -0
- package/dist/classes/operation/schema.d.ts.map +1 -0
- package/dist/classes/operation/schema.js +22 -0
- package/dist/classes/operation/schema.js.map +1 -0
- package/dist/classes/operation/serialize.d.ts +6 -0
- package/dist/classes/operation/serialize.d.ts.map +1 -0
- package/dist/classes/operation/serialize.js +28 -0
- package/dist/classes/operation/serialize.js.map +1 -0
- package/dist/classes/organization/codec.d.ts +4 -0
- package/dist/classes/organization/codec.d.ts.map +1 -0
- package/dist/classes/organization/codec.js +11 -0
- package/dist/classes/organization/codec.js.map +1 -0
- package/dist/classes/organization/deserialize.d.ts +5 -0
- package/dist/classes/organization/deserialize.d.ts.map +1 -0
- package/dist/classes/organization/deserialize.js +64 -0
- package/dist/classes/organization/deserialize.js.map +1 -0
- package/dist/classes/organization/index.d.ts +6 -0
- package/dist/classes/organization/index.d.ts.map +1 -0
- package/dist/classes/organization/index.js +5 -0
- package/dist/classes/organization/index.js.map +1 -0
- package/dist/classes/organization/schema.d.ts +14 -0
- package/dist/classes/organization/schema.d.ts.map +1 -0
- package/dist/classes/organization/schema.js +11 -0
- package/dist/classes/organization/schema.js.map +1 -0
- package/dist/classes/organization/serialize.d.ts +6 -0
- package/dist/classes/organization/serialize.d.ts.map +1 -0
- package/dist/classes/organization/serialize.js +28 -0
- package/dist/classes/organization/serialize.js.map +1 -0
- package/dist/classes/party/codec.d.ts +4 -0
- package/dist/classes/party/codec.d.ts.map +1 -0
- package/dist/classes/party/codec.js +11 -0
- package/dist/classes/party/codec.js.map +1 -0
- package/dist/classes/party/deserialize.d.ts +5 -0
- package/dist/classes/party/deserialize.d.ts.map +1 -0
- package/dist/classes/party/deserialize.js +64 -0
- package/dist/classes/party/deserialize.js.map +1 -0
- package/dist/classes/party/index.d.ts +6 -0
- package/dist/classes/party/index.d.ts.map +1 -0
- package/dist/classes/party/index.js +5 -0
- package/dist/classes/party/index.js.map +1 -0
- package/dist/classes/party/schema.d.ts +21 -0
- package/dist/classes/party/schema.d.ts.map +1 -0
- package/dist/classes/party/schema.js +10 -0
- package/dist/classes/party/schema.js.map +1 -0
- package/dist/classes/party/serialize.d.ts +6 -0
- package/dist/classes/party/serialize.d.ts.map +1 -0
- package/dist/classes/party/serialize.js +28 -0
- package/dist/classes/party/serialize.js.map +1 -0
- package/dist/classes/person/codec.d.ts +4 -0
- package/dist/classes/person/codec.d.ts.map +1 -0
- package/dist/classes/person/codec.js +11 -0
- package/dist/classes/person/codec.js.map +1 -0
- package/dist/classes/person/deserialize.d.ts +5 -0
- package/dist/classes/person/deserialize.d.ts.map +1 -0
- package/dist/classes/person/deserialize.js +64 -0
- package/dist/classes/person/deserialize.js.map +1 -0
- package/dist/classes/person/index.d.ts +6 -0
- package/dist/classes/person/index.d.ts.map +1 -0
- package/dist/classes/person/index.js +5 -0
- package/dist/classes/person/index.js.map +1 -0
- package/dist/classes/person/schema.d.ts +15 -0
- package/dist/classes/person/schema.d.ts.map +1 -0
- package/dist/classes/person/schema.js +11 -0
- package/dist/classes/person/schema.js.map +1 -0
- package/dist/classes/person/serialize.d.ts +6 -0
- package/dist/classes/person/serialize.d.ts.map +1 -0
- package/dist/classes/person/serialize.js +28 -0
- package/dist/classes/person/serialize.js.map +1 -0
- package/dist/classes/piece/codec.d.ts +4 -0
- package/dist/classes/piece/codec.d.ts.map +1 -0
- package/dist/classes/piece/codec.js +11 -0
- package/dist/classes/piece/codec.js.map +1 -0
- package/dist/classes/piece/deserialize.d.ts +5 -0
- package/dist/classes/piece/deserialize.d.ts.map +1 -0
- package/dist/classes/piece/deserialize.js +64 -0
- package/dist/classes/piece/deserialize.js.map +1 -0
- package/dist/classes/piece/index.d.ts +6 -0
- package/dist/classes/piece/index.d.ts.map +1 -0
- package/dist/classes/piece/index.js +5 -0
- package/dist/classes/piece/index.js.map +1 -0
- package/dist/classes/piece/schema.d.ts +22 -0
- package/dist/classes/piece/schema.d.ts.map +1 -0
- package/dist/classes/piece/schema.js +17 -0
- package/dist/classes/piece/schema.js.map +1 -0
- package/dist/classes/piece/serialize.d.ts +6 -0
- package/dist/classes/piece/serialize.d.ts.map +1 -0
- package/dist/classes/piece/serialize.js +28 -0
- package/dist/classes/piece/serialize.js.map +1 -0
- package/dist/classes/server-information/codec.d.ts +4 -0
- package/dist/classes/server-information/codec.d.ts.map +1 -0
- package/dist/classes/server-information/codec.js +11 -0
- package/dist/classes/server-information/codec.js.map +1 -0
- package/dist/classes/server-information/deserialize.d.ts +5 -0
- package/dist/classes/server-information/deserialize.d.ts.map +1 -0
- package/dist/classes/server-information/deserialize.js +64 -0
- package/dist/classes/server-information/deserialize.js.map +1 -0
- package/dist/classes/server-information/index.d.ts +6 -0
- package/dist/classes/server-information/index.d.ts.map +1 -0
- package/dist/classes/server-information/index.js +5 -0
- package/dist/classes/server-information/index.js.map +1 -0
- package/dist/classes/server-information/schema.d.ts +14 -0
- package/dist/classes/server-information/schema.d.ts.map +1 -0
- package/dist/classes/server-information/schema.js +17 -0
- package/dist/classes/server-information/schema.js.map +1 -0
- package/dist/classes/server-information/serialize.d.ts +6 -0
- package/dist/classes/server-information/serialize.d.ts.map +1 -0
- package/dist/classes/server-information/serialize.js +28 -0
- package/dist/classes/server-information/serialize.js.map +1 -0
- package/dist/classes/shared/codec.d.ts +15 -0
- package/dist/classes/shared/codec.d.ts.map +1 -0
- package/dist/classes/shared/codec.js +2 -0
- package/dist/classes/shared/codec.js.map +1 -0
- package/dist/classes/shared/index.d.ts +4 -0
- package/dist/classes/shared/index.d.ts.map +1 -0
- package/dist/classes/shared/index.js +3 -0
- package/dist/classes/shared/index.js.map +1 -0
- package/dist/classes/shared/jsonld-brand.d.ts +20 -0
- package/dist/classes/shared/jsonld-brand.d.ts.map +1 -0
- package/dist/classes/shared/jsonld-brand.js +3 -0
- package/dist/classes/shared/jsonld-brand.js.map +1 -0
- package/dist/classes/shared/logistics-object.d.ts +23 -0
- package/dist/classes/shared/logistics-object.d.ts.map +1 -0
- package/dist/classes/shared/logistics-object.js +25 -0
- package/dist/classes/shared/logistics-object.js.map +1 -0
- package/dist/classes/shared/parse-utils.d.ts +46 -0
- package/dist/classes/shared/parse-utils.d.ts.map +1 -0
- package/dist/classes/shared/parse-utils.js +105 -0
- package/dist/classes/shared/parse-utils.js.map +1 -0
- package/dist/classes/shipment/codec.d.ts +4 -0
- package/dist/classes/shipment/codec.d.ts.map +1 -0
- package/dist/classes/shipment/codec.js +11 -0
- package/dist/classes/shipment/codec.js.map +1 -0
- package/dist/classes/shipment/deserialize.d.ts +5 -0
- package/dist/classes/shipment/deserialize.d.ts.map +1 -0
- package/dist/classes/shipment/deserialize.js +64 -0
- package/dist/classes/shipment/deserialize.js.map +1 -0
- package/dist/classes/shipment/index.d.ts +6 -0
- package/dist/classes/shipment/index.d.ts.map +1 -0
- package/dist/classes/shipment/index.js +5 -0
- package/dist/classes/shipment/index.js.map +1 -0
- package/dist/classes/shipment/schema.d.ts +23 -0
- package/dist/classes/shipment/schema.d.ts.map +1 -0
- package/dist/classes/shipment/schema.js +16 -0
- package/dist/classes/shipment/schema.js.map +1 -0
- package/dist/classes/shipment/serialize.d.ts +6 -0
- package/dist/classes/shipment/serialize.d.ts.map +1 -0
- package/dist/classes/shipment/serialize.js +28 -0
- package/dist/classes/shipment/serialize.js.map +1 -0
- package/dist/classes/subscription/codec.d.ts +4 -0
- package/dist/classes/subscription/codec.d.ts.map +1 -0
- package/dist/classes/subscription/codec.js +11 -0
- package/dist/classes/subscription/codec.js.map +1 -0
- package/dist/classes/subscription/deserialize.d.ts +5 -0
- package/dist/classes/subscription/deserialize.d.ts.map +1 -0
- package/dist/classes/subscription/deserialize.js +64 -0
- package/dist/classes/subscription/deserialize.js.map +1 -0
- package/dist/classes/subscription/index.d.ts +6 -0
- package/dist/classes/subscription/index.d.ts.map +1 -0
- package/dist/classes/subscription/index.js +5 -0
- package/dist/classes/subscription/index.js.map +1 -0
- package/dist/classes/subscription/schema.d.ts +24 -0
- package/dist/classes/subscription/schema.d.ts.map +1 -0
- package/dist/classes/subscription/schema.js +13 -0
- package/dist/classes/subscription/schema.js.map +1 -0
- package/dist/classes/subscription/serialize.d.ts +6 -0
- package/dist/classes/subscription/serialize.d.ts.map +1 -0
- package/dist/classes/subscription/serialize.js +28 -0
- package/dist/classes/subscription/serialize.js.map +1 -0
- package/dist/classes/subscription-request/codec.d.ts +4 -0
- package/dist/classes/subscription-request/codec.d.ts.map +1 -0
- package/dist/classes/subscription-request/codec.js +11 -0
- package/dist/classes/subscription-request/codec.js.map +1 -0
- package/dist/classes/subscription-request/deserialize.d.ts +5 -0
- package/dist/classes/subscription-request/deserialize.d.ts.map +1 -0
- package/dist/classes/subscription-request/deserialize.js +64 -0
- package/dist/classes/subscription-request/deserialize.js.map +1 -0
- package/dist/classes/subscription-request/index.d.ts +6 -0
- package/dist/classes/subscription-request/index.d.ts.map +1 -0
- package/dist/classes/subscription-request/index.js +5 -0
- package/dist/classes/subscription-request/index.js.map +1 -0
- package/dist/classes/subscription-request/schema.d.ts +17 -0
- package/dist/classes/subscription-request/schema.d.ts.map +1 -0
- package/dist/classes/subscription-request/schema.js +14 -0
- package/dist/classes/subscription-request/schema.js.map +1 -0
- package/dist/classes/subscription-request/serialize.d.ts +6 -0
- package/dist/classes/subscription-request/serialize.d.ts.map +1 -0
- package/dist/classes/subscription-request/serialize.js +28 -0
- package/dist/classes/subscription-request/serialize.js.map +1 -0
- package/dist/classes/transport-movement/codec.d.ts +4 -0
- package/dist/classes/transport-movement/codec.d.ts.map +1 -0
- package/dist/classes/transport-movement/codec.js +11 -0
- package/dist/classes/transport-movement/codec.js.map +1 -0
- package/dist/classes/transport-movement/deserialize.d.ts +5 -0
- package/dist/classes/transport-movement/deserialize.d.ts.map +1 -0
- package/dist/classes/transport-movement/deserialize.js +64 -0
- package/dist/classes/transport-movement/deserialize.js.map +1 -0
- package/dist/classes/transport-movement/index.d.ts +6 -0
- package/dist/classes/transport-movement/index.d.ts.map +1 -0
- package/dist/classes/transport-movement/index.js +5 -0
- package/dist/classes/transport-movement/index.js.map +1 -0
- package/dist/classes/transport-movement/schema.d.ts +20 -0
- package/dist/classes/transport-movement/schema.d.ts.map +1 -0
- package/dist/classes/transport-movement/schema.js +12 -0
- package/dist/classes/transport-movement/schema.js.map +1 -0
- package/dist/classes/transport-movement/serialize.d.ts +6 -0
- package/dist/classes/transport-movement/serialize.d.ts.map +1 -0
- package/dist/classes/transport-movement/serialize.js +28 -0
- package/dist/classes/transport-movement/serialize.js.map +1 -0
- package/dist/classes/verification/codec.d.ts +16 -0
- package/dist/classes/verification/codec.d.ts.map +1 -0
- package/dist/classes/verification/codec.js +23 -0
- package/dist/classes/verification/codec.js.map +1 -0
- package/dist/classes/verification/deserialize.d.ts +5 -0
- package/dist/classes/verification/deserialize.d.ts.map +1 -0
- package/dist/classes/verification/deserialize.js +64 -0
- package/dist/classes/verification/deserialize.js.map +1 -0
- package/dist/classes/verification/index.d.ts +6 -0
- package/dist/classes/verification/index.d.ts.map +1 -0
- package/dist/classes/verification/index.js +5 -0
- package/dist/classes/verification/index.js.map +1 -0
- package/dist/classes/verification/schema.d.ts +28 -0
- package/dist/classes/verification/schema.d.ts.map +1 -0
- package/dist/classes/verification/schema.js +10 -0
- package/dist/classes/verification/schema.js.map +1 -0
- package/dist/classes/verification/serialize.d.ts +6 -0
- package/dist/classes/verification/serialize.d.ts.map +1 -0
- package/dist/classes/verification/serialize.js +28 -0
- package/dist/classes/verification/serialize.js.map +1 -0
- package/dist/classes/verification-request/codec.d.ts +4 -0
- package/dist/classes/verification-request/codec.d.ts.map +1 -0
- package/dist/classes/verification-request/codec.js +11 -0
- package/dist/classes/verification-request/codec.js.map +1 -0
- package/dist/classes/verification-request/deserialize.d.ts +5 -0
- package/dist/classes/verification-request/deserialize.d.ts.map +1 -0
- package/dist/classes/verification-request/deserialize.js +64 -0
- package/dist/classes/verification-request/deserialize.js.map +1 -0
- package/dist/classes/verification-request/index.d.ts +6 -0
- package/dist/classes/verification-request/index.d.ts.map +1 -0
- package/dist/classes/verification-request/index.js +5 -0
- package/dist/classes/verification-request/index.js.map +1 -0
- package/dist/classes/verification-request/schema.d.ts +17 -0
- package/dist/classes/verification-request/schema.d.ts.map +1 -0
- package/dist/classes/verification-request/schema.js +14 -0
- package/dist/classes/verification-request/schema.js.map +1 -0
- package/dist/classes/verification-request/serialize.d.ts +6 -0
- package/dist/classes/verification-request/serialize.d.ts.map +1 -0
- package/dist/classes/verification-request/serialize.js +28 -0
- package/dist/classes/verification-request/serialize.js.map +1 -0
- package/dist/classes/waybill/codec.d.ts +4 -0
- package/dist/classes/waybill/codec.d.ts.map +1 -0
- package/dist/classes/waybill/codec.js +11 -0
- package/dist/classes/waybill/codec.js.map +1 -0
- package/dist/classes/waybill/deserialize.d.ts +5 -0
- package/dist/classes/waybill/deserialize.d.ts.map +1 -0
- package/dist/classes/waybill/deserialize.js +67 -0
- package/dist/classes/waybill/deserialize.js.map +1 -0
- package/dist/classes/waybill/index.d.ts +6 -0
- package/dist/classes/waybill/index.d.ts.map +1 -0
- package/dist/classes/waybill/index.js +5 -0
- package/dist/classes/waybill/index.js.map +1 -0
- package/dist/classes/waybill/schema.d.ts +22 -0
- package/dist/classes/waybill/schema.d.ts.map +1 -0
- package/dist/classes/waybill/schema.js +15 -0
- package/dist/classes/waybill/schema.js.map +1 -0
- package/dist/classes/waybill/serialize.d.ts +6 -0
- package/dist/classes/waybill/serialize.d.ts.map +1 -0
- package/dist/classes/waybill/serialize.js +28 -0
- package/dist/classes/waybill/serialize.js.map +1 -0
- package/dist/codecs.d.ts +39 -0
- package/dist/codecs.d.ts.map +1 -0
- package/dist/codecs.js +46 -0
- package/dist/codecs.js.map +1 -0
- package/dist/codes/enums.d.ts +52 -0
- package/dist/codes/enums.d.ts.map +1 -0
- package/dist/codes/enums.js +38 -0
- package/dist/codes/enums.js.map +1 -0
- package/dist/codes/fsu-event-codes.d.ts +35 -0
- package/dist/codes/fsu-event-codes.d.ts.map +1 -0
- package/dist/codes/fsu-event-codes.js +35 -0
- package/dist/codes/fsu-event-codes.js.map +1 -0
- package/dist/codes/index.d.ts +4 -0
- package/dist/codes/index.d.ts.map +1 -0
- package/dist/codes/index.js +4 -0
- package/dist/codes/index.js.map +1 -0
- package/dist/context.d.ts +24 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +62 -0
- package/dist/context.js.map +1 -0
- package/dist/error/assert-never.d.ts +6 -0
- package/dist/error/assert-never.d.ts.map +1 -0
- package/dist/error/assert-never.js +9 -0
- package/dist/error/assert-never.js.map +1 -0
- package/dist/error/format.d.ts +7 -0
- package/dist/error/format.d.ts.map +1 -0
- package/dist/error/format.js +56 -0
- package/dist/error/format.js.map +1 -0
- package/dist/error/index.d.ts +4 -0
- package/dist/error/index.d.ts.map +1 -0
- package/dist/error/index.js +5 -0
- package/dist/error/index.js.map +1 -0
- package/dist/error/redact.d.ts +7 -0
- package/dist/error/redact.d.ts.map +1 -0
- package/dist/error/redact.js +12 -0
- package/dist/error/redact.js.map +1 -0
- package/dist/facade.d.ts +18 -0
- package/dist/facade.d.ts.map +1 -0
- package/dist/facade.js +14 -0
- package/dist/facade.js.map +1 -0
- package/dist/factory-classes.d.ts +78 -0
- package/dist/factory-classes.d.ts.map +1 -0
- package/dist/factory-classes.js +85 -0
- package/dist/factory-classes.js.map +1 -0
- package/dist/factory.d.ts +41 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +31 -0
- package/dist/factory.js.map +1 -0
- package/dist/index.d.ts +83 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/iri/build.d.ts +8 -0
- package/dist/iri/build.d.ts.map +1 -0
- package/dist/iri/build.js +11 -0
- package/dist/iri/build.js.map +1 -0
- package/dist/iri/default-strategy.d.ts +8 -0
- package/dist/iri/default-strategy.d.ts.map +1 -0
- package/dist/iri/default-strategy.js +27 -0
- package/dist/iri/default-strategy.js.map +1 -0
- package/dist/iri/index.d.ts +8 -0
- package/dist/iri/index.d.ts.map +1 -0
- package/dist/iri/index.js +6 -0
- package/dist/iri/index.js.map +1 -0
- package/dist/iri/normalize.d.ts +13 -0
- package/dist/iri/normalize.d.ts.map +1 -0
- package/dist/iri/normalize.js +25 -0
- package/dist/iri/normalize.js.map +1 -0
- package/dist/iri/strategy.d.ts +26 -0
- package/dist/iri/strategy.d.ts.map +1 -0
- package/dist/iri/strategy.js +3 -0
- package/dist/iri/strategy.js.map +1 -0
- package/dist/iri/validate.d.ts +8 -0
- package/dist/iri/validate.d.ts.map +1 -0
- package/dist/iri/validate.js +54 -0
- package/dist/iri/validate.js.map +1 -0
- package/dist/iri/zod-safe-iri.d.ts +48 -0
- package/dist/iri/zod-safe-iri.d.ts.map +1 -0
- package/dist/iri/zod-safe-iri.js +79 -0
- package/dist/iri/zod-safe-iri.js.map +1 -0
- package/dist/operations/apply-change.d.ts +19 -0
- package/dist/operations/apply-change.d.ts.map +1 -0
- package/dist/operations/apply-change.js +232 -0
- package/dist/operations/apply-change.js.map +1 -0
- package/dist/operations/index.d.ts +6 -0
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +5 -0
- package/dist/operations/index.js.map +1 -0
- package/dist/operations/json-pointer.d.ts +20 -0
- package/dist/operations/json-pointer.d.ts.map +1 -0
- package/dist/operations/json-pointer.js +31 -0
- package/dist/operations/json-pointer.js.map +1 -0
- package/dist/operations/validate-operation.d.ts +10 -0
- package/dist/operations/validate-operation.d.ts.map +1 -0
- package/dist/operations/validate-operation.js +27 -0
- package/dist/operations/validate-operation.js.map +1 -0
- package/dist/result.d.ts +169 -0
- package/dist/result.d.ts.map +1 -0
- package/dist/result.js +82 -0
- package/dist/result.js.map +1 -0
- package/dist/safety/circular-ref.d.ts +8 -0
- package/dist/safety/circular-ref.d.ts.map +1 -0
- package/dist/safety/circular-ref.js +37 -0
- package/dist/safety/circular-ref.js.map +1 -0
- package/dist/safety/index.d.ts +8 -0
- package/dist/safety/index.d.ts.map +1 -0
- package/dist/safety/index.js +6 -0
- package/dist/safety/index.js.map +1 -0
- package/dist/safety/limits.d.ts +26 -0
- package/dist/safety/limits.d.ts.map +1 -0
- package/dist/safety/limits.js +36 -0
- package/dist/safety/limits.js.map +1 -0
- package/dist/safety/path-traversal.d.ts +11 -0
- package/dist/safety/path-traversal.d.ts.map +1 -0
- package/dist/safety/path-traversal.js +41 -0
- package/dist/safety/path-traversal.js.map +1 -0
- package/dist/safety/pre-validate.d.ts +20 -0
- package/dist/safety/pre-validate.d.ts.map +1 -0
- package/dist/safety/pre-validate.js +123 -0
- package/dist/safety/pre-validate.js.map +1 -0
- package/dist/safety/prototype-pollution.d.ts +19 -0
- package/dist/safety/prototype-pollution.d.ts.map +1 -0
- package/dist/safety/prototype-pollution.js +72 -0
- package/dist/safety/prototype-pollution.js.map +1 -0
- package/dist/types/index.d.ts +39 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/util/deep-freeze.d.ts +8 -0
- package/dist/util/deep-freeze.d.ts.map +1 -0
- package/dist/util/deep-freeze.js +21 -0
- package/dist/util/deep-freeze.js.map +1 -0
- package/dist/version.d.ts +23 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +49 -0
- package/dist/version.js.map +1 -0
- 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.
|