@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,408 @@
1
+ import type { APIResponseBase } from '@de./types'
2
+ import type {
3
+ LSPCarrierCreateValidation,
4
+ LSPCarrierRetrieveValidation,
5
+ LSPCarrierListValidation,
6
+ LSPCarrierUpdateValidation,
7
+ LSPCarrierUpdateStatusValidation,
8
+ LSPCarrierRemoveValidation,
9
+ LSPCarrierGetTransportCapabilityValidation,
10
+ LSPCarrierSetTransportCapabilityValidation,
11
+ LSPCarrierUpdateTransportCapabilityValidation,
12
+ LSPCarrierDeleteTransportCapabilityValidation,
13
+ LSPCarrierGetFleetCapabilityValidation,
14
+ LSPCarrierSetFleetCapabilityValidation,
15
+ LSPCarrierUpdateFleetCapabilityValidation,
16
+ LSPCarrierGetHandlingCapabilityValidation,
17
+ LSPCarrierSetHandlingCapabilityValidation,
18
+ LSPCarrierUpdateHandlingCapabilityValidation,
19
+ LSPCarrierGetCoverageCapabilityValidation,
20
+ LSPCarrierSetCoverageCapabilityValidation,
21
+ LSPCarrierUpdateCoverageCapabilityValidation,
22
+ LSPCarrierGetTechnologyCapabilityValidation,
23
+ LSPCarrierSetTechnologyCapabilityValidation,
24
+ LSPCarrierUpdateTechnologyCapabilityValidation,
25
+ LSPCarrierGetServiceCapabilityValidation,
26
+ LSPCarrierSetServiceCapabilityValidation,
27
+ LSPCarrierUpdateServiceCapabilityValidation,
28
+ LSPCarrierGetComplianceCapabilityValidation,
29
+ LSPCarrierSetComplianceCapabilityValidation,
30
+ LSPCarrierUpdateComplianceCapabilityValidation,
31
+ LSPCarrierGetAllCapabilitiesValidation,
32
+ LSPCarrierBulkCapabilitiesUpdateValidation,
33
+ LSPCarrierGetCapabilityInsightsValidation,
34
+ LSPCarrierValidateCapabilityValidation,
35
+ LSPCarrierGetFleetCapacityValidation,
36
+ LSPCarrierSetFleetCapacityValidation,
37
+ LSPCarrierGetServiceCapacityValidation,
38
+ LSPCarrierSetServiceCapacityValidation,
39
+ LSPCarrierGetOperationalCapacityValidation,
40
+ LSPCarrierSetOperationalCapacityValidation,
41
+ LSPCarrierGetNetworkCapacityValidation,
42
+ LSPCarrierSetNetworkCapacityValidation,
43
+ LSPCarrierGetTechnologyCapacityValidation,
44
+ LSPCarrierSetTechnologyCapacityValidation,
45
+ LSPCarrierGetFinancialCapacityValidation,
46
+ LSPCarrierSetFinancialCapacityValidation,
47
+ LSPCarrierGetAllCapacitiesValidation
48
+ } from '@de./types/lsp/carrier'
49
+ import type { LSPPricingBindToValidation } from '@de./types/lsp/pricing'
50
+ import { qs, type Http, type Res, type Data } from '../../utils'
51
+
52
+ // ── LSP Carriers ──────────────────────────────────────────────────────────────
53
+
54
+ export default class LSPCarriers {
55
+ constructor( private http: Http ){}
56
+
57
+ async create( body: LSPCarrierCreateValidation['body'] ): Promise<LSPCarrierCreateValidation['response']> {
58
+ return await this.http.request<LSPCarrierCreateValidation['response']>({
59
+ url: '/lsp/carriers/create',
60
+ method: 'POST',
61
+ body
62
+ })
63
+ }
64
+
65
+ async list( querystring?: LSPCarrierListValidation['querystring'] ): Promise<LSPCarrierListValidation['response']> {
66
+ return await this.http.request<LSPCarrierListValidation['response']>({
67
+ url: `/lsp/carriers${qs( querystring )}`,
68
+ method: 'GET'
69
+ })
70
+ }
71
+
72
+ async retrieve( id: string ): Promise<LSPCarrierRetrieveValidation['response']> {
73
+ return await this.http.request<LSPCarrierRetrieveValidation['response']>({
74
+ url: `/lsp/carriers/${id}`,
75
+ method: 'GET'
76
+ })
77
+ }
78
+
79
+ async update( id: string, body: LSPCarrierUpdateValidation['body'] ): Promise<LSPCarrierUpdateValidation['response']> {
80
+ return await this.http.request<LSPCarrierUpdateValidation['response']>({
81
+ url: `/lsp/carriers/${id}`,
82
+ method: 'PATCH',
83
+ body
84
+ })
85
+ }
86
+
87
+ async updateStatus( id: string, body: LSPCarrierUpdateStatusValidation['body'] ): Promise<LSPCarrierUpdateStatusValidation['response']> {
88
+ return await this.http.request<LSPCarrierUpdateStatusValidation['response']>({
89
+ url: `/lsp/carriers/${id}/status`,
90
+ method: 'PATCH',
91
+ body
92
+ })
93
+ }
94
+
95
+ async remove( id: string ): Promise<APIResponseBase> {
96
+ return await this.http.request<APIResponseBase>({
97
+ url: `/lsp/carriers/${id}`,
98
+ method: 'DELETE'
99
+ })
100
+ }
101
+
102
+ async bindPricing( id: string, action: LSPPricingBindToValidation['params']['action'], body: LSPPricingBindToValidation['body'] ): Promise<LSPPricingBindToValidation['response']> {
103
+ return await this.http.request<LSPPricingBindToValidation['response']>({
104
+ url: `/lsp/carriers/${id}/pricing/${action}`,
105
+ method: 'PUT',
106
+ body
107
+ })
108
+ }
109
+
110
+ // ── Capabilities ──────────────────────────────────────────────────────────────
111
+
112
+ async getAllCapabilities( id: string ): Promise<LSPCarrierGetAllCapabilitiesValidation['response']> {
113
+ return await this.http.request<LSPCarrierGetAllCapabilitiesValidation['response']>({
114
+ url: `/lsp/carriers/${id}/capabilities`,
115
+ method: 'GET'
116
+ })
117
+ }
118
+
119
+ async getTransportCapability( id: string ): Promise<LSPCarrierGetTransportCapabilityValidation['response']> {
120
+ return await this.http.request<LSPCarrierGetTransportCapabilityValidation['response']>({
121
+ url: `/lsp/carriers/${id}/capabilities/transport`,
122
+ method: 'GET'
123
+ })
124
+ }
125
+
126
+ async setTransportCapability( id: string, body: LSPCarrierSetTransportCapabilityValidation['body'] ): Promise<LSPCarrierSetTransportCapabilityValidation['response']> {
127
+ return await this.http.request<LSPCarrierSetTransportCapabilityValidation['response']>({
128
+ url: `/lsp/carriers/${id}/capabilities/transport`,
129
+ method: 'PUT',
130
+ body
131
+ })
132
+ }
133
+
134
+ async updateTransportCapability( id: string, body: LSPCarrierUpdateTransportCapabilityValidation['body'] ): Promise<LSPCarrierUpdateTransportCapabilityValidation['response']> {
135
+ return await this.http.request<LSPCarrierUpdateTransportCapabilityValidation['response']>({
136
+ url: `/lsp/carriers/${id}/capabilities/transport`,
137
+ method: 'PATCH',
138
+ body
139
+ })
140
+ }
141
+
142
+ async deleteTransportCapability( id: string ): Promise<LSPCarrierDeleteTransportCapabilityValidation['response']> {
143
+ return await this.http.request<LSPCarrierDeleteTransportCapabilityValidation['response']>({
144
+ url: `/lsp/carriers/${id}/capabilities/transport`,
145
+ method: 'DELETE'
146
+ })
147
+ }
148
+
149
+ async getFleetCapability( id: string ): Promise<LSPCarrierGetFleetCapabilityValidation['response']> {
150
+ return await this.http.request<LSPCarrierGetFleetCapabilityValidation['response']>({
151
+ url: `/lsp/carriers/${id}/capabilities/fleet`,
152
+ method: 'GET'
153
+ })
154
+ }
155
+
156
+ async setFleetCapability( id: string, body: LSPCarrierSetFleetCapabilityValidation['body'] ): Promise<LSPCarrierSetFleetCapabilityValidation['response']> {
157
+ return await this.http.request<LSPCarrierSetFleetCapabilityValidation['response']>({
158
+ url: `/lsp/carriers/${id}/capabilities/fleet`,
159
+ method: 'PUT',
160
+ body
161
+ })
162
+ }
163
+
164
+ async updateFleetCapability( id: string, body: LSPCarrierUpdateFleetCapabilityValidation['body'] ): Promise<LSPCarrierUpdateFleetCapabilityValidation['response']> {
165
+ return await this.http.request<LSPCarrierUpdateFleetCapabilityValidation['response']>({
166
+ url: `/lsp/carriers/${id}/capabilities/fleet`,
167
+ method: 'PATCH',
168
+ body
169
+ })
170
+ }
171
+
172
+ async getHandlingCapability( id: string ): Promise<LSPCarrierGetHandlingCapabilityValidation['response']> {
173
+ return await this.http.request<LSPCarrierGetHandlingCapabilityValidation['response']>({
174
+ url: `/lsp/carriers/${id}/capabilities/handling`,
175
+ method: 'GET'
176
+ })
177
+ }
178
+
179
+ async setHandlingCapability( id: string, body: LSPCarrierSetHandlingCapabilityValidation['body'] ): Promise<LSPCarrierSetHandlingCapabilityValidation['response']> {
180
+ return await this.http.request<LSPCarrierSetHandlingCapabilityValidation['response']>({
181
+ url: `/lsp/carriers/${id}/capabilities/handling`,
182
+ method: 'PUT',
183
+ body
184
+ })
185
+ }
186
+
187
+ async updateHandlingCapability( id: string, body: LSPCarrierUpdateHandlingCapabilityValidation['body'] ): Promise<LSPCarrierUpdateHandlingCapabilityValidation['response']> {
188
+ return await this.http.request<LSPCarrierUpdateHandlingCapabilityValidation['response']>({
189
+ url: `/lsp/carriers/${id}/capabilities/handling`,
190
+ method: 'PATCH',
191
+ body
192
+ })
193
+ }
194
+
195
+ async getCoverageCapability( id: string ): Promise<LSPCarrierGetCoverageCapabilityValidation['response']> {
196
+ return await this.http.request<LSPCarrierGetCoverageCapabilityValidation['response']>({
197
+ url: `/lsp/carriers/${id}/capabilities/coverage`,
198
+ method: 'GET'
199
+ })
200
+ }
201
+
202
+ async setCoverageCapability( id: string, body: LSPCarrierSetCoverageCapabilityValidation['body'] ): Promise<LSPCarrierSetCoverageCapabilityValidation['response']> {
203
+ return await this.http.request<LSPCarrierSetCoverageCapabilityValidation['response']>({
204
+ url: `/lsp/carriers/${id}/capabilities/coverage`,
205
+ method: 'PUT',
206
+ body
207
+ })
208
+ }
209
+
210
+ async updateCoverageCapability( id: string, body: LSPCarrierUpdateCoverageCapabilityValidation['body'] ): Promise<LSPCarrierUpdateCoverageCapabilityValidation['response']> {
211
+ return await this.http.request<LSPCarrierUpdateCoverageCapabilityValidation['response']>({
212
+ url: `/lsp/carriers/${id}/capabilities/coverage`,
213
+ method: 'PATCH',
214
+ body
215
+ })
216
+ }
217
+
218
+ async getTechnologyCapability( id: string ): Promise<LSPCarrierGetTechnologyCapabilityValidation['response']> {
219
+ return await this.http.request<LSPCarrierGetTechnologyCapabilityValidation['response']>({
220
+ url: `/lsp/carriers/${id}/capabilities/technology`,
221
+ method: 'GET'
222
+ })
223
+ }
224
+
225
+ async setTechnologyCapability( id: string, body: LSPCarrierSetTechnologyCapabilityValidation['body'] ): Promise<LSPCarrierSetTechnologyCapabilityValidation['response']> {
226
+ return await this.http.request<LSPCarrierSetTechnologyCapabilityValidation['response']>({
227
+ url: `/lsp/carriers/${id}/capabilities/technology`,
228
+ method: 'PUT',
229
+ body
230
+ })
231
+ }
232
+
233
+ async updateTechnologyCapability( id: string, body: LSPCarrierUpdateTechnologyCapabilityValidation['body'] ): Promise<LSPCarrierUpdateTechnologyCapabilityValidation['response']> {
234
+ return await this.http.request<LSPCarrierUpdateTechnologyCapabilityValidation['response']>({
235
+ url: `/lsp/carriers/${id}/capabilities/technology`,
236
+ method: 'PATCH',
237
+ body
238
+ })
239
+ }
240
+
241
+ async getServiceCapability( id: string ): Promise<LSPCarrierGetServiceCapabilityValidation['response']> {
242
+ return await this.http.request<LSPCarrierGetServiceCapabilityValidation['response']>({
243
+ url: `/lsp/carriers/${id}/capabilities/service`,
244
+ method: 'GET'
245
+ })
246
+ }
247
+
248
+ async setServiceCapability( id: string, body: LSPCarrierSetServiceCapabilityValidation['body'] ): Promise<LSPCarrierSetServiceCapabilityValidation['response']> {
249
+ return await this.http.request<LSPCarrierSetServiceCapabilityValidation['response']>({
250
+ url: `/lsp/carriers/${id}/capabilities/service`,
251
+ method: 'PUT',
252
+ body
253
+ })
254
+ }
255
+
256
+ async updateServiceCapability( id: string, body: LSPCarrierUpdateServiceCapabilityValidation['body'] ): Promise<LSPCarrierUpdateServiceCapabilityValidation['response']> {
257
+ return await this.http.request<LSPCarrierUpdateServiceCapabilityValidation['response']>({
258
+ url: `/lsp/carriers/${id}/capabilities/service`,
259
+ method: 'PATCH',
260
+ body
261
+ })
262
+ }
263
+
264
+ async getComplianceCapability( id: string ): Promise<LSPCarrierGetComplianceCapabilityValidation['response']> {
265
+ return await this.http.request<LSPCarrierGetComplianceCapabilityValidation['response']>({
266
+ url: `/lsp/carriers/${id}/capabilities/compliance`,
267
+ method: 'GET'
268
+ })
269
+ }
270
+
271
+ async setComplianceCapability( id: string, body: LSPCarrierSetComplianceCapabilityValidation['body'] ): Promise<LSPCarrierSetComplianceCapabilityValidation['response']> {
272
+ return await this.http.request<LSPCarrierSetComplianceCapabilityValidation['response']>({
273
+ url: `/lsp/carriers/${id}/capabilities/compliance`,
274
+ method: 'PUT',
275
+ body
276
+ })
277
+ }
278
+
279
+ async updateComplianceCapability( id: string, body: LSPCarrierUpdateComplianceCapabilityValidation['body'] ): Promise<LSPCarrierUpdateComplianceCapabilityValidation['response']> {
280
+ return await this.http.request<LSPCarrierUpdateComplianceCapabilityValidation['response']>({
281
+ url: `/lsp/carriers/${id}/capabilities/compliance`,
282
+ method: 'PATCH',
283
+ body
284
+ })
285
+ }
286
+
287
+ async bulkUpdateCapabilities( id: string, body: LSPCarrierBulkCapabilitiesUpdateValidation['body'] ): Promise<LSPCarrierBulkCapabilitiesUpdateValidation['response']> {
288
+ return await this.http.request<LSPCarrierBulkCapabilitiesUpdateValidation['response']>({
289
+ url: `/lsp/carriers/${id}/capabilities/bulk`,
290
+ method: 'PATCH',
291
+ body
292
+ })
293
+ }
294
+
295
+ async getCapabilityInsights( id: string, querystring?: LSPCarrierGetCapabilityInsightsValidation['querystring'] ): Promise<LSPCarrierGetCapabilityInsightsValidation['response']> {
296
+ return await this.http.request<LSPCarrierGetCapabilityInsightsValidation['response']>({
297
+ url: `/lsp/carriers/${id}/capabilities/insights${qs( querystring )}`,
298
+ method: 'GET'
299
+ })
300
+ }
301
+
302
+ async validateCapability( id: string, type: string, body: LSPCarrierValidateCapabilityValidation['body'] ): Promise<LSPCarrierValidateCapabilityValidation['response']> {
303
+ return await this.http.request<LSPCarrierValidateCapabilityValidation['response']>({
304
+ url: `/lsp/carriers/${id}/capabilities/validate/${type}`,
305
+ method: 'POST',
306
+ body
307
+ })
308
+ }
309
+
310
+ // ── Capacities ────────────────────────────────────────────────────────────
311
+
312
+ async getAllCapacities( id: string ): Promise<LSPCarrierGetAllCapacitiesValidation['response']> {
313
+ return await this.http.request<LSPCarrierGetAllCapacitiesValidation['response']>({
314
+ url: `/lsp/carriers/${id}/capacities`,
315
+ method: 'GET'
316
+ })
317
+ }
318
+
319
+ async getFleetCapacity( id: string ): Promise<LSPCarrierGetFleetCapacityValidation['response']> {
320
+ return await this.http.request<LSPCarrierGetFleetCapacityValidation['response']>({
321
+ url: `/lsp/carriers/${id}/capacities/fleet`,
322
+ method: 'GET'
323
+ })
324
+ }
325
+
326
+ async setFleetCapacity( id: string, body: LSPCarrierSetFleetCapacityValidation['body'] ): Promise<LSPCarrierSetFleetCapacityValidation['response']> {
327
+ return await this.http.request<LSPCarrierSetFleetCapacityValidation['response']>({
328
+ url: `/lsp/carriers/${id}/capacities/fleet`,
329
+ method: 'PUT',
330
+ body
331
+ })
332
+ }
333
+
334
+ async getServiceCapacity( id: string ): Promise<LSPCarrierGetServiceCapacityValidation['response']> {
335
+ return await this.http.request<LSPCarrierGetServiceCapacityValidation['response']>({
336
+ url: `/lsp/carriers/${id}/capacities/service`,
337
+ method: 'GET'
338
+ })
339
+ }
340
+
341
+ async setServiceCapacity( id: string, body: LSPCarrierSetServiceCapacityValidation['body'] ): Promise<LSPCarrierSetServiceCapacityValidation['response']> {
342
+ return await this.http.request<LSPCarrierSetServiceCapacityValidation['response']>({
343
+ url: `/lsp/carriers/${id}/capacities/service`,
344
+ method: 'PUT',
345
+ body
346
+ })
347
+ }
348
+
349
+ async getOperationalCapacity( id: string ): Promise<LSPCarrierGetOperationalCapacityValidation['response']> {
350
+ return await this.http.request<LSPCarrierGetOperationalCapacityValidation['response']>({
351
+ url: `/lsp/carriers/${id}/capacities/operational`,
352
+ method: 'GET'
353
+ })
354
+ }
355
+
356
+ async setOperationalCapacity( id: string, body: LSPCarrierSetOperationalCapacityValidation['body'] ): Promise<LSPCarrierSetOperationalCapacityValidation['response']> {
357
+ return await this.http.request<LSPCarrierSetOperationalCapacityValidation['response']>({
358
+ url: `/lsp/carriers/${id}/capacities/operational`,
359
+ method: 'PUT',
360
+ body
361
+ })
362
+ }
363
+
364
+ async getNetworkCapacity( id: string ): Promise<LSPCarrierGetNetworkCapacityValidation['response']> {
365
+ return await this.http.request<LSPCarrierGetNetworkCapacityValidation['response']>({
366
+ url: `/lsp/carriers/${id}/capacities/network`,
367
+ method: 'GET'
368
+ })
369
+ }
370
+
371
+ async setNetworkCapacity( id: string, body: LSPCarrierSetNetworkCapacityValidation['body'] ): Promise<LSPCarrierSetNetworkCapacityValidation['response']> {
372
+ return await this.http.request<LSPCarrierSetNetworkCapacityValidation['response']>({
373
+ url: `/lsp/carriers/${id}/capacities/network`,
374
+ method: 'PUT',
375
+ body
376
+ })
377
+ }
378
+
379
+ async getTechnologyCapacity( id: string ): Promise<LSPCarrierGetTechnologyCapacityValidation['response']> {
380
+ return await this.http.request<LSPCarrierGetTechnologyCapacityValidation['response']>({
381
+ url: `/lsp/carriers/${id}/capacities/technology`,
382
+ method: 'GET'
383
+ })
384
+ }
385
+
386
+ async setTechnologyCapacity( id: string, body: LSPCarrierSetTechnologyCapacityValidation['body'] ): Promise<LSPCarrierSetTechnologyCapacityValidation['response']> {
387
+ return await this.http.request<LSPCarrierSetTechnologyCapacityValidation['response']>({
388
+ url: `/lsp/carriers/${id}/capacities/technology`,
389
+ method: 'PUT',
390
+ body
391
+ })
392
+ }
393
+
394
+ async getFinancialCapacity( id: string ): Promise<LSPCarrierGetFinancialCapacityValidation['response']> {
395
+ return await this.http.request<LSPCarrierGetFinancialCapacityValidation['response']>({
396
+ url: `/lsp/carriers/${id}/capacities/financial`,
397
+ method: 'GET'
398
+ })
399
+ }
400
+
401
+ async setFinancialCapacity( id: string, body: LSPCarrierSetFinancialCapacityValidation['body'] ): Promise<LSPCarrierSetFinancialCapacityValidation['response']> {
402
+ return await this.http.request<LSPCarrierSetFinancialCapacityValidation['response']>({
403
+ url: `/lsp/carriers/${id}/capacities/financial`,
404
+ method: 'PUT',
405
+ body
406
+ })
407
+ }
408
+ }
@@ -0,0 +1,212 @@
1
+ import type {
2
+ LSPCoverageOverviewValidation,
3
+ LSPCoverageAddCityAreaValidation,
4
+ LSPCoverageAddTownAreaValidation,
5
+ LSPCoverageAddMetroAreaValidation,
6
+ LSPCoverageAddCountyAreaValidation,
7
+ LSPCoverageAddStateAreaValidation,
8
+ LSPCoverageAddRegionAreaValidation,
9
+ LSPCoverageAddCountryAreaValidation,
10
+ LSPCoverageAddCustomAreaValidation,
11
+ LSPCoverageUpdateCityAreaValidation,
12
+ LSPCoverageUpdateTownAreaValidation,
13
+ LSPCoverageUpdateMetroAreaValidation,
14
+ LSPCoverageUpdateCountyAreaValidation,
15
+ LSPCoverageUpdateStateAreaValidation,
16
+ LSPCoverageUpdateRegionAreaValidation,
17
+ LSPCoverageUpdateCountryAreaValidation,
18
+ LSPCoverageUpdateCustomAreaValidation,
19
+ LSPCoverageGetAreaValidation,
20
+ LSPCoverageListAreasValidation,
21
+ LSPCoverageLinkNodeValidation,
22
+ LSPCoverageUnlinkNodeValidation,
23
+ LSPCoverageRemoveAreaValidation,
24
+ LSPCoverageAddPointsRouteValidation,
25
+ LSPCoverageAddGeoJsonRouteValidation,
26
+ LSPCoverageUpdatePointsRouteValidation,
27
+ LSPCoverageUpdateGeoJsonRouteValidation,
28
+ LSPCoverageGetRouteValidation,
29
+ LSPCoverageListRoutesValidation,
30
+ LSPCoverageAddRouteNodeValidation,
31
+ LSPCoverageRemoveRouteNodeValidation,
32
+ LSPCoverageRemoveRouteValidation,
33
+ LSPCoverageCheckValidation,
34
+ LSPCoverageFindAreasValidation,
35
+ LSPCoverageGetServiceabilityValidation,
36
+ LSPCoverageValidateBoundaryValidation,
37
+ LSPCoverageFindNearestValidation,
38
+ LSPCoverageCheckRestrictionsValidation,
39
+ LSPCoverageFindParkingZonesValidation
40
+ } from '@de./types/lsp/coverage'
41
+ import { qs, type Http, type Res, type Data } from '../../utils'
42
+
43
+ // ── LSP Coverage ────────────────────────────────────────────────────────────────
44
+ //
45
+ // de.arch /lsp/coverage — overview, areas, routes, and checks.
46
+ //
47
+ // ─────────────────────────────────────────────────────────────────────────────
48
+
49
+ export default class LSPCoverage {
50
+ constructor( private http: Http ){}
51
+
52
+ async overview( querystring?: LSPCoverageOverviewValidation['querystring'] ): Promise<LSPCoverageOverviewValidation['response']> {
53
+ return await this.http.request<LSPCoverageOverviewValidation['response']>({
54
+ url: `/lsp/coverage${qs( querystring )}`,
55
+ method: 'GET'
56
+ })
57
+ }
58
+
59
+ // ── Areas ─────────────────────────────────────────────────────────────────
60
+
61
+ async addCityArea( body: LSPCoverageAddCityAreaValidation['body'] ): Promise<LSPCoverageAddCityAreaValidation['response']> {
62
+ return await this.http.request<LSPCoverageAddCityAreaValidation['response']>({ url: '/lsp/coverage/areas/city', method: 'POST', body })
63
+ }
64
+
65
+ async addTownArea( body: LSPCoverageAddTownAreaValidation['body'] ): Promise<LSPCoverageAddTownAreaValidation['response']> {
66
+ return await this.http.request<LSPCoverageAddTownAreaValidation['response']>({ url: '/lsp/coverage/areas/town', method: 'POST', body })
67
+ }
68
+
69
+ async addMetropolitanArea( body: LSPCoverageAddMetroAreaValidation['body'] ): Promise<LSPCoverageAddMetroAreaValidation['response']> {
70
+ return await this.http.request<LSPCoverageAddMetroAreaValidation['response']>({ url: '/lsp/coverage/areas/metropolitan', method: 'POST', body })
71
+ }
72
+
73
+ async addCountyArea( body: LSPCoverageAddCountyAreaValidation['body'] ): Promise<LSPCoverageAddCountyAreaValidation['response']> {
74
+ return await this.http.request<LSPCoverageAddCountyAreaValidation['response']>({ url: '/lsp/coverage/areas/county', method: 'POST', body })
75
+ }
76
+
77
+ async addStateArea( body: LSPCoverageAddStateAreaValidation['body'] ): Promise<LSPCoverageAddStateAreaValidation['response']> {
78
+ return await this.http.request<LSPCoverageAddStateAreaValidation['response']>({ url: '/lsp/coverage/areas/state', method: 'POST', body })
79
+ }
80
+
81
+ async addRegionArea( body: LSPCoverageAddRegionAreaValidation['body'] ): Promise<LSPCoverageAddRegionAreaValidation['response']> {
82
+ return await this.http.request<LSPCoverageAddRegionAreaValidation['response']>({ url: '/lsp/coverage/areas/region', method: 'POST', body })
83
+ }
84
+
85
+ async addCountryArea( body: LSPCoverageAddCountryAreaValidation['body'] ): Promise<LSPCoverageAddCountryAreaValidation['response']> {
86
+ return await this.http.request<LSPCoverageAddCountryAreaValidation['response']>({ url: '/lsp/coverage/areas/country', method: 'POST', body })
87
+ }
88
+
89
+ async addCustomArea( body: LSPCoverageAddCustomAreaValidation['body'] ): Promise<LSPCoverageAddCustomAreaValidation['response']> {
90
+ return await this.http.request<LSPCoverageAddCustomAreaValidation['response']>({ url: '/lsp/coverage/areas/custom', method: 'POST', body })
91
+ }
92
+
93
+ async listAreas( querystring?: LSPCoverageListAreasValidation['querystring'] ): Promise<LSPCoverageListAreasValidation['response']> {
94
+ return await this.http.request<LSPCoverageListAreasValidation['response']>({ url: `/lsp/coverage/areas${qs( querystring )}`, method: 'GET' })
95
+ }
96
+
97
+ async getArea( id: string ): Promise<LSPCoverageGetAreaValidation['response']> {
98
+ return await this.http.request<LSPCoverageGetAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}`, method: 'GET' })
99
+ }
100
+
101
+ async updateCityArea( id: string, body: LSPCoverageUpdateCityAreaValidation['body'] ): Promise<LSPCoverageUpdateCityAreaValidation['response']> {
102
+ return await this.http.request<LSPCoverageUpdateCityAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/city`, method: 'PATCH', body })
103
+ }
104
+
105
+ async updateTownArea( id: string, body: LSPCoverageUpdateTownAreaValidation['body'] ): Promise<LSPCoverageUpdateTownAreaValidation['response']> {
106
+ return await this.http.request<LSPCoverageUpdateTownAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/town`, method: 'PATCH', body })
107
+ }
108
+
109
+ async updateMetropolitanArea( id: string, body: LSPCoverageUpdateMetroAreaValidation['body'] ): Promise<LSPCoverageUpdateMetroAreaValidation['response']> {
110
+ return await this.http.request<LSPCoverageUpdateMetroAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/metropolitan`, method: 'PATCH', body })
111
+ }
112
+
113
+ async updateCountyArea( id: string, body: LSPCoverageUpdateCountyAreaValidation['body'] ): Promise<LSPCoverageUpdateCountyAreaValidation['response']> {
114
+ return await this.http.request<LSPCoverageUpdateCountyAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/county`, method: 'PATCH', body })
115
+ }
116
+
117
+ async updateStateArea( id: string, body: LSPCoverageUpdateStateAreaValidation['body'] ): Promise<LSPCoverageUpdateStateAreaValidation['response']> {
118
+ return await this.http.request<LSPCoverageUpdateStateAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/state`, method: 'PATCH', body })
119
+ }
120
+
121
+ async updateRegionArea( id: string, body: LSPCoverageUpdateRegionAreaValidation['body'] ): Promise<LSPCoverageUpdateRegionAreaValidation['response']> {
122
+ return await this.http.request<LSPCoverageUpdateRegionAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/region`, method: 'PATCH', body })
123
+ }
124
+
125
+ async updateCountryArea( id: string, body: LSPCoverageUpdateCountryAreaValidation['body'] ): Promise<LSPCoverageUpdateCountryAreaValidation['response']> {
126
+ return await this.http.request<LSPCoverageUpdateCountryAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/country`, method: 'PATCH', body })
127
+ }
128
+
129
+ async updateCustomArea( id: string, body: LSPCoverageUpdateCustomAreaValidation['body'] ): Promise<LSPCoverageUpdateCustomAreaValidation['response']> {
130
+ return await this.http.request<LSPCoverageUpdateCustomAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}/custom`, method: 'PATCH', body })
131
+ }
132
+
133
+ async linkNode( id: string, body: LSPCoverageLinkNodeValidation['body'] ): Promise<LSPCoverageLinkNodeValidation['response']> {
134
+ return await this.http.request<LSPCoverageLinkNodeValidation['response']>({ url: `/lsp/coverage/areas/${id}/link`, method: 'PUT', body })
135
+ }
136
+
137
+ async unlinkNode( id: string, body: LSPCoverageUnlinkNodeValidation['body'] ): Promise<LSPCoverageUnlinkNodeValidation['response']> {
138
+ return await this.http.request<LSPCoverageUnlinkNodeValidation['response']>({ url: `/lsp/coverage/areas/${id}/unlink`, method: 'PATCH', body })
139
+ }
140
+
141
+ async removeArea( id: string ): Promise<LSPCoverageRemoveAreaValidation['response']> {
142
+ return await this.http.request<LSPCoverageRemoveAreaValidation['response']>({ url: `/lsp/coverage/areas/${id}`, method: 'DELETE' })
143
+ }
144
+
145
+ // ── Routes ────────────────────────────────────────────────────────────────
146
+
147
+ async addPointsRoute( body: LSPCoverageAddPointsRouteValidation['body'] ): Promise<LSPCoverageAddPointsRouteValidation['response']> {
148
+ return await this.http.request<LSPCoverageAddPointsRouteValidation['response']>({ url: '/lsp/coverage/routes/points', method: 'POST', body })
149
+ }
150
+
151
+ async addGeoJsonRoute( body: LSPCoverageAddGeoJsonRouteValidation['body'] ): Promise<LSPCoverageAddGeoJsonRouteValidation['response']> {
152
+ return await this.http.request<LSPCoverageAddGeoJsonRouteValidation['response']>({ url: '/lsp/coverage/routes/geojson', method: 'POST', body })
153
+ }
154
+
155
+ async listRoutes( querystring?: LSPCoverageListRoutesValidation['querystring'] ): Promise<LSPCoverageListRoutesValidation['response']> {
156
+ return await this.http.request<LSPCoverageListRoutesValidation['response']>({ url: `/lsp/coverage/routes${qs( querystring )}`, method: 'GET' })
157
+ }
158
+
159
+ async getRoute( id: string ): Promise<LSPCoverageGetRouteValidation['response']> {
160
+ return await this.http.request<LSPCoverageGetRouteValidation['response']>({ url: `/lsp/coverage/routes/${id}`, method: 'GET' })
161
+ }
162
+
163
+ async updatePointsRoute( id: string, body: LSPCoverageUpdatePointsRouteValidation['body'] ): Promise<LSPCoverageUpdatePointsRouteValidation['response']> {
164
+ return await this.http.request<LSPCoverageUpdatePointsRouteValidation['response']>({ url: `/lsp/coverage/routes/${id}/points`, method: 'PATCH', body })
165
+ }
166
+
167
+ async updateGeoJsonRoute( id: string, body: LSPCoverageUpdateGeoJsonRouteValidation['body'] ): Promise<LSPCoverageUpdateGeoJsonRouteValidation['response']> {
168
+ return await this.http.request<LSPCoverageUpdateGeoJsonRouteValidation['response']>({ url: `/lsp/coverage/routes/${id}/geojson`, method: 'PATCH', body })
169
+ }
170
+
171
+ async addRouteNode( id: string, body: LSPCoverageAddRouteNodeValidation['body'] ): Promise<LSPCoverageAddRouteNodeValidation['response']> {
172
+ return await this.http.request<LSPCoverageAddRouteNodeValidation['response']>({ url: `/lsp/coverage/routes/${id}/transit-point`, method: 'PUT', body })
173
+ }
174
+
175
+ async removeRouteNode( id: string, body: LSPCoverageRemoveRouteNodeValidation['body'] ): Promise<LSPCoverageRemoveRouteNodeValidation['response']> {
176
+ return await this.http.request<LSPCoverageRemoveRouteNodeValidation['response']>({ url: `/lsp/coverage/routes/${id}/transit-point`, method: 'PATCH', body })
177
+ }
178
+
179
+ async removeRoute( id: string ): Promise<LSPCoverageRemoveRouteValidation['response']> {
180
+ return await this.http.request<LSPCoverageRemoveRouteValidation['response']>({ url: `/lsp/coverage/routes/${id}`, method: 'DELETE' })
181
+ }
182
+
183
+ // ── Checks ────────────────────────────────────────────────────────────────
184
+
185
+ async check( body: LSPCoverageCheckValidation['body'] ): Promise<LSPCoverageCheckValidation['response']> {
186
+ return await this.http.request<LSPCoverageCheckValidation['response']>({ url: '/lsp/coverage/checks/check', method: 'POST', body })
187
+ }
188
+
189
+ async findAreas( body: LSPCoverageFindAreasValidation['body'] ): Promise<LSPCoverageFindAreasValidation['response']> {
190
+ return await this.http.request<LSPCoverageFindAreasValidation['response']>({ url: '/lsp/coverage/checks/find', method: 'POST', body })
191
+ }
192
+
193
+ async getServiceability( querystring: LSPCoverageGetServiceabilityValidation['querystring'] ): Promise<LSPCoverageGetServiceabilityValidation['response']> {
194
+ return await this.http.request<LSPCoverageGetServiceabilityValidation['response']>({ url: `/lsp/coverage/checks/serviceability${qs( querystring )}`, method: 'GET' })
195
+ }
196
+
197
+ async validateBoundary( body: LSPCoverageValidateBoundaryValidation['body'] ): Promise<LSPCoverageValidateBoundaryValidation['response']> {
198
+ return await this.http.request<LSPCoverageValidateBoundaryValidation['response']>({ url: '/lsp/coverage/checks/validate-boundary', method: 'POST', body })
199
+ }
200
+
201
+ async findNearest( body: LSPCoverageFindNearestValidation['body'] ): Promise<LSPCoverageFindNearestValidation['response']> {
202
+ return await this.http.request<LSPCoverageFindNearestValidation['response']>({ url: '/lsp/coverage/checks/nearest', method: 'POST', body })
203
+ }
204
+
205
+ async checkRestrictions( body: LSPCoverageCheckRestrictionsValidation['body'] ): Promise<LSPCoverageCheckRestrictionsValidation['response']> {
206
+ return await this.http.request<LSPCoverageCheckRestrictionsValidation['response']>({ url: '/lsp/coverage/checks/restrictions', method: 'POST', body })
207
+ }
208
+
209
+ async findParkingZones( body: LSPCoverageFindParkingZonesValidation['body'] ): Promise<LSPCoverageFindParkingZonesValidation['response']> {
210
+ return await this.http.request<LSPCoverageFindParkingZonesValidation['response']>({ url: '/lsp/coverage/checks/parking', method: 'POST', body })
211
+ }
212
+ }