@freighttech/shipment-tracking 0.6.0

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 (456) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +25 -0
  3. package/dist/generated/entities/bic_config/index.js +21 -0
  4. package/dist/generated/entities/bic_config/index.js.map +7 -0
  5. package/dist/generated/entities/carrier_config/index.js +27 -0
  6. package/dist/generated/entities/carrier_config/index.js.map +7 -0
  7. package/dist/generated/entities/location_override/index.js +33 -0
  8. package/dist/generated/entities/location_override/index.js.map +7 -0
  9. package/dist/generated/entities/shipment/index.js +73 -0
  10. package/dist/generated/entities/shipment/index.js.map +7 -0
  11. package/dist/generated/entities/ships_go_config/index.js +31 -0
  12. package/dist/generated/entities/ships_go_config/index.js.map +7 -0
  13. package/dist/generated/entities/tracking_event/index.js +101 -0
  14. package/dist/generated/entities/tracking_event/index.js.map +7 -0
  15. package/dist/generated/entities/tracking_job/index.js +47 -0
  16. package/dist/generated/entities/tracking_job/index.js.map +7 -0
  17. package/dist/generated/entities/webhook/index.js +25 -0
  18. package/dist/generated/entities/webhook/index.js.map +7 -0
  19. package/dist/generated/entities/webhook_delivery/index.js +25 -0
  20. package/dist/generated/entities/webhook_delivery/index.js.map +7 -0
  21. package/dist/generated/entities.ids.generated.js +21 -0
  22. package/dist/generated/entities.ids.generated.js.map +7 -0
  23. package/dist/index.js +41 -0
  24. package/dist/index.js.map +7 -0
  25. package/dist/modules/shipment_tracking/acl.js +22 -0
  26. package/dist/modules/shipment_tracking/acl.js.map +7 -0
  27. package/dist/modules/shipment_tracking/api/bic-configs/route.js +176 -0
  28. package/dist/modules/shipment_tracking/api/bic-configs/route.js.map +7 -0
  29. package/dist/modules/shipment_tracking/api/bic-configs/test/route.js +95 -0
  30. package/dist/modules/shipment_tracking/api/bic-configs/test/route.js.map +7 -0
  31. package/dist/modules/shipment_tracking/api/cargo-events/route.js +93 -0
  32. package/dist/modules/shipment_tracking/api/cargo-events/route.js.map +7 -0
  33. package/dist/modules/shipment_tracking/api/carrier-configs/route.js +139 -0
  34. package/dist/modules/shipment_tracking/api/carrier-configs/route.js.map +7 -0
  35. package/dist/modules/shipment_tracking/api/dashboard/ships-map/route.js +177 -0
  36. package/dist/modules/shipment_tracking/api/dashboard/ships-map/route.js.map +7 -0
  37. package/dist/modules/shipment_tracking/api/location-overrides/route.js +179 -0
  38. package/dist/modules/shipment_tracking/api/location-overrides/route.js.map +7 -0
  39. package/dist/modules/shipment_tracking/api/openapi.js +27 -0
  40. package/dist/modules/shipment_tracking/api/openapi.js.map +7 -0
  41. package/dist/modules/shipment_tracking/api/shipments/route.js +192 -0
  42. package/dist/modules/shipment_tracking/api/shipments/route.js.map +7 -0
  43. package/dist/modules/shipment_tracking/api/shipsgo-configs/route.js +185 -0
  44. package/dist/modules/shipment_tracking/api/shipsgo-configs/route.js.map +7 -0
  45. package/dist/modules/shipment_tracking/api/tracking-jobs/route.js +144 -0
  46. package/dist/modules/shipment_tracking/api/tracking-jobs/route.js.map +7 -0
  47. package/dist/modules/shipment_tracking/api/tracking-jobs/sync/route.js +107 -0
  48. package/dist/modules/shipment_tracking/api/tracking-jobs/sync/route.js.map +7 -0
  49. package/dist/modules/shipment_tracking/api/utils.js +12 -0
  50. package/dist/modules/shipment_tracking/api/utils.js.map +7 -0
  51. package/dist/modules/shipment_tracking/api/webhooks/deliveries/route.js +76 -0
  52. package/dist/modules/shipment_tracking/api/webhooks/deliveries/route.js.map +7 -0
  53. package/dist/modules/shipment_tracking/api/webhooks/route.js +135 -0
  54. package/dist/modules/shipment_tracking/api/webhooks/route.js.map +7 -0
  55. package/dist/modules/shipment_tracking/api/webhooks/test/route.js +71 -0
  56. package/dist/modules/shipment_tracking/api/webhooks/test/route.js.map +7 -0
  57. package/dist/modules/shipment_tracking/assets/carriers/cma_cgm.png +0 -0
  58. package/dist/modules/shipment_tracking/assets/carriers/cosco.png +0 -0
  59. package/dist/modules/shipment_tracking/assets/carriers/evergreen.png +0 -0
  60. package/dist/modules/shipment_tracking/assets/carriers/hapag_lloyd.png +0 -0
  61. package/dist/modules/shipment_tracking/assets/carriers/maersk.png +0 -0
  62. package/dist/modules/shipment_tracking/assets/carriers/msc.png +0 -0
  63. package/dist/modules/shipment_tracking/assets/carriers/one.png +0 -0
  64. package/dist/modules/shipment_tracking/assets/carriers/oocl.png +0 -0
  65. package/dist/modules/shipment_tracking/assets/carriers/yang_ming.png +0 -0
  66. package/dist/modules/shipment_tracking/assets/carriers/zim.png +0 -0
  67. package/dist/modules/shipment_tracking/assets/index.js +52 -0
  68. package/dist/modules/shipment_tracking/assets/index.js.map +7 -0
  69. package/dist/modules/shipment_tracking/backend/carrier-configs/page.js +621 -0
  70. package/dist/modules/shipment_tracking/backend/carrier-configs/page.js.map +7 -0
  71. package/dist/modules/shipment_tracking/backend/carrier-configs/page.meta.js +19 -0
  72. package/dist/modules/shipment_tracking/backend/carrier-configs/page.meta.js.map +7 -0
  73. package/dist/modules/shipment_tracking/backend/location-overrides/page.js +198 -0
  74. package/dist/modules/shipment_tracking/backend/location-overrides/page.js.map +7 -0
  75. package/dist/modules/shipment_tracking/backend/location-overrides/page.meta.js +19 -0
  76. package/dist/modules/shipment_tracking/backend/location-overrides/page.meta.js.map +7 -0
  77. package/dist/modules/shipment_tracking/backend/shipment-tracking/page.js +279 -0
  78. package/dist/modules/shipment_tracking/backend/shipment-tracking/page.js.map +7 -0
  79. package/dist/modules/shipment_tracking/backend/shipment-tracking/page.meta.js +19 -0
  80. package/dist/modules/shipment_tracking/backend/shipment-tracking/page.meta.js.map +7 -0
  81. package/dist/modules/shipment_tracking/backend/tracking-jobs/page.js +10 -0
  82. package/dist/modules/shipment_tracking/backend/tracking-jobs/page.js.map +7 -0
  83. package/dist/modules/shipment_tracking/backend/tracking-jobs/page.meta.js +19 -0
  84. package/dist/modules/shipment_tracking/backend/tracking-jobs/page.meta.js.map +7 -0
  85. package/dist/modules/shipment_tracking/backend/webhooks/page.js +198 -0
  86. package/dist/modules/shipment_tracking/backend/webhooks/page.js.map +7 -0
  87. package/dist/modules/shipment_tracking/backend/webhooks/page.meta.js +19 -0
  88. package/dist/modules/shipment_tracking/backend/webhooks/page.meta.js.map +7 -0
  89. package/dist/modules/shipment_tracking/ce.js +52 -0
  90. package/dist/modules/shipment_tracking/ce.js.map +7 -0
  91. package/dist/modules/shipment_tracking/cli.js +229 -0
  92. package/dist/modules/shipment_tracking/cli.js.map +7 -0
  93. package/dist/modules/shipment_tracking/commands/bic-configs.js +66 -0
  94. package/dist/modules/shipment_tracking/commands/bic-configs.js.map +7 -0
  95. package/dist/modules/shipment_tracking/commands/carrier-configs.js +65 -0
  96. package/dist/modules/shipment_tracking/commands/carrier-configs.js.map +7 -0
  97. package/dist/modules/shipment_tracking/commands/index.js +9 -0
  98. package/dist/modules/shipment_tracking/commands/index.js.map +7 -0
  99. package/dist/modules/shipment_tracking/commands/location-overrides.js +93 -0
  100. package/dist/modules/shipment_tracking/commands/location-overrides.js.map +7 -0
  101. package/dist/modules/shipment_tracking/commands/shipments.js +200 -0
  102. package/dist/modules/shipment_tracking/commands/shipments.js.map +7 -0
  103. package/dist/modules/shipment_tracking/commands/shipsgo-configs.js +75 -0
  104. package/dist/modules/shipment_tracking/commands/shipsgo-configs.js.map +7 -0
  105. package/dist/modules/shipment_tracking/commands/tracking-jobs.js +120 -0
  106. package/dist/modules/shipment_tracking/commands/tracking-jobs.js.map +7 -0
  107. package/dist/modules/shipment_tracking/commands/tracking.js +140 -0
  108. package/dist/modules/shipment_tracking/commands/tracking.js.map +7 -0
  109. package/dist/modules/shipment_tracking/commands/webhooks.js +115 -0
  110. package/dist/modules/shipment_tracking/commands/webhooks.js.map +7 -0
  111. package/dist/modules/shipment_tracking/components/CombinedTimestampCell.js +168 -0
  112. package/dist/modules/shipment_tracking/components/CombinedTimestampCell.js.map +7 -0
  113. package/dist/modules/shipment_tracking/components/FacilityLocationInput.js +202 -0
  114. package/dist/modules/shipment_tracking/components/FacilityLocationInput.js.map +7 -0
  115. package/dist/modules/shipment_tracking/components/LocationOverrideDrawer.js +501 -0
  116. package/dist/modules/shipment_tracking/components/LocationOverrideDrawer.js.map +7 -0
  117. package/dist/modules/shipment_tracking/components/ShipmentDetailsDrawer.js +818 -0
  118. package/dist/modules/shipment_tracking/components/ShipmentDetailsDrawer.js.map +7 -0
  119. package/dist/modules/shipment_tracking/components/ShipmentDrawer.js +404 -0
  120. package/dist/modules/shipment_tracking/components/ShipmentDrawer.js.map +7 -0
  121. package/dist/modules/shipment_tracking/components/ShipsGoConfigSection.js +200 -0
  122. package/dist/modules/shipment_tracking/components/ShipsGoConfigSection.js.map +7 -0
  123. package/dist/modules/shipment_tracking/components/TimestampCell.js +108 -0
  124. package/dist/modules/shipment_tracking/components/TimestampCell.js.map +7 -0
  125. package/dist/modules/shipment_tracking/components/TrackingJobDrawer.js +343 -0
  126. package/dist/modules/shipment_tracking/components/TrackingJobDrawer.js.map +7 -0
  127. package/dist/modules/shipment_tracking/components/VesselTrackingMap.js +496 -0
  128. package/dist/modules/shipment_tracking/components/VesselTrackingMap.js.map +7 -0
  129. package/dist/modules/shipment_tracking/components/WebhookDrawer.js +332 -0
  130. package/dist/modules/shipment_tracking/components/WebhookDrawer.js.map +7 -0
  131. package/dist/modules/shipment_tracking/data/entities.js +686 -0
  132. package/dist/modules/shipment_tracking/data/entities.js.map +7 -0
  133. package/dist/modules/shipment_tracking/data/validators.js +434 -0
  134. package/dist/modules/shipment_tracking/data/validators.js.map +7 -0
  135. package/dist/modules/shipment_tracking/di.js +60 -0
  136. package/dist/modules/shipment_tracking/di.js.map +7 -0
  137. package/dist/modules/shipment_tracking/encryption.js +12 -0
  138. package/dist/modules/shipment_tracking/encryption.js.map +7 -0
  139. package/dist/modules/shipment_tracking/events.js +87 -0
  140. package/dist/modules/shipment_tracking/events.js.map +7 -0
  141. package/dist/modules/shipment_tracking/hooks/useVesselTracking.js +137 -0
  142. package/dist/modules/shipment_tracking/hooks/useVesselTracking.js.map +7 -0
  143. package/dist/modules/shipment_tracking/i18n/de.json +327 -0
  144. package/dist/modules/shipment_tracking/i18n/en.json +327 -0
  145. package/dist/modules/shipment_tracking/i18n/es.json +327 -0
  146. package/dist/modules/shipment_tracking/i18n/pl.json +327 -0
  147. package/dist/modules/shipment_tracking/index.js +15 -0
  148. package/dist/modules/shipment_tracking/index.js.map +7 -0
  149. package/dist/modules/shipment_tracking/lib/adapters/cma-cgm.js +66 -0
  150. package/dist/modules/shipment_tracking/lib/adapters/cma-cgm.js.map +7 -0
  151. package/dist/modules/shipment_tracking/lib/adapters/cosco-types.js +1 -0
  152. package/dist/modules/shipment_tracking/lib/adapters/cosco-types.js.map +7 -0
  153. package/dist/modules/shipment_tracking/lib/adapters/cosco.js +236 -0
  154. package/dist/modules/shipment_tracking/lib/adapters/cosco.js.map +7 -0
  155. package/dist/modules/shipment_tracking/lib/adapters/evergreen.js +87 -0
  156. package/dist/modules/shipment_tracking/lib/adapters/evergreen.js.map +7 -0
  157. package/dist/modules/shipment_tracking/lib/adapters/hapag-lloyd.js +68 -0
  158. package/dist/modules/shipment_tracking/lib/adapters/hapag-lloyd.js.map +7 -0
  159. package/dist/modules/shipment_tracking/lib/adapters/index.js +20 -0
  160. package/dist/modules/shipment_tracking/lib/adapters/index.js.map +7 -0
  161. package/dist/modules/shipment_tracking/lib/adapters/maersk.js +84 -0
  162. package/dist/modules/shipment_tracking/lib/adapters/maersk.js.map +7 -0
  163. package/dist/modules/shipment_tracking/lib/adapters/msc.js +170 -0
  164. package/dist/modules/shipment_tracking/lib/adapters/msc.js.map +7 -0
  165. package/dist/modules/shipment_tracking/lib/adapters/zim.js +85 -0
  166. package/dist/modules/shipment_tracking/lib/adapters/zim.js.map +7 -0
  167. package/dist/modules/shipment_tracking/lib/audit-helpers.js +20 -0
  168. package/dist/modules/shipment_tracking/lib/audit-helpers.js.map +7 -0
  169. package/dist/modules/shipment_tracking/lib/auth/base64url.js +8 -0
  170. package/dist/modules/shipment_tracking/lib/auth/base64url.js.map +7 -0
  171. package/dist/modules/shipment_tracking/lib/auth/oauth-client.js +38 -0
  172. package/dist/modules/shipment_tracking/lib/auth/oauth-client.js.map +7 -0
  173. package/dist/modules/shipment_tracking/lib/background.js +15 -0
  174. package/dist/modules/shipment_tracking/lib/background.js.map +7 -0
  175. package/dist/modules/shipment_tracking/lib/bic-api-client.js +106 -0
  176. package/dist/modules/shipment_tracking/lib/bic-api-client.js.map +7 -0
  177. package/dist/modules/shipment_tracking/lib/carrier-adapter.js +17 -0
  178. package/dist/modules/shipment_tracking/lib/carrier-adapter.js.map +7 -0
  179. package/dist/modules/shipment_tracking/lib/current-vessel.js +149 -0
  180. package/dist/modules/shipment_tracking/lib/current-vessel.js.map +7 -0
  181. package/dist/modules/shipment_tracking/lib/dcsa-event-mapping.js +124 -0
  182. package/dist/modules/shipment_tracking/lib/dcsa-event-mapping.js.map +7 -0
  183. package/dist/modules/shipment_tracking/lib/dcsa-event-parser.js +112 -0
  184. package/dist/modules/shipment_tracking/lib/dcsa-event-parser.js.map +7 -0
  185. package/dist/modules/shipment_tracking/lib/dcsa-params.js +16 -0
  186. package/dist/modules/shipment_tracking/lib/dcsa-params.js.map +7 -0
  187. package/dist/modules/shipment_tracking/lib/empty-return.js +48 -0
  188. package/dist/modules/shipment_tracking/lib/empty-return.js.map +7 -0
  189. package/dist/modules/shipment_tracking/lib/location-overrides.js +85 -0
  190. package/dist/modules/shipment_tracking/lib/location-overrides.js.map +7 -0
  191. package/dist/modules/shipment_tracking/lib/location-types.js +59 -0
  192. package/dist/modules/shipment_tracking/lib/location-types.js.map +7 -0
  193. package/dist/modules/shipment_tracking/lib/logger.js +113 -0
  194. package/dist/modules/shipment_tracking/lib/logger.js.map +7 -0
  195. package/dist/modules/shipment_tracking/lib/poi-event-processor.js +183 -0
  196. package/dist/modules/shipment_tracking/lib/poi-event-processor.js.map +7 -0
  197. package/dist/modules/shipment_tracking/lib/poi-nats-config.js +52 -0
  198. package/dist/modules/shipment_tracking/lib/poi-nats-config.js.map +7 -0
  199. package/dist/modules/shipment_tracking/lib/poi-types.js +43 -0
  200. package/dist/modules/shipment_tracking/lib/poi-types.js.map +7 -0
  201. package/dist/modules/shipment_tracking/lib/rate-limiter.js +31 -0
  202. package/dist/modules/shipment_tracking/lib/rate-limiter.js.map +7 -0
  203. package/dist/modules/shipment_tracking/lib/route-extraction.js +187 -0
  204. package/dist/modules/shipment_tracking/lib/route-extraction.js.map +7 -0
  205. package/dist/modules/shipment_tracking/lib/route-inference.js +106 -0
  206. package/dist/modules/shipment_tracking/lib/route-inference.js.map +7 -0
  207. package/dist/modules/shipment_tracking/lib/schedule-generator.js +63 -0
  208. package/dist/modules/shipment_tracking/lib/schedule-generator.js.map +7 -0
  209. package/dist/modules/shipment_tracking/lib/shipsgo-client.js +143 -0
  210. package/dist/modules/shipment_tracking/lib/shipsgo-client.js.map +7 -0
  211. package/dist/modules/shipment_tracking/lib/shipsgo-mapper.js +204 -0
  212. package/dist/modules/shipment_tracking/lib/shipsgo-mapper.js.map +7 -0
  213. package/dist/modules/shipment_tracking/lib/status-machine.js +131 -0
  214. package/dist/modules/shipment_tracking/lib/status-machine.js.map +7 -0
  215. package/dist/modules/shipment_tracking/lib/time-extraction.js +41 -0
  216. package/dist/modules/shipment_tracking/lib/time-extraction.js.map +7 -0
  217. package/dist/modules/shipment_tracking/lib/timestamp-utils.js +100 -0
  218. package/dist/modules/shipment_tracking/lib/timestamp-utils.js.map +7 -0
  219. package/dist/modules/shipment_tracking/lib/vessel-api.js +111 -0
  220. package/dist/modules/shipment_tracking/lib/vessel-api.js.map +7 -0
  221. package/dist/modules/shipment_tracking/lib/vessel-cache.js +50 -0
  222. package/dist/modules/shipment_tracking/lib/vessel-cache.js.map +7 -0
  223. package/dist/modules/shipment_tracking/lib/vessel-extraction.js +13 -0
  224. package/dist/modules/shipment_tracking/lib/vessel-extraction.js.map +7 -0
  225. package/dist/modules/shipment_tracking/lib/webhook-dispatcher.js +62 -0
  226. package/dist/modules/shipment_tracking/lib/webhook-dispatcher.js.map +7 -0
  227. package/dist/modules/shipment_tracking/migrations/Migration20260422161208_shipment_tracking.js +48 -0
  228. package/dist/modules/shipment_tracking/migrations/Migration20260422161208_shipment_tracking.js.map +7 -0
  229. package/dist/modules/shipment_tracking/migrations/Migration20260529120000_shipment_tracking_poi_region_names.js +15 -0
  230. package/dist/modules/shipment_tracking/migrations/Migration20260529120000_shipment_tracking_poi_region_names.js.map +7 -0
  231. package/dist/modules/shipment_tracking/migrations/Migration20260821120000_shipment_tracking_shipsgo.js +47 -0
  232. package/dist/modules/shipment_tracking/migrations/Migration20260821120000_shipment_tracking_shipsgo.js.map +7 -0
  233. package/dist/modules/shipment_tracking/notifications.js +145 -0
  234. package/dist/modules/shipment_tracking/notifications.js.map +7 -0
  235. package/dist/modules/shipment_tracking/services/carrierRegistry.js +24 -0
  236. package/dist/modules/shipment_tracking/services/carrierRegistry.js.map +7 -0
  237. package/dist/modules/shipment_tracking/services/poiNatsService.js +397 -0
  238. package/dist/modules/shipment_tracking/services/poiNatsService.js.map +7 -0
  239. package/dist/modules/shipment_tracking/services/shipsGoProvider.js +163 -0
  240. package/dist/modules/shipment_tracking/services/shipsGoProvider.js.map +7 -0
  241. package/dist/modules/shipment_tracking/services/trackingService.js +1283 -0
  242. package/dist/modules/shipment_tracking/services/trackingService.js.map +7 -0
  243. package/dist/modules/shipment_tracking/services/webhookService.js +263 -0
  244. package/dist/modules/shipment_tracking/services/webhookService.js.map +7 -0
  245. package/dist/modules/shipment_tracking/setup.js +72 -0
  246. package/dist/modules/shipment_tracking/setup.js.map +7 -0
  247. package/dist/modules/shipment_tracking/subscribers/cargo-event-created.js +60 -0
  248. package/dist/modules/shipment_tracking/subscribers/cargo-event-created.js.map +7 -0
  249. package/dist/modules/shipment_tracking/subscribers/dcsa-event-webhook-dispatch.js +58 -0
  250. package/dist/modules/shipment_tracking/subscribers/dcsa-event-webhook-dispatch.js.map +7 -0
  251. package/dist/modules/shipment_tracking/subscribers/poi-event-notification.js +82 -0
  252. package/dist/modules/shipment_tracking/subscribers/poi-event-notification.js.map +7 -0
  253. package/dist/modules/shipment_tracking/subscribers/poi-event-webhook-dispatch.js +53 -0
  254. package/dist/modules/shipment_tracking/subscribers/poi-event-webhook-dispatch.js.map +7 -0
  255. package/dist/modules/shipment_tracking/subscribers/shipment-status-changed.js +28 -0
  256. package/dist/modules/shipment_tracking/subscribers/shipment-status-changed.js.map +7 -0
  257. package/dist/modules/shipment_tracking/subscribers/terminal-event-ingest.js +67 -0
  258. package/dist/modules/shipment_tracking/subscribers/terminal-event-ingest.js.map +7 -0
  259. package/dist/modules/shipment_tracking/subscribers/tracking-job-initial-poll.js +30 -0
  260. package/dist/modules/shipment_tracking/subscribers/tracking-job-initial-poll.js.map +7 -0
  261. package/dist/modules/shipment_tracking/subscribers/tracking-job-webhook-dispatch.js +19 -0
  262. package/dist/modules/shipment_tracking/subscribers/tracking-job-webhook-dispatch.js.map +7 -0
  263. package/dist/modules/shipment_tracking/tables/index.js +6 -0
  264. package/dist/modules/shipment_tracking/tables/index.js.map +7 -0
  265. package/dist/modules/shipment_tracking/tables/tracking_job/table.client.js +284 -0
  266. package/dist/modules/shipment_tracking/tables/tracking_job/table.client.js.map +7 -0
  267. package/dist/modules/shipment_tracking/tables/tracking_job/table.js +36 -0
  268. package/dist/modules/shipment_tracking/tables/tracking_job/table.js.map +7 -0
  269. package/dist/modules/shipment_tracking/widgets/dashboard/ships-map/config.js +25 -0
  270. package/dist/modules/shipment_tracking/widgets/dashboard/ships-map/config.js.map +7 -0
  271. package/dist/modules/shipment_tracking/widgets/dashboard/ships-map/widget.client.js +355 -0
  272. package/dist/modules/shipment_tracking/widgets/dashboard/ships-map/widget.client.js.map +7 -0
  273. package/dist/modules/shipment_tracking/widgets/dashboard/ships-map/widget.js +26 -0
  274. package/dist/modules/shipment_tracking/widgets/dashboard/ships-map/widget.js.map +7 -0
  275. package/dist/types/assets.d.js +1 -0
  276. package/dist/types/assets.d.js.map +7 -0
  277. package/generated/entities/bic_config/index.ts +20 -0
  278. package/generated/entities/carrier_config/index.ts +23 -0
  279. package/generated/entities/location_override/index.ts +26 -0
  280. package/generated/entities/shipment/index.ts +46 -0
  281. package/generated/entities/ships_go_config/index.ts +25 -0
  282. package/generated/entities/tracking_event/index.ts +60 -0
  283. package/generated/entities/tracking_job/index.ts +33 -0
  284. package/generated/entities/webhook/index.ts +22 -0
  285. package/generated/entities/webhook_delivery/index.ts +22 -0
  286. package/generated/entities.ids.generated.ts +47 -0
  287. package/package.json +81 -0
  288. package/src/index.ts +39 -0
  289. package/src/modules/shipment_tracking/__integration__/TC-TRACK-410-shipsgo-config-api.spec.ts +133 -0
  290. package/src/modules/shipment_tracking/__integration__/meta.ts +4 -0
  291. package/src/modules/shipment_tracking/__tests__/empty-return-stop.test.ts +231 -0
  292. package/src/modules/shipment_tracking/__tests__/fixtures/hapag-lloyd-transship-container.json +702 -0
  293. package/src/modules/shipment_tracking/__tests__/fixtures/index.ts +434 -0
  294. package/src/modules/shipment_tracking/__tests__/fixtures/maersk-multi-transship-completed.json +1518 -0
  295. package/src/modules/shipment_tracking/__tests__/fixtures/maersk-transship-intransit.json +558 -0
  296. package/src/modules/shipment_tracking/__tests__/fixtures/msc-direct.json +222 -0
  297. package/src/modules/shipment_tracking/__tests__/fixtures/msc-multi-transship-completed.json +974 -0
  298. package/src/modules/shipment_tracking/__tests__/fixtures/msc-multi.json +4846 -0
  299. package/src/modules/shipment_tracking/__tests__/fixtures/msc-transship.json +409 -0
  300. package/src/modules/shipment_tracking/__tests__/fixtures/poi-events.json +240 -0
  301. package/src/modules/shipment_tracking/__tests__/fixtures/synthetic/index.ts +138 -0
  302. package/src/modules/shipment_tracking/__tests__/fixtures/synthetic-eta-updates.json +288 -0
  303. package/src/modules/shipment_tracking/__tests__/fixtures/synthetic-route-inference.json +201 -0
  304. package/src/modules/shipment_tracking/__tests__/fixtures/synthetic-voyage-progression.json +410 -0
  305. package/src/modules/shipment_tracking/__tests__/shipsgo-air-mapper.test.ts +157 -0
  306. package/src/modules/shipment_tracking/__tests__/shipsgo-client.test.ts +155 -0
  307. package/src/modules/shipment_tracking/__tests__/shipsgo-mapper.test.ts +201 -0
  308. package/src/modules/shipment_tracking/__tests__/shipsgo-poll.test.ts +357 -0
  309. package/src/modules/shipment_tracking/__tests__/shipsgo-provider.test.ts +364 -0
  310. package/src/modules/shipment_tracking/__tests__/trackingService.integration.test.ts +2248 -0
  311. package/src/modules/shipment_tracking/__tests__/webhookPayload.test.ts +151 -0
  312. package/src/modules/shipment_tracking/acl.ts +18 -0
  313. package/src/modules/shipment_tracking/api/bic-configs/route.ts +206 -0
  314. package/src/modules/shipment_tracking/api/bic-configs/test/route.ts +108 -0
  315. package/src/modules/shipment_tracking/api/cargo-events/route.ts +101 -0
  316. package/src/modules/shipment_tracking/api/carrier-configs/route.ts +142 -0
  317. package/src/modules/shipment_tracking/api/dashboard/ships-map/route.ts +246 -0
  318. package/src/modules/shipment_tracking/api/location-overrides/route.ts +185 -0
  319. package/src/modules/shipment_tracking/api/openapi.ts +28 -0
  320. package/src/modules/shipment_tracking/api/shipments/route.ts +197 -0
  321. package/src/modules/shipment_tracking/api/shipsgo-configs/route.ts +215 -0
  322. package/src/modules/shipment_tracking/api/tracking-jobs/route.ts +149 -0
  323. package/src/modules/shipment_tracking/api/tracking-jobs/sync/route.ts +116 -0
  324. package/src/modules/shipment_tracking/api/utils.ts +10 -0
  325. package/src/modules/shipment_tracking/api/webhooks/deliveries/route.ts +82 -0
  326. package/src/modules/shipment_tracking/api/webhooks/route.ts +138 -0
  327. package/src/modules/shipment_tracking/api/webhooks/test/route.ts +84 -0
  328. package/src/modules/shipment_tracking/assets/carriers/cma_cgm.png +0 -0
  329. package/src/modules/shipment_tracking/assets/carriers/cosco.png +0 -0
  330. package/src/modules/shipment_tracking/assets/carriers/evergreen.png +0 -0
  331. package/src/modules/shipment_tracking/assets/carriers/hapag_lloyd.png +0 -0
  332. package/src/modules/shipment_tracking/assets/carriers/maersk.png +0 -0
  333. package/src/modules/shipment_tracking/assets/carriers/msc.png +0 -0
  334. package/src/modules/shipment_tracking/assets/carriers/one.png +0 -0
  335. package/src/modules/shipment_tracking/assets/carriers/oocl.png +0 -0
  336. package/src/modules/shipment_tracking/assets/carriers/yang_ming.png +0 -0
  337. package/src/modules/shipment_tracking/assets/carriers/zim.png +0 -0
  338. package/src/modules/shipment_tracking/assets/index.ts +66 -0
  339. package/src/modules/shipment_tracking/backend/carrier-configs/page.meta.ts +16 -0
  340. package/src/modules/shipment_tracking/backend/carrier-configs/page.tsx +782 -0
  341. package/src/modules/shipment_tracking/backend/location-overrides/page.meta.ts +16 -0
  342. package/src/modules/shipment_tracking/backend/location-overrides/page.tsx +241 -0
  343. package/src/modules/shipment_tracking/backend/shipment-tracking/page.meta.ts +16 -0
  344. package/src/modules/shipment_tracking/backend/shipment-tracking/page.tsx +340 -0
  345. package/src/modules/shipment_tracking/backend/tracking-jobs/page.meta.ts +16 -0
  346. package/src/modules/shipment_tracking/backend/tracking-jobs/page.tsx +16 -0
  347. package/src/modules/shipment_tracking/backend/webhooks/page.meta.ts +16 -0
  348. package/src/modules/shipment_tracking/backend/webhooks/page.tsx +228 -0
  349. package/src/modules/shipment_tracking/ce.ts +48 -0
  350. package/src/modules/shipment_tracking/cli.ts +321 -0
  351. package/src/modules/shipment_tracking/commands/bic-configs.ts +94 -0
  352. package/src/modules/shipment_tracking/commands/carrier-configs.ts +89 -0
  353. package/src/modules/shipment_tracking/commands/index.ts +8 -0
  354. package/src/modules/shipment_tracking/commands/location-overrides.ts +119 -0
  355. package/src/modules/shipment_tracking/commands/shipments.ts +247 -0
  356. package/src/modules/shipment_tracking/commands/shipsgo-configs.ts +101 -0
  357. package/src/modules/shipment_tracking/commands/tracking-jobs.ts +158 -0
  358. package/src/modules/shipment_tracking/commands/tracking.ts +230 -0
  359. package/src/modules/shipment_tracking/commands/webhooks.ts +159 -0
  360. package/src/modules/shipment_tracking/components/CombinedTimestampCell.tsx +236 -0
  361. package/src/modules/shipment_tracking/components/FacilityLocationInput.tsx +235 -0
  362. package/src/modules/shipment_tracking/components/LocationOverrideDrawer.tsx +586 -0
  363. package/src/modules/shipment_tracking/components/ShipmentDetailsDrawer.tsx +1364 -0
  364. package/src/modules/shipment_tracking/components/ShipmentDrawer.tsx +498 -0
  365. package/src/modules/shipment_tracking/components/ShipsGoConfigSection.tsx +266 -0
  366. package/src/modules/shipment_tracking/components/TimestampCell.tsx +146 -0
  367. package/src/modules/shipment_tracking/components/TrackingJobDrawer.tsx +467 -0
  368. package/src/modules/shipment_tracking/components/VesselTrackingMap.tsx +761 -0
  369. package/src/modules/shipment_tracking/components/WebhookDrawer.tsx +434 -0
  370. package/src/modules/shipment_tracking/data/entities.ts +748 -0
  371. package/src/modules/shipment_tracking/data/validators.ts +523 -0
  372. package/src/modules/shipment_tracking/di.ts +73 -0
  373. package/src/modules/shipment_tracking/encryption.ts +17 -0
  374. package/src/modules/shipment_tracking/events.ts +122 -0
  375. package/src/modules/shipment_tracking/hooks/useVesselTracking.ts +297 -0
  376. package/src/modules/shipment_tracking/i18n/de.json +327 -0
  377. package/src/modules/shipment_tracking/i18n/en.json +327 -0
  378. package/src/modules/shipment_tracking/i18n/es.json +327 -0
  379. package/src/modules/shipment_tracking/i18n/pl.json +327 -0
  380. package/src/modules/shipment_tracking/index.ts +13 -0
  381. package/src/modules/shipment_tracking/lib/__tests__/dcsa-event-mapping.test.ts +385 -0
  382. package/src/modules/shipment_tracking/lib/__tests__/dcsa-event-parser.test.ts +398 -0
  383. package/src/modules/shipment_tracking/lib/__tests__/empty-return.test.ts +174 -0
  384. package/src/modules/shipment_tracking/lib/__tests__/poi-event-processor.test.ts +699 -0
  385. package/src/modules/shipment_tracking/lib/__tests__/route-inference.test.ts +402 -0
  386. package/src/modules/shipment_tracking/lib/__tests__/status-machine.test.ts +447 -0
  387. package/src/modules/shipment_tracking/lib/__tests__/time-extraction.test.ts +331 -0
  388. package/src/modules/shipment_tracking/lib/__tests__/timestamp-utils.test.ts +260 -0
  389. package/src/modules/shipment_tracking/lib/__tests__/vessel-api.test.ts +125 -0
  390. package/src/modules/shipment_tracking/lib/__tests__/vessel-extraction.test.ts +108 -0
  391. package/src/modules/shipment_tracking/lib/adapters/cma-cgm.ts +84 -0
  392. package/src/modules/shipment_tracking/lib/adapters/cosco-types.ts +145 -0
  393. package/src/modules/shipment_tracking/lib/adapters/cosco.ts +314 -0
  394. package/src/modules/shipment_tracking/lib/adapters/evergreen.ts +107 -0
  395. package/src/modules/shipment_tracking/lib/adapters/hapag-lloyd.ts +88 -0
  396. package/src/modules/shipment_tracking/lib/adapters/index.ts +18 -0
  397. package/src/modules/shipment_tracking/lib/adapters/maersk.ts +104 -0
  398. package/src/modules/shipment_tracking/lib/adapters/msc.ts +223 -0
  399. package/src/modules/shipment_tracking/lib/adapters/zim.ts +106 -0
  400. package/src/modules/shipment_tracking/lib/audit-helpers.ts +29 -0
  401. package/src/modules/shipment_tracking/lib/auth/base64url.ts +4 -0
  402. package/src/modules/shipment_tracking/lib/auth/oauth-client.ts +53 -0
  403. package/src/modules/shipment_tracking/lib/background.ts +24 -0
  404. package/src/modules/shipment_tracking/lib/bic-api-client.ts +199 -0
  405. package/src/modules/shipment_tracking/lib/carrier-adapter.ts +136 -0
  406. package/src/modules/shipment_tracking/lib/current-vessel.ts +274 -0
  407. package/src/modules/shipment_tracking/lib/dcsa-event-mapping.ts +202 -0
  408. package/src/modules/shipment_tracking/lib/dcsa-event-parser.ts +163 -0
  409. package/src/modules/shipment_tracking/lib/dcsa-params.ts +14 -0
  410. package/src/modules/shipment_tracking/lib/empty-return.ts +122 -0
  411. package/src/modules/shipment_tracking/lib/location-overrides.ts +150 -0
  412. package/src/modules/shipment_tracking/lib/location-types.ts +154 -0
  413. package/src/modules/shipment_tracking/lib/logger.ts +195 -0
  414. package/src/modules/shipment_tracking/lib/poi-event-processor.ts +302 -0
  415. package/src/modules/shipment_tracking/lib/poi-nats-config.ts +134 -0
  416. package/src/modules/shipment_tracking/lib/poi-types.ts +198 -0
  417. package/src/modules/shipment_tracking/lib/rate-limiter.ts +58 -0
  418. package/src/modules/shipment_tracking/lib/route-extraction.ts +439 -0
  419. package/src/modules/shipment_tracking/lib/route-inference.ts +238 -0
  420. package/src/modules/shipment_tracking/lib/schedule-generator.ts +92 -0
  421. package/src/modules/shipment_tracking/lib/shipsgo-client.ts +350 -0
  422. package/src/modules/shipment_tracking/lib/shipsgo-mapper.ts +296 -0
  423. package/src/modules/shipment_tracking/lib/status-machine.ts +230 -0
  424. package/src/modules/shipment_tracking/lib/time-extraction.ts +85 -0
  425. package/src/modules/shipment_tracking/lib/timestamp-utils.ts +244 -0
  426. package/src/modules/shipment_tracking/lib/vessel-api.ts +299 -0
  427. package/src/modules/shipment_tracking/lib/vessel-cache.ts +102 -0
  428. package/src/modules/shipment_tracking/lib/vessel-extraction.ts +39 -0
  429. package/src/modules/shipment_tracking/lib/webhook-dispatcher.ts +93 -0
  430. package/src/modules/shipment_tracking/migrations/.snapshot-open-mercato.json +2914 -0
  431. package/src/modules/shipment_tracking/migrations/Migration20260422161208_shipment_tracking.ts +60 -0
  432. package/src/modules/shipment_tracking/migrations/Migration20260529120000_shipment_tracking_poi_region_names.ts +22 -0
  433. package/src/modules/shipment_tracking/migrations/Migration20260821120000_shipment_tracking_shipsgo.ts +65 -0
  434. package/src/modules/shipment_tracking/notifications.ts +151 -0
  435. package/src/modules/shipment_tracking/services/carrierRegistry.ts +29 -0
  436. package/src/modules/shipment_tracking/services/poiNatsService.ts +526 -0
  437. package/src/modules/shipment_tracking/services/shipsGoProvider.ts +231 -0
  438. package/src/modules/shipment_tracking/services/trackingService.ts +1777 -0
  439. package/src/modules/shipment_tracking/services/webhookService.ts +347 -0
  440. package/src/modules/shipment_tracking/setup.ts +99 -0
  441. package/src/modules/shipment_tracking/subscribers/__tests__/terminal-event-ingest.test.ts +141 -0
  442. package/src/modules/shipment_tracking/subscribers/cargo-event-created.ts +115 -0
  443. package/src/modules/shipment_tracking/subscribers/dcsa-event-webhook-dispatch.ts +115 -0
  444. package/src/modules/shipment_tracking/subscribers/poi-event-notification.ts +144 -0
  445. package/src/modules/shipment_tracking/subscribers/poi-event-webhook-dispatch.ts +94 -0
  446. package/src/modules/shipment_tracking/subscribers/shipment-status-changed.ts +41 -0
  447. package/src/modules/shipment_tracking/subscribers/terminal-event-ingest.ts +109 -0
  448. package/src/modules/shipment_tracking/subscribers/tracking-job-initial-poll.ts +53 -0
  449. package/src/modules/shipment_tracking/subscribers/tracking-job-webhook-dispatch.ts +50 -0
  450. package/src/modules/shipment_tracking/tables/index.ts +4 -0
  451. package/src/modules/shipment_tracking/tables/tracking_job/table.client.tsx +337 -0
  452. package/src/modules/shipment_tracking/tables/tracking_job/table.ts +34 -0
  453. package/src/modules/shipment_tracking/widgets/dashboard/ships-map/config.ts +32 -0
  454. package/src/modules/shipment_tracking/widgets/dashboard/ships-map/widget.client.tsx +448 -0
  455. package/src/modules/shipment_tracking/widgets/dashboard/ships-map/widget.ts +25 -0
  456. package/src/types/assets.d.ts +5 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FreightTech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,25 @@
