@de./types 1.0.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 (531) hide show
  1. package/dist/api.d.ts +113 -0
  2. package/dist/api.d.ts.map +1 -0
  3. package/dist/api.js +92 -0
  4. package/dist/api.js.map +1 -0
  5. package/dist/auth.d.ts +109 -0
  6. package/dist/auth.d.ts.map +1 -0
  7. package/dist/auth.js +80 -0
  8. package/dist/auth.js.map +1 -0
  9. package/dist/aux/agent-rvs.d.ts +1205 -0
  10. package/dist/aux/agent-rvs.d.ts.map +1 -0
  11. package/dist/aux/agent-rvs.js +444 -0
  12. package/dist/aux/agent-rvs.js.map +1 -0
  13. package/dist/aux/agents.d.ts +1573 -0
  14. package/dist/aux/agents.d.ts.map +1 -0
  15. package/dist/aux/agents.js +487 -0
  16. package/dist/aux/agents.js.map +1 -0
  17. package/dist/aux/customer-rvs.d.ts +711 -0
  18. package/dist/aux/customer-rvs.d.ts.map +1 -0
  19. package/dist/aux/customer-rvs.js +321 -0
  20. package/dist/aux/customer-rvs.js.map +1 -0
  21. package/dist/aux/customers.d.ts +379 -0
  22. package/dist/aux/customers.d.ts.map +1 -0
  23. package/dist/aux/customers.js +67 -0
  24. package/dist/aux/customers.js.map +1 -0
  25. package/dist/aux/index.d.ts +5 -0
  26. package/dist/aux/index.d.ts.map +1 -0
  27. package/dist/aux/index.js +21 -0
  28. package/dist/aux/index.js.map +1 -0
  29. package/dist/billing.d.ts +367 -0
  30. package/dist/billing.d.ts.map +1 -0
  31. package/dist/billing.js +308 -0
  32. package/dist/billing.js.map +1 -0
  33. package/dist/bucket.d.ts +97 -0
  34. package/dist/bucket.d.ts.map +1 -0
  35. package/dist/bucket.js +52 -0
  36. package/dist/bucket.js.map +1 -0
  37. package/dist/context.d.ts +148 -0
  38. package/dist/context.d.ts.map +1 -0
  39. package/dist/context.js +148 -0
  40. package/dist/context.js.map +1 -0
  41. package/dist/csp/analytics.d.ts +270 -0
  42. package/dist/csp/analytics.d.ts.map +1 -0
  43. package/dist/csp/analytics.js +185 -0
  44. package/dist/csp/analytics.js.map +1 -0
  45. package/dist/csp/base.d.ts +11 -0
  46. package/dist/csp/base.d.ts.map +1 -0
  47. package/dist/csp/base.js +17 -0
  48. package/dist/csp/base.js.map +1 -0
  49. package/dist/csp/index.d.ts +107 -0
  50. package/dist/csp/index.d.ts.map +1 -0
  51. package/dist/csp/index.js +48 -0
  52. package/dist/csp/index.js.map +1 -0
  53. package/dist/csp/inventory.d.ts +361 -0
  54. package/dist/csp/inventory.d.ts.map +1 -0
  55. package/dist/csp/inventory.js +267 -0
  56. package/dist/csp/inventory.js.map +1 -0
  57. package/dist/csp/order.d.ts +1457 -0
  58. package/dist/csp/order.d.ts.map +1 -0
  59. package/dist/csp/order.js +367 -0
  60. package/dist/csp/order.js.map +1 -0
  61. package/dist/csp/webhook.d.ts +381 -0
  62. package/dist/csp/webhook.d.ts.map +1 -0
  63. package/dist/csp/webhook.js +207 -0
  64. package/dist/csp/webhook.js.map +1 -0
  65. package/dist/de.profile.d.ts +411 -0
  66. package/dist/de.profile.d.ts.map +1 -0
  67. package/dist/de.profile.js +98 -0
  68. package/dist/de.profile.js.map +1 -0
  69. package/dist/dev/developer.d.ts +211 -0
  70. package/dist/dev/developer.d.ts.map +1 -0
  71. package/dist/dev/developer.js +55 -0
  72. package/dist/dev/developer.js.map +1 -0
  73. package/dist/dev/index.d.ts +133 -0
  74. package/dist/dev/index.d.ts.map +1 -0
  75. package/dist/dev/index.js +79 -0
  76. package/dist/dev/index.js.map +1 -0
  77. package/dist/entity.d.ts +159 -0
  78. package/dist/entity.d.ts.map +1 -0
  79. package/dist/entity.js +127 -0
  80. package/dist/entity.js.map +1 -0
  81. package/dist/events.d.ts +1844 -0
  82. package/dist/events.d.ts.map +1 -0
  83. package/dist/events.js +303 -0
  84. package/dist/events.js.map +1 -0
  85. package/dist/faq.d.ts +60 -0
  86. package/dist/faq.d.ts.map +1 -0
  87. package/dist/faq.js +31 -0
  88. package/dist/faq.js.map +1 -0
  89. package/dist/geo.d.ts +123 -0
  90. package/dist/geo.d.ts.map +1 -0
  91. package/dist/geo.js +87 -0
  92. package/dist/geo.js.map +1 -0
  93. package/dist/index.d.ts +28 -0
  94. package/dist/index.d.ts.map +1 -0
  95. package/dist/index.js +59 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/inventory.d.ts +1347 -0
  98. package/dist/inventory.d.ts.map +1 -0
  99. package/dist/inventory.js +356 -0
  100. package/dist/inventory.js.map +1 -0
  101. package/dist/invoice.d.ts +46 -0
  102. package/dist/invoice.d.ts.map +1 -0
  103. package/dist/invoice.js +33 -0
  104. package/dist/invoice.js.map +1 -0
  105. package/dist/iotsp/device.d.ts +581 -0
  106. package/dist/iotsp/device.d.ts.map +1 -0
  107. package/dist/iotsp/device.js +277 -0
  108. package/dist/iotsp/device.js.map +1 -0
  109. package/dist/iotsp/index.d.ts +111 -0
  110. package/dist/iotsp/index.d.ts.map +1 -0
  111. package/dist/iotsp/index.js +76 -0
  112. package/dist/iotsp/index.js.map +1 -0
  113. package/dist/iotsp/rule.d.ts +340 -0
  114. package/dist/iotsp/rule.d.ts.map +1 -0
  115. package/dist/iotsp/rule.js +172 -0
  116. package/dist/iotsp/rule.js.map +1 -0
  117. package/dist/iotsp/topic.d.ts +249 -0
  118. package/dist/iotsp/topic.d.ts.map +1 -0
  119. package/dist/iotsp/topic.js +139 -0
  120. package/dist/iotsp/topic.js.map +1 -0
  121. package/dist/lsp/carrier/analytics.d.ts +1191 -0
  122. package/dist/lsp/carrier/analytics.d.ts.map +1 -0
  123. package/dist/lsp/carrier/analytics.js +354 -0
  124. package/dist/lsp/carrier/analytics.js.map +1 -0
  125. package/dist/lsp/carrier/capabilities.d.ts +3603 -0
  126. package/dist/lsp/carrier/capabilities.d.ts.map +1 -0
  127. package/dist/lsp/carrier/capabilities.js +880 -0
  128. package/dist/lsp/carrier/capabilities.js.map +1 -0
  129. package/dist/lsp/carrier/capacities.d.ts +4436 -0
  130. package/dist/lsp/carrier/capacities.d.ts.map +1 -0
  131. package/dist/lsp/carrier/capacities.js +615 -0
  132. package/dist/lsp/carrier/capacities.js.map +1 -0
  133. package/dist/lsp/carrier/index.d.ts +734 -0
  134. package/dist/lsp/carrier/index.d.ts.map +1 -0
  135. package/dist/lsp/carrier/index.js +150 -0
  136. package/dist/lsp/carrier/index.js.map +1 -0
  137. package/dist/lsp/carrier/performance.d.ts +567 -0
  138. package/dist/lsp/carrier/performance.d.ts.map +1 -0
  139. package/dist/lsp/carrier/performance.js +127 -0
  140. package/dist/lsp/carrier/performance.js.map +1 -0
  141. package/dist/lsp/carrier/utilities.d.ts +6671 -0
  142. package/dist/lsp/carrier/utilities.d.ts.map +1 -0
  143. package/dist/lsp/carrier/utilities.js +597 -0
  144. package/dist/lsp/carrier/utilities.js.map +1 -0
  145. package/dist/lsp/consolidation.d.ts +793 -0
  146. package/dist/lsp/consolidation.d.ts.map +1 -0
  147. package/dist/lsp/consolidation.js +343 -0
  148. package/dist/lsp/consolidation.js.map +1 -0
  149. package/dist/lsp/coverage.d.ts +7449 -0
  150. package/dist/lsp/coverage.d.ts.map +1 -0
  151. package/dist/lsp/coverage.js +706 -0
  152. package/dist/lsp/coverage.js.map +1 -0
  153. package/dist/lsp/fleet/index.d.ts +1128 -0
  154. package/dist/lsp/fleet/index.d.ts.map +1 -0
  155. package/dist/lsp/fleet/index.js +269 -0
  156. package/dist/lsp/fleet/index.js.map +1 -0
  157. package/dist/lsp/fleet/maintenance.d.ts +2022 -0
  158. package/dist/lsp/fleet/maintenance.d.ts.map +1 -0
  159. package/dist/lsp/fleet/maintenance.js +386 -0
  160. package/dist/lsp/fleet/maintenance.js.map +1 -0
  161. package/dist/lsp/fleet/parking.d.ts +2043 -0
  162. package/dist/lsp/fleet/parking.d.ts.map +1 -0
  163. package/dist/lsp/fleet/parking.js +458 -0
  164. package/dist/lsp/fleet/parking.js.map +1 -0
  165. package/dist/lsp/fleet/vehicle.d.ts +783 -0
  166. package/dist/lsp/fleet/vehicle.d.ts.map +1 -0
  167. package/dist/lsp/fleet/vehicle.js +314 -0
  168. package/dist/lsp/fleet/vehicle.js.map +1 -0
  169. package/dist/lsp/graph.d.ts +212 -0
  170. package/dist/lsp/graph.d.ts.map +1 -0
  171. package/dist/lsp/graph.js +92 -0
  172. package/dist/lsp/graph.js.map +1 -0
  173. package/dist/lsp/hub/analytics.d.ts +4294 -0
  174. package/dist/lsp/hub/analytics.d.ts.map +1 -0
  175. package/dist/lsp/hub/analytics.js +219 -0
  176. package/dist/lsp/hub/analytics.js.map +1 -0
  177. package/dist/lsp/hub/capabilities.d.ts +1467 -0
  178. package/dist/lsp/hub/capabilities.d.ts.map +1 -0
  179. package/dist/lsp/hub/capabilities.js +464 -0
  180. package/dist/lsp/hub/capabilities.js.map +1 -0
  181. package/dist/lsp/hub/capacities.d.ts +4278 -0
  182. package/dist/lsp/hub/capacities.d.ts.map +1 -0
  183. package/dist/lsp/hub/capacities.js +495 -0
  184. package/dist/lsp/hub/capacities.js.map +1 -0
  185. package/dist/lsp/hub/index.d.ts +2784 -0
  186. package/dist/lsp/hub/index.d.ts.map +1 -0
  187. package/dist/lsp/hub/index.js +268 -0
  188. package/dist/lsp/hub/index.js.map +1 -0
  189. package/dist/lsp/hub/performance.d.ts +391 -0
  190. package/dist/lsp/hub/performance.d.ts.map +1 -0
  191. package/dist/lsp/hub/performance.js +78 -0
  192. package/dist/lsp/hub/performance.js.map +1 -0
  193. package/dist/lsp/hub/utilities.d.ts +2996 -0
  194. package/dist/lsp/hub/utilities.d.ts.map +1 -0
  195. package/dist/lsp/hub/utilities.js +521 -0
  196. package/dist/lsp/hub/utilities.js.map +1 -0
  197. package/dist/lsp/index.d.ts +157 -0
  198. package/dist/lsp/index.d.ts.map +1 -0
  199. package/dist/lsp/index.js +121 -0
  200. package/dist/lsp/index.js.map +1 -0
  201. package/dist/lsp/operations.d.ts +563 -0
  202. package/dist/lsp/operations.d.ts.map +1 -0
  203. package/dist/lsp/operations.js +265 -0
  204. package/dist/lsp/operations.js.map +1 -0
  205. package/dist/lsp/order/delivery.d.ts +1119 -0
  206. package/dist/lsp/order/delivery.d.ts.map +1 -0
  207. package/dist/lsp/order/delivery.js +169 -0
  208. package/dist/lsp/order/delivery.js.map +1 -0
  209. package/dist/lsp/order/flow/processes.d.ts +8 -0
  210. package/dist/lsp/order/flow/processes.d.ts.map +1 -0
  211. package/dist/lsp/order/flow/processes.js +67 -0
  212. package/dist/lsp/order/flow/processes.js.map +1 -0
  213. package/dist/lsp/order/flow/stages.d.ts +8 -0
  214. package/dist/lsp/order/flow/stages.d.ts.map +1 -0
  215. package/dist/lsp/order/flow/stages.js +111 -0
  216. package/dist/lsp/order/flow/stages.js.map +1 -0
  217. package/dist/lsp/order/inbound.d.ts +1165 -0
  218. package/dist/lsp/order/inbound.d.ts.map +1 -0
  219. package/dist/lsp/order/inbound.js +185 -0
  220. package/dist/lsp/order/inbound.js.map +1 -0
  221. package/dist/lsp/order/internal.d.ts +1404 -0
  222. package/dist/lsp/order/internal.d.ts.map +1 -0
  223. package/dist/lsp/order/internal.js +255 -0
  224. package/dist/lsp/order/internal.js.map +1 -0
  225. package/dist/lsp/order/management.d.ts +541 -0
  226. package/dist/lsp/order/management.d.ts.map +1 -0
  227. package/dist/lsp/order/management.js +326 -0
  228. package/dist/lsp/order/management.js.map +1 -0
  229. package/dist/lsp/order/outbound.d.ts +909 -0
  230. package/dist/lsp/order/outbound.d.ts.map +1 -0
  231. package/dist/lsp/order/outbound.js +105 -0
  232. package/dist/lsp/order/outbound.js.map +1 -0
  233. package/dist/lsp/order/passthrough.d.ts +1816 -0
  234. package/dist/lsp/order/passthrough.d.ts.map +1 -0
  235. package/dist/lsp/order/passthrough.js +360 -0
  236. package/dist/lsp/order/passthrough.js.map +1 -0
  237. package/dist/lsp/order/ride.d.ts +1056 -0
  238. package/dist/lsp/order/ride.d.ts.map +1 -0
  239. package/dist/lsp/order/ride.js +166 -0
  240. package/dist/lsp/order/ride.js.map +1 -0
  241. package/dist/lsp/order/shipping.d.ts +1524 -0
  242. package/dist/lsp/order/shipping.d.ts.map +1 -0
  243. package/dist/lsp/order/shipping.js +223 -0
  244. package/dist/lsp/order/shipping.js.map +1 -0
  245. package/dist/lsp/performance.d.ts +2 -0
  246. package/dist/lsp/performance.d.ts.map +1 -0
  247. package/dist/lsp/performance.js +3 -0
  248. package/dist/lsp/performance.js.map +1 -0
  249. package/dist/lsp/pod/index.d.ts +805 -0
  250. package/dist/lsp/pod/index.d.ts.map +1 -0
  251. package/dist/lsp/pod/index.js +250 -0
  252. package/dist/lsp/pod/index.js.map +1 -0
  253. package/dist/lsp/pricing.d.ts +1811 -0
  254. package/dist/lsp/pricing.d.ts.map +1 -0
  255. package/dist/lsp/pricing.js +972 -0
  256. package/dist/lsp/pricing.js.map +1 -0
  257. package/dist/lsp/processing.d.ts +893 -0
  258. package/dist/lsp/processing.d.ts.map +1 -0
  259. package/dist/lsp/processing.js +202 -0
  260. package/dist/lsp/processing.js.map +1 -0
  261. package/dist/lsp/product.d.ts +76 -0
  262. package/dist/lsp/product.d.ts.map +1 -0
  263. package/dist/lsp/product.js +3 -0
  264. package/dist/lsp/product.js.map +1 -0
  265. package/dist/lsp/psl.d.ts +785 -0
  266. package/dist/lsp/psl.d.ts.map +1 -0
  267. package/dist/lsp/psl.js +333 -0
  268. package/dist/lsp/psl.js.map +1 -0
  269. package/dist/lsp/terminal/analytics.d.ts +278 -0
  270. package/dist/lsp/terminal/analytics.d.ts.map +1 -0
  271. package/dist/lsp/terminal/analytics.js +310 -0
  272. package/dist/lsp/terminal/analytics.js.map +1 -0
  273. package/dist/lsp/terminal/capabilities.d.ts +797 -0
  274. package/dist/lsp/terminal/capabilities.d.ts.map +1 -0
  275. package/dist/lsp/terminal/capabilities.js +506 -0
  276. package/dist/lsp/terminal/capabilities.js.map +1 -0
  277. package/dist/lsp/terminal/capacities.d.ts +3152 -0
  278. package/dist/lsp/terminal/capacities.d.ts.map +1 -0
  279. package/dist/lsp/terminal/capacities.js +504 -0
  280. package/dist/lsp/terminal/capacities.js.map +1 -0
  281. package/dist/lsp/terminal/index.d.ts +1056 -0
  282. package/dist/lsp/terminal/index.d.ts.map +1 -0
  283. package/dist/lsp/terminal/index.js +394 -0
  284. package/dist/lsp/terminal/index.js.map +1 -0
  285. package/dist/lsp/terminal/performance.d.ts +955 -0
  286. package/dist/lsp/terminal/performance.d.ts.map +1 -0
  287. package/dist/lsp/terminal/performance.js +159 -0
  288. package/dist/lsp/terminal/performance.js.map +1 -0
  289. package/dist/lsp/terminal/utilities.d.ts +2374 -0
  290. package/dist/lsp/terminal/utilities.d.ts.map +1 -0
  291. package/dist/lsp/terminal/utilities.js +161 -0
  292. package/dist/lsp/terminal/utilities.js.map +1 -0
  293. package/dist/lsp/warehouse/analytics.d.ts +3088 -0
  294. package/dist/lsp/warehouse/analytics.d.ts.map +1 -0
  295. package/dist/lsp/warehouse/analytics.js +229 -0
  296. package/dist/lsp/warehouse/analytics.js.map +1 -0
  297. package/dist/lsp/warehouse/capabilities.d.ts +1384 -0
  298. package/dist/lsp/warehouse/capabilities.d.ts.map +1 -0
  299. package/dist/lsp/warehouse/capabilities.js +567 -0
  300. package/dist/lsp/warehouse/capabilities.js.map +1 -0
  301. package/dist/lsp/warehouse/capacities.d.ts +2921 -0
  302. package/dist/lsp/warehouse/capacities.d.ts.map +1 -0
  303. package/dist/lsp/warehouse/capacities.js +450 -0
  304. package/dist/lsp/warehouse/capacities.js.map +1 -0
  305. package/dist/lsp/warehouse/index.d.ts +2566 -0
  306. package/dist/lsp/warehouse/index.d.ts.map +1 -0
  307. package/dist/lsp/warehouse/index.js +264 -0
  308. package/dist/lsp/warehouse/index.js.map +1 -0
  309. package/dist/lsp/warehouse/performance.d.ts +287 -0
  310. package/dist/lsp/warehouse/performance.d.ts.map +1 -0
  311. package/dist/lsp/warehouse/performance.js +72 -0
  312. package/dist/lsp/warehouse/performance.js.map +1 -0
  313. package/dist/lsp/warehouse/utilities.d.ts +5174 -0
  314. package/dist/lsp/warehouse/utilities.d.ts.map +1 -0
  315. package/dist/lsp/warehouse/utilities.js +588 -0
  316. package/dist/lsp/warehouse/utilities.js.map +1 -0
  317. package/dist/lsp/zones.d.ts +305 -0
  318. package/dist/lsp/zones.d.ts.map +1 -0
  319. package/dist/lsp/zones.js +118 -0
  320. package/dist/lsp/zones.js.map +1 -0
  321. package/dist/measure.d.ts +139 -0
  322. package/dist/measure.d.ts.map +1 -0
  323. package/dist/measure.js +190 -0
  324. package/dist/measure.js.map +1 -0
  325. package/dist/operator.d.ts +103 -0
  326. package/dist/operator.d.ts.map +1 -0
  327. package/dist/operator.js +38 -0
  328. package/dist/operator.js.map +1 -0
  329. package/dist/order.d.ts +2739 -0
  330. package/dist/order.d.ts.map +1 -0
  331. package/dist/order.js +1078 -0
  332. package/dist/order.js.map +1 -0
  333. package/dist/realm/index.d.ts +4 -0
  334. package/dist/realm/index.d.ts.map +1 -0
  335. package/dist/realm/index.js +20 -0
  336. package/dist/realm/index.js.map +1 -0
  337. package/dist/realm/pipelines.d.ts +32567 -0
  338. package/dist/realm/pipelines.d.ts.map +1 -0
  339. package/dist/realm/pipelines.js +1273 -0
  340. package/dist/realm/pipelines.js.map +1 -0
  341. package/dist/realm/queries.d.ts +1327 -0
  342. package/dist/realm/queries.d.ts.map +1 -0
  343. package/dist/realm/queries.js +456 -0
  344. package/dist/realm/queries.js.map +1 -0
  345. package/dist/realm/utilities.d.ts +1794 -0
  346. package/dist/realm/utilities.d.ts.map +1 -0
  347. package/dist/realm/utilities.js +594 -0
  348. package/dist/realm/utilities.js.map +1 -0
  349. package/dist/routing.d.ts +428 -0
  350. package/dist/routing.d.ts.map +1 -0
  351. package/dist/routing.js +60 -0
  352. package/dist/routing.js.map +1 -0
  353. package/dist/service.d.ts +264 -0
  354. package/dist/service.d.ts.map +1 -0
  355. package/dist/service.js +60 -0
  356. package/dist/service.js.map +1 -0
  357. package/dist/shared/access.d.ts +102 -0
  358. package/dist/shared/access.d.ts.map +1 -0
  359. package/dist/shared/access.js +30 -0
  360. package/dist/shared/access.js.map +1 -0
  361. package/dist/shared/account.d.ts +44 -0
  362. package/dist/shared/account.d.ts.map +1 -0
  363. package/dist/shared/account.js +15 -0
  364. package/dist/shared/account.js.map +1 -0
  365. package/dist/shared/auth.d.ts +45 -0
  366. package/dist/shared/auth.d.ts.map +1 -0
  367. package/dist/shared/auth.js +19 -0
  368. package/dist/shared/auth.js.map +1 -0
  369. package/dist/shared/bucket.d.ts +294 -0
  370. package/dist/shared/bucket.d.ts.map +1 -0
  371. package/dist/shared/bucket.js +79 -0
  372. package/dist/shared/bucket.js.map +1 -0
  373. package/dist/shared/faq.d.ts +280 -0
  374. package/dist/shared/faq.d.ts.map +1 -0
  375. package/dist/shared/faq.js +73 -0
  376. package/dist/shared/faq.js.map +1 -0
  377. package/dist/shared/index.d.ts +10 -0
  378. package/dist/shared/index.d.ts.map +1 -0
  379. package/dist/shared/index.js +26 -0
  380. package/dist/shared/index.js.map +1 -0
  381. package/dist/shared/invitation.d.ts +1525 -0
  382. package/dist/shared/invitation.d.ts.map +1 -0
  383. package/dist/shared/invitation.js +60 -0
  384. package/dist/shared/invitation.js.map +1 -0
  385. package/dist/shared/operator.d.ts +956 -0
  386. package/dist/shared/operator.d.ts.map +1 -0
  387. package/dist/shared/operator.js +48 -0
  388. package/dist/shared/operator.js.map +1 -0
  389. package/dist/shared/tracking.d.ts +31 -0
  390. package/dist/shared/tracking.d.ts.map +1 -0
  391. package/dist/shared/tracking.js +23 -0
  392. package/dist/shared/tracking.js.map +1 -0
  393. package/dist/shared/user.d.ts +77 -0
  394. package/dist/shared/user.d.ts.map +1 -0
  395. package/dist/shared/user.js +22 -0
  396. package/dist/shared/user.js.map +1 -0
  397. package/dist/sync.d.ts +539 -0
  398. package/dist/sync.d.ts.map +1 -0
  399. package/dist/sync.js +329 -0
  400. package/dist/sync.js.map +1 -0
  401. package/dist/time.d.ts +139 -0
  402. package/dist/time.d.ts.map +1 -0
  403. package/dist/time.js +93 -0
  404. package/dist/time.js.map +1 -0
  405. package/dist/user.d.ts +394 -0
  406. package/dist/user.d.ts.map +1 -0
  407. package/dist/user.js +205 -0
  408. package/dist/user.js.map +1 -0
  409. package/dist/workspace/admin.d.ts +91 -0
  410. package/dist/workspace/admin.d.ts.map +1 -0
  411. package/dist/workspace/admin.js +33 -0
  412. package/dist/workspace/admin.js.map +1 -0
  413. package/dist/workspace/billing.d.ts +2 -0
  414. package/dist/workspace/billing.d.ts.map +1 -0
  415. package/dist/workspace/billing.js +18 -0
  416. package/dist/workspace/billing.js.map +1 -0
  417. package/dist/workspace/connector.d.ts +595 -0
  418. package/dist/workspace/connector.d.ts.map +1 -0
  419. package/dist/workspace/connector.js +229 -0
  420. package/dist/workspace/connector.js.map +1 -0
  421. package/dist/workspace/index.d.ts +36 -0
  422. package/dist/workspace/index.d.ts.map +1 -0
  423. package/dist/workspace/index.js +21 -0
  424. package/dist/workspace/index.js.map +1 -0
  425. package/package.json +70 -0
  426. package/src/api.ts +147 -0
  427. package/src/auth.ts +103 -0
  428. package/src/aux/agent-rvs.ts +596 -0
  429. package/src/aux/agents.ts +542 -0
  430. package/src/aux/customer-rvs.ts +421 -0
  431. package/src/aux/customers.ts +80 -0
  432. package/src/aux/index.ts +4 -0
  433. package/src/billing.ts +330 -0
  434. package/src/bucket.ts +58 -0
  435. package/src/context.ts +167 -0
  436. package/src/csp/analytics.ts +238 -0
  437. package/src/csp/base.ts +18 -0
  438. package/src/csp/index.ts +41 -0
  439. package/src/csp/inventory.ts +325 -0
  440. package/src/csp/order.ts +485 -0
  441. package/src/csp/webhook.ts +269 -0
  442. package/src/de.profile.ts +123 -0
  443. package/src/dev/developer.ts +90 -0
  444. package/src/dev/index.ts +81 -0
  445. package/src/entity.ts +154 -0
  446. package/src/events.ts +349 -0
  447. package/src/faq.ts +39 -0
  448. package/src/geo.ts +111 -0
  449. package/src/index.ts +48 -0
  450. package/src/inventory.ts +405 -0
  451. package/src/invoice.ts +37 -0
  452. package/src/iotsp/device.ts +334 -0
  453. package/src/iotsp/index.ts +91 -0
  454. package/src/iotsp/rule.ts +227 -0
  455. package/src/iotsp/topic.ts +191 -0
  456. package/src/lsp/carrier/analytics.ts +393 -0
  457. package/src/lsp/carrier/capabilities.ts +1009 -0
  458. package/src/lsp/carrier/capacities.ts +723 -0
  459. package/src/lsp/carrier/index.ts +175 -0
  460. package/src/lsp/carrier/performance.ts +145 -0
  461. package/src/lsp/carrier/utilities.ts +654 -0
  462. package/src/lsp/consolidation.ts +420 -0
  463. package/src/lsp/coverage.ts +869 -0
  464. package/src/lsp/fleet/index.ts +327 -0
  465. package/src/lsp/fleet/maintenance.ts +478 -0
  466. package/src/lsp/fleet/parking.ts +582 -0
  467. package/src/lsp/fleet/vehicle.ts +381 -0
  468. package/src/lsp/graph.ts +113 -0
  469. package/src/lsp/hub/analytics.ts +236 -0
  470. package/src/lsp/hub/capabilities.ts +549 -0
  471. package/src/lsp/hub/capacities.ts +590 -0
  472. package/src/lsp/hub/index.ts +298 -0
  473. package/src/lsp/hub/performance.ts +89 -0
  474. package/src/lsp/hub/utilities.ts +560 -0
  475. package/src/lsp/index.ts +125 -0
  476. package/src/lsp/operations.ts +304 -0
  477. package/src/lsp/order/delivery.ts +212 -0
  478. package/src/lsp/order/flow/processes.ts +70 -0
  479. package/src/lsp/order/flow/stages.ts +119 -0
  480. package/src/lsp/order/inbound.ts +231 -0
  481. package/src/lsp/order/internal.ts +305 -0
  482. package/src/lsp/order/management.ts +367 -0
  483. package/src/lsp/order/outbound.ts +128 -0
  484. package/src/lsp/order/passthrough.ts +434 -0
  485. package/src/lsp/order/ride.ts +190 -0
  486. package/src/lsp/order/shipping.ts +263 -0
  487. package/src/lsp/performance.ts +2 -0
  488. package/src/lsp/pod/index.ts +323 -0
  489. package/src/lsp/pricing.ts +1097 -0
  490. package/src/lsp/processing.ts +243 -0
  491. package/src/lsp/product.ts +104 -0
  492. package/src/lsp/psl.ts +399 -0
  493. package/src/lsp/terminal/analytics.ts +334 -0
  494. package/src/lsp/terminal/capabilities.ts +541 -0
  495. package/src/lsp/terminal/capacities.ts +556 -0
  496. package/src/lsp/terminal/index.ts +442 -0
  497. package/src/lsp/terminal/performance.ts +168 -0
  498. package/src/lsp/terminal/utilities.ts +173 -0
  499. package/src/lsp/warehouse/analytics.ts +248 -0
  500. package/src/lsp/warehouse/capabilities.ts +673 -0
  501. package/src/lsp/warehouse/capacities.ts +538 -0
  502. package/src/lsp/warehouse/index.ts +298 -0
  503. package/src/lsp/warehouse/performance.ts +83 -0
  504. package/src/lsp/warehouse/utilities.ts +634 -0
  505. package/src/lsp/zones.ts +148 -0
  506. package/src/measure.ts +240 -0
  507. package/src/operator.ts +39 -0
  508. package/src/order.ts +1207 -0
  509. package/src/realm/index.ts +3 -0
  510. package/src/realm/pipelines.ts +1607 -0
  511. package/src/realm/queries.ts +608 -0
  512. package/src/realm/utilities.ts +730 -0
  513. package/src/routing.ts +69 -0
  514. package/src/service.ts +66 -0
  515. package/src/shared/access.ts +58 -0
  516. package/src/shared/account.ts +25 -0
  517. package/src/shared/auth.ts +30 -0
  518. package/src/shared/bucket.ts +153 -0
  519. package/src/shared/faq.ts +139 -0
  520. package/src/shared/index.ts +9 -0
  521. package/src/shared/invitation.ts +124 -0
  522. package/src/shared/operator.ts +159 -0
  523. package/src/shared/tracking.ts +30 -0
  524. package/src/shared/user.ts +42 -0
  525. package/src/sync.ts +364 -0
  526. package/src/time.ts +113 -0
  527. package/src/user.ts +243 -0
  528. package/src/workspace/admin.ts +38 -0
  529. package/src/workspace/billing.ts +1 -0
  530. package/src/workspace/connector.ts +270 -0
  531. package/src/workspace/index.ts +22 -0
