@de./sdk 1.0.4 → 2.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 (383) hide show
  1. package/dist/allend/Access.d.ts +39 -3
  2. package/dist/allend/Access.js +147 -114
  3. package/dist/allend/Access.js.map +1 -1
  4. package/dist/allend/Agent/consolidation.d.ts +16 -0
  5. package/dist/allend/Agent/consolidation.js +38 -0
  6. package/dist/allend/Agent/consolidation.js.map +1 -0
  7. package/dist/allend/Agent/delivery.d.ts +11 -0
  8. package/dist/allend/Agent/delivery.js +43 -0
  9. package/dist/allend/Agent/delivery.js.map +1 -0
  10. package/dist/allend/Agent/dispatch.d.ts +8 -0
  11. package/dist/allend/Agent/dispatch.js +24 -0
  12. package/dist/allend/Agent/dispatch.js.map +1 -0
  13. package/dist/allend/Agent/index.d.ts +49 -0
  14. package/dist/allend/Agent/index.js +74 -0
  15. package/dist/allend/Agent/index.js.map +1 -0
  16. package/dist/allend/Agent/navigation.d.ts +8 -0
  17. package/dist/allend/Agent/navigation.js +25 -0
  18. package/dist/allend/Agent/navigation.js.map +1 -0
  19. package/dist/allend/Agent/origin.d.ts +9 -0
  20. package/dist/allend/Agent/origin.js +31 -0
  21. package/dist/allend/Agent/origin.js.map +1 -0
  22. package/dist/allend/Agent/reallocation.d.ts +7 -0
  23. package/dist/allend/Agent/reallocation.js +17 -0
  24. package/dist/allend/Agent/reallocation.js.map +1 -0
  25. package/dist/allend/Agent/realtime.d.ts +36 -0
  26. package/dist/allend/Agent/realtime.js +111 -0
  27. package/dist/allend/Agent/realtime.js.map +1 -0
  28. package/dist/allend/Agent/rides.d.ts +12 -0
  29. package/dist/allend/Agent/rides.js +51 -0
  30. package/dist/allend/Agent/rides.js.map +1 -0
  31. package/dist/allend/Agent/shipping.d.ts +11 -0
  32. package/dist/allend/Agent/shipping.js +43 -0
  33. package/dist/allend/Agent/shipping.js.map +1 -0
  34. package/dist/allend/CSP/analytics.d.ts +12 -0
  35. package/dist/allend/CSP/analytics.js +51 -0
  36. package/dist/allend/CSP/analytics.js.map +1 -0
  37. package/dist/allend/CSP/index.d.ts +25 -0
  38. package/dist/allend/CSP/index.js +43 -0
  39. package/dist/allend/CSP/index.js.map +1 -0
  40. package/dist/allend/CSP/inventory.d.ts +16 -0
  41. package/dist/allend/CSP/inventory.js +78 -0
  42. package/dist/allend/CSP/inventory.js.map +1 -0
  43. package/dist/allend/CSP/orders.d.ts +19 -0
  44. package/dist/allend/CSP/orders.js +97 -0
  45. package/dist/allend/CSP/orders.js.map +1 -0
  46. package/dist/allend/CSP/webhooks.d.ts +13 -0
  47. package/dist/allend/CSP/webhooks.js +56 -0
  48. package/dist/allend/CSP/webhooks.js.map +1 -0
  49. package/dist/allend/Customer/index.d.ts +27 -0
  50. package/dist/allend/Customer/index.js +39 -0
  51. package/dist/allend/Customer/index.js.map +1 -0
  52. package/dist/allend/Customer/intents.d.ts +12 -0
  53. package/dist/allend/Customer/intents.js +55 -0
  54. package/dist/allend/Customer/intents.js.map +1 -0
  55. package/dist/allend/Customer/orders.d.ts +11 -0
  56. package/dist/allend/Customer/orders.js +43 -0
  57. package/dist/allend/Customer/orders.js.map +1 -0
  58. package/dist/allend/Customer/rides.d.ts +12 -0
  59. package/dist/allend/Customer/rides.js +50 -0
  60. package/dist/allend/Customer/rides.js.map +1 -0
  61. package/dist/allend/DEV/developers.d.ts +11 -0
  62. package/dist/allend/DEV/developers.js +35 -0
  63. package/dist/allend/DEV/developers.js.map +1 -0
  64. package/dist/allend/DEV/index.d.ts +19 -0
  65. package/dist/allend/DEV/index.js +37 -0
  66. package/dist/allend/DEV/index.js.map +1 -0
  67. package/dist/allend/IoTClient.js +29 -35
  68. package/dist/allend/IoTClient.js.map +1 -1
  69. package/dist/allend/IoTSP/backend.d.ts +29 -0
  70. package/dist/allend/IoTSP/backend.js +75 -0
  71. package/dist/allend/IoTSP/backend.js.map +1 -0
  72. package/dist/allend/IoTSP/devices.d.ts +14 -0
  73. package/dist/allend/IoTSP/devices.js +61 -0
  74. package/dist/allend/IoTSP/devices.js.map +1 -0
  75. package/dist/allend/IoTSP/index.d.ts +28 -0
  76. package/dist/allend/IoTSP/index.js +84 -0
  77. package/dist/allend/IoTSP/index.js.map +1 -0
  78. package/dist/allend/IoTSP/rules.d.ts +17 -0
  79. package/dist/allend/IoTSP/rules.js +81 -0
  80. package/dist/allend/IoTSP/rules.js.map +1 -0
  81. package/dist/allend/IoTSP/topics.d.ts +17 -0
  82. package/dist/allend/IoTSP/topics.js +81 -0
  83. package/dist/allend/IoTSP/topics.js.map +1 -0
  84. package/dist/allend/LSP/agents.d.ts +20 -0
  85. package/dist/allend/LSP/agents.js +89 -0
  86. package/dist/allend/LSP/agents.js.map +1 -0
  87. package/dist/allend/LSP/carriers.d.ts +54 -0
  88. package/dist/allend/LSP/carriers.js +315 -0
  89. package/dist/allend/LSP/carriers.js.map +1 -0
  90. package/dist/allend/LSP/coverage.d.ts +44 -0
  91. package/dist/allend/LSP/coverage.js +135 -0
  92. package/dist/allend/LSP/coverage.js.map +1 -0
  93. package/dist/allend/LSP/fleets.d.ts +66 -0
  94. package/dist/allend/LSP/fleets.js +381 -0
  95. package/dist/allend/LSP/fleets.js.map +1 -0
  96. package/dist/allend/LSP/hubs.d.ts +39 -0
  97. package/dist/allend/LSP/hubs.js +186 -0
  98. package/dist/allend/LSP/hubs.js.map +1 -0
  99. package/dist/allend/LSP/index.d.ts +37 -0
  100. package/dist/allend/LSP/index.js +55 -0
  101. package/dist/allend/LSP/index.js.map +1 -0
  102. package/dist/allend/LSP/inventory.d.ts +13 -0
  103. package/dist/allend/LSP/inventory.js +56 -0
  104. package/dist/allend/LSP/inventory.js.map +1 -0
  105. package/dist/allend/LSP/operations.d.ts +47 -0
  106. package/dist/allend/LSP/operations.js +156 -0
  107. package/dist/allend/LSP/operations.js.map +1 -0
  108. package/dist/allend/LSP/orders.d.ts +69 -0
  109. package/dist/allend/LSP/orders.js +303 -0
  110. package/dist/allend/LSP/orders.js.map +1 -0
  111. package/dist/allend/LSP/pods.d.ts +26 -0
  112. package/dist/allend/LSP/pods.js +137 -0
  113. package/dist/allend/LSP/pods.js.map +1 -0
  114. package/dist/allend/LSP/pricing.d.ts +35 -0
  115. package/dist/allend/LSP/pricing.js +151 -0
  116. package/dist/allend/LSP/pricing.js.map +1 -0
  117. package/dist/allend/LSP/psl.d.ts +15 -0
  118. package/dist/allend/LSP/psl.js +68 -0
  119. package/dist/allend/LSP/psl.js.map +1 -0
  120. package/dist/allend/LSP/warehouses.d.ts +23 -0
  121. package/dist/allend/LSP/warehouses.js +94 -0
  122. package/dist/allend/LSP/warehouses.js.map +1 -0
  123. package/dist/allend/MSI/Controls.d.ts +9 -5
  124. package/dist/allend/MSI/Controls.js +269 -297
  125. package/dist/allend/MSI/Controls.js.map +1 -1
  126. package/dist/allend/MSI/Handles.d.ts +5 -4
  127. package/dist/allend/MSI/Handles.js +136 -233
  128. package/dist/allend/MSI/Handles.js.map +1 -1
  129. package/dist/allend/MSI/Plugins.d.ts +2 -2
  130. package/dist/allend/MSI/Plugins.js +12 -15
  131. package/dist/allend/MSI/Plugins.js.map +1 -1
  132. package/dist/allend/MSI/index.d.ts +4 -3
  133. package/dist/allend/MSI/index.js +123 -87
  134. package/dist/allend/MSI/index.js.map +1 -1
  135. package/dist/allend/MSI/native.d.ts +32 -0
  136. package/dist/allend/MSI/native.js +246 -0
  137. package/dist/allend/MSI/native.js.map +1 -0
  138. package/dist/allend/MSI/token.d.ts +12 -0
  139. package/dist/allend/MSI/token.js +21 -0
  140. package/dist/allend/MSI/token.js.map +1 -0
  141. package/dist/allend/OTPAuth/index.d.ts +77 -0
  142. package/dist/allend/OTPAuth/index.js +69 -0
  143. package/dist/allend/OTPAuth/index.js.map +1 -0
  144. package/dist/allend/Pipelines/analytics.d.ts +8 -0
  145. package/dist/allend/Pipelines/analytics.js +24 -0
  146. package/dist/allend/Pipelines/analytics.js.map +1 -0
  147. package/dist/allend/Pipelines/escalations.d.ts +8 -0
  148. package/dist/allend/Pipelines/escalations.js +25 -0
  149. package/dist/allend/Pipelines/escalations.js.map +1 -0
  150. package/dist/allend/Pipelines/executions.d.ts +11 -0
  151. package/dist/allend/Pipelines/executions.js +44 -0
  152. package/dist/allend/Pipelines/executions.js.map +1 -0
  153. package/dist/allend/Pipelines/index.d.ts +42 -0
  154. package/dist/allend/Pipelines/index.js +88 -0
  155. package/dist/allend/Pipelines/index.js.map +1 -0
  156. package/dist/allend/Pipelines/interventions.d.ts +8 -0
  157. package/dist/allend/Pipelines/interventions.js +25 -0
  158. package/dist/allend/Pipelines/interventions.js.map +1 -0
  159. package/dist/allend/Pipelines/monitor.d.ts +9 -0
  160. package/dist/allend/Pipelines/monitor.js +30 -0
  161. package/dist/allend/Pipelines/monitor.js.map +1 -0
  162. package/dist/allend/Pipelines/queries.d.ts +8 -0
  163. package/dist/allend/Pipelines/queries.js +25 -0
  164. package/dist/allend/Pipelines/queries.js.map +1 -0
  165. package/dist/allend/Pipelines/templates.d.ts +11 -0
  166. package/dist/allend/Pipelines/templates.js +46 -0
  167. package/dist/allend/Pipelines/templates.js.map +1 -0
  168. package/dist/allend/Pipelines/utils.d.ts +0 -0
  169. package/dist/allend/Pipelines/utils.js +2 -0
  170. package/dist/allend/Pipelines/utils.js.map +1 -0
  171. package/dist/allend/Pipelines/webhooks.d.ts +9 -0
  172. package/dist/allend/Pipelines/webhooks.js +35 -0
  173. package/dist/allend/Pipelines/webhooks.js.map +1 -0
  174. package/dist/allend/Pipelines/workers.d.ts +11 -0
  175. package/dist/allend/Pipelines/workers.js +45 -0
  176. package/dist/allend/Pipelines/workers.js.map +1 -0
  177. package/dist/allend/Queries/capacity.d.ts +11 -0
  178. package/dist/allend/Queries/capacity.js +44 -0
  179. package/dist/allend/Queries/capacity.js.map +1 -0
  180. package/dist/allend/Queries/discovery.d.ts +11 -0
  181. package/dist/allend/Queries/discovery.js +45 -0
  182. package/dist/allend/Queries/discovery.js.map +1 -0
  183. package/dist/allend/Queries/index.d.ts +27 -0
  184. package/dist/allend/Queries/index.js +40 -0
  185. package/dist/allend/Queries/index.js.map +1 -0
  186. package/dist/allend/Queries/matching.d.ts +7 -0
  187. package/dist/allend/Queries/matching.js +18 -0
  188. package/dist/allend/Queries/matching.js.map +1 -0
  189. package/dist/allend/Queries/performance.d.ts +9 -0
  190. package/dist/allend/Queries/performance.js +31 -0
  191. package/dist/allend/Queries/performance.js.map +1 -0
  192. package/dist/allend/Queries/pricing.d.ts +11 -0
  193. package/dist/allend/Queries/pricing.js +43 -0
  194. package/dist/allend/Queries/pricing.js.map +1 -0
  195. package/dist/allend/{DClient/Event.d.ts → Realtime/index.d.ts} +2 -6
  196. package/dist/allend/Realtime/index.js +62 -0
  197. package/dist/allend/Realtime/index.js.map +1 -0
  198. package/dist/allend/Shared/account.d.ts +10 -0
  199. package/dist/allend/Shared/account.js +22 -0
  200. package/dist/allend/Shared/account.js.map +1 -0
  201. package/dist/allend/Shared/buckets.d.ts +21 -0
  202. package/dist/allend/Shared/buckets.js +95 -0
  203. package/dist/allend/Shared/buckets.js.map +1 -0
  204. package/dist/allend/Shared/context.d.ts +14 -0
  205. package/dist/allend/Shared/context.js +33 -0
  206. package/dist/allend/Shared/context.js.map +1 -0
  207. package/dist/allend/Shared/faqs.d.ts +20 -0
  208. package/dist/allend/Shared/faqs.js +87 -0
  209. package/dist/allend/Shared/faqs.js.map +1 -0
  210. package/dist/allend/Shared/invitation.d.ts +42 -0
  211. package/dist/allend/Shared/invitation.js +40 -0
  212. package/dist/allend/Shared/invitation.js.map +1 -0
  213. package/dist/allend/Shared/operators.d.ts +39 -0
  214. package/dist/allend/Shared/operators.js +37 -0
  215. package/dist/allend/Shared/operators.js.map +1 -0
  216. package/dist/allend/Shared/users.d.ts +11 -0
  217. package/dist/allend/Shared/users.js +29 -0
  218. package/dist/allend/Shared/users.js.map +1 -0
  219. package/dist/allend/Tracking/index.d.ts +17 -0
  220. package/dist/allend/Tracking/index.js +39 -0
  221. package/dist/allend/Tracking/index.js.map +1 -0
  222. package/dist/allend/Utilities/common.d.ts +12 -0
  223. package/dist/allend/Utilities/common.js +53 -0
  224. package/dist/allend/Utilities/common.js.map +1 -0
  225. package/dist/allend/Utilities/fares.d.ts +10 -0
  226. package/dist/allend/Utilities/fares.js +39 -0
  227. package/dist/allend/Utilities/fares.js.map +1 -0
  228. package/dist/allend/Utilities/index.d.ts +23 -0
  229. package/dist/allend/Utilities/index.js +36 -0
  230. package/dist/allend/Utilities/index.js.map +1 -0
  231. package/dist/allend/Utilities/nearby.d.ts +9 -0
  232. package/dist/allend/Utilities/nearby.js +32 -0
  233. package/dist/allend/Utilities/nearby.js.map +1 -0
  234. package/dist/allend/Workflows/Client.d.ts +17 -0
  235. package/dist/allend/Workflows/Client.js +50 -0
  236. package/dist/allend/Workflows/Client.js.map +1 -0
  237. package/dist/allend/Workflows/Delivery.d.ts +36 -0
  238. package/dist/allend/Workflows/Delivery.js +16 -0
  239. package/dist/allend/Workflows/Delivery.js.map +1 -0
  240. package/dist/allend/Workflows/index.d.ts +11 -0
  241. package/dist/allend/Workflows/index.js +25 -0
  242. package/dist/allend/Workflows/index.js.map +1 -0
  243. package/dist/allend/Workspace/index.d.ts +162 -0
  244. package/dist/allend/Workspace/index.js +220 -0
  245. package/dist/allend/Workspace/index.js.map +1 -0
  246. package/dist/allend/index.d.ts +8 -5
  247. package/dist/allend/index.js +15 -8
  248. package/dist/allend/index.js.map +1 -1
  249. package/dist/backend/Auth.d.ts +28 -4
  250. package/dist/backend/Auth.js +125 -245
  251. package/dist/backend/Auth.js.map +1 -1
  252. package/dist/baseUrl.d.ts +56 -0
  253. package/dist/baseUrl.js +72 -4
  254. package/dist/baseUrl.js.map +1 -1
  255. package/dist/core.d.ts +88 -0
  256. package/dist/core.js +121 -0
  257. package/dist/core.js.map +1 -0
  258. package/dist/error.d.ts +17 -0
  259. package/dist/error.js +26 -0
  260. package/dist/error.js.map +1 -0
  261. package/dist/index.d.ts +30 -12
  262. package/dist/index.js +38 -14
  263. package/dist/index.js.map +1 -1
  264. package/dist/react-native.d.ts +30 -0
  265. package/dist/react-native.js +55 -0
  266. package/dist/react-native.js.map +1 -0
  267. package/dist/types/access.d.ts +64 -7
  268. package/dist/types/auth.d.ts +17 -17
  269. package/dist/types/channel.d.ts +45 -0
  270. package/dist/types/index.d.ts +379 -237
  271. package/dist/utils/index.d.ts +25 -0
  272. package/dist/utils/index.js +11 -1
  273. package/dist/utils/index.js.map +1 -1
  274. package/dist/utils/stream.js +25 -26
  275. package/dist/utils/stream.js.map +1 -1
  276. package/package.json +38 -18
  277. package/src/allend/Access.ts +143 -13
  278. package/src/allend/Agent/consolidation.ts +43 -0
  279. package/src/allend/Agent/delivery.ts +51 -0
  280. package/src/allend/Agent/dispatch.ts +27 -0
  281. package/src/allend/Agent/index.ts +113 -0
  282. package/src/allend/Agent/navigation.ts +27 -0
  283. package/src/allend/Agent/origin.ts +36 -0
  284. package/src/allend/Agent/reallocation.ts +16 -0
  285. package/src/allend/Agent/realtime.ts +140 -0
  286. package/src/allend/Agent/rides.ts +61 -0
  287. package/src/allend/Agent/shipping.ts +51 -0
  288. package/src/allend/CSP/analytics.ts +61 -0
  289. package/src/allend/CSP/index.ts +57 -0
  290. package/src/allend/CSP/inventory.ts +96 -0
  291. package/src/allend/CSP/orders.ts +121 -0
  292. package/src/allend/CSP/webhooks.ts +68 -0
  293. package/src/allend/Customer/index.ts +56 -0
  294. package/src/allend/Customer/intents.ts +66 -0
  295. package/src/allend/Customer/orders.ts +51 -0
  296. package/src/allend/Customer/rides.ts +60 -0
  297. package/src/allend/DEV/developers.ts +42 -0
  298. package/src/allend/DEV/index.ts +48 -0
  299. package/src/allend/IoTSP/backend.ts +103 -0
  300. package/src/allend/IoTSP/devices.ts +74 -0
  301. package/src/allend/IoTSP/index.ts +69 -0
  302. package/src/allend/IoTSP/rules.ts +99 -0
  303. package/src/allend/IoTSP/topics.ts +99 -0
  304. package/src/allend/LSP/agents.ts +115 -0
  305. package/src/allend/LSP/carriers.ts +408 -0
  306. package/src/allend/LSP/coverage.ts +212 -0
  307. package/src/allend/LSP/fleets.ts +505 -0
  308. package/src/allend/LSP/hubs.ts +245 -0
  309. package/src/allend/LSP/index.ts +75 -0
  310. package/src/allend/LSP/inventory.ts +65 -0
  311. package/src/allend/LSP/operations.ts +202 -0
  312. package/src/allend/LSP/orders.ts +397 -0
  313. package/src/allend/LSP/pods.ts +176 -0
  314. package/src/allend/LSP/pricing.ts +192 -0
  315. package/src/allend/LSP/psl.ts +81 -0
  316. package/src/allend/LSP/warehouses.ts +118 -0
  317. package/src/allend/MSI/Controls.ts +109 -90
  318. package/src/allend/MSI/Handles.ts +24 -15
  319. package/src/allend/MSI/Plugins.ts +3 -3
  320. package/src/allend/MSI/index.ts +85 -16
  321. package/src/allend/MSI/native.tsx +314 -0
  322. package/src/allend/MSI/token.ts +20 -0
  323. package/src/allend/OTPAuth/index.ts +130 -0
  324. package/src/allend/Pipelines/analytics.ts +25 -0
  325. package/src/allend/Pipelines/escalations.ts +26 -0
  326. package/src/allend/Pipelines/executions.ts +51 -0
  327. package/src/allend/Pipelines/index.ts +125 -0
  328. package/src/allend/Pipelines/interventions.ts +27 -0
  329. package/src/allend/Pipelines/monitor.ts +33 -0
  330. package/src/allend/Pipelines/queries.ts +27 -0
  331. package/src/allend/Pipelines/templates.ts +51 -0
  332. package/src/allend/Pipelines/utils.ts +0 -0
  333. package/src/allend/Pipelines/webhooks.ts +36 -0
  334. package/src/allend/Pipelines/workers.ts +49 -0
  335. package/src/allend/Queries/capacity.ts +51 -0
  336. package/src/allend/Queries/discovery.ts +53 -0
  337. package/src/allend/Queries/index.ts +58 -0
  338. package/src/allend/Queries/matching.ts +16 -0
  339. package/src/allend/Queries/performance.ts +35 -0
  340. package/src/allend/Queries/pricing.ts +51 -0
  341. package/src/allend/{DClient/Event.ts → Realtime/index.ts} +23 -22
  342. package/src/allend/Shared/account.ts +24 -0
  343. package/src/allend/Shared/buckets.ts +117 -0
  344. package/src/allend/Shared/context.ts +36 -0
  345. package/src/allend/Shared/faqs.ts +106 -0
  346. package/src/allend/Shared/invitation.ts +77 -0
  347. package/src/allend/Shared/operators.ts +84 -0
  348. package/src/allend/Shared/users.ts +32 -0
  349. package/src/allend/Tracking/index.ts +48 -0
  350. package/src/allend/Utilities/common.ts +63 -0
  351. package/src/allend/Utilities/fares.ts +45 -0
  352. package/src/allend/Utilities/index.ts +52 -0
  353. package/src/allend/Utilities/nearby.ts +36 -0
  354. package/src/allend/{DClient → Workflows}/Client.ts +12 -22
  355. package/src/allend/Workflows/Delivery.ts +94 -0
  356. package/src/allend/Workflows/index.ts +31 -0
  357. package/src/allend/Workspace/index.ts +302 -0
  358. package/src/allend/index.ts +23 -10
  359. package/src/backend/Auth.ts +68 -35
  360. package/src/baseUrl.ts +81 -7
  361. package/src/core.ts +145 -0
  362. package/src/error.ts +27 -0
  363. package/src/index.ts +25 -17
  364. package/src/react-native.ts +43 -0
  365. package/src/types/access.d.ts +64 -7
  366. package/src/types/auth.d.ts +17 -17
  367. package/src/types/channel.d.ts +45 -0
  368. package/src/types/index.d.ts +379 -237
  369. package/src/utils/index.ts +33 -1
  370. package/dist/allend/DAuth/index.d.ts +0 -20
  371. package/dist/allend/DAuth/index.js +0 -92
  372. package/dist/allend/DAuth/index.js.map +0 -1
  373. package/dist/allend/DClient/Client.d.ts +0 -10
  374. package/dist/allend/DClient/Client.js +0 -144
  375. package/dist/allend/DClient/Client.js.map +0 -1
  376. package/dist/allend/DClient/Event.js +0 -100
  377. package/dist/allend/DClient/Event.js.map +0 -1
  378. package/dist/allend/DClient/Order.d.ts +0 -49
  379. package/dist/allend/DClient/Order.js +0 -601
  380. package/dist/allend/DClient/Order.js.map +0 -1
  381. package/dist/bundle.js +0 -1
  382. package/src/allend/DAuth/index.ts +0 -39
  383. package/src/allend/DClient/Order.ts +0 -452
