@de./types 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/dist/api.d.ts +113 -0
  2. package/dist/api.d.ts.map +1 -0
  3. package/dist/api.js +92 -0
  4. package/dist/api.js.map +1 -0
  5. package/dist/auth.d.ts +109 -0
  6. package/dist/auth.d.ts.map +1 -0
  7. package/dist/auth.js +80 -0
  8. package/dist/auth.js.map +1 -0
  9. package/dist/aux/agent-rvs.d.ts +1205 -0
  10. package/dist/aux/agent-rvs.d.ts.map +1 -0
  11. package/dist/aux/agent-rvs.js +444 -0
  12. package/dist/aux/agent-rvs.js.map +1 -0
  13. package/dist/aux/agents.d.ts +1573 -0
  14. package/dist/aux/agents.d.ts.map +1 -0
  15. package/dist/aux/agents.js +487 -0
  16. package/dist/aux/agents.js.map +1 -0
  17. package/dist/aux/customer-rvs.d.ts +711 -0
  18. package/dist/aux/customer-rvs.d.ts.map +1 -0
  19. package/dist/aux/customer-rvs.js +321 -0
  20. package/dist/aux/customer-rvs.js.map +1 -0
  21. package/dist/aux/customers.d.ts +379 -0
  22. package/dist/aux/customers.d.ts.map +1 -0
  23. package/dist/aux/customers.js +67 -0
  24. package/dist/aux/customers.js.map +1 -0
  25. package/dist/aux/index.d.ts +5 -0
  26. package/dist/aux/index.d.ts.map +1 -0
  27. package/dist/aux/index.js +21 -0
  28. package/dist/aux/index.js.map +1 -0
  29. package/dist/billing.d.ts +367 -0
  30. package/dist/billing.d.ts.map +1 -0
  31. package/dist/billing.js +308 -0
  32. package/dist/billing.js.map +1 -0
  33. package/dist/bucket.d.ts +97 -0
  34. package/dist/bucket.d.ts.map +1 -0
  35. package/dist/bucket.js +52 -0
  36. package/dist/bucket.js.map +1 -0
  37. package/dist/context.d.ts +148 -0
  38. package/dist/context.d.ts.map +1 -0
  39. package/dist/context.js +148 -0
  40. package/dist/context.js.map +1 -0
  41. package/dist/csp/analytics.d.ts +270 -0
  42. package/dist/csp/analytics.d.ts.map +1 -0
  43. package/dist/csp/analytics.js +185 -0
  44. package/dist/csp/analytics.js.map +1 -0
  45. package/dist/csp/base.d.ts +11 -0
  46. package/dist/csp/base.d.ts.map +1 -0
  47. package/dist/csp/base.js +17 -0
  48. package/dist/csp/base.js.map +1 -0
  49. package/dist/csp/index.d.ts +107 -0
  50. package/dist/csp/index.d.ts.map +1 -0
  51. package/dist/csp/index.js +48 -0
  52. package/dist/csp/index.js.map +1 -0
  53. package/dist/csp/inventory.d.ts +361 -0
  54. package/dist/csp/inventory.d.ts.map +1 -0
  55. package/dist/csp/inventory.js +267 -0
  56. package/dist/csp/inventory.js.map +1 -0
  57. package/dist/csp/order.d.ts +1457 -0
  58. package/dist/csp/order.d.ts.map +1 -0
  59. package/dist/csp/order.js +367 -0
  60. package/dist/csp/order.js.map +1 -0
  61. package/dist/csp/webhook.d.ts +381 -0
  62. package/dist/csp/webhook.d.ts.map +1 -0
  63. package/dist/csp/webhook.js +207 -0
  64. package/dist/csp/webhook.js.map +1 -0
  65. package/dist/de.profile.d.ts +411 -0
  66. package/dist/de.profile.d.ts.map +1 -0
  67. package/dist/de.profile.js +98 -0
  68. package/dist/de.profile.js.map +1 -0
  69. package/dist/dev/developer.d.ts +211 -0
  70. package/dist/dev/developer.d.ts.map +1 -0
  71. package/dist/dev/developer.js +55 -0
  72. package/dist/dev/developer.js.map +1 -0
  73. package/dist/dev/index.d.ts +133 -0
  74. package/dist/dev/index.d.ts.map +1 -0
  75. package/dist/dev/index.js +79 -0
  76. package/dist/dev/index.js.map +1 -0
  77. package/dist/entity.d.ts +159 -0
  78. package/dist/entity.d.ts.map +1 -0
  79. package/dist/entity.js +127 -0
  80. package/dist/entity.js.map +1 -0
  81. package/dist/events.d.ts +1844 -0
  82. package/dist/events.d.ts.map +1 -0
  83. package/dist/events.js +303 -0
  84. package/dist/events.js.map +1 -0
  85. package/dist/faq.d.ts +60 -0
  86. package/dist/faq.d.ts.map +1 -0
  87. package/dist/faq.js +31 -0
  88. package/dist/faq.js.map +1 -0
  89. package/dist/geo.d.ts +123 -0
  90. package/dist/geo.d.ts.map +1 -0
  91. package/dist/geo.js +87 -0
  92. package/dist/geo.js.map +1 -0
  93. package/dist/index.d.ts +28 -0
  94. package/dist/index.d.ts.map +1 -0
  95. package/dist/index.js +59 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/inventory.d.ts +1347 -0
  98. package/dist/inventory.d.ts.map +1 -0
  99. package/dist/inventory.js +356 -0
  100. package/dist/inventory.js.map +1 -0
  101. package/dist/invoice.d.ts +46 -0
  102. package/dist/invoice.d.ts.map +1 -0
  103. package/dist/invoice.js +33 -0
  104. package/dist/invoice.js.map +1 -0
  105. package/dist/iotsp/device.d.ts +581 -0
  106. package/dist/iotsp/device.d.ts.map +1 -0
  107. package/dist/iotsp/device.js +277 -0
  108. package/dist/iotsp/device.js.map +1 -0
  109. package/dist/iotsp/index.d.ts +111 -0
  110. package/dist/iotsp/index.d.ts.map +1 -0
  111. package/dist/iotsp/index.js +76 -0
  112. package/dist/iotsp/index.js.map +1 -0
  113. package/dist/iotsp/rule.d.ts +340 -0
  114. package/dist/iotsp/rule.d.ts.map +1 -0
  115. package/dist/iotsp/rule.js +172 -0
  116. package/dist/iotsp/rule.js.map +1 -0
  117. package/dist/iotsp/topic.d.ts +249 -0
  118. package/dist/iotsp/topic.d.ts.map +1 -0
  119. package/dist/iotsp/topic.js +139 -0
  120. package/dist/iotsp/topic.js.map +1 -0
  121. package/dist/lsp/carrier/analytics.d.ts +1191 -0
  122. package/dist/lsp/carrier/analytics.d.ts.map +1 -0
  123. package/dist/lsp/carrier/analytics.js +354 -0
  124. package/dist/lsp/carrier/analytics.js.map +1 -0
  125. package/dist/lsp/carrier/capabilities.d.ts +3603 -0
  126. package/dist/lsp/carrier/capabilities.d.ts.map +1 -0
  127. package/dist/lsp/carrier/capabilities.js +880 -0
  128. package/dist/lsp/carrier/capabilities.js.map +1 -0
  129. package/dist/lsp/carrier/capacities.d.ts +4436 -0
  130. package/dist/lsp/carrier/capacities.d.ts.map +1 -0
  131. package/dist/lsp/carrier/capacities.js +615 -0
  132. package/dist/lsp/carrier/capacities.js.map +1 -0
  133. package/dist/lsp/carrier/index.d.ts +734 -0
  134. package/dist/lsp/carrier/index.d.ts.map +1 -0
  135. package/dist/lsp/carrier/index.js +150 -0
  136. package/dist/lsp/carrier/index.js.map +1 -0
  137. package/dist/lsp/carrier/performance.d.ts +567 -0
  138. package/dist/lsp/carrier/performance.d.ts.map +1 -0
  139. package/dist/lsp/carrier/performance.js +127 -0
  140. package/dist/lsp/carrier/performance.js.map +1 -0
  141. package/dist/lsp/carrier/utilities.d.ts +6671 -0
  142. package/dist/lsp/carrier/utilities.d.ts.map +1 -0
  143. package/dist/lsp/carrier/utilities.js +597 -0
  144. package/dist/lsp/carrier/utilities.js.map +1 -0
  145. package/dist/lsp/consolidation.d.ts +793 -0
  146. package/dist/lsp/consolidation.d.ts.map +1 -0
  147. package/dist/lsp/consolidation.js +343 -0
  148. package/dist/lsp/consolidation.js.map +1 -0
  149. package/dist/lsp/coverage.d.ts +7449 -0
  150. package/dist/lsp/coverage.d.ts.map +1 -0
  151. package/dist/lsp/coverage.js +706 -0
  152. package/dist/lsp/coverage.js.map +1 -0
  153. package/dist/lsp/fleet/index.d.ts +1128 -0
  154. package/dist/lsp/fleet/index.d.ts.map +1 -0
  155. package/dist/lsp/fleet/index.js +269 -0
  156. package/dist/lsp/fleet/index.js.map +1 -0
  157. package/dist/lsp/fleet/maintenance.d.ts +2022 -0
  158. package/dist/lsp/fleet/maintenance.d.ts.map +1 -0
  159. package/dist/lsp/fleet/maintenance.js +386 -0
  160. package/dist/lsp/fleet/maintenance.js.map +1 -0
  161. package/dist/lsp/fleet/parking.d.ts +2043 -0
  162. package/dist/lsp/fleet/parking.d.ts.map +1 -0
  163. package/dist/lsp/fleet/parking.js +458 -0
  164. package/dist/lsp/fleet/parking.js.map +1 -0
  165. package/dist/lsp/fleet/vehicle.d.ts +783 -0
  166. package/dist/lsp/fleet/vehicle.d.ts.map +1 -0
  167. package/dist/lsp/fleet/vehicle.js +314 -0
  168. package/dist/lsp/fleet/vehicle.js.map +1 -0
  169. package/dist/lsp/graph.d.ts +212 -0
  170. package/dist/lsp/graph.d.ts.map +1 -0
  171. package/dist/lsp/graph.js +92 -0
  172. package/dist/lsp/graph.js.map +1 -0
  173. package/dist/lsp/hub/analytics.d.ts +4294 -0
  174. package/dist/lsp/hub/analytics.d.ts.map +1 -0
  175. package/dist/lsp/hub/analytics.js +219 -0
  176. package/dist/lsp/hub/analytics.js.map +1 -0
  177. package/dist/lsp/hub/capabilities.d.ts +1467 -0
  178. package/dist/lsp/hub/capabilities.d.ts.map +1 -0
  179. package/dist/lsp/hub/capabilities.js +464 -0
  180. package/dist/lsp/hub/capabilities.js.map +1 -0
  181. package/dist/lsp/hub/capacities.d.ts +4278 -0
  182. package/dist/lsp/hub/capacities.d.ts.map +1 -0
  183. package/dist/lsp/hub/capacities.js +495 -0
  184. package/dist/lsp/hub/capacities.js.map +1 -0
  185. package/dist/lsp/hub/index.d.ts +2784 -0
  186. package/dist/lsp/hub/index.d.ts.map +1 -0
  187. package/dist/lsp/hub/index.js +268 -0
  188. package/dist/lsp/hub/index.js.map +1 -0
  189. package/dist/lsp/hub/performance.d.ts +391 -0
  190. package/dist/lsp/hub/performance.d.ts.map +1 -0
  191. package/dist/lsp/hub/performance.js +78 -0
  192. package/dist/lsp/hub/performance.js.map +1 -0
  193. package/dist/lsp/hub/utilities.d.ts +2996 -0
  194. package/dist/lsp/hub/utilities.d.ts.map +1 -0
  195. package/dist/lsp/hub/utilities.js +521 -0
  196. package/dist/lsp/hub/utilities.js.map +1 -0
  197. package/dist/lsp/index.d.ts +157 -0
  198. package/dist/lsp/index.d.ts.map +1 -0
  199. package/dist/lsp/index.js +121 -0
  200. package/dist/lsp/index.js.map +1 -0
  201. package/dist/lsp/operations.d.ts +563 -0
  202. package/dist/lsp/operations.d.ts.map +1 -0
  203. package/dist/lsp/operations.js +265 -0
  204. package/dist/lsp/operations.js.map +1 -0
  205. package/dist/lsp/order/delivery.d.ts +1119 -0
  206. package/dist/lsp/order/delivery.d.ts.map +1 -0
  207. package/dist/lsp/order/delivery.js +169 -0
  208. package/dist/lsp/order/delivery.js.map +1 -0
  209. package/dist/lsp/order/flow/processes.d.ts +8 -0
  210. package/dist/lsp/order/flow/processes.d.ts.map +1 -0
  211. package/dist/lsp/order/flow/processes.js +67 -0
  212. package/dist/lsp/order/flow/processes.js.map +1 -0
  213. package/dist/lsp/order/flow/stages.d.ts +8 -0
  214. package/dist/lsp/order/flow/stages.d.ts.map +1 -0
  215. package/dist/lsp/order/flow/stages.js +111 -0
  216. package/dist/lsp/order/flow/stages.js.map +1 -0
  217. package/dist/lsp/order/inbound.d.ts +1165 -0
  218. package/dist/lsp/order/inbound.d.ts.map +1 -0
  219. package/dist/lsp/order/inbound.js +185 -0
  220. package/dist/lsp/order/inbound.js.map +1 -0
  221. package/dist/lsp/order/internal.d.ts +1404 -0
  222. package/dist/lsp/order/internal.d.ts.map +1 -0
  223. package/dist/lsp/order/internal.js +255 -0
  224. package/dist/lsp/order/internal.js.map +1 -0
  225. package/dist/lsp/order/management.d.ts +541 -0
  226. package/dist/lsp/order/management.d.ts.map +1 -0
  227. package/dist/lsp/order/management.js +326 -0
  228. package/dist/lsp/order/management.js.map +1 -0
  229. package/dist/lsp/order/outbound.d.ts +909 -0
  230. package/dist/lsp/order/outbound.d.ts.map +1 -0
  231. package/dist/lsp/order/outbound.js +105 -0
  232. package/dist/lsp/order/outbound.js.map +1 -0
  233. package/dist/lsp/order/passthrough.d.ts +1816 -0
  234. package/dist/lsp/order/passthrough.d.ts.map +1 -0
  235. package/dist/lsp/order/passthrough.js +360 -0
  236. package/dist/lsp/order/passthrough.js.map +1 -0
  237. package/dist/lsp/order/ride.d.ts +1056 -0
  238. package/dist/lsp/order/ride.d.ts.map +1 -0
  239. package/dist/lsp/order/ride.js +166 -0
  240. package/dist/lsp/order/ride.js.map +1 -0
  241. package/dist/lsp/order/shipping.d.ts +1524 -0
  242. package/dist/lsp/order/shipping.d.ts.map +1 -0
  243. package/dist/lsp/order/shipping.js +223 -0
  244. package/dist/lsp/order/shipping.js.map +1 -0
  245. package/dist/lsp/performance.d.ts +2 -0
  246. package/dist/lsp/performance.d.ts.map +1 -0
  247. package/dist/lsp/performance.js +3 -0
  248. package/dist/lsp/performance.js.map +1 -0
  249. package/dist/lsp/pod/index.d.ts +805 -0
  250. package/dist/lsp/pod/index.d.ts.map +1 -0
  251. package/dist/lsp/pod/index.js +250 -0
  252. package/dist/lsp/pod/index.js.map +1 -0
  253. package/dist/lsp/pricing.d.ts +1811 -0
  254. package/dist/lsp/pricing.d.ts.map +1 -0
  255. package/dist/lsp/pricing.js +972 -0
  256. package/dist/lsp/pricing.js.map +1 -0
  257. package/dist/lsp/processing.d.ts +893 -0
  258. package/dist/lsp/processing.d.ts.map +1 -0
  259. package/dist/lsp/processing.js +202 -0
  260. package/dist/lsp/processing.js.map +1 -0
  261. package/dist/lsp/product.d.ts +76 -0
  262. package/dist/lsp/product.d.ts.map +1 -0
  263. package/dist/lsp/product.js +3 -0
  264. package/dist/lsp/product.js.map +1 -0
  265. package/dist/lsp/psl.d.ts +785 -0
  266. package/dist/lsp/psl.d.ts.map +1 -0
  267. package/dist/lsp/psl.js +333 -0
  268. package/dist/lsp/psl.js.map +1 -0
  269. package/dist/lsp/terminal/analytics.d.ts +278 -0
  270. package/dist/lsp/terminal/analytics.d.ts.map +1 -0
  271. package/dist/lsp/terminal/analytics.js +310 -0
  272. package/dist/lsp/terminal/analytics.js.map +1 -0
  273. package/dist/lsp/terminal/capabilities.d.ts +797 -0
  274. package/dist/lsp/terminal/capabilities.d.ts.map +1 -0
  275. package/dist/lsp/terminal/capabilities.js +506 -0
  276. package/dist/lsp/terminal/capabilities.js.map +1 -0
  277. package/dist/lsp/terminal/capacities.d.ts +3152 -0
  278. package/dist/lsp/terminal/capacities.d.ts.map +1 -0
  279. package/dist/lsp/terminal/capacities.js +504 -0
  280. package/dist/lsp/terminal/capacities.js.map +1 -0
  281. package/dist/lsp/terminal/index.d.ts +1056 -0
  282. package/dist/lsp/terminal/index.d.ts.map +1 -0
  283. package/dist/lsp/terminal/index.js +394 -0
  284. package/dist/lsp/terminal/index.js.map +1 -0
  285. package/dist/lsp/terminal/performance.d.ts +955 -0
  286. package/dist/lsp/terminal/performance.d.ts.map +1 -0
  287. package/dist/lsp/terminal/performance.js +159 -0
  288. package/dist/lsp/terminal/performance.js.map +1 -0
  289. package/dist/lsp/terminal/utilities.d.ts +2374 -0
  290. package/dist/lsp/terminal/utilities.d.ts.map +1 -0
  291. package/dist/lsp/terminal/utilities.js +161 -0
  292. package/dist/lsp/terminal/utilities.js.map +1 -0
  293. package/dist/lsp/warehouse/analytics.d.ts +3088 -0
  294. package/dist/lsp/warehouse/analytics.d.ts.map +1 -0
  295. package/dist/lsp/warehouse/analytics.js +229 -0
  296. package/dist/lsp/warehouse/analytics.js.map +1 -0
  297. package/dist/lsp/warehouse/capabilities.d.ts +1384 -0
  298. package/dist/lsp/warehouse/capabilities.d.ts.map +1 -0
  299. package/dist/lsp/warehouse/capabilities.js +567 -0
  300. package/dist/lsp/warehouse/capabilities.js.map +1 -0
  301. package/dist/lsp/warehouse/capacities.d.ts +2921 -0
  302. package/dist/lsp/warehouse/capacities.d.ts.map +1 -0
  303. package/dist/lsp/warehouse/capacities.js +450 -0
  304. package/dist/lsp/warehouse/capacities.js.map +1 -0
  305. package/dist/lsp/warehouse/index.d.ts +2566 -0
  306. package/dist/lsp/warehouse/index.d.ts.map +1 -0
  307. package/dist/lsp/warehouse/index.js +264 -0
  308. package/dist/lsp/warehouse/index.js.map +1 -0
  309. package/dist/lsp/warehouse/performance.d.ts +287 -0
  310. package/dist/lsp/warehouse/performance.d.ts.map +1 -0
  311. package/dist/lsp/warehouse/performance.js +72 -0
  312. package/dist/lsp/warehouse/performance.js.map +1 -0
  313. package/dist/lsp/warehouse/utilities.d.ts +5174 -0
  314. package/dist/lsp/warehouse/utilities.d.ts.map +1 -0
  315. package/dist/lsp/warehouse/utilities.js +588 -0
  316. package/dist/lsp/warehouse/utilities.js.map +1 -0
  317. package/dist/lsp/zones.d.ts +305 -0
  318. package/dist/lsp/zones.d.ts.map +1 -0
  319. package/dist/lsp/zones.js +118 -0
  320. package/dist/lsp/zones.js.map +1 -0
  321. package/dist/measure.d.ts +139 -0
  322. package/dist/measure.d.ts.map +1 -0
  323. package/dist/measure.js +190 -0
  324. package/dist/measure.js.map +1 -0
  325. package/dist/operator.d.ts +103 -0
  326. package/dist/operator.d.ts.map +1 -0
  327. package/dist/operator.js +38 -0
  328. package/dist/operator.js.map +1 -0
  329. package/dist/order.d.ts +2739 -0
  330. package/dist/order.d.ts.map +1 -0
  331. package/dist/order.js +1078 -0
  332. package/dist/order.js.map +1 -0
  333. package/dist/realm/index.d.ts +4 -0
  334. package/dist/realm/index.d.ts.map +1 -0
  335. package/dist/realm/index.js +20 -0
  336. package/dist/realm/index.js.map +1 -0
  337. package/dist/realm/pipelines.d.ts +32567 -0
  338. package/dist/realm/pipelines.d.ts.map +1 -0
  339. package/dist/realm/pipelines.js +1273 -0
  340. package/dist/realm/pipelines.js.map +1 -0
  341. package/dist/realm/queries.d.ts +1327 -0
  342. package/dist/realm/queries.d.ts.map +1 -0
  343. package/dist/realm/queries.js +456 -0
  344. package/dist/realm/queries.js.map +1 -0
  345. package/dist/realm/utilities.d.ts +1794 -0
  346. package/dist/realm/utilities.d.ts.map +1 -0
  347. package/dist/realm/utilities.js +594 -0
  348. package/dist/realm/utilities.js.map +1 -0
  349. package/dist/routing.d.ts +428 -0
  350. package/dist/routing.d.ts.map +1 -0
  351. package/dist/routing.js +60 -0
  352. package/dist/routing.js.map +1 -0
  353. package/dist/service.d.ts +264 -0
  354. package/dist/service.d.ts.map +1 -0
  355. package/dist/service.js +60 -0
  356. package/dist/service.js.map +1 -0
  357. package/dist/shared/access.d.ts +102 -0
  358. package/dist/shared/access.d.ts.map +1 -0
  359. package/dist/shared/access.js +30 -0
  360. package/dist/shared/access.js.map +1 -0
  361. package/dist/shared/account.d.ts +44 -0
  362. package/dist/shared/account.d.ts.map +1 -0
  363. package/dist/shared/account.js +15 -0
  364. package/dist/shared/account.js.map +1 -0
  365. package/dist/shared/auth.d.ts +45 -0
  366. package/dist/shared/auth.d.ts.map +1 -0
  367. package/dist/shared/auth.js +19 -0
  368. package/dist/shared/auth.js.map +1 -0
  369. package/dist/shared/bucket.d.ts +294 -0
  370. package/dist/shared/bucket.d.ts.map +1 -0
  371. package/dist/shared/bucket.js +79 -0
  372. package/dist/shared/bucket.js.map +1 -0
  373. package/dist/shared/faq.d.ts +280 -0
  374. package/dist/shared/faq.d.ts.map +1 -0
  375. package/dist/shared/faq.js +73 -0
  376. package/dist/shared/faq.js.map +1 -0
  377. package/dist/shared/index.d.ts +10 -0
  378. package/dist/shared/index.d.ts.map +1 -0
  379. package/dist/shared/index.js +26 -0
  380. package/dist/shared/index.js.map +1 -0
  381. package/dist/shared/invitation.d.ts +1525 -0
  382. package/dist/shared/invitation.d.ts.map +1 -0
  383. package/dist/shared/invitation.js +60 -0
  384. package/dist/shared/invitation.js.map +1 -0
  385. package/dist/shared/operator.d.ts +956 -0
  386. package/dist/shared/operator.d.ts.map +1 -0
  387. package/dist/shared/operator.js +48 -0
  388. package/dist/shared/operator.js.map +1 -0
  389. package/dist/shared/tracking.d.ts +31 -0
  390. package/dist/shared/tracking.d.ts.map +1 -0
  391. package/dist/shared/tracking.js +23 -0
  392. package/dist/shared/tracking.js.map +1 -0
  393. package/dist/shared/user.d.ts +77 -0
  394. package/dist/shared/user.d.ts.map +1 -0
  395. package/dist/shared/user.js +22 -0
  396. package/dist/shared/user.js.map +1 -0
  397. package/dist/sync.d.ts +539 -0
  398. package/dist/sync.d.ts.map +1 -0
  399. package/dist/sync.js +329 -0
  400. package/dist/sync.js.map +1 -0
  401. package/dist/time.d.ts +139 -0
  402. package/dist/time.d.ts.map +1 -0
  403. package/dist/time.js +93 -0
  404. package/dist/time.js.map +1 -0
  405. package/dist/user.d.ts +394 -0
  406. package/dist/user.d.ts.map +1 -0
  407. package/dist/user.js +205 -0
  408. package/dist/user.js.map +1 -0
  409. package/dist/workspace/admin.d.ts +91 -0
  410. package/dist/workspace/admin.d.ts.map +1 -0
  411. package/dist/workspace/admin.js +33 -0
  412. package/dist/workspace/admin.js.map +1 -0
  413. package/dist/workspace/billing.d.ts +2 -0
  414. package/dist/workspace/billing.d.ts.map +1 -0
  415. package/dist/workspace/billing.js +18 -0
  416. package/dist/workspace/billing.js.map +1 -0
  417. package/dist/workspace/connector.d.ts +595 -0
  418. package/dist/workspace/connector.d.ts.map +1 -0
  419. package/dist/workspace/connector.js +229 -0
  420. package/dist/workspace/connector.js.map +1 -0
  421. package/dist/workspace/index.d.ts +36 -0
  422. package/dist/workspace/index.d.ts.map +1 -0
  423. package/dist/workspace/index.js +21 -0
  424. package/dist/workspace/index.js.map +1 -0
  425. package/package.json +70 -0
  426. package/src/api.ts +147 -0
  427. package/src/auth.ts +103 -0
  428. package/src/aux/agent-rvs.ts +596 -0
  429. package/src/aux/agents.ts +542 -0
  430. package/src/aux/customer-rvs.ts +421 -0
  431. package/src/aux/customers.ts +80 -0
  432. package/src/aux/index.ts +4 -0
  433. package/src/billing.ts +330 -0
  434. package/src/bucket.ts +58 -0
  435. package/src/context.ts +167 -0
  436. package/src/csp/analytics.ts +238 -0
  437. package/src/csp/base.ts +18 -0
  438. package/src/csp/index.ts +41 -0
  439. package/src/csp/inventory.ts +325 -0
  440. package/src/csp/order.ts +485 -0
  441. package/src/csp/webhook.ts +269 -0
  442. package/src/de.profile.ts +123 -0
  443. package/src/dev/developer.ts +90 -0
  444. package/src/dev/index.ts +81 -0
  445. package/src/entity.ts +154 -0
  446. package/src/events.ts +349 -0
  447. package/src/faq.ts +39 -0
  448. package/src/geo.ts +111 -0
  449. package/src/index.ts +48 -0
  450. package/src/inventory.ts +405 -0
  451. package/src/invoice.ts +37 -0
  452. package/src/iotsp/device.ts +334 -0
  453. package/src/iotsp/index.ts +91 -0
  454. package/src/iotsp/rule.ts +227 -0
  455. package/src/iotsp/topic.ts +191 -0
  456. package/src/lsp/carrier/analytics.ts +393 -0
  457. package/src/lsp/carrier/capabilities.ts +1009 -0
  458. package/src/lsp/carrier/capacities.ts +723 -0
  459. package/src/lsp/carrier/index.ts +175 -0
  460. package/src/lsp/carrier/performance.ts +145 -0
  461. package/src/lsp/carrier/utilities.ts +654 -0
  462. package/src/lsp/consolidation.ts +420 -0
  463. package/src/lsp/coverage.ts +869 -0
  464. package/src/lsp/fleet/index.ts +327 -0
  465. package/src/lsp/fleet/maintenance.ts +478 -0
  466. package/src/lsp/fleet/parking.ts +582 -0
  467. package/src/lsp/fleet/vehicle.ts +381 -0
  468. package/src/lsp/graph.ts +113 -0
  469. package/src/lsp/hub/analytics.ts +236 -0
  470. package/src/lsp/hub/capabilities.ts +549 -0
  471. package/src/lsp/hub/capacities.ts +590 -0
  472. package/src/lsp/hub/index.ts +298 -0
  473. package/src/lsp/hub/performance.ts +89 -0
  474. package/src/lsp/hub/utilities.ts +560 -0
  475. package/src/lsp/index.ts +125 -0
  476. package/src/lsp/operations.ts +304 -0
  477. package/src/lsp/order/delivery.ts +212 -0
  478. package/src/lsp/order/flow/processes.ts +70 -0
  479. package/src/lsp/order/flow/stages.ts +119 -0
  480. package/src/lsp/order/inbound.ts +231 -0
  481. package/src/lsp/order/internal.ts +305 -0
  482. package/src/lsp/order/management.ts +367 -0
  483. package/src/lsp/order/outbound.ts +128 -0
  484. package/src/lsp/order/passthrough.ts +434 -0
  485. package/src/lsp/order/ride.ts +190 -0
  486. package/src/lsp/order/shipping.ts +263 -0
  487. package/src/lsp/performance.ts +2 -0
  488. package/src/lsp/pod/index.ts +323 -0
  489. package/src/lsp/pricing.ts +1097 -0
  490. package/src/lsp/processing.ts +243 -0
  491. package/src/lsp/product.ts +104 -0
  492. package/src/lsp/psl.ts +399 -0
  493. package/src/lsp/terminal/analytics.ts +334 -0
  494. package/src/lsp/terminal/capabilities.ts +541 -0
  495. package/src/lsp/terminal/capacities.ts +556 -0
  496. package/src/lsp/terminal/index.ts +442 -0
  497. package/src/lsp/terminal/performance.ts +168 -0
  498. package/src/lsp/terminal/utilities.ts +173 -0
  499. package/src/lsp/warehouse/analytics.ts +248 -0
  500. package/src/lsp/warehouse/capabilities.ts +673 -0
  501. package/src/lsp/warehouse/capacities.ts +538 -0
  502. package/src/lsp/warehouse/index.ts +298 -0
  503. package/src/lsp/warehouse/performance.ts +83 -0
  504. package/src/lsp/warehouse/utilities.ts +634 -0
  505. package/src/lsp/zones.ts +148 -0
  506. package/src/measure.ts +240 -0
  507. package/src/operator.ts +39 -0
  508. package/src/order.ts +1207 -0
  509. package/src/realm/index.ts +3 -0
  510. package/src/realm/pipelines.ts +1607 -0
  511. package/src/realm/queries.ts +608 -0
  512. package/src/realm/utilities.ts +730 -0
  513. package/src/routing.ts +69 -0
  514. package/src/service.ts +66 -0
  515. package/src/shared/access.ts +58 -0
  516. package/src/shared/account.ts +25 -0
  517. package/src/shared/auth.ts +30 -0
  518. package/src/shared/bucket.ts +153 -0
  519. package/src/shared/faq.ts +139 -0
  520. package/src/shared/index.ts +9 -0
  521. package/src/shared/invitation.ts +124 -0
  522. package/src/shared/operator.ts +159 -0
  523. package/src/shared/tracking.ts +30 -0
  524. package/src/shared/user.ts +42 -0
  525. package/src/sync.ts +364 -0
  526. package/src/time.ts +113 -0
  527. package/src/user.ts +243 -0
  528. package/src/workspace/admin.ts +38 -0
  529. package/src/workspace/billing.ts +1 -0
  530. package/src/workspace/connector.ts +270 -0
  531. package/src/workspace/index.ts +22 -0