@@ -0,0 +1,1009 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import { ContextSchema } from '../../context'
3
+ import { PSLAccessibleSchema, PSLRestrictionSchema } from '../psl'
4
+ import { CoverageTransitModeSchema, CoverageTransitTypeSchema } from '../coverage'
5
+ import { DurationSchema, ActionRecordSchema } from '../../time'
6
+ import { DimensionsSchema, WeightSchema, VolumeSchema, MoneySchema, LengthSchema } from '../../measure'
7
+ import {
8
+ APIErrorSchema,
9
+ APIHeadersSchema,
10
+ APIResponseBaseSchema,
11
+ APIResponseDataSchemaFactory
12
+ } from '../../api'
13
+
14
+ // Core transportation capabilities
15
+ export const CarrierTransportCapabilitySchema = Type.Object({
16
+ type: Type.Literal('TRANSPORT'),
17
+ serviceId: Type.String(),
18
+ context: ContextSchema,
19
+
20
+ serviceTypes: Type.Array(Type.Union([
21
+ Type.Literal('STANDARD_DELIVERY'),
22
+ Type.Literal('EXPRESS_DELIVERY'),
23
+ Type.Literal('SAME_DAY_DELIVERY'),
24
+ Type.Literal('NEXT_DAY_DELIVERY'),
25
+ Type.Literal('TWO_DAY_DELIVERY'),
26
+ Type.Literal('ECONOMY_DELIVERY'),
27
+ Type.Literal('SCHEDULED_DELIVERY'),
28
+ Type.Literal('TIME_DEFINITE_DELIVERY'),
29
+ Type.Literal('WHITE_GLOVE_DELIVERY'),
30
+ Type.Literal('SIGNATURE_REQUIRED'),
31
+ Type.Literal('ADULT_SIGNATURE_REQUIRED'),
32
+ Type.Literal('DELIVERY_CONFIRMATION'),
33
+ Type.Literal('PROOF_OF_DELIVERY'),
34
+ Type.Literal('APPOINTMENT_DELIVERY'),
35
+ Type.Literal('INSIDE_DELIVERY'),
36
+ Type.Literal('THRESHOLD_DELIVERY'),
37
+ Type.Literal('ROOM_OF_CHOICE'),
38
+ Type.Literal('INSTALLATION_SERVICE'),
39
+ Type.Literal('ASSEMBLY_SERVICE'),
40
+ Type.Literal('UNPACKING_SERVICE'),
41
+ Type.Literal('DEBRIS_REMOVAL')
42
+ ])),
43
+
44
+ transportModes: Type.Array(CoverageTransitModeSchema),
45
+ routeTypes: Type.Array(CoverageTransitTypeSchema),
46
+
47
+ deliveryOptions: Type.Object({
48
+ doorToDoor: Type.Boolean(),
49
+ terminalToTerminal: Type.Boolean(),
50
+ doorToTerminal: Type.Boolean(),
51
+ terminalToDoor: Type.Boolean(),
52
+ pickupService: Type.Boolean(),
53
+ dropOffService: Type.Boolean(),
54
+ consolidatedDelivery: Type.Boolean(),
55
+ distributedDelivery: Type.Boolean(),
56
+ scheduledPickup: Type.Boolean(),
57
+ onDemandPickup: Type.Boolean(),
58
+ routeDelivery: Type.Boolean(),
59
+ dedicatedDelivery: Type.Boolean()
60
+ }),
61
+ transitCapabilities: Type.Object({
62
+ expeditedService: Type.Boolean(),
63
+ guaranteedService: Type.Boolean(),
64
+ timeWindowDelivery: Type.Boolean(),
65
+ appointmentDelivery: Type.Boolean(),
66
+ afterHoursDelivery: Type.Boolean(),
67
+ weekendDelivery: Type.Boolean(),
68
+ holidayDelivery: Type.Boolean(),
69
+ emergencyService: Type.Boolean(),
70
+ rushService: Type.Boolean(),
71
+ criticalShipments: Type.Boolean()
72
+ }),
73
+
74
+ created: ActionRecordSchema,
75
+ updated: Type.Optional(ActionRecordSchema)
76
+ })
77
+
78
+ // Fleet and equipment capabilities
79
+ export const CarrierFleetCapabilitySchema = Type.Object({
80
+ context: ContextSchema,
81
+ serviceId: Type.String(),
82
+ type: Type.Literal('FLEET'),
83
+
84
+ vehicleTypes: Type.Array(Type.Union([
85
+ Type.Literal('BICYCLE'),
86
+ Type.Literal('MOTORCYCLE'),
87
+ Type.Literal('SCOOTER'),
88
+ Type.Literal('VAN'),
89
+ Type.Literal('CARGO_VAN'),
90
+ Type.Literal('PICKUP_TRUCK'),
91
+ Type.Literal('BOX_TRUCK'),
92
+ Type.Literal('STRAIGHT_TRUCK'),
93
+ Type.Literal('TRACTOR_TRAILER'),
94
+ Type.Literal('SEMI_TRAILER'),
95
+ Type.Literal('DOUBLE_TRAILER'),
96
+ Type.Literal('TRIPLE_TRAILER'),
97
+ Type.Literal('FLATBED'),
98
+ Type.Literal('REFRIGERATED_TRUCK'),
99
+ Type.Literal('TANK_TRUCK'),
100
+ Type.Literal('CONTAINER_TRUCK'),
101
+ Type.Literal('CAR_CARRIER'),
102
+ Type.Literal('HEAVY_HAUL'),
103
+ Type.Literal('OVERSIZED_LOAD'),
104
+ Type.Literal('CRANE_TRUCK'),
105
+ Type.Literal('DUMP_TRUCK'),
106
+ Type.Literal('STEP_VAN'),
107
+ Type.Literal('DELIVERY_TRUCK'),
108
+ Type.Literal('DRONE'),
109
+ Type.Literal('AUTONOMOUS_VEHICLE'),
110
+ Type.Literal('ELECTRIC_VEHICLE'),
111
+ Type.Literal('HYBRID_VEHICLE')
112
+ ])),
113
+
114
+ fleetComposition: Type.Object({
115
+ ownedVehicles: Type.Number({ minimum: 0 }),
116
+ leasedVehicles: Type.Number({ minimum: 0 }),
117
+ contractorVehicles: Type.Number({ minimum: 0 }),
118
+ partnerVehicles: Type.Number({ minimum: 0 }),
119
+ totalFleetSize: Type.Number({ minimum: 0 }),
120
+ averageVehicleAge: DurationSchema, // Years
121
+ fleetUtilization: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
122
+ vehicleAvailability: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' })
123
+ }),
124
+
125
+ specialEquipment: Type.Object({
126
+ liftGate: Type.Boolean(),
127
+ ramp: Type.Boolean(),
128
+ crane: Type.Boolean(),
129
+ forklift: Type.Boolean(),
130
+ palletJack: Type.Boolean(),
131
+ dolly: Type.Boolean(),
132
+ straps: Type.Boolean(),
133
+ blankets: Type.Boolean(),
134
+ tarp: Type.Boolean(),
135
+ chains: Type.Boolean(),
136
+ refrigeration: Type.Boolean(),
137
+ heating: Type.Boolean(),
138
+ temperatureMonitoring: Type.Boolean(),
139
+ gpsTracking: Type.Boolean(),
140
+ securitySystems: Type.Boolean(),
141
+ cameraSystems: Type.Boolean(),
142
+ scanningEquipment: Type.Boolean(),
143
+ weighingEquipment: Type.Boolean(),
144
+ dimensioningEquipment: Type.Boolean()
145
+ }),
146
+
147
+ fuelTypes: Type.Array(Type.Union([
148
+ Type.Literal('GASOLINE'),
149
+ Type.Literal('DIESEL'),
150
+ Type.Literal('NATURAL_GAS'),
151
+ Type.Literal('PROPANE'),
152
+ Type.Literal('ELECTRIC'),
153
+ Type.Literal('HYBRID'),
154
+ Type.Literal('HYDROGEN'),
155
+ Type.Literal('BIODIESEL'),
156
+ Type.Literal('ETHANOL')
157
+ ])),
158
+
159
+ maintenanceCapability: Type.Object({
160
+ inHouseMaintenance: Type.Boolean(),
161
+ certifiedTechnicians: Type.Number({ minimum: 0 }),
162
+ maintenanceFacilities: Type.Number({ minimum: 0 }),
163
+ preventiveMaintenance: Type.Boolean(),
164
+ emergencyRepair: Type.Boolean(),
165
+ roadsideAssistance: Type.Boolean(),
166
+ partsInventory: Type.Boolean(),
167
+ maintenanceTracking: Type.Boolean(),
168
+ complianceMonitoring: Type.Boolean()
169
+ }),
170
+
171
+ created: ActionRecordSchema,
172
+ updated: Type.Optional(ActionRecordSchema)
173
+ })
174
+
175
+ // Package handling and cargo capabilities
176
+ export const CarrierHandlingCapabilitySchema = Type.Object({
177
+ context: ContextSchema,
178
+ serviceId: Type.String(),
179
+ type: Type.Literal('HANDLING'),
180
+
181
+ packageTypes: Type.Array(Type.Union([
182
+ Type.Literal('ENVELOPE'),
183
+ Type.Literal('LETTER'),
184
+ Type.Literal('DOCUMENT'),
185
+ Type.Literal('PAK'),
186
+ Type.Literal('BOX'),
187
+ Type.Literal('TUBE'),
188
+ Type.Literal('PALLET'),
189
+ Type.Literal('SKID'),
190
+ Type.Literal('CRATE'),
191
+ Type.Literal('CONTAINER'),
192
+ Type.Literal('BULK'),
193
+ Type.Literal('LIQUID'),
194
+ Type.Literal('FREIGHT'),
195
+ Type.Literal('LTL'),
196
+ Type.Literal('FTL'),
197
+ Type.Literal('IRREGULAR'),
198
+ Type.Literal('OVERSIZED'),
199
+ Type.Literal('OVERWEIGHT'),
200
+ Type.Literal('ROLL_ON_ROLL_OFF')
201
+ ])),
202
+
203
+ cargoSpecialties: Type.Array(Type.Union([
204
+ Type.Literal('GENERAL_CARGO'),
205
+ Type.Literal('FRAGILE_ITEMS'),
206
+ Type.Literal('HIGH_VALUE'),
207
+ Type.Literal('PERISHABLE'),
208
+ Type.Literal('FROZEN'),
209
+ Type.Literal('REFRIGERATED'),
210
+ Type.Literal('TEMPERATURE_CONTROLLED'),
211
+ Type.Literal('PHARMACEUTICAL'),
212
+ Type.Literal('MEDICAL_EQUIPMENT'),
213
+ Type.Literal('FOOD_GRADE'),
214
+ Type.Literal('BEVERAGE'),
215
+ Type.Literal('AUTOMOTIVE_PARTS'),
216
+ Type.Literal('ELECTRONICS'),
217
+ Type.Literal('TEXTILES'),
218
+ Type.Literal('FURNITURE'),
219
+ Type.Literal('APPLIANCES'),
220
+ Type.Literal('MACHINERY'),
221
+ Type.Literal('CONSTRUCTION_MATERIALS'),
222
+ Type.Literal('CHEMICALS'),
223
+ Type.Literal('PLASTICS'),
224
+ Type.Literal('METALS'),
225
+ Type.Literal('PAPER_PRODUCTS'),
226
+ Type.Literal('RETAIL_GOODS'),
227
+ Type.Literal('E_COMMERCE'),
228
+ Type.Literal('DOCUMENTS'),
229
+ Type.Literal('ARTWORK'),
230
+ Type.Literal('ANTIQUES'),
231
+ Type.Literal('JEWELRY'),
232
+ Type.Literal('LIVE_ANIMALS'),
233
+ Type.Literal('PLANTS'),
234
+ Type.Literal('HUMAN_REMAINS')
235
+ ])),
236
+
237
+ specialHandling: Type.Object({
238
+ supportedRestrictions: Type.Array(PSLRestrictionSchema),
239
+ fragileHandling: Type.Boolean(),
240
+ hazmatCertified: Type.Boolean(),
241
+ hazmatClasses: Type.Optional(Type.Array(Type.Union([
242
+ Type.Literal('CLASS_1_EXPLOSIVES'),
243
+ Type.Literal('CLASS_2_GASES'),
244
+ Type.Literal('CLASS_3_FLAMMABLE_LIQUIDS'),
245
+ Type.Literal('CLASS_4_FLAMMABLE_SOLIDS'),
246
+ Type.Literal('CLASS_5_OXIDIZERS'),
247
+ Type.Literal('CLASS_6_TOXIC'),
248
+ Type.Literal('CLASS_7_RADIOACTIVE'),
249
+ Type.Literal('CLASS_8_CORROSIVE'),
250
+ Type.Literal('CLASS_9_MISCELLANEOUS')
251
+ ]))),
252
+ temperatureControlled: Type.Boolean(),
253
+ climateControlled: Type.Boolean(),
254
+ secureTransport: Type.Boolean(),
255
+ chainOfCustody: Type.Boolean(),
256
+ whiteGloveService: Type.Boolean(),
257
+ insideDelivery: Type.Boolean(),
258
+ assemblyService: Type.Boolean(),
259
+ installationService: Type.Boolean(),
260
+ unpackingService: Type.Boolean(),
261
+ debrisRemoval: Type.Boolean(),
262
+ customsHandling: Type.Boolean(),
263
+ bonded: Type.Boolean()
264
+ }),
265
+
266
+ handlingLimits: Type.Object({
267
+ maxPackageWeight: WeightSchema,
268
+ maxPackageDimensions: DimensionsSchema,
269
+ maxPackageVolume: VolumeSchema,
270
+ maxPalletWeight: WeightSchema,
271
+ maxPalletDimensions: DimensionsSchema,
272
+ maxShipmentWeight: WeightSchema,
273
+ maxShipmentVolume: VolumeSchema,
274
+ maxShipmentValue: MoneySchema,
275
+ oversizedHandling: Type.Boolean(),
276
+ overweightHandling: Type.Boolean(),
277
+ irregularShapeHandling: Type.Boolean(),
278
+ longItemHandling: Type.Boolean(),
279
+ stackableOnly: Type.Boolean(),
280
+ orientationSensitive: Type.Boolean()
281
+ }),
282
+
283
+ loadingCapabilities: Type.Object({
284
+ loadingMethods: Type.Array(Type.Union([
285
+ Type.Literal('MANUAL_LOADING'),
286
+ Type.Literal('FORKLIFT'),
287
+ Type.Literal('PALLET_JACK'),
288
+ Type.Literal('CRANE'),
289
+ Type.Literal('CONVEYOR'),
290
+ Type.Literal('DOCK_LEVELER'),
291
+ Type.Literal('RAMP'),
292
+ Type.Literal('LIFT_GATE'),
293
+ Type.Literal('SIDE_LOADER'),
294
+ Type.Literal('TOP_LOADER'),
295
+ Type.Literal('REAR_LOADER')
296
+ ])),
297
+ maxLoadingHeight: LengthSchema,
298
+ dockAccess: Type.Boolean(),
299
+ curbsideAccess: Type.Boolean(),
300
+ residentialAccess: Type.Boolean(),
301
+ appointmentRequired: Type.Boolean(),
302
+ accessRestrictions: Type.Array(Type.String())
303
+ }),
304
+
305
+ accessibleBy: Type.Array(PSLAccessibleSchema),
306
+
307
+ created: ActionRecordSchema,
308
+ updated: Type.Optional(ActionRecordSchema)
309
+ })
310
+
311
+ // Coverage and routing capabilities
312
+ export const CarrierCoverageCapabilitySchema = Type.Object({
313
+ context: ContextSchema,
314
+ serviceId: Type.String(),
315
+ type: Type.Literal('COVERAGE'),
316
+
317
+ geography: Type.Object({
318
+ localService: Type.Boolean(),
319
+ regionalService: Type.Boolean(),
320
+ nationalService: Type.Boolean(),
321
+ internationalService: Type.Boolean(),
322
+ crossBorderService: Type.Boolean()
323
+ }),
324
+
325
+ routing: Type.Object({
326
+ routeOptimization: Type.Boolean(),
327
+ dynamicRouting: Type.Boolean(),
328
+ realTimeRerouting: Type.Boolean(),
329
+ multiStopOptimization: Type.Boolean(),
330
+ loadOptimization: Type.Boolean(),
331
+ timeWindowOptimization: Type.Boolean(),
332
+ trafficAvoidance: Type.Boolean(),
333
+ weatherRouting: Type.Boolean(),
334
+ fuelOptimization: Type.Boolean(),
335
+ emissionOptimization: Type.Boolean(),
336
+ costOptimization: Type.Boolean(),
337
+
338
+ constraints: Type.Object({
339
+ weightRestrictions: Type.Boolean(),
340
+ heightRestrictions: Type.Boolean(),
341
+ lengthRestrictions: Type.Boolean(),
342
+ tunnelRestrictions: Type.Boolean(),
343
+ bridgeRestrictions: Type.Boolean(),
344
+ hazmatRestrictions: Type.Boolean(),
345
+ timeRestrictions: Type.Boolean(),
346
+ seasonalRestrictions: Type.Boolean(),
347
+ permitRequired: Type.Boolean()
348
+ }),
349
+
350
+ specialRoutes: Type.Object({
351
+ dedicatedRoutes: Type.Boolean(),
352
+ expressRoutes: Type.Boolean(),
353
+ directRoutes: Type.Boolean(),
354
+ consolidatedRoutes: Type.Boolean(),
355
+ hubRoutes: Type.Boolean(),
356
+ shuttleRoutes: Type.Boolean(),
357
+ milkRunRoutes: Type.Boolean(),
358
+ backhaul: Type.Boolean(),
359
+ roundTrip: Type.Boolean()
360
+ })
361
+ }),
362
+
363
+ networkIntegration: Type.Object({
364
+ hubConnectivity: Type.Boolean(),
365
+ partnerCarriers: Type.Boolean(),
366
+ interlineAgreements: Type.Boolean(),
367
+ networkExtensions: Type.Boolean(),
368
+ lastMilePartners: Type.Boolean(),
369
+ internationalPartners: Type.Boolean(),
370
+ modalPartners: Type.Array(CoverageTransitModeSchema)
371
+ }),
372
+
373
+ created: ActionRecordSchema,
374
+ updated: Type.Optional(ActionRecordSchema)
375
+ })
376
+
377
+ // Technology and tracking capabilities
378
+ export const CarrierTechnologyCapabilitySchema = Type.Object({
379
+ context: ContextSchema,
380
+ serviceId: Type.String(),
381
+ type: Type.Literal('TECHNOLOGY'),
382
+
383
+ tracking: Type.Object({
384
+ technology: Type.Array(Type.Union([
385
+ Type.Literal('BARCODE'),
386
+ Type.Literal('QR_CODE'),
387
+ Type.Literal('RFID'),
388
+ Type.Literal('NFC'),
389
+ Type.Literal('GPS'),
390
+ Type.Literal('CELLULAR'),
391
+ Type.Literal('SATELLITE'),
392
+ Type.Literal('BLUETOOTH'),
393
+ Type.Literal('WIFI'),
394
+ Type.Literal('COMPUTER_VISION'),
395
+ Type.Literal('IOT_SENSORS'),
396
+ Type.Literal('TELEMATICS'),
397
+ Type.Literal('GEOFENCING')
398
+ ])),
399
+
400
+ frequency: Type.Union([
401
+ Type.Literal('REAL_TIME'),
402
+ Type.Literal('EVERY_MINUTE'),
403
+ Type.Literal('EVERY_5_MINUTES'),
404
+ Type.Literal('EVERY_15_MINUTES'),
405
+ Type.Literal('EVERY_30_MINUTES'),
406
+ Type.Literal('HOURLY'),
407
+ Type.Literal('ON_EVENT'),
408
+ Type.Literal('ON_SCAN')
409
+ ]),
410
+
411
+ events: Type.Array(Type.Union([
412
+ Type.Literal('PICKUP'),
413
+ Type.Literal('DEPARTURE'),
414
+ Type.Literal('IN_TRANSIT'),
415
+ Type.Literal('ARRIVAL'),
416
+ Type.Literal('DELIVERY'),
417
+ Type.Literal('ATTEMPTED_DELIVERY'),
418
+ Type.Literal('EXCEPTION'),
419
+ Type.Literal('DELAY'),
420
+ Type.Literal('REROUTE'),
421
+ Type.Literal('CUSTOMS_CLEARANCE'),
422
+ Type.Literal('PROOF_OF_DELIVERY'),
423
+ Type.Literal('RETURN'),
424
+ Type.Literal('DAMAGE'),
425
+ Type.Literal('TEMPERATURE_ALERT'),
426
+ Type.Literal('SECURITY_ALERT')
427
+ ])),
428
+
429
+ visibilityLevel: Type.Union([
430
+ Type.Literal('BASIC'),
431
+ Type.Literal('ENHANCED'),
432
+ Type.Literal('PREMIUM'),
433
+ Type.Literal('REAL_TIME'),
434
+ Type.Literal('PREDICTIVE')
435
+ ]),
436
+
437
+ proofOfDelivery: Type.Object({
438
+ signature: Type.Boolean(),
439
+ photo: Type.Boolean(),
440
+ timestamp: Type.Boolean(),
441
+ gpsLocation: Type.Boolean(),
442
+ barcodeScan: Type.Boolean(),
443
+ recipientName: Type.Boolean(),
444
+ deliveryNotes: Type.Boolean()
445
+ })
446
+ }),
447
+
448
+ communicationSystems: Type.Object({
449
+ driver: Type.Array(Type.Union([
450
+ Type.Literal('MOBILE_APP'),
451
+ Type.Literal('HANDHELD_DEVICE'),
452
+ Type.Literal('VEHICLE_TABLET'),
453
+ Type.Literal('TWO_WAY_RADIO'),
454
+ Type.Literal('CELLULAR_PHONE'),
455
+ Type.Literal('SATELLITE_PHONE'),
456
+ Type.Literal('DISPATCH_SYSTEM'),
457
+ Type.Literal('TEXT_MESSAGING'),
458
+ Type.Literal('VOICE_CALLS'),
459
+ Type.Literal('PUSH_NOTIFICATIONS')
460
+ ])),
461
+
462
+ customer: Type.Object({
463
+ pickupNotifications: Type.Boolean(),
464
+ deliveryNotifications: Type.Boolean(),
465
+ exceptionNotifications: Type.Boolean(),
466
+ proactiveAlerts: Type.Boolean(),
467
+ smsNotifications: Type.Boolean(),
468
+ emailNotifications: Type.Boolean(),
469
+ pushNotifications: Type.Boolean(),
470
+ webPortal: Type.Boolean(),
471
+ mobileApp: Type.Boolean(),
472
+ callCenter: Type.Boolean(),
473
+ chatSupport: Type.Boolean(),
474
+ multilingualSupport: Type.Boolean()
475
+ }),
476
+
477
+ integration: Type.Object({
478
+ apiAvailable: Type.Boolean(),
479
+ restfulApi: Type.Boolean(),
480
+ graphqlApi: Type.Boolean(),
481
+ webhooks: Type.Boolean(),
482
+ ediCapability: Type.Boolean(),
483
+ cloudIntegration: Type.Boolean(),
484
+ wmsIntegration: Type.Boolean(),
485
+ tmsIntegration: Type.Boolean(),
486
+ ecommerceIntegration: Type.Boolean(),
487
+ erpIntegration: Type.Boolean(),
488
+ customsIntegration: Type.Boolean(),
489
+ paymentIntegration: Type.Boolean()
490
+ })
491
+ }),
492
+
493
+ operationalSystems: Type.Object({
494
+ dispatchSystem: Type.Object({
495
+ automated: Type.Boolean(),
496
+ optimized: Type.Boolean(),
497
+ realTime: Type.Boolean(),
498
+ cloudBased: Type.Boolean(),
499
+ mobile: Type.Boolean()
500
+ }),
501
+
502
+ routeManagement: Type.Object({
503
+ routePlanning: Type.Boolean(),
504
+ routeOptimization: Type.Boolean(),
505
+ dynamicRouting: Type.Boolean(),
506
+ trafficIntegration: Type.Boolean(),
507
+ weatherIntegration: Type.Boolean()
508
+ }),
509
+
510
+ fleetManagement: Type.Object({
511
+ vehicleTracking: Type.Boolean(),
512
+ maintenanceScheduling: Type.Boolean(),
513
+ fuelManagement: Type.Boolean(),
514
+ driverManagement: Type.Boolean(),
515
+ complianceMonitoring: Type.Boolean(),
516
+ performanceAnalytics: Type.Boolean()
517
+ }),
518
+
519
+ documentManagement: Type.Object({
520
+ electronicBillOfLading: Type.Boolean(),
521
+ digitalPod: Type.Boolean(),
522
+ customsDocuments: Type.Boolean(),
523
+ invoiceGeneration: Type.Boolean(),
524
+ reportGeneration: Type.Boolean(),
525
+ documentStorage: Type.Boolean(),
526
+ auditTrail: Type.Boolean()
527
+ })
528
+ }),
529
+
530
+ created: ActionRecordSchema,
531
+ updated: Type.Optional(ActionRecordSchema)
532
+ })
533
+
534
+ // Service and quality capabilities
535
+ export const CarrierServiceCapabilitySchema = Type.Object({
536
+ context: ContextSchema,
537
+ serviceId: Type.String(),
538
+ type: Type.Literal('SERVICE'),
539
+
540
+ serviceStandards: Type.Object({
541
+ onTimePerformance: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
542
+ deliveryAccuracy: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
543
+ damageRate: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
544
+ lossRate: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
545
+ customerSatisfaction: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
546
+ complaintResolutionTime: DurationSchema,
547
+ firstAttemptDelivery: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
548
+ serviceRecovery: Type.Boolean()
549
+ }),
550
+
551
+ customerService: Type.Object({
552
+ customerPortal: Type.Boolean(),
553
+ mobileApp: Type.Boolean(),
554
+ trackingPortal: Type.Boolean(),
555
+ reportingPortal: Type.Boolean(),
556
+
557
+ supportChannels: Type.Array(Type.Union([
558
+ Type.Literal('PHONE'),
559
+ Type.Literal('EMAIL'),
560
+ Type.Literal('CHAT'),
561
+ Type.Literal('WEB_PORTAL'),
562
+ Type.Literal('MOBILE_APP'),
563
+ Type.Literal('SMS'),
564
+ Type.Literal('SOCIAL_MEDIA'),
565
+ Type.Literal('IN_PERSON')
566
+ ])),
567
+
568
+ supportHours: Type.Object({
569
+ hoursPerDay: Type.Number({ minimum: 0, maximum: 24 }),
570
+ daysPerWeek: Type.Number({ minimum: 0, maximum: 7 }),
571
+ holidaySupport: Type.Boolean(),
572
+ emergencySupport: Type.Boolean(),
573
+ multilingualSupport: Type.Boolean(),
574
+ dedicatedAccountManager: Type.Boolean()
575
+ }),
576
+
577
+ responseTime: Type.Object({
578
+ phoneResponse: DurationSchema,
579
+ emailResponse: DurationSchema,
580
+ chatResponse: DurationSchema,
581
+ emergencyResponse: DurationSchema,
582
+ complaintResponse: DurationSchema,
583
+ claimResponse: DurationSchema
584
+ })
585
+ }),
586
+
587
+ valueAddedServices: Type.Object({
588
+ packaging: Type.Boolean(),
589
+ labeling: Type.Boolean(),
590
+ sorting: Type.Boolean(),
591
+ consolidation: Type.Boolean(),
592
+ deconsolidation: Type.Boolean(),
593
+ crossDocking: Type.Boolean(),
594
+ warehouse: Type.Boolean(),
595
+ inventoryManagement: Type.Boolean(),
596
+ kitting: Type.Boolean(),
597
+ return: Type.Boolean(),
598
+ reverseLogistics: Type.Boolean(),
599
+ customsClearance: Type.Boolean(),
600
+ dutyPayment: Type.Boolean(),
601
+ insurance: Type.Boolean(),
602
+ cashOnDelivery: Type.Boolean(),
603
+ billAndHold: Type.Boolean(),
604
+ appointmentScheduling: Type.Boolean(),
605
+ notification: Type.Boolean(),
606
+ photo: Type.Boolean(),
607
+ sigature: Type.Boolean()
608
+ }),
609
+
610
+ qualityAssurance: Type.Object({
611
+ qualityManagementSystem: Type.Boolean(),
612
+ processDocumentation: Type.Boolean(),
613
+ trainingPrograms: Type.Boolean(),
614
+ performanceMonitoring: Type.Boolean(),
615
+ continuousImprovement: Type.Boolean(),
616
+ customerFeedback: Type.Boolean(),
617
+ auditPrograms: Type.Boolean(),
618
+ corrective: Type.Boolean(),
619
+ preventiveActions: Type.Boolean()
620
+ }),
621
+
622
+ created: ActionRecordSchema,
623
+ updated: Type.Optional(ActionRecordSchema)
624
+ })
625
+
626
+ // Compliance and regulatory capabilities
627
+ export const CarrierComplianceCapabilitySchema = Type.Object({
628
+ type: Type.Literal('COMPLIANCE'),
629
+ serviceId: Type.String(),
630
+ context: ContextSchema,
631
+
632
+ certifications: Type.Array(Type.Union([
633
+ Type.Literal('DOT_CERTIFIED'),
634
+ Type.Literal('MC_AUTHORITY'),
635
+ Type.Literal('ICC_REGISTRATION'),
636
+ Type.Literal('HAZMAT_CERTIFIED'),
637
+ Type.Literal('TSA_CERTIFIED'),
638
+ Type.Literal('C_TPAT'),
639
+ Type.Literal('AEO'),
640
+ Type.Literal('IATA'),
641
+ Type.Literal('IMDG'),
642
+ Type.Literal('ISO_9001'),
643
+ Type.Literal('ISO_14001'),
644
+ Type.Literal('ISO_45001'),
645
+ Type.Literal('TAPA'),
646
+ Type.Literal('GDP'),
647
+ Type.Literal('PHARMACEUTICAL'),
648
+ Type.Literal('FOOD_SAFETY'),
649
+ Type.Literal('ORGANIC_CERTIFIED'),
650
+ Type.Literal('FSSC_22000'),
651
+ Type.Literal('BRC'),
652
+ Type.Literal('SQF'),
653
+ Type.Literal('HALAL'),
654
+ Type.Literal('KOSHER'),
655
+ Type.Literal('CUSTOMS_BONDED'),
656
+ Type.Literal('FTZ_OPERATOR'),
657
+ Type.Literal('CARNET_ATA'),
658
+ Type.Literal('FREIGHT_FORWARDER'),
659
+ Type.Literal('NVOCC'),
660
+ Type.Literal('OTI')
661
+ ])),
662
+
663
+ regulatoryCompliance: Type.Object({
664
+ dot: Type.Boolean(),
665
+ fmcsa: Type.Boolean(),
666
+ iat: Type.Boolean(),
667
+ tsa: Type.Boolean(),
668
+ customs: Type.Boolean(),
669
+ epa: Type.Boolean(),
670
+ osha: Type.Boolean(),
671
+ eeoc: Type.Boolean(),
672
+ localRegulations: Type.Boolean(),
673
+ stateRegulations: Type.Boolean(),
674
+ federalRegulations: Type.Boolean(),
675
+ internationalRegulations: Type.Boolean()
676
+ }),
677
+
678
+ safetyStandards: Type.Object({
679
+ safetyManagementSystem: Type.Boolean(),
680
+ driverSafetyTraining: Type.Boolean(),
681
+ vehicleSafetyInspections: Type.Boolean(),
682
+ accidentPrevention: Type.Boolean(),
683
+ emergencyResponse: Type.Boolean(),
684
+ safetyReporting: Type.Boolean(),
685
+ safetyMetrics: Type.Boolean(),
686
+
687
+ safetyRatings: Type.Object({
688
+ dotSafetyRating: Type.Optional(Type.Union([
689
+ Type.Literal('SATISFACTORY'),
690
+ Type.Literal('CONDITIONAL'),
691
+ Type.Literal('UNSATISFACTORY'),
692
+ Type.Literal('NOT_RATED')
693
+ ])),
694
+ insuranceSafetyRating: Type.Optional(Type.String()),
695
+ carrierSafetyRating: Type.Optional(Type.Number({ minimum: 0, maximum: 100 }))
696
+ })
697
+ }),
698
+
699
+ securityMeasures: Type.Object({
700
+ driverBackgroundChecks: Type.Boolean(),
701
+ vehicleSecuritySystems: Type.Boolean(),
702
+ cargoSecuritySystems: Type.Boolean(),
703
+ facilitySecuritySystems: Type.Boolean(),
704
+ securityTraining: Type.Boolean(),
705
+ securityProcedures: Type.Boolean(),
706
+ incidentReporting: Type.Boolean(),
707
+ securityAudits: Type.Boolean(),
708
+ chainOfCustody: Type.Boolean(),
709
+ sealedLoad: Type.Boolean(),
710
+ secureTransport: Type.Boolean(),
711
+ highValueCargo: Type.Boolean()
712
+ }),
713
+
714
+ insurance: Type.Object({
715
+ generalLiability: MoneySchema,
716
+ cargoInsurance: MoneySchema,
717
+ autoLiability: MoneySchema,
718
+ workersCompensation: MoneySchema,
719
+ garagekeepersLiability: Type.Optional(MoneySchema),
720
+ errorAndOmissions: Type.Optional(MoneySchema),
721
+ cyberLiability: Type.Optional(MoneySchema),
722
+ environmentalLiability: Type.Optional(MoneySchema),
723
+ warehouseLegal: Type.Optional(MoneySchema),
724
+ bondedCarrier: Type.Optional(MoneySchema),
725
+ selfInsured: Type.Boolean(),
726
+ deductibles: Type.Record(Type.String(), MoneySchema)
727
+ }),
728
+
729
+ created: ActionRecordSchema,
730
+ updated: Type.Optional(ActionRecordSchema)
731
+ })
732
+
733
+ // Combined carrier capabilities schema
734
+ export const CarrierCapabilitySchema = Type.Object({
735
+ transport: CarrierTransportCapabilitySchema,
736
+ fleet: CarrierFleetCapabilitySchema,
737
+ handling: CarrierHandlingCapabilitySchema,
738
+ coverage: CarrierCoverageCapabilitySchema,
739
+ technology: CarrierTechnologyCapabilitySchema,
740
+ service: CarrierServiceCapabilitySchema,
741
+ compliance: CarrierComplianceCapabilitySchema
742
+ })
743
+
744
+ // ===== TYPESCRIPT TYPE EXPORTS =====
745
+
746
+ // Carrier Capabilities Types
747
+ export type CarrierTransportCapability = Static<typeof CarrierTransportCapabilitySchema>
748
+ export type CarrierFleetCapability = Static<typeof CarrierFleetCapabilitySchema>
749
+ export type CarrierHandlingCapability = Static<typeof CarrierHandlingCapabilitySchema>
750
+ export type CarrierCoverageCapability = Static<typeof CarrierCoverageCapabilitySchema>
751
+ export type CarrierTechnologyCapability = Static<typeof CarrierTechnologyCapabilitySchema>
752
+ export type CarrierServiceCapability = Static<typeof CarrierServiceCapabilitySchema>
753
+ export type CarrierComplianceCapability = Static<typeof CarrierComplianceCapabilitySchema>
754
+ export type CarrierCapability = Static<typeof CarrierCapabilitySchema>
755
+
756
+ // ─── Request Validation Schemas ───────────────────────────────────────────────
757
+
758
+ export const CarrierCapabilityTypeSchema = Type.Union([
759
+ Type.Literal('transport'),
760
+ Type.Literal('fleet'),
761
+ Type.Literal('handling'),
762
+ Type.Literal('coverage'),
763
+ Type.Literal('technology'),
764
+ Type.Literal('service'),
765
+ Type.Literal('compliance')
766
+ ])
767
+
768
+ export const CarrierBulkCapabilitiesUpdateSchema = Type.Object({
769
+ capabilities: Type.Optional(Type.Record(CarrierCapabilityTypeSchema, Type.Any())),
770
+ syncWithFleet: Type.Optional(Type.Boolean()),
771
+ reason: Type.Optional(Type.String({ maxLength: 500 }))
772
+ })
773
+
774
+ const OMIT_CAP = ['context', 'service', 'type', 'created', 'updated'] as const
775
+
776
+ export const LSPCarrierGetTransportCapabilityRVS = {
777
+ headers: APIHeadersSchema,
778
+ params: Type.Object({ id: Type.String() }),
779
+ response: APIResponseDataSchemaFactory({ capability: CarrierTransportCapabilitySchema, lastUpdated: Type.Number(), completeness: Type.Number({ minimum: 0, maximum: 100 }) })
780
+ }
781
+
782
+ export const LSPCarrierSetTransportCapabilityRVS = {
783
+ headers: APIHeadersSchema,
784
+ params: Type.Object({ id: Type.String() }),
785
+ body: Type.Omit(CarrierTransportCapabilitySchema, OMIT_CAP),
786
+ response: APIResponseDataSchemaFactory({ capability: CarrierTransportCapabilitySchema })
787
+ }
788
+
789
+ export const LSPCarrierUpdateTransportCapabilityRVS = {
790
+ headers: APIHeadersSchema,
791
+ params: Type.Object({ id: Type.String() }),
792
+ body: Type.Partial(Type.Omit(CarrierTransportCapabilitySchema, OMIT_CAP)),
793
+ response: APIResponseDataSchemaFactory({ capability: CarrierTransportCapabilitySchema, changes: Type.Array(Type.Object({ field: Type.String(), oldValue: Type.Any(), newValue: Type.Any() })) })
794
+ }
795
+
796
+ export const LSPCarrierDeleteTransportCapabilityRVS = {
797
+ headers: APIHeadersSchema,
798
+ params: Type.Object({ id: Type.String() }),
799
+ response: APIResponseBaseSchema
800
+ }
801
+
802
+ export const LSPCarrierGetFleetCapabilityRVS = {
803
+ headers: APIHeadersSchema,
804
+ params: Type.Object({ id: Type.String() }),
805
+ response: APIResponseDataSchemaFactory({ capability: CarrierFleetCapabilitySchema, linkedAssets: Type.Object({ fleetIds: Type.Array(Type.String()), lastSync: Type.Number() }), lastUpdated: Type.Number() })
806
+ }
807
+
808
+ export const LSPCarrierSetFleetCapabilityRVS = {
809
+ headers: APIHeadersSchema,
810
+ params: Type.Object({ id: Type.String() }),
811
+ body: Type.Omit(CarrierFleetCapabilitySchema, OMIT_CAP),
812
+ response: APIResponseDataSchemaFactory({ capability: CarrierFleetCapabilitySchema })
813
+ }
814
+
815
+ export const LSPCarrierUpdateFleetCapabilityRVS = {
816
+ headers: APIHeadersSchema,
817
+ params: Type.Object({ id: Type.String() }),
818
+ body: Type.Partial(Type.Omit(CarrierFleetCapabilitySchema, OMIT_CAP)),
819
+ response: APIResponseDataSchemaFactory({ capability: CarrierFleetCapabilitySchema, syncedAssets: Type.Array(Type.String()) })
820
+ }
821
+
822
+ export const LSPCarrierGetHandlingCapabilityRVS = {
823
+ headers: APIHeadersSchema,
824
+ params: Type.Object({ id: Type.String() }),
825
+ response: APIResponseDataSchemaFactory({ capability: CarrierHandlingCapabilitySchema, lastUpdated: Type.Number() })
826
+ }
827
+
828
+ export const LSPCarrierSetHandlingCapabilityRVS = {
829
+ headers: APIHeadersSchema,
830
+ params: Type.Object({ id: Type.String() }),
831
+ body: Type.Omit(CarrierHandlingCapabilitySchema, OMIT_CAP),
832
+ response: APIResponseDataSchemaFactory({ capability: CarrierHandlingCapabilitySchema })
833
+ }
834
+
835
+ export const LSPCarrierUpdateHandlingCapabilityRVS = {
836
+ headers: APIHeadersSchema,
837
+ params: Type.Object({ id: Type.String() }),
838
+ body: Type.Partial(Type.Omit(CarrierHandlingCapabilitySchema, OMIT_CAP)),
839
+ response: APIResponseDataSchemaFactory({ capability: CarrierHandlingCapabilitySchema })
840
+ }
841
+
842
+ export const LSPCarrierGetCoverageCapabilityRVS = {
843
+ headers: APIHeadersSchema,
844
+ params: Type.Object({ id: Type.String() }),
845
+ response: APIResponseDataSchemaFactory({ capability: CarrierCoverageCapabilitySchema, lastUpdated: Type.Number() })
846
+ }
847
+
848
+ export const LSPCarrierSetCoverageCapabilityRVS = {
849
+ headers: APIHeadersSchema,
850
+ params: Type.Object({ id: Type.String() }),
851
+ body: Type.Omit(CarrierCoverageCapabilitySchema, OMIT_CAP),
852
+ response: APIResponseDataSchemaFactory({ capability: CarrierCoverageCapabilitySchema })
853
+ }
854
+
855
+ export const LSPCarrierUpdateCoverageCapabilityRVS = {
856
+ headers: APIHeadersSchema,
857
+ params: Type.Object({ id: Type.String() }),
858
+ body: Type.Partial(Type.Omit(CarrierCoverageCapabilitySchema, OMIT_CAP)),
859
+ response: APIResponseDataSchemaFactory({ capability: CarrierCoverageCapabilitySchema })
860
+ }
861
+
862
+ export const LSPCarrierGetTechnologyCapabilityRVS = {
863
+ headers: APIHeadersSchema,
864
+ params: Type.Object({ id: Type.String() }),
865
+ response: APIResponseDataSchemaFactory({ capability: CarrierTechnologyCapabilitySchema, lastUpdated: Type.Number() })
866
+ }
867
+
868
+ export const LSPCarrierSetTechnologyCapabilityRVS = {
869
+ headers: APIHeadersSchema,
870
+ params: Type.Object({ id: Type.String() }),
871
+ body: Type.Omit(CarrierTechnologyCapabilitySchema, OMIT_CAP),
872
+ response: APIResponseDataSchemaFactory({ capability: CarrierTechnologyCapabilitySchema })
873
+ }
874
+
875
+ export const LSPCarrierUpdateTechnologyCapabilityRVS = {
876
+ headers: APIHeadersSchema,
877
+ params: Type.Object({ id: Type.String() }),
878
+ body: Type.Partial(Type.Omit(CarrierTechnologyCapabilitySchema, OMIT_CAP)),
879
+ response: APIResponseDataSchemaFactory({ capability: CarrierTechnologyCapabilitySchema })
880
+ }
881
+
882
+ export const LSPCarrierGetServiceCapabilityRVS = {
883
+ headers: APIHeadersSchema,
884
+ params: Type.Object({ id: Type.String() }),
885
+ response: APIResponseDataSchemaFactory({ capability: CarrierServiceCapabilitySchema, lastUpdated: Type.Number() })
886
+ }
887
+
888
+ export const LSPCarrierSetServiceCapabilityRVS = {
889
+ headers: APIHeadersSchema,
890
+ params: Type.Object({ id: Type.String() }),
891
+ body: Type.Omit(CarrierServiceCapabilitySchema, OMIT_CAP),
892
+ response: APIResponseDataSchemaFactory({ capability: CarrierServiceCapabilitySchema })
893
+ }
894
+
895
+ export const LSPCarrierUpdateServiceCapabilityRVS = {
896
+ headers: APIHeadersSchema,
897
+ params: Type.Object({ id: Type.String() }),
898
+ body: Type.Partial(Type.Omit(CarrierServiceCapabilitySchema, OMIT_CAP)),
899
+ response: APIResponseDataSchemaFactory({ capability: CarrierServiceCapabilitySchema })
900
+ }
901
+
902
+ export const LSPCarrierGetComplianceCapabilityRVS = {
903
+ headers: APIHeadersSchema,
904
+ params: Type.Object({ id: Type.String() }),
905
+ response: APIResponseDataSchemaFactory({ capability: CarrierComplianceCapabilitySchema, lastUpdated: Type.Number() })
906
+ }
907
+
908
+ export const LSPCarrierSetComplianceCapabilityRVS = {
909
+ headers: APIHeadersSchema,
910
+ params: Type.Object({ id: Type.String() }),
911
+ body: Type.Omit(CarrierComplianceCapabilitySchema, OMIT_CAP),
912
+ response: APIResponseDataSchemaFactory({ capability: CarrierComplianceCapabilitySchema })
913
+ }
914
+
915
+ export const LSPCarrierUpdateComplianceCapabilityRVS = {
916
+ headers: APIHeadersSchema,
917
+ params: Type.Object({ id: Type.String() }),
918
+ body: Type.Partial(Type.Omit(CarrierComplianceCapabilitySchema, OMIT_CAP)),
919
+ response: APIResponseDataSchemaFactory({ capability: CarrierComplianceCapabilitySchema })
920
+ }
921
+
922
+ export const LSPCarrierGetAllCapabilitiesRVS = {
923
+ headers: APIHeadersSchema,
924
+ params: Type.Object({ id: Type.String() }),
925
+ response: APIResponseDataSchemaFactory({
926
+ capabilities: Type.Object({
927
+ transport: Type.Optional(CarrierTransportCapabilitySchema),
928
+ fleet: Type.Optional(CarrierFleetCapabilitySchema),
929
+ handling: Type.Optional(CarrierHandlingCapabilitySchema),
930
+ coverage: Type.Optional(CarrierCoverageCapabilitySchema),
931
+ technology: Type.Optional(CarrierTechnologyCapabilitySchema),
932
+ service: Type.Optional(CarrierServiceCapabilitySchema),
933
+ compliance: Type.Optional(CarrierComplianceCapabilitySchema)
934
+ }),
935
+ completeness: Type.Number({ minimum: 0, maximum: 100 }),
936
+ missingTypes: Type.Array(Type.String()),
937
+ lastUpdated: Type.Number()
938
+ })
939
+ }
940
+
941
+ export const LSPCarrierBulkCapabilitiesUpdateRVS = {
942
+ headers: APIHeadersSchema,
943
+ params: Type.Object({ id: Type.String() }),
944
+ body: CarrierBulkCapabilitiesUpdateSchema,
945
+ response: APIResponseDataSchemaFactory({
946
+ updated: Type.Array(CarrierCapabilityTypeSchema),
947
+ errors: Type.Optional(Type.Array(Type.Object({ type: Type.String(), field: Type.String(), error: Type.String() })))
948
+ })
949
+ }
950
+
951
+ export const LSPCarrierGetCapabilityInsightsRVS = {
952
+ headers: APIHeadersSchema,
953
+ params: Type.Object({ id: Type.String() }),
954
+ querystring: Type.Object({
955
+ includeGaps: Type.Optional(Type.Boolean()),
956
+ includeBenchmarks: Type.Optional(Type.Boolean()),
957
+ includeRecommendations: Type.Optional(Type.Boolean())
958
+ }),
959
+ response: APIResponseDataSchemaFactory({
960
+ insights: Type.Object({
961
+ capabilityScore: Type.Number({ minimum: 0, maximum: 100 }),
962
+ capacityScore: Type.Number({ minimum: 0, maximum: 100 }),
963
+ profileCompleteness: Type.Number({ minimum: 0, maximum: 100 }),
964
+ gaps: Type.Optional(Type.Array(Type.Object({ type: Type.String(), severity: Type.Union([Type.Literal('LOW'), Type.Literal('MEDIUM'), Type.Literal('HIGH'), Type.Literal('CRITICAL')]), description: Type.String(), recommendation: Type.String() }))),
965
+ benchmarks: Type.Optional(Type.Object({ industryRank: Type.Number(), networkRank: Type.Number(), strengthAreas: Type.Array(Type.String()), improvementAreas: Type.Array(Type.String()) })),
966
+ recommendations: Type.Optional(Type.Array(Type.Object({ priority: Type.Union([Type.Literal('LOW'), Type.Literal('MEDIUM'), Type.Literal('HIGH')]), category: Type.String(), action: Type.String(), expectedImpact: Type.String(), estimatedEffort: Type.String() })))
967
+ })
968
+ })
969
+ }
970
+
971
+ export const LSPCarrierValidateCapabilityRVS = {
972
+ headers: APIHeadersSchema,
973
+ params: Type.Object({ id: Type.String(), type: CarrierCapabilityTypeSchema }),
974
+ body: Type.Object({ data: Type.Any(), checkFleetConsistency: Type.Optional(Type.Boolean()), dryRun: Type.Optional(Type.Boolean()) }),
975
+ response: APIResponseDataSchemaFactory({
976
+ valid: Type.Boolean(),
977
+ errors: Type.Optional(Type.Array(Type.String())),
978
+ warnings: Type.Optional(Type.Array(Type.String())),
979
+ suggestions: Type.Optional(Type.Array(Type.String())),
980
+ fleetInconsistencies: Type.Optional(Type.Array(Type.String()))
981
+ })
982
+ }
983
+
984
+ export type LSPCarrierGetTransportCapabilityValidation = { headers: Static<typeof LSPCarrierGetTransportCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetTransportCapabilityRVS.params>, response: Static<typeof LSPCarrierGetTransportCapabilityRVS.response> }
985
+ export type LSPCarrierSetTransportCapabilityValidation = { headers: Static<typeof LSPCarrierSetTransportCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetTransportCapabilityRVS.params>, body: Static<typeof LSPCarrierSetTransportCapabilityRVS.body>, response: Static<typeof LSPCarrierSetTransportCapabilityRVS.response> }
986
+ export type LSPCarrierUpdateTransportCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateTransportCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateTransportCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateTransportCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateTransportCapabilityRVS.response> }
987
+ export type LSPCarrierDeleteTransportCapabilityValidation = { headers: Static<typeof LSPCarrierDeleteTransportCapabilityRVS.headers>, params: Static<typeof LSPCarrierDeleteTransportCapabilityRVS.params>, response: Static<typeof LSPCarrierDeleteTransportCapabilityRVS.response> }
988
+ export type LSPCarrierGetFleetCapabilityValidation = { headers: Static<typeof LSPCarrierGetFleetCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetFleetCapabilityRVS.params>, response: Static<typeof LSPCarrierGetFleetCapabilityRVS.response> }
989
+ export type LSPCarrierSetFleetCapabilityValidation = { headers: Static<typeof LSPCarrierSetFleetCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetFleetCapabilityRVS.params>, body: Static<typeof LSPCarrierSetFleetCapabilityRVS.body>, response: Static<typeof LSPCarrierSetFleetCapabilityRVS.response> }
990
+ export type LSPCarrierUpdateFleetCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateFleetCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateFleetCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateFleetCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateFleetCapabilityRVS.response> }
991
+ export type LSPCarrierGetHandlingCapabilityValidation = { headers: Static<typeof LSPCarrierGetHandlingCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetHandlingCapabilityRVS.params>, response: Static<typeof LSPCarrierGetHandlingCapabilityRVS.response> }
992
+ export type LSPCarrierSetHandlingCapabilityValidation = { headers: Static<typeof LSPCarrierSetHandlingCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetHandlingCapabilityRVS.params>, body: Static<typeof LSPCarrierSetHandlingCapabilityRVS.body>, response: Static<typeof LSPCarrierSetHandlingCapabilityRVS.response> }
993
+ export type LSPCarrierUpdateHandlingCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateHandlingCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateHandlingCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateHandlingCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateHandlingCapabilityRVS.response> }
994
+ export type LSPCarrierGetCoverageCapabilityValidation = { headers: Static<typeof LSPCarrierGetCoverageCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetCoverageCapabilityRVS.params>, response: Static<typeof LSPCarrierGetCoverageCapabilityRVS.response> }
995
+ export type LSPCarrierSetCoverageCapabilityValidation = { headers: Static<typeof LSPCarrierSetCoverageCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetCoverageCapabilityRVS.params>, body: Static<typeof LSPCarrierSetCoverageCapabilityRVS.body>, response: Static<typeof LSPCarrierSetCoverageCapabilityRVS.response> }
996
+ export type LSPCarrierUpdateCoverageCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateCoverageCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateCoverageCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateCoverageCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateCoverageCapabilityRVS.response> }
997
+ export type LSPCarrierGetTechnologyCapabilityValidation = { headers: Static<typeof LSPCarrierGetTechnologyCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetTechnologyCapabilityRVS.params>, response: Static<typeof LSPCarrierGetTechnologyCapabilityRVS.response> }
998
+ export type LSPCarrierSetTechnologyCapabilityValidation = { headers: Static<typeof LSPCarrierSetTechnologyCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetTechnologyCapabilityRVS.params>, body: Static<typeof LSPCarrierSetTechnologyCapabilityRVS.body>, response: Static<typeof LSPCarrierSetTechnologyCapabilityRVS.response> }
999
+ export type LSPCarrierUpdateTechnologyCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateTechnologyCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateTechnologyCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateTechnologyCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateTechnologyCapabilityRVS.response> }
1000
+ export type LSPCarrierGetServiceCapabilityValidation = { headers: Static<typeof LSPCarrierGetServiceCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetServiceCapabilityRVS.params>, response: Static<typeof LSPCarrierGetServiceCapabilityRVS.response> }
1001
+ export type LSPCarrierSetServiceCapabilityValidation = { headers: Static<typeof LSPCarrierSetServiceCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetServiceCapabilityRVS.params>, body: Static<typeof LSPCarrierSetServiceCapabilityRVS.body>, response: Static<typeof LSPCarrierSetServiceCapabilityRVS.response> }
1002
+ export type LSPCarrierUpdateServiceCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateServiceCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateServiceCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateServiceCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateServiceCapabilityRVS.response> }
1003
+ export type LSPCarrierGetComplianceCapabilityValidation = { headers: Static<typeof LSPCarrierGetComplianceCapabilityRVS.headers>, params: Static<typeof LSPCarrierGetComplianceCapabilityRVS.params>, response: Static<typeof LSPCarrierGetComplianceCapabilityRVS.response> }
1004
+ export type LSPCarrierSetComplianceCapabilityValidation = { headers: Static<typeof LSPCarrierSetComplianceCapabilityRVS.headers>, params: Static<typeof LSPCarrierSetComplianceCapabilityRVS.params>, body: Static<typeof LSPCarrierSetComplianceCapabilityRVS.body>, response: Static<typeof LSPCarrierSetComplianceCapabilityRVS.response> }
1005
+ export type LSPCarrierUpdateComplianceCapabilityValidation = { headers: Static<typeof LSPCarrierUpdateComplianceCapabilityRVS.headers>, params: Static<typeof LSPCarrierUpdateComplianceCapabilityRVS.params>, body: Static<typeof LSPCarrierUpdateComplianceCapabilityRVS.body>, response: Static<typeof LSPCarrierUpdateComplianceCapabilityRVS.response> }
1006
+ export type LSPCarrierGetAllCapabilitiesValidation = { headers: Static<typeof LSPCarrierGetAllCapabilitiesRVS.headers>, params: Static<typeof LSPCarrierGetAllCapabilitiesRVS.params>, response: Static<typeof LSPCarrierGetAllCapabilitiesRVS.response> }
1007
+ export type LSPCarrierBulkCapabilitiesUpdateValidation = { headers: Static<typeof LSPCarrierBulkCapabilitiesUpdateRVS.headers>, params: Static<typeof LSPCarrierBulkCapabilitiesUpdateRVS.params>, body: Static<typeof LSPCarrierBulkCapabilitiesUpdateRVS.body>, response: Static<typeof LSPCarrierBulkCapabilitiesUpdateRVS.response> }
1008
+ export type LSPCarrierGetCapabilityInsightsValidation = { headers: Static<typeof LSPCarrierGetCapabilityInsightsRVS.headers>, params: Static<typeof LSPCarrierGetCapabilityInsightsRVS.params>, querystring: Static<typeof LSPCarrierGetCapabilityInsightsRVS.querystring>, response: Static<typeof LSPCarrierGetCapabilityInsightsRVS.response> }
1009
+ export type LSPCarrierValidateCapabilityValidation = { headers: Static<typeof LSPCarrierValidateCapabilityRVS.headers>, params: Static<typeof LSPCarrierValidateCapabilityRVS.params>, body: Static<typeof LSPCarrierValidateCapabilityRVS.body>, response: Static<typeof LSPCarrierValidateCapabilityRVS.response> }