@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,263 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { VehicleSchema } from '../fleet/vehicle'
|
|
3
|
+
import { RoutingSegmentSchema } from '../../routing'
|
|
4
|
+
import { ActionRecordSchema, DateTimeZoneSchema, DurationSchema } from '../../time'
|
|
5
|
+
import { DistanceSchema, VolumeSchema, ServiceLevelSchema } from '../../measure'
|
|
6
|
+
import { RTLocationSchema, AddressSchema } from '../../geo'
|
|
7
|
+
import {
|
|
8
|
+
BaseOrderStatusSchema,
|
|
9
|
+
BaseOrderFlowPrioritySchema,
|
|
10
|
+
OrderAssigneeSchema,
|
|
11
|
+
LSPBaseOrderSchema
|
|
12
|
+
} from '../../order'
|
|
13
|
+
import {
|
|
14
|
+
APIErrorSchema,
|
|
15
|
+
APIHeadersSchema,
|
|
16
|
+
APIResponseBaseSchema,
|
|
17
|
+
APIResponseDataSchemaFactory
|
|
18
|
+
} from '../../api'
|
|
19
|
+
import { ShippingOrderProcessSchema } from './flow/processes'
|
|
20
|
+
import { ShippingOrderStageSchema } from './flow/stages'
|
|
21
|
+
|
|
22
|
+
// LSP Shipping Status (extends existing BaseOrderStatus)
|
|
23
|
+
export const ShippingOrderStatusSchema = Type.Union([
|
|
24
|
+
...BaseOrderStatusSchema.anyOf, // All existing base statuses
|
|
25
|
+
Type.Literal('DISPATCHED'),
|
|
26
|
+
Type.Literal('COLLECTED'),
|
|
27
|
+
Type.Literal('IN_TRANSIT'),
|
|
28
|
+
Type.Literal('AT_HUB'),
|
|
29
|
+
Type.Literal('OUT_FOR_DELIVERY'),
|
|
30
|
+
Type.Literal('DELIVERED'),
|
|
31
|
+
Type.Literal('ATTEMPTED_DELIVERY'),
|
|
32
|
+
Type.Literal('DELIVERY_FAILED'),
|
|
33
|
+
Type.Literal('CUSTOMS_HOLD'),
|
|
34
|
+
Type.Literal('DAMAGED_IN_TRANSIT'),
|
|
35
|
+
Type.Literal('LOST'),
|
|
36
|
+
Type.Literal('RETURNED_TO_SENDER'),
|
|
37
|
+
Type.Literal('REFUSED_BY_RECIPIENT')
|
|
38
|
+
])
|
|
39
|
+
|
|
40
|
+
// LSP Shipping Flow (following warehouse order pattern)
|
|
41
|
+
export const ShippingOrderFlowSchema = Type.Object({
|
|
42
|
+
process: ShippingOrderProcessSchema,
|
|
43
|
+
stage: ShippingOrderStageSchema,
|
|
44
|
+
status: ShippingOrderStatusSchema,
|
|
45
|
+
priority: BaseOrderFlowPrioritySchema
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
// Main LSP Shipping Order Schema (extends LSPBaseOrder)
|
|
49
|
+
export const ShippingOrderSchema = Type.Intersect([
|
|
50
|
+
LSPBaseOrderSchema,
|
|
51
|
+
Type.Object({
|
|
52
|
+
// LSP-specific flow (following warehouse order pattern)
|
|
53
|
+
flow: ShippingOrderFlowSchema,
|
|
54
|
+
// Enhanced route (extends existing RouteSchema)
|
|
55
|
+
route: Type.Optional(RoutingSegmentSchema),
|
|
56
|
+
// Vehicle resource assignment
|
|
57
|
+
vehicle: Type.Optional(VehicleSchema),
|
|
58
|
+
// Tracking vehicle mileage
|
|
59
|
+
mileage: Type.Optional(DistanceSchema), // Total kilometers
|
|
60
|
+
|
|
61
|
+
// Shipping fields
|
|
62
|
+
origin: AddressSchema,
|
|
63
|
+
destination: AddressSchema,
|
|
64
|
+
serviceLevel: ServiceLevelSchema,
|
|
65
|
+
|
|
66
|
+
// Customer rating for this order
|
|
67
|
+
customerRating: Type.Optional(Type.Number({ minimum: 1, maximum: 5, description: 'Customer-submitted rating' })),
|
|
68
|
+
|
|
69
|
+
// Performance metrics
|
|
70
|
+
// performance: Type.Optional(Type.Object({
|
|
71
|
+
// fuelUsed: Type.Optional(Type.Number({ minimum: 0, description: 'Liters' })),
|
|
72
|
+
// carbonFootprint: Type.Optional(Type.Number({ minimum: 0, description: 'CO2 kg' })),
|
|
73
|
+
// driverRating: Type.Optional(Type.Number({ minimum: 1, maximum: 5 })),
|
|
74
|
+
// customerRating: Type.Optional(Type.Number({ minimum: 1, maximum: 5 }))
|
|
75
|
+
// }))
|
|
76
|
+
})
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
// LSP Shipping Log (following warehouse log pattern)
|
|
80
|
+
export const ShippingLogSchema = Type.Intersect([
|
|
81
|
+
ActionRecordSchema,
|
|
82
|
+
Type.Object({
|
|
83
|
+
flow: ShippingOrderFlowSchema,
|
|
84
|
+
assignee: OrderAssigneeSchema,
|
|
85
|
+
location: RTLocationSchema,
|
|
86
|
+
mileage: Type.Optional(DistanceSchema),
|
|
87
|
+
// fuelUsed: Type.Optional(Type.Number({ minimum: 0, description: 'Liters' })),
|
|
88
|
+
reason: Type.Optional(Type.String({ maxLength: 500 })),
|
|
89
|
+
attachments: Type.Optional(Type.Array(Type.Object({
|
|
90
|
+
type: Type.Union([
|
|
91
|
+
Type.Literal('PHOTO'),
|
|
92
|
+
Type.Literal('SIGNATURE'),
|
|
93
|
+
Type.Literal('DOCUMENT'),
|
|
94
|
+
Type.Literal('VOICE_NOTE'),
|
|
95
|
+
Type.Literal('BARCODE_SCAN')
|
|
96
|
+
]),
|
|
97
|
+
url: Type.String({ format: 'uri' }),
|
|
98
|
+
description: Type.Optional(Type.String({ maxLength: 200 }))
|
|
99
|
+
})))
|
|
100
|
+
})
|
|
101
|
+
])
|
|
102
|
+
|
|
103
|
+
// Generate TypeScript types
|
|
104
|
+
export type ShippingOrderProcess = Static<typeof ShippingOrderProcessSchema>
|
|
105
|
+
export type ShippingOrderStage = Static<typeof ShippingOrderStageSchema>
|
|
106
|
+
export type ShippingOrderStatus = Static<typeof ShippingOrderStatusSchema>
|
|
107
|
+
export type ShippingOrderFlow = Static<typeof ShippingOrderFlowSchema>
|
|
108
|
+
export type ShippingOrder = Static<typeof ShippingOrderSchema>
|
|
109
|
+
export type ShippingLog = Static<typeof ShippingLogSchema>
|
|
110
|
+
|
|
111
|
+
// Operational utility schemas for LSP management
|
|
112
|
+
export const DeliveryAttemptSchema = Type.Object({
|
|
113
|
+
attemptNumber: Type.Number({ minimum: 1, maximum: 5 }),
|
|
114
|
+
orderId: Type.String(),
|
|
115
|
+
timestamp: DateTimeZoneSchema,
|
|
116
|
+
location: Type.Tuple([Type.Number(), Type.Number()]),
|
|
117
|
+
outcome: Type.Union([
|
|
118
|
+
Type.Literal('SUCCESSFUL'),
|
|
119
|
+
Type.Literal('RECIPIENT_NOT_AVAILABLE'),
|
|
120
|
+
Type.Literal('INCORRECT_ADDRESS'),
|
|
121
|
+
Type.Literal('REFUSED_BY_RECIPIENT'),
|
|
122
|
+
Type.Literal('DAMAGED_PACKAGE'),
|
|
123
|
+
Type.Literal('SECURITY_CONCERNS'),
|
|
124
|
+
Type.Literal('WEATHER_CONDITIONS'),
|
|
125
|
+
Type.Literal('VEHICLE_BREAKDOWN'),
|
|
126
|
+
Type.Literal('ACCESS_DENIED')
|
|
127
|
+
]),
|
|
128
|
+
recipient: Type.Optional(Type.Object({
|
|
129
|
+
name: Type.String({ maxLength: 100 }),
|
|
130
|
+
relationship: Type.Union([
|
|
131
|
+
Type.Literal('ADDRESSEE'),
|
|
132
|
+
Type.Literal('FAMILY_MEMBER'),
|
|
133
|
+
Type.Literal('NEIGHBOR'),
|
|
134
|
+
Type.Literal('BUSINESS_REPRESENTATIVE'),
|
|
135
|
+
Type.Literal('DOORMAN'),
|
|
136
|
+
Type.Literal('OTHER')
|
|
137
|
+
]),
|
|
138
|
+
idVerified: Type.Boolean(),
|
|
139
|
+
signature: Type.Optional(Type.String()),
|
|
140
|
+
photo: Type.Optional(Type.String({ format: 'uri' }))
|
|
141
|
+
})),
|
|
142
|
+
notes: Type.Optional(Type.String({ maxLength: 1000 })),
|
|
143
|
+
nextAttempt: Type.Optional(Type.Object({
|
|
144
|
+
scheduledTime: DateTimeZoneSchema,
|
|
145
|
+
specialInstructions: Type.Optional(Type.String({ maxLength: 500 }))
|
|
146
|
+
})),
|
|
147
|
+
driverId: Type.String(),
|
|
148
|
+
vehicleId: Type.String()
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
export const PerformanceDashboardSchema = Type.Object({
|
|
152
|
+
lspId: Type.String(),
|
|
153
|
+
period: Type.Object({
|
|
154
|
+
start: DateTimeZoneSchema,
|
|
155
|
+
end: DateTimeZoneSchema
|
|
156
|
+
}),
|
|
157
|
+
deliveryMetrics: Type.Object({
|
|
158
|
+
totalDeliveries: Type.Number({ minimum: 0 }),
|
|
159
|
+
successfulDeliveries: Type.Number({ minimum: 0 }),
|
|
160
|
+
failedDeliveries: Type.Number({ minimum: 0 }),
|
|
161
|
+
firstAttemptSuccess: Type.Number({ minimum: 0, maximum: 100, description: 'Percentage' }),
|
|
162
|
+
averageDeliveryTime: DurationSchema, // Hours
|
|
163
|
+
onTimeDeliveryRate: Type.Number({ minimum: 0, maximum: 100, description: 'Percentage' }),
|
|
164
|
+
customerSatisfaction: Type.Optional(Type.Number({ minimum: 1, maximum: 5 }))
|
|
165
|
+
}),
|
|
166
|
+
operationalMetrics: Type.Object({
|
|
167
|
+
totalDistance: DistanceSchema,
|
|
168
|
+
totalFuelUsed: VolumeSchema,
|
|
169
|
+
averageStopsPerRoute: Type.Number({ minimum: 0 }),
|
|
170
|
+
routeOptimizationScore: Type.Number({ minimum: 0, maximum: 100 }),
|
|
171
|
+
driverUtilization: Type.Number({ minimum: 0, maximum: 100, description: 'Percentage' }),
|
|
172
|
+
vehicleUtilization: Type.Number({ minimum: 0, maximum: 100, description: 'Percentage' })
|
|
173
|
+
}),
|
|
174
|
+
costMetrics: Type.Optional(Type.Object({
|
|
175
|
+
totalOperatingCost: Type.Number({ minimum: 0 }),
|
|
176
|
+
costPerDelivery: Type.Number({ minimum: 0 }),
|
|
177
|
+
costPerKilometer: Type.Number({ minimum: 0 }),
|
|
178
|
+
fuelCost: Type.Number({ minimum: 0 }),
|
|
179
|
+
maintenanceCost: Type.Number({ minimum: 0 })
|
|
180
|
+
})),
|
|
181
|
+
environmentalMetrics: Type.Optional(Type.Object({
|
|
182
|
+
totalEmissions: Type.Number({ minimum: 0, description: 'CO2 kg' }),
|
|
183
|
+
emissionsPerDelivery: Type.Number({ minimum: 0, description: 'CO2 kg per delivery' }),
|
|
184
|
+
emissionsPerKilometer: Type.Number({ minimum: 0, description: 'CO2 grams per km' }),
|
|
185
|
+
fuelEfficiency: Type.Number({ minimum: 0, description: 'km per liter' })
|
|
186
|
+
}))
|
|
187
|
+
})
|
|
188
|
+
|
|
189
|
+
export type DeliveryAttempt = Static<typeof DeliveryAttemptSchema>
|
|
190
|
+
export type PerformanceDashboard = Static<typeof PerformanceDashboardSchema>
|
|
191
|
+
|
|
192
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
193
|
+
|
|
194
|
+
export const ShippingOrderListQuerySchema = Type.Object({
|
|
195
|
+
stage: Type.Optional(Type.String()),
|
|
196
|
+
status: Type.Optional(Type.String()),
|
|
197
|
+
limit: Type.Optional(Type.Number()),
|
|
198
|
+
offset: Type.Optional(Type.Number())
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
export const ShippingOrderCompleteBodySchema = Type.Object({
|
|
202
|
+
deliveredAt: Type.Optional(Type.Number()),
|
|
203
|
+
recipientName: Type.Optional(Type.String()),
|
|
204
|
+
notes: Type.Optional(Type.String()),
|
|
205
|
+
signatureRequired: Type.Optional(Type.Boolean())
|
|
206
|
+
})
|
|
207
|
+
|
|
208
|
+
export const LSPShippingOrderRetrieveRVS = {
|
|
209
|
+
headers: APIHeadersSchema,
|
|
210
|
+
params: Type.Object({ reference: Type.String() }),
|
|
211
|
+
response: {
|
|
212
|
+
200: APIResponseDataSchemaFactory({ order: LSPBaseOrderSchema, jrtoken: Type.String() }),
|
|
213
|
+
'4XX': APIErrorSchema
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export const LSPShippingOrderListRVS = {
|
|
218
|
+
headers: APIHeadersSchema,
|
|
219
|
+
querystring: ShippingOrderListQuerySchema,
|
|
220
|
+
response: {
|
|
221
|
+
200: APIResponseDataSchemaFactory({ orders: Type.Array(LSPBaseOrderSchema), total: Type.Number() }),
|
|
222
|
+
'4XX': APIErrorSchema
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export const LSPShippingOrderAssignOrUnassignRVS = {
|
|
227
|
+
headers: APIHeadersSchema,
|
|
228
|
+
params: Type.Object({
|
|
229
|
+
reference: Type.String(),
|
|
230
|
+
action: Type.Union([Type.Literal('assign'), Type.Literal('unassign')]),
|
|
231
|
+
to: Type.Union([Type.Literal('agent'), Type.Literal('operator')])
|
|
232
|
+
}),
|
|
233
|
+
body: Type.Object({ id: Type.String() }),
|
|
234
|
+
response: {
|
|
235
|
+
200: APIResponseBaseSchema,
|
|
236
|
+
'4XX': APIErrorSchema
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export const LSPShippingOrderRefOnlyRVS = {
|
|
241
|
+
headers: APIHeadersSchema,
|
|
242
|
+
params: Type.Object({ reference: Type.String() }),
|
|
243
|
+
response: {
|
|
244
|
+
200: APIResponseBaseSchema,
|
|
245
|
+
'4XX': APIErrorSchema
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const LSPShippingOrderCompleteRVS = {
|
|
250
|
+
headers: APIHeadersSchema,
|
|
251
|
+
params: Type.Object({ reference: Type.String() }),
|
|
252
|
+
body: ShippingOrderCompleteBodySchema,
|
|
253
|
+
response: {
|
|
254
|
+
200: APIResponseDataSchemaFactory({ order: LSPBaseOrderSchema }),
|
|
255
|
+
'4XX': APIErrorSchema
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type LSPShippingOrderRetrieveValidation = { params: Static<typeof LSPShippingOrderRetrieveRVS.params>, response: Static<(typeof LSPShippingOrderRetrieveRVS.response)[200]> }
|
|
260
|
+
export type LSPShippingOrderListValidation = { querystring: Static<typeof LSPShippingOrderListRVS.querystring>, response: Static<(typeof LSPShippingOrderListRVS.response)[200]> }
|
|
261
|
+
export type LSPShippingOrderAssignOrUnassignValidation = { params: Static<typeof LSPShippingOrderAssignOrUnassignRVS.params>, body: Static<typeof LSPShippingOrderAssignOrUnassignRVS.body>, response: Static<(typeof LSPShippingOrderAssignOrUnassignRVS.response)[200]> }
|
|
262
|
+
export type LSPShippingOrderRefOnlyValidation = { params: Static<typeof LSPShippingOrderRefOnlyRVS.params>, response: Static<(typeof LSPShippingOrderRefOnlyRVS.response)[200]> }
|
|
263
|
+
export type LSPShippingOrderCompleteValidation = { params: Static<typeof LSPShippingOrderCompleteRVS.params>, body: Static<typeof LSPShippingOrderCompleteRVS.body>, response: Static<(typeof LSPShippingOrderCompleteRVS.response)[200]> }
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from '../../context'
|
|
3
|
+
import { CoordinatesSchema, AddressSchema } from '../../geo'
|
|
4
|
+
import { ActionRecordSchema, DateTimeZoneSchema } from '../../time'
|
|
5
|
+
import {
|
|
6
|
+
APIHeadersSchema,
|
|
7
|
+
APIResponseBaseSchema,
|
|
8
|
+
APIResponseDataSchemaFactory
|
|
9
|
+
} from '../../api'
|
|
10
|
+
|
|
11
|
+
// ── Pod Type ──────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
export const PodTypeSchema = Type.Union([
|
|
14
|
+
Type.Literal('THERMAL_LOCKER'), // insulated, food-grade; temperature-monitored
|
|
15
|
+
Type.Literal('STANDARD_LOCKER'), // uninsulated; general parcels, pharmacy, e-commerce
|
|
16
|
+
Type.Literal('DRONE_PAD'), // landing surface + hatch; drone drop/pickup
|
|
17
|
+
Type.Literal('HYBRID'), // locker bank + drone hatch on same physical unit
|
|
18
|
+
])
|
|
19
|
+
|
|
20
|
+
// ── Pod Operational Status ────────────────────────────────────
|
|
21
|
+
|
|
22
|
+
export const PodStatusSchema = Type.Union([
|
|
23
|
+
Type.Literal('ACTIVE'), // accepting orders, fully operational
|
|
24
|
+
Type.Literal('INACTIVE'), // configured but not yet operational
|
|
25
|
+
Type.Literal('RESTOCKING'), // replenishment in progress; not accepting orders
|
|
26
|
+
Type.Literal('MAINTENANCE'), // hardware/software issue; not accepting orders
|
|
27
|
+
Type.Literal('DECOMMISSIONED'), // permanently out of service
|
|
28
|
+
])
|
|
29
|
+
|
|
30
|
+
// ── Fulfillment Modes ─────────────────────────────────────────
|
|
31
|
+
|
|
32
|
+
export const PodFulfillmentModeSchema = Type.Union([
|
|
33
|
+
Type.Literal('POD_PICKUP'), // customer self-collects via PIN/QR
|
|
34
|
+
Type.Literal('POD_DOOR'), // swarm rider delivers pod → customer door
|
|
35
|
+
Type.Literal('DRONE_DROP'), // drone deposits directly into pod hatch
|
|
36
|
+
])
|
|
37
|
+
|
|
38
|
+
// ── Compartment Status ────────────────────────────────────────
|
|
39
|
+
|
|
40
|
+
export const PodCompartmentStatusSchema = Type.Union([
|
|
41
|
+
Type.Literal('AVAILABLE'), // empty and ready to accept a package
|
|
42
|
+
Type.Literal('RESERVED'), // assigned to an order; awaiting loading
|
|
43
|
+
Type.Literal('OCCUPIED'), // loaded; awaiting pickup or rider collection
|
|
44
|
+
Type.Literal('COLLECTED'), // package retrieved; ready for reset
|
|
45
|
+
Type.Literal('FAULTY'), // sensor/lock failure; excluded from assignment
|
|
46
|
+
])
|
|
47
|
+
|
|
48
|
+
// ── Drone Hatch Status (DRONE_PAD / HYBRID only) ──────────────
|
|
49
|
+
|
|
50
|
+
export const DroneHatchStatusSchema = Type.Union([
|
|
51
|
+
Type.Literal('CLOSED'), // default sealed state
|
|
52
|
+
Type.Literal('OPENING'), // actuator in motion
|
|
53
|
+
Type.Literal('OPEN'), // hatch fully open; awaiting approach or deposit
|
|
54
|
+
Type.Literal('CLOSING'), // actuator returning to closed
|
|
55
|
+
Type.Literal('FAULT'), // mechanical or sensor failure
|
|
56
|
+
])
|
|
57
|
+
|
|
58
|
+
// ── Compartment ───────────────────────────────────────────────
|
|
59
|
+
|
|
60
|
+
export const PodCompartmentSchema = Type.Object({
|
|
61
|
+
id: Type.String(),
|
|
62
|
+
podId: Type.String(),
|
|
63
|
+
context: ContextSchema,
|
|
64
|
+
index: Type.Number({ minimum: 0, description: 'Physical slot position on the pod unit' }),
|
|
65
|
+
status: PodCompartmentStatusSchema,
|
|
66
|
+
orderId: Type.Optional(Type.String({ description: 'Order currently using this compartment' })),
|
|
67
|
+
accessCode: Type.Optional(Type.String({ minLength: 6, maxLength: 6, description: '6-digit PIN issued to customer or rider for unlock' })),
|
|
68
|
+
// Drone hatch fields — only populated for DRONE_PAD / HYBRID pods
|
|
69
|
+
hatchStatus: Type.Optional(DroneHatchStatusSchema),
|
|
70
|
+
// Lifecycle timestamps
|
|
71
|
+
reserved: Type.Optional(ActionRecordSchema),
|
|
72
|
+
occupied: Type.Optional(ActionRecordSchema),
|
|
73
|
+
expiry: Type.Optional(DateTimeZoneSchema), // Reservation expiry; auto-releases to AVAILABLE
|
|
74
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any())),
|
|
75
|
+
created: ActionRecordSchema,
|
|
76
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// ── Pod ───────────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
export const PodSchema = Type.Object({
|
|
82
|
+
id: Type.String(),
|
|
83
|
+
context: ContextSchema,
|
|
84
|
+
type: PodTypeSchema,
|
|
85
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
86
|
+
status: PodStatusSchema,
|
|
87
|
+
zoneId: Type.String({ description: 'Rally zone this pod is anchored to' }),
|
|
88
|
+
coordinates: CoordinatesSchema,
|
|
89
|
+
address: AddressSchema,
|
|
90
|
+
fulfillmentModes: Type.Array(PodFulfillmentModeSchema, { minItems: 1 }),
|
|
91
|
+
compartmentCount: Type.Number({ minimum: 1, description: 'Total physical compartments on this unit' }),
|
|
92
|
+
availableCount: Type.Number({ minimum: 0, description: 'Current free compartments; kept in sync on every mutation' }),
|
|
93
|
+
acceptingOrders: Type.Boolean({ description: 'Derived hot-path signal written to Redis for Rally intake' }),
|
|
94
|
+
// Engine integration references — populated after explicit registration calls
|
|
95
|
+
hardwareId: Type.Optional(Type.String({ description: 'IoTSP device binding' })),
|
|
96
|
+
cpointId: Type.Optional(Type.String({ description: 'ConsolidationPoint id if registered as relay staging point' })),
|
|
97
|
+
graphNodeId: Type.Optional(Type.String({ description: 'Rally Graph POI node id' })),
|
|
98
|
+
swarmZoneId: Type.Optional(Type.String({ description: 'Swarm sub-zone id if this pod anchors a swarm zone' })),
|
|
99
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any())),
|
|
100
|
+
created: ActionRecordSchema,
|
|
101
|
+
updated: Type.Optional(ActionRecordSchema),
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
export const PodUpdateSchema = Type.Object({
|
|
105
|
+
name: Type.Optional(Type.String({ minLength: 1, maxLength: 100 })),
|
|
106
|
+
zoneId: Type.Optional(Type.String()),
|
|
107
|
+
address: Type.Optional(AddressSchema),
|
|
108
|
+
fulfillmentModes: Type.Optional(Type.Array(PodFulfillmentModeSchema, { minItems: 1 })),
|
|
109
|
+
hardwareId: Type.Optional(Type.String()),
|
|
110
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any())),
|
|
111
|
+
}, { additionalProperties: false })
|
|
112
|
+
|
|
113
|
+
// ── TypeScript types ──────────────────────────────────────────
|
|
114
|
+
|
|
115
|
+
export type PodType = Static<typeof PodTypeSchema>
|
|
116
|
+
export type PodStatus = Static<typeof PodStatusSchema>
|
|
117
|
+
export type PodFulfillmentMode = Static<typeof PodFulfillmentModeSchema>
|
|
118
|
+
export type PodCompartmentStatus = Static<typeof PodCompartmentStatusSchema>
|
|
119
|
+
export type DroneHatchStatus = Static<typeof DroneHatchStatusSchema>
|
|
120
|
+
export type PodCompartment = Static<typeof PodCompartmentSchema>
|
|
121
|
+
export type Pod = Static<typeof PodSchema>
|
|
122
|
+
export type PodUpdate = Static<typeof PodUpdateSchema>
|
|
123
|
+
|
|
124
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
125
|
+
|
|
126
|
+
export const PodCreateBodySchema = Type.Object({
|
|
127
|
+
type: PodTypeSchema,
|
|
128
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
129
|
+
zoneId: Type.String(),
|
|
130
|
+
coordinates: CoordinatesSchema,
|
|
131
|
+
address: AddressSchema,
|
|
132
|
+
fulfillmentModes: Type.Array(PodFulfillmentModeSchema, { minItems: 1 }),
|
|
133
|
+
compartmentCount: Type.Number({ minimum: 1 }),
|
|
134
|
+
hardwareId: Type.Optional(Type.String()),
|
|
135
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any()))
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
export const PodStatusUpdateBodySchema = Type.Object({
|
|
139
|
+
status: PodStatusSchema,
|
|
140
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
export const PodListQuerySchema = Type.Object({
|
|
144
|
+
type: Type.Optional(PodTypeSchema),
|
|
145
|
+
status: Type.Optional(PodStatusSchema),
|
|
146
|
+
zoneId: Type.Optional(Type.String()),
|
|
147
|
+
acceptingOrders: Type.Optional(Type.Boolean()),
|
|
148
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 200, default: 20 })),
|
|
149
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
150
|
+
})
|
|
151
|
+
|
|
152
|
+
export const PodRegisterCpointBodySchema = Type.Object({
|
|
153
|
+
name: Type.Optional(Type.String({ maxLength: 100 })),
|
|
154
|
+
agentNotes: Type.Optional(Type.Array(Type.String({ maxLength: 300 })))
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
export const PodRegisterGraphNodeBodySchema = Type.Object({
|
|
158
|
+
agentNotes: Type.Optional(Type.Array(Type.String({ maxLength: 300 })))
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
export const LSPPodCreateRVS = {
|
|
162
|
+
headers: APIHeadersSchema,
|
|
163
|
+
body: PodCreateBodySchema,
|
|
164
|
+
response: APIResponseDataSchemaFactory({ podId: Type.String() })
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export const LSPPodRetrieveRVS = {
|
|
168
|
+
headers: APIHeadersSchema,
|
|
169
|
+
params: Type.Object({ id: Type.String() }),
|
|
170
|
+
response: APIResponseDataSchemaFactory({ pod: PodSchema })
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export const LSPPodListRVS = {
|
|
174
|
+
headers: APIHeadersSchema,
|
|
175
|
+
querystring: PodListQuerySchema,
|
|
176
|
+
response: APIResponseDataSchemaFactory({
|
|
177
|
+
pods: Type.Array(PodSchema),
|
|
178
|
+
total: Type.Number(),
|
|
179
|
+
limit: Type.Number(),
|
|
180
|
+
offset: Type.Number()
|
|
181
|
+
})
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export const LSPPodUpdateRVS = {
|
|
185
|
+
headers: APIHeadersSchema,
|
|
186
|
+
params: Type.Object({ id: Type.String() }),
|
|
187
|
+
body: PodUpdateSchema,
|
|
188
|
+
response: APIResponseDataSchemaFactory({ pod: PodSchema })
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export const LSPPodUpdateStatusRVS = {
|
|
192
|
+
headers: APIHeadersSchema,
|
|
193
|
+
params: Type.Object({ id: Type.String() }),
|
|
194
|
+
body: PodStatusUpdateBodySchema,
|
|
195
|
+
response: APIResponseDataSchemaFactory({ pod: PodSchema })
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export const LSPPodRemoveRVS = {
|
|
199
|
+
headers: APIHeadersSchema,
|
|
200
|
+
params: Type.Object({ id: Type.String() }),
|
|
201
|
+
response: APIResponseBaseSchema
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export const LSPPodRegisterCpointRVS = {
|
|
205
|
+
headers: APIHeadersSchema,
|
|
206
|
+
params: Type.Object({ id: Type.String() }),
|
|
207
|
+
body: PodRegisterCpointBodySchema,
|
|
208
|
+
response: APIResponseDataSchemaFactory({ cpointId: Type.String() })
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export const LSPPodRegisterGraphNodeRVS = {
|
|
212
|
+
headers: APIHeadersSchema,
|
|
213
|
+
params: Type.Object({ id: Type.String() }),
|
|
214
|
+
body: PodRegisterGraphNodeBodySchema,
|
|
215
|
+
response: APIResponseDataSchemaFactory({ nodeId: Type.String() })
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type LSPPodCreateValidation = { headers: Static<typeof LSPPodCreateRVS.headers>, body: Static<typeof LSPPodCreateRVS.body>, response: Static<typeof LSPPodCreateRVS.response> }
|
|
219
|
+
export type LSPPodRetrieveValidation = { headers: Static<typeof LSPPodRetrieveRVS.headers>, params: Static<typeof LSPPodRetrieveRVS.params>, response: Static<typeof LSPPodRetrieveRVS.response> }
|
|
220
|
+
export type LSPPodListValidation = { headers: Static<typeof LSPPodListRVS.headers>, querystring: Static<typeof LSPPodListRVS.querystring>, response: Static<typeof LSPPodListRVS.response> }
|
|
221
|
+
export type LSPPodUpdateValidation = { headers: Static<typeof LSPPodUpdateRVS.headers>, params: Static<typeof LSPPodUpdateRVS.params>, body: Static<typeof LSPPodUpdateRVS.body>, response: Static<typeof LSPPodUpdateRVS.response> }
|
|
222
|
+
export type LSPPodUpdateStatusValidation = { headers: Static<typeof LSPPodUpdateStatusRVS.headers>, params: Static<typeof LSPPodUpdateStatusRVS.params>, body: Static<typeof LSPPodUpdateStatusRVS.body>, response: Static<typeof LSPPodUpdateStatusRVS.response> }
|
|
223
|
+
export type LSPPodRemoveValidation = { headers: Static<typeof LSPPodRemoveRVS.headers>, params: Static<typeof LSPPodRemoveRVS.params>, response: Static<typeof LSPPodRemoveRVS.response> }
|
|
224
|
+
export type LSPPodRegisterCpointValidation = { headers: Static<typeof LSPPodRegisterCpointRVS.headers>, params: Static<typeof LSPPodRegisterCpointRVS.params>, body: Static<typeof LSPPodRegisterCpointRVS.body>, response: Static<typeof LSPPodRegisterCpointRVS.response> }
|
|
225
|
+
export type LSPPodRegisterGraphNodeValidation = { headers: Static<typeof LSPPodRegisterGraphNodeRVS.headers>, params: Static<typeof LSPPodRegisterGraphNodeRVS.params>, body: Static<typeof LSPPodRegisterGraphNodeRVS.body>, response: Static<typeof LSPPodRegisterGraphNodeRVS.response> }
|
|
226
|
+
|
|
227
|
+
// ─── Compartment & Drone RVS ──────────────────────────────────────────────────
|
|
228
|
+
|
|
229
|
+
export const LSPPodCompartmentListRVS = {
|
|
230
|
+
headers: APIHeadersSchema,
|
|
231
|
+
params: Type.Object({ podId: Type.String() }),
|
|
232
|
+
querystring: Type.Object({
|
|
233
|
+
status: Type.Optional(PodCompartmentStatusSchema),
|
|
234
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 200, default: 50 })),
|
|
235
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
236
|
+
}),
|
|
237
|
+
response: APIResponseDataSchemaFactory({
|
|
238
|
+
compartments: Type.Array(PodCompartmentSchema),
|
|
239
|
+
total: Type.Number(),
|
|
240
|
+
limit: Type.Number(),
|
|
241
|
+
offset: Type.Number()
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export const LSPPodCompartmentRetrieveRVS = {
|
|
246
|
+
headers: APIHeadersSchema,
|
|
247
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
248
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema })
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export const LSPPodCompartmentReserveRVS = {
|
|
252
|
+
headers: APIHeadersSchema,
|
|
253
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
254
|
+
body: Type.Object({ orderId: Type.String(), expiry: Type.Optional(Type.Number()) }),
|
|
255
|
+
response: APIResponseDataSchemaFactory({
|
|
256
|
+
compartment: PodCompartmentSchema,
|
|
257
|
+
accessCode: Type.String()
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export const LSPPodCompartmentLoadRVS = {
|
|
262
|
+
headers: APIHeadersSchema,
|
|
263
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
264
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema })
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export const LSPPodCompartmentUnlockRVS = {
|
|
268
|
+
headers: APIHeadersSchema,
|
|
269
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
270
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema, accessCode: Type.String() })
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export const LSPPodCompartmentCollectRVS = {
|
|
274
|
+
headers: APIHeadersSchema,
|
|
275
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
276
|
+
body: Type.Object({ code: Type.String({ minLength: 6, maxLength: 6 }) }),
|
|
277
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema })
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export const LSPPodCompartmentReleaseRVS = {
|
|
281
|
+
headers: APIHeadersSchema,
|
|
282
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
283
|
+
body: Type.Object({ reason: Type.Optional(Type.String({ maxLength: 300 })) }),
|
|
284
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema })
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export const LSPPodCompartmentMarkFaultyRVS = {
|
|
288
|
+
headers: APIHeadersSchema,
|
|
289
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
290
|
+
body: Type.Object({ reason: Type.String({ maxLength: 500 }) }),
|
|
291
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema })
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export const LSPPodDroneOpenHatchRVS = {
|
|
295
|
+
headers: APIHeadersSchema,
|
|
296
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
297
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema, hatchStatus: DroneHatchStatusSchema })
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export const LSPPodDroneCloseHatchRVS = {
|
|
301
|
+
headers: APIHeadersSchema,
|
|
302
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
303
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema, hatchStatus: DroneHatchStatusSchema })
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export const LSPPodDroneConfirmDepositRVS = {
|
|
307
|
+
headers: APIHeadersSchema,
|
|
308
|
+
params: Type.Object({ podId: Type.String(), id: Type.String() }),
|
|
309
|
+
body: Type.Object({ orderId: Type.String(), droneId: Type.Optional(Type.String()), depositedAt: Type.Number() }),
|
|
310
|
+
response: APIResponseDataSchemaFactory({ compartment: PodCompartmentSchema })
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export type LSPPodCompartmentListValidation = { headers: Static<typeof LSPPodCompartmentListRVS.headers>, params: Static<typeof LSPPodCompartmentListRVS.params>, querystring: Static<typeof LSPPodCompartmentListRVS.querystring>, response: Static<typeof LSPPodCompartmentListRVS.response> }
|
|
314
|
+
export type LSPPodCompartmentRetrieveValidation = { headers: Static<typeof LSPPodCompartmentRetrieveRVS.headers>, params: Static<typeof LSPPodCompartmentRetrieveRVS.params>, response: Static<typeof LSPPodCompartmentRetrieveRVS.response> }
|
|
315
|
+
export type LSPPodCompartmentReserveValidation = { headers: Static<typeof LSPPodCompartmentReserveRVS.headers>, params: Static<typeof LSPPodCompartmentReserveRVS.params>, body: Static<typeof LSPPodCompartmentReserveRVS.body>, response: Static<typeof LSPPodCompartmentReserveRVS.response> }
|
|
316
|
+
export type LSPPodCompartmentLoadValidation = { headers: Static<typeof LSPPodCompartmentLoadRVS.headers>, params: Static<typeof LSPPodCompartmentLoadRVS.params>, response: Static<typeof LSPPodCompartmentLoadRVS.response> }
|
|
317
|
+
export type LSPPodCompartmentUnlockValidation = { headers: Static<typeof LSPPodCompartmentUnlockRVS.headers>, params: Static<typeof LSPPodCompartmentUnlockRVS.params>, response: Static<typeof LSPPodCompartmentUnlockRVS.response> }
|
|
318
|
+
export type LSPPodCompartmentCollectValidation = { headers: Static<typeof LSPPodCompartmentCollectRVS.headers>, params: Static<typeof LSPPodCompartmentCollectRVS.params>, body: Static<typeof LSPPodCompartmentCollectRVS.body>, response: Static<typeof LSPPodCompartmentCollectRVS.response> }
|
|
319
|
+
export type LSPPodCompartmentReleaseValidation = { headers: Static<typeof LSPPodCompartmentReleaseRVS.headers>, params: Static<typeof LSPPodCompartmentReleaseRVS.params>, body: Static<typeof LSPPodCompartmentReleaseRVS.body>, response: Static<typeof LSPPodCompartmentReleaseRVS.response> }
|
|
320
|
+
export type LSPPodCompartmentMarkFaultyValidation = { headers: Static<typeof LSPPodCompartmentMarkFaultyRVS.headers>, params: Static<typeof LSPPodCompartmentMarkFaultyRVS.params>, body: Static<typeof LSPPodCompartmentMarkFaultyRVS.body>, response: Static<typeof LSPPodCompartmentMarkFaultyRVS.response> }
|
|
321
|
+
export type LSPPodDroneOpenHatchValidation = { headers: Static<typeof LSPPodDroneOpenHatchRVS.headers>, params: Static<typeof LSPPodDroneOpenHatchRVS.params>, response: Static<typeof LSPPodDroneOpenHatchRVS.response> }
|
|
322
|
+
export type LSPPodDroneCloseHatchValidation = { headers: Static<typeof LSPPodDroneCloseHatchRVS.headers>, params: Static<typeof LSPPodDroneCloseHatchRVS.params>, response: Static<typeof LSPPodDroneCloseHatchRVS.response> }
|
|
323
|
+
export type LSPPodDroneConfirmDepositValidation = { headers: Static<typeof LSPPodDroneConfirmDepositRVS.headers>, params: Static<typeof LSPPodDroneConfirmDepositRVS.params>, body: Static<typeof LSPPodDroneConfirmDepositRVS.body>, response: Static<typeof LSPPodDroneConfirmDepositRVS.response> }
|