@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,119 @@
|
|
|
1
|
+
import { Type } from '@sinclair/typebox'
|
|
2
|
+
|
|
3
|
+
// Inbound Order Stage Schema
|
|
4
|
+
export const InboundOrderStageSchema = Type.Union([
|
|
5
|
+
Type.Literal('UNLOADING'),
|
|
6
|
+
Type.Literal('INSPECTING'),
|
|
7
|
+
Type.Literal('RECEIVING'),
|
|
8
|
+
Type.Literal('PROCESSING'),
|
|
9
|
+
Type.Literal('ALLOCATING'),
|
|
10
|
+
Type.Literal('STORING')
|
|
11
|
+
])
|
|
12
|
+
|
|
13
|
+
// Outbound Order Stage Schema
|
|
14
|
+
export const OutboundOrderStageSchema = Type.Union([
|
|
15
|
+
Type.Literal('PROCESSING'),
|
|
16
|
+
Type.Literal('QUALITY_CHECK'),
|
|
17
|
+
Type.Literal('ALLOCATING'),
|
|
18
|
+
Type.Literal('PICKING'),
|
|
19
|
+
Type.Literal('PACKING'),
|
|
20
|
+
Type.Literal('STAGING'),
|
|
21
|
+
Type.Literal('LOADING') // Loading onto vehicle
|
|
22
|
+
])
|
|
23
|
+
|
|
24
|
+
// Internal Order Stage Schema
|
|
25
|
+
export const InternalOrderStageSchema = Type.Union([
|
|
26
|
+
Type.Literal('PROCESSING'),
|
|
27
|
+
Type.Literal('COUNTING'),
|
|
28
|
+
Type.Literal('MOVING'),
|
|
29
|
+
Type.Literal('ADJUSTING'),
|
|
30
|
+
Type.Literal('CONSOLIDATING'),
|
|
31
|
+
Type.Literal('KITTING'),
|
|
32
|
+
Type.Literal('ASSEMBLING'),
|
|
33
|
+
Type.Literal('EXCEPTION_REVIEW') // Exception handling
|
|
34
|
+
])
|
|
35
|
+
|
|
36
|
+
// Passthrough Order Stage Schema
|
|
37
|
+
export const PassthroughOrderStageSchema = Type.Union([
|
|
38
|
+
Type.Literal('ARRIVAL'), // Package arrives at hub
|
|
39
|
+
Type.Literal('RECEIVING'), // Package received and scanned
|
|
40
|
+
Type.Literal('INSPECTION'), // Package inspection
|
|
41
|
+
Type.Literal('SORTING'), // Sorting packages by destination
|
|
42
|
+
Type.Literal('PROCESSING'), // Package sorting process
|
|
43
|
+
Type.Literal('CONSOLIDATING'), // Package consolidation
|
|
44
|
+
Type.Literal('DECONSOLIDATING'), // Package consolidation
|
|
45
|
+
Type.Literal('ROUTE_OPTIMIZATION'), // Optimizing delivery routes
|
|
46
|
+
Type.Literal('STAGING'), // Package staging for dispatch
|
|
47
|
+
Type.Literal('UNLOADING'), // Loading onto vehicle
|
|
48
|
+
Type.Literal('LOADING'), // Loading onto vehicle
|
|
49
|
+
Type.Literal('DEPARTURE'), // Package left the hub
|
|
50
|
+
Type.Literal('EXCEPTION_REVIEW'), // Exception handling
|
|
51
|
+
Type.Literal('QUALITY_CHECK') // Quality verification
|
|
52
|
+
])
|
|
53
|
+
|
|
54
|
+
// Delivery Order Stage Schema (Rally last-mile dispatch)
|
|
55
|
+
export const DeliveryOrderStageSchema = Type.Union([
|
|
56
|
+
Type.Literal('PROCESSING'), // Queued in batch, awaiting dispatch
|
|
57
|
+
Type.Literal('READY_FOR_PICKUP'), // Origin party signalled item is ready
|
|
58
|
+
Type.Literal('DISPATCHING'), // Being matched to an available rider
|
|
59
|
+
Type.Literal('COLLECTING'), // Rider en route to pickup location
|
|
60
|
+
Type.Literal('COLLECTED'), // Rider has item; heading to dropoff
|
|
61
|
+
Type.Literal('DELIVERING'), // Rider en route to recipient
|
|
62
|
+
Type.Literal('CONFIRMING'), // Delivery confirmation at dropoff
|
|
63
|
+
Type.Literal('RETURNING'), // Failed delivery; returning to origin
|
|
64
|
+
Type.Literal('EXCEPTION_REVIEW'), // Requires manual / ops intervention
|
|
65
|
+
])
|
|
66
|
+
|
|
67
|
+
// Shipping Order Stage Schema
|
|
68
|
+
export const ShippingOrderStageSchema = Type.Union([
|
|
69
|
+
Type.Literal('DISPATCHING'), // Vehicle/driver assignment
|
|
70
|
+
Type.Literal('COLLECTING'), // Pickup operations
|
|
71
|
+
Type.Literal('TRANSPORTING'), // In-transit
|
|
72
|
+
Type.Literal('SORTING'), // Hub sorting
|
|
73
|
+
Type.Literal('TRANSFERRING'), // Hub transfers
|
|
74
|
+
Type.Literal('CONSOLIDATING'), // Load consolidation
|
|
75
|
+
Type.Literal('CLEARING'), // Customs clearance
|
|
76
|
+
Type.Literal('DELIVERING'), // Final delivery
|
|
77
|
+
Type.Literal('CONFIRMING'), // Delivery confirmation
|
|
78
|
+
Type.Literal('RETURNING') // Return processing
|
|
79
|
+
])
|
|
80
|
+
|
|
81
|
+
// Ride Stage Schema
|
|
82
|
+
export const RideStageSchema = Type.Union([
|
|
83
|
+
// BOOKING process stages
|
|
84
|
+
Type.Literal('REQUESTING'),
|
|
85
|
+
Type.Literal('PRICING'),
|
|
86
|
+
Type.Literal('SCHEDULE_PLANNING'), // Planning departure time
|
|
87
|
+
Type.Literal('CONFIRMING'),
|
|
88
|
+
|
|
89
|
+
// DISPATCH process stages
|
|
90
|
+
Type.Literal('SEARCHING'),
|
|
91
|
+
Type.Literal('ASSIGNING'),
|
|
92
|
+
Type.Literal('DRIVER_PREPARING'), // Driver preparing vehicle for long trip
|
|
93
|
+
Type.Literal('DRIVER_ACCEPTING'),
|
|
94
|
+
|
|
95
|
+
// PICKUP process stages
|
|
96
|
+
Type.Literal('DRIVER_EN_ROUTE'),
|
|
97
|
+
Type.Literal('DRIVER_ARRIVED'),
|
|
98
|
+
Type.Literal('WAITING_PASSENGER'),
|
|
99
|
+
Type.Literal('PASSENGER_BOARDING'),
|
|
100
|
+
Type.Literal('LUGGAGE_LOADING'), // Loading passenger luggage
|
|
101
|
+
|
|
102
|
+
// TRANSIT process stages
|
|
103
|
+
Type.Literal('IN_TRANSIT'),
|
|
104
|
+
Type.Literal('HIGHWAY_TRANSIT'), // On highway/interstate
|
|
105
|
+
Type.Literal('APPROACHING_DESTINATION'),
|
|
106
|
+
|
|
107
|
+
// REST_STOPS process stages
|
|
108
|
+
Type.Literal('REST_STOP_APPROACHING'),
|
|
109
|
+
Type.Literal('REST_STOP_ACTIVE'), // At rest stop
|
|
110
|
+
Type.Literal('RESUMING_TRANSIT'), // Continuing journey
|
|
111
|
+
|
|
112
|
+
// COMPLETION process stages
|
|
113
|
+
Type.Literal('ARRIVED_DESTINATION'),
|
|
114
|
+
Type.Literal('LUGGAGE_UNLOADING'),
|
|
115
|
+
Type.Literal('PASSENGER_ALIGHTING'),
|
|
116
|
+
Type.Literal('PAYMENT_PROCESSING'),
|
|
117
|
+
Type.Literal('RATING'),
|
|
118
|
+
Type.Literal('COMPLETED')
|
|
119
|
+
])
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ActionRecordSchema } from '../../time'
|
|
3
|
+
import { BaseOrderStatusSchema, BaseOrderFlowPrioritySchema, OrderAssigneeSchema, LSPBaseOrderSchema } from '../../order'
|
|
4
|
+
import { InboundOrderProcessSchema } from './flow/processes'
|
|
5
|
+
import { InboundOrderStageSchema } from './flow/stages'
|
|
6
|
+
|
|
7
|
+
// Inbound Order Status Schema (extends BaseOrderStatus)
|
|
8
|
+
export const InboundOrderStatusSchema = Type.Union([
|
|
9
|
+
...BaseOrderStatusSchema.anyOf,
|
|
10
|
+
Type.Literal('ARRIVED'),
|
|
11
|
+
Type.Literal('RECEIVED'),
|
|
12
|
+
Type.Literal('REJECTED'),
|
|
13
|
+
Type.Literal('UNPACKED'),
|
|
14
|
+
Type.Literal('QUALITY_CHECKED'),
|
|
15
|
+
Type.Literal('DISCREPANCY_FOUND'),
|
|
16
|
+
Type.Literal('ALLOCATED'),
|
|
17
|
+
Type.Literal('STORED')
|
|
18
|
+
])
|
|
19
|
+
|
|
20
|
+
// Inbound Order Flow Schema
|
|
21
|
+
export const InboundOrderFlowSchema = Type.Object({
|
|
22
|
+
process: InboundOrderProcessSchema,
|
|
23
|
+
stage: InboundOrderStageSchema, // Example stage flow: UNLOADING → INSPECTING → PROCESSING → ALLOCATING → STORING
|
|
24
|
+
status: InboundOrderStatusSchema,
|
|
25
|
+
priority: BaseOrderFlowPrioritySchema
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
// Inbound Order Schema (extends LSPBaseOrder)
|
|
29
|
+
export const InboundOrderSchema = Type.Intersect([
|
|
30
|
+
LSPBaseOrderSchema,
|
|
31
|
+
Type.Object({
|
|
32
|
+
flow: InboundOrderFlowSchema
|
|
33
|
+
})
|
|
34
|
+
])
|
|
35
|
+
|
|
36
|
+
// Outbound Order Log Schema
|
|
37
|
+
export const OutboundOrderLogSchema = Type.Intersect([
|
|
38
|
+
ActionRecordSchema,
|
|
39
|
+
Type.Object({
|
|
40
|
+
flow: InboundOrderFlowSchema,
|
|
41
|
+
assignee: OrderAssigneeSchema,
|
|
42
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
43
|
+
})
|
|
44
|
+
])
|
|
45
|
+
|
|
46
|
+
// Generate TypeScript types from schemas
|
|
47
|
+
export type InboundOrderProcess = Static<typeof InboundOrderProcessSchema>
|
|
48
|
+
export type InboundOrderStage = Static<typeof InboundOrderStageSchema>
|
|
49
|
+
export type InboundOrderStatus = Static<typeof InboundOrderStatusSchema>
|
|
50
|
+
export type InboundOrderFlow = Static<typeof InboundOrderFlowSchema>
|
|
51
|
+
export type InboundOrder = Static<typeof InboundOrderSchema>
|
|
52
|
+
export type OutboundOrderLog = Static<typeof OutboundOrderLogSchema>
|
|
53
|
+
|
|
54
|
+
// Validation helpers for process flow rules
|
|
55
|
+
export const InboundFlowValidationSchema = Type.Object({
|
|
56
|
+
process: InboundOrderProcessSchema,
|
|
57
|
+
allowedStages: Type.Array(InboundOrderStageSchema),
|
|
58
|
+
description: Type.String()
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
// Flow transition validation schema
|
|
62
|
+
export const InboundFlowTransitionSchema = Type.Object({
|
|
63
|
+
from: Type.Object({
|
|
64
|
+
process: InboundOrderProcessSchema,
|
|
65
|
+
stage: InboundOrderStageSchema,
|
|
66
|
+
status: InboundOrderStatusSchema
|
|
67
|
+
}),
|
|
68
|
+
to: Type.Object({
|
|
69
|
+
process: InboundOrderProcessSchema,
|
|
70
|
+
stage: InboundOrderStageSchema,
|
|
71
|
+
status: InboundOrderStatusSchema
|
|
72
|
+
}),
|
|
73
|
+
allowed: Type.Boolean(),
|
|
74
|
+
reason: Type.Optional(Type.String())
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
// Commented flow rules schema for future implementation
|
|
78
|
+
export const InboundFlowRulesSchema = Type.Record(
|
|
79
|
+
InboundOrderProcessSchema,
|
|
80
|
+
Type.Array(InboundOrderStageSchema),
|
|
81
|
+
{
|
|
82
|
+
description: 'Defines allowed stages for each inbound process',
|
|
83
|
+
examples: [{
|
|
84
|
+
'RECEIVING': ['UNLOADING', 'INSPECTING', 'RECEIVING', 'PROCESSING'],
|
|
85
|
+
'PUTAWAY': ['PROCESSING', 'ALLOCATING', 'STORING'],
|
|
86
|
+
'INVENTORY_ADJUSTMENT': ['PROCESSING', 'ALLOCATING'],
|
|
87
|
+
'RETURN_PROCESSING': ['PROCESSING', 'INSPECTING', 'ALLOCATING']
|
|
88
|
+
}]
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
export type InboundFlowValidation = Static<typeof InboundFlowValidationSchema>
|
|
93
|
+
export type InboundFlowTransition = Static<typeof InboundFlowTransitionSchema>
|
|
94
|
+
export type InboundFlowRules = Static<typeof InboundFlowRulesSchema>
|
|
95
|
+
|
|
96
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
97
|
+
|
|
98
|
+
import {
|
|
99
|
+
APIErrorSchema,
|
|
100
|
+
APIHeadersSchema,
|
|
101
|
+
APIResponseBaseSchema,
|
|
102
|
+
APIResponseDataSchemaFactory
|
|
103
|
+
} from '../../api'
|
|
104
|
+
|
|
105
|
+
export const InboundOrderCreateBodySchema = Type.Object({
|
|
106
|
+
process: InboundOrderProcessSchema,
|
|
107
|
+
priority: Type.Optional(Type.Union([
|
|
108
|
+
Type.Literal('LOW'), Type.Literal('NORMAL'),
|
|
109
|
+
Type.Literal('HIGH'), Type.Literal('URGENT')
|
|
110
|
+
])),
|
|
111
|
+
client: Type.Optional(Type.String()),
|
|
112
|
+
supplier: Type.Optional(Type.String()),
|
|
113
|
+
expectedArrival: Type.Optional(Type.Number()),
|
|
114
|
+
notes: Type.Optional(Type.String()),
|
|
115
|
+
items: Type.Optional(Type.Array(Type.Object({
|
|
116
|
+
sku: Type.String(),
|
|
117
|
+
description: Type.Optional(Type.String()),
|
|
118
|
+
expectedQuantity: Type.Number()
|
|
119
|
+
})))
|
|
120
|
+
})
|
|
121
|
+
|
|
122
|
+
export const InboundOrderCompleteBodySchema = Type.Object({
|
|
123
|
+
actualArrival: Type.Optional(Type.Number()),
|
|
124
|
+
notes: Type.Optional(Type.String()),
|
|
125
|
+
discrepancies: Type.Optional(Type.Array(Type.Object({
|
|
126
|
+
sku: Type.String(),
|
|
127
|
+
expectedQuantity: Type.Number(),
|
|
128
|
+
receivedQuantity: Type.Number(),
|
|
129
|
+
reason: Type.Optional(Type.String())
|
|
130
|
+
})))
|
|
131
|
+
})
|
|
132
|
+
|
|
133
|
+
export const InboundOrderUpdateBodySchema = Type.Object({
|
|
134
|
+
warehouse: Type.Optional(Type.String()),
|
|
135
|
+
notes: Type.Optional(Type.String()),
|
|
136
|
+
priority: Type.Optional(Type.String()),
|
|
137
|
+
expectedArrival: Type.Optional(Type.Number())
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
export const InboundOrderListQuerySchema = Type.Object({
|
|
141
|
+
status: Type.Optional(Type.String()),
|
|
142
|
+
clientId: Type.Optional(Type.String()),
|
|
143
|
+
fromDate: Type.Optional(Type.Number()),
|
|
144
|
+
toDate: Type.Optional(Type.Number()),
|
|
145
|
+
limit: Type.Optional(Type.Number()),
|
|
146
|
+
offset: Type.Optional(Type.Number())
|
|
147
|
+
})
|
|
148
|
+
|
|
149
|
+
export const InboundOrderStatusUpdateBodySchema = Type.Object({
|
|
150
|
+
status: InboundOrderStatusSchema,
|
|
151
|
+
notes: Type.Optional(Type.String())
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
export const LSPInboundOrderCreateRVS = {
|
|
155
|
+
headers: APIHeadersSchema,
|
|
156
|
+
body: InboundOrderCreateBodySchema,
|
|
157
|
+
response: {
|
|
158
|
+
201: APIResponseDataSchemaFactory({ reference: Type.String() }),
|
|
159
|
+
'4XX': APIErrorSchema
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export const LSPInboundOrderCompleteRVS = {
|
|
164
|
+
headers: APIHeadersSchema,
|
|
165
|
+
params: Type.Object({ reference: Type.String() }),
|
|
166
|
+
body: InboundOrderCompleteBodySchema,
|
|
167
|
+
response: {
|
|
168
|
+
200: APIResponseDataSchemaFactory({ order: InboundOrderSchema }),
|
|
169
|
+
'4XX': APIErrorSchema
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export const LSPInboundOrderUpdateRVS = {
|
|
174
|
+
headers: APIHeadersSchema,
|
|
175
|
+
params: Type.Object({ reference: Type.String() }),
|
|
176
|
+
body: InboundOrderUpdateBodySchema,
|
|
177
|
+
response: {
|
|
178
|
+
200: APIResponseDataSchemaFactory({ message: Type.String(), order: InboundOrderSchema }),
|
|
179
|
+
'4XX': APIErrorSchema
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export const LSPInboundOrderRetrieveRVS = {
|
|
184
|
+
headers: APIHeadersSchema,
|
|
185
|
+
params: Type.Object({ reference: Type.String() }),
|
|
186
|
+
response: {
|
|
187
|
+
200: APIResponseDataSchemaFactory({ order: InboundOrderSchema, jrtoken: Type.String() }),
|
|
188
|
+
'4XX': APIErrorSchema
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export const LSPInboundOrderListRVS = {
|
|
193
|
+
headers: APIHeadersSchema,
|
|
194
|
+
querystring: InboundOrderListQuerySchema,
|
|
195
|
+
response: {
|
|
196
|
+
200: APIResponseDataSchemaFactory({ orders: Type.Array(InboundOrderSchema), total: Type.Number() }),
|
|
197
|
+
'4XX': APIErrorSchema
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export const LSPInboundOrderUpdateStatusRVS = {
|
|
202
|
+
headers: APIHeadersSchema,
|
|
203
|
+
params: Type.Object({ reference: Type.String() }),
|
|
204
|
+
body: InboundOrderStatusUpdateBodySchema,
|
|
205
|
+
response: {
|
|
206
|
+
200: APIResponseDataSchemaFactory({ message: Type.String(), order: InboundOrderSchema }),
|
|
207
|
+
'4XX': APIErrorSchema
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type LSPInboundOrderCreateValidation = { body: Static<typeof LSPInboundOrderCreateRVS.body>, response: Static<(typeof LSPInboundOrderCreateRVS.response)[201]> }
|
|
212
|
+
export type LSPInboundOrderCompleteValidation = { params: Static<typeof LSPInboundOrderCompleteRVS.params>, body: Static<typeof LSPInboundOrderCompleteRVS.body>, response: Static<(typeof LSPInboundOrderCompleteRVS.response)[200]> }
|
|
213
|
+
export type LSPInboundOrderUpdateValidation = { params: Static<typeof LSPInboundOrderUpdateRVS.params>, body: Static<typeof LSPInboundOrderUpdateRVS.body>, response: Static<(typeof LSPInboundOrderUpdateRVS.response)[200]> }
|
|
214
|
+
export type LSPInboundOrderRetrieveValidation = { params: Static<typeof LSPInboundOrderRetrieveRVS.params>, response: Static<(typeof LSPInboundOrderRetrieveRVS.response)[200]> }
|
|
215
|
+
export type LSPInboundOrderListValidation = { querystring: Static<typeof LSPInboundOrderListRVS.querystring>, response: Static<(typeof LSPInboundOrderListRVS.response)[200]> }
|
|
216
|
+
export type LSPInboundOrderUpdateStatusValidation = { params: Static<typeof LSPInboundOrderUpdateStatusRVS.params>, body: Static<typeof LSPInboundOrderUpdateStatusRVS.body>, response: Static<(typeof LSPInboundOrderUpdateStatusRVS.response)[200]> }
|
|
217
|
+
|
|
218
|
+
export const LSPInboundOrderAssignRVS = {
|
|
219
|
+
headers: APIHeadersSchema,
|
|
220
|
+
params: Type.Object({
|
|
221
|
+
reference: Type.String(),
|
|
222
|
+
action: Type.Union([Type.Literal('assign'), Type.Literal('unassign')]),
|
|
223
|
+
to: Type.Union([Type.Literal('agent'), Type.Literal('operator')])
|
|
224
|
+
}),
|
|
225
|
+
body: Type.Object({ id: Type.String() }),
|
|
226
|
+
response: {
|
|
227
|
+
200: APIResponseDataSchemaFactory({ orderId: Type.String(), assigneeType: Type.String() }),
|
|
228
|
+
'4XX': APIErrorSchema
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export type LSPInboundOrderAssignValidation = { params: Static<typeof LSPInboundOrderAssignRVS.params>, body: Static<typeof LSPInboundOrderAssignRVS.body>, response: Static<(typeof LSPInboundOrderAssignRVS.response)[200]> }
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ActionRecordSchema } from '../../time'
|
|
3
|
+
import { BaseOrderStatusSchema, BaseOrderFlowPrioritySchema, OrderAssigneeSchema, LSPBaseOrderSchema } from '../../order'
|
|
4
|
+
import { InternalOrderProcessSchema } from './flow/processes'
|
|
5
|
+
import { InternalOrderStageSchema } from './flow/stages'
|
|
6
|
+
import { PSLAddressSchema } from '../psl'
|
|
7
|
+
|
|
8
|
+
// Internal Order Status Schema (extends BaseOrderStatus)
|
|
9
|
+
export const InternalOrderStatusSchema = Type.Union([
|
|
10
|
+
...BaseOrderStatusSchema.anyOf, // Include all BaseOrderStatus values
|
|
11
|
+
Type.Literal('PICKED'),
|
|
12
|
+
Type.Literal('PACKED'),
|
|
13
|
+
Type.Literal('COUNTED'),
|
|
14
|
+
Type.Literal('MOVED'),
|
|
15
|
+
Type.Literal('ADJUSTED'),
|
|
16
|
+
Type.Literal('CONSOLIDATED'),
|
|
17
|
+
Type.Literal('KITTED'),
|
|
18
|
+
Type.Literal('ASSEMBLED'),
|
|
19
|
+
Type.Literal('VERIFIED')
|
|
20
|
+
])
|
|
21
|
+
|
|
22
|
+
// Internal Order Flow Schema
|
|
23
|
+
export const InternalOrderFlowSchema = Type.Object({
|
|
24
|
+
process: InternalOrderProcessSchema,
|
|
25
|
+
stage: InternalOrderStageSchema,
|
|
26
|
+
status: InternalOrderStatusSchema,
|
|
27
|
+
priority: BaseOrderFlowPrioritySchema
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
// Internal Order Schema (extends LSPBaseOrder)
|
|
31
|
+
export const InternalOrderSchema = Type.Intersect([
|
|
32
|
+
LSPBaseOrderSchema,
|
|
33
|
+
Type.Object({
|
|
34
|
+
flow: InternalOrderFlowSchema,
|
|
35
|
+
|
|
36
|
+
// Movement context for warehouse operations
|
|
37
|
+
origin: Type.Optional(Type.Object({
|
|
38
|
+
address: PSLAddressSchema,
|
|
39
|
+
description: Type.Optional(Type.String())
|
|
40
|
+
})),
|
|
41
|
+
destination: Type.Optional(Type.Object({
|
|
42
|
+
address: PSLAddressSchema,
|
|
43
|
+
description: Type.Optional(Type.String())
|
|
44
|
+
}))
|
|
45
|
+
})
|
|
46
|
+
])
|
|
47
|
+
|
|
48
|
+
// Internal Order Log Schema
|
|
49
|
+
export const InternalOrderLogSchema = Type.Intersect([
|
|
50
|
+
ActionRecordSchema,
|
|
51
|
+
Type.Object({
|
|
52
|
+
flow: InternalOrderFlowSchema,
|
|
53
|
+
assignee: OrderAssigneeSchema,
|
|
54
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
55
|
+
})
|
|
56
|
+
])
|
|
57
|
+
|
|
58
|
+
// Generate TypeScript types from schemas
|
|
59
|
+
export type InternalOrderProcess = Static<typeof InternalOrderProcessSchema>
|
|
60
|
+
export type InternalOrderStage = Static<typeof InternalOrderStageSchema>
|
|
61
|
+
export type InternalOrderStatus = Static<typeof InternalOrderStatusSchema>
|
|
62
|
+
export type InternalOrderFlow = Static<typeof InternalOrderFlowSchema>
|
|
63
|
+
export type InternalOrder = Static<typeof InternalOrderSchema>
|
|
64
|
+
export type InternalOrderLog = Static<typeof InternalOrderLogSchema>
|
|
65
|
+
|
|
66
|
+
// Validation helpers for internal order operations
|
|
67
|
+
export const InternalOrderValidationSchema = Type.Object({
|
|
68
|
+
process: InternalOrderProcessSchema,
|
|
69
|
+
requiredStages: Type.Array(InternalOrderStageSchema),
|
|
70
|
+
allowedTransitions: Type.Array(Type.Object({
|
|
71
|
+
from: InternalOrderStatusSchema,
|
|
72
|
+
to: InternalOrderStatusSchema
|
|
73
|
+
}))
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
// Internal order process definitions
|
|
77
|
+
export const InternalOrderProcessDefinitionSchema = Type.Object({
|
|
78
|
+
process: InternalOrderProcessSchema,
|
|
79
|
+
description: Type.String(),
|
|
80
|
+
defaultStages: Type.Array(InternalOrderStageSchema),
|
|
81
|
+
estimatedDuration: Type.Optional(Type.Number({ description: 'Duration in minutes' })),
|
|
82
|
+
requiredPermissions: Type.Optional(Type.Array(Type.String())),
|
|
83
|
+
automatable: Type.Optional(Type.Boolean())
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
export type InternalOrderValidation = Static<typeof InternalOrderValidationSchema>
|
|
87
|
+
export type InternalOrderProcessDefinition = Static<typeof InternalOrderProcessDefinitionSchema>
|
|
88
|
+
|
|
89
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
90
|
+
|
|
91
|
+
import {
|
|
92
|
+
APIErrorSchema,
|
|
93
|
+
APIHeadersSchema,
|
|
94
|
+
APIResponseBaseSchema,
|
|
95
|
+
APIResponseDataSchemaFactory
|
|
96
|
+
} from '../../api'
|
|
97
|
+
|
|
98
|
+
const TaskPrioritySchema = Type.Union([
|
|
99
|
+
Type.Literal('LOW'), Type.Literal('NORMAL'),
|
|
100
|
+
Type.Literal('HIGH'), Type.Literal('URGENT')
|
|
101
|
+
])
|
|
102
|
+
|
|
103
|
+
export const TaskCreateBodySchema = Type.Object({
|
|
104
|
+
process: InternalOrderProcessSchema,
|
|
105
|
+
priority: Type.Optional(TaskPrioritySchema),
|
|
106
|
+
sourceLocation: Type.Optional(Type.String()),
|
|
107
|
+
targetLocation: Type.Optional(Type.String()),
|
|
108
|
+
productId: Type.Optional(Type.String()),
|
|
109
|
+
quantity: Type.Optional(Type.Number()),
|
|
110
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any())),
|
|
111
|
+
notes: Type.Optional(Type.String()),
|
|
112
|
+
scheduledFor: Type.Optional(Type.Number())
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
export const TaskListQuerySchema = Type.Object({
|
|
116
|
+
process: Type.Optional(InternalOrderProcessSchema),
|
|
117
|
+
status: Type.Optional(Type.String()),
|
|
118
|
+
assigneeId: Type.Optional(Type.String()),
|
|
119
|
+
priority: Type.Optional(Type.String()),
|
|
120
|
+
fromDate: Type.Optional(Type.Number()),
|
|
121
|
+
toDate: Type.Optional(Type.Number()),
|
|
122
|
+
limit: Type.Optional(Type.Number()),
|
|
123
|
+
offset: Type.Optional(Type.Number())
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
export const TaskUpdateBodySchema = Type.Object({
|
|
127
|
+
priority: Type.Optional(Type.String()),
|
|
128
|
+
sourceLocation: Type.Optional(Type.String()),
|
|
129
|
+
targetLocation: Type.Optional(Type.String()),
|
|
130
|
+
quantity: Type.Optional(Type.Number()),
|
|
131
|
+
notes: Type.Optional(Type.String()),
|
|
132
|
+
scheduledFor: Type.Optional(Type.Number())
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
export const TaskStatusUpdateBodySchema = Type.Object({
|
|
136
|
+
status: InternalOrderStatusSchema,
|
|
137
|
+
notes: Type.Optional(Type.String()),
|
|
138
|
+
verificationData: Type.Optional(Type.Object({
|
|
139
|
+
scannedBarcodes: Type.Optional(Type.Array(Type.String())),
|
|
140
|
+
actualQuantity: Type.Optional(Type.Number()),
|
|
141
|
+
discrepancy: Type.Optional(Type.Boolean()),
|
|
142
|
+
photoUrls: Type.Optional(Type.Array(Type.String()))
|
|
143
|
+
}))
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
export const TaskCompleteBodySchema = Type.Object({
|
|
147
|
+
actualQuantity: Type.Optional(Type.Number()),
|
|
148
|
+
verificationData: Type.Optional(Type.Object({
|
|
149
|
+
scannedBarcodes: Type.Optional(Type.Array(Type.String())),
|
|
150
|
+
discrepancies: Type.Optional(Type.Array(Type.Object({
|
|
151
|
+
type: Type.String(),
|
|
152
|
+
description: Type.String(),
|
|
153
|
+
severity: Type.Union([Type.Literal('LOW'), Type.Literal('MEDIUM'), Type.Literal('HIGH')])
|
|
154
|
+
}))),
|
|
155
|
+
photoUrls: Type.Optional(Type.Array(Type.String())),
|
|
156
|
+
signature: Type.Optional(Type.String())
|
|
157
|
+
})),
|
|
158
|
+
notes: Type.Optional(Type.String())
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
export const TaskBatchCreateBodySchema = Type.Object({
|
|
162
|
+
process: InternalOrderProcessSchema,
|
|
163
|
+
tasks: Type.Array(Type.Object({
|
|
164
|
+
sourceLocation: Type.Optional(Type.String()),
|
|
165
|
+
targetLocation: Type.Optional(Type.String()),
|
|
166
|
+
productId: Type.Optional(Type.String()),
|
|
167
|
+
quantity: Type.Optional(Type.Number()),
|
|
168
|
+
priority: Type.Optional(Type.String()),
|
|
169
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Any()))
|
|
170
|
+
})),
|
|
171
|
+
waveId: Type.Optional(Type.String()),
|
|
172
|
+
scheduledFor: Type.Optional(Type.Number()),
|
|
173
|
+
notes: Type.Optional(Type.String())
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
export const TaskPerformanceQuerySchema = Type.Object({
|
|
177
|
+
process: Type.Optional(InternalOrderProcessSchema),
|
|
178
|
+
assigneeId: Type.Optional(Type.String()),
|
|
179
|
+
fromDate: Type.Optional(Type.Number()),
|
|
180
|
+
toDate: Type.Optional(Type.Number())
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
export const LSPTaskCreateRVS = {
|
|
184
|
+
headers: APIHeadersSchema,
|
|
185
|
+
body: TaskCreateBodySchema,
|
|
186
|
+
response: {
|
|
187
|
+
201: APIResponseDataSchemaFactory({ taskId: Type.String(), reference: Type.String() }),
|
|
188
|
+
'4XX': APIErrorSchema
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export const LSPTaskListRVS = {
|
|
193
|
+
headers: APIHeadersSchema,
|
|
194
|
+
querystring: TaskListQuerySchema,
|
|
195
|
+
response: {
|
|
196
|
+
200: APIResponseDataSchemaFactory({ tasks: Type.Array(InternalOrderSchema), total: Type.Number() }),
|
|
197
|
+
'4XX': APIErrorSchema
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export const LSPTaskRetrieveRVS = {
|
|
202
|
+
headers: APIHeadersSchema,
|
|
203
|
+
params: Type.Object({ reference: Type.String() }),
|
|
204
|
+
response: {
|
|
205
|
+
200: APIResponseDataSchemaFactory({ task: InternalOrderSchema, jrtoken: Type.String() }),
|
|
206
|
+
'4XX': APIErrorSchema
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export const LSPTaskUpdateRVS = {
|
|
211
|
+
headers: APIHeadersSchema,
|
|
212
|
+
params: Type.Object({ reference: Type.String() }),
|
|
213
|
+
body: TaskUpdateBodySchema,
|
|
214
|
+
response: {
|
|
215
|
+
200: APIResponseDataSchemaFactory({ message: Type.String(), task: InternalOrderSchema }),
|
|
216
|
+
'4XX': APIErrorSchema
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export const LSPTaskUpdateStatusRVS = {
|
|
221
|
+
headers: APIHeadersSchema,
|
|
222
|
+
params: Type.Object({ reference: Type.String() }),
|
|
223
|
+
body: TaskStatusUpdateBodySchema,
|
|
224
|
+
response: {
|
|
225
|
+
200: APIResponseDataSchemaFactory({ message: Type.String(), task: InternalOrderSchema }),
|
|
226
|
+
'4XX': APIErrorSchema
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export const LSPTaskCompleteRVS = {
|
|
231
|
+
headers: APIHeadersSchema,
|
|
232
|
+
params: Type.Object({ reference: Type.String() }),
|
|
233
|
+
body: TaskCompleteBodySchema,
|
|
234
|
+
response: {
|
|
235
|
+
200: APIResponseDataSchemaFactory({ message: Type.String(), task: InternalOrderSchema }),
|
|
236
|
+
'4XX': APIErrorSchema
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export const LSPTaskBatchCreateRVS = {
|
|
241
|
+
headers: APIHeadersSchema,
|
|
242
|
+
body: TaskBatchCreateBodySchema,
|
|
243
|
+
response: {
|
|
244
|
+
201: APIResponseDataSchemaFactory({
|
|
245
|
+
created: Type.Number(),
|
|
246
|
+
tasks: Type.Array(Type.Object({ taskId: Type.String(), reference: Type.String() })),
|
|
247
|
+
waveId: Type.Optional(Type.String())
|
|
248
|
+
}),
|
|
249
|
+
'4XX': APIErrorSchema
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export const LSPTaskCancelRVS = {
|
|
254
|
+
headers: APIHeadersSchema,
|
|
255
|
+
params: Type.Object({ reference: Type.String() }),
|
|
256
|
+
body: Type.Object({ reason: Type.String(), notes: Type.Optional(Type.String()) }),
|
|
257
|
+
response: {
|
|
258
|
+
200: APIResponseBaseSchema,
|
|
259
|
+
'4XX': APIErrorSchema
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export const LSPTaskPerformanceRVS = {
|
|
264
|
+
headers: APIHeadersSchema,
|
|
265
|
+
querystring: TaskPerformanceQuerySchema,
|
|
266
|
+
response: {
|
|
267
|
+
200: APIResponseDataSchemaFactory({
|
|
268
|
+
metrics: Type.Object({
|
|
269
|
+
totalTasks: Type.Number(),
|
|
270
|
+
completedTasks: Type.Number(),
|
|
271
|
+
averageCompletionTime: Type.Number(),
|
|
272
|
+
tasksPerHour: Type.Number(),
|
|
273
|
+
accuracyRate: Type.Number(),
|
|
274
|
+
byProcess: Type.Record(Type.String(), Type.Any()),
|
|
275
|
+
byPriority: Type.Record(Type.String(), Type.Number())
|
|
276
|
+
})
|
|
277
|
+
}),
|
|
278
|
+
'4XX': APIErrorSchema
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type LSPTaskCreateValidation = { body: Static<typeof LSPTaskCreateRVS.body>, response: Static<(typeof LSPTaskCreateRVS.response)[201]> }
|
|
283
|
+
export type LSPTaskListValidation = { querystring: Static<typeof LSPTaskListRVS.querystring>, response: Static<(typeof LSPTaskListRVS.response)[200]> }
|
|
284
|
+
export type LSPTaskRetrieveValidation = { params: Static<typeof LSPTaskRetrieveRVS.params>, response: Static<(typeof LSPTaskRetrieveRVS.response)[200]> }
|
|
285
|
+
export type LSPTaskUpdateValidation = { params: Static<typeof LSPTaskUpdateRVS.params>, body: Static<typeof LSPTaskUpdateRVS.body>, response: Static<(typeof LSPTaskUpdateRVS.response)[200]> }
|
|
286
|
+
export type LSPTaskUpdateStatusValidation = { params: Static<typeof LSPTaskUpdateStatusRVS.params>, body: Static<typeof LSPTaskUpdateStatusRVS.body>, response: Static<(typeof LSPTaskUpdateStatusRVS.response)[200]> }
|
|
287
|
+
export type LSPTaskCompleteValidation = { params: Static<typeof LSPTaskCompleteRVS.params>, body: Static<typeof LSPTaskCompleteRVS.body>, response: Static<(typeof LSPTaskCompleteRVS.response)[200]> }
|
|
288
|
+
export type LSPTaskBatchCreateValidation = { body: Static<typeof LSPTaskBatchCreateRVS.body>, response: Static<(typeof LSPTaskBatchCreateRVS.response)[201]> }
|
|
289
|
+
export type LSPTaskCancelValidation = { params: Static<typeof LSPTaskCancelRVS.params>, body: Static<typeof LSPTaskCancelRVS.body>, response: Static<(typeof LSPTaskCancelRVS.response)[200]> }
|
|
290
|
+
export type LSPTaskPerformanceValidation = { querystring: Static<typeof LSPTaskPerformanceRVS.querystring>, response: Static<(typeof LSPTaskPerformanceRVS.response)[200]> }
|
|
291
|
+
|
|
292
|
+
export const LSPTaskAssignRVS = {
|
|
293
|
+
headers: APIHeadersSchema,
|
|
294
|
+
params: Type.Object({
|
|
295
|
+
reference: Type.String(),
|
|
296
|
+
action: Type.Union([Type.Literal('assign'), Type.Literal('unassign')]),
|
|
297
|
+
to: Type.Union([Type.Literal('agent'), Type.Literal('operator')])
|
|
298
|
+
}),
|
|
299
|
+
body: Type.Object({ id: Type.String() }),
|
|
300
|
+
response: {
|
|
301
|
+
200: APIResponseBaseSchema,
|
|
302
|
+
'4XX': APIErrorSchema
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
export type LSPTaskAssignValidation = { params: Static<typeof LSPTaskAssignRVS.params>, body: Static<typeof LSPTaskAssignRVS.body>, response: Static<(typeof LSPTaskAssignRVS.response)[200]> }
|