@@ -0,0 +1,397 @@
1
+ import type {
2
+ LSPOrderCompleteValidation,
3
+ LSPOrderCancelValidation,
4
+ LSPOrderFailValidation,
5
+ LSPOrderUpdateStageValidation,
6
+ LSPOrderGetStatusValidation,
7
+ LSPOrderListValidation,
8
+ LSPOrderGetValidation,
9
+ LSPOrderSubscribeValidation,
10
+ LSPOrderRequeueValidation
11
+ } from '@de./types/lsp/order/management'
12
+ import type {
13
+ LSPOrderIntakeCreateValidation,
14
+ LSPOrderIntakeApproveValidation
15
+ } from '@de./types/lsp/order/delivery'
16
+ import type {
17
+ LSPInboundOrderCreateValidation,
18
+ LSPInboundOrderCompleteValidation,
19
+ LSPInboundOrderUpdateValidation,
20
+ LSPInboundOrderRetrieveValidation,
21
+ LSPInboundOrderListValidation,
22
+ LSPInboundOrderUpdateStatusValidation,
23
+ LSPInboundOrderAssignValidation
24
+ } from '@de./types/lsp/order/inbound'
25
+ import type {
26
+ LSPTaskCreateValidation,
27
+ LSPTaskListValidation,
28
+ LSPTaskRetrieveValidation,
29
+ LSPTaskUpdateValidation,
30
+ LSPTaskUpdateStatusValidation,
31
+ LSPTaskCompleteValidation,
32
+ LSPTaskBatchCreateValidation,
33
+ LSPTaskCancelValidation,
34
+ LSPTaskPerformanceValidation,
35
+ LSPTaskAssignValidation
36
+ } from '@de./types/lsp/order/internal'
37
+ import type {
38
+ LSPShipmentCreateValidation,
39
+ LSPShipmentUpdateValidation,
40
+ LSPShipmentRetrieveValidation,
41
+ LSPShipmentFetchValidation,
42
+ LSPShipmentUpdateStatusValidation,
43
+ LSPShipmentAddPackageValidation
44
+ } from '@de./types/lsp/operations'
45
+ import type {
46
+ LSPShippingOrderRetrieveValidation,
47
+ LSPShippingOrderListValidation,
48
+ LSPShippingOrderAssignOrUnassignValidation,
49
+ LSPShippingOrderRefOnlyValidation,
50
+ LSPShippingOrderCompleteValidation
51
+ } from '@de./types/lsp/order/shipping'
52
+ import { qs, type Http, type Res, type Data } from '../../utils'
53
+
54
+ // ── LSP Orders ────────────────────────────────────────────────────────────────
55
+
56
+ export default class LSPOrders {
57
+ constructor( private http: Http ){}
58
+
59
+ // ── Rally Intake ──────────────────────────────────────────────────────────
60
+
61
+ /**
62
+ * Submit a delivery order for rally dispatch.
63
+ *
64
+ * `batchStatus` in the reply says what the engine did with it: FORMING and
65
+ * DISPATCHED mean it joined a batch, DIRECT that it was sent on its own,
66
+ * and the SENDER_* values that the sender's own limits stopped it. All four
67
+ * are successful submissions — only an error is a failure to submit.
68
+ */
69
+ async create( body: LSPOrderIntakeCreateValidation['body'] ): Promise<LSPOrderIntakeCreateValidation['response']> {
70
+ return await this.http.request<LSPOrderIntakeCreateValidation['response']>({
71
+ url: '/lsp/orders',
72
+ method: 'POST',
73
+ body
74
+ })
75
+ }
76
+
77
+ /** Release an order the engine is holding for the sender's approval. */
78
+ async approve( reference: string ): Promise<LSPOrderIntakeApproveValidation['response']> {
79
+ return await this.http.request<LSPOrderIntakeApproveValidation['response']>({
80
+ url: `/lsp/orders/${reference}/approve`,
81
+ method: 'POST'
82
+ })
83
+ }
84
+
85
+ // ── Order Management ──────────────────────────────────────────────────────
86
+
87
+ async list( querystring?: LSPOrderListValidation['querystring'] ): Promise<LSPOrderListValidation['response']> {
88
+ return await this.http.request<LSPOrderListValidation['response']>({
89
+ url: `/lsp/orders${qs( querystring )}`,
90
+ method: 'GET'
91
+ })
92
+ }
93
+
94
+ async get( reference: string ): Promise<LSPOrderGetValidation['response']> {
95
+ return await this.http.request<LSPOrderGetValidation['response']>({
96
+ url: `/lsp/orders/${reference}`,
97
+ method: 'GET'
98
+ })
99
+ }
100
+
101
+ async getStatus( reference: string ): Promise<LSPOrderGetStatusValidation['response']> {
102
+ return await this.http.request<LSPOrderGetStatusValidation['response']>({
103
+ url: `/lsp/orders/${reference}/status`,
104
+ method: 'GET'
105
+ })
106
+ }
107
+
108
+ async complete( reference: string, body: LSPOrderCompleteValidation['body'] ): Promise<LSPOrderCompleteValidation['response']> {
109
+ return await this.http.request<LSPOrderCompleteValidation['response']>({
110
+ url: `/lsp/orders/${reference}/complete`,
111
+ method: 'PATCH',
112
+ body
113
+ })
114
+ }
115
+
116
+ /**
117
+ * Put a stalled order back into a zone's dispatch queue.
118
+ *
119
+ * The coordinator's intervention when nothing has picked the order up —
120
+ * `zoneId` is where to try next, which need not be where it started.
121
+ */
122
+ async requeue( reference: string, body: LSPOrderRequeueValidation['body'] ): Promise<LSPOrderRequeueValidation['response']> {
123
+ return await this.http.request<LSPOrderRequeueValidation['response']>({
124
+ url: `/lsp/orders/${reference}/requeue`,
125
+ method: 'POST',
126
+ body
127
+ })
128
+ }
129
+
130
+ async cancel( reference: string, body: LSPOrderCancelValidation['body'] ): Promise<LSPOrderCancelValidation['response']> {
131
+ return await this.http.request<LSPOrderCancelValidation['response']>({
132
+ url: `/lsp/orders/${reference}/cancel`,
133
+ method: 'PATCH',
134
+ body
135
+ })
136
+ }
137
+
138
+ async fail( reference: string, body: LSPOrderFailValidation['body'] ): Promise<LSPOrderFailValidation['response']> {
139
+ return await this.http.request<LSPOrderFailValidation['response']>({
140
+ url: `/lsp/orders/${reference}/fail`,
141
+ method: 'PATCH',
142
+ body
143
+ })
144
+ }
145
+
146
+ async updateStage( reference: string, body: LSPOrderUpdateStageValidation['body'] ): Promise<LSPOrderUpdateStageValidation['response']> {
147
+ return await this.http.request<LSPOrderUpdateStageValidation['response']>({
148
+ url: `/lsp/orders/${reference}/stage`,
149
+ method: 'PATCH',
150
+ body
151
+ })
152
+ }
153
+
154
+ async subscribe( id: string, reference: string ): Promise<LSPOrderSubscribeValidation['response']> {
155
+ return await this.http.request<LSPOrderSubscribeValidation['response']>({
156
+ url: `/lsp/orders/${reference}/track/subscribe`,
157
+ method: 'POST',
158
+ body: { id }
159
+ })
160
+ }
161
+
162
+ // ── Inbound Orders ────────────────────────────────────────────────────────
163
+
164
+ async createInbound( facilityId: string, body: LSPInboundOrderCreateValidation['body'] ): Promise<LSPInboundOrderCreateValidation['response']> {
165
+ return await this.http.request<LSPInboundOrderCreateValidation['response']>({
166
+ url: `/lsp/${facilityId}/inbound/create`,
167
+ method: 'POST',
168
+ body
169
+ })
170
+ }
171
+
172
+ async completeInbound( facilityId: string, reference: string, body: LSPInboundOrderCompleteValidation['body'] ): Promise<LSPInboundOrderCompleteValidation['response']> {
173
+ return await this.http.request<LSPInboundOrderCompleteValidation['response']>({
174
+ url: `/lsp/${facilityId}/inbound/${reference}/complete`,
175
+ method: 'POST',
176
+ body
177
+ })
178
+ }
179
+
180
+ async listInbound( facilityId: string, querystring?: LSPInboundOrderListValidation['querystring'] ): Promise<LSPInboundOrderListValidation['response']> {
181
+ return await this.http.request<LSPInboundOrderListValidation['response']>({
182
+ url: `/lsp/${facilityId}/inbound${qs( querystring )}`,
183
+ method: 'GET'
184
+ })
185
+ }
186
+
187
+ async retrieveInbound( facilityId: string, reference: string ): Promise<LSPInboundOrderRetrieveValidation['response']> {
188
+ return await this.http.request<LSPInboundOrderRetrieveValidation['response']>({
189
+ url: `/lsp/${facilityId}/inbound/${reference}`,
190
+ method: 'GET'
191
+ })
192
+ }
193
+
194
+ async updateInbound( facilityId: string, reference: string, body: LSPInboundOrderUpdateValidation['body'] ): Promise<LSPInboundOrderUpdateValidation['response']> {
195
+ return await this.http.request<LSPInboundOrderUpdateValidation['response']>({
196
+ url: `/lsp/${facilityId}/inbound/${reference}`,
197
+ method: 'PATCH',
198
+ body
199
+ })
200
+ }
201
+
202
+ async updateInboundStatus( facilityId: string, reference: string, body: LSPInboundOrderUpdateStatusValidation['body'] ): Promise<LSPInboundOrderUpdateStatusValidation['response']> {
203
+ return await this.http.request<LSPInboundOrderUpdateStatusValidation['response']>({
204
+ url: `/lsp/${facilityId}/inbound/${reference}/status`,
205
+ method: 'PATCH',
206
+ body
207
+ })
208
+ }
209
+
210
+ async assignOrUnassignInbound( facilityId: string, reference: string, action: LSPInboundOrderAssignValidation['params']['action'], to: LSPInboundOrderAssignValidation['params']['to'], body: LSPInboundOrderAssignValidation['body'] ): Promise<LSPInboundOrderAssignValidation['response']> {
211
+ return await this.http.request<LSPInboundOrderAssignValidation['response']>({
212
+ url: `/lsp/${facilityId}/inbound/${reference}/${action}/${to}`,
213
+ method: 'PATCH',
214
+ body
215
+ })
216
+ }
217
+
218
+ // ── Tasks ─────────────────────────────────────────────────────────────────
219
+
220
+ async createTask( facilityId: string, body: LSPTaskCreateValidation['body'] ): Promise<LSPTaskCreateValidation['response']> {
221
+ return await this.http.request<LSPTaskCreateValidation['response']>({
222
+ url: `/lsp/${facilityId}/tasks/create`,
223
+ method: 'POST',
224
+ body
225
+ })
226
+ }
227
+
228
+ async createTaskBatch( facilityId: string, body: LSPTaskBatchCreateValidation['body'] ): Promise<LSPTaskBatchCreateValidation['response']> {
229
+ return await this.http.request<LSPTaskBatchCreateValidation['response']>({
230
+ url: `/lsp/${facilityId}/tasks/batch`,
231
+ method: 'POST',
232
+ body
233
+ })
234
+ }
235
+
236
+ async completeTask( facilityId: string, reference: string, body: LSPTaskCompleteValidation['body'] ): Promise<LSPTaskCompleteValidation['response']> {
237
+ return await this.http.request<LSPTaskCompleteValidation['response']>({
238
+ url: `/lsp/${facilityId}/tasks/${reference}/complete`,
239
+ method: 'POST',
240
+ body
241
+ })
242
+ }
243
+
244
+ async listTasks( facilityId: string, querystring?: LSPTaskListValidation['querystring'] ): Promise<LSPTaskListValidation['response']> {
245
+ return await this.http.request<LSPTaskListValidation['response']>({
246
+ url: `/lsp/${facilityId}/tasks${qs( querystring )}`,
247
+ method: 'GET'
248
+ })
249
+ }
250
+
251
+ async retrieveTask( facilityId: string, reference: string ): Promise<LSPTaskRetrieveValidation['response']> {
252
+ return await this.http.request<LSPTaskRetrieveValidation['response']>({
253
+ url: `/lsp/${facilityId}/tasks/${reference}`,
254
+ method: 'GET'
255
+ })
256
+ }
257
+
258
+ async getTaskPerformance( facilityId: string, querystring: LSPTaskPerformanceValidation['querystring'] ): Promise<LSPTaskPerformanceValidation['response']> {
259
+ return await this.http.request<LSPTaskPerformanceValidation['response']>({
260
+ url: `/lsp/${facilityId}/tasks/metrics/performance${qs( querystring )}`,
261
+ method: 'GET'
262
+ })
263
+ }
264
+
265
+ async updateTask( facilityId: string, reference: string, body: LSPTaskUpdateValidation['body'] ): Promise<LSPTaskUpdateValidation['response']> {
266
+ return await this.http.request<LSPTaskUpdateValidation['response']>({
267
+ url: `/lsp/${facilityId}/tasks/${reference}`,
268
+ method: 'PATCH',
269
+ body
270
+ })
271
+ }
272
+
273
+ async updateTaskStatus( facilityId: string, reference: string, body: LSPTaskUpdateStatusValidation['body'] ): Promise<LSPTaskUpdateStatusValidation['response']> {
274
+ return await this.http.request<LSPTaskUpdateStatusValidation['response']>({
275
+ url: `/lsp/${facilityId}/tasks/${reference}/status`,
276
+ method: 'PATCH',
277
+ body
278
+ })
279
+ }
280
+
281
+ async assignOrUnassignTask( facilityId: string, reference: string, action: LSPTaskAssignValidation['params']['action'], to: LSPTaskAssignValidation['params']['to'], body: LSPTaskAssignValidation['body'] ): Promise<LSPTaskAssignValidation['response']> {
282
+ return await this.http.request<LSPTaskAssignValidation['response']>({
283
+ url: `/lsp/${facilityId}/tasks/${reference}/${action}/${to}`,
284
+ method: 'PATCH',
285
+ body
286
+ })
287
+ }
288
+
289
+ async cancelTask( facilityId: string, reference: string, body: LSPTaskCancelValidation['body'] ): Promise<LSPTaskCancelValidation['response']> {
290
+ return await this.http.request<LSPTaskCancelValidation['response']>({
291
+ url: `/lsp/${facilityId}/tasks/${reference}/cancel`,
292
+ method: 'DELETE',
293
+ body
294
+ })
295
+ }
296
+
297
+ // ── Shipments ─────────────────────────────────────────────────────────────
298
+
299
+ async createShipment( reference: string, body: LSPShipmentCreateValidation['body'] ): Promise<LSPShipmentCreateValidation['response']> {
300
+ return await this.http.request<LSPShipmentCreateValidation['response']>({
301
+ url: `/lsp/orders/${reference}/shipments`,
302
+ method: 'POST',
303
+ body
304
+ })
305
+ }
306
+
307
+ async listShipments( querystring?: LSPShipmentFetchValidation['querystring'] ): Promise<LSPShipmentFetchValidation['response']> {
308
+ return await this.http.request<LSPShipmentFetchValidation['response']>({
309
+ url: `/lsp/shipments${qs( querystring )}`,
310
+ method: 'GET'
311
+ })
312
+ }
313
+
314
+ async retrieveShipment( reference: string ): Promise<LSPShipmentRetrieveValidation['response']> {
315
+ return await this.http.request<LSPShipmentRetrieveValidation['response']>({
316
+ url: `/lsp/shipments/${reference}`,
317
+ method: 'GET'
318
+ })
319
+ }
320
+
321
+ async updateShipment( reference: string, body: LSPShipmentUpdateValidation['body'] ): Promise<LSPShipmentUpdateValidation['response']> {
322
+ return await this.http.request<LSPShipmentUpdateValidation['response']>({
323
+ url: `/lsp/shipments/${reference}`,
324
+ method: 'PATCH',
325
+ body
326
+ })
327
+ }
328
+
329
+ async updateShipmentStatus( reference: string, body: LSPShipmentUpdateStatusValidation['body'] ): Promise<LSPShipmentUpdateStatusValidation['response']> {
330
+ return await this.http.request<LSPShipmentUpdateStatusValidation['response']>({
331
+ url: `/lsp/shipments/${reference}/status`,
332
+ method: 'PATCH',
333
+ body
334
+ })
335
+ }
336
+
337
+ async addShipmentPackage( reference: string, body: LSPShipmentAddPackageValidation['body'] ): Promise<LSPShipmentAddPackageValidation['response']> {
338
+ return await this.http.request<LSPShipmentAddPackageValidation['response']>({
339
+ url: `/lsp/shipments/${reference}/packages`,
340
+ method: 'POST',
341
+ body
342
+ })
343
+ }
344
+
345
+ // ── Shipping Orders ───────────────────────────────────────────────────────
346
+
347
+ async listShipping( querystring?: LSPShippingOrderListValidation['querystring'] ): Promise<LSPShippingOrderListValidation['response']> {
348
+ return await this.http.request<LSPShippingOrderListValidation['response']>({
349
+ url: `/lsp/shipping${qs( querystring )}`,
350
+ method: 'GET'
351
+ })
352
+ }
353
+
354
+ async retrieveShipping( reference: string ): Promise<LSPShippingOrderRetrieveValidation['response']> {
355
+ return await this.http.request<LSPShippingOrderRetrieveValidation['response']>({
356
+ url: `/lsp/shipping/${reference}`,
357
+ method: 'GET'
358
+ })
359
+ }
360
+
361
+ async completeShipping( reference: string, body: LSPShippingOrderCompleteValidation['body'] ): Promise<LSPShippingOrderCompleteValidation['response']> {
362
+ return await this.http.request<LSPShippingOrderCompleteValidation['response']>({
363
+ url: `/lsp/shipping/${reference}/complete`,
364
+ method: 'PATCH',
365
+ body
366
+ })
367
+ }
368
+
369
+ async approveShipping( reference: string ): Promise<LSPShippingOrderRefOnlyValidation['response']> {
370
+ return await this.http.request<LSPShippingOrderRefOnlyValidation['response']>({
371
+ url: `/lsp/shipping/${reference}/approve`,
372
+ method: 'PATCH'
373
+ })
374
+ }
375
+
376
+ async suspendShipping( reference: string ): Promise<LSPShippingOrderRefOnlyValidation['response']> {
377
+ return await this.http.request<LSPShippingOrderRefOnlyValidation['response']>({
378
+ url: `/lsp/shipping/${reference}/suspend`,
379
+ method: 'PATCH'
380
+ })
381
+ }
382
+
383
+ async cancelShipping( reference: string ): Promise<LSPShippingOrderRefOnlyValidation['response']> {
384
+ return await this.http.request<LSPShippingOrderRefOnlyValidation['response']>({
385
+ url: `/lsp/shipping/${reference}/cancel`,
386
+ method: 'PATCH'
387
+ })
388
+ }
389
+
390
+ async assignOrUnassignShipping( reference: string, action: 'assign' | 'unassign', to: 'agent' | 'operator', body: { id: string } ): Promise<LSPShippingOrderAssignOrUnassignValidation['response']> {
391
+ return await this.http.request<LSPShippingOrderAssignOrUnassignValidation['response']>({
392
+ url: `/lsp/shipping/${reference}/${action}/${to}`,
393
+ method: 'PATCH',
394
+ body
395
+ })
396
+ }
397
+ }
@@ -0,0 +1,176 @@
1
+ import type { APIResponseBase } from '@de./types'
2
+ import type {
3
+ LSPPodCreateValidation,
4
+ LSPPodRetrieveValidation,
5
+ LSPPodListValidation,
6
+ LSPPodUpdateValidation,
7
+ LSPPodUpdateStatusValidation,
8
+ LSPPodRemoveValidation,
9
+ LSPPodRegisterCpointValidation,
10
+ LSPPodRegisterGraphNodeValidation,
11
+ LSPPodCompartmentListValidation,
12
+ LSPPodCompartmentRetrieveValidation,
13
+ LSPPodCompartmentReserveValidation,
14
+ LSPPodCompartmentCollectValidation,
15
+ LSPPodCompartmentReleaseValidation,
16
+ LSPPodCompartmentMarkFaultyValidation,
17
+ LSPPodCompartmentLoadValidation,
18
+ LSPPodCompartmentUnlockValidation,
19
+ LSPPodDroneConfirmDepositValidation,
20
+ LSPPodDroneOpenHatchValidation,
21
+ LSPPodDroneCloseHatchValidation
22
+ } from '@de./types/lsp/pod'
23
+ import { qs, type Http, type Res, type Data } from '../../utils'
24
+
25
+ // ── LSP Pods ──────────────────────────────────────────────────────────────────
26
+
27
+ export default class LSPPods {
28
+ constructor( private http: Http ){}
29
+
30
+ async create( body: LSPPodCreateValidation['body'] ): Promise<LSPPodCreateValidation['response']> {
31
+ return await this.http.request<LSPPodCreateValidation['response']>({
32
+ url: '/lsp/pods',
33
+ method: 'POST',
34
+ body
35
+ })
36
+ }
37
+
38
+ async list( querystring?: LSPPodListValidation['querystring'] ): Promise<LSPPodListValidation['response']> {
39
+ return await this.http.request<LSPPodListValidation['response']>({
40
+ url: `/lsp/pods${qs( querystring )}`,
41
+ method: 'GET'
42
+ })
43
+ }
44
+
45
+ async retrieve( id: string ): Promise<LSPPodRetrieveValidation['response']> {
46
+ return await this.http.request<LSPPodRetrieveValidation['response']>({
47
+ url: `/lsp/pods/${id}`,
48
+ method: 'GET'
49
+ })
50
+ }
51
+
52
+ async update( id: string, body: LSPPodUpdateValidation['body'] ): Promise<LSPPodUpdateValidation['response']> {
53
+ return await this.http.request<LSPPodUpdateValidation['response']>({
54
+ url: `/lsp/pods/${id}`,
55
+ method: 'PATCH',
56
+ body
57
+ })
58
+ }
59
+
60
+ async updateStatus( id: string, body: LSPPodUpdateStatusValidation['body'] ): Promise<LSPPodUpdateStatusValidation['response']> {
61
+ return await this.http.request<LSPPodUpdateStatusValidation['response']>({
62
+ url: `/lsp/pods/${id}/status`,
63
+ method: 'PATCH',
64
+ body
65
+ })
66
+ }
67
+
68
+ async remove( id: string ): Promise<APIResponseBase> {
69
+ return await this.http.request<APIResponseBase>({
70
+ url: `/lsp/pods/${id}`,
71
+ method: 'DELETE'
72
+ })
73
+ }
74
+
75
+ async registerAsConsolidationPoint( id: string, body: LSPPodRegisterCpointValidation['body'] ): Promise<LSPPodRegisterCpointValidation['response']> {
76
+ return await this.http.request<LSPPodRegisterCpointValidation['response']>({
77
+ url: `/lsp/pods/${id}/as/consolidation-point`,
78
+ method: 'POST',
79
+ body
80
+ })
81
+ }
82
+
83
+ async registerAsGraphNode( id: string, body: LSPPodRegisterGraphNodeValidation['body'] ): Promise<LSPPodRegisterGraphNodeValidation['response']> {
84
+ return await this.http.request<LSPPodRegisterGraphNodeValidation['response']>({
85
+ url: `/lsp/pods/${id}/as/graph-node`,
86
+ method: 'POST',
87
+ body
88
+ })
89
+ }
90
+
91
+ // ── Compartments ──────────────────────────────────────────────────────────
92
+
93
+ async listCompartments( podId: string, querystring?: LSPPodCompartmentListValidation['querystring'] ): Promise<LSPPodCompartmentListValidation['response']> {
94
+ return await this.http.request<LSPPodCompartmentListValidation['response']>({
95
+ url: `/lsp/pods/${podId}/compartments${qs( querystring )}`,
96
+ method: 'GET'
97
+ })
98
+ }
99
+
100
+ async retrieveCompartment( podId: string, id: string ): Promise<LSPPodCompartmentRetrieveValidation['response']> {
101
+ return await this.http.request<LSPPodCompartmentRetrieveValidation['response']>({
102
+ url: `/lsp/pods/${podId}/compartments/${id}`,
103
+ method: 'GET'
104
+ })
105
+ }
106
+
107
+ async reserveCompartment( podId: string, id: string, body: LSPPodCompartmentReserveValidation['body'] ): Promise<LSPPodCompartmentReserveValidation['response']> {
108
+ return await this.http.request<LSPPodCompartmentReserveValidation['response']>({
109
+ url: `/lsp/pods/${podId}/compartments/${id}/reserve`,
110
+ method: 'POST',
111
+ body
112
+ })
113
+ }
114
+
115
+ async loadCompartment( podId: string, id: string ): Promise<LSPPodCompartmentLoadValidation['response']> {
116
+ return await this.http.request<LSPPodCompartmentLoadValidation['response']>({
117
+ url: `/lsp/pods/${podId}/compartments/${id}/load`,
118
+ method: 'POST'
119
+ })
120
+ }
121
+
122
+ async unlockCompartment( podId: string, id: string ): Promise<LSPPodCompartmentUnlockValidation['response']> {
123
+ return await this.http.request<LSPPodCompartmentUnlockValidation['response']>({
124
+ url: `/lsp/pods/${podId}/compartments/${id}/unlock`,
125
+ method: 'POST'
126
+ })
127
+ }
128
+
129
+ async collectCompartment( podId: string, id: string, body: LSPPodCompartmentCollectValidation['body'] ): Promise<LSPPodCompartmentCollectValidation['response']> {
130
+ return await this.http.request<LSPPodCompartmentCollectValidation['response']>({
131
+ url: `/lsp/pods/${podId}/compartments/${id}/collect`,
132
+ method: 'POST',
133
+ body
134
+ })
135
+ }
136
+
137
+ async releaseCompartment( podId: string, id: string, body: LSPPodCompartmentReleaseValidation['body'] ): Promise<LSPPodCompartmentReleaseValidation['response']> {
138
+ return await this.http.request<LSPPodCompartmentReleaseValidation['response']>({
139
+ url: `/lsp/pods/${podId}/compartments/${id}/release`,
140
+ method: 'POST',
141
+ body
142
+ })
143
+ }
144
+
145
+ async markCompartmentFaulty( podId: string, id: string, body: LSPPodCompartmentMarkFaultyValidation['body'] ): Promise<LSPPodCompartmentMarkFaultyValidation['response']> {
146
+ return await this.http.request<LSPPodCompartmentMarkFaultyValidation['response']>({
147
+ url: `/lsp/pods/${podId}/compartments/${id}/faulty`,
148
+ method: 'POST',
149
+ body
150
+ })
151
+ }
152
+
153
+ // ── Drone ─────────────────────────────────────────────────────────────────
154
+
155
+ async openDroneHatch( podId: string, id: string ): Promise<LSPPodDroneOpenHatchValidation['response']> {
156
+ return await this.http.request<LSPPodDroneOpenHatchValidation['response']>({
157
+ url: `/lsp/pods/${podId}/drone/${id}/hatch/open`,
158
+ method: 'POST'
159
+ })
160
+ }
161
+
162
+ async closeDroneHatch( podId: string, id: string ): Promise<LSPPodDroneCloseHatchValidation['response']> {
163
+ return await this.http.request<LSPPodDroneCloseHatchValidation['response']>({
164
+ url: `/lsp/pods/${podId}/drone/${id}/hatch/close`,
165
+ method: 'POST'
166
+ })
167
+ }
168
+
169
+ async confirmDroneDeposit( podId: string, id: string, body: LSPPodDroneConfirmDepositValidation['body'] ): Promise<LSPPodDroneConfirmDepositValidation['response']> {
170
+ return await this.http.request<LSPPodDroneConfirmDepositValidation['response']>({
171
+ url: `/lsp/pods/${podId}/drone/${id}/deposit/confirm`,
172
+ method: 'POST',
173
+ body
174
+ })
175
+ }
176
+ }