@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,434 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { RoutingSegmentSchema } from '../../routing'
|
|
3
|
+
import { ActionRecordSchema } from '../../time'
|
|
4
|
+
import { AddressSchema } from '../../geo'
|
|
5
|
+
import { ContextSchema } from '../../context'
|
|
6
|
+
import {
|
|
7
|
+
BaseOrderFlowPrioritySchema,
|
|
8
|
+
BaseOrderStatusSchema,
|
|
9
|
+
LSPBaseOrderSchema
|
|
10
|
+
} from '../../order'
|
|
11
|
+
import { PassthroughOrderProcessSchema } from './flow/processes'
|
|
12
|
+
import { PassthroughOrderStageSchema } from './flow/stages'
|
|
13
|
+
|
|
14
|
+
// Passthrough Order Status Schema
|
|
15
|
+
export const PassthroughOrderStatusSchema = Type.Union([
|
|
16
|
+
...BaseOrderStatusSchema.anyOf,
|
|
17
|
+
Type.Literal('IN_TRANSIT_TO_HUB'), // En route to hub
|
|
18
|
+
Type.Literal('AT_HUB'), // At hub facility
|
|
19
|
+
Type.Literal('SCANNED_IN'), // Scanned into hub
|
|
20
|
+
Type.Literal('SORTED'), // Package sorted
|
|
21
|
+
Type.Literal('CONSOLIDATED'), // Added to consolidated shipment
|
|
22
|
+
Type.Literal('DECONSOLIDATED'), // Extracted from consolidated shipment
|
|
23
|
+
Type.Literal('STAGED'), // Staged for dispatch
|
|
24
|
+
Type.Literal('UNLOADED'), // Staged for dispatch
|
|
25
|
+
Type.Literal('LOADED'), // Loaded for dispatch
|
|
26
|
+
Type.Literal('DISPATCHED'), // Dispatched from hub
|
|
27
|
+
Type.Literal('EXCEPTION'), // Exception status
|
|
28
|
+
Type.Literal('DAMAGED'), // Package damaged
|
|
29
|
+
Type.Literal('MISSING'), // Package missing
|
|
30
|
+
Type.Literal('QUARANTINED'), // Package quarantined
|
|
31
|
+
Type.Literal('REROUTED') // Package rerouted
|
|
32
|
+
])
|
|
33
|
+
|
|
34
|
+
// Passthrough Order Flow Schema
|
|
35
|
+
export const PassthroughOrderFlowSchema = Type.Object({
|
|
36
|
+
process: PassthroughOrderProcessSchema,
|
|
37
|
+
stage: PassthroughOrderStageSchema,
|
|
38
|
+
status: PassthroughOrderStatusSchema,
|
|
39
|
+
priority: BaseOrderFlowPrioritySchema
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
// Passthrough Order Schema
|
|
43
|
+
export const PassthroughOrderSchema = Type.Intersect([
|
|
44
|
+
LSPBaseOrderSchema,
|
|
45
|
+
Type.Object({
|
|
46
|
+
id: Type.String(),
|
|
47
|
+
flow: PassthroughOrderFlowSchema,
|
|
48
|
+
|
|
49
|
+
// Hub-specific fields
|
|
50
|
+
currentHub: Type.Optional(Type.String({ description: 'Current hub ID' })),
|
|
51
|
+
|
|
52
|
+
// Enhanced route (following shipping order pattern)
|
|
53
|
+
route: Type.Optional(RoutingSegmentSchema),
|
|
54
|
+
|
|
55
|
+
// Shipping fields
|
|
56
|
+
origin: Type.Optional(AddressSchema),
|
|
57
|
+
destination: Type.Optional(AddressSchema),
|
|
58
|
+
serviceLevel: Type.Optional(Type.String({ description: 'Service level code' })),
|
|
59
|
+
|
|
60
|
+
// Consolidation & routing
|
|
61
|
+
sortDestination: Type.Optional(AddressSchema),
|
|
62
|
+
consolidationId: Type.Optional(Type.String({ description: 'Consolidation ID if consolidated' })),
|
|
63
|
+
assignedCarrier: Type.Optional(Type.String({ description: 'Assigned carrier ID' })),
|
|
64
|
+
|
|
65
|
+
// Timing
|
|
66
|
+
departureTime: Type.Optional(Type.Number({ description: 'Unix timestamp of departure' })),
|
|
67
|
+
|
|
68
|
+
// Audit trail
|
|
69
|
+
created: ActionRecordSchema,
|
|
70
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
71
|
+
})
|
|
72
|
+
])
|
|
73
|
+
|
|
74
|
+
// Passthrough Order Log Assignee Schema - simplified for logging
|
|
75
|
+
export const PassthroughOrderLogAssigneeSchema = Type.Object({
|
|
76
|
+
id: Type.String(),
|
|
77
|
+
type: Type.Union([
|
|
78
|
+
Type.Literal('admin'),
|
|
79
|
+
Type.Literal('operator'),
|
|
80
|
+
Type.Literal('agent'),
|
|
81
|
+
Type.Literal('developer')
|
|
82
|
+
])
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
// Passthrough Order Log Schema
|
|
86
|
+
export const PassthroughOrderLogSchema = Type.Intersect([
|
|
87
|
+
ActionRecordSchema,
|
|
88
|
+
Type.Object({
|
|
89
|
+
orderId: Type.String(),
|
|
90
|
+
orderReference: Type.String(),
|
|
91
|
+
flow: PassthroughOrderFlowSchema,
|
|
92
|
+
assignee: PassthroughOrderLogAssigneeSchema,
|
|
93
|
+
location: Type.Optional(Type.String({ description: 'Specific location within hub' })),
|
|
94
|
+
equipment: Type.Optional(Type.String({ description: 'Equipment used' })),
|
|
95
|
+
reason: Type.Optional(Type.String({ maxLength: 500 })),
|
|
96
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any()))
|
|
97
|
+
})
|
|
98
|
+
])
|
|
99
|
+
|
|
100
|
+
export type PassthroughOrderProcess = Static<typeof PassthroughOrderProcessSchema>
|
|
101
|
+
export type PassthroughOrderStage = Static<typeof PassthroughOrderStageSchema>
|
|
102
|
+
export type PassthroughOrderStatus = Static<typeof PassthroughOrderStatusSchema>
|
|
103
|
+
export type PassthroughOrderFlow = Static<typeof PassthroughOrderFlowSchema>
|
|
104
|
+
export type PassthroughOrder = Static<typeof PassthroughOrderSchema>
|
|
105
|
+
export type PassthroughOrderLog = Static<typeof PassthroughOrderLogSchema>
|
|
106
|
+
|
|
107
|
+
// ── Hub Outbound Consolidation ────────────────────────────────────────────────
|
|
108
|
+
// Groups passthrough orders at a hub/warehouse into an outbound shipment batch
|
|
109
|
+
// for carrier dispatch. Distinct from Rally ConsolidationOffer (agent meetups).
|
|
110
|
+
|
|
111
|
+
export const HubConsolidationStatusSchema = Type.Union([
|
|
112
|
+
Type.Literal('ACTIVE'),
|
|
113
|
+
Type.Literal('DISPATCHED'),
|
|
114
|
+
Type.Literal('CANCELLED'),
|
|
115
|
+
Type.Literal('CLOSED'),
|
|
116
|
+
])
|
|
117
|
+
|
|
118
|
+
export const HubConsolidationSchema = Type.Object({
|
|
119
|
+
id: Type.String(),
|
|
120
|
+
locationId: Type.String({ description: 'Hub or warehouse ID' }),
|
|
121
|
+
destination: Type.String({ description: 'Outbound destination identifier' }),
|
|
122
|
+
carrier: Type.Optional(Type.String()),
|
|
123
|
+
vehicleId: Type.Optional(Type.String()),
|
|
124
|
+
driverId: Type.Optional(Type.String()),
|
|
125
|
+
orderReferences: Type.Array(Type.String()),
|
|
126
|
+
status: HubConsolidationStatusSchema,
|
|
127
|
+
targetDepartureTime: Type.Optional(Type.Number()),
|
|
128
|
+
actualDepartureTime: Type.Optional(Type.Number()),
|
|
129
|
+
deconsolidationReason: Type.Optional(Type.String()),
|
|
130
|
+
notes: Type.Optional(Type.String({ maxLength: 500 })),
|
|
131
|
+
context: ContextSchema,
|
|
132
|
+
created: ActionRecordSchema,
|
|
133
|
+
updated: Type.Optional(ActionRecordSchema),
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
export type HubConsolidationStatus = Static<typeof HubConsolidationStatusSchema>
|
|
137
|
+
export type HubConsolidation = Static<typeof HubConsolidationSchema>
|
|
138
|
+
|
|
139
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
140
|
+
|
|
141
|
+
import {
|
|
142
|
+
APIErrorSchema,
|
|
143
|
+
APIHeadersSchema,
|
|
144
|
+
APIResponseBaseSchema,
|
|
145
|
+
APIResponseDataSchemaFactory
|
|
146
|
+
} from '../../api'
|
|
147
|
+
|
|
148
|
+
const PassthroughPrioritySchema = Type.Union([
|
|
149
|
+
Type.Literal('LOW'), Type.Literal('NORMAL'),
|
|
150
|
+
Type.Literal('HIGH'), Type.Literal('URGENT')
|
|
151
|
+
])
|
|
152
|
+
|
|
153
|
+
export const PassthroughOrderCreateBodySchema = Type.Object({
|
|
154
|
+
reference: Type.String(),
|
|
155
|
+
client: Type.String(),
|
|
156
|
+
packages: Type.Array(Type.Object({
|
|
157
|
+
weight: Type.Any(),
|
|
158
|
+
dimensions: Type.Any(),
|
|
159
|
+
value: Type.Optional(Type.Any()),
|
|
160
|
+
tracking: Type.Optional(Type.Object({
|
|
161
|
+
masterTrackingNumber: Type.String(),
|
|
162
|
+
trackingNumber: Type.String(),
|
|
163
|
+
carrierTrackingNumber: Type.Optional(Type.String())
|
|
164
|
+
}))
|
|
165
|
+
})),
|
|
166
|
+
origin: Type.Object({ address: Type.Any(), contact: Type.Optional(Type.Any()) }),
|
|
167
|
+
destination: Type.Object({ address: Type.Any(), contact: Type.Optional(Type.Any()) }),
|
|
168
|
+
serviceLevel: Type.String(),
|
|
169
|
+
process: PassthroughOrderProcessSchema,
|
|
170
|
+
priority: Type.Optional(PassthroughPrioritySchema)
|
|
171
|
+
})
|
|
172
|
+
|
|
173
|
+
export const PassthroughOrderListQuerySchema = Type.Object({
|
|
174
|
+
status: Type.Optional(PassthroughOrderStatusSchema),
|
|
175
|
+
process: Type.Optional(PassthroughOrderProcessSchema),
|
|
176
|
+
stage: Type.Optional(PassthroughOrderStageSchema),
|
|
177
|
+
fromDate: Type.Optional(Type.Number()),
|
|
178
|
+
toDate: Type.Optional(Type.Number()),
|
|
179
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 500 })),
|
|
180
|
+
offset: Type.Optional(Type.Number({ minimum: 0 }))
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
export const PassthroughOrderUpdateStageBodySchema = Type.Object({
|
|
184
|
+
stage: PassthroughOrderStageSchema,
|
|
185
|
+
status: Type.Optional(PassthroughOrderStatusSchema),
|
|
186
|
+
location: Type.Optional(Type.String()),
|
|
187
|
+
notes: Type.Optional(Type.String())
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
export const PassthroughOrderUpdateStatusBodySchema = Type.Object({
|
|
191
|
+
status: PassthroughOrderStatusSchema,
|
|
192
|
+
reason: Type.Optional(Type.String()),
|
|
193
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any()))
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
export const PassthroughOrderLogsQuerySchema = Type.Object({
|
|
197
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 200, default: 50 })),
|
|
198
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
export const LSPPassthroughOrderCreateRVS = {
|
|
202
|
+
headers: APIHeadersSchema,
|
|
203
|
+
params: Type.Object({ hubId: Type.String() }),
|
|
204
|
+
body: PassthroughOrderCreateBodySchema,
|
|
205
|
+
response: {
|
|
206
|
+
201: APIResponseDataSchemaFactory({ order: PassthroughOrderSchema, message: Type.String() }),
|
|
207
|
+
'4XX': APIErrorSchema
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export const LSPPassthroughOrderListRVS = {
|
|
212
|
+
headers: APIHeadersSchema,
|
|
213
|
+
params: Type.Object({ hubId: Type.String() }),
|
|
214
|
+
querystring: PassthroughOrderListQuerySchema,
|
|
215
|
+
response: {
|
|
216
|
+
200: APIResponseDataSchemaFactory({
|
|
217
|
+
orders: Type.Array(PassthroughOrderSchema),
|
|
218
|
+
total: Type.Number(),
|
|
219
|
+
limit: Type.Number(),
|
|
220
|
+
offset: Type.Number()
|
|
221
|
+
}),
|
|
222
|
+
'4XX': APIErrorSchema
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export const LSPPassthroughOrderGetRVS = {
|
|
227
|
+
headers: APIHeadersSchema,
|
|
228
|
+
params: Type.Object({ hubId: Type.String(), reference: Type.String() }),
|
|
229
|
+
response: {
|
|
230
|
+
200: APIResponseDataSchemaFactory({ order: PassthroughOrderSchema }),
|
|
231
|
+
'4XX': APIErrorSchema
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export const LSPPassthroughOrderUpdateStageRVS = {
|
|
236
|
+
headers: APIHeadersSchema,
|
|
237
|
+
params: Type.Object({ hubId: Type.String(), reference: Type.String() }),
|
|
238
|
+
body: PassthroughOrderUpdateStageBodySchema,
|
|
239
|
+
response: {
|
|
240
|
+
200: APIResponseDataSchemaFactory({ order: PassthroughOrderSchema, message: Type.String() }),
|
|
241
|
+
'4XX': APIErrorSchema
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export const LSPPassthroughOrderUpdateStatusRVS = {
|
|
246
|
+
headers: APIHeadersSchema,
|
|
247
|
+
params: Type.Object({ hubId: Type.String(), reference: Type.String() }),
|
|
248
|
+
body: PassthroughOrderUpdateStatusBodySchema,
|
|
249
|
+
response: {
|
|
250
|
+
200: APIResponseDataSchemaFactory({ order: PassthroughOrderSchema, message: Type.String() }),
|
|
251
|
+
'4XX': APIErrorSchema
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
export const LSPPassthroughOrderCancelRVS = {
|
|
256
|
+
headers: APIHeadersSchema,
|
|
257
|
+
params: Type.Object({ hubId: Type.String(), reference: Type.String() }),
|
|
258
|
+
body: Type.Object({ reason: Type.String({ maxLength: 500 }), notes: Type.Optional(Type.String()) }),
|
|
259
|
+
response: {
|
|
260
|
+
200: APIResponseBaseSchema,
|
|
261
|
+
'4XX': APIErrorSchema
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export const LSPPassthroughOrderLogsRVS = {
|
|
266
|
+
headers: APIHeadersSchema,
|
|
267
|
+
params: Type.Object({ hubId: Type.String(), reference: Type.String() }),
|
|
268
|
+
querystring: PassthroughOrderLogsQuerySchema,
|
|
269
|
+
response: {
|
|
270
|
+
200: APIResponseDataSchemaFactory({ logs: Type.Array(Type.Any()), total: Type.Number() }),
|
|
271
|
+
'4XX': APIErrorSchema
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export const LSPPassthroughOrderAssignRVS = {
|
|
276
|
+
headers: APIHeadersSchema,
|
|
277
|
+
params: Type.Object({ hubId: Type.String(), reference: Type.String() }),
|
|
278
|
+
body: Type.Object({
|
|
279
|
+
type: Type.Union([Type.Literal('agent'), Type.Literal('operator')]),
|
|
280
|
+
id: Type.String()
|
|
281
|
+
}),
|
|
282
|
+
response: {
|
|
283
|
+
200: APIResponseDataSchemaFactory({ order: PassthroughOrderSchema }),
|
|
284
|
+
'4XX': APIErrorSchema
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type LSPPassthroughOrderCreateValidation = { params: Static<typeof LSPPassthroughOrderCreateRVS.params>, body: Static<typeof LSPPassthroughOrderCreateRVS.body>, response: Static<(typeof LSPPassthroughOrderCreateRVS.response)[201]> }
|
|
289
|
+
export type LSPPassthroughOrderListValidation = { params: Static<typeof LSPPassthroughOrderListRVS.params>, querystring: Static<typeof LSPPassthroughOrderListRVS.querystring>, response: Static<(typeof LSPPassthroughOrderListRVS.response)[200]> }
|
|
290
|
+
export type LSPPassthroughOrderGetValidation = { params: Static<typeof LSPPassthroughOrderGetRVS.params>, response: Static<(typeof LSPPassthroughOrderGetRVS.response)[200]> }
|
|
291
|
+
export type LSPPassthroughOrderUpdateStageValidation = { params: Static<typeof LSPPassthroughOrderUpdateStageRVS.params>, body: Static<typeof LSPPassthroughOrderUpdateStageRVS.body>, response: Static<(typeof LSPPassthroughOrderUpdateStageRVS.response)[200]> }
|
|
292
|
+
export type LSPPassthroughOrderUpdateStatusValidation = { params: Static<typeof LSPPassthroughOrderUpdateStatusRVS.params>, body: Static<typeof LSPPassthroughOrderUpdateStatusRVS.body>, response: Static<(typeof LSPPassthroughOrderUpdateStatusRVS.response)[200]> }
|
|
293
|
+
export type LSPPassthroughOrderCancelValidation = { params: Static<typeof LSPPassthroughOrderCancelRVS.params>, body: Static<typeof LSPPassthroughOrderCancelRVS.body>, response: Static<(typeof LSPPassthroughOrderCancelRVS.response)[200]> }
|
|
294
|
+
export type LSPPassthroughOrderLogsValidation = { params: Static<typeof LSPPassthroughOrderLogsRVS.params>, querystring: Static<typeof LSPPassthroughOrderLogsRVS.querystring>, response: Static<(typeof LSPPassthroughOrderLogsRVS.response)[200]> }
|
|
295
|
+
export type LSPPassthroughOrderAssignValidation = { params: Static<typeof LSPPassthroughOrderAssignRVS.params>, body: Static<typeof LSPPassthroughOrderAssignRVS.body>, response: Static<(typeof LSPPassthroughOrderAssignRVS.response)[200]> }
|
|
296
|
+
|
|
297
|
+
// ─── Outbound Consolidation RVS ───────────────────────────────────────────────
|
|
298
|
+
|
|
299
|
+
export const LSPOutboundConsolidationCreateRVS = {
|
|
300
|
+
headers: APIHeadersSchema,
|
|
301
|
+
params: Type.Object({ id: Type.String() }),
|
|
302
|
+
body: Type.Object({
|
|
303
|
+
orderReferences: Type.Array(Type.String(), { minItems: 1 }),
|
|
304
|
+
destination: Type.String(),
|
|
305
|
+
carrier: Type.Optional(Type.String()),
|
|
306
|
+
targetDepartureTime: Type.Optional(Type.Number()),
|
|
307
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
308
|
+
}),
|
|
309
|
+
response: {
|
|
310
|
+
201: APIResponseDataSchemaFactory({ consolidation: HubConsolidationSchema }),
|
|
311
|
+
'4XX': APIErrorSchema
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export const LSPOutboundConsolidationAddOrdersRVS = {
|
|
316
|
+
headers: APIHeadersSchema,
|
|
317
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
318
|
+
body: Type.Object({
|
|
319
|
+
orderReferences: Type.Array(Type.String(), { minItems: 1 }),
|
|
320
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
321
|
+
}),
|
|
322
|
+
response: {
|
|
323
|
+
200: APIResponseDataSchemaFactory({
|
|
324
|
+
added: Type.Array(Type.String()),
|
|
325
|
+
failed: Type.Array(Type.Object({ reference: Type.String(), reason: Type.String() }))
|
|
326
|
+
}),
|
|
327
|
+
'4XX': APIErrorSchema
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export const LSPOutboundConsolidationRemoveOrdersRVS = {
|
|
332
|
+
headers: APIHeadersSchema,
|
|
333
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
334
|
+
body: Type.Object({
|
|
335
|
+
orderReferences: Type.Array(Type.String(), { minItems: 1 }),
|
|
336
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
337
|
+
}),
|
|
338
|
+
response: {
|
|
339
|
+
200: APIResponseDataSchemaFactory({
|
|
340
|
+
removed: Type.Array(Type.String()),
|
|
341
|
+
notFound: Type.Array(Type.String())
|
|
342
|
+
}),
|
|
343
|
+
'4XX': APIErrorSchema
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export const LSPOutboundConsolidationUpdateRVS = {
|
|
348
|
+
headers: APIHeadersSchema,
|
|
349
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
350
|
+
body: Type.Object({
|
|
351
|
+
destination: Type.Optional(Type.String()),
|
|
352
|
+
carrier: Type.Optional(Type.String()),
|
|
353
|
+
targetDepartureTime: Type.Optional(Type.Number()),
|
|
354
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
355
|
+
}),
|
|
356
|
+
response: {
|
|
357
|
+
200: APIResponseDataSchemaFactory({ consolidation: HubConsolidationSchema }),
|
|
358
|
+
'4XX': APIErrorSchema
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export const LSPOutboundConsolidationDeconsolidateRVS = {
|
|
363
|
+
headers: APIHeadersSchema,
|
|
364
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
365
|
+
body: Type.Object({
|
|
366
|
+
reason: Type.String(),
|
|
367
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
368
|
+
}),
|
|
369
|
+
response: {
|
|
370
|
+
200: APIResponseDataSchemaFactory({ deconsolidated: Type.Number() }),
|
|
371
|
+
'4XX': APIErrorSchema
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export const LSPOutboundConsolidationCancelRVS = {
|
|
376
|
+
headers: APIHeadersSchema,
|
|
377
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
378
|
+
body: Type.Object({
|
|
379
|
+
reason: Type.String(),
|
|
380
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
381
|
+
}),
|
|
382
|
+
response: {
|
|
383
|
+
200: APIResponseDataSchemaFactory({ reverted: Type.Number() }),
|
|
384
|
+
'4XX': APIErrorSchema
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export const LSPOutboundConsolidationFetchRVS = {
|
|
389
|
+
headers: APIHeadersSchema,
|
|
390
|
+
params: Type.Object({ id: Type.String() }),
|
|
391
|
+
querystring: Type.Object({
|
|
392
|
+
status: Type.Optional(HubConsolidationStatusSchema),
|
|
393
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 500 })),
|
|
394
|
+
offset: Type.Optional(Type.Number({ minimum: 0 }))
|
|
395
|
+
}),
|
|
396
|
+
response: {
|
|
397
|
+
200: APIResponseDataSchemaFactory({ consolidations: Type.Array(HubConsolidationSchema), total: Type.Number() }),
|
|
398
|
+
'4XX': APIErrorSchema
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export const LSPOutboundConsolidationGetRVS = {
|
|
403
|
+
headers: APIHeadersSchema,
|
|
404
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
405
|
+
response: {
|
|
406
|
+
200: APIResponseDataSchemaFactory({ consolidation: HubConsolidationSchema }),
|
|
407
|
+
'4XX': APIErrorSchema
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export const LSPOutboundConsolidationDispatchRVS = {
|
|
412
|
+
headers: APIHeadersSchema,
|
|
413
|
+
params: Type.Object({ id: Type.String(), consolidationId: Type.String() }),
|
|
414
|
+
body: Type.Object({
|
|
415
|
+
vehicleId: Type.Optional(Type.String()),
|
|
416
|
+
driverId: Type.Optional(Type.String()),
|
|
417
|
+
departureTime: Type.Optional(Type.Number()),
|
|
418
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
419
|
+
}),
|
|
420
|
+
response: {
|
|
421
|
+
200: APIResponseDataSchemaFactory({ dispatched: Type.Number(), consolidationId: Type.String() }),
|
|
422
|
+
'4XX': APIErrorSchema
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export type LSPOutboundConsolidationCreateValidation = { params: Static<typeof LSPOutboundConsolidationCreateRVS.params>, body: Static<typeof LSPOutboundConsolidationCreateRVS.body>, response: Static<(typeof LSPOutboundConsolidationCreateRVS.response)[201]> }
|
|
427
|
+
export type LSPOutboundConsolidationAddOrdersValidation = { params: Static<typeof LSPOutboundConsolidationAddOrdersRVS.params>, body: Static<typeof LSPOutboundConsolidationAddOrdersRVS.body>, response: Static<(typeof LSPOutboundConsolidationAddOrdersRVS.response)[200]> }
|
|
428
|
+
export type LSPOutboundConsolidationRemoveOrdersValidation = { params: Static<typeof LSPOutboundConsolidationRemoveOrdersRVS.params>, body: Static<typeof LSPOutboundConsolidationRemoveOrdersRVS.body>, response: Static<(typeof LSPOutboundConsolidationRemoveOrdersRVS.response)[200]> }
|
|
429
|
+
export type LSPOutboundConsolidationUpdateValidation = { params: Static<typeof LSPOutboundConsolidationUpdateRVS.params>, body: Static<typeof LSPOutboundConsolidationUpdateRVS.body>, response: Static<(typeof LSPOutboundConsolidationUpdateRVS.response)[200]> }
|
|
430
|
+
export type LSPOutboundConsolidationDeconsolidateValidation = { params: Static<typeof LSPOutboundConsolidationDeconsolidateRVS.params>, body: Static<typeof LSPOutboundConsolidationDeconsolidateRVS.body>, response: Static<(typeof LSPOutboundConsolidationDeconsolidateRVS.response)[200]> }
|
|
431
|
+
export type LSPOutboundConsolidationCancelValidation = { params: Static<typeof LSPOutboundConsolidationCancelRVS.params>, body: Static<typeof LSPOutboundConsolidationCancelRVS.body>, response: Static<(typeof LSPOutboundConsolidationCancelRVS.response)[200]> }
|
|
432
|
+
export type LSPOutboundConsolidationFetchValidation = { params: Static<typeof LSPOutboundConsolidationFetchRVS.params>, querystring: Static<typeof LSPOutboundConsolidationFetchRVS.querystring>, response: Static<(typeof LSPOutboundConsolidationFetchRVS.response)[200]> }
|
|
433
|
+
export type LSPOutboundConsolidationGetValidation = { params: Static<typeof LSPOutboundConsolidationGetRVS.params>, response: Static<(typeof LSPOutboundConsolidationGetRVS.response)[200]> }
|
|
434
|
+
export type LSPOutboundConsolidationDispatchValidation = { params: Static<typeof LSPOutboundConsolidationDispatchRVS.params>, body: Static<typeof LSPOutboundConsolidationDispatchRVS.body>, response: Static<(typeof LSPOutboundConsolidationDispatchRVS.response)[200]> }
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { VehicleSchema } from '../fleet/vehicle'
|
|
3
|
+
import { ActionRecordSchema, DateTimeZoneSchema, DurationSchema } from '../../time'
|
|
4
|
+
import { DistanceSchema, WeightSchema } from '../../measure'
|
|
5
|
+
import { RTLocationSchema, AddressSchema } from '../../geo'
|
|
6
|
+
import {
|
|
7
|
+
BaseOrderSchema,
|
|
8
|
+
BaseOrderStatusSchema,
|
|
9
|
+
BaseOrderFlowPrioritySchema,
|
|
10
|
+
OrderAssigneeSchema,
|
|
11
|
+
RideOrderTypeSchema
|
|
12
|
+
} from '../../order'
|
|
13
|
+
import { RideProcessSchema } from './flow/processes'
|
|
14
|
+
import { RideStageSchema } from './flow/stages'
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Ride Order Type-Specific Definitions
|
|
18
|
+
* Following the same pattern as ShippingOrder
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// Ride-Specific Status (extends base statuses)
|
|
22
|
+
export const RideOrderStatusSchema = Type.Union([
|
|
23
|
+
...BaseOrderStatusSchema.anyOf,
|
|
24
|
+
Type.Literal('DRIVER_ASSIGNED'),
|
|
25
|
+
Type.Literal('DRIVER_EN_ROUTE'),
|
|
26
|
+
Type.Literal('DRIVER_ARRIVED'),
|
|
27
|
+
Type.Literal('PASSENGER_ONBOARD'),
|
|
28
|
+
Type.Literal('IN_TRANSIT'),
|
|
29
|
+
Type.Literal('AT_DESTINATION'),
|
|
30
|
+
Type.Literal('COMPLETED'),
|
|
31
|
+
Type.Literal('PASSENGER_NO_SHOW'),
|
|
32
|
+
Type.Literal('DRIVER_CANCELLED'),
|
|
33
|
+
Type.Literal('PASSENGER_CANCELLED'),
|
|
34
|
+
Type.Literal('RIDE_ABANDONED'),
|
|
35
|
+
Type.Literal('INCIDENT_REPORTED')
|
|
36
|
+
])
|
|
37
|
+
|
|
38
|
+
// Long-Mile Ride Flow
|
|
39
|
+
export const RideOrderFlowSchema = Type.Object({
|
|
40
|
+
process: RideProcessSchema,
|
|
41
|
+
stage: RideStageSchema,
|
|
42
|
+
status: RideOrderStatusSchema,
|
|
43
|
+
priority: BaseOrderFlowPrioritySchema
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
// Passenger Schema
|
|
47
|
+
export const PassengerSchema = Type.Object({
|
|
48
|
+
id: Type.String(),
|
|
49
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
50
|
+
phone: Type.String(),
|
|
51
|
+
rating: Type.Optional(Type.Number({ minimum: 1, maximum: 5 })),
|
|
52
|
+
verified: Type.Boolean({ default: false }),
|
|
53
|
+
specialNeeds: Type.Optional(Type.Array(Type.Union([
|
|
54
|
+
Type.Literal('WHEELCHAIR'),
|
|
55
|
+
Type.Literal('CHILD_SEAT'),
|
|
56
|
+
Type.Literal('PET_FRIENDLY'),
|
|
57
|
+
Type.Literal('ELDERLY_ASSISTANCE'),
|
|
58
|
+
Type.Literal('MEDICAL_ASSISTANCE')
|
|
59
|
+
])))
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
// Luggage Schema
|
|
63
|
+
export const LuggageSchema = Type.Object({
|
|
64
|
+
count: Type.Number({ minimum: 0, maximum: 10 }),
|
|
65
|
+
type: Type.Array(Type.Union([
|
|
66
|
+
Type.Literal('SMALL_BAG'),
|
|
67
|
+
Type.Literal('MEDIUM_BAG'),
|
|
68
|
+
Type.Literal('LARGE_BAG'),
|
|
69
|
+
Type.Literal('SUITCASE'),
|
|
70
|
+
Type.Literal('BACKPACK'),
|
|
71
|
+
Type.Literal('SPORTS_EQUIPMENT'),
|
|
72
|
+
Type.Literal('OVERSIZED')
|
|
73
|
+
])),
|
|
74
|
+
totalWeight: Type.Optional(WeightSchema) // kg
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
// Main Ride Order Schema (extends RideBaseOrder with flow)
|
|
78
|
+
export const RideOrderSchema = Type.Intersect([
|
|
79
|
+
BaseOrderSchema,
|
|
80
|
+
Type.Object({
|
|
81
|
+
type: RideOrderTypeSchema,
|
|
82
|
+
// Ride-specific flow
|
|
83
|
+
flow: RideOrderFlowSchema,
|
|
84
|
+
|
|
85
|
+
// Ride-specific fields
|
|
86
|
+
pickup: AddressSchema,
|
|
87
|
+
dropoff: AddressSchema,
|
|
88
|
+
passengers: Type.Array(PassengerSchema, { minItems: 1 }),
|
|
89
|
+
luggage: Type.Optional(LuggageSchema),
|
|
90
|
+
|
|
91
|
+
// Vehicle and driver assignment
|
|
92
|
+
vehicle: Type.Optional(VehicleSchema),
|
|
93
|
+
estimatedDuration: Type.Optional(DurationSchema),
|
|
94
|
+
estimatedDistance: Type.Optional(DistanceSchema),
|
|
95
|
+
|
|
96
|
+
// Fare information
|
|
97
|
+
fare: Type.Object({
|
|
98
|
+
baseFare: Type.Number({ minimum: 0 }),
|
|
99
|
+
distanceFare: Type.Optional(Type.Number({ minimum: 0 })),
|
|
100
|
+
timeFare: Type.Optional(Type.Number({ minimum: 0 })),
|
|
101
|
+
surcharges: Type.Optional(Type.Array(Type.Object({
|
|
102
|
+
type: Type.Union([
|
|
103
|
+
Type.Literal('NIGHT_CHARGE'),
|
|
104
|
+
Type.Literal('PEAK_HOUR'),
|
|
105
|
+
Type.Literal('TOLL'),
|
|
106
|
+
Type.Literal('AIRPORT_FEE'),
|
|
107
|
+
Type.Literal('WAITING_TIME'),
|
|
108
|
+
Type.Literal('CANCELLATION_FEE')
|
|
109
|
+
]),
|
|
110
|
+
amount: Type.Number({ minimum: 0 }),
|
|
111
|
+
description: Type.Optional(Type.String({ maxLength: 200 }))
|
|
112
|
+
}))),
|
|
113
|
+
discount: Type.Optional(Type.Number({ minimum: 0 })),
|
|
114
|
+
totalFare: Type.Number({ minimum: 0 }),
|
|
115
|
+
currency: Type.String({ default: 'USD' })
|
|
116
|
+
}),
|
|
117
|
+
|
|
118
|
+
// Payment information
|
|
119
|
+
payment: Type.Optional(Type.Object({
|
|
120
|
+
method: Type.Union([
|
|
121
|
+
Type.Literal('CASH'),
|
|
122
|
+
Type.Literal('CARD'),
|
|
123
|
+
Type.Literal('WALLET'),
|
|
124
|
+
Type.Literal('CORPORATE'),
|
|
125
|
+
Type.Literal('OTHER')
|
|
126
|
+
]),
|
|
127
|
+
status: Type.Union([
|
|
128
|
+
Type.Literal('PENDING'),
|
|
129
|
+
Type.Literal('AUTHORIZED'),
|
|
130
|
+
Type.Literal('CAPTURED'),
|
|
131
|
+
Type.Literal('FAILED'),
|
|
132
|
+
Type.Literal('REFUNDED')
|
|
133
|
+
]),
|
|
134
|
+
transactionId: Type.Optional(Type.String()),
|
|
135
|
+
paid: Type.Optional(ActionRecordSchema)
|
|
136
|
+
})),
|
|
137
|
+
|
|
138
|
+
// Trip metrics (filled during/after ride)
|
|
139
|
+
metrics: Type.Optional(Type.Object({
|
|
140
|
+
actualDistance: Type.Optional(DistanceSchema),
|
|
141
|
+
actualDuration: Type.Optional(DurationSchema),
|
|
142
|
+
waitingTime: Type.Optional(DurationSchema),
|
|
143
|
+
routeDeviation: Type.Optional(Type.Number({ minimum: 0, description: 'km' })),
|
|
144
|
+
startOdometer: Type.Optional(Type.Number({ minimum: 0 })),
|
|
145
|
+
endOdometer: Type.Optional(Type.Number({ minimum: 0 }))
|
|
146
|
+
})),
|
|
147
|
+
|
|
148
|
+
// Special instructions
|
|
149
|
+
instructions: Type.Optional(Type.String({ maxLength: 500 })),
|
|
150
|
+
|
|
151
|
+
// Ride preferences
|
|
152
|
+
preferences: Type.Optional(Type.Object({
|
|
153
|
+
ac: Type.Optional(Type.Boolean()),
|
|
154
|
+
music: Type.Optional(Type.Boolean()),
|
|
155
|
+
conversation: Type.Optional(Type.Boolean()),
|
|
156
|
+
temperature: Type.Optional(Type.Number({ minimum: 16, maximum: 30 }))
|
|
157
|
+
}))
|
|
158
|
+
})
|
|
159
|
+
])
|
|
160
|
+
|
|
161
|
+
// Ride Log Schema
|
|
162
|
+
export const RideLogSchema = Type.Intersect([
|
|
163
|
+
ActionRecordSchema,
|
|
164
|
+
Type.Object({
|
|
165
|
+
flow: RideOrderFlowSchema,
|
|
166
|
+
assignee: Type.Optional(OrderAssigneeSchema),
|
|
167
|
+
location: Type.Optional(RTLocationSchema),
|
|
168
|
+
odometer: Type.Optional(Type.Number({ minimum: 0 })),
|
|
169
|
+
reason: Type.Optional(Type.String({ maxLength: 500 })),
|
|
170
|
+
attachments: Type.Optional(Type.Array(Type.Object({
|
|
171
|
+
type: Type.Union([
|
|
172
|
+
Type.Literal('PHOTO'),
|
|
173
|
+
Type.Literal('SIGNATURE'),
|
|
174
|
+
Type.Literal('VIDEO'),
|
|
175
|
+
Type.Literal('VOICE_NOTE'),
|
|
176
|
+
Type.Literal('INCIDENT_REPORT')
|
|
177
|
+
]),
|
|
178
|
+
url: Type.String({ format: 'uri' }),
|
|
179
|
+
description: Type.Optional(Type.String({ maxLength: 200 }))
|
|
180
|
+
})))
|
|
181
|
+
})
|
|
182
|
+
])
|
|
183
|
+
|
|
184
|
+
// TypeScript type exports
|
|
185
|
+
export type RideOrderStatus = Static<typeof RideOrderStatusSchema>
|
|
186
|
+
export type RideOrderFlow = Static<typeof RideOrderFlowSchema>
|
|
187
|
+
export type Passenger = Static<typeof PassengerSchema>
|
|
188
|
+
export type Luggage = Static<typeof LuggageSchema>
|
|
189
|
+
export type RideOrder = Static<typeof RideOrderSchema>
|
|
190
|
+
export type RideLog = Static<typeof RideLogSchema>
|