@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,596 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import {
|
|
3
|
+
AgentProfileSchema,
|
|
4
|
+
AgentUpdateSchema
|
|
5
|
+
} from './agents'
|
|
6
|
+
import { RTLocationSchema } from '../geo'
|
|
7
|
+
import {
|
|
8
|
+
APIResponseBaseSchema,
|
|
9
|
+
APIResponseDataSchemaFactory,
|
|
10
|
+
APIHeadersSchema,
|
|
11
|
+
APIErrorSchema
|
|
12
|
+
} from '../api'
|
|
13
|
+
|
|
14
|
+
// ─── Shared sub-schemas ──────────────────────────────────────────────────
|
|
15
|
+
|
|
16
|
+
const PickupDropoffSchema = Type.Object({
|
|
17
|
+
lat: Type.Number(),
|
|
18
|
+
lng: Type.Number()
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
const DispatchOrderSummarySchema = Type.Object({
|
|
22
|
+
reference: Type.String(),
|
|
23
|
+
pickup: PickupDropoffSchema,
|
|
24
|
+
dropoff: PickupDropoffSchema
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
// ─── Agent Index (availability, info, update) ────────────────────────────
|
|
28
|
+
|
|
29
|
+
export const AgentAvailabilityRVS = {
|
|
30
|
+
headers: APIHeadersSchema,
|
|
31
|
+
params: Type.Object({ availability: Type.String() }),
|
|
32
|
+
response: Type.Intersect([
|
|
33
|
+
APIResponseBaseSchema,
|
|
34
|
+
Type.Object({ message: Type.Optional(Type.String()) })
|
|
35
|
+
])
|
|
36
|
+
}
|
|
37
|
+
export type AgentAvailabilityValidation = {
|
|
38
|
+
params: Static<typeof AgentAvailabilityRVS.params>
|
|
39
|
+
response: Static<typeof AgentAvailabilityRVS.response>
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const AgentInfoRVS = {
|
|
43
|
+
headers: APIHeadersSchema,
|
|
44
|
+
response: Type.Intersect([
|
|
45
|
+
APIResponseBaseSchema,
|
|
46
|
+
APIResponseDataSchemaFactory({ agent: AgentProfileSchema })
|
|
47
|
+
])
|
|
48
|
+
}
|
|
49
|
+
export type AgentInfoValidation = {
|
|
50
|
+
response: Static<typeof AgentInfoRVS.response>
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const AgentUpdateRVS = {
|
|
54
|
+
headers: APIHeadersSchema,
|
|
55
|
+
body: AgentUpdateSchema,
|
|
56
|
+
response: Type.Intersect([
|
|
57
|
+
APIResponseBaseSchema,
|
|
58
|
+
APIResponseDataSchemaFactory({ agent: AgentProfileSchema })
|
|
59
|
+
])
|
|
60
|
+
}
|
|
61
|
+
export type AgentUpdateValidation = {
|
|
62
|
+
body: Static<typeof AgentUpdateRVS.body>
|
|
63
|
+
response: Static<typeof AgentUpdateRVS.response>
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// ─── Agent Dispatch (respond, rate) ──────────────────────────────────────
|
|
67
|
+
|
|
68
|
+
export const AgentDispatchRespondRVS = {
|
|
69
|
+
headers: APIHeadersSchema,
|
|
70
|
+
body: Type.Object({
|
|
71
|
+
offerId: Type.String({ minLength: 1 }),
|
|
72
|
+
decision: Type.Union([
|
|
73
|
+
Type.Literal('ACCEPT'),
|
|
74
|
+
Type.Literal('DECLINE')
|
|
75
|
+
]),
|
|
76
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
77
|
+
}),
|
|
78
|
+
response: Type.Intersect([
|
|
79
|
+
APIResponseBaseSchema,
|
|
80
|
+
Type.Object({
|
|
81
|
+
message: Type.Optional(Type.String()),
|
|
82
|
+
data: Type.Optional(APIResponseDataSchemaFactory({
|
|
83
|
+
orders: Type.Array(DispatchOrderSummarySchema)
|
|
84
|
+
}))
|
|
85
|
+
})
|
|
86
|
+
])
|
|
87
|
+
}
|
|
88
|
+
export type AgentDispatchRespondValidation = {
|
|
89
|
+
body: Static<typeof AgentDispatchRespondRVS.body>
|
|
90
|
+
response: Static<typeof AgentDispatchRespondRVS.response>
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const AgentDispatchRateRVS = {
|
|
94
|
+
headers: APIHeadersSchema,
|
|
95
|
+
body: Type.Object({
|
|
96
|
+
reference: Type.String({ minLength: 1 }),
|
|
97
|
+
entityId: Type.String({ minLength: 1 }),
|
|
98
|
+
entityType: Type.Union([
|
|
99
|
+
Type.Literal('rider'),
|
|
100
|
+
Type.Literal('sender')
|
|
101
|
+
]),
|
|
102
|
+
rating: Type.Number({ minimum: 1, maximum: 5 })
|
|
103
|
+
}),
|
|
104
|
+
response: Type.Intersect([
|
|
105
|
+
APIResponseBaseSchema,
|
|
106
|
+
APIResponseDataSchemaFactory({
|
|
107
|
+
entityId: Type.String(),
|
|
108
|
+
rating: Type.Number()
|
|
109
|
+
})
|
|
110
|
+
])
|
|
111
|
+
}
|
|
112
|
+
export type AgentDispatchRateValidation = {
|
|
113
|
+
body: Static<typeof AgentDispatchRateRVS.body>
|
|
114
|
+
response: Static<typeof AgentDispatchRateRVS.response>
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// ─── Agent Navigation (location, nearby) ────────────────────────────────
|
|
118
|
+
|
|
119
|
+
export const AgentLocationRVS = {
|
|
120
|
+
headers: APIHeadersSchema,
|
|
121
|
+
body: Type.Object({
|
|
122
|
+
lng: Type.Number({ minimum: -180, maximum: 180 }),
|
|
123
|
+
lat: Type.Number({ minimum: -90, maximum: 90 }),
|
|
124
|
+
heading: Type.Optional(Type.Number({ minimum: 0, maximum: 360 })),
|
|
125
|
+
altitude: Type.Optional(Type.Number()),
|
|
126
|
+
accuracy: Type.Optional(Type.Number({ minimum: 0 })),
|
|
127
|
+
speed: Type.Optional(Type.Number({ minimum: 0 }))
|
|
128
|
+
}),
|
|
129
|
+
response: Type.Intersect([
|
|
130
|
+
APIResponseBaseSchema,
|
|
131
|
+
Type.Object({ message: Type.Optional(Type.String()) })
|
|
132
|
+
])
|
|
133
|
+
}
|
|
134
|
+
export type AgentLocationValidation = {
|
|
135
|
+
body: Static<typeof AgentLocationRVS.body>
|
|
136
|
+
response: Static<typeof AgentLocationRVS.response>
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export const AgentNearbyRVS = {
|
|
140
|
+
headers: APIHeadersSchema,
|
|
141
|
+
querystring: Type.Object({
|
|
142
|
+
type: Type.Optional(Type.Union([
|
|
143
|
+
Type.Literal('vehicle'),
|
|
144
|
+
Type.Literal('hub')
|
|
145
|
+
], { default: 'vehicle', description: 'Entity type to search for' })),
|
|
146
|
+
vehicleType: Type.Optional(Type.String({ description: 'Filter by vehicle type' })),
|
|
147
|
+
status: Type.Optional(Type.String({ description: 'Filter by status' })),
|
|
148
|
+
radius: Type.Optional(Type.Number({ minimum: 0.1, maximum: 100, default: 5, description: 'Search radius in km' })),
|
|
149
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 100, default: 20 }))
|
|
150
|
+
}),
|
|
151
|
+
body: Type.Object({
|
|
152
|
+
lat: Type.Number({ minimum: -90, maximum: 90 }),
|
|
153
|
+
lng: Type.Number({ minimum: -180, maximum: 180 }),
|
|
154
|
+
bounds: Type.Optional(Type.Object({
|
|
155
|
+
northEast: RTLocationSchema,
|
|
156
|
+
southWest: RTLocationSchema
|
|
157
|
+
}, { description: 'If provided, searches within bounds instead of radius' }))
|
|
158
|
+
}),
|
|
159
|
+
response: Type.Intersect([
|
|
160
|
+
APIResponseBaseSchema,
|
|
161
|
+
APIResponseDataSchemaFactory({
|
|
162
|
+
nearby: Type.Array(Type.Any()),
|
|
163
|
+
count: Type.Number()
|
|
164
|
+
})
|
|
165
|
+
])
|
|
166
|
+
}
|
|
167
|
+
export type AgentNearbyValidation = {
|
|
168
|
+
querystring: Static<typeof AgentNearbyRVS.querystring>
|
|
169
|
+
body: Static<typeof AgentNearbyRVS.body>
|
|
170
|
+
response: Static<typeof AgentNearbyRVS.response>
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// ─── Agent Consolidation (respond, handoffConfirm) ──────────────────────
|
|
174
|
+
|
|
175
|
+
const ConsolidationOrderSummarySchema = Type.Object({
|
|
176
|
+
reference: Type.String(),
|
|
177
|
+
pickup: PickupDropoffSchema,
|
|
178
|
+
dropoff: PickupDropoffSchema
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
export const AgentConsolidationRespondRVS = {
|
|
182
|
+
headers: APIHeadersSchema,
|
|
183
|
+
body: Type.Object({
|
|
184
|
+
offerId: Type.String({ minLength: 1 }),
|
|
185
|
+
decision: Type.Union([
|
|
186
|
+
Type.Literal('ACCEPT'),
|
|
187
|
+
Type.Literal('DECLINE')
|
|
188
|
+
]),
|
|
189
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
190
|
+
}),
|
|
191
|
+
response: Type.Intersect([
|
|
192
|
+
APIResponseBaseSchema,
|
|
193
|
+
Type.Object({
|
|
194
|
+
message: Type.Optional(Type.String()),
|
|
195
|
+
data: Type.Optional(APIResponseDataSchemaFactory({
|
|
196
|
+
orders: Type.Array(ConsolidationOrderSummarySchema)
|
|
197
|
+
}))
|
|
198
|
+
})
|
|
199
|
+
])
|
|
200
|
+
}
|
|
201
|
+
export type AgentConsolidationRespondValidation = {
|
|
202
|
+
body: Static<typeof AgentConsolidationRespondRVS.body>
|
|
203
|
+
response: Static<typeof AgentConsolidationRespondRVS.response>
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export const AgentConsolidationHandoffRVS = {
|
|
207
|
+
headers: APIHeadersSchema,
|
|
208
|
+
body: Type.Object({
|
|
209
|
+
consolidationId: Type.String({ minLength: 1 }),
|
|
210
|
+
handoffCode: Type.Integer({ minimum: 1000, maximum: 9999 })
|
|
211
|
+
}),
|
|
212
|
+
response: Type.Intersect([
|
|
213
|
+
APIResponseBaseSchema,
|
|
214
|
+
Type.Object({ message: Type.Optional(Type.String()) })
|
|
215
|
+
])
|
|
216
|
+
}
|
|
217
|
+
export type AgentConsolidationHandoffValidation = {
|
|
218
|
+
body: Static<typeof AgentConsolidationHandoffRVS.body>
|
|
219
|
+
response: Static<typeof AgentConsolidationHandoffRVS.response>
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// ─── Agent Reallocation (respond) ────────────────────────────────────────
|
|
223
|
+
|
|
224
|
+
export const AgentReallocationRespondRVS = {
|
|
225
|
+
headers: APIHeadersSchema,
|
|
226
|
+
body: Type.Object({
|
|
227
|
+
fromZoneId: Type.String({ minLength: 1 }),
|
|
228
|
+
toZoneId: Type.String({ minLength: 1 }),
|
|
229
|
+
decision: Type.Union([
|
|
230
|
+
Type.Literal('ACCEPT'),
|
|
231
|
+
Type.Literal('DECLINE')
|
|
232
|
+
])
|
|
233
|
+
}),
|
|
234
|
+
response: Type.Intersect([
|
|
235
|
+
APIResponseBaseSchema,
|
|
236
|
+
Type.Object({
|
|
237
|
+
message: Type.Optional(Type.String()),
|
|
238
|
+
data: Type.Optional(APIResponseDataSchemaFactory({
|
|
239
|
+
zoneId: Type.String()
|
|
240
|
+
}))
|
|
241
|
+
})
|
|
242
|
+
])
|
|
243
|
+
}
|
|
244
|
+
export type AgentReallocationRespondValidation = {
|
|
245
|
+
body: Static<typeof AgentReallocationRespondRVS.body>
|
|
246
|
+
response: Static<typeof AgentReallocationRespondRVS.response>
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// ─── Agent Vendor (originStatusReport, registerPoi, addPoiNote) ─────────
|
|
250
|
+
|
|
251
|
+
export const AgentOriginStatusReportRVS = {
|
|
252
|
+
headers: APIHeadersSchema,
|
|
253
|
+
body: Type.Object({
|
|
254
|
+
senderId: Type.String({ description: 'Origin-party ID (matches senderId on the order)' }),
|
|
255
|
+
orderRef: Type.String({ description: 'Order reference for traceability' }),
|
|
256
|
+
status: Type.Union([
|
|
257
|
+
Type.Literal('READY', { description: 'Origin party present and order can proceed' }),
|
|
258
|
+
Type.Literal('UNAVAILABLE', { description: 'Origin party closed / not operating' }),
|
|
259
|
+
Type.Literal('PARTIAL', { description: 'Partial availability — item or substitution issue' })
|
|
260
|
+
]),
|
|
261
|
+
note: Type.Optional(Type.String({ maxLength: 300, description: 'Optional knowledge note saved to the graph node' }))
|
|
262
|
+
}),
|
|
263
|
+
response: APIResponseBaseSchema
|
|
264
|
+
}
|
|
265
|
+
export type AgentOriginStatusReportValidation = {
|
|
266
|
+
body: Static<typeof AgentOriginStatusReportRVS.body>
|
|
267
|
+
response: Static<typeof AgentOriginStatusReportRVS.response>
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export const AgentRegisterPoiRVS = {
|
|
271
|
+
headers: APIHeadersSchema,
|
|
272
|
+
body: Type.Object({
|
|
273
|
+
externalId: Type.String({ description: "Consuming service's own identifier for this location" }),
|
|
274
|
+
lat: Type.Number(),
|
|
275
|
+
lng: Type.Number(),
|
|
276
|
+
name: Type.String({ maxLength: 150 }),
|
|
277
|
+
street1: Type.Optional(Type.String({ maxLength: 200 })),
|
|
278
|
+
city: Type.Optional(Type.String({ maxLength: 100 })),
|
|
279
|
+
agentNotes: Type.Optional(Type.Array(Type.String({ maxLength: 300 }), { description: 'Initial knowledge notes (hours, directions, rush times)' }))
|
|
280
|
+
}),
|
|
281
|
+
response: Type.Intersect([
|
|
282
|
+
APIResponseBaseSchema,
|
|
283
|
+
APIResponseDataSchemaFactory({
|
|
284
|
+
nodeId: Type.String({ description: 'Rally Graph node ID for this POI' })
|
|
285
|
+
})
|
|
286
|
+
])
|
|
287
|
+
}
|
|
288
|
+
export type AgentRegisterPoiValidation = {
|
|
289
|
+
body: Static<typeof AgentRegisterPoiRVS.body>
|
|
290
|
+
response: Static<typeof AgentRegisterPoiRVS.response>
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export const AgentAddPoiNoteRVS = {
|
|
294
|
+
headers: APIHeadersSchema,
|
|
295
|
+
body: Type.Object({
|
|
296
|
+
nodeId: Type.String({ description: 'Rally Graph node ID' }),
|
|
297
|
+
note: Type.String({ minLength: 3, maxLength: 300 })
|
|
298
|
+
}),
|
|
299
|
+
response: APIResponseBaseSchema
|
|
300
|
+
}
|
|
301
|
+
export type AgentAddPoiNoteValidation = {
|
|
302
|
+
body: Static<typeof AgentAddPoiNoteRVS.body>
|
|
303
|
+
response: Static<typeof AgentAddPoiNoteRVS.response>
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// ─── Agent Orders — Delivery (list, get, accept, updateStatus, reportIssue) ─
|
|
307
|
+
|
|
308
|
+
export const AgentDeliveryListRVS = {
|
|
309
|
+
headers: APIHeadersSchema,
|
|
310
|
+
querystring: Type.Object({
|
|
311
|
+
status: Type.Optional(Type.Union([
|
|
312
|
+
Type.Literal('pending'),
|
|
313
|
+
Type.Literal('active'),
|
|
314
|
+
Type.Literal('completed'),
|
|
315
|
+
Type.Literal('all')
|
|
316
|
+
], { default: 'active' })),
|
|
317
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 100, default: 20 })),
|
|
318
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
319
|
+
}),
|
|
320
|
+
response: Type.Intersect([
|
|
321
|
+
APIResponseBaseSchema,
|
|
322
|
+
APIResponseDataSchemaFactory({
|
|
323
|
+
orders: Type.Array(Type.Any()),
|
|
324
|
+
total: Type.Number(),
|
|
325
|
+
limit: Type.Number(),
|
|
326
|
+
offset: Type.Number()
|
|
327
|
+
})
|
|
328
|
+
])
|
|
329
|
+
}
|
|
330
|
+
export type AgentDeliveryListValidation = {
|
|
331
|
+
querystring: Static<typeof AgentDeliveryListRVS.querystring>
|
|
332
|
+
response: Static<typeof AgentDeliveryListRVS.response>
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export const AgentDeliveryGetRVS = {
|
|
336
|
+
headers: APIHeadersSchema,
|
|
337
|
+
params: Type.Object({ reference: Type.String() }),
|
|
338
|
+
response: Type.Intersect([
|
|
339
|
+
APIResponseBaseSchema,
|
|
340
|
+
APIResponseDataSchemaFactory({
|
|
341
|
+
order: Type.Any(),
|
|
342
|
+
jrtoken: Type.Optional(Type.String({ description: 'Join Room Token for real-time tracking' }))
|
|
343
|
+
})
|
|
344
|
+
])
|
|
345
|
+
}
|
|
346
|
+
export type AgentDeliveryGetValidation = {
|
|
347
|
+
params: Static<typeof AgentDeliveryGetRVS.params>
|
|
348
|
+
response: Static<typeof AgentDeliveryGetRVS.response>
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export const AgentDeliveryAcceptRVS = {
|
|
352
|
+
headers: APIHeadersSchema,
|
|
353
|
+
params: Type.Object({ reference: Type.String() }),
|
|
354
|
+
response: Type.Intersect([
|
|
355
|
+
APIResponseBaseSchema,
|
|
356
|
+
APIResponseDataSchemaFactory({ order: Type.Any() })
|
|
357
|
+
])
|
|
358
|
+
}
|
|
359
|
+
export type AgentDeliveryAcceptValidation = {
|
|
360
|
+
params: Static<typeof AgentDeliveryAcceptRVS.params>
|
|
361
|
+
response: Static<typeof AgentDeliveryAcceptRVS.response>
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export const AgentDeliveryUpdateStatusRVS = {
|
|
365
|
+
headers: APIHeadersSchema,
|
|
366
|
+
params: Type.Object({ reference: Type.String() }),
|
|
367
|
+
body: Type.Object({
|
|
368
|
+
stage: Type.String({ description: 'Order stage to update' }),
|
|
369
|
+
status: Type.String({ description: 'New status for the stage' }),
|
|
370
|
+
location: Type.Optional(Type.Object({
|
|
371
|
+
lng: Type.Number(),
|
|
372
|
+
lat: Type.Number(),
|
|
373
|
+
heading: Type.Optional(Type.Number()),
|
|
374
|
+
accuracy: Type.Optional(Type.Number())
|
|
375
|
+
})),
|
|
376
|
+
notes: Type.Optional(Type.String({ maxLength: 500 })),
|
|
377
|
+
evidence: Type.Optional(Type.Object({
|
|
378
|
+
photos: Type.Optional(Type.Array(Type.String())),
|
|
379
|
+
signature: Type.Optional(Type.String()),
|
|
380
|
+
recipientName: Type.Optional(Type.String())
|
|
381
|
+
}))
|
|
382
|
+
}),
|
|
383
|
+
response: Type.Intersect([
|
|
384
|
+
APIResponseBaseSchema,
|
|
385
|
+
APIResponseDataSchemaFactory({ order: Type.Any() })
|
|
386
|
+
])
|
|
387
|
+
}
|
|
388
|
+
export type AgentDeliveryUpdateStatusValidation = {
|
|
389
|
+
params: Static<typeof AgentDeliveryUpdateStatusRVS.params>
|
|
390
|
+
body: Static<typeof AgentDeliveryUpdateStatusRVS.body>
|
|
391
|
+
response: Static<typeof AgentDeliveryUpdateStatusRVS.response>
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export const AgentDeliveryReportIssueRVS = {
|
|
395
|
+
headers: APIHeadersSchema,
|
|
396
|
+
params: Type.Object({ reference: Type.String() }),
|
|
397
|
+
body: Type.Object({
|
|
398
|
+
type: Type.Union([
|
|
399
|
+
Type.Literal('DELAY'),
|
|
400
|
+
Type.Literal('DAMAGE'),
|
|
401
|
+
Type.Literal('MISSING_ITEMS'),
|
|
402
|
+
Type.Literal('ADDRESS_ISSUE'),
|
|
403
|
+
Type.Literal('RECIPIENT_UNAVAILABLE'),
|
|
404
|
+
Type.Literal('VEHICLE_BREAKDOWN'),
|
|
405
|
+
Type.Literal('WEATHER'),
|
|
406
|
+
Type.Literal('OTHER')
|
|
407
|
+
]),
|
|
408
|
+
severity: Type.Union([
|
|
409
|
+
Type.Literal('LOW'),
|
|
410
|
+
Type.Literal('MEDIUM'),
|
|
411
|
+
Type.Literal('HIGH'),
|
|
412
|
+
Type.Literal('CRITICAL')
|
|
413
|
+
]),
|
|
414
|
+
description: Type.String({ minLength: 10, maxLength: 1000 }),
|
|
415
|
+
location: Type.Optional(Type.Object({
|
|
416
|
+
lng: Type.Number(),
|
|
417
|
+
lat: Type.Number()
|
|
418
|
+
})),
|
|
419
|
+
photos: Type.Optional(Type.Array(Type.String())),
|
|
420
|
+
requiresSupport: Type.Boolean({ default: false })
|
|
421
|
+
}),
|
|
422
|
+
response: Type.Intersect([
|
|
423
|
+
APIResponseBaseSchema,
|
|
424
|
+
APIResponseDataSchemaFactory({
|
|
425
|
+
issue: Type.Object({
|
|
426
|
+
id: Type.String(),
|
|
427
|
+
reference: Type.String(),
|
|
428
|
+
status: Type.String()
|
|
429
|
+
})
|
|
430
|
+
})
|
|
431
|
+
])
|
|
432
|
+
}
|
|
433
|
+
export type AgentDeliveryReportIssueValidation = {
|
|
434
|
+
params: Static<typeof AgentDeliveryReportIssueRVS.params>
|
|
435
|
+
body: Static<typeof AgentDeliveryReportIssueRVS.body>
|
|
436
|
+
response: Static<typeof AgentDeliveryReportIssueRVS.response>
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// ─── Agent Orders — Shipping (list, get, accept, updateStatus, reportIssue) ─
|
|
440
|
+
// Identical schema shapes to Delivery — shared RVS
|
|
441
|
+
|
|
442
|
+
export const AgentShippingListRVS = AgentDeliveryListRVS
|
|
443
|
+
export const AgentShippingGetRVS = AgentDeliveryGetRVS
|
|
444
|
+
export const AgentShippingAcceptRVS = AgentDeliveryAcceptRVS
|
|
445
|
+
export const AgentShippingUpdateStatusRVS = AgentDeliveryUpdateStatusRVS
|
|
446
|
+
export const AgentShippingReportIssueRVS = AgentDeliveryReportIssueRVS
|
|
447
|
+
|
|
448
|
+
// ─── Agent Orders — Ride (list, get, accept, start, complete, cancel) ────
|
|
449
|
+
|
|
450
|
+
export const AgentRideListRVS = {
|
|
451
|
+
headers: APIHeadersSchema,
|
|
452
|
+
querystring: Type.Object({
|
|
453
|
+
status: Type.Optional(Type.Union([
|
|
454
|
+
Type.Literal('pending'),
|
|
455
|
+
Type.Literal('active'),
|
|
456
|
+
Type.Literal('completed'),
|
|
457
|
+
Type.Literal('all')
|
|
458
|
+
], { default: 'active' })),
|
|
459
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 100, default: 20 })),
|
|
460
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
461
|
+
}),
|
|
462
|
+
response: Type.Intersect([
|
|
463
|
+
APIResponseBaseSchema,
|
|
464
|
+
APIResponseDataSchemaFactory({
|
|
465
|
+
rides: Type.Array(Type.Any()),
|
|
466
|
+
total: Type.Number(),
|
|
467
|
+
limit: Type.Number(),
|
|
468
|
+
offset: Type.Number()
|
|
469
|
+
})
|
|
470
|
+
])
|
|
471
|
+
}
|
|
472
|
+
export type AgentRideListValidation = {
|
|
473
|
+
querystring: Static<typeof AgentRideListRVS.querystring>
|
|
474
|
+
response: Static<typeof AgentRideListRVS.response>
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export const AgentRideGetRVS = {
|
|
478
|
+
headers: APIHeadersSchema,
|
|
479
|
+
params: Type.Object({ reference: Type.String() }),
|
|
480
|
+
response: Type.Intersect([
|
|
481
|
+
APIResponseBaseSchema,
|
|
482
|
+
APIResponseDataSchemaFactory({
|
|
483
|
+
ride: Type.Any(),
|
|
484
|
+
jrtoken: Type.Optional(Type.String({ description: 'Join Room Token for real-time tracking' }))
|
|
485
|
+
})
|
|
486
|
+
])
|
|
487
|
+
}
|
|
488
|
+
export type AgentRideGetValidation = {
|
|
489
|
+
params: Static<typeof AgentRideGetRVS.params>
|
|
490
|
+
response: Static<typeof AgentRideGetRVS.response>
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export const AgentRideAcceptRVS = {
|
|
494
|
+
headers: APIHeadersSchema,
|
|
495
|
+
params: Type.Object({ reference: Type.String() }),
|
|
496
|
+
body: Type.Object({
|
|
497
|
+
estimatedArrival: Type.Number({ description: 'Estimated arrival time in minutes' }),
|
|
498
|
+
currentLocation: Type.Object({
|
|
499
|
+
lng: Type.Number(),
|
|
500
|
+
lat: Type.Number()
|
|
501
|
+
})
|
|
502
|
+
}),
|
|
503
|
+
response: Type.Intersect([
|
|
504
|
+
APIResponseBaseSchema,
|
|
505
|
+
APIResponseDataSchemaFactory({ ride: Type.Any() })
|
|
506
|
+
])
|
|
507
|
+
}
|
|
508
|
+
export type AgentRideAcceptValidation = {
|
|
509
|
+
params: Static<typeof AgentRideAcceptRVS.params>
|
|
510
|
+
body: Static<typeof AgentRideAcceptRVS.body>
|
|
511
|
+
response: Static<typeof AgentRideAcceptRVS.response>
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export const AgentRideStartRVS = {
|
|
515
|
+
headers: APIHeadersSchema,
|
|
516
|
+
params: Type.Object({ reference: Type.String() }),
|
|
517
|
+
body: Type.Object({
|
|
518
|
+
location: Type.Object({
|
|
519
|
+
lng: Type.Number(),
|
|
520
|
+
lat: Type.Number()
|
|
521
|
+
}),
|
|
522
|
+
odometerReading: Type.Optional(Type.Number()),
|
|
523
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
524
|
+
}),
|
|
525
|
+
response: Type.Intersect([
|
|
526
|
+
APIResponseBaseSchema,
|
|
527
|
+
APIResponseDataSchemaFactory({ ride: Type.Any() })
|
|
528
|
+
])
|
|
529
|
+
}
|
|
530
|
+
export type AgentRideStartValidation = {
|
|
531
|
+
params: Static<typeof AgentRideStartRVS.params>
|
|
532
|
+
body: Static<typeof AgentRideStartRVS.body>
|
|
533
|
+
response: Static<typeof AgentRideStartRVS.response>
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
export const AgentRideCompleteRVS = {
|
|
537
|
+
headers: APIHeadersSchema,
|
|
538
|
+
params: Type.Object({ reference: Type.String() }),
|
|
539
|
+
body: Type.Object({
|
|
540
|
+
location: Type.Object({
|
|
541
|
+
lng: Type.Number(),
|
|
542
|
+
lat: Type.Number()
|
|
543
|
+
}),
|
|
544
|
+
odometerReading: Type.Optional(Type.Number()),
|
|
545
|
+
actualFare: Type.Optional(Type.Number()),
|
|
546
|
+
paymentMethod: Type.Optional(Type.Union([
|
|
547
|
+
Type.Literal('CASH'),
|
|
548
|
+
Type.Literal('CARD'),
|
|
549
|
+
Type.Literal('WALLET'),
|
|
550
|
+
Type.Literal('OTHER')
|
|
551
|
+
])),
|
|
552
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
553
|
+
}),
|
|
554
|
+
response: Type.Intersect([
|
|
555
|
+
APIResponseBaseSchema,
|
|
556
|
+
APIResponseDataSchemaFactory({ ride: Type.Any() })
|
|
557
|
+
])
|
|
558
|
+
}
|
|
559
|
+
export type AgentRideCompleteValidation = {
|
|
560
|
+
params: Static<typeof AgentRideCompleteRVS.params>
|
|
561
|
+
body: Static<typeof AgentRideCompleteRVS.body>
|
|
562
|
+
response: Static<typeof AgentRideCompleteRVS.response>
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export const AgentRideCancelRVS = {
|
|
566
|
+
headers: APIHeadersSchema,
|
|
567
|
+
params: Type.Object({ reference: Type.String() }),
|
|
568
|
+
body: Type.Object({
|
|
569
|
+
reason: Type.Union([
|
|
570
|
+
Type.Literal('PASSENGER_NO_SHOW'),
|
|
571
|
+
Type.Literal('VEHICLE_ISSUE'),
|
|
572
|
+
Type.Literal('EMERGENCY'),
|
|
573
|
+
Type.Literal('PASSENGER_REQUESTED'),
|
|
574
|
+
Type.Literal('UNSAFE_LOCATION'),
|
|
575
|
+
Type.Literal('OTHER')
|
|
576
|
+
]),
|
|
577
|
+
notes: Type.String({ minLength: 10, maxLength: 500 })
|
|
578
|
+
}),
|
|
579
|
+
response: Type.Intersect([
|
|
580
|
+
APIResponseBaseSchema,
|
|
581
|
+
APIResponseDataSchemaFactory({ ride: Type.Any() })
|
|
582
|
+
])
|
|
583
|
+
}
|
|
584
|
+
export type AgentRideCancelValidation = {
|
|
585
|
+
params: Static<typeof AgentRideCancelRVS.params>
|
|
586
|
+
body: Static<typeof AgentRideCancelRVS.body>
|
|
587
|
+
response: Static<typeof AgentRideCancelRVS.response>
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// ─── Shipping validation types (aliases to Delivery) ────────────────────
|
|
591
|
+
|
|
592
|
+
export type AgentShippingListValidation = AgentDeliveryListValidation
|
|
593
|
+
export type AgentShippingGetValidation = AgentDeliveryGetValidation
|
|
594
|
+
export type AgentShippingAcceptValidation = AgentDeliveryAcceptValidation
|
|
595
|
+
export type AgentShippingUpdateStatusValidation = AgentDeliveryUpdateStatusValidation
|
|
596
|
+
export type AgentShippingReportIssueValidation = AgentDeliveryReportIssueValidation
|