1
+ @freighttech/shipment-tracking
2
+ Copyright (c) 2026 FreightTech
3
+
4
+ This product is licensed under the MIT License (see LICENSE).
5
+
6
+ --------------------------------------------------------------------------------
7
+ Third-party trademarks
8
+ --------------------------------------------------------------------------------
9
+
10
+ The carrier logo image files under
11
+ src/modules/shipment_tracking/assets/carriers/
12
+ (e.g. maersk.png, msc.png, cma_cgm.png, hapag_lloyd.png, cosco.png, one.png,
13
+ oocl.png, evergreen.png, yang_ming.png, zim.png)
14
+ are the registered trademarks and property of their respective owners
15
+ (A.P. Moller - Maersk, MSC Mediterranean Shipping Company, CMA CGM,
16
+ Hapag-Lloyd, COSCO Shipping, Ocean Network Express (ONE), OOCL, Evergreen
17
+ Marine, Yang Ming, ZIM, and others).
18
+
19
+ They are included solely to identify the corresponding ocean carrier in the
20
+ user interface (nominative/referential use). Their inclusion does not imply
21
+ any affiliation with, sponsorship by, or endorsement from the trademark
22
+ owners. The MIT license above covers only the source code of this package,
23
+ not these trademarks. If you redistribute or use this package, you are
24
+ responsible for your own trademark compliance; remove or replace these assets
25
+ if that use is not appropriate for your deployment.
@@ -0,0 +1,21 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const is_enabled = "is_enabled";
5
+ const username = "username";
6
+ const password = "password";
7
+ const base_url = "base_url";
8
+ const created_at = "created_at";
9
+ const updated_at = "updated_at";
10
+ export {
11
+ base_url,
12
+ created_at,
13
+ id,
14
+ is_enabled,
15
+ organization_id,
16
+ password,
17
+ tenant_id,
18
+ updated_at,
19
+ username
20
+ };
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/bic_config/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const is_enabled = \"is_enabled\";\nexport const username = \"username\";\nexport const password = \"password\";\nexport const base_url = \"base_url\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,WAAW;AACjB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,27 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const carrier_code = "carrier_code";
5
+ const api_endpoint = "api_endpoint";
6
+ const auth_config = "auth_config";
7
+ const rate_limit_requests = "rate_limit_requests";
8
+ const rate_limit_window_seconds = "rate_limit_window_seconds";
9
+ const is_active = "is_active";
10
+ const created_at = "created_at";
11
+ const updated_at = "updated_at";
12
+ const deleted_at = "deleted_at";
13
+ export {
14
+ api_endpoint,
15
+ auth_config,
16
+ carrier_code,
17
+ created_at,
18
+ deleted_at,
19
+ id,
20
+ is_active,
21
+ organization_id,
22
+ rate_limit_requests,
23
+ rate_limit_window_seconds,
24
+ tenant_id,
25
+ updated_at
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/carrier_config/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const carrier_code = \"carrier_code\";\nexport const api_endpoint = \"api_endpoint\";\nexport const auth_config = \"auth_config\";\nexport const rate_limit_requests = \"rate_limit_requests\";\nexport const rate_limit_window_seconds = \"rate_limit_window_seconds\";\nexport const is_active = \"is_active\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,sBAAsB;AAC5B,MAAM,4BAA4B;AAClC,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,33 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const carrier_code = "carrier_code";
5
+ const unlocode = "unlocode";
6
+ const facility_code = "facility_code";
7
+ const facility_code_list_provider = "facility_code_list_provider";
8
+ const override_data = "override_data";
9
+ const description = "description";
10
+ const is_active = "is_active";
11
+ const created_at = "created_at";
12
+ const updated_at = "updated_at";
13
+ const deleted_at = "deleted_at";
14
+ const created_by_user_id = "created_by_user_id";
15
+ const updated_by_user_id = "updated_by_user_id";
16
+ export {
17
+ carrier_code,
18
+ created_at,
19
+ created_by_user_id,
20
+ deleted_at,
21
+ description,
22
+ facility_code,
23
+ facility_code_list_provider,
24
+ id,
25
+ is_active,
26
+ organization_id,
27
+ override_data,
28
+ tenant_id,
29
+ unlocode,
30
+ updated_at,
31
+ updated_by_user_id
32
+ };
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/location_override/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const carrier_code = \"carrier_code\";\nexport const unlocode = \"unlocode\";\nexport const facility_code = \"facility_code\";\nexport const facility_code_list_provider = \"facility_code_list_provider\";\nexport const override_data = \"override_data\";\nexport const description = \"description\";\nexport const is_active = \"is_active\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\nexport const created_by_user_id = \"created_by_user_id\";\nexport const updated_by_user_id = \"updated_by_user_id\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,WAAW;AACjB,MAAM,gBAAgB;AACtB,MAAM,8BAA8B;AACpC,MAAM,gBAAgB;AACtB,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,73 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const status = "status";
5
+ const mode = "mode";
6
+ const carrier_code = "carrier_code";
7
+ const container_number = "container_number";
8
+ const awb_number = "awb_number";
9
+ const flight_number = "flight_number";
10
+ const airline_code = "airline_code";
11
+ const airline_name = "airline_name";
12
+ const iso_equipment_code = "iso_equipment_code";
13
+ const booking_number = "booking_number";
14
+ const bol_number = "bol_number";
15
+ const etd_timestamps = "etd_timestamps";
16
+ const eta_timestamps = "eta_timestamps";
17
+ const atd_timestamps = "atd_timestamps";
18
+ const ata_timestamps = "ata_timestamps";
19
+ const origin_location = "origin_location";
20
+ const destination_location = "destination_location";
21
+ const vessel_name = "vessel_name";
22
+ const vessel_imo = "vessel_imo";
23
+ const voyage_number = "voyage_number";
24
+ const event_count = "event_count";
25
+ const last_event_at = "last_event_at";
26
+ const extra = "extra";
27
+ const route_stops = "route_stops";
28
+ const cargo_events = "cargo_events";
29
+ const seals = "seals";
30
+ const is_active = "is_active";
31
+ const created_at = "created_at";
32
+ const updated_at = "updated_at";
33
+ const deleted_at = "deleted_at";
34
+ const created_by_user_id = "created_by_user_id";
35
+ const tracking_job = "tracking_job";
36
+ export {
37
+ airline_code,
38
+ airline_name,
39
+ ata_timestamps,
40
+ atd_timestamps,
41
+ awb_number,
42
+ bol_number,
43
+ booking_number,
44
+ cargo_events,
45
+ carrier_code,
46
+ container_number,
47
+ created_at,
48
+ created_by_user_id,
49
+ deleted_at,
50
+ destination_location,
51
+ eta_timestamps,
52
+ etd_timestamps,
53
+ event_count,
54
+ extra,
55
+ flight_number,
56
+ id,
57
+ is_active,
58
+ iso_equipment_code,
59
+ last_event_at,
60
+ mode,
61
+ organization_id,
62
+ origin_location,
63
+ route_stops,
64
+ seals,
65
+ status,
66
+ tenant_id,
67
+ tracking_job,
68
+ updated_at,
69
+ vessel_imo,
70
+ vessel_name,
71
+ voyage_number
72
+ };
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/shipment/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const status = \"status\";\nexport const mode = \"mode\";\nexport const carrier_code = \"carrier_code\";\nexport const container_number = \"container_number\";\nexport const awb_number = \"awb_number\";\nexport const flight_number = \"flight_number\";\nexport const airline_code = \"airline_code\";\nexport const airline_name = \"airline_name\";\nexport const iso_equipment_code = \"iso_equipment_code\";\nexport const booking_number = \"booking_number\";\nexport const bol_number = \"bol_number\";\nexport const etd_timestamps = \"etd_timestamps\";\nexport const eta_timestamps = \"eta_timestamps\";\nexport const atd_timestamps = \"atd_timestamps\";\nexport const ata_timestamps = \"ata_timestamps\";\nexport const origin_location = \"origin_location\";\nexport const destination_location = \"destination_location\";\nexport const vessel_name = \"vessel_name\";\nexport const vessel_imo = \"vessel_imo\";\nexport const voyage_number = \"voyage_number\";\nexport const event_count = \"event_count\";\nexport const last_event_at = \"last_event_at\";\nexport const extra = \"extra\";\nexport const route_stops = \"route_stops\";\nexport const cargo_events = \"cargo_events\";\nexport const seals = \"seals\";\nexport const is_active = \"is_active\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\nexport const created_by_user_id = \"created_by_user_id\";\nexport const tracking_job = \"tracking_job\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,SAAS;AACf,MAAM,OAAO;AACb,MAAM,eAAe;AACrB,MAAM,mBAAmB;AACzB,MAAM,aAAa;AACnB,MAAM,gBAAgB;AACtB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,MAAM,aAAa;AACnB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,kBAAkB;AACxB,MAAM,uBAAuB;AAC7B,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,gBAAgB;AACtB,MAAM,cAAc;AACpB,MAAM,gBAAgB;AACtB,MAAM,QAAQ;AACd,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,QAAQ;AACd,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,qBAAqB;AAC3B,MAAM,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,31 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const is_enabled = "is_enabled";
5
+ const api_token = "api_token";
6
+ const base_url = "base_url";
7
+ const ocean_enabled = "ocean_enabled";
8
+ const air_enabled = "air_enabled";
9
+ const rate_limit_requests = "rate_limit_requests";
10
+ const rate_limit_window_seconds = "rate_limit_window_seconds";
11
+ const is_active = "is_active";
12
+ const created_at = "created_at";
13
+ const updated_at = "updated_at";
14
+ const deleted_at = "deleted_at";
15
+ export {
16
+ air_enabled,
17
+ api_token,
18
+ base_url,
19
+ created_at,
20
+ deleted_at,
21
+ id,
22
+ is_active,
23
+ is_enabled,
24
+ ocean_enabled,
25
+ organization_id,
26
+ rate_limit_requests,
27
+ rate_limit_window_seconds,
28
+ tenant_id,
29
+ updated_at
30
+ };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/ships_go_config/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const is_enabled = \"is_enabled\";\nexport const api_token = \"api_token\";\nexport const base_url = \"base_url\";\nexport const ocean_enabled = \"ocean_enabled\";\nexport const air_enabled = \"air_enabled\";\nexport const rate_limit_requests = \"rate_limit_requests\";\nexport const rate_limit_window_seconds = \"rate_limit_window_seconds\";\nexport const is_active = \"is_active\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,YAAY;AAClB,MAAM,WAAW;AACjB,MAAM,gBAAgB;AACtB,MAAM,cAAc;AACpB,MAAM,sBAAsB;AAC5B,MAAM,4BAA4B;AAClC,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,101 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const tracking_job = "tracking_job";
5
+ const source = "source";
6
+ const source_event_id = "source_event_id";
7
+ const event_type = "event_type";
8
+ const event_code = "event_code";
9
+ const event_classifier_code = "event_classifier_code";
10
+ const event_date_time = "event_date_time";
11
+ const event_date_time_offset = "event_date_time_offset";
12
+ const description = "description";
13
+ const raw_data = "raw_data";
14
+ const equipment_reference = "equipment_reference";
15
+ const iso_equipment_code = "iso_equipment_code";
16
+ const empty_indicator_code = "empty_indicator_code";
17
+ const is_transshipment_move = "is_transshipment_move";
18
+ const location_name = "location_name";
19
+ const location_unlocode = "location_unlocode";
20
+ const location_country = "location_country";
21
+ const region_name_pl = "region_name_pl";
22
+ const region_name_en = "region_name_en";
23
+ const facility_code = "facility_code";
24
+ const facility_code_list_provider = "facility_code_list_provider";
25
+ const facility_type_code = "facility_type_code";
26
+ const facility_address = "facility_address";
27
+ const latitude = "latitude";
28
+ const longitude = "longitude";
29
+ const transport_call_reference = "transport_call_reference";
30
+ const mode_of_transport = "mode_of_transport";
31
+ const vessel_name = "vessel_name";
32
+ const vessel_imo = "vessel_imo";
33
+ const voyage_number = "voyage_number";
34
+ const carrier_service_code = "carrier_service_code";
35
+ const carrier_export_voyage_number = "carrier_export_voyage_number";
36
+ const carrier_import_voyage_number = "carrier_import_voyage_number";
37
+ const universal_service_reference = "universal_service_reference";
38
+ const universal_export_voyage_reference = "universal_export_voyage_reference";
39
+ const universal_import_voyage_reference = "universal_import_voyage_reference";
40
+ const port_visit_reference = "port_visit_reference";
41
+ const related_document_references = "related_document_references";
42
+ const event_created_date_time = "event_created_date_time";
43
+ const retracted_event_id = "retracted_event_id";
44
+ const publisher_name = "publisher_name";
45
+ const publisher_role = "publisher_role";
46
+ const delay_reason_code = "delay_reason_code";
47
+ const change_remark = "change_remark";
48
+ const seals = "seals";
49
+ const created_at = "created_at";
50
+ export {
51
+ carrier_export_voyage_number,
52
+ carrier_import_voyage_number,
53
+ carrier_service_code,
54
+ change_remark,
55
+ created_at,
56
+ delay_reason_code,
57
+ description,
58
+ empty_indicator_code,
59
+ equipment_reference,
60
+ event_classifier_code,
61
+ event_code,
62
+ event_created_date_time,
63
+ event_date_time,
64
+ event_date_time_offset,
65
+ event_type,
66
+ facility_address,
67
+ facility_code,
68
+ facility_code_list_provider,
69
+ facility_type_code,
70
+ id,
71
+ is_transshipment_move,
72
+ iso_equipment_code,
73
+ latitude,
74
+ location_country,
75
+ location_name,
76
+ location_unlocode,
77
+ longitude,
78
+ mode_of_transport,
79
+ organization_id,
80
+ port_visit_reference,
81
+ publisher_name,
82
+ publisher_role,
83
+ raw_data,
84
+ region_name_en,
85
+ region_name_pl,
86
+ related_document_references,
87
+ retracted_event_id,
88
+ seals,
89
+ source,
90
+ source_event_id,
91
+ tenant_id,
92
+ tracking_job,
93
+ transport_call_reference,
94
+ universal_export_voyage_reference,
95
+ universal_import_voyage_reference,
96
+ universal_service_reference,
97
+ vessel_imo,
98
+ vessel_name,
99
+ voyage_number
100
+ };
101
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/tracking_event/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const tracking_job = \"tracking_job\";\nexport const source = \"source\";\nexport const source_event_id = \"source_event_id\";\nexport const event_type = \"event_type\";\nexport const event_code = \"event_code\";\nexport const event_classifier_code = \"event_classifier_code\";\nexport const event_date_time = \"event_date_time\";\nexport const event_date_time_offset = \"event_date_time_offset\";\nexport const description = \"description\";\nexport const raw_data = \"raw_data\";\nexport const equipment_reference = \"equipment_reference\";\nexport const iso_equipment_code = \"iso_equipment_code\";\nexport const empty_indicator_code = \"empty_indicator_code\";\nexport const is_transshipment_move = \"is_transshipment_move\";\nexport const location_name = \"location_name\";\nexport const location_unlocode = \"location_unlocode\";\nexport const location_country = \"location_country\";\nexport const region_name_pl = \"region_name_pl\";\nexport const region_name_en = \"region_name_en\";\nexport const facility_code = \"facility_code\";\nexport const facility_code_list_provider = \"facility_code_list_provider\";\nexport const facility_type_code = \"facility_type_code\";\nexport const facility_address = \"facility_address\";\nexport const latitude = \"latitude\";\nexport const longitude = \"longitude\";\nexport const transport_call_reference = \"transport_call_reference\";\nexport const mode_of_transport = \"mode_of_transport\";\nexport const vessel_name = \"vessel_name\";\nexport const vessel_imo = \"vessel_imo\";\nexport const voyage_number = \"voyage_number\";\nexport const carrier_service_code = \"carrier_service_code\";\nexport const carrier_export_voyage_number = \"carrier_export_voyage_number\";\nexport const carrier_import_voyage_number = \"carrier_import_voyage_number\";\nexport const universal_service_reference = \"universal_service_reference\";\nexport const universal_export_voyage_reference = \"universal_export_voyage_reference\";\nexport const universal_import_voyage_reference = \"universal_import_voyage_reference\";\nexport const port_visit_reference = \"port_visit_reference\";\nexport const related_document_references = \"related_document_references\";\nexport const event_created_date_time = \"event_created_date_time\";\nexport const retracted_event_id = \"retracted_event_id\";\nexport const publisher_name = \"publisher_name\";\nexport const publisher_role = \"publisher_role\";\nexport const delay_reason_code = \"delay_reason_code\";\nexport const change_remark = \"change_remark\";\nexport const seals = \"seals\";\nexport const created_at = \"created_at\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,eAAe;AACrB,MAAM,SAAS;AACf,MAAM,kBAAkB;AACxB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,wBAAwB;AAC9B,MAAM,kBAAkB;AACxB,MAAM,yBAAyB;AAC/B,MAAM,cAAc;AACpB,MAAM,WAAW;AACjB,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,uBAAuB;AAC7B,MAAM,wBAAwB;AAC9B,MAAM,gBAAgB;AACtB,MAAM,oBAAoB;AAC1B,MAAM,mBAAmB;AACzB,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,gBAAgB;AACtB,MAAM,8BAA8B;AACpC,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AACzB,MAAM,WAAW;AACjB,MAAM,YAAY;AAClB,MAAM,2BAA2B;AACjC,MAAM,oBAAoB;AAC1B,MAAM,cAAc;AACpB,MAAM,aAAa;AACnB,MAAM,gBAAgB;AACtB,MAAM,uBAAuB;AAC7B,MAAM,+BAA+B;AACrC,MAAM,+BAA+B;AACrC,MAAM,8BAA8B;AACpC,MAAM,oCAAoC;AAC1C,MAAM,oCAAoC;AAC1C,MAAM,uBAAuB;AAC7B,MAAM,8BAA8B;AACpC,MAAM,0BAA0B;AAChC,MAAM,qBAAqB;AAC3B,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;AACvB,MAAM,oBAAoB;AAC1B,MAAM,gBAAgB;AACtB,MAAM,QAAQ;AACd,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,47 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const provider = "provider";
5
+ const mode = "mode";
6
+ const provider_shipment_id = "provider_shipment_id";
7
+ const carrier_code = "carrier_code";
8
+ const reference_type = "reference_type";
9
+ const reference_value = "reference_value";
10
+ const origin_unlocode = "origin_unlocode";
11
+ const destination_unlocode = "destination_unlocode";
12
+ const status = "status";
13
+ const schedule = "schedule";
14
+ const next_poll_at = "next_poll_at";
15
+ const last_poll_at = "last_poll_at";
16
+ const retry_count = "retry_count";
17
+ const error_history = "error_history";
18
+ const created_at = "created_at";
19
+ const updated_at = "updated_at";
20
+ const deleted_at = "deleted_at";
21
+ const shipments = "shipments";
22
+ const events = "events";
23
+ export {
24
+ carrier_code,
25
+ created_at,
26
+ deleted_at,
27
+ destination_unlocode,
28
+ error_history,
29
+ events,
30
+ id,
31
+ last_poll_at,
32
+ mode,
33
+ next_poll_at,
34
+ organization_id,
35
+ origin_unlocode,
36
+ provider,
37
+ provider_shipment_id,
38
+ reference_type,
39
+ reference_value,
40
+ retry_count,
41
+ schedule,
42
+ shipments,
43
+ status,
44
+ tenant_id,
45
+ updated_at
46
+ };
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/tracking_job/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const provider = \"provider\";\nexport const mode = \"mode\";\nexport const provider_shipment_id = \"provider_shipment_id\";\nexport const carrier_code = \"carrier_code\";\nexport const reference_type = \"reference_type\";\nexport const reference_value = \"reference_value\";\nexport const origin_unlocode = \"origin_unlocode\";\nexport const destination_unlocode = \"destination_unlocode\";\nexport const status = \"status\";\nexport const schedule = \"schedule\";\nexport const next_poll_at = \"next_poll_at\";\nexport const last_poll_at = \"last_poll_at\";\nexport const retry_count = \"retry_count\";\nexport const error_history = \"error_history\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\nexport const shipments = \"shipments\";\nexport const events = \"events\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,WAAW;AACjB,MAAM,OAAO;AACb,MAAM,uBAAuB;AAC7B,MAAM,eAAe;AACrB,MAAM,iBAAiB;AACvB,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,uBAAuB;AAC7B,MAAM,SAAS;AACf,MAAM,WAAW;AACjB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,cAAc;AACpB,MAAM,gBAAgB;AACtB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,YAAY;AAClB,MAAM,SAAS;",
6
+ "names": []
7
+ }
@@ -0,0 +1,25 @@
1
+ const id = "id";
2
+ const organization_id = "organization_id";
3
+ const tenant_id = "tenant_id";
4
+ const url = "url";
5
+ const events_subscribed = "events_subscribed";
6
+ const hmac_secret = "hmac_secret";
7
+ const is_active = "is_active";
8
+ const created_at = "created_at";
9
+ const updated_at = "updated_at";
10
+ const deleted_at = "deleted_at";
11
+ const deliveries = "deliveries";
12
+ export {
13
+ created_at,
14
+ deleted_at,
15
+ deliveries,
16
+ events_subscribed,
17
+ hmac_secret,
18
+ id,
19
+ is_active,
20
+ organization_id,
21
+ tenant_id,
22
+ updated_at,
23
+ url
24
+ };
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/webhook/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const organization_id = \"organization_id\";\nexport const tenant_id = \"tenant_id\";\nexport const url = \"url\";\nexport const events_subscribed = \"events_subscribed\";\nexport const hmac_secret = \"hmac_secret\";\nexport const is_active = \"is_active\";\nexport const created_at = \"created_at\";\nexport const updated_at = \"updated_at\";\nexport const deleted_at = \"deleted_at\";\nexport const deliveries = \"deliveries\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,kBAAkB;AACxB,MAAM,YAAY;AAClB,MAAM,MAAM;AACZ,MAAM,oBAAoB;AAC1B,MAAM,cAAc;AACpB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;AACnB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,25 @@
1
+ const id = "id";
2
+ const webhook = "webhook";
3
+ const event_type = "event_type";
4
+ const status = "status";
5
+ const retry_count = "retry_count";
6
+ const next_retry_at = "next_retry_at";
7
+ const payload = "payload";
8
+ const response_status = "response_status";
9
+ const response_body = "response_body";
10
+ const error_message = "error_message";
11
+ const created_at = "created_at";
12
+ export {
13
+ created_at,
14
+ error_message,
15
+ event_type,
16
+ id,
17
+ next_retry_at,
18
+ payload,
19
+ response_body,
20
+ response_status,
21
+ retry_count,
22
+ status,
23
+ webhook
24
+ };
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../generated/entities/webhook_delivery/index.ts"],
4
+ "sourcesContent": ["// AUTO-GENERATED by scripts/generate-entity-fields.mjs (HEDGE-168). Do not edit.\n//\n// One file per entity, named `toSnake(ClassName)` \u2014 NOT the table name. Each\n// export is a database column name, mirroring what `mercato generate` writes\n// for `@open-mercato/*` packages. `loadStandaloneGeneratedPackageEntities()`\n// reads these back to build the host app's `entity-fields-registry.ts`, which\n// is what the Encryption and Translation managers list fields from.\n//\n// Regenerate with `node scripts/generate-entity-fields.mjs --all`; the package\n// build does it for you. Guarded by\n// `apps/web/src/__tests__/entity-fields-registry-contract.test.ts`.\nexport const id = \"id\";\nexport const webhook = \"webhook\";\nexport const event_type = \"event_type\";\nexport const status = \"status\";\nexport const retry_count = \"retry_count\";\nexport const next_retry_at = \"next_retry_at\";\nexport const payload = \"payload\";\nexport const response_status = \"response_status\";\nexport const response_body = \"response_body\";\nexport const error_message = \"error_message\";\nexport const created_at = \"created_at\";\n"],
5
+ "mappings": "AAWO,MAAM,KAAK;AACX,MAAM,UAAU;AAChB,MAAM,aAAa;AACnB,MAAM,SAAS;AACf,MAAM,cAAc;AACpB,MAAM,gBAAgB;AACtB,MAAM,UAAU;AAChB,MAAM,kBAAkB;AACxB,MAAM,gBAAgB;AACtB,MAAM,gBAAgB;AACtB,MAAM,aAAa;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ const M = {
2
+ shipment_tracking: "shipment_tracking"
3
+ };
4
+ const E = {
5
+ shipment_tracking: {
6
+ tracking_job: "shipment_tracking:tracking_job",
7
+ shipment: "shipment_tracking:shipment",
8
+ tracking_event: "shipment_tracking:tracking_event",
9
+ carrier_config: "shipment_tracking:carrier_config",
10
+ bic_config: "shipment_tracking:bic_config",
11
+ shipsgo_config: "shipment_tracking:shipsgo_config",
12
+ webhook: "shipment_tracking:webhook",
13
+ location_override: "shipment_tracking:location_override",
14
+ webhook_delivery: "shipment_tracking:webhook_delivery"
15
+ }
16
+ };
17
+ export {
18
+ E,
19
+ M
20
+ };
21
+ //# sourceMappingURL=entities.ids.generated.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../generated/entities.ids.generated.ts"],
4
+ "sourcesContent": ["// Entity ids for `@freighttech/shipment-tracking` \u2014 HAND-MAINTAINED and AUTHORITATIVE.\n//\n// This header used to say \"local typecheck stub\", owned at runtime by apps/web.\n// Both halves were false, and HEDGE-164 is what that cost. Nothing regenerates\n// this file \u2014 `yarn generate` rewrites `generated/` only for modules declared\n// `from: '@app'`. And it is not merely a typecheck aid: because\n// `@open-mercato/core` installs as a real directory rather than a workspace\n// symlink, `@open-mercato/cli` runs in STANDALONE mode, where\n// `loadStandaloneGeneratedPackageEntities()` reads THIS file as the package's\n// entity list and uses it INSTEAD of parsing `data/entities.ts`.\n//\n// An entity missing here is therefore missing from the host app's `E`, and `E`\n// is a runtime registry rather than a bag of types: it backs the custom-field\n// entity picker, query-index coverage and reindex, attachment assignment,\n// dashboard widget sources and encryption field resolution. The entity's table,\n// migrations and repositories keep working the whole time, which is why the\n// failure reads as \"the feature was never built\" instead of as an error.\n//\n// One key per exported class in `data/entities.ts`, keyed `toSnake(ClassName)`\n// with NO pluralisation \u2014 `InvoiceOrderLine` is `invoice_order_line`, never the\n// `tableName`. Namespaces for OTHER modules are typecheck-only; the generator\n// reads `E['<this module id>']` and ignores the rest.\n//\n// The mechanism in full, and the guard that fails the gate when this file and\n// `data/entities.ts` drift apart:\n// `apps/web/src/__tests__/entity-ids-registry-contract.test.ts`.\n\nexport const M = {\n shipment_tracking: 'shipment_tracking',\n} as const\n\nexport const E = {\n shipment_tracking: {\n tracking_job: 'shipment_tracking:tracking_job',\n shipment: 'shipment_tracking:shipment',\n tracking_event: 'shipment_tracking:tracking_event',\n carrier_config: 'shipment_tracking:carrier_config',\n bic_config: 'shipment_tracking:bic_config',\n shipsgo_config: 'shipment_tracking:shipsgo_config',\n webhook: 'shipment_tracking:webhook',\n location_override: 'shipment_tracking:location_override',\n webhook_delivery: 'shipment_tracking:webhook_delivery',\n },\n} as const\n\nexport type KnownModuleId = keyof typeof M\nexport type KnownEntities = typeof E\n"],
5
+ "mappings": "AA2BO,MAAM,IAAI;AAAA,EACf,mBAAmB;AACrB;AAEO,MAAM,IAAI;AAAA,EACf,mBAAmB;AAAA,IACjB,cAAc;AAAA,IACd,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,SAAS;AAAA,IACT,mBAAmB;AAAA,IACnB,kBAAkB;AAAA,EACpB;AACF;",
6
+ "names": []
7
+ }
package/dist/index.js ADDED
@@ -0,0 +1,41 @@
1
+ import {
2
+ Shipment,
3
+ TrackingJob,
4
+ TrackingEvent,
5
+ CarrierConfig,
6
+ Webhook,
7
+ WebhookDelivery
8
+ } from "./modules/shipment_tracking/data/entities.js";
9
+ import { deriveShipmentStatus } from "./modules/shipment_tracking/lib/status-machine.js";
10
+ import { extractShipmentTimes } from "./modules/shipment_tracking/lib/time-extraction.js";
11
+ import {
12
+ getLatestTimestamp,
13
+ getPrimaryTimestampValue,
14
+ getPrimaryTimestampOffset,
15
+ createTimestampEntry,
16
+ addTimestampEntry,
17
+ mergeExtractedTimestamps,
18
+ hasTimestamps,
19
+ getTimestampsBySource,
20
+ getTimestampHistory
21
+ } from "./modules/shipment_tracking/lib/timestamp-utils.js";
22
+ export {
23
+ CarrierConfig,
24
+ Shipment,
25
+ TrackingEvent,
26
+ TrackingJob,
27
+ Webhook,
28
+ WebhookDelivery,
29
+ addTimestampEntry,
30
+ createTimestampEntry,
31
+ deriveShipmentStatus,
32
+ extractShipmentTimes,
33
+ getLatestTimestamp,
34
+ getPrimaryTimestampOffset,
35
+ getPrimaryTimestampValue,
36
+ getTimestampHistory,
37
+ getTimestampsBySource,
38
+ hasTimestamps,
39
+ mergeExtractedTimestamps
40
+ };
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["/**\n * @freighttech/shipment-tracking\n *\n * Ocean container shipment tracking with pluggable carrier adapters and webhooks\n */\n\nexport {\n Shipment,\n TrackingJob,\n TrackingEvent,\n CarrierConfig,\n Webhook,\n WebhookDelivery,\n} from './modules/shipment_tracking/data/entities'\n\nexport type {\n ShipmentTimestampEntry,\n TimestampSource,\n TimestampType,\n} from './modules/shipment_tracking/data/entities'\n\nexport type { CarrierAdapter, CarrierAdapterTestResult } from './modules/shipment_tracking/lib/carrier-adapter'\nexport type { ShipmentStatus } from './modules/shipment_tracking/lib/status-machine'\nexport { deriveShipmentStatus } from './modules/shipment_tracking/lib/status-machine'\nexport { extractShipmentTimes } from './modules/shipment_tracking/lib/time-extraction'\n\n// Timestamp utilities for multi-source tracking\nexport {\n getLatestTimestamp,\n getPrimaryTimestampValue,\n getPrimaryTimestampOffset,\n createTimestampEntry,\n addTimestampEntry,\n mergeExtractedTimestamps,\n hasTimestamps,\n getTimestampsBySource,\n getTimestampHistory,\n} from './modules/shipment_tracking/lib/timestamp-utils'\nexport type { ComputedTimestamp } from './modules/shipment_tracking/lib/timestamp-utils'\n"],
5
+ "mappings": "AAMA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAUP,SAAS,4BAA4B;AACrC,SAAS,4BAA4B;AAGrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;",
6
+ "names": []
7
+ }