@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.
- package/dist/api.d.ts +113 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +92 -0
- package/dist/api.js.map +1 -0
- package/dist/auth.d.ts +109 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +80 -0
- package/dist/auth.js.map +1 -0
- package/dist/aux/agent-rvs.d.ts +1205 -0
- package/dist/aux/agent-rvs.d.ts.map +1 -0
- package/dist/aux/agent-rvs.js +444 -0
- package/dist/aux/agent-rvs.js.map +1 -0
- package/dist/aux/agents.d.ts +1573 -0
- package/dist/aux/agents.d.ts.map +1 -0
- package/dist/aux/agents.js +487 -0
- package/dist/aux/agents.js.map +1 -0
- package/dist/aux/customer-rvs.d.ts +711 -0
- package/dist/aux/customer-rvs.d.ts.map +1 -0
- package/dist/aux/customer-rvs.js +321 -0
- package/dist/aux/customer-rvs.js.map +1 -0
- package/dist/aux/customers.d.ts +379 -0
- package/dist/aux/customers.d.ts.map +1 -0
- package/dist/aux/customers.js +67 -0
- package/dist/aux/customers.js.map +1 -0
- package/dist/aux/index.d.ts +5 -0
- package/dist/aux/index.d.ts.map +1 -0
- package/dist/aux/index.js +21 -0
- package/dist/aux/index.js.map +1 -0
- package/dist/billing.d.ts +367 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +308 -0
- package/dist/billing.js.map +1 -0
- package/dist/bucket.d.ts +97 -0
- package/dist/bucket.d.ts.map +1 -0
- package/dist/bucket.js +52 -0
- package/dist/bucket.js.map +1 -0
- package/dist/context.d.ts +148 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +148 -0
- package/dist/context.js.map +1 -0
- package/dist/csp/analytics.d.ts +270 -0
- package/dist/csp/analytics.d.ts.map +1 -0
- package/dist/csp/analytics.js +185 -0
- package/dist/csp/analytics.js.map +1 -0
- package/dist/csp/base.d.ts +11 -0
- package/dist/csp/base.d.ts.map +1 -0
- package/dist/csp/base.js +17 -0
- package/dist/csp/base.js.map +1 -0
- package/dist/csp/index.d.ts +107 -0
- package/dist/csp/index.d.ts.map +1 -0
- package/dist/csp/index.js +48 -0
- package/dist/csp/index.js.map +1 -0
- package/dist/csp/inventory.d.ts +361 -0
- package/dist/csp/inventory.d.ts.map +1 -0
- package/dist/csp/inventory.js +267 -0
- package/dist/csp/inventory.js.map +1 -0
- package/dist/csp/order.d.ts +1457 -0
- package/dist/csp/order.d.ts.map +1 -0
- package/dist/csp/order.js +367 -0
- package/dist/csp/order.js.map +1 -0
- package/dist/csp/webhook.d.ts +381 -0
- package/dist/csp/webhook.d.ts.map +1 -0
- package/dist/csp/webhook.js +207 -0
- package/dist/csp/webhook.js.map +1 -0
- package/dist/de.profile.d.ts +411 -0
- package/dist/de.profile.d.ts.map +1 -0
- package/dist/de.profile.js +98 -0
- package/dist/de.profile.js.map +1 -0
- package/dist/dev/developer.d.ts +211 -0
- package/dist/dev/developer.d.ts.map +1 -0
- package/dist/dev/developer.js +55 -0
- package/dist/dev/developer.js.map +1 -0
- package/dist/dev/index.d.ts +133 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +79 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/entity.d.ts +159 -0
- package/dist/entity.d.ts.map +1 -0
- package/dist/entity.js +127 -0
- package/dist/entity.js.map +1 -0
- package/dist/events.d.ts +1844 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +303 -0
- package/dist/events.js.map +1 -0
- package/dist/faq.d.ts +60 -0
- package/dist/faq.d.ts.map +1 -0
- package/dist/faq.js +31 -0
- package/dist/faq.js.map +1 -0
- package/dist/geo.d.ts +123 -0
- package/dist/geo.d.ts.map +1 -0
- package/dist/geo.js +87 -0
- package/dist/geo.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/inventory.d.ts +1347 -0
- package/dist/inventory.d.ts.map +1 -0
- package/dist/inventory.js +356 -0
- package/dist/inventory.js.map +1 -0
- package/dist/invoice.d.ts +46 -0
- package/dist/invoice.d.ts.map +1 -0
- package/dist/invoice.js +33 -0
- package/dist/invoice.js.map +1 -0
- package/dist/iotsp/device.d.ts +581 -0
- package/dist/iotsp/device.d.ts.map +1 -0
- package/dist/iotsp/device.js +277 -0
- package/dist/iotsp/device.js.map +1 -0
- package/dist/iotsp/index.d.ts +111 -0
- package/dist/iotsp/index.d.ts.map +1 -0
- package/dist/iotsp/index.js +76 -0
- package/dist/iotsp/index.js.map +1 -0
- package/dist/iotsp/rule.d.ts +340 -0
- package/dist/iotsp/rule.d.ts.map +1 -0
- package/dist/iotsp/rule.js +172 -0
- package/dist/iotsp/rule.js.map +1 -0
- package/dist/iotsp/topic.d.ts +249 -0
- package/dist/iotsp/topic.d.ts.map +1 -0
- package/dist/iotsp/topic.js +139 -0
- package/dist/iotsp/topic.js.map +1 -0
- package/dist/lsp/carrier/analytics.d.ts +1191 -0
- package/dist/lsp/carrier/analytics.d.ts.map +1 -0
- package/dist/lsp/carrier/analytics.js +354 -0
- package/dist/lsp/carrier/analytics.js.map +1 -0
- package/dist/lsp/carrier/capabilities.d.ts +3603 -0
- package/dist/lsp/carrier/capabilities.d.ts.map +1 -0
- package/dist/lsp/carrier/capabilities.js +880 -0
- package/dist/lsp/carrier/capabilities.js.map +1 -0
- package/dist/lsp/carrier/capacities.d.ts +4436 -0
- package/dist/lsp/carrier/capacities.d.ts.map +1 -0
- package/dist/lsp/carrier/capacities.js +615 -0
- package/dist/lsp/carrier/capacities.js.map +1 -0
- package/dist/lsp/carrier/index.d.ts +734 -0
- package/dist/lsp/carrier/index.d.ts.map +1 -0
- package/dist/lsp/carrier/index.js +150 -0
- package/dist/lsp/carrier/index.js.map +1 -0
- package/dist/lsp/carrier/performance.d.ts +567 -0
- package/dist/lsp/carrier/performance.d.ts.map +1 -0
- package/dist/lsp/carrier/performance.js +127 -0
- package/dist/lsp/carrier/performance.js.map +1 -0
- package/dist/lsp/carrier/utilities.d.ts +6671 -0
- package/dist/lsp/carrier/utilities.d.ts.map +1 -0
- package/dist/lsp/carrier/utilities.js +597 -0
- package/dist/lsp/carrier/utilities.js.map +1 -0
- package/dist/lsp/consolidation.d.ts +793 -0
- package/dist/lsp/consolidation.d.ts.map +1 -0
- package/dist/lsp/consolidation.js +343 -0
- package/dist/lsp/consolidation.js.map +1 -0
- package/dist/lsp/coverage.d.ts +7449 -0
- package/dist/lsp/coverage.d.ts.map +1 -0
- package/dist/lsp/coverage.js +706 -0
- package/dist/lsp/coverage.js.map +1 -0
- package/dist/lsp/fleet/index.d.ts +1128 -0
- package/dist/lsp/fleet/index.d.ts.map +1 -0
- package/dist/lsp/fleet/index.js +269 -0
- package/dist/lsp/fleet/index.js.map +1 -0
- package/dist/lsp/fleet/maintenance.d.ts +2022 -0
- package/dist/lsp/fleet/maintenance.d.ts.map +1 -0
- package/dist/lsp/fleet/maintenance.js +386 -0
- package/dist/lsp/fleet/maintenance.js.map +1 -0
- package/dist/lsp/fleet/parking.d.ts +2043 -0
- package/dist/lsp/fleet/parking.d.ts.map +1 -0
- package/dist/lsp/fleet/parking.js +458 -0
- package/dist/lsp/fleet/parking.js.map +1 -0
- package/dist/lsp/fleet/vehicle.d.ts +783 -0
- package/dist/lsp/fleet/vehicle.d.ts.map +1 -0
- package/dist/lsp/fleet/vehicle.js +314 -0
- package/dist/lsp/fleet/vehicle.js.map +1 -0
- package/dist/lsp/graph.d.ts +212 -0
- package/dist/lsp/graph.d.ts.map +1 -0
- package/dist/lsp/graph.js +92 -0
- package/dist/lsp/graph.js.map +1 -0
- package/dist/lsp/hub/analytics.d.ts +4294 -0
- package/dist/lsp/hub/analytics.d.ts.map +1 -0
- package/dist/lsp/hub/analytics.js +219 -0
- package/dist/lsp/hub/analytics.js.map +1 -0
- package/dist/lsp/hub/capabilities.d.ts +1467 -0
- package/dist/lsp/hub/capabilities.d.ts.map +1 -0
- package/dist/lsp/hub/capabilities.js +464 -0
- package/dist/lsp/hub/capabilities.js.map +1 -0
- package/dist/lsp/hub/capacities.d.ts +4278 -0
- package/dist/lsp/hub/capacities.d.ts.map +1 -0
- package/dist/lsp/hub/capacities.js +495 -0
- package/dist/lsp/hub/capacities.js.map +1 -0
- package/dist/lsp/hub/index.d.ts +2784 -0
- package/dist/lsp/hub/index.d.ts.map +1 -0
- package/dist/lsp/hub/index.js +268 -0
- package/dist/lsp/hub/index.js.map +1 -0
- package/dist/lsp/hub/performance.d.ts +391 -0
- package/dist/lsp/hub/performance.d.ts.map +1 -0
- package/dist/lsp/hub/performance.js +78 -0
- package/dist/lsp/hub/performance.js.map +1 -0
- package/dist/lsp/hub/utilities.d.ts +2996 -0
- package/dist/lsp/hub/utilities.d.ts.map +1 -0
- package/dist/lsp/hub/utilities.js +521 -0
- package/dist/lsp/hub/utilities.js.map +1 -0
- package/dist/lsp/index.d.ts +157 -0
- package/dist/lsp/index.d.ts.map +1 -0
- package/dist/lsp/index.js +121 -0
- package/dist/lsp/index.js.map +1 -0
- package/dist/lsp/operations.d.ts +563 -0
- package/dist/lsp/operations.d.ts.map +1 -0
- package/dist/lsp/operations.js +265 -0
- package/dist/lsp/operations.js.map +1 -0
- package/dist/lsp/order/delivery.d.ts +1119 -0
- package/dist/lsp/order/delivery.d.ts.map +1 -0
- package/dist/lsp/order/delivery.js +169 -0
- package/dist/lsp/order/delivery.js.map +1 -0
- package/dist/lsp/order/flow/processes.d.ts +8 -0
- package/dist/lsp/order/flow/processes.d.ts.map +1 -0
- package/dist/lsp/order/flow/processes.js +67 -0
- package/dist/lsp/order/flow/processes.js.map +1 -0
- package/dist/lsp/order/flow/stages.d.ts +8 -0
- package/dist/lsp/order/flow/stages.d.ts.map +1 -0
- package/dist/lsp/order/flow/stages.js +111 -0
- package/dist/lsp/order/flow/stages.js.map +1 -0
- package/dist/lsp/order/inbound.d.ts +1165 -0
- package/dist/lsp/order/inbound.d.ts.map +1 -0
- package/dist/lsp/order/inbound.js +185 -0
- package/dist/lsp/order/inbound.js.map +1 -0
- package/dist/lsp/order/internal.d.ts +1404 -0
- package/dist/lsp/order/internal.d.ts.map +1 -0
- package/dist/lsp/order/internal.js +255 -0
- package/dist/lsp/order/internal.js.map +1 -0
- package/dist/lsp/order/management.d.ts +541 -0
- package/dist/lsp/order/management.d.ts.map +1 -0
- package/dist/lsp/order/management.js +326 -0
- package/dist/lsp/order/management.js.map +1 -0
- package/dist/lsp/order/outbound.d.ts +909 -0
- package/dist/lsp/order/outbound.d.ts.map +1 -0
- package/dist/lsp/order/outbound.js +105 -0
- package/dist/lsp/order/outbound.js.map +1 -0
- package/dist/lsp/order/passthrough.d.ts +1816 -0
- package/dist/lsp/order/passthrough.d.ts.map +1 -0
- package/dist/lsp/order/passthrough.js +360 -0
- package/dist/lsp/order/passthrough.js.map +1 -0
- package/dist/lsp/order/ride.d.ts +1056 -0
- package/dist/lsp/order/ride.d.ts.map +1 -0
- package/dist/lsp/order/ride.js +166 -0
- package/dist/lsp/order/ride.js.map +1 -0
- package/dist/lsp/order/shipping.d.ts +1524 -0
- package/dist/lsp/order/shipping.d.ts.map +1 -0
- package/dist/lsp/order/shipping.js +223 -0
- package/dist/lsp/order/shipping.js.map +1 -0
- package/dist/lsp/performance.d.ts +2 -0
- package/dist/lsp/performance.d.ts.map +1 -0
- package/dist/lsp/performance.js +3 -0
- package/dist/lsp/performance.js.map +1 -0
- package/dist/lsp/pod/index.d.ts +805 -0
- package/dist/lsp/pod/index.d.ts.map +1 -0
- package/dist/lsp/pod/index.js +250 -0
- package/dist/lsp/pod/index.js.map +1 -0
- package/dist/lsp/pricing.d.ts +1811 -0
- package/dist/lsp/pricing.d.ts.map +1 -0
- package/dist/lsp/pricing.js +972 -0
- package/dist/lsp/pricing.js.map +1 -0
- package/dist/lsp/processing.d.ts +893 -0
- package/dist/lsp/processing.d.ts.map +1 -0
- package/dist/lsp/processing.js +202 -0
- package/dist/lsp/processing.js.map +1 -0
- package/dist/lsp/product.d.ts +76 -0
- package/dist/lsp/product.d.ts.map +1 -0
- package/dist/lsp/product.js +3 -0
- package/dist/lsp/product.js.map +1 -0
- package/dist/lsp/psl.d.ts +785 -0
- package/dist/lsp/psl.d.ts.map +1 -0
- package/dist/lsp/psl.js +333 -0
- package/dist/lsp/psl.js.map +1 -0
- package/dist/lsp/terminal/analytics.d.ts +278 -0
- package/dist/lsp/terminal/analytics.d.ts.map +1 -0
- package/dist/lsp/terminal/analytics.js +310 -0
- package/dist/lsp/terminal/analytics.js.map +1 -0
- package/dist/lsp/terminal/capabilities.d.ts +797 -0
- package/dist/lsp/terminal/capabilities.d.ts.map +1 -0
- package/dist/lsp/terminal/capabilities.js +506 -0
- package/dist/lsp/terminal/capabilities.js.map +1 -0
- package/dist/lsp/terminal/capacities.d.ts +3152 -0
- package/dist/lsp/terminal/capacities.d.ts.map +1 -0
- package/dist/lsp/terminal/capacities.js +504 -0
- package/dist/lsp/terminal/capacities.js.map +1 -0
- package/dist/lsp/terminal/index.d.ts +1056 -0
- package/dist/lsp/terminal/index.d.ts.map +1 -0
- package/dist/lsp/terminal/index.js +394 -0
- package/dist/lsp/terminal/index.js.map +1 -0
- package/dist/lsp/terminal/performance.d.ts +955 -0
- package/dist/lsp/terminal/performance.d.ts.map +1 -0
- package/dist/lsp/terminal/performance.js +159 -0
- package/dist/lsp/terminal/performance.js.map +1 -0
- package/dist/lsp/terminal/utilities.d.ts +2374 -0
- package/dist/lsp/terminal/utilities.d.ts.map +1 -0
- package/dist/lsp/terminal/utilities.js +161 -0
- package/dist/lsp/terminal/utilities.js.map +1 -0
- package/dist/lsp/warehouse/analytics.d.ts +3088 -0
- package/dist/lsp/warehouse/analytics.d.ts.map +1 -0
- package/dist/lsp/warehouse/analytics.js +229 -0
- package/dist/lsp/warehouse/analytics.js.map +1 -0
- package/dist/lsp/warehouse/capabilities.d.ts +1384 -0
- package/dist/lsp/warehouse/capabilities.d.ts.map +1 -0
- package/dist/lsp/warehouse/capabilities.js +567 -0
- package/dist/lsp/warehouse/capabilities.js.map +1 -0
- package/dist/lsp/warehouse/capacities.d.ts +2921 -0
- package/dist/lsp/warehouse/capacities.d.ts.map +1 -0
- package/dist/lsp/warehouse/capacities.js +450 -0
- package/dist/lsp/warehouse/capacities.js.map +1 -0
- package/dist/lsp/warehouse/index.d.ts +2566 -0
- package/dist/lsp/warehouse/index.d.ts.map +1 -0
- package/dist/lsp/warehouse/index.js +264 -0
- package/dist/lsp/warehouse/index.js.map +1 -0
- package/dist/lsp/warehouse/performance.d.ts +287 -0
- package/dist/lsp/warehouse/performance.d.ts.map +1 -0
- package/dist/lsp/warehouse/performance.js +72 -0
- package/dist/lsp/warehouse/performance.js.map +1 -0
- package/dist/lsp/warehouse/utilities.d.ts +5174 -0
- package/dist/lsp/warehouse/utilities.d.ts.map +1 -0
- package/dist/lsp/warehouse/utilities.js +588 -0
- package/dist/lsp/warehouse/utilities.js.map +1 -0
- package/dist/lsp/zones.d.ts +305 -0
- package/dist/lsp/zones.d.ts.map +1 -0
- package/dist/lsp/zones.js +118 -0
- package/dist/lsp/zones.js.map +1 -0
- package/dist/measure.d.ts +139 -0
- package/dist/measure.d.ts.map +1 -0
- package/dist/measure.js +190 -0
- package/dist/measure.js.map +1 -0
- package/dist/operator.d.ts +103 -0
- package/dist/operator.d.ts.map +1 -0
- package/dist/operator.js +38 -0
- package/dist/operator.js.map +1 -0
- package/dist/order.d.ts +2739 -0
- package/dist/order.d.ts.map +1 -0
- package/dist/order.js +1078 -0
- package/dist/order.js.map +1 -0
- package/dist/realm/index.d.ts +4 -0
- package/dist/realm/index.d.ts.map +1 -0
- package/dist/realm/index.js +20 -0
- package/dist/realm/index.js.map +1 -0
- package/dist/realm/pipelines.d.ts +32567 -0
- package/dist/realm/pipelines.d.ts.map +1 -0
- package/dist/realm/pipelines.js +1273 -0
- package/dist/realm/pipelines.js.map +1 -0
- package/dist/realm/queries.d.ts +1327 -0
- package/dist/realm/queries.d.ts.map +1 -0
- package/dist/realm/queries.js +456 -0
- package/dist/realm/queries.js.map +1 -0
- package/dist/realm/utilities.d.ts +1794 -0
- package/dist/realm/utilities.d.ts.map +1 -0
- package/dist/realm/utilities.js +594 -0
- package/dist/realm/utilities.js.map +1 -0
- package/dist/routing.d.ts +428 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/routing.js +60 -0
- package/dist/routing.js.map +1 -0
- package/dist/service.d.ts +264 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +60 -0
- package/dist/service.js.map +1 -0
- package/dist/shared/access.d.ts +102 -0
- package/dist/shared/access.d.ts.map +1 -0
- package/dist/shared/access.js +30 -0
- package/dist/shared/access.js.map +1 -0
- package/dist/shared/account.d.ts +44 -0
- package/dist/shared/account.d.ts.map +1 -0
- package/dist/shared/account.js +15 -0
- package/dist/shared/account.js.map +1 -0
- package/dist/shared/auth.d.ts +45 -0
- package/dist/shared/auth.d.ts.map +1 -0
- package/dist/shared/auth.js +19 -0
- package/dist/shared/auth.js.map +1 -0
- package/dist/shared/bucket.d.ts +294 -0
- package/dist/shared/bucket.d.ts.map +1 -0
- package/dist/shared/bucket.js +79 -0
- package/dist/shared/bucket.js.map +1 -0
- package/dist/shared/faq.d.ts +280 -0
- package/dist/shared/faq.d.ts.map +1 -0
- package/dist/shared/faq.js +73 -0
- package/dist/shared/faq.js.map +1 -0
- package/dist/shared/index.d.ts +10 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +26 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/shared/invitation.d.ts +1525 -0
- package/dist/shared/invitation.d.ts.map +1 -0
- package/dist/shared/invitation.js +60 -0
- package/dist/shared/invitation.js.map +1 -0
- package/dist/shared/operator.d.ts +956 -0
- package/dist/shared/operator.d.ts.map +1 -0
- package/dist/shared/operator.js +48 -0
- package/dist/shared/operator.js.map +1 -0
- package/dist/shared/tracking.d.ts +31 -0
- package/dist/shared/tracking.d.ts.map +1 -0
- package/dist/shared/tracking.js +23 -0
- package/dist/shared/tracking.js.map +1 -0
- package/dist/shared/user.d.ts +77 -0
- package/dist/shared/user.d.ts.map +1 -0
- package/dist/shared/user.js +22 -0
- package/dist/shared/user.js.map +1 -0
- package/dist/sync.d.ts +539 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +329 -0
- package/dist/sync.js.map +1 -0
- package/dist/time.d.ts +139 -0
- package/dist/time.d.ts.map +1 -0
- package/dist/time.js +93 -0
- package/dist/time.js.map +1 -0
- package/dist/user.d.ts +394 -0
- package/dist/user.d.ts.map +1 -0
- package/dist/user.js +205 -0
- package/dist/user.js.map +1 -0
- package/dist/workspace/admin.d.ts +91 -0
- package/dist/workspace/admin.d.ts.map +1 -0
- package/dist/workspace/admin.js +33 -0
- package/dist/workspace/admin.js.map +1 -0
- package/dist/workspace/billing.d.ts +2 -0
- package/dist/workspace/billing.d.ts.map +1 -0
- package/dist/workspace/billing.js +18 -0
- package/dist/workspace/billing.js.map +1 -0
- package/dist/workspace/connector.d.ts +595 -0
- package/dist/workspace/connector.d.ts.map +1 -0
- package/dist/workspace/connector.js +229 -0
- package/dist/workspace/connector.js.map +1 -0
- package/dist/workspace/index.d.ts +36 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +21 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +70 -0
- package/src/api.ts +147 -0
- package/src/auth.ts +103 -0
- package/src/aux/agent-rvs.ts +596 -0
- package/src/aux/agents.ts +542 -0
- package/src/aux/customer-rvs.ts +421 -0
- package/src/aux/customers.ts +80 -0
- package/src/aux/index.ts +4 -0
- package/src/billing.ts +330 -0
- package/src/bucket.ts +58 -0
- package/src/context.ts +167 -0
- package/src/csp/analytics.ts +238 -0
- package/src/csp/base.ts +18 -0
- package/src/csp/index.ts +41 -0
- package/src/csp/inventory.ts +325 -0
- package/src/csp/order.ts +485 -0
- package/src/csp/webhook.ts +269 -0
- package/src/de.profile.ts +123 -0
- package/src/dev/developer.ts +90 -0
- package/src/dev/index.ts +81 -0
- package/src/entity.ts +154 -0
- package/src/events.ts +349 -0
- package/src/faq.ts +39 -0
- package/src/geo.ts +111 -0
- package/src/index.ts +48 -0
- package/src/inventory.ts +405 -0
- package/src/invoice.ts +37 -0
- package/src/iotsp/device.ts +334 -0
- package/src/iotsp/index.ts +91 -0
- package/src/iotsp/rule.ts +227 -0
- package/src/iotsp/topic.ts +191 -0
- package/src/lsp/carrier/analytics.ts +393 -0
- package/src/lsp/carrier/capabilities.ts +1009 -0
- package/src/lsp/carrier/capacities.ts +723 -0
- package/src/lsp/carrier/index.ts +175 -0
- package/src/lsp/carrier/performance.ts +145 -0
- package/src/lsp/carrier/utilities.ts +654 -0
- package/src/lsp/consolidation.ts +420 -0
- package/src/lsp/coverage.ts +869 -0
- package/src/lsp/fleet/index.ts +327 -0
- package/src/lsp/fleet/maintenance.ts +478 -0
- package/src/lsp/fleet/parking.ts +582 -0
- package/src/lsp/fleet/vehicle.ts +381 -0
- package/src/lsp/graph.ts +113 -0
- package/src/lsp/hub/analytics.ts +236 -0
- package/src/lsp/hub/capabilities.ts +549 -0
- package/src/lsp/hub/capacities.ts +590 -0
- package/src/lsp/hub/index.ts +298 -0
- package/src/lsp/hub/performance.ts +89 -0
- package/src/lsp/hub/utilities.ts +560 -0
- package/src/lsp/index.ts +125 -0
- package/src/lsp/operations.ts +304 -0
- package/src/lsp/order/delivery.ts +212 -0
- package/src/lsp/order/flow/processes.ts +70 -0
- package/src/lsp/order/flow/stages.ts +119 -0
- package/src/lsp/order/inbound.ts +231 -0
- package/src/lsp/order/internal.ts +305 -0
- package/src/lsp/order/management.ts +367 -0
- package/src/lsp/order/outbound.ts +128 -0
- package/src/lsp/order/passthrough.ts +434 -0
- package/src/lsp/order/ride.ts +190 -0
- package/src/lsp/order/shipping.ts +263 -0
- package/src/lsp/performance.ts +2 -0
- package/src/lsp/pod/index.ts +323 -0
- package/src/lsp/pricing.ts +1097 -0
- package/src/lsp/processing.ts +243 -0
- package/src/lsp/product.ts +104 -0
- package/src/lsp/psl.ts +399 -0
- package/src/lsp/terminal/analytics.ts +334 -0
- package/src/lsp/terminal/capabilities.ts +541 -0
- package/src/lsp/terminal/capacities.ts +556 -0
- package/src/lsp/terminal/index.ts +442 -0
- package/src/lsp/terminal/performance.ts +168 -0
- package/src/lsp/terminal/utilities.ts +173 -0
- package/src/lsp/warehouse/analytics.ts +248 -0
- package/src/lsp/warehouse/capabilities.ts +673 -0
- package/src/lsp/warehouse/capacities.ts +538 -0
- package/src/lsp/warehouse/index.ts +298 -0
- package/src/lsp/warehouse/performance.ts +83 -0
- package/src/lsp/warehouse/utilities.ts +634 -0
- package/src/lsp/zones.ts +148 -0
- package/src/measure.ts +240 -0
- package/src/operator.ts +39 -0
- package/src/order.ts +1207 -0
- package/src/realm/index.ts +3 -0
- package/src/realm/pipelines.ts +1607 -0
- package/src/realm/queries.ts +608 -0
- package/src/realm/utilities.ts +730 -0
- package/src/routing.ts +69 -0
- package/src/service.ts +66 -0
- package/src/shared/access.ts +58 -0
- package/src/shared/account.ts +25 -0
- package/src/shared/auth.ts +30 -0
- package/src/shared/bucket.ts +153 -0
- package/src/shared/faq.ts +139 -0
- package/src/shared/index.ts +9 -0
- package/src/shared/invitation.ts +124 -0
- package/src/shared/operator.ts +159 -0
- package/src/shared/tracking.ts +30 -0
- package/src/shared/user.ts +42 -0
- package/src/sync.ts +364 -0
- package/src/time.ts +113 -0
- package/src/user.ts +243 -0
- package/src/workspace/admin.ts +38 -0
- package/src/workspace/billing.ts +1 -0
- package/src/workspace/connector.ts +270 -0
- package/src/workspace/index.ts +22 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from '../../context'
|
|
3
|
+
import { LSPServiceContextSchema } from '../..'
|
|
4
|
+
import { ActionRecordSchema, DateTimeZoneSchema } from '../../time'
|
|
5
|
+
import { DimensionsSchema, WeightSchema, VolumeSchema, DistanceSchema, MoneySchema } from '../../measure'
|
|
6
|
+
import { AddressSchema, ContactsSchema } from '../../geo'
|
|
7
|
+
import { EntityBaseSchema, EntityStatusSchema } from '../../entity'
|
|
8
|
+
import {
|
|
9
|
+
APIHeadersSchema,
|
|
10
|
+
APIResponseBaseSchema,
|
|
11
|
+
APIResponseDataSchemaFactory
|
|
12
|
+
} from '../../api'
|
|
13
|
+
|
|
14
|
+
// Vehicle Type Schema
|
|
15
|
+
export const VehicleTypeSchema = Type.Union([
|
|
16
|
+
// MICRO-MOBILITY
|
|
17
|
+
Type.Literal('BICYCLE'),
|
|
18
|
+
Type.Literal('E_BIKE'),
|
|
19
|
+
Type.Literal('SCOOTER'),
|
|
20
|
+
Type.Literal('E_SCOOTER'),
|
|
21
|
+
|
|
22
|
+
// TWO/THREE-WHEELERS
|
|
23
|
+
Type.Literal('MOTORCYCLE'),
|
|
24
|
+
Type.Literal('RICKSHAW'),
|
|
25
|
+
Type.Literal('TRICYCLE'),
|
|
26
|
+
|
|
27
|
+
// LIGHT VEHICLES
|
|
28
|
+
Type.Literal('CAR'),
|
|
29
|
+
Type.Literal('PICKUP_TRUCK'),
|
|
30
|
+
Type.Literal('VAN'),
|
|
31
|
+
Type.Literal('CARGO_VAN'),
|
|
32
|
+
|
|
33
|
+
// PASSENGER TRANSPORT
|
|
34
|
+
Type.Literal('MINIBUS'), // 8-20 passengers (Toyota Hiace)
|
|
35
|
+
Type.Literal('BUS'), // Standard city bus
|
|
36
|
+
Type.Literal('COACH'), // Long-distance/charter bus
|
|
37
|
+
Type.Literal('ARTICULATED_BUS'), // Bendy bus
|
|
38
|
+
Type.Literal('DOUBLE_DECKER_BUS'),
|
|
39
|
+
Type.Literal('TROLLEY'), // Trotro-style minibus
|
|
40
|
+
|
|
41
|
+
// LIGHT-MEDIUM TRUCKS
|
|
42
|
+
Type.Literal('TRUCK'), // Generic truck
|
|
43
|
+
Type.Literal('BOX_TRUCK'), // Straight truck/cube van
|
|
44
|
+
Type.Literal('FLATBED_TRUCK'),
|
|
45
|
+
Type.Literal('DUMP_TRUCK'),
|
|
46
|
+
Type.Literal('TOW_TRUCK'),
|
|
47
|
+
|
|
48
|
+
// HEAVY TRUCKS
|
|
49
|
+
Type.Literal('TRACTOR_TRAILER'), // Semi-truck with trailer
|
|
50
|
+
Type.Literal('SEMI_TRAILER'), // Just the trailer
|
|
51
|
+
Type.Literal('CONTAINER_TRUCK'),
|
|
52
|
+
Type.Literal('TANKER_TRUCK'),
|
|
53
|
+
Type.Literal('REFRIGERATED_TRUCK'), // Reefer truck
|
|
54
|
+
|
|
55
|
+
// RAIL
|
|
56
|
+
Type.Literal('TRAIN'), // Generic train
|
|
57
|
+
Type.Literal('FREIGHT_TRAIN'),
|
|
58
|
+
Type.Literal('PASSENGER_TRAIN'),
|
|
59
|
+
|
|
60
|
+
// MARINE
|
|
61
|
+
Type.Literal('SHIP'), // Generic ship
|
|
62
|
+
Type.Literal('BARGE'),
|
|
63
|
+
Type.Literal('CONTAINER_SHIP'),
|
|
64
|
+
Type.Literal('TANKER_SHIP'),
|
|
65
|
+
Type.Literal('FERRY'),
|
|
66
|
+
|
|
67
|
+
// AIRCRAFT
|
|
68
|
+
Type.Literal('CARGO_PLANE'),
|
|
69
|
+
Type.Literal('PASSENGER_PLANE'),
|
|
70
|
+
Type.Literal('HELICOPTER'),
|
|
71
|
+
Type.Literal('DRONE'),
|
|
72
|
+
|
|
73
|
+
// SPECIALIZED/WAREHOUSE
|
|
74
|
+
Type.Literal('FORKLIFT'),
|
|
75
|
+
|
|
76
|
+
// OTHER
|
|
77
|
+
Type.Literal('OTHER')
|
|
78
|
+
])
|
|
79
|
+
export const VehicleModeSchema = Type.Union([
|
|
80
|
+
// DRIVER/OPERATOR MODES
|
|
81
|
+
Type.Literal('MANUAL'), // Human-driven/operated
|
|
82
|
+
Type.Literal('ASSISTED'), // Driver assistance (cruise control, lane keep, etc.)
|
|
83
|
+
Type.Literal('SEMI_AUTONOMOUS'), // Partial automation (Level 2-3)
|
|
84
|
+
Type.Literal('AUTONOMOUS'), // Full self-driving (Level 4-5)
|
|
85
|
+
|
|
86
|
+
// REMOTE OPERATION
|
|
87
|
+
Type.Literal('REMOTE_CONTROLLED'), // Real-time remote operation
|
|
88
|
+
Type.Literal('TELEOPERATED'), // Remote operation with delay tolerance
|
|
89
|
+
|
|
90
|
+
// SPECIALIZED MODES
|
|
91
|
+
Type.Literal('PLATOONING'), // Connected convoy/truck platooning
|
|
92
|
+
Type.Literal('GUIDED'), // Track/rail/wire-guided (buses, trains)
|
|
93
|
+
|
|
94
|
+
// POWER/PROPULSION
|
|
95
|
+
Type.Literal('ELECTRIC'), // Battery electric
|
|
96
|
+
Type.Literal('HYBRID'), // Hybrid electric
|
|
97
|
+
Type.Literal('HYDROGEN'), // Hydrogen fuel cell
|
|
98
|
+
Type.Literal('ICE'), // Internal combustion engine
|
|
99
|
+
Type.Literal('PEDAL_POWERED'), // Bicycle, rickshaw
|
|
100
|
+
Type.Literal('ANIMAL_POWERED'), // Horse-drawn, etc.
|
|
101
|
+
])
|
|
102
|
+
|
|
103
|
+
// Vehicle Engine Schema
|
|
104
|
+
export const VehicleEngineSchema = Type.Union([
|
|
105
|
+
// FOSSIL FUELS
|
|
106
|
+
Type.Literal('GASOLINE'), // Petrol
|
|
107
|
+
Type.Literal('DIESEL'),
|
|
108
|
+
Type.Literal('NATURAL_GAS'), // CNG/LNG
|
|
109
|
+
Type.Literal('LPG'), // Liquefied Petroleum Gas/Propane
|
|
110
|
+
Type.Literal('BIOFUEL'), // Biodiesel, ethanol blends
|
|
111
|
+
|
|
112
|
+
// ELECTRIC
|
|
113
|
+
Type.Literal('ELECTRIC'), // Battery Electric Vehicle (BEV)
|
|
114
|
+
Type.Literal('HYBRID'), // Hybrid Electric (HEV)
|
|
115
|
+
Type.Literal('PLUG_IN_HYBRID'), // PHEV - can charge from grid
|
|
116
|
+
|
|
117
|
+
// ALTERNATIVE
|
|
118
|
+
Type.Literal('HYDROGEN'), // Hydrogen fuel cell
|
|
119
|
+
Type.Literal('SOLAR'), // Solar-powered
|
|
120
|
+
|
|
121
|
+
// NON-MOTORIZED
|
|
122
|
+
Type.Literal('PEDAL'), // Human-powered (bicycles)
|
|
123
|
+
Type.Literal('ANIMAL'), // Animal-powered (horses, donkeys)
|
|
124
|
+
Type.Literal('SAIL'), // Wind-powered (sailing vessels)
|
|
125
|
+
|
|
126
|
+
// OTHER
|
|
127
|
+
Type.Literal('OTHER'),
|
|
128
|
+
Type.Literal('UNKNOWN')
|
|
129
|
+
])
|
|
130
|
+
// Vehicle Condition Schema
|
|
131
|
+
export const VehicleConditionSchema = Type.Union([
|
|
132
|
+
Type.Literal('EXCELLENT'),
|
|
133
|
+
Type.Literal('GOOD'),
|
|
134
|
+
Type.Literal('FAIR'),
|
|
135
|
+
Type.Literal('POOR')
|
|
136
|
+
])
|
|
137
|
+
// Vehicle Ownership Schema
|
|
138
|
+
export const VehicleOwnershipSchema = Type.Union([
|
|
139
|
+
Type.Literal('OWNED'),
|
|
140
|
+
Type.Literal('RENTED'),
|
|
141
|
+
Type.Literal('LEASED')
|
|
142
|
+
])
|
|
143
|
+
export const VehicleOwnerSchema = Type.Object({
|
|
144
|
+
id: Type.String(),
|
|
145
|
+
type: Type.Union([
|
|
146
|
+
Type.Literal('INDIVIDUAL'),
|
|
147
|
+
Type.Literal('COMPANY')
|
|
148
|
+
]),
|
|
149
|
+
name: Type.String(),
|
|
150
|
+
contacts: ContactsSchema,
|
|
151
|
+
address: AddressSchema
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
// Vehicle Specs Schema
|
|
155
|
+
export const VehicleSpecSchema = Type.Object({
|
|
156
|
+
mode: VehicleModeSchema,
|
|
157
|
+
engine: VehicleEngineSchema,
|
|
158
|
+
condition: VehicleConditionSchema,
|
|
159
|
+
VIN: Type.String({
|
|
160
|
+
minLength: 17,
|
|
161
|
+
maxLength: 17,
|
|
162
|
+
pattern: '^[A-HJ-NPR-Z0-9]{17}$',
|
|
163
|
+
description: 'Vehicle Identification Number (17 characters)'
|
|
164
|
+
}),
|
|
165
|
+
brand: Type.String({ minLength: 1, maxLength: 50 }),
|
|
166
|
+
model: Type.String({ minLength: 1, maxLength: 50 }),
|
|
167
|
+
category: Type.String({ minLength: 1, maxLength: 30 }),
|
|
168
|
+
color: Type.String({ minLength: 1, maxLength: 30 }),
|
|
169
|
+
seats: Type.String({ minLength: 2 }),
|
|
170
|
+
|
|
171
|
+
manufactured: Type.Number({ minimum: 1900, maximum: new Date().getFullYear() }),
|
|
172
|
+
registrationNumber: Type.String(),
|
|
173
|
+
mileage: Type.Optional(DistanceSchema),
|
|
174
|
+
|
|
175
|
+
maxWeightCapacity: WeightSchema,
|
|
176
|
+
maxVolumeCapacity: Type.Optional(VolumeSchema),
|
|
177
|
+
maxDimensionsCapacity: Type.Optional(DimensionsSchema),
|
|
178
|
+
}, { additionalProperties: false })
|
|
179
|
+
export const VehicleSpecUpdateSchema = Type.Partial(VehicleSpecSchema)
|
|
180
|
+
|
|
181
|
+
export const VehicleIoTSchema = Type.Object({
|
|
182
|
+
device: Type.String({ minLength: 1, maxLength: 50 }),
|
|
183
|
+
mac: Type.String({ minLength: 1, maxLength: 50 }),
|
|
184
|
+
IMEI: Type.String({
|
|
185
|
+
pattern: '^[0-9]{15}$',
|
|
186
|
+
description: 'International Mobile Equipment Identity (15 digits)'
|
|
187
|
+
})
|
|
188
|
+
}, { additionalProperties: false })
|
|
189
|
+
export const VehicleIoTUpdateSchema = Type.Partial(VehicleIoTSchema)
|
|
190
|
+
|
|
191
|
+
export const VehicleComplianceSchema = Type.Object({
|
|
192
|
+
insurance: Type.Object({
|
|
193
|
+
policyNumber: Type.String(),
|
|
194
|
+
provider: Type.String(),
|
|
195
|
+
coverageAmount: MoneySchema,
|
|
196
|
+
expiryDate: DateTimeZoneSchema,
|
|
197
|
+
status: Type.Union([
|
|
198
|
+
Type.Literal('ACTIVE'),
|
|
199
|
+
Type.Literal('EXPIRED'),
|
|
200
|
+
Type.Literal('SUSPENDED')
|
|
201
|
+
])
|
|
202
|
+
}),
|
|
203
|
+
|
|
204
|
+
roadworthiness: Type.Object({
|
|
205
|
+
certificateNumber: Type.String(),
|
|
206
|
+
issuingAuthority: Type.String(),
|
|
207
|
+
issueDate: DateTimeZoneSchema,
|
|
208
|
+
expiryDate: DateTimeZoneSchema
|
|
209
|
+
}),
|
|
210
|
+
|
|
211
|
+
safetyInspection: Type.Object({
|
|
212
|
+
lastInspectionDate: DateTimeZoneSchema,
|
|
213
|
+
nextInspectionDate: DateTimeZoneSchema,
|
|
214
|
+
inspectorId: Type.String(),
|
|
215
|
+
status: Type.Union([
|
|
216
|
+
Type.Literal('PASSED'),
|
|
217
|
+
Type.Literal('CONDITIONAL'),
|
|
218
|
+
Type.Literal('FAILED')
|
|
219
|
+
])
|
|
220
|
+
}),
|
|
221
|
+
|
|
222
|
+
maxPassengerCapacity: Type.Number({ minimum: 1 }),
|
|
223
|
+
accessibilityCompliant: Type.Boolean(),
|
|
224
|
+
emergencyEquipped: Type.Boolean(),
|
|
225
|
+
|
|
226
|
+
permits: Type.Array(Type.Object({
|
|
227
|
+
type: Type.String(),
|
|
228
|
+
number: Type.String(),
|
|
229
|
+
expiryDate: DateTimeZoneSchema
|
|
230
|
+
}))
|
|
231
|
+
})
|
|
232
|
+
export const VehicleComplianceUpdateSchema = Type.Partial(VehicleComplianceSchema)
|
|
233
|
+
|
|
234
|
+
// Vehicle Schema
|
|
235
|
+
export const VehicleSchema = Type.Composite([
|
|
236
|
+
EntityBaseSchema,
|
|
237
|
+
Type.Object({
|
|
238
|
+
type: VehicleTypeSchema,
|
|
239
|
+
context: ContextSchema,
|
|
240
|
+
service: Type.Optional(LSPServiceContextSchema),
|
|
241
|
+
fleetId: Type.String(),
|
|
242
|
+
specs: VehicleSpecSchema,
|
|
243
|
+
ownership: VehicleOwnershipSchema,
|
|
244
|
+
iot: Type.Optional(VehicleIoTSchema),
|
|
245
|
+
owners: Type.Optional(Type.Array(VehicleOwnerSchema)),
|
|
246
|
+
compliance: Type.Optional(VehicleComplianceSchema),
|
|
247
|
+
assignees: Type.Optional(Type.Array(Type.String())),
|
|
248
|
+
coverage: Type.Array(Type.String()),
|
|
249
|
+
lastRun: Type.Optional(DateTimeZoneSchema),
|
|
250
|
+
nextRun: Type.Optional(DateTimeZoneSchema),
|
|
251
|
+
added: ActionRecordSchema,
|
|
252
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
253
|
+
}, { additionalProperties: false })
|
|
254
|
+
])
|
|
255
|
+
|
|
256
|
+
const OMIT_FIELDS = [
|
|
257
|
+
'context',
|
|
258
|
+
'id',
|
|
259
|
+
'service',
|
|
260
|
+
'fleetId',
|
|
261
|
+
'iot',
|
|
262
|
+
'compliance',
|
|
263
|
+
'static',
|
|
264
|
+
'assignees',
|
|
265
|
+
'coverage',
|
|
266
|
+
'lastRun',
|
|
267
|
+
'added',
|
|
268
|
+
'updated'
|
|
269
|
+
]
|
|
270
|
+
export const VehicleAddSchema = Type.Omit(VehicleSchema, OMIT_FIELDS)
|
|
271
|
+
export const VehicleUpdateSchema = Type.Partial(VehicleAddSchema)
|
|
272
|
+
|
|
273
|
+
// Generate TypeScript types from schemas
|
|
274
|
+
export type VehicleCondition = Static<typeof VehicleConditionSchema>
|
|
275
|
+
export type VehicleEngine = Static<typeof VehicleEngineSchema>
|
|
276
|
+
export type VehicleType = Static<typeof VehicleTypeSchema>
|
|
277
|
+
export type VehicleSpec = Static<typeof VehicleSpecSchema>
|
|
278
|
+
export type VehicleSpecUpdate = Static<typeof VehicleSpecUpdateSchema>
|
|
279
|
+
export type VehicleIoT = Static<typeof VehicleIoTSchema>
|
|
280
|
+
export type VehicleIoTUpdate = Static<typeof VehicleIoTUpdateSchema>
|
|
281
|
+
export type VehicleCompliance = Static<typeof VehicleComplianceSchema>
|
|
282
|
+
export type VehicleComplianceUpdate = Static<typeof VehicleComplianceUpdateSchema>
|
|
283
|
+
export type Vehicle = Static<typeof VehicleSchema>
|
|
284
|
+
export type VehicleUpdate = Static<typeof VehicleUpdateSchema>
|
|
285
|
+
|
|
286
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
287
|
+
|
|
288
|
+
export const VehicleStatusUpdateBodySchema = Type.Object({
|
|
289
|
+
status: EntityStatusSchema,
|
|
290
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
291
|
+
})
|
|
292
|
+
|
|
293
|
+
export const VehicleListQuerySchema = Type.Object({
|
|
294
|
+
status: Type.Optional(EntityStatusSchema),
|
|
295
|
+
type: Type.Optional(VehicleTypeSchema),
|
|
296
|
+
allocated: Type.Optional(Type.Boolean()),
|
|
297
|
+
fleetId: Type.Optional(Type.String()),
|
|
298
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 200, default: 20 })),
|
|
299
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
300
|
+
})
|
|
301
|
+
|
|
302
|
+
export const LSPVehicleAddRVS = {
|
|
303
|
+
headers: APIHeadersSchema,
|
|
304
|
+
body: VehicleAddSchema,
|
|
305
|
+
response: APIResponseDataSchemaFactory({ vehicleId: Type.String() })
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export const LSPVehicleRetrieveRVS = {
|
|
309
|
+
headers: APIHeadersSchema,
|
|
310
|
+
params: Type.Object({ id: Type.String() }),
|
|
311
|
+
response: APIResponseDataSchemaFactory({ vehicle: VehicleSchema })
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export const LSPVehicleListRVS = {
|
|
315
|
+
headers: APIHeadersSchema,
|
|
316
|
+
querystring: VehicleListQuerySchema,
|
|
317
|
+
response: APIResponseDataSchemaFactory({
|
|
318
|
+
vehicles: Type.Array(VehicleSchema),
|
|
319
|
+
total: Type.Number(),
|
|
320
|
+
limit: Type.Number(),
|
|
321
|
+
offset: Type.Number()
|
|
322
|
+
})
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export const LSPVehicleUpdateStatusRVS = {
|
|
326
|
+
headers: APIHeadersSchema,
|
|
327
|
+
params: Type.Object({ id: Type.String() }),
|
|
328
|
+
body: VehicleStatusUpdateBodySchema,
|
|
329
|
+
response: APIResponseDataSchemaFactory({ vehicle: VehicleSchema })
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export const LSPVehicleUpdateRVS = {
|
|
333
|
+
headers: APIHeadersSchema,
|
|
334
|
+
params: Type.Object({ id: Type.String() }),
|
|
335
|
+
body: VehicleUpdateSchema,
|
|
336
|
+
response: APIResponseDataSchemaFactory({ vehicle: VehicleSchema })
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export const LSPVehicleUpdateSpecsRVS = {
|
|
340
|
+
headers: APIHeadersSchema,
|
|
341
|
+
params: Type.Object({ id: Type.String() }),
|
|
342
|
+
body: VehicleSpecUpdateSchema,
|
|
343
|
+
response: Type.Intersect([APIResponseBaseSchema, Type.Object({ specs: VehicleSpecSchema })])
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export const LSPVehicleUpdateIoTRVS = {
|
|
347
|
+
headers: APIHeadersSchema,
|
|
348
|
+
params: Type.Object({ id: Type.String() }),
|
|
349
|
+
body: VehicleIoTUpdateSchema,
|
|
350
|
+
response: Type.Intersect([APIResponseBaseSchema, Type.Object({ iot: VehicleIoTSchema })])
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export const LSPVehicleRemoveRVS = {
|
|
354
|
+
headers: APIHeadersSchema,
|
|
355
|
+
params: Type.Object({ id: Type.String() }),
|
|
356
|
+
response: APIResponseBaseSchema
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export const LSPVehicleAllocateRVS = {
|
|
360
|
+
headers: APIHeadersSchema,
|
|
361
|
+
params: Type.Object({ id: Type.String() }),
|
|
362
|
+
body: LSPServiceContextSchema,
|
|
363
|
+
response: APIResponseBaseSchema
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export const LSPVehicleDeallocateRVS = {
|
|
367
|
+
headers: APIHeadersSchema,
|
|
368
|
+
params: Type.Object({ id: Type.String() }),
|
|
369
|
+
response: APIResponseBaseSchema
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type LSPVehicleAddValidation = { headers: Static<typeof LSPVehicleAddRVS.headers>, body: Static<typeof LSPVehicleAddRVS.body>, response: Static<typeof LSPVehicleAddRVS.response> }
|
|
373
|
+
export type LSPVehicleRetrieveValidation = { headers: Static<typeof LSPVehicleRetrieveRVS.headers>, params: Static<typeof LSPVehicleRetrieveRVS.params>, response: Static<typeof LSPVehicleRetrieveRVS.response> }
|
|
374
|
+
export type LSPVehicleListValidation = { headers: Static<typeof LSPVehicleListRVS.headers>, querystring: Static<typeof LSPVehicleListRVS.querystring>, response: Static<typeof LSPVehicleListRVS.response> }
|
|
375
|
+
export type LSPVehicleUpdateStatusValidation = { headers: Static<typeof LSPVehicleUpdateStatusRVS.headers>, params: Static<typeof LSPVehicleUpdateStatusRVS.params>, body: Static<typeof LSPVehicleUpdateStatusRVS.body>, response: Static<typeof LSPVehicleUpdateStatusRVS.response> }
|
|
376
|
+
export type LSPVehicleUpdateValidation = { headers: Static<typeof LSPVehicleUpdateRVS.headers>, params: Static<typeof LSPVehicleUpdateRVS.params>, body: Static<typeof LSPVehicleUpdateRVS.body>, response: Static<typeof LSPVehicleUpdateRVS.response> }
|
|
377
|
+
export type LSPVehicleUpdateSpecsValidation = { headers: Static<typeof LSPVehicleUpdateSpecsRVS.headers>, params: Static<typeof LSPVehicleUpdateSpecsRVS.params>, body: Static<typeof LSPVehicleUpdateSpecsRVS.body>, response: Static<typeof LSPVehicleUpdateSpecsRVS.response> }
|
|
378
|
+
export type LSPVehicleUpdateIoTValidation = { headers: Static<typeof LSPVehicleUpdateIoTRVS.headers>, params: Static<typeof LSPVehicleUpdateIoTRVS.params>, body: Static<typeof LSPVehicleUpdateIoTRVS.body>, response: Static<typeof LSPVehicleUpdateIoTRVS.response> }
|
|
379
|
+
export type LSPVehicleRemoveValidation = { headers: Static<typeof LSPVehicleRemoveRVS.headers>, params: Static<typeof LSPVehicleRemoveRVS.params>, response: Static<typeof LSPVehicleRemoveRVS.response> }
|
|
380
|
+
export type LSPVehicleAllocateValidation = { headers: Static<typeof LSPVehicleAllocateRVS.headers>, params: Static<typeof LSPVehicleAllocateRVS.params>, body: Static<typeof LSPVehicleAllocateRVS.body>, response: Static<typeof LSPVehicleAllocateRVS.response> }
|
|
381
|
+
export type LSPVehicleDeallocateValidation = { headers: Static<typeof LSPVehicleDeallocateRVS.headers>, params: Static<typeof LSPVehicleDeallocateRVS.params>, response: Static<typeof LSPVehicleDeallocateRVS.response> }
|
package/src/lsp/graph.ts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from '../context'
|
|
3
|
+
import { AddressSchema, CoordinatesSchema } from '../geo'
|
|
4
|
+
|
|
5
|
+
export const GraphNodeTypeSchema = Type.Union([
|
|
6
|
+
Type.Literal('DELIVERY'),
|
|
7
|
+
Type.Literal('POI'),
|
|
8
|
+
Type.Literal('LANDMARK')
|
|
9
|
+
])
|
|
10
|
+
|
|
11
|
+
export const GraphPoiSchema = Type.Object({
|
|
12
|
+
externalId: Type.String(),
|
|
13
|
+
coordinates: CoordinatesSchema,
|
|
14
|
+
name: Type.String({ maxLength: 150 }),
|
|
15
|
+
street1: Type.Optional( Type.String({ maxLength: 200 }) ),
|
|
16
|
+
city: Type.Optional( Type.String({ maxLength: 100 }) ),
|
|
17
|
+
zoneId: Type.Optional(Type.String()),
|
|
18
|
+
agentNotes: Type.Optional( Type.Array( Type.String({ maxLength: 300 }) ) )
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
export const GraphNodeSchema = Type.Object({
|
|
22
|
+
id: Type.String(),
|
|
23
|
+
context: ContextSchema, // provenance — who contributed this node
|
|
24
|
+
coordinates: CoordinatesSchema, // [lat, lng] — app-layer convention
|
|
25
|
+
// [lng, lat] — GeoJSON
|
|
26
|
+
geoPoint: Type.Object({
|
|
27
|
+
type: Type.Literal('Point'),
|
|
28
|
+
coordinates: CoordinatesSchema
|
|
29
|
+
}),
|
|
30
|
+
address: AddressSchema,
|
|
31
|
+
label: Type.String(),
|
|
32
|
+
deliveryCount: Type.Number(),
|
|
33
|
+
pickupCount: Type.Number(),
|
|
34
|
+
dropoffCount: Type.Number(),
|
|
35
|
+
isLandmark: Type.Boolean(),
|
|
36
|
+
zoneId: Type.Optional(Type.String()),
|
|
37
|
+
firstSeen: Type.Number(),
|
|
38
|
+
lastSeen: Type.Number(),
|
|
39
|
+
// Extended fields — present on poi and landmark nodes
|
|
40
|
+
nodeType: Type.Optional(GraphNodeTypeSchema), // undefined treated as 'delivery' for backwards compatibility
|
|
41
|
+
externalId: Type.Optional(Type.String()), // ID of the entity this node represents in the consuming service
|
|
42
|
+
aliases: Type.Optional(Type.Array(Type.String())), // alternative names harvested from address free-text
|
|
43
|
+
agentNotes: Type.Optional(Type.Array(Type.String())) // shared institutional knowledge contributed by agents (hours, directions, etc.)
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
export const GraphEdgeSchema = Type.Object({
|
|
47
|
+
id: Type.String(),
|
|
48
|
+
context: ContextSchema, // provenance — who first observed this route
|
|
49
|
+
fromNodeId: Type.String(),
|
|
50
|
+
toNodeId: Type.String(),
|
|
51
|
+
sampleCount: Type.Number(),
|
|
52
|
+
avgDurationMs: Type.Number(),
|
|
53
|
+
avgDistanceKm: Type.Number(),
|
|
54
|
+
lastSeen: Type.Number()
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
export type GraphNodeType = Static<typeof GraphNodeTypeSchema>
|
|
58
|
+
export type GraphPoi = Static<typeof GraphPoiSchema>
|
|
59
|
+
export type GraphNode = Static<typeof GraphNodeSchema>
|
|
60
|
+
export type GraphEdge = Static<typeof GraphEdgeSchema>
|
|
61
|
+
|
|
62
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
63
|
+
|
|
64
|
+
import {
|
|
65
|
+
APIErrorSchema,
|
|
66
|
+
APIHeadersSchema,
|
|
67
|
+
APIResponseBaseSchema,
|
|
68
|
+
APIResponseDataSchemaFactory
|
|
69
|
+
} from '../api'
|
|
70
|
+
|
|
71
|
+
export const LSPGraphGetPoiRVS = {
|
|
72
|
+
headers: APIHeadersSchema,
|
|
73
|
+
params: Type.Object({ externalId: Type.String() }),
|
|
74
|
+
response: {
|
|
75
|
+
200: APIResponseDataSchemaFactory({ node: GraphNodeSchema }),
|
|
76
|
+
'4XX': APIErrorSchema
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const LSPGraphRegisterPoiRVS = {
|
|
81
|
+
headers: APIHeadersSchema,
|
|
82
|
+
body: GraphPoiSchema,
|
|
83
|
+
response: {
|
|
84
|
+
200: APIResponseDataSchemaFactory({ nodeId: Type.String() }),
|
|
85
|
+
'4XX': APIErrorSchema
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export const LSPGraphNearestRVS = {
|
|
90
|
+
headers: APIHeadersSchema,
|
|
91
|
+
querystring: Type.Object({
|
|
92
|
+
lat: Type.Number({ description: 'Latitude of the search origin' }),
|
|
93
|
+
lng: Type.Number({ description: 'Longitude of the search origin' }),
|
|
94
|
+
radiusKm: Type.Optional(Type.Number({ minimum: 0.05, maximum: 50, default: 0.5 }))
|
|
95
|
+
}),
|
|
96
|
+
response: {
|
|
97
|
+
200: APIResponseDataSchemaFactory({ node: Type.Union([GraphNodeSchema, Type.Null()]) }),
|
|
98
|
+
'4XX': APIErrorSchema
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const LSPGraphLandmarksRVS = {
|
|
103
|
+
headers: APIHeadersSchema,
|
|
104
|
+
response: {
|
|
105
|
+
200: APIResponseDataSchemaFactory({ landmarks: Type.Array(GraphNodeSchema), total: Type.Number() }),
|
|
106
|
+
'4XX': APIErrorSchema
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type LSPGraphGetPoiValidation = { params: Static<typeof LSPGraphGetPoiRVS.params>, response: Static<(typeof LSPGraphGetPoiRVS.response)[200]> }
|
|
111
|
+
export type LSPGraphRegisterPoiValidation = { body: Static<typeof LSPGraphRegisterPoiRVS.body>, response: Static<(typeof LSPGraphRegisterPoiRVS.response)[200]> }
|
|
112
|
+
export type LSPGraphNearestValidation = { querystring: Static<typeof LSPGraphNearestRVS.querystring>, response: Static<(typeof LSPGraphNearestRVS.response)[200]> }
|
|
113
|
+
export type LSPGraphLandmarksValidation = { response: Static<(typeof LSPGraphLandmarksRVS.response)[200]> }
|