@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,634 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import { DurationSchema } from '../../time'
3
+ import { MoneySchema, PerTimeSchema, AreaSchema, VolumeSchema, WeightSchema, DistanceSchema, PerAreaSchema } from '../../measure'
4
+ import { WarehouseCapabilitiesSchema } from './capabilities'
5
+ import { WarehouseCapacitySchema } from './capacities'
6
+
7
+ // Enhanced warehouse matching and selection schema
8
+ export const WarehouseMatchingCriteriaSchema = Type.Object({
9
+ requiredCapabilities: Type.Partial(WarehouseCapabilitiesSchema),
10
+ requiredCapacity: Type.Partial(WarehouseCapacitySchema),
11
+
12
+ serviceRequirements: Type.Object({
13
+ serviceLevels: Type.Array(Type.Union([
14
+ Type.Literal('SAME_DAY'),
15
+ Type.Literal('NEXT_DAY'),
16
+ Type.Literal('STANDARD'),
17
+ Type.Literal('ECONOMY')
18
+ ])),
19
+ minimumThroughput: Type.Number({ minimum: 0 }),
20
+ maximumProcessingTime: Type.Number({ minimum: 0 }),
21
+ minimumAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
22
+ minimumUptime: Type.Number({ minimum: 0, maximum: 100 }),
23
+ geographicCoverage: Type.Array(Type.String())
24
+ }),
25
+
26
+ technologyRequirements: Type.Optional(Type.Object({
27
+ requiredIntegrations: Type.Array(Type.String()),
28
+ apiRequirements: Type.Boolean(),
29
+ realTimeTracking: Type.Boolean(),
30
+ automationLevel: Type.Optional(Type.Union([
31
+ Type.Literal('MANUAL'),
32
+ Type.Literal('SEMI_AUTOMATED'),
33
+ Type.Literal('FULLY_AUTOMATED'),
34
+ Type.Literal('AI_OPTIMIZED')
35
+ ])),
36
+ dataAnalytics: Type.Boolean(),
37
+ cloudIntegration: Type.Boolean(),
38
+ mobileAccess: Type.Boolean()
39
+ })),
40
+
41
+ complianceRequirements: Type.Optional(Type.Object({
42
+ requiredCertifications: Type.Array(Type.String()),
43
+ securityLevel: Type.Union([
44
+ Type.Literal('BASIC'),
45
+ Type.Literal('ENHANCED'),
46
+ Type.Literal('HIGH_SECURITY'),
47
+ Type.Literal('MAXIMUM_SECURITY')
48
+ ]),
49
+ hazmatHandling: Type.Boolean(),
50
+ temperatureControl: Type.Boolean(),
51
+ customsBonded: Type.Boolean(),
52
+ dataCompliance: Type.Array(Type.String())
53
+ })),
54
+
55
+ performanceRequirements: Type.Optional(Type.Object({
56
+ minimumAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
57
+ minimumUptime: Type.Number({ minimum: 0, maximum: 100 }),
58
+ maximumCycleTime: Type.Number({ minimum: 0 }),
59
+ minimumThroughput: Type.Number({ minimum: 0 }),
60
+ minimumEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
61
+ maximumErrorRate: Type.Number({ minimum: 0, maximum: 100 }),
62
+ minimumCustomerSatisfaction: Type.Number({ minimum: 0, maximum: 100 })
63
+ })),
64
+
65
+ locationRequirements: Type.Optional(Type.Object({
66
+ preferredRegions: Type.Array(Type.String()),
67
+ maxDistanceFromOrigin: DistanceSchema,
68
+ accessibilityRequirements: Type.Array(Type.String()),
69
+ timeZonePreference: Type.Optional(Type.String()),
70
+ proximityToAirports: DistanceSchema,
71
+ proximityToSeaports: DistanceSchema,
72
+ railAccess: Type.Boolean(),
73
+ highwayAccess: Type.Boolean()
74
+ })),
75
+
76
+ weightings: Type.Optional(Type.Object({
77
+ capabilities: Type.Number({ minimum: 0, maximum: 100 }),
78
+ capacity: Type.Number({ minimum: 0, maximum: 100 }),
79
+ performance: Type.Number({ minimum: 0, maximum: 100 }),
80
+ cost: Type.Number({ minimum: 0, maximum: 100 }),
81
+ location: Type.Number({ minimum: 0, maximum: 100 }),
82
+ technology: Type.Number({ minimum: 0, maximum: 100 }),
83
+ compliance: Type.Number({ minimum: 0, maximum: 100 }),
84
+ sustainability: Type.Number({ minimum: 0, maximum: 100 })
85
+ })),
86
+
87
+ mustHave: Type.Optional(Type.Array(Type.String())),
88
+ niceToHave: Type.Optional(Type.Array(Type.String())),
89
+ dealBreakers: Type.Optional(Type.Array(Type.String())),
90
+
91
+ budgetConstraints: Type.Optional(Type.Object({
92
+ maxStorageCost: MoneySchema,
93
+ maxHandlingCost: MoneySchema,
94
+ maxTotalCost: MoneySchema,
95
+ costModel: Type.Union([
96
+ Type.Literal('FIXED'),
97
+ Type.Literal('VARIABLE'),
98
+ Type.Literal('HYBRID'),
99
+ Type.Literal('PERFORMANCE_BASED')
100
+ ]),
101
+ paymentTerms: Type.Optional(Type.String()),
102
+ volumeCommitments: Type.Optional(Type.Object({
103
+ minimumVolume: Type.Number({ minimum: 0 }),
104
+ commitmentPeriod: DurationSchema
105
+ }))
106
+ })),
107
+
108
+ riskPreferences: Type.Optional(Type.Object({
109
+ riskTolerance: Type.Union([
110
+ Type.Literal('LOW'),
111
+ Type.Literal('MEDIUM'),
112
+ Type.Literal('HIGH')
113
+ ]),
114
+ redundancyRequirement: Type.Boolean(),
115
+ backupWarehouseRequired: Type.Boolean(),
116
+ businessContinuityRequirement: Type.Boolean(),
117
+ insuranceRequirements: Type.Optional(Type.Object({
118
+ minimumCoverage: MoneySchema,
119
+ liabilityRequirements: Type.Array(Type.String())
120
+ }))
121
+ }))
122
+ })
123
+
124
+ // Warehouse optimization schema
125
+ export const WarehouseOptimizationSchema = Type.Object({
126
+ warehouseId: Type.String(),
127
+ optimizationDate: Type.Number(),
128
+ optimizationType: Type.Union([
129
+ Type.Literal('LAYOUT_OPTIMIZATION'),
130
+ Type.Literal('PROCESS_OPTIMIZATION'),
131
+ Type.Literal('CAPACITY_OPTIMIZATION'),
132
+ Type.Literal('COST_OPTIMIZATION'),
133
+ Type.Literal('MULTI_OBJECTIVE')
134
+ ]),
135
+
136
+ currentState: Type.Object({
137
+ layout: Type.Object({
138
+ totalArea: AreaSchema,
139
+ storageEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
140
+ pickingEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
141
+ trafficFlow: Type.Number({ minimum: 0, maximum: 100 }),
142
+ spaceUtilization: Type.Number({ minimum: 0, maximum: 100 })
143
+ }),
144
+ operations: Type.Object({
145
+ throughput: Type.Number({ minimum: 0 }),
146
+ accuracy: Type.Number({ minimum: 0, maximum: 100 }),
147
+ cycleTime: Type.Number({ minimum: 0 }),
148
+ costPerOrder: MoneySchema,
149
+ laborEfficiency: Type.Number({ minimum: 0, maximum: 100 })
150
+ }),
151
+ resources: Type.Object({
152
+ equipmentUtilization: Type.Number({ minimum: 0, maximum: 100 }),
153
+ staffUtilization: Type.Number({ minimum: 0, maximum: 100 }),
154
+ systemPerformance: Type.Number({ minimum: 0, maximum: 100 })
155
+ })
156
+ }),
157
+
158
+ constraints: Type.Object({
159
+ maxBudget: Type.Optional(MoneySchema),
160
+ maxDowntime: Type.Optional(DurationSchema),
161
+ minServiceLevel: Type.Optional(Type.Number({ minimum: 0, maximum: 100 })),
162
+ requiredCertifications: Type.Optional(Type.Array(Type.String())),
163
+ physicalLimitations: Type.Optional(Type.Array(Type.String())),
164
+ stakeholderRequirements: Type.Optional(Type.Array(Type.String()))
165
+ }),
166
+
167
+ objectives: Type.Object({
168
+ primary: Type.Union([
169
+ Type.Literal('MAXIMIZE_THROUGHPUT'),
170
+ Type.Literal('MINIMIZE_COST'),
171
+ Type.Literal('MAXIMIZE_ACCURACY'),
172
+ Type.Literal('MINIMIZE_CYCLE_TIME'),
173
+ Type.Literal('MAXIMIZE_SPACE_UTILIZATION'),
174
+ Type.Literal('MINIMIZE_ENVIRONMENTAL_IMPACT')
175
+ ]),
176
+ secondary: Type.Optional(Type.Array(Type.Union([
177
+ Type.Literal('MAXIMIZE_THROUGHPUT'),
178
+ Type.Literal('MINIMIZE_COST'),
179
+ Type.Literal('MAXIMIZE_ACCURACY'),
180
+ Type.Literal('MINIMIZE_CYCLE_TIME'),
181
+ Type.Literal('MAXIMIZE_SPACE_UTILIZATION'),
182
+ Type.Literal('MINIMIZE_ENVIRONMENTAL_IMPACT')
183
+ ]))),
184
+ weights: Type.Optional(Type.Object({
185
+ throughput: Type.Number({ minimum: 0, maximum: 100 }),
186
+ cost: Type.Number({ minimum: 0, maximum: 100 }),
187
+ accuracy: Type.Number({ minimum: 0, maximum: 100 }),
188
+ time: Type.Number({ minimum: 0, maximum: 100 }),
189
+ spaceUtilization: Type.Number({ minimum: 0, maximum: 100 }),
190
+ environmentalImpact: Type.Number({ minimum: 0, maximum: 100 })
191
+ }))
192
+ }),
193
+
194
+ optimizedSolution: Type.Object({
195
+ layout: Type.Object({
196
+ recommendedChanges: Type.Array(Type.String()),
197
+ newStorageEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
198
+ newPickingEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
199
+ newTrafficFlow: Type.Number({ minimum: 0, maximum: 100 }),
200
+ newSpaceUtilization: Type.Number({ minimum: 0, maximum: 100 })
201
+ }),
202
+ operations: Type.Object({
203
+ projectedThroughput: Type.Number({ minimum: 0 }),
204
+ projectedAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
205
+ projectedCycleTime: Type.Number({ minimum: 0 }),
206
+ projectedCostPerOrder: MoneySchema,
207
+ projectedLaborEfficiency: Type.Number({ minimum: 0, maximum: 100 })
208
+ }),
209
+ resources: Type.Object({
210
+ recommendedEquipment: Type.Array(Type.String()),
211
+ recommendedStaffing: Type.Number({ minimum: 0 }),
212
+ recommendedTechnology: Type.Array(Type.String())
213
+ })
214
+ }),
215
+
216
+ results: Type.Object({
217
+ improvementMetrics: Type.Object({
218
+ throughputIncrease: Type.Optional(Type.Number({ description: 'percentage' })),
219
+ costReduction: Type.Optional(MoneySchema),
220
+ accuracyImprovement: Type.Optional(Type.Number({ description: 'percentage' })),
221
+ timeReduction: Type.Optional(Type.Number({ description: 'percentage' })),
222
+ spaceEfficiencyGain: Type.Optional(Type.Number({ description: 'percentage' })),
223
+ environmentalImpactReduction: Type.Optional(Type.Number({ description: 'percentage' }))
224
+ }),
225
+ roi: Type.Optional(Type.Number({ description: 'percentage' })),
226
+ paybackPeriod: Type.Optional(DurationSchema),
227
+ riskAssessment: Type.Object({
228
+ implementationRisk: Type.Union([
229
+ Type.Literal('LOW'),
230
+ Type.Literal('MEDIUM'),
231
+ Type.Literal('HIGH')
232
+ ]),
233
+ operationalRisk: Type.Union([
234
+ Type.Literal('LOW'),
235
+ Type.Literal('MEDIUM'),
236
+ Type.Literal('HIGH')
237
+ ]),
238
+ financialRisk: Type.Union([
239
+ Type.Literal('LOW'),
240
+ Type.Literal('MEDIUM'),
241
+ Type.Literal('HIGH')
242
+ ])
243
+ })
244
+ }),
245
+
246
+ implementation: Type.Object({
247
+ phases: Type.Array(Type.Object({
248
+ phaseNumber: Type.Number(),
249
+ phaseName: Type.String(),
250
+ description: Type.String(),
251
+ startDate: Type.Number(),
252
+ endDate: Type.Number(),
253
+ milestones: Type.Array(Type.Object({
254
+ milestone: Type.String(),
255
+ date: Type.Number(),
256
+ deliverable: Type.String()
257
+ })),
258
+ resources: Type.Object({
259
+ budget: MoneySchema,
260
+ staff: Type.Number(),
261
+ equipment: Type.Array(Type.String()),
262
+ technology: Type.Array(Type.String())
263
+ }),
264
+ risks: Type.Array(Type.Object({
265
+ risk: Type.String(),
266
+ probability: Type.Union([
267
+ Type.Literal('LOW'),
268
+ Type.Literal('MEDIUM'),
269
+ Type.Literal('HIGH')
270
+ ]),
271
+ impact: Type.Union([
272
+ Type.Literal('LOW'),
273
+ Type.Literal('MEDIUM'),
274
+ Type.Literal('HIGH')
275
+ ]),
276
+ mitigation: Type.String()
277
+ }))
278
+ })),
279
+ totalDuration: DurationSchema,
280
+ totalCost: MoneySchema,
281
+ criticalPath: Type.Array(Type.String()),
282
+ dependencies: Type.Array(Type.Object({
283
+ task: Type.String(),
284
+ dependsOn: Type.Array(Type.String()),
285
+ delay: Type.Number({ description: 'days if dependency not met' })
286
+ }))
287
+ })
288
+ })
289
+
290
+ // Warehouse benchmarking schema
291
+ export const WarehouseBenchmarkingSchema = Type.Object({
292
+ warehouseId: Type.String(),
293
+ benchmarkDate: Type.Number(),
294
+ benchmarkType: Type.Union([
295
+ Type.Literal('INDUSTRY_BENCHMARK'),
296
+ Type.Literal('NETWORK_BENCHMARK'),
297
+ Type.Literal('PEER_BENCHMARK'),
298
+ Type.Literal('HISTORICAL_BENCHMARK')
299
+ ]),
300
+
301
+ performanceComparison: Type.Object({
302
+ throughput: Type.Object({
303
+ warehouseValue: Type.Number(),
304
+ benchmarkValue: Type.Number(),
305
+ variance: Type.Number({ description: 'percentage' }),
306
+ percentile: Type.Number({ minimum: 0, maximum: 100 })
307
+ }),
308
+ accuracy: Type.Object({
309
+ warehouseValue: Type.Number({ minimum: 0, maximum: 100 }),
310
+ benchmarkValue: Type.Number({ minimum: 0, maximum: 100 }),
311
+ variance: Type.Number({ description: 'percentage points' }),
312
+ percentile: Type.Number({ minimum: 0, maximum: 100 })
313
+ }),
314
+ efficiency: Type.Object({
315
+ warehouseValue: Type.Number({ minimum: 0, maximum: 100 }),
316
+ benchmarkValue: Type.Number({ minimum: 0, maximum: 100 }),
317
+ variance: Type.Number({ description: 'percentage points' }),
318
+ percentile: Type.Number({ minimum: 0, maximum: 100 })
319
+ }),
320
+ cost: Type.Object({
321
+ warehouseValue: MoneySchema,
322
+ benchmarkValue: MoneySchema,
323
+ variance: Type.Number({ description: 'percentage' }),
324
+ percentile: Type.Number({ minimum: 0, maximum: 100 })
325
+ })
326
+ }),
327
+
328
+ capabilityComparison: Type.Object({
329
+ automationLevel: Type.Object({
330
+ warehouseLevel: Type.String(),
331
+ benchmarkLevel: Type.String(),
332
+ gap: Type.String()
333
+ }),
334
+ technologyAdoption: Type.Object({
335
+ warehouseScore: Type.Number({ minimum: 0, maximum: 100 }),
336
+ benchmarkScore: Type.Number({ minimum: 0, maximum: 100 }),
337
+ gap: Type.Number({ description: 'percentage points' })
338
+ }),
339
+ serviceOfferings: Type.Object({
340
+ warehouseServices: Type.Number(),
341
+ benchmarkServices: Type.Number(),
342
+ gap: Type.Number()
343
+ }),
344
+ sustainabilityScore: Type.Object({
345
+ warehouseScore: Type.Number({ minimum: 0, maximum: 100 }),
346
+ benchmarkScore: Type.Number({ minimum: 0, maximum: 100 }),
347
+ gap: Type.Number({ description: 'percentage points' })
348
+ })
349
+ }),
350
+
351
+ improvementOpportunities: Type.Array(Type.Object({
352
+ area: Type.String(),
353
+ currentGap: Type.Number(),
354
+ targetImprovement: Type.Number(),
355
+ estimatedCost: Type.Optional(MoneySchema),
356
+ estimatedTimeline: DurationSchema,
357
+ priority: Type.Union([
358
+ Type.Literal('LOW'),
359
+ Type.Literal('MEDIUM'),
360
+ Type.Literal('HIGH'),
361
+ Type.Literal('CRITICAL')
362
+ ])
363
+ })),
364
+
365
+ bestPractices: Type.Array(Type.Object({
366
+ practice: Type.String(),
367
+ description: Type.String(),
368
+ implementationDifficulty: Type.Union([
369
+ Type.Literal('LOW'),
370
+ Type.Literal('MEDIUM'),
371
+ Type.Literal('HIGH')
372
+ ]),
373
+ expectedBenefit: Type.String(),
374
+ examples: Type.Array(Type.String())
375
+ }))
376
+ })
377
+
378
+ // Warehouse sustainability metrics schema
379
+ export const WarehouseSustainabilitySchema = Type.Object({
380
+ warehouseId: Type.String(),
381
+ reportingPeriod: Type.Object({
382
+ start: Type.Number(),
383
+ end: Type.Number()
384
+ }),
385
+
386
+ environmental: Type.Object({
387
+ carbonFootprint: Type.Object({
388
+ totalEmissions: Type.Number({ minimum: 0, description: 'tons CO2 equivalent' }),
389
+ emissionsPerOrder: Type.Number({ minimum: 0, description: 'kg CO2 per order' }),
390
+ emissionsPerSqMeter: PerAreaSchema,
391
+ reductionTargets: Type.Number({ description: 'percentage reduction target' }),
392
+ currentReduction: Type.Number({ description: 'percentage reduction achieved' })
393
+ }),
394
+
395
+ energyConsumption: Type.Object({
396
+ totalEnergyUsed: PerTimeSchema,
397
+ renewableEnergyPercent: Type.Number({ minimum: 0, maximum: 100 }),
398
+ energyEfficiencyRating: Type.Union([
399
+ Type.Literal('A'),
400
+ Type.Literal('B'),
401
+ Type.Literal('C'),
402
+ Type.Literal('D'),
403
+ Type.Literal('E')
404
+ ]),
405
+ energyPerOrder: Type.Number({ minimum: 0, description: 'kWh per order' })
406
+ }),
407
+
408
+ wasteManagement: Type.Object({
409
+ totalWasteGenerated: WeightSchema,
410
+ wasteRecycled: WeightSchema,
411
+ recyclingRate: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
412
+ wastePerOrder: Type.Number({ minimum: 0, description: 'kg per order' })
413
+ }),
414
+
415
+ waterUsage: Type.Object({
416
+ totalWaterUsed: VolumeSchema,
417
+ waterConservationMeasures: Type.Array(Type.String()),
418
+ waterEfficiencyRating: Type.Number({ minimum: 0, maximum: 100 })
419
+ })
420
+ }),
421
+
422
+ social: Type.Object({
423
+ employeeWelfare: Type.Object({
424
+ workplaceSafetyScore: Type.Number({ minimum: 0, maximum: 100 }),
425
+ employeeSatisfactionScore: Type.Number({ minimum: 0, maximum: 100 }),
426
+ trainingHoursPerEmployee: Type.Number({ minimum: 0 }),
427
+ diversityIndex: Type.Number({ minimum: 0, maximum: 100 })
428
+ }),
429
+
430
+ communityImpact: Type.Object({
431
+ localEmployment: Type.Number({ minimum: 0, description: 'number of local employees' }),
432
+ communityInvestment: MoneySchema,
433
+ localSourcing: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' })
434
+ })
435
+ }),
436
+
437
+ governance: Type.Object({
438
+ complianceScore: Type.Number({ minimum: 0, maximum: 100 }),
439
+ auditResults: Type.Array(Type.Object({
440
+ auditType: Type.String(),
441
+ result: Type.Union([
442
+ Type.Literal('PASSED'),
443
+ Type.Literal('PASSED_WITH_CONDITIONS'),
444
+ Type.Literal('FAILED')
445
+ ]),
446
+ date: Type.Number(),
447
+ nextAudit: Type.Number()
448
+ })),
449
+ sustainabilityCertifications: Type.Array(Type.String()),
450
+ sustainabilityReporting: Type.Boolean()
451
+ }),
452
+
453
+ targets: Type.Object({
454
+ carbonNeutralityTarget: Type.Optional(Type.Number({ description: 'target year' })),
455
+ renewableEnergyTarget: Type.Number({ minimum: 0, maximum: 100, description: 'percentage target' }),
456
+ wasteReductionTarget: Type.Number({ minimum: 0, maximum: 100, description: 'percentage reduction' }),
457
+ sustainabilityInvestment: MoneySchema
458
+ }),
459
+
460
+ overallScore: Type.Number({ minimum: 0, maximum: 100 }),
461
+ rating: Type.Union([
462
+ Type.Literal('EXCELLENT'),
463
+ Type.Literal('GOOD'),
464
+ Type.Literal('FAIR'),
465
+ Type.Literal('POOR')
466
+ ]),
467
+ improvementRecommendations: Type.Array(Type.String())
468
+ })
469
+
470
+ // Warehouse capability assessment schema
471
+ export const WarehouseCapabilityAssessmentSchema = Type.Object({
472
+ warehouseId: Type.String(),
473
+ assessmentDate: Type.Number(),
474
+ assessedBy: Type.String(),
475
+ capabilities: WarehouseCapabilitiesSchema,
476
+
477
+ scores: Type.Object({
478
+ overall: Type.Number({ minimum: 0, maximum: 100 }),
479
+ storage: Type.Number({ minimum: 0, maximum: 100 }),
480
+ handling: Type.Number({ minimum: 0, maximum: 100 }),
481
+ processing: Type.Number({ minimum: 0, maximum: 100 }),
482
+ technology: Type.Number({ minimum: 0, maximum: 100 }),
483
+ compliance: Type.Number({ minimum: 0, maximum: 100 }),
484
+ sustainability: Type.Number({ minimum: 0, maximum: 100 }),
485
+ network: Type.Number({ minimum: 0, maximum: 100 })
486
+ }),
487
+
488
+ recommendations: Type.Array(Type.Object({
489
+ category: Type.Union([
490
+ Type.Literal('STORAGE'),
491
+ Type.Literal('HANDLING'),
492
+ Type.Literal('PROCESSING'),
493
+ Type.Literal('TECHNOLOGY'),
494
+ Type.Literal('COMPLIANCE'),
495
+ Type.Literal('SUSTAINABILITY'),
496
+ Type.Literal('NETWORK'),
497
+ Type.Literal('SERVICE_LEVELS')
498
+ ]),
499
+ priority: Type.Union([
500
+ Type.Literal('LOW'),
501
+ Type.Literal('MEDIUM'),
502
+ Type.Literal('HIGH'),
503
+ Type.Literal('CRITICAL')
504
+ ]),
505
+ recommendation: Type.String(),
506
+ estimatedCost: Type.Optional(MoneySchema),
507
+ estimatedROI: Type.Optional(Type.String()),
508
+ timeline: Type.Optional(Type.String())
509
+ })),
510
+
511
+ benchmarks: Type.Optional(Type.Object({
512
+ industryAverage: Type.Partial(WarehouseCapabilitiesSchema),
513
+ topPerformers: Type.Partial(WarehouseCapabilitiesSchema),
514
+ minimumStandards: Type.Partial(WarehouseCapabilitiesSchema)
515
+ }))
516
+ })
517
+
518
+ // Warehouse capability matching schema
519
+ export const WarehouseCapabilityMatchingSchema = Type.Object({
520
+ requirements: Type.Partial(WarehouseCapabilitiesSchema),
521
+ weightings: Type.Optional(Type.Object({
522
+ storage: Type.Number({ minimum: 0, maximum: 100 }),
523
+ handling: Type.Number({ minimum: 0, maximum: 100 }),
524
+ processing: Type.Number({ minimum: 0, maximum: 100 }),
525
+ technology: Type.Number({ minimum: 0, maximum: 100 }),
526
+ compliance: Type.Number({ minimum: 0, maximum: 100 }),
527
+ network: Type.Number({ minimum: 0, maximum: 100 }),
528
+ sustainability: Type.Number({ minimum: 0, maximum: 100 })
529
+ })),
530
+ mustHave: Type.Optional(Type.Array(Type.String())),
531
+ niceToHave: Type.Optional(Type.Array(Type.String())),
532
+ dealBreakers: Type.Optional(Type.Array(Type.String()))
533
+ })
534
+
535
+ // Warehouse risk assessment schema
536
+ export const WarehouseRiskAssessmentSchema = Type.Object({
537
+ warehouseId: Type.String(),
538
+ assessmentDate: Type.Number(),
539
+ assessmentType: Type.Union([
540
+ Type.Literal('OPERATIONAL_RISK'),
541
+ Type.Literal('FINANCIAL_RISK'),
542
+ Type.Literal('STRATEGIC_RISK'),
543
+ Type.Literal('COMPLIANCE_RISK'),
544
+ Type.Literal('COMPREHENSIVE_RISK')
545
+ ]),
546
+
547
+ operationalRisks: Type.Array(Type.Object({
548
+ riskId: Type.String(),
549
+ riskCategory: Type.Union([
550
+ Type.Literal('EQUIPMENT_FAILURE'),
551
+ Type.Literal('STAFFING_SHORTAGE'),
552
+ Type.Literal('CAPACITY_OVERLOAD'),
553
+ Type.Literal('QUALITY_ISSUES'),
554
+ Type.Literal('SAFETY_INCIDENTS'),
555
+ Type.Literal('TECHNOLOGY_FAILURE'),
556
+ Type.Literal('SUPPLY_CHAIN_DISRUPTION'),
557
+ Type.Literal('WEATHER_EVENTS'),
558
+ Type.Literal('INVENTORY_DAMAGE'),
559
+ Type.Literal('FIRE_HAZARD')
560
+ ]),
561
+ description: Type.String(),
562
+ probability: Type.Union([
563
+ Type.Literal('VERY_LOW'),
564
+ Type.Literal('LOW'),
565
+ Type.Literal('MEDIUM'),
566
+ Type.Literal('HIGH'),
567
+ Type.Literal('VERY_HIGH')
568
+ ]),
569
+ impact: Type.Union([
570
+ Type.Literal('NEGLIGIBLE'),
571
+ Type.Literal('MINOR'),
572
+ Type.Literal('MODERATE'),
573
+ Type.Literal('MAJOR'),
574
+ Type.Literal('CATASTROPHIC')
575
+ ]),
576
+ riskScore: Type.Number({ minimum: 0, maximum: 25 }),
577
+ mitigationStrategies: Type.Array(Type.String()),
578
+ contingencyPlans: Type.Array(Type.String()),
579
+ responsibleParty: Type.String(),
580
+ lastReview: Type.Number(),
581
+ nextReview: Type.Number()
582
+ })),
583
+
584
+ financialRisks: Type.Array(Type.Object({
585
+ riskId: Type.String(),
586
+ riskCategory: Type.Union([
587
+ Type.Literal('COST_OVERRUN'),
588
+ Type.Literal('REVENUE_SHORTFALL'),
589
+ Type.Literal('CURRENCY_FLUCTUATION'),
590
+ Type.Literal('INSURANCE_CLAIMS'),
591
+ Type.Literal('CAPITAL_INVESTMENT'),
592
+ Type.Literal('CASH_FLOW'),
593
+ Type.Literal('CREDIT_RISK'),
594
+ Type.Literal('CONTRACT_PENALTIES')
595
+ ]),
596
+ description: Type.String(),
597
+ probability: Type.Union([
598
+ Type.Literal('VERY_LOW'),
599
+ Type.Literal('LOW'),
600
+ Type.Literal('MEDIUM'),
601
+ Type.Literal('HIGH'),
602
+ Type.Literal('VERY_HIGH')
603
+ ]),
604
+ financialImpact: MoneySchema,
605
+ mitigationStrategies: Type.Array(Type.String()),
606
+ responsibleParty: Type.String()
607
+ })),
608
+
609
+ overallRiskProfile: Type.Object({
610
+ riskRating: Type.Union([
611
+ Type.Literal('LOW_RISK'),
612
+ Type.Literal('MODERATE_RISK'),
613
+ Type.Literal('HIGH_RISK'),
614
+ Type.Literal('CRITICAL_RISK')
615
+ ]),
616
+ totalRiskScore: Type.Number({ minimum: 0, maximum: 100 }),
617
+ topRisks: Type.Array(Type.String()),
618
+ riskTrends: Type.Union([
619
+ Type.Literal('IMPROVING'),
620
+ Type.Literal('STABLE'),
621
+ Type.Literal('DETERIORATING')
622
+ ]),
623
+ recommendedActions: Type.Array(Type.String())
624
+ })
625
+ })
626
+
627
+ // TypeScript type exports
628
+ export type WarehouseMatchingCriteria = Static<typeof WarehouseMatchingCriteriaSchema>
629
+ export type WarehouseOptimization = Static<typeof WarehouseOptimizationSchema>
630
+ export type WarehouseBenchmarking = Static<typeof WarehouseBenchmarkingSchema>
631
+ export type WarehouseSustainability = Static<typeof WarehouseSustainabilitySchema>
632
+ export type WarehouseCapabilityAssessment = Static<typeof WarehouseCapabilityAssessmentSchema>
633
+ export type WarehouseCapabilityMatching = Static<typeof WarehouseCapabilityMatchingSchema>
634
+ export type WarehouseRiskAssessment = Static<typeof WarehouseRiskAssessmentSchema>