package/src/routing.ts ADDED
@@ -0,0 +1,69 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import { AddressSchema, ContactsSchema, RTLocationSchema } from './geo'
3
+ import { DistanceSchema } from './measure'
4
+ import { DateTimeScheduleSchema, DurationSchema } from './time'
5
+
6
+ // ─── Waypoint ─────────────────────────────────────────────────────────────────
7
+
8
+ export const WaypointActionSchema = Type.Union([
9
+ Type.Literal('PICKUP'),
10
+ Type.Literal('DROPOFF'),
11
+ Type.Literal('CONSOLIDATION'),
12
+ Type.Literal('DECONSOLIDATION')
13
+ ])
14
+ export const WaypointLocationTypeSchema = Type.Union([
15
+ Type.Literal('ANY'),
16
+ Type.Literal('HUB'),
17
+ Type.Literal('WAREHOUSE'),
18
+ Type.Literal('PICKUP_POINT'),
19
+ Type.Literal('CONSOLIDATION_POINT'),
20
+ Type.Literal('DECONSOLIDATION_POINT'),
21
+ Type.Literal('CUSTOMER')
22
+ ])
23
+ export const WaypointSchema = Type.Object({
24
+ no: Type.Number({ minimum: 1 }), // Position in route sequence
25
+ action: WaypointActionSchema,
26
+ type: WaypointLocationTypeSchema,
27
+ address: AddressSchema,
28
+ contact: ContactsSchema,
29
+ handshake: Type.Optional(Type.Object({
30
+ code: Type.Number(),
31
+ link: Type.Optional(Type.String({ format: 'uri' }))
32
+ })),
33
+ schedule: Type.Optional(DateTimeScheduleSchema),
34
+ note: Type.Optional(Type.String({ maxLength: 500 }))
35
+ })
36
+
37
+ // ─── Routing ──────────────────────────────────────────────────────────────────
38
+ //
39
+ // RoutingSegmentSchema.transitMode is typed as string here because
40
+ // CoverageTransitModeSchema lives in de.arch LSP types.
41
+ // Use the full RoutingSegmentSchema from de.arch for LSP-specific contexts.
42
+
43
+ export const RoutingSegmentSchema = Type.Object({
44
+ from: WaypointSchema,
45
+ to: WaypointSchema,
46
+ distance: Type.Optional(DistanceSchema),
47
+ duration: Type.Optional(DurationSchema),
48
+ transitMode: Type.String() // CoverageTransitMode in LSP context
49
+ })
50
+ export const RoutingOptimizationSchema = Type.Object({
51
+ score: Type.Optional(Type.Number({ minimum: 0, maximum: 100 })),
52
+ route: Type.Object({}, { additionalProperties: true }) // GeoJSON route
53
+ })
54
+ export const RoutingSchema = Type.Object({
55
+ id: Type.String(),
56
+ sequence: Type.Number({ minimum: 1 }),
57
+ segments: Type.Array(RoutingSegmentSchema),
58
+ optimization: Type.Optional(RoutingOptimizationSchema),
59
+ currentLocation: Type.Optional(RTLocationSchema)
60
+ })
61
+
62
+ // ─── TypeScript types ─────────────────────────────────────────────────────────
63
+
64
+ export type WaypointAction = Static<typeof WaypointActionSchema>
65
+ export type WaypointLocationType = Static<typeof WaypointLocationTypeSchema>
66
+ export type Waypoint = Static<typeof WaypointSchema>
67
+ export type RoutingSegment = Static<typeof RoutingSegmentSchema>
68
+ export type RoutingOptimization = Static<typeof RoutingOptimizationSchema>
69
+ export type Routing = Static<typeof RoutingSchema>
package/src/service.ts ADDED
@@ -0,0 +1,66 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import { ContextSchema } from './context'
3
+ import { FAQDefinitionSchema } from './faq'
4
+ import { ActionRecordSchema, TimeZoneSchema } from './time'
5
+ import { AddressSchema, ContactsSchema } from './geo'
6
+ import { AlertSchema, EntityStatusSchema, OperatingHoursSchema, OperatingModeSchema } from './entity'
7
+ import { ServiceLevelSchema } from './measure'
8
+ import { SubscriptionSchema } from './billing'
9
+
10
+ // ─── Base service definition ──────────────────────────────────────────────────
11
+ //
12
+ // Shared profile schema for all De. service providers (LSP, CSP, IoTSP, etc.).
13
+ // Each service extends this with its own capability and capacity fields.
14
+
15
+ export const BaseServiceDefinitionProfileSchema = Type.Object({
16
+ context: ContextSchema,
17
+ id: Type.String(),
18
+ type: Type.String(),
19
+ name: Type.String({ minLength: 1, maxLength: 100 }),
20
+ code: Type.String({ minLength: 1, maxLength: 50 }),
21
+ description: Type.String({ maxLength: 1000 }),
22
+ website: Type.Optional(Type.String()),
23
+ address: AddressSchema,
24
+ contacts: ContactsSchema,
25
+ operatingMode: OperatingModeSchema,
26
+ operatingHours: Type.Array(OperatingHoursSchema),
27
+ healthScore: Type.Optional(Type.Number({ minimum: 0, maximum: 100 })),
28
+ digitalTwinSync: Type.Boolean(),
29
+ status: EntityStatusSchema,
30
+ timezone: TimeZoneSchema,
31
+ alerts: Type.Optional(Type.Array(AlertSchema)),
32
+ tags: Type.Optional(Type.Array(Type.String())),
33
+ customAttributes: Type.Optional(Type.Record(Type.String(), Type.Any())),
34
+ created: ActionRecordSchema,
35
+ updated: Type.Optional(ActionRecordSchema)
36
+ })
37
+
38
+ export const BaseServiceDefinitionSchema = Type.Composite([
39
+ BaseServiceDefinitionProfileSchema,
40
+ Type.Object({
41
+ subscription: Type.Optional(SubscriptionSchema),
42
+ faqs: Type.Array(FAQDefinitionSchema)
43
+ })
44
+ ])
45
+
46
+ export const BaseServiceDefinitionUpdateSchema = Type.Object({
47
+ name: Type.Optional(Type.String({ minLength: 1, maxLength: 100 })),
48
+ code: Type.Optional(Type.String({ minLength: 1, maxLength: 50 })),
49
+ description: Type.Optional(Type.String({ maxLength: 1000 })),
50
+ website: Type.Optional(Type.String()),
51
+ address: Type.Optional(AddressSchema),
52
+ contacts: Type.Optional(ContactsSchema),
53
+ operatingMode: Type.Optional(OperatingModeSchema),
54
+ operatingHours: Type.Optional(Type.Array(OperatingHoursSchema)),
55
+ serviceLevel: Type.Optional(ServiceLevelSchema),
56
+ status: Type.Optional(EntityStatusSchema),
57
+ timezone: Type.Optional(TimeZoneSchema),
58
+ tags: Type.Optional(Type.Array(Type.String())),
59
+ customAttributes: Type.Optional(Type.Record(Type.String(), Type.Any()))
60
+ }, { additionalProperties: false })
61
+
62
+ // ─── TypeScript types ─────────────────────────────────────────────────────────
63
+
64
+ export type BaseServiceDefinitionProfile = Static<typeof BaseServiceDefinitionProfileSchema>
65
+ export type BaseServiceDefinition = Static<typeof BaseServiceDefinitionSchema>
66
+ export type BaseServiceDefinitionUpdate = Static<typeof BaseServiceDefinitionUpdateSchema>
@@ -0,0 +1,58 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import {
3
+ APIHeadersSchema,
4
+ APIResponseBaseSchema,
5
+ APIResponseDataSchemaFactory,
6
+ RequestTokenBodySchema,
7
+ RotateTokenBodySchema,
8
+ RevokeTokenBodySchema
9
+ } from '../api'
10
+ import { ConnectorConfigSchema, ConnectorTypeSchema } from '../workspace/connector'
11
+
12
+ export const SharedGetTokenRVS = {
13
+ headers: Type.Object({
14
+ origin: Type.String(),
15
+ 'de-user-agent': Type.Optional(Type.String())
16
+ }),
17
+ body: RequestTokenBodySchema,
18
+ response: APIResponseDataSchemaFactory({ token: Type.String() })
19
+ }
20
+
21
+ export const SharedRotateTokenRVS = {
22
+ headers: APIHeadersSchema,
23
+ body: RotateTokenBodySchema,
24
+ response: APIResponseDataSchemaFactory({ token: Type.String() })
25
+ }
26
+
27
+ export const SharedRevokeTokenRVS = {
28
+ headers: APIHeadersSchema,
29
+ body: RevokeTokenBodySchema,
30
+ response: APIResponseBaseSchema,
31
+ }
32
+
33
+ export const SharedGetConfigRVS = {
34
+ headers: APIHeadersSchema,
35
+ querystring: Type.Object({ expects: Type.Optional(ConnectorTypeSchema) }),
36
+ response: APIResponseDataSchemaFactory({ config: ConnectorConfigSchema })
37
+ }
38
+
39
+ export type SharedGetTokenValidation = {
40
+ headers: Static<typeof SharedGetTokenRVS.headers>,
41
+ body: Static<typeof SharedGetTokenRVS.body>,
42
+ response: Static<typeof SharedGetTokenRVS.response>
43
+ }
44
+ export type SharedRotateTokenValidation = {
45
+ headers: Static<typeof SharedRotateTokenRVS.headers>,
46
+ body: Static<typeof SharedRotateTokenRVS.body>,
47
+ response: Static<typeof SharedRotateTokenRVS.response>
48
+ }
49
+ export type SharedRevokeTokenValidation = {
50
+ headers: Static<typeof SharedRevokeTokenRVS.headers>,
51
+ body: Static<typeof SharedRevokeTokenRVS.body>,
52
+ response: Static<typeof SharedRevokeTokenRVS.response>
53
+ }
54
+ export type SharedGetConfigValidation = {
55
+ headers: Static<typeof SharedGetConfigRVS.headers>,
56
+ querystring: Static<typeof SharedGetConfigRVS.querystring>,
57
+ response: Static<typeof SharedGetConfigRVS.response>
58
+ }
@@ -0,0 +1,25 @@
1
+ import { Static, Type } from '@sinclair/typebox'
2
+ import {
3
+ APIHeadersSchema,
4
+ APIResponseDataSchemaFactory
5
+ } from '../api'
6
+ import { UserAccountPublicSchema } from '../user'
7
+
8
+ export const SharedAccountKnowsRVS = {
9
+ headers: APIHeadersSchema,
10
+ response: APIResponseDataSchemaFactory({ uid: Type.String(), connected: Type.Boolean() })
11
+ }
12
+
13
+ export const SharedAccountRetrieveRVS = {
14
+ headers: APIHeadersSchema,
15
+ response: APIResponseDataSchemaFactory({ account: UserAccountPublicSchema })
16
+ }
17
+
18
+ export type SharedAccountKnowsValidation = {
19
+ headers: Static<typeof SharedAccountKnowsRVS.headers>
20
+ response: Static<typeof SharedAccountKnowsRVS.response>
21
+ }
22
+ export type SharedAccountRetrieveValidation = {
23
+ headers: Static<typeof SharedAccountRetrieveRVS.headers>
24
+ response: Static<typeof SharedAccountRetrieveRVS.response>
25
+ }
@@ -0,0 +1,30 @@
1
+ import { Static, Type } from '@sinclair/typebox'
2
+ import {
3
+ APIResponseBaseSchema,
4
+ APIResponseDataSchemaFactory,
5
+ APIServiceHeadersSchema
6
+ } from '../api'
7
+
8
+ export const SharedAuthSetupRVS = {
9
+ headers: APIServiceHeadersSchema,
10
+ body: Type.Object({
11
+ phone: Type.String({ example: '+33612345678' }),
12
+ country: Type.Object({}, { example: { code: 'FR', name: 'France' } })
13
+ }),
14
+ response: APIResponseDataSchemaFactory({ uid: Type.String() })
15
+ }
16
+
17
+ export const SharedAuthSignoutRVS = {
18
+ headers: APIServiceHeadersSchema,
19
+ body: Type.Object({ uid: Type.String({ example: 'usr-abc123' }) }),
20
+ response: APIResponseBaseSchema
21
+ }
22
+
23
+ export type SharedAuthSetupValidation = {
24
+ body: Static<typeof SharedAuthSetupRVS.body>,
25
+ response: Static<typeof SharedAuthSetupRVS.response>
26
+ }
27
+ export type SharedAuthSignoutValidation = {
28
+ body: Static<typeof SharedAuthSignoutRVS.body>,
29
+ response: Static<typeof SharedAuthSignoutRVS.response>
30
+ }
@@ -0,0 +1,153 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import {
3
+ APIErrorSchema,
4
+ APIHeadersSchema,
5
+ APIResponseBaseSchema,
6
+ APIResponseDataSchemaFactory
7
+ } from '../api'
8
+ import { UserTypeSchema } from '../user'
9
+ import { BucketSchema, BucketUpdateSchema } from '../bucket'
10
+ import { InventoryItemSchema } from '../inventory'
11
+ import { OrderPackageCategorySchema } from '../order'
12
+ import type { Bucket } from '../bucket'
13
+ import type { InventoryItem } from '../inventory'
14
+
15
+ export const SharedBucketCreateRVS = {
16
+ headers: APIHeadersSchema,
17
+ body: Type.Omit(BucketSchema, ['reference', 'context', 'PTC', 'items', 'assignees', 'locked', 'packaged', 'logs', 'created', 'updated']),
18
+ response: APIResponseDataSchemaFactory({ reference: Type.String() })
19
+ }
20
+
21
+ export const SharedBucketRetrieveRVS = {
22
+ headers: APIHeadersSchema,
23
+ params: Type.Object({ reference: Type.String() }),
24
+ response: APIResponseDataSchemaFactory({ bucket: BucketSchema })
25
+ }
26
+
27
+ export const SharedBucketFetchRVS = {
28
+ headers: APIHeadersSchema,
29
+ response: APIResponseDataSchemaFactory({ buckets: Type.Array(BucketSchema) })
30
+ }
31
+
32
+ export const SharedBucketUpdateRVS = {
33
+ headers: APIHeadersSchema,
34
+ params: Type.Object({ reference: Type.String() }),
35
+ body: BucketUpdateSchema,
36
+ response: APIResponseDataSchemaFactory({ bucket: BucketSchema })
37
+ }
38
+
39
+ export const SharedBucketRemoveRVS = {
40
+ headers: APIHeadersSchema,
41
+ params: Type.Object({ reference: Type.String() }),
42
+ response: APIResponseBaseSchema
43
+ }
44
+
45
+ export const SharedBucketAssignRVS = {
46
+ headers: APIHeadersSchema,
47
+ params: Type.Object({ reference: Type.String(), to: UserTypeSchema }),
48
+ body: Type.Object({
49
+ id: Type.String(),
50
+ permission: Type.Union([
51
+ Type.Literal('bucket.read'),
52
+ Type.Literal('bucket.write'),
53
+ Type.Literal('bucket.read-write')
54
+ ])
55
+ }),
56
+ response: APIResponseBaseSchema
57
+ }
58
+
59
+ export const SharedBucketUnassignRVS = {
60
+ headers: APIHeadersSchema,
61
+ params: Type.Object({ reference: Type.String(), to: UserTypeSchema }),
62
+ body: Type.Object({ id: Type.String() }),
63
+ response: APIResponseBaseSchema
64
+ }
65
+
66
+ export const SharedBucketLockOrUnlockRVS = {
67
+ headers: APIHeadersSchema,
68
+ params: Type.Object({
69
+ reference: Type.String(),
70
+ ockstate: Type.Union([Type.Literal('lock'), Type.Literal('unlock')])
71
+ }),
72
+ response: APIResponseBaseSchema
73
+ }
74
+
75
+ export const SharedBucketAddOrRemoveItemRVS = {
76
+ headers: APIHeadersSchema,
77
+ params: Type.Object({ reference: Type.String() }),
78
+ body: Type.Object({ id: Type.String() }),
79
+ response: APIResponseBaseSchema
80
+ }
81
+
82
+ export const SharedBucketFetchItemsRVS = {
83
+ headers: APIHeadersSchema,
84
+ params: Type.Object({ reference: Type.String() }),
85
+ response: APIResponseDataSchemaFactory({ items: Type.Array(InventoryItemSchema) })
86
+ }
87
+
88
+ export const SharedBucketPackagedRVS = {
89
+ headers: APIHeadersSchema,
90
+ params: Type.Object({ reference: Type.String() }),
91
+ body: Type.Object({ category: OrderPackageCategorySchema }),
92
+ response: APIResponseDataSchemaFactory({ package: Type.Array(BucketSchema) })
93
+ }
94
+
95
+ export type SharedBucketCreateValidation = {
96
+ headers: Static<typeof SharedBucketCreateRVS.headers>,
97
+ body: Static<typeof SharedBucketCreateRVS.body>,
98
+ response: Static<typeof SharedBucketCreateRVS.response>
99
+ }
100
+ export type SharedBucketRetrieveValidation = {
101
+ headers: Static<typeof SharedBucketFetchRVS.headers>,
102
+ params: Static<typeof SharedBucketRetrieveRVS.params>,
103
+ response: Static<typeof SharedBucketRetrieveRVS.response>
104
+ }
105
+ export type SharedBucketFetchValidation = {
106
+ headers: Static<typeof SharedBucketFetchRVS.headers>,
107
+ response: Static<typeof SharedBucketFetchRVS.response>
108
+ }
109
+ export type SharedBucketUpdateValidation = {
110
+ headers: Static<typeof SharedBucketUpdateRVS.headers>,
111
+ params: Static<typeof SharedBucketUpdateRVS.params>,
112
+ body: Static<typeof SharedBucketUpdateRVS.body>,
113
+ response: Static<typeof SharedBucketUpdateRVS.response>
114
+ }
115
+ export type SharedBucketRemoveValidation = {
116
+ headers: Static<typeof SharedBucketRemoveRVS.headers>,
117
+ params: Static<typeof SharedBucketRemoveRVS.params>,
118
+ response: Static<typeof SharedBucketRemoveRVS.response>
119
+ }
120
+ export type SharedBucketAssignValidation = {
121
+ headers: Static<typeof SharedBucketAssignRVS.headers>,
122
+ params: Static<typeof SharedBucketAssignRVS.params>,
123
+ body: Static<typeof SharedBucketAssignRVS.body>,
124
+ response: Static<typeof SharedBucketAssignRVS.response>
125
+ }
126
+ export type SharedBucketUnassignValidation = {
127
+ headers: Static<typeof SharedBucketUnassignRVS.headers>,
128
+ params: Static<typeof SharedBucketUnassignRVS.params>,
129
+ body: Static<typeof SharedBucketUnassignRVS.body>,
130
+ response: Static<typeof SharedBucketUnassignRVS.response>
131
+ }
132
+ export type SharedBucketLockOrUnlockValidation = {
133
+ headers: Static<typeof SharedBucketLockOrUnlockRVS.headers>,
134
+ params: Static<typeof SharedBucketLockOrUnlockRVS.params>,
135
+ response: Static<typeof SharedBucketLockOrUnlockRVS.response>
136
+ }
137
+ export type SharedBucketAddOrRemoveItemValidation = {
138
+ headers: Static<typeof SharedBucketAddOrRemoveItemRVS.headers>,
139
+ params: Static<typeof SharedBucketAddOrRemoveItemRVS.params>,
140
+ body: Static<typeof SharedBucketAddOrRemoveItemRVS.body>,
141
+ response: Static<typeof SharedBucketAddOrRemoveItemRVS.response>
142
+ }
143
+ export type SharedBucketFetchItemsValidation = {
144
+ headers: Static<typeof SharedBucketFetchItemsRVS.headers>,
145
+ params: Static<typeof SharedBucketFetchItemsRVS.params>,
146
+ response: Static<typeof SharedBucketFetchItemsRVS.response>
147
+ }
148
+ export type SharedBucketPackagedValidation = {
149
+ headers: Static<typeof SharedBucketPackagedRVS.headers>,
150
+ params: Static<typeof SharedBucketPackagedRVS.params>,
151
+ body: Static<typeof SharedBucketPackagedRVS.body>,
152
+ response: Static<typeof SharedBucketPackagedRVS.response>
153
+ }
@@ -0,0 +1,139 @@
1
+ import { Type, Static } from '@sinclair/typebox'
2
+ import {
3
+ APIErrorSchema,
4
+ APIHeadersSchema,
5
+ APIResponseBaseSchema,
6
+ APIResponseDataSchemaFactory
7
+ } from '../api'
8
+ import { GenericServiceContextSchema } from '../context'
9
+ import { FAQDefinitionSchema, FAQDefinitionUpdateSchema, FAQDefinitionStatusSchema } from '../faq'
10
+ import type { FAQDefinition } from '../faq'
11
+
12
+ export const SharedFAQAddRVS = {
13
+ headers: APIHeadersSchema,
14
+ body: Type.Omit(FAQDefinitionSchema, ['reference', 'context', 'status', 'contexts', 'locked', 'added', 'updated']),
15
+ response: APIResponseDataSchemaFactory({ reference: Type.String() })
16
+ }
17
+
18
+ export const SharedFAQRetrieveRVS = {
19
+ headers: APIHeadersSchema,
20
+ params: Type.Object({ reference: Type.String() }),
21
+ response: APIResponseDataSchemaFactory({ faq: FAQDefinitionSchema })
22
+ }
23
+
24
+ export const SharedFAQFetchRVS = {
25
+ headers: APIHeadersSchema,
26
+ querystring: Type.Object({
27
+ limit: Type.Optional(Type.String()),
28
+ offset: Type.Optional(Type.String()),
29
+ status: Type.Optional(FAQDefinitionStatusSchema),
30
+ context: Type.Optional(Type.String())
31
+ }),
32
+ response: APIResponseDataSchemaFactory({ faqs: Type.Array(FAQDefinitionSchema), more: Type.Optional(Type.String()) }),
33
+ }
34
+
35
+ export const SharedFAQSearchRVS = {
36
+ headers: APIHeadersSchema,
37
+ querystring: Type.Object({
38
+ query: Type.String(),
39
+ limit: Type.Optional(Type.String()),
40
+ status: Type.Optional(FAQDefinitionStatusSchema)
41
+ }),
42
+ response: APIResponseDataSchemaFactory({ faqs: Type.Array(FAQDefinitionSchema), query: Type.String() })
43
+ }
44
+
45
+ export const SharedFAQUpdateRVS = {
46
+ headers: APIHeadersSchema,
47
+ params: Type.Object({ reference: Type.String() }),
48
+ body: FAQDefinitionUpdateSchema,
49
+ response: APIResponseDataSchemaFactory({ faq: FAQDefinitionSchema })
50
+ }
51
+
52
+ export const SharedFAQRemoveRVS = {
53
+ headers: APIHeadersSchema,
54
+ params: Type.Object({ reference: Type.String() }),
55
+ response: APIResponseBaseSchema
56
+ }
57
+
58
+ export const SharedFAQAddServiceContextRVS = {
59
+ headers: APIHeadersSchema,
60
+ params: Type.Object({ reference: Type.String() }),
61
+ body: GenericServiceContextSchema,
62
+ response: APIResponseDataSchemaFactory({ faq: FAQDefinitionSchema })
63
+ }
64
+
65
+ export const SharedFAQRemoveServiceContextRVS = {
66
+ headers: APIHeadersSchema,
67
+ params: Type.Object({ reference: Type.String() }),
68
+ body: Type.Partial(GenericServiceContextSchema),
69
+ response: APIResponseDataSchemaFactory({ faq: FAQDefinitionSchema })
70
+ }
71
+
72
+ export const SharedFAQArchiveOrRestoreRVS = {
73
+ headers: APIHeadersSchema,
74
+ params: Type.Object({ reference: Type.String() }),
75
+ response: APIResponseBaseSchema
76
+ }
77
+
78
+ export const SharedFAQLockOrUnlockRVS = {
79
+ headers: APIHeadersSchema,
80
+ params: Type.Object({
81
+ reference: Type.String(),
82
+ ockstate: Type.Union([Type.Literal('lock'), Type.Literal('unlock')])
83
+ }),
84
+ response: APIResponseBaseSchema
85
+ }
86
+
87
+ export type SharedFAQAddValidation = {
88
+ headers: Static<typeof SharedFAQAddRVS.headers>,
89
+ body: Static<typeof SharedFAQAddRVS.body>,
90
+ response: Static<typeof SharedFAQAddRVS.response>
91
+ }
92
+ export type SharedFAQRetrieveValidation = {
93
+ headers: Static<typeof SharedFAQRetrieveRVS.headers>,
94
+ params: Static<typeof SharedFAQRetrieveRVS.params>,
95
+ response: Static<typeof SharedFAQRetrieveRVS.response>
96
+ }
97
+ export type SharedFAQFetchValidation = {
98
+ headers: Static<typeof SharedFAQFetchRVS.headers>,
99
+ querystring: Static<typeof SharedFAQFetchRVS.querystring>,
100
+ response: Static<typeof SharedFAQFetchRVS.response>
101
+ }
102
+ export type SharedFAQSearchValidation = {
103
+ headers: Static<typeof SharedFAQSearchRVS.headers>,
104
+ querystring: Static<typeof SharedFAQSearchRVS.querystring>,
105
+ response: Static<typeof SharedFAQSearchRVS.response>
106
+ }
107
+ export type SharedFAQUpdateValidation = {
108
+ headers: Static<typeof SharedFAQUpdateRVS.headers>,
109
+ params: Static<typeof SharedFAQUpdateRVS.params>,
110
+ body: Static<typeof SharedFAQUpdateRVS.body>,
111
+ response: Static<typeof SharedFAQUpdateRVS.response>
112
+ }
113
+ export type SharedFAQRemoveValidation = {
114
+ headers: Static<typeof SharedFAQRemoveRVS.headers>,
115
+ params: Static<typeof SharedFAQRemoveRVS.params>,
116
+ response: Static<typeof SharedFAQRemoveRVS.response>
117
+ }
118
+ export type SharedFAQAddServiceContextValidation = {
119
+ headers: Static<typeof SharedFAQAddServiceContextRVS.headers>,
120
+ params: Static<typeof SharedFAQAddServiceContextRVS.params>,
121
+ body: Static<typeof SharedFAQAddServiceContextRVS.body>,
122
+ response: Static<typeof SharedFAQAddServiceContextRVS.response>
123
+ }
124
+ export type SharedFAQRemoveServiceContextValidation = {
125
+ headers: Static<typeof SharedFAQRemoveServiceContextRVS.headers>,
126
+ params: Static<typeof SharedFAQRemoveServiceContextRVS.params>,
127
+ body: Static<typeof SharedFAQRemoveServiceContextRVS.body>,
128
+ response: Static<typeof SharedFAQRemoveServiceContextRVS.response>
129
+ }
130
+ export type SharedFAQArchiveOrRestoreValidation = {
131
+ headers: Static<typeof SharedFAQArchiveOrRestoreRVS.headers>,
132
+ params: Static<typeof SharedFAQArchiveOrRestoreRVS.params>,
133
+ response: Static<typeof SharedFAQArchiveOrRestoreRVS.response>
134
+ }
135
+ export type SharedFAQLockOrUnlockValidation = {
136
+ headers: Static<typeof SharedFAQLockOrUnlockRVS.headers>,
137
+ params: Static<typeof SharedFAQLockOrUnlockRVS.params>,
138
+ response: Static<typeof SharedFAQLockOrUnlockRVS.response>
139
+ }
@@ -0,0 +1,9 @@
1
+ export * from './access'
2
+ export * from './auth'
3
+ export * from './account'
4
+ export * from './bucket'
5
+ export * from './faq'
6
+ export * from './invitation'
7
+ export * from './operator'
8
+ export * from './tracking'
9
+ export * from './user'
@@ -0,0 +1,124 @@
1
+ import { Type, Static, type TObject } from '@sinclair/typebox'
2
+ import {
3
+ APIHeadersSchema,
4
+ APIResponseBaseSchema,
5
+ APIResponseDataSchemaFactory
6
+ } from '../api'
7
+ import { AdminSchema } from '../workspace/admin'
8
+ import { AgentProfileSchema } from '../aux/agents'
9
+ import { DeveloperSchema } from '../dev/developer'
10
+ import { OperatorSchema } from '../operator'
11
+ import { type ContextType, CSPOperatorRoleSchema, DEVOperatorRoleSchema, LSPOperatorRoleSchema } from '..'
12
+
13
+ // ─── Builder ──────────────────────────────────────────────────────────────────
14
+
15
+ const buildInvitationRVS = <Op extends TObject>( operatorSchema: Op ) => {
16
+ const headersSchema = APIHeadersSchema
17
+ const
18
+ adminField = Type.Omit(AdminSchema, ['id', 'context', 'added', 'updated'] as const),
19
+ agentField = Type.Omit(AgentProfileSchema, ['id', 'context', 'added', 'updated'] as const),
20
+ operatorField = Type.Omit(operatorSchema, ['id', 'context', 'currentLocation', 'added', 'updated'] as const),
21
+ developerField = Type.Omit(DeveloperSchema, ['id', 'context', 'added', 'updated'] as const)
22
+
23
+ return {
24
+ operatorField,
25
+ invite: {
26
+ headers: headersSchema,
27
+ params: Type.Object({
28
+ wid: Type.Optional(Type.String()),
29
+ xcode: Type.Optional(Type.String()),
30
+ as: Type.String()
31
+ }),
32
+ body: Type.Object({
33
+ phone: Type.String(),
34
+ name: Type.String(),
35
+ admin: Type.Optional(adminField),
36
+ agent: Type.Optional(agentField),
37
+ operator: Type.Optional(operatorField),
38
+ developer: Type.Optional(developerField)
39
+ }, { additionalProperties: false }),
40
+ response: APIResponseDataSchemaFactory({ vcode: Type.String() })
41
+ },
42
+ cancel: {
43
+ headers: headersSchema,
44
+ body: Type.Object({ vcode: Type.String() }),
45
+ response: APIResponseBaseSchema
46
+ },
47
+ accept: {
48
+ headers: headersSchema,
49
+ body: Type.Object({ vcode: Type.String() }),
50
+ response: APIResponseBaseSchema
51
+ }
52
+ }
53
+ }
54
+
55
+ // ─── Per-context RVS ──────────────────────────────────────────────────────────
56
+
57
+ export const DEVSharedInvitationRVS = buildInvitationRVS( OperatorSchema(DEVOperatorRoleSchema) )
58
+ export const CSPSharedInvitationRVS = buildInvitationRVS( OperatorSchema(CSPOperatorRoleSchema) )
59
+ export const LSPSharedInvitationRVS = buildInvitationRVS( OperatorSchema(LSPOperatorRoleSchema) )
60
+
61
+ // ─── ctype dispatcher ─────────────────────────────────────────────────────────
62
+
63
+ export const SharedInvitationRVS = ( ctype: ContextType ) => {
64
+ switch( ctype ){
65
+ case 'DEV': return DEVSharedInvitationRVS
66
+ case 'CSP': return CSPSharedInvitationRVS
67
+ case 'LSP': return LSPSharedInvitationRVS
68
+ default: return LSPSharedInvitationRVS
69
+ }
70
+ }
71
+
72
+ // ─── Validation types ─────────────────────────────────────────────────────────
73
+
74
+ export type DEVSharedInvitationSendValidation = {
75
+ headers: Static<typeof DEVSharedInvitationRVS.invite.headers>
76
+ params: Static<typeof DEVSharedInvitationRVS.invite.params>
77
+ body: Static<typeof DEVSharedInvitationRVS.invite.body>
78
+ response: Static<typeof DEVSharedInvitationRVS.invite.response>
79
+ }
80
+ export type DEVSharedInvitationCancelValidation = {
81
+ headers: Static<typeof DEVSharedInvitationRVS.cancel.headers>
82
+ body: Static<typeof DEVSharedInvitationRVS.cancel.body>
83
+ response: Static<typeof DEVSharedInvitationRVS.cancel.response>
84
+ }
85
+ export type DEVSharedInvitationAcceptValidation = {
86
+ headers: Static<typeof DEVSharedInvitationRVS.accept.headers>
87
+ body: Static<typeof DEVSharedInvitationRVS.accept.body>
88
+ response: Static<typeof DEVSharedInvitationRVS.accept.response>
89
+ }
90
+
91
+ export type CSPSharedInvitationSendValidation = {
92
+ headers: Static<typeof CSPSharedInvitationRVS.invite.headers>
93
+ params: Static<typeof CSPSharedInvitationRVS.invite.params>
94
+ body: Static<typeof CSPSharedInvitationRVS.invite.body>
95
+ response: Static<typeof CSPSharedInvitationRVS.invite.response>
96
+ }
97
+ export type CSPSharedInvitationCancelValidation = {
98
+ headers: Static<typeof CSPSharedInvitationRVS.cancel.headers>
99
+ body: Static<typeof CSPSharedInvitationRVS.cancel.body>
100
+ response: Static<typeof CSPSharedInvitationRVS.cancel.response>
101
+ }
102
+ export type CSPSharedInvitationAcceptValidation = {
103
+ headers: Static<typeof CSPSharedInvitationRVS.accept.headers>
104
+ body: Static<typeof CSPSharedInvitationRVS.accept.body>
105
+ response: Static<typeof CSPSharedInvitationRVS.accept.response>
106
+ }
107
+
108
+ export type LSPSharedInvitationSendValidation = {
109
+ headers: Static<typeof LSPSharedInvitationRVS.invite.headers>
110
+ params: Static<typeof LSPSharedInvitationRVS.invite.params>
111
+ body: Static<typeof LSPSharedInvitationRVS.invite.body>
112
+ response: Static<typeof LSPSharedInvitationRVS.invite.response>
113
+ }
114
+ export type LSPSharedInvitationCancelValidation = {
115
+ headers: Static<typeof LSPSharedInvitationRVS.cancel.headers>
116
+ body: Static<typeof LSPSharedInvitationRVS.cancel.body>
117
+ response: Static<typeof LSPSharedInvitationRVS.cancel.response>
118
+ }
119
+ export type LSPSharedInvitationAcceptValidation = {
120
+ headers: Static<typeof LSPSharedInvitationRVS.accept.headers>
121
+ body: Static<typeof LSPSharedInvitationRVS.accept.body>
122
+ response: Static<typeof LSPSharedInvitationRVS.accept.response>
123
+ }
124
+