@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,730 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { APIResponseBaseSchema, APIResponseDataSchemaFactory, APIHeadersSchema } from '../api'
|
|
3
|
+
import { DurationSchema, DurationRangeSchema, DateTimeZoneSchema } from '../time'
|
|
4
|
+
import { MoneySchema, DistanceSchema, WeightSchema, VolumeSchema, DimensionsSchema, ServiceLevelSchema, AccuracySchema, SourceSchema } from '../measure'
|
|
5
|
+
import { CoordinatesSchema, LocationInputSchema } from '../geo'
|
|
6
|
+
import { CoverageTransitModeSchema } from '../lsp/coverage'
|
|
7
|
+
|
|
8
|
+
// ==========================================
|
|
9
|
+
// Geographic Types
|
|
10
|
+
// ==========================================
|
|
11
|
+
|
|
12
|
+
export const PrecisionTierSchema = Type.Union([
|
|
13
|
+
Type.Literal('ESTIMATE'),
|
|
14
|
+
Type.Literal('STANDARD'),
|
|
15
|
+
Type.Literal('PRECISE')
|
|
16
|
+
])
|
|
17
|
+
|
|
18
|
+
export const DistanceCalculationRequestSchema = Type.Object({
|
|
19
|
+
origin: LocationInputSchema,
|
|
20
|
+
destination: LocationInputSchema,
|
|
21
|
+
mode: Type.Optional(CoverageTransitModeSchema),
|
|
22
|
+
precision: Type.Optional(PrecisionTierSchema)
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export const DistanceCalculationResultSchema = Type.Object({
|
|
26
|
+
distance: DistanceSchema,
|
|
27
|
+
mode: CoverageTransitModeSchema,
|
|
28
|
+
route: Type.Optional(Type.Object({
|
|
29
|
+
waypoints: Type.Optional(Type.Array(CoordinatesSchema)), // [lat, lng][]
|
|
30
|
+
duration: Type.Optional(DurationSchema) // Minutes
|
|
31
|
+
})),
|
|
32
|
+
metadata: Type.Object({
|
|
33
|
+
accuracy: AccuracySchema,
|
|
34
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
35
|
+
dataSource: SourceSchema,
|
|
36
|
+
calculatedAt: Type.Number(),
|
|
37
|
+
disclaimer: Type.Optional(Type.String())
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
export const ServiceTypeSchema = Type.Union([
|
|
42
|
+
Type.Literal('DELIVERY'),
|
|
43
|
+
Type.Literal('PRICING'),
|
|
44
|
+
Type.Literal('COVERAGE')
|
|
45
|
+
])
|
|
46
|
+
export const ZoneAssignmentRequestSchema = Type.Object({
|
|
47
|
+
location: LocationInputSchema,
|
|
48
|
+
serviceType: Type.Optional(ServiceTypeSchema),
|
|
49
|
+
vehicleType: Type.Optional(Type.String()), // VehicleType from fleet
|
|
50
|
+
includeRestrictions: Type.Optional(Type.Boolean())
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
export const ZoneAssignmentResultSchema = Type.Object({
|
|
54
|
+
zone: Type.Object({
|
|
55
|
+
id: Type.String(),
|
|
56
|
+
name: Type.String(),
|
|
57
|
+
type: Type.Union([
|
|
58
|
+
Type.Literal('URBAN'),
|
|
59
|
+
Type.Literal('SUBURBAN'),
|
|
60
|
+
Type.Literal('RURAL'),
|
|
61
|
+
Type.Literal('REMOTE'),
|
|
62
|
+
Type.Literal('METROPOLITAN')
|
|
63
|
+
])
|
|
64
|
+
}),
|
|
65
|
+
country: Type.String(),
|
|
66
|
+
region: Type.Optional(Type.String()),
|
|
67
|
+
pricingTier: Type.Optional(Type.Number({ minimum: 1 })),
|
|
68
|
+
serviceability: Type.Object({
|
|
69
|
+
delivery: Type.Boolean(),
|
|
70
|
+
sameDay: Type.Boolean(),
|
|
71
|
+
nextDay: Type.Boolean()
|
|
72
|
+
}),
|
|
73
|
+
restrictions: Type.Optional(Type.Object({
|
|
74
|
+
hasRestrictions: Type.Boolean(),
|
|
75
|
+
speedLimits: Type.Array(Type.Any()),
|
|
76
|
+
noGoZones: Type.Array(Type.Any()),
|
|
77
|
+
parkingRules: Type.Array(Type.Any()),
|
|
78
|
+
vehicleAllowed: Type.Boolean()
|
|
79
|
+
})),
|
|
80
|
+
metadata: Type.Object({
|
|
81
|
+
accuracy: AccuracySchema,
|
|
82
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
83
|
+
calculatedAt: Type.Number(),
|
|
84
|
+
dataSource: Type.Optional(Type.Union([
|
|
85
|
+
Type.Literal('LSP_COVERAGE'),
|
|
86
|
+
Type.Literal('ESTIMATE')
|
|
87
|
+
])),
|
|
88
|
+
carriers: Type.Optional(Type.Array(Type.String()))
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
// ==========================================
|
|
93
|
+
// Pricing Types
|
|
94
|
+
// ==========================================
|
|
95
|
+
|
|
96
|
+
export const DeliveryFeesRequestSchema = Type.Object({
|
|
97
|
+
origin: LocationInputSchema,
|
|
98
|
+
destination: LocationInputSchema,
|
|
99
|
+
serviceLevel: ServiceLevelSchema,
|
|
100
|
+
weight: WeightSchema,
|
|
101
|
+
volume: Type.Optional(VolumeSchema),
|
|
102
|
+
dimensions: Type.Optional(DimensionsSchema),
|
|
103
|
+
declaredValue: Type.Optional(MoneySchema),
|
|
104
|
+
options: Type.Optional(Type.Object({
|
|
105
|
+
insurance: Type.Optional(Type.Boolean()),
|
|
106
|
+
signature: Type.Optional(Type.Boolean()),
|
|
107
|
+
tracking: Type.Optional(Type.Boolean()),
|
|
108
|
+
fragile: Type.Optional(Type.Boolean()),
|
|
109
|
+
hazmat: Type.Optional(Type.Boolean())
|
|
110
|
+
}))
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
export const DeliveryFeesResultSchema = Type.Object({
|
|
114
|
+
totalCost: MoneySchema,
|
|
115
|
+
breakdown: Type.Object({
|
|
116
|
+
baseFee: MoneySchema,
|
|
117
|
+
distanceFee: MoneySchema,
|
|
118
|
+
weightFee: MoneySchema,
|
|
119
|
+
serviceLevelFee: MoneySchema,
|
|
120
|
+
zoneFee: Type.Optional(MoneySchema),
|
|
121
|
+
fuelSurcharge: Type.Optional(MoneySchema),
|
|
122
|
+
insuranceFee: Type.Optional(MoneySchema),
|
|
123
|
+
additionalFees: Type.Optional(Type.Array(Type.Object({
|
|
124
|
+
name: Type.String(),
|
|
125
|
+
amount: MoneySchema
|
|
126
|
+
})))
|
|
127
|
+
}),
|
|
128
|
+
currency: Type.String(),
|
|
129
|
+
validUntil: Type.Number(),
|
|
130
|
+
metadata: Type.Object({
|
|
131
|
+
accuracy: AccuracySchema,
|
|
132
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
133
|
+
dataSource: SourceSchema,
|
|
134
|
+
calculatedAt: Type.Number(),
|
|
135
|
+
disclaimer: Type.String()
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
export const TransportFareRequestSchema = Type.Object({
|
|
140
|
+
origin: LocationInputSchema,
|
|
141
|
+
destination: LocationInputSchema,
|
|
142
|
+
transportMode: CoverageTransitModeSchema,
|
|
143
|
+
cargo: Type.Object({
|
|
144
|
+
weight: WeightSchema,
|
|
145
|
+
volume: Type.Optional(VolumeSchema),
|
|
146
|
+
dimensions: Type.Optional(DimensionsSchema),
|
|
147
|
+
type: Type.Optional(Type.Union([
|
|
148
|
+
Type.Literal('GENERAL'),
|
|
149
|
+
Type.Literal('REFRIGERATED'),
|
|
150
|
+
Type.Literal('HAZMAT'),
|
|
151
|
+
Type.Literal('OVERSIZED'),
|
|
152
|
+
Type.Literal('FRAGILE')
|
|
153
|
+
]))
|
|
154
|
+
}),
|
|
155
|
+
vehicleType: Type.Optional(Type.String()),
|
|
156
|
+
urgency: Type.Optional(Type.Union([
|
|
157
|
+
Type.Literal('STANDARD'),
|
|
158
|
+
Type.Literal('EXPRESS'),
|
|
159
|
+
Type.Literal('CRITICAL')
|
|
160
|
+
]))
|
|
161
|
+
})
|
|
162
|
+
|
|
163
|
+
export const TransportFareResultSchema = Type.Object({
|
|
164
|
+
totalCost: MoneySchema,
|
|
165
|
+
breakdown: Type.Object({
|
|
166
|
+
baseRate: MoneySchema,
|
|
167
|
+
distanceRate: MoneySchema,
|
|
168
|
+
weightRate: MoneySchema,
|
|
169
|
+
fuelSurcharge: MoneySchema,
|
|
170
|
+
tollFees: Type.Optional(MoneySchema),
|
|
171
|
+
handlingFees: Type.Optional(MoneySchema),
|
|
172
|
+
urgencyFee: Type.Optional(MoneySchema),
|
|
173
|
+
additionalCharges: Type.Optional(Type.Array(Type.Object({
|
|
174
|
+
name: Type.String(),
|
|
175
|
+
amount: MoneySchema
|
|
176
|
+
})))
|
|
177
|
+
}),
|
|
178
|
+
currency: Type.String(),
|
|
179
|
+
estimatedDuration: DurationRangeSchema,
|
|
180
|
+
validUntil: Type.Number(),
|
|
181
|
+
metadata: Type.Object({
|
|
182
|
+
accuracy: AccuracySchema,
|
|
183
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
184
|
+
dataSource: SourceSchema,
|
|
185
|
+
calculatedAt: Type.Number(),
|
|
186
|
+
disclaimer: Type.String()
|
|
187
|
+
})
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
export const CrossBorderFareRequestSchema = Type.Object({
|
|
191
|
+
origin: LocationInputSchema,
|
|
192
|
+
destination: LocationInputSchema,
|
|
193
|
+
shipment: Type.Object({
|
|
194
|
+
weight: WeightSchema,
|
|
195
|
+
declaredValue: MoneySchema,
|
|
196
|
+
hsCode: Type.Optional(Type.String()),
|
|
197
|
+
description: Type.String(),
|
|
198
|
+
quantity: Type.Number({ minimum: 1 })
|
|
199
|
+
}),
|
|
200
|
+
transportMode: CoverageTransitModeSchema,
|
|
201
|
+
incoterms: Type.Optional(Type.Union([
|
|
202
|
+
Type.Literal('EXW'),
|
|
203
|
+
Type.Literal('FCA'),
|
|
204
|
+
Type.Literal('CPT'),
|
|
205
|
+
Type.Literal('CIP'),
|
|
206
|
+
Type.Literal('DAP'),
|
|
207
|
+
Type.Literal('DPU'),
|
|
208
|
+
Type.Literal('DDP'),
|
|
209
|
+
Type.Literal('FAS'),
|
|
210
|
+
Type.Literal('FOB'),
|
|
211
|
+
Type.Literal('CFR'),
|
|
212
|
+
Type.Literal('CIF')
|
|
213
|
+
]))
|
|
214
|
+
})
|
|
215
|
+
|
|
216
|
+
export const CrossBorderFareResultSchema = Type.Object({
|
|
217
|
+
totalCost: MoneySchema,
|
|
218
|
+
breakdown: Type.Object({
|
|
219
|
+
transportFee: MoneySchema,
|
|
220
|
+
customsDuty: Type.Optional(MoneySchema),
|
|
221
|
+
vat: Type.Optional(MoneySchema),
|
|
222
|
+
importTax: Type.Optional(MoneySchema),
|
|
223
|
+
brokerageFee: Type.Optional(MoneySchema),
|
|
224
|
+
documentationFee: Type.Optional(MoneySchema),
|
|
225
|
+
inspectionFee: Type.Optional(MoneySchema),
|
|
226
|
+
borderCrossingFee: Type.Optional(MoneySchema),
|
|
227
|
+
additionalFees: Type.Optional(Type.Array(Type.Object({
|
|
228
|
+
name: Type.String(),
|
|
229
|
+
amount: MoneySchema
|
|
230
|
+
})))
|
|
231
|
+
}),
|
|
232
|
+
currency: Type.String(),
|
|
233
|
+
duties: Type.Optional(Type.Object({
|
|
234
|
+
rate: Type.Number({ description: 'percentage' }),
|
|
235
|
+
amount: MoneySchema,
|
|
236
|
+
hsCode: Type.Optional(Type.String())
|
|
237
|
+
})),
|
|
238
|
+
requiredDocuments: Type.Array(Type.String()),
|
|
239
|
+
estimatedClearanceTime: DurationRangeSchema, // Days
|
|
240
|
+
validUntil: Type.Number(),
|
|
241
|
+
metadata: Type.Object({
|
|
242
|
+
accuracy: AccuracySchema,
|
|
243
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
244
|
+
dataSource: SourceSchema,
|
|
245
|
+
calculatedAt: Type.Number(),
|
|
246
|
+
disclaimer: Type.String()
|
|
247
|
+
})
|
|
248
|
+
})
|
|
249
|
+
|
|
250
|
+
// ==========================================
|
|
251
|
+
// Ride-Hailing Fare Types
|
|
252
|
+
// ==========================================
|
|
253
|
+
|
|
254
|
+
export const RideFareRequestSchema = Type.Object({
|
|
255
|
+
pickup: LocationInputSchema,
|
|
256
|
+
dropoff: LocationInputSchema,
|
|
257
|
+
vehicleClass: Type.Optional(Type.Union([
|
|
258
|
+
Type.Literal('ECONOMY'),
|
|
259
|
+
Type.Literal('STANDARD'),
|
|
260
|
+
Type.Literal('COMFORT'),
|
|
261
|
+
Type.Literal('PREMIUM'),
|
|
262
|
+
Type.Literal('LUXURY'),
|
|
263
|
+
Type.Literal('XL'),
|
|
264
|
+
Type.Literal('SUV')
|
|
265
|
+
])),
|
|
266
|
+
passengerCount: Type.Optional(Type.Number({ minimum: 1, maximum: 8 })),
|
|
267
|
+
requestTime: Type.Optional(Type.Number()),
|
|
268
|
+
includeNearbyDrivers: Type.Optional(Type.Boolean())
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
export const RideFareResultSchema = Type.Object({
|
|
272
|
+
estimatedFare: Type.Object({
|
|
273
|
+
baseFare: Type.Number(),
|
|
274
|
+
distanceFare: Type.Number(),
|
|
275
|
+
timeFare: Type.Number(),
|
|
276
|
+
surgeFare: Type.Number(),
|
|
277
|
+
bookingFee: Type.Number(),
|
|
278
|
+
totalBeforeSurge: Type.Number(),
|
|
279
|
+
totalAfterSurge: Type.Number(),
|
|
280
|
+
minimumFare: Type.Number(),
|
|
281
|
+
currency: Type.String()
|
|
282
|
+
}),
|
|
283
|
+
surgeInfo: Type.Object({
|
|
284
|
+
multiplier: Type.Number({ minimum: 1.0 }),
|
|
285
|
+
reason: Type.String(),
|
|
286
|
+
isActive: Type.Boolean()
|
|
287
|
+
}),
|
|
288
|
+
tripEstimate: Type.Object({
|
|
289
|
+
distance: DistanceSchema,
|
|
290
|
+
duration: DurationSchema,
|
|
291
|
+
durationConfidence: Type.Number({ minimum: 0, maximum: 1 })
|
|
292
|
+
}),
|
|
293
|
+
pickupEstimate: Type.Object({
|
|
294
|
+
eta: DurationSchema,
|
|
295
|
+
etaConfidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
296
|
+
nearbyDrivers: Type.Number({ minimum: 0 })
|
|
297
|
+
}),
|
|
298
|
+
vehicleClass: Type.String(),
|
|
299
|
+
validUntil: Type.Number(),
|
|
300
|
+
metadata: Type.Object({
|
|
301
|
+
accuracy: AccuracySchema,
|
|
302
|
+
confidence: Type.Number({ minimum: 0, maximum: 1 }),
|
|
303
|
+
dataSource: SourceSchema,
|
|
304
|
+
calculatedAt: Type.Number(),
|
|
305
|
+
disclaimer: Type.String()
|
|
306
|
+
})
|
|
307
|
+
})
|
|
308
|
+
|
|
309
|
+
// ==========================================
|
|
310
|
+
// Temporal Types
|
|
311
|
+
// ==========================================
|
|
312
|
+
|
|
313
|
+
export const ETACalculationRequestSchema = Type.Object({
|
|
314
|
+
origin: LocationInputSchema,
|
|
315
|
+
destination: LocationInputSchema,
|
|
316
|
+
serviceLevel: ServiceLevelSchema,
|
|
317
|
+
transportMode: CoverageTransitModeSchema,
|
|
318
|
+
processingTime: Type.Optional(Type.Object({
|
|
319
|
+
warehouse: Type.Optional(DurationSchema), // Hours
|
|
320
|
+
customs: Type.Optional(DurationSchema)
|
|
321
|
+
})),
|
|
322
|
+
pickupTime: Type.Optional(DateTimeZoneSchema),
|
|
323
|
+
|
|
324
|
+
// LSP Integration: Service processor context from order chain
|
|
325
|
+
processors: Type.Optional(Type.Object({
|
|
326
|
+
warehouse: Type.Optional(Type.Any({ description: 'Warehouse processor context' })),
|
|
327
|
+
carrier: Type.Optional(Type.Any({ description: 'Carrier processor context' })),
|
|
328
|
+
hub: Type.Optional(Type.Any({ description: 'Hub processor context' })),
|
|
329
|
+
broker: Type.Optional(Type.Any({ description: 'Customs broker processor context' }))
|
|
330
|
+
})),
|
|
331
|
+
|
|
332
|
+
// Additional context for LSP spec lookups
|
|
333
|
+
itemCount: Type.Optional(Type.Number({ minimum: 1, description: 'Number of items for warehouse processing' })),
|
|
334
|
+
packageCount: Type.Optional(Type.Number({ minimum: 1, description: 'Number of packages for hub sorting' })),
|
|
335
|
+
hsCode: Type.Optional(Type.String({ description: 'Harmonized System code for customs' })),
|
|
336
|
+
|
|
337
|
+
// Precision tier for distance/transit calculation
|
|
338
|
+
precision: Type.Optional(PrecisionTierSchema)
|
|
339
|
+
})
|
|
340
|
+
|
|
341
|
+
export const ETACalculationResultSchema = Type.Object({
|
|
342
|
+
estimatedDelivery: Type.Object({
|
|
343
|
+
earliest: DateTimeZoneSchema,
|
|
344
|
+
latest: DateTimeZoneSchema,
|
|
345
|
+
expected: DateTimeZoneSchema
|
|
346
|
+
}),
|
|
347
|
+
breakdown: Type.Object({
|
|
348
|
+
processingTime: Type.Intersect([
|
|
349
|
+
DurationSchema,
|
|
350
|
+
Type.Object({
|
|
351
|
+
dataSource: Type.Optional(Type.Union([
|
|
352
|
+
Type.Literal('LSP_SPECS'),
|
|
353
|
+
Type.Literal('ESTIMATE')
|
|
354
|
+
])),
|
|
355
|
+
confidence: Type.Optional(Type.Number({ minimum: 0, maximum: 1 }))
|
|
356
|
+
})
|
|
357
|
+
]),
|
|
358
|
+
transitTime: Type.Intersect([
|
|
359
|
+
DurationSchema,
|
|
360
|
+
Type.Object({
|
|
361
|
+
dataSource: Type.Optional(Type.Union([
|
|
362
|
+
Type.Literal('LSP_SPECS'),
|
|
363
|
+
Type.Literal('ESTIMATE'),
|
|
364
|
+
Type.Literal('EXTERNAL')
|
|
365
|
+
])),
|
|
366
|
+
confidence: Type.Optional(Type.Number({ minimum: 0, maximum: 1 }))
|
|
367
|
+
})
|
|
368
|
+
]),
|
|
369
|
+
hubTransfer: Type.Optional(Type.Intersect([
|
|
370
|
+
DurationSchema,
|
|
371
|
+
Type.Object({
|
|
372
|
+
dataSource: Type.Optional(Type.Union([
|
|
373
|
+
Type.Literal('LSP_SPECS'),
|
|
374
|
+
Type.Literal('ESTIMATE')
|
|
375
|
+
])),
|
|
376
|
+
confidence: Type.Optional(Type.Number({ minimum: 0, maximum: 1 }))
|
|
377
|
+
})
|
|
378
|
+
])),
|
|
379
|
+
customsClearance: Type.Optional(Type.Intersect([
|
|
380
|
+
DurationSchema,
|
|
381
|
+
Type.Object({
|
|
382
|
+
dataSource: Type.Optional(Type.Union([
|
|
383
|
+
Type.Literal('LSP_SPECS'),
|
|
384
|
+
Type.Literal('ESTIMATE')
|
|
385
|
+
])),
|
|
386
|
+
confidence: Type.Optional(Type.Number({ minimum: 0, maximum: 1 }))
|
|
387
|
+
})
|
|
388
|
+
])),
|
|
389
|
+
lastMileDelivery: DurationSchema,
|
|
390
|
+
bufferTime: DurationSchema
|
|
391
|
+
}),
|
|
392
|
+
confidence: Type.Object({
|
|
393
|
+
score: Type.Number({ minimum: 0, maximum: 100 }),
|
|
394
|
+
factors: Type.Array(Type.String())
|
|
395
|
+
}),
|
|
396
|
+
cutoffTime: Type.Optional(Type.Object({
|
|
397
|
+
nextAvailable: DateTimeZoneSchema,
|
|
398
|
+
serviceLevel: ServiceLevelSchema
|
|
399
|
+
})),
|
|
400
|
+
metadata: Type.Object({
|
|
401
|
+
accuracy: AccuracySchema,
|
|
402
|
+
calculatedAt: Type.Number(),
|
|
403
|
+
disclaimer: Type.String()
|
|
404
|
+
})
|
|
405
|
+
})
|
|
406
|
+
|
|
407
|
+
// ==========================================
|
|
408
|
+
// Nearby Vehicle Search Types
|
|
409
|
+
// ==========================================
|
|
410
|
+
|
|
411
|
+
export const NearbySearchRequestSchema = Type.Object({
|
|
412
|
+
center: CoordinatesSchema,
|
|
413
|
+
scale: Type.Optional(Type.Number({ minimum: 0.1, description: 'Search radius in kilometers' })),
|
|
414
|
+
maxRetries: Type.Optional(Type.Number({ minimum: 0, maximum: 5 })),
|
|
415
|
+
maxResults: Type.Optional(Type.Number({ minimum: 1, maximum: 100 })),
|
|
416
|
+
maxDistance: Type.Optional(Type.Number({ minimum: 1000, description: 'Maximum search distance in meters' })),
|
|
417
|
+
status: Type.Optional(Type.Union([
|
|
418
|
+
Type.String(),
|
|
419
|
+
Type.Array(Type.String())
|
|
420
|
+
])),
|
|
421
|
+
vehicleType: Type.Optional(Type.String())
|
|
422
|
+
})
|
|
423
|
+
|
|
424
|
+
export const NearbyWithinBoundsRequestSchema = Type.Object({
|
|
425
|
+
northEast: CoordinatesSchema,
|
|
426
|
+
southWest: CoordinatesSchema,
|
|
427
|
+
status: Type.Optional(Type.Union([
|
|
428
|
+
Type.String(),
|
|
429
|
+
Type.Array(Type.String())
|
|
430
|
+
])),
|
|
431
|
+
vehicleType: Type.Optional(Type.String()),
|
|
432
|
+
maxResults: Type.Optional(Type.Number({ minimum: 1, maximum: 100 }))
|
|
433
|
+
})
|
|
434
|
+
|
|
435
|
+
export const NearestVehicleRequestSchema = Type.Object({
|
|
436
|
+
center: CoordinatesSchema,
|
|
437
|
+
count: Type.Optional(Type.Number({ minimum: 1, maximum: 50 })),
|
|
438
|
+
status: Type.Optional(Type.Union([
|
|
439
|
+
Type.String(),
|
|
440
|
+
Type.Array(Type.String())
|
|
441
|
+
])),
|
|
442
|
+
vehicleType: Type.Optional(Type.String()),
|
|
443
|
+
maxDistance: Type.Optional(Type.Number({ minimum: 1000 }))
|
|
444
|
+
})
|
|
445
|
+
|
|
446
|
+
export const NearbyVehicleResultSchema = Type.Object({
|
|
447
|
+
id: Type.String(),
|
|
448
|
+
type: Type.String(),
|
|
449
|
+
status: Type.String(),
|
|
450
|
+
location: CoordinatesSchema,
|
|
451
|
+
distance: Type.Optional(Type.Number({ description: 'Distance in meters' }))
|
|
452
|
+
})
|
|
453
|
+
|
|
454
|
+
export const NearbySearchResultSchema = Type.Object({
|
|
455
|
+
vehicles: Type.Array(NearbyVehicleResultSchema),
|
|
456
|
+
count: Type.Number(),
|
|
457
|
+
searchRadius: Type.Optional(Type.Number({ description: 'Actual search radius used in meters' })),
|
|
458
|
+
metadata: Type.Object({
|
|
459
|
+
searchCenter: CoordinatesSchema,
|
|
460
|
+
calculatedAt: Type.Number()
|
|
461
|
+
})
|
|
462
|
+
})
|
|
463
|
+
|
|
464
|
+
// ==========================================
|
|
465
|
+
// Batch Distance Matrix Types
|
|
466
|
+
// ==========================================
|
|
467
|
+
|
|
468
|
+
export const BatchDistanceMatrixRequestSchema = Type.Object({
|
|
469
|
+
points: Type.Array(CoordinatesSchema, { minItems: 2, maxItems: 50 })
|
|
470
|
+
})
|
|
471
|
+
|
|
472
|
+
export const BatchDistanceMatrixEntrySchema = Type.Object({
|
|
473
|
+
i: Type.Number({ description: 'Index of first point' }),
|
|
474
|
+
j: Type.Number({ description: 'Index of second point' }),
|
|
475
|
+
distance: Type.Number({ description: 'Distance in kilometers' })
|
|
476
|
+
})
|
|
477
|
+
|
|
478
|
+
export const BatchDistanceMatrixResultSchema = Type.Object({
|
|
479
|
+
matrix: Type.Array(BatchDistanceMatrixEntrySchema),
|
|
480
|
+
unit: Type.Literal('km'),
|
|
481
|
+
calculatedAt: Type.Number()
|
|
482
|
+
})
|
|
483
|
+
|
|
484
|
+
// ==========================================
|
|
485
|
+
// Savings Matrix Types (Clarke-Wright)
|
|
486
|
+
// ==========================================
|
|
487
|
+
|
|
488
|
+
export const SavingsMatrixRequestSchema = Type.Object({
|
|
489
|
+
depot: CoordinatesSchema,
|
|
490
|
+
dropoffs: Type.Array(CoordinatesSchema, { minItems: 2, maxItems: 50 })
|
|
491
|
+
})
|
|
492
|
+
|
|
493
|
+
export const SavingsEntrySchema = Type.Object({
|
|
494
|
+
i: Type.Number({ description: 'Index of first dropoff' }),
|
|
495
|
+
j: Type.Number({ description: 'Index of second dropoff' }),
|
|
496
|
+
savings: Type.Number({ description: 'Savings in kilometers if merged into one route' })
|
|
497
|
+
})
|
|
498
|
+
|
|
499
|
+
export const SavingsMatrixResultSchema = Type.Object({
|
|
500
|
+
savings: Type.Array(SavingsEntrySchema),
|
|
501
|
+
unit: Type.Literal('km'),
|
|
502
|
+
calculatedAt: Type.Number()
|
|
503
|
+
})
|
|
504
|
+
|
|
505
|
+
// ==========================================
|
|
506
|
+
// Batch Geocoding Types
|
|
507
|
+
// ==========================================
|
|
508
|
+
|
|
509
|
+
export const BatchGeocodeRequestSchema = Type.Object({
|
|
510
|
+
locations: Type.Array(LocationInputSchema, { minItems: 1, maxItems: 25 })
|
|
511
|
+
})
|
|
512
|
+
|
|
513
|
+
export const BatchGeocodeEntrySchema = Type.Object({
|
|
514
|
+
index: Type.Number(),
|
|
515
|
+
location: LocationInputSchema,
|
|
516
|
+
coordinates: Type.Union([ CoordinatesSchema, Type.Null() ])
|
|
517
|
+
})
|
|
518
|
+
|
|
519
|
+
export const BatchGeocodeResultSchema = Type.Object({
|
|
520
|
+
results: Type.Array(BatchGeocodeEntrySchema),
|
|
521
|
+
resolvedCount: Type.Number({ minimum: 0 }),
|
|
522
|
+
calculatedAt: Type.Number()
|
|
523
|
+
})
|
|
524
|
+
|
|
525
|
+
// ==========================================
|
|
526
|
+
// TypeScript Type Exports
|
|
527
|
+
// ==========================================
|
|
528
|
+
|
|
529
|
+
export type PrecisionTier = Static<typeof PrecisionTierSchema>
|
|
530
|
+
export type DistanceCalculationRequest = Static<typeof DistanceCalculationRequestSchema>
|
|
531
|
+
export type DistanceCalculationResult = Static<typeof DistanceCalculationResultSchema>
|
|
532
|
+
export type ServiceType = Static<typeof ServiceTypeSchema>
|
|
533
|
+
export type ZoneAssignmentRequest = Static<typeof ZoneAssignmentRequestSchema>
|
|
534
|
+
export type ZoneAssignmentResult = Static<typeof ZoneAssignmentResultSchema>
|
|
535
|
+
export type DeliveryFeesRequest = Static<typeof DeliveryFeesRequestSchema>
|
|
536
|
+
export type DeliveryFeesResult = Static<typeof DeliveryFeesResultSchema>
|
|
537
|
+
export type TransportFareRequest = Static<typeof TransportFareRequestSchema>
|
|
538
|
+
export type TransportFareResult = Static<typeof TransportFareResultSchema>
|
|
539
|
+
export type CrossBorderFareRequest = Static<typeof CrossBorderFareRequestSchema>
|
|
540
|
+
export type CrossBorderFareResult = Static<typeof CrossBorderFareResultSchema>
|
|
541
|
+
export type RideFareRequest = Static<typeof RideFareRequestSchema>
|
|
542
|
+
export type RideFareResult = Static<typeof RideFareResultSchema>
|
|
543
|
+
export type ETACalculationRequest = Static<typeof ETACalculationRequestSchema>
|
|
544
|
+
export type ETACalculationResult = Static<typeof ETACalculationResultSchema>
|
|
545
|
+
export type NearbySearchRequest = Static<typeof NearbySearchRequestSchema>
|
|
546
|
+
export type NearbyWithinBoundsRequest = Static<typeof NearbyWithinBoundsRequestSchema>
|
|
547
|
+
export type NearestVehicleRequest = Static<typeof NearestVehicleRequestSchema>
|
|
548
|
+
export type NearbyVehicleResult = Static<typeof NearbyVehicleResultSchema>
|
|
549
|
+
export type NearbySearchResult = Static<typeof NearbySearchResultSchema>
|
|
550
|
+
export type BatchDistanceMatrixRequest = Static<typeof BatchDistanceMatrixRequestSchema>
|
|
551
|
+
export type BatchDistanceMatrixResult = Static<typeof BatchDistanceMatrixResultSchema>
|
|
552
|
+
export type SavingsMatrixRequest = Static<typeof SavingsMatrixRequestSchema>
|
|
553
|
+
export type SavingsMatrixResult = Static<typeof SavingsMatrixResultSchema>
|
|
554
|
+
export type BatchGeocodeRequest = Static<typeof BatchGeocodeRequestSchema>
|
|
555
|
+
export type BatchGeocodeResult = Static<typeof BatchGeocodeResultSchema>
|
|
556
|
+
|
|
557
|
+
// ─── Common Utilities RVS ─────────────────────────────────────────────────────
|
|
558
|
+
|
|
559
|
+
export const UtilDistanceRVS = {
|
|
560
|
+
headers: APIHeadersSchema,
|
|
561
|
+
body: DistanceCalculationRequestSchema,
|
|
562
|
+
response: Type.Intersect([
|
|
563
|
+
APIResponseBaseSchema,
|
|
564
|
+
APIResponseDataSchemaFactory({ result: DistanceCalculationResultSchema })
|
|
565
|
+
])
|
|
566
|
+
}
|
|
567
|
+
export type UtilDistanceValidation = {
|
|
568
|
+
body: Static<typeof UtilDistanceRVS.body>
|
|
569
|
+
response: Static<typeof UtilDistanceRVS.response>
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export const UtilBatchDistanceMatrixRVS = {
|
|
573
|
+
headers: APIHeadersSchema,
|
|
574
|
+
body: BatchDistanceMatrixRequestSchema,
|
|
575
|
+
response: Type.Intersect([
|
|
576
|
+
APIResponseBaseSchema,
|
|
577
|
+
APIResponseDataSchemaFactory({ result: BatchDistanceMatrixResultSchema })
|
|
578
|
+
])
|
|
579
|
+
}
|
|
580
|
+
export type UtilBatchDistanceMatrixValidation = {
|
|
581
|
+
body: Static<typeof UtilBatchDistanceMatrixRVS.body>
|
|
582
|
+
response: Static<typeof UtilBatchDistanceMatrixRVS.response>
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export const UtilSavingsMatrixRVS = {
|
|
586
|
+
headers: APIHeadersSchema,
|
|
587
|
+
body: SavingsMatrixRequestSchema,
|
|
588
|
+
response: Type.Intersect([
|
|
589
|
+
APIResponseBaseSchema,
|
|
590
|
+
APIResponseDataSchemaFactory({ result: SavingsMatrixResultSchema })
|
|
591
|
+
])
|
|
592
|
+
}
|
|
593
|
+
export type UtilSavingsMatrixValidation = {
|
|
594
|
+
body: Static<typeof UtilSavingsMatrixRVS.body>
|
|
595
|
+
response: Static<typeof UtilSavingsMatrixRVS.response>
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export const UtilAssignZoneRVS = {
|
|
599
|
+
headers: APIHeadersSchema,
|
|
600
|
+
body: ZoneAssignmentRequestSchema,
|
|
601
|
+
response: Type.Intersect([
|
|
602
|
+
APIResponseBaseSchema,
|
|
603
|
+
APIResponseDataSchemaFactory({ result: ZoneAssignmentResultSchema })
|
|
604
|
+
])
|
|
605
|
+
}
|
|
606
|
+
export type UtilAssignZoneValidation = {
|
|
607
|
+
body: Static<typeof UtilAssignZoneRVS.body>
|
|
608
|
+
response: Static<typeof UtilAssignZoneRVS.response>
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export const UtilETARVS = {
|
|
612
|
+
headers: APIHeadersSchema,
|
|
613
|
+
body: ETACalculationRequestSchema,
|
|
614
|
+
response: Type.Intersect([
|
|
615
|
+
APIResponseBaseSchema,
|
|
616
|
+
APIResponseDataSchemaFactory({ result: ETACalculationResultSchema })
|
|
617
|
+
])
|
|
618
|
+
}
|
|
619
|
+
export type UtilETAValidation = {
|
|
620
|
+
body: Static<typeof UtilETARVS.body>
|
|
621
|
+
response: Static<typeof UtilETARVS.response>
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export const UtilBatchGeocodeRVS = {
|
|
625
|
+
headers: APIHeadersSchema,
|
|
626
|
+
body: BatchGeocodeRequestSchema,
|
|
627
|
+
response: Type.Intersect([
|
|
628
|
+
APIResponseBaseSchema,
|
|
629
|
+
APIResponseDataSchemaFactory({ result: BatchGeocodeResultSchema })
|
|
630
|
+
])
|
|
631
|
+
}
|
|
632
|
+
export type UtilBatchGeocodeValidation = {
|
|
633
|
+
body: Static<typeof UtilBatchGeocodeRVS.body>
|
|
634
|
+
response: Static<typeof UtilBatchGeocodeRVS.response>
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
// ─── Fares RVS ────────────────────────────────────────────────────────────────
|
|
638
|
+
|
|
639
|
+
export const UtilDeliveryFeesRVS = {
|
|
640
|
+
headers: APIHeadersSchema,
|
|
641
|
+
body: DeliveryFeesRequestSchema,
|
|
642
|
+
response: Type.Intersect([
|
|
643
|
+
APIResponseBaseSchema,
|
|
644
|
+
APIResponseDataSchemaFactory({ result: DeliveryFeesResultSchema })
|
|
645
|
+
])
|
|
646
|
+
}
|
|
647
|
+
export type UtilDeliveryFeesValidation = {
|
|
648
|
+
body: Static<typeof UtilDeliveryFeesRVS.body>
|
|
649
|
+
response: Static<typeof UtilDeliveryFeesRVS.response>
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export const UtilTransportFareRVS = {
|
|
653
|
+
headers: APIHeadersSchema,
|
|
654
|
+
body: TransportFareRequestSchema,
|
|
655
|
+
response: Type.Intersect([
|
|
656
|
+
APIResponseBaseSchema,
|
|
657
|
+
APIResponseDataSchemaFactory({ result: TransportFareResultSchema })
|
|
658
|
+
])
|
|
659
|
+
}
|
|
660
|
+
export type UtilTransportFareValidation = {
|
|
661
|
+
body: Static<typeof UtilTransportFareRVS.body>
|
|
662
|
+
response: Static<typeof UtilTransportFareRVS.response>
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export const UtilRideFareRVS = {
|
|
666
|
+
headers: APIHeadersSchema,
|
|
667
|
+
body: RideFareRequestSchema,
|
|
668
|
+
response: Type.Intersect([
|
|
669
|
+
APIResponseBaseSchema,
|
|
670
|
+
APIResponseDataSchemaFactory({ result: RideFareResultSchema })
|
|
671
|
+
])
|
|
672
|
+
}
|
|
673
|
+
export type UtilRideFareValidation = {
|
|
674
|
+
body: Static<typeof UtilRideFareRVS.body>
|
|
675
|
+
response: Static<typeof UtilRideFareRVS.response>
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export const UtilCrossBorderFareRVS = {
|
|
679
|
+
headers: APIHeadersSchema,
|
|
680
|
+
body: CrossBorderFareRequestSchema,
|
|
681
|
+
response: Type.Intersect([
|
|
682
|
+
APIResponseBaseSchema,
|
|
683
|
+
APIResponseDataSchemaFactory({ result: CrossBorderFareResultSchema })
|
|
684
|
+
])
|
|
685
|
+
}
|
|
686
|
+
export type UtilCrossBorderFareValidation = {
|
|
687
|
+
body: Static<typeof UtilCrossBorderFareRVS.body>
|
|
688
|
+
response: Static<typeof UtilCrossBorderFareRVS.response>
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// ─── Nearby RVS ───────────────────────────────────────────────────────────────
|
|
692
|
+
|
|
693
|
+
export const UtilSearchNearbyRVS = {
|
|
694
|
+
headers: APIHeadersSchema,
|
|
695
|
+
body: NearbySearchRequestSchema,
|
|
696
|
+
response: Type.Intersect([
|
|
697
|
+
APIResponseBaseSchema,
|
|
698
|
+
APIResponseDataSchemaFactory({ result: NearbySearchResultSchema })
|
|
699
|
+
])
|
|
700
|
+
}
|
|
701
|
+
export type UtilSearchNearbyValidation = {
|
|
702
|
+
body: Static<typeof UtilSearchNearbyRVS.body>
|
|
703
|
+
response: Static<typeof UtilSearchNearbyRVS.response>
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export const UtilSearchInBoundsRVS = {
|
|
707
|
+
headers: APIHeadersSchema,
|
|
708
|
+
body: NearbyWithinBoundsRequestSchema,
|
|
709
|
+
response: Type.Intersect([
|
|
710
|
+
APIResponseBaseSchema,
|
|
711
|
+
APIResponseDataSchemaFactory({ result: NearbySearchResultSchema })
|
|
712
|
+
])
|
|
713
|
+
}
|
|
714
|
+
export type UtilSearchInBoundsValidation = {
|
|
715
|
+
body: Static<typeof UtilSearchInBoundsRVS.body>
|
|
716
|
+
response: Static<typeof UtilSearchInBoundsRVS.response>
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export const UtilFindNearestRVS = {
|
|
720
|
+
headers: APIHeadersSchema,
|
|
721
|
+
body: NearestVehicleRequestSchema,
|
|
722
|
+
response: Type.Intersect([
|
|
723
|
+
APIResponseBaseSchema,
|
|
724
|
+
APIResponseDataSchemaFactory({ result: NearbySearchResultSchema })
|
|
725
|
+
])
|
|
726
|
+
}
|
|
727
|
+
export type UtilFindNearestValidation = {
|
|
728
|
+
body: Static<typeof UtilFindNearestRVS.body>
|
|
729
|
+
response: Static<typeof UtilFindNearestRVS.response>
|
|
730
|
+
}
|