@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,298 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { MoneySchema, LengthSchema, ServiceLevelSchema } from '../../measure'
|
|
3
|
+
import {
|
|
4
|
+
BaseServiceDefinitionSchema,
|
|
5
|
+
BaseServiceDefinitionUpdateSchema
|
|
6
|
+
} from '../../service'
|
|
7
|
+
import { PSLSchema, PSLAccessibleSchema, PSLZoneTypeSchema } from '../psl'
|
|
8
|
+
import { HubPerformanceSchema } from './performance'
|
|
9
|
+
import { EntityStatusSchema } from '../../entity'
|
|
10
|
+
import {
|
|
11
|
+
APIErrorSchema,
|
|
12
|
+
APIHeadersSchema,
|
|
13
|
+
APIResponseBaseSchema,
|
|
14
|
+
APIResponseDataSchemaFactory
|
|
15
|
+
} from '../../api'
|
|
16
|
+
|
|
17
|
+
// Hub Partition Schema
|
|
18
|
+
export const HubZoneSchema = Type.Composite([
|
|
19
|
+
PSLSchema,
|
|
20
|
+
Type.Object({
|
|
21
|
+
type: Type.Literal('ZONE'),
|
|
22
|
+
zoneType: PSLZoneTypeSchema,
|
|
23
|
+
parentId: Type.String({ description: 'Must belong to a hub' }),
|
|
24
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
25
|
+
pickingMethod: Type.Optional(Type.Union([
|
|
26
|
+
Type.Literal('PIECE'),
|
|
27
|
+
Type.Literal('CASE'),
|
|
28
|
+
Type.Literal('PALLET'),
|
|
29
|
+
Type.Literal('BULK')
|
|
30
|
+
])),
|
|
31
|
+
storageMethod: Type.Optional(Type.Union([
|
|
32
|
+
Type.Literal('RANDOM'),
|
|
33
|
+
Type.Literal('FIXED'),
|
|
34
|
+
Type.Literal('DIRECTED')
|
|
35
|
+
])),
|
|
36
|
+
flowPattern: Type.Optional(Type.Union([
|
|
37
|
+
Type.Literal('FIFO'),
|
|
38
|
+
Type.Literal('LIFO'),
|
|
39
|
+
Type.Literal('FEFO')
|
|
40
|
+
], { description: 'First/Last In First Out, First Expired First Out' }))
|
|
41
|
+
})
|
|
42
|
+
])
|
|
43
|
+
export const HubAisleSchema = Type.Composite([
|
|
44
|
+
PSLSchema,
|
|
45
|
+
Type.Object({
|
|
46
|
+
type: Type.Literal('AISLE'),
|
|
47
|
+
parentId: Type.String({ description: 'Must belong to a zone' }),
|
|
48
|
+
width: LengthSchema,
|
|
49
|
+
trafficDirection: Type.Union([
|
|
50
|
+
Type.Literal('ONE_WAY'),
|
|
51
|
+
Type.Literal('TWO_WAY')
|
|
52
|
+
]),
|
|
53
|
+
equipmentAccess: Type.Array(PSLAccessibleSchema),
|
|
54
|
+
pickDirection: Type.Union([
|
|
55
|
+
Type.Literal('FORWARD'),
|
|
56
|
+
Type.Literal('REVERSE'),
|
|
57
|
+
Type.Literal('SERPENTINE')
|
|
58
|
+
]),
|
|
59
|
+
pickSequenceStart: Type.Number({ minimum: 1 })
|
|
60
|
+
})
|
|
61
|
+
])
|
|
62
|
+
export const HubBaySchema = Type.Composite([
|
|
63
|
+
PSLSchema,
|
|
64
|
+
Type.Object({
|
|
65
|
+
type: Type.Literal('BAY'),
|
|
66
|
+
parentId: Type.String({ description: 'Must belong to an aisle' }),
|
|
67
|
+
structureType: Type.Union([
|
|
68
|
+
Type.Literal('RACK'),
|
|
69
|
+
Type.Literal('SHELF'),
|
|
70
|
+
Type.Literal('FLOOR'),
|
|
71
|
+
Type.Literal('CANTILEVER'),
|
|
72
|
+
Type.Literal('CAROUSEL')
|
|
73
|
+
]),
|
|
74
|
+
maxLevels: Type.Number({ minimum: 1 }),
|
|
75
|
+
levelHeight: LengthSchema,
|
|
76
|
+
safetyRating: Type.Number({
|
|
77
|
+
minimum: 0,
|
|
78
|
+
description: 'max weight per level'
|
|
79
|
+
}),
|
|
80
|
+
requiresEquipment: Type.Boolean()
|
|
81
|
+
})
|
|
82
|
+
])
|
|
83
|
+
export const HubSlotSchema = Type.Composite([
|
|
84
|
+
PSLSchema,
|
|
85
|
+
Type.Object({
|
|
86
|
+
type: Type.Literal('SLOT'),
|
|
87
|
+
parentId: Type.String({ description: 'Must belong to a bay' }),
|
|
88
|
+
pickFace: Type.Boolean({ description: 'Is this a primary pick location?' }),
|
|
89
|
+
replenishmentSource: Type.Optional(Type.String({
|
|
90
|
+
description: 'Source slot for replenishment'
|
|
91
|
+
})),
|
|
92
|
+
dedicatedProduct: Type.Optional(Type.String({
|
|
93
|
+
description: 'Product ID if dedicated slot'
|
|
94
|
+
})),
|
|
95
|
+
allowMixedProducts: Type.Boolean(),
|
|
96
|
+
currentProduct: Type.Optional(Type.String({
|
|
97
|
+
description: 'Currently stored product'
|
|
98
|
+
})),
|
|
99
|
+
lastInventoryDate: Type.Optional(Type.Number()),
|
|
100
|
+
cycleCountDue: Type.Optional(Type.Boolean())
|
|
101
|
+
})
|
|
102
|
+
])
|
|
103
|
+
|
|
104
|
+
// Hub Type Schema - Industry standard hub classifications
|
|
105
|
+
export const HubTypeSchema = Type.Union([
|
|
106
|
+
Type.Literal('SORTING'), // Central sorting facility
|
|
107
|
+
Type.Literal('DISTRIBUTION'), // Regional distribution center
|
|
108
|
+
Type.Literal('TRANSIT'), // Mid-route transfer point
|
|
109
|
+
Type.Literal('CROSS_DOCK'), // Direct transfer without storage
|
|
110
|
+
Type.Literal('LAST_MILE'), // Final delivery preparation
|
|
111
|
+
Type.Literal('CONSOLIDATION'), // Package consolidation center
|
|
112
|
+
Type.Literal('GATEWAY') // International/customs hub
|
|
113
|
+
])
|
|
114
|
+
|
|
115
|
+
export const HubSchema = Type.Composite([
|
|
116
|
+
BaseServiceDefinitionSchema,
|
|
117
|
+
Type.Object({
|
|
118
|
+
type: HubTypeSchema,
|
|
119
|
+
|
|
120
|
+
// Hub capability, Capacity
|
|
121
|
+
capabilities: Type.Array(Type.String()), // Capability Composite IDs
|
|
122
|
+
capacities: Type.Array(Type.String()), // Capacity Composite IDs
|
|
123
|
+
pricing: Type.Array(Type.String()), // Pricing rules Codes
|
|
124
|
+
|
|
125
|
+
// Performance
|
|
126
|
+
performance: Type.Optional(HubPerformanceSchema)
|
|
127
|
+
})
|
|
128
|
+
])
|
|
129
|
+
export const HubUpdateSchema = Type.Composite([
|
|
130
|
+
BaseServiceDefinitionUpdateSchema,
|
|
131
|
+
Type.Object({
|
|
132
|
+
type: Type.Optional(HubTypeSchema)
|
|
133
|
+
})
|
|
134
|
+
])
|
|
135
|
+
|
|
136
|
+
export type HubZone = Static<typeof HubZoneSchema>
|
|
137
|
+
export type HubAisle = Static<typeof HubAisleSchema>
|
|
138
|
+
export type HubBay = Static<typeof HubBaySchema>
|
|
139
|
+
export type HubSlot = Static<typeof HubSlotSchema>
|
|
140
|
+
export type HubType = Static<typeof HubTypeSchema>
|
|
141
|
+
export type Hub = Static<typeof HubSchema>
|
|
142
|
+
export type HubUpdate = Static<typeof HubUpdateSchema>
|
|
143
|
+
|
|
144
|
+
// ===== UTILITY SCHEMAS =====
|
|
145
|
+
|
|
146
|
+
// Hub Performance Analytics Schema
|
|
147
|
+
export const HubAnalyticsSchema = Type.Object({
|
|
148
|
+
hubId: Type.String(),
|
|
149
|
+
period: Type.Object({
|
|
150
|
+
start: Type.Number(),
|
|
151
|
+
end: Type.Number()
|
|
152
|
+
}),
|
|
153
|
+
metrics: HubPerformanceSchema,
|
|
154
|
+
trends: Type.Object({
|
|
155
|
+
throughputTrend: Type.Number({ description: 'percentage change' }),
|
|
156
|
+
efficiencyTrend: Type.Number({ description: 'percentage change' }),
|
|
157
|
+
qualityTrend: Type.Number({ description: 'percentage change' })
|
|
158
|
+
}),
|
|
159
|
+
benchmarks: Type.Optional(Type.Object({
|
|
160
|
+
industryAverage: Type.Partial(HubPerformanceSchema),
|
|
161
|
+
networkAverage: Type.Partial(HubPerformanceSchema),
|
|
162
|
+
bestPerforming: Type.Partial(HubPerformanceSchema)
|
|
163
|
+
})),
|
|
164
|
+
recommendations: Type.Optional(Type.Array(Type.Object({
|
|
165
|
+
type: Type.String(),
|
|
166
|
+
priority: Type.Union([
|
|
167
|
+
Type.Literal('LOW'),
|
|
168
|
+
Type.Literal('MEDIUM'),
|
|
169
|
+
Type.Literal('HIGH')
|
|
170
|
+
]),
|
|
171
|
+
description: Type.String(),
|
|
172
|
+
expectedImpact: Type.String()
|
|
173
|
+
})))
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
// Hub Capacity Planning Schema
|
|
177
|
+
export const HubCapacityPlanningSchema = Type.Object({
|
|
178
|
+
hubId: Type.String(),
|
|
179
|
+
currentCapacity: Type.Object({
|
|
180
|
+
processing: Type.Number({ description: 'packages per hour' }),
|
|
181
|
+
storage: Type.Number({ description: 'packages' }),
|
|
182
|
+
sorting: Type.Number({ description: 'packages per hour' })
|
|
183
|
+
}),
|
|
184
|
+
forecastedDemand: Type.Array(Type.Object({
|
|
185
|
+
period: Type.String(),
|
|
186
|
+
expectedVolume: Type.Number(),
|
|
187
|
+
peakVolume: Type.Number(),
|
|
188
|
+
serviceLevel: ServiceLevelSchema
|
|
189
|
+
})),
|
|
190
|
+
capacityGaps: Type.Array(Type.Object({
|
|
191
|
+
period: Type.String(),
|
|
192
|
+
gapType: Type.Union([
|
|
193
|
+
Type.Literal('PROCESSING'),
|
|
194
|
+
Type.Literal('STORAGE'),
|
|
195
|
+
Type.Literal('SORTING'),
|
|
196
|
+
Type.Literal('STAFFING')
|
|
197
|
+
]),
|
|
198
|
+
gapSize: Type.Number(),
|
|
199
|
+
severity: Type.Union([
|
|
200
|
+
Type.Literal('LOW'),
|
|
201
|
+
Type.Literal('MEDIUM'),
|
|
202
|
+
Type.Literal('HIGH'),
|
|
203
|
+
Type.Literal('CRITICAL')
|
|
204
|
+
])
|
|
205
|
+
})),
|
|
206
|
+
recommendations: Type.Array(Type.Object({
|
|
207
|
+
action: Type.String(),
|
|
208
|
+
investment: Type.Optional(MoneySchema),
|
|
209
|
+
timeline: Type.String(),
|
|
210
|
+
expectedBenefit: Type.String()
|
|
211
|
+
}))
|
|
212
|
+
})
|
|
213
|
+
|
|
214
|
+
export type HubAnalytics = Static<typeof HubAnalyticsSchema>
|
|
215
|
+
export type HubCapacityPlanning = Static<typeof HubCapacityPlanningSchema>
|
|
216
|
+
|
|
217
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
218
|
+
|
|
219
|
+
export const HubCreateBodySchema = Type.Omit(HubSchema, [
|
|
220
|
+
'id', 'context',
|
|
221
|
+
'status', 'alerts',
|
|
222
|
+
'created', 'updated'
|
|
223
|
+
])
|
|
224
|
+
|
|
225
|
+
export const HubStatusUpdateBodySchema = Type.Object({
|
|
226
|
+
status: EntityStatusSchema,
|
|
227
|
+
reason: Type.Optional(Type.String({ maxLength: 500 }))
|
|
228
|
+
})
|
|
229
|
+
|
|
230
|
+
export const HubListQuerySchema = Type.Object({
|
|
231
|
+
status: Type.Optional(EntityStatusSchema),
|
|
232
|
+
type: Type.Optional(HubTypeSchema),
|
|
233
|
+
limit: Type.Optional(Type.Number({ minimum: 1, maximum: 200, default: 20 })),
|
|
234
|
+
offset: Type.Optional(Type.Number({ minimum: 0, default: 0 }))
|
|
235
|
+
})
|
|
236
|
+
|
|
237
|
+
export const LSPHubCreateRVS = {
|
|
238
|
+
headers: APIHeadersSchema,
|
|
239
|
+
body: HubCreateBodySchema,
|
|
240
|
+
response: APIResponseDataSchemaFactory({ hubId: Type.String() })
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export const LSPHubRetrieveRVS = {
|
|
244
|
+
headers: APIHeadersSchema,
|
|
245
|
+
params: Type.Object({ id: Type.String() }),
|
|
246
|
+
response: APIResponseDataSchemaFactory({ hub: HubSchema })
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export const LSPHubListRVS = {
|
|
250
|
+
headers: APIHeadersSchema,
|
|
251
|
+
querystring: HubListQuerySchema,
|
|
252
|
+
response: APIResponseDataSchemaFactory({
|
|
253
|
+
hubs: Type.Array(HubSchema),
|
|
254
|
+
total: Type.Number(),
|
|
255
|
+
limit: Type.Number(),
|
|
256
|
+
offset: Type.Number()
|
|
257
|
+
})
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export const LSPHubUpdateRVS = {
|
|
261
|
+
headers: APIHeadersSchema,
|
|
262
|
+
params: Type.Object({ id: Type.String() }),
|
|
263
|
+
body: HubUpdateSchema,
|
|
264
|
+
response: APIResponseDataSchemaFactory({ hub: HubSchema })
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export const LSPHubUpdateStatusRVS = {
|
|
268
|
+
headers: APIHeadersSchema,
|
|
269
|
+
params: Type.Object({ id: Type.String() }),
|
|
270
|
+
body: HubStatusUpdateBodySchema,
|
|
271
|
+
response: APIResponseDataSchemaFactory({ hub: HubSchema })
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export const LSPHubRemoveRVS = {
|
|
275
|
+
headers: APIHeadersSchema,
|
|
276
|
+
params: Type.Object({ id: Type.String() }),
|
|
277
|
+
response: APIResponseBaseSchema
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export type LSPHubCreateValidation = { headers: Static<typeof LSPHubCreateRVS.headers>, body: Static<typeof LSPHubCreateRVS.body>, response: Static<typeof LSPHubCreateRVS.response> }
|
|
281
|
+
export type LSPHubRetrieveValidation = { headers: Static<typeof LSPHubRetrieveRVS.headers>, params: Static<typeof LSPHubRetrieveRVS.params>, response: Static<typeof LSPHubRetrieveRVS.response> }
|
|
282
|
+
export type LSPHubListValidation = { headers: Static<typeof LSPHubListRVS.headers>, querystring: Static<typeof LSPHubListRVS.querystring>, response: Static<typeof LSPHubListRVS.response> }
|
|
283
|
+
export type LSPHubUpdateValidation = { headers: Static<typeof LSPHubUpdateRVS.headers>, params: Static<typeof LSPHubUpdateRVS.params>, body: Static<typeof LSPHubUpdateRVS.body>, response: Static<typeof LSPHubUpdateRVS.response> }
|
|
284
|
+
export type LSPHubUpdateStatusValidation = { headers: Static<typeof LSPHubUpdateStatusRVS.headers>, params: Static<typeof LSPHubUpdateStatusRVS.params>, body: Static<typeof LSPHubUpdateStatusRVS.body>, response: Static<typeof LSPHubUpdateStatusRVS.response> }
|
|
285
|
+
export type LSPHubRemoveValidation = { headers: Static<typeof LSPHubRemoveRVS.headers>, params: Static<typeof LSPHubRemoveRVS.params>, response: Static<typeof LSPHubRemoveRVS.response> }
|
|
286
|
+
|
|
287
|
+
// Re-export all hub capability schemas and types
|
|
288
|
+
export * from './capabilities'
|
|
289
|
+
|
|
290
|
+
// Re-export all hub capacity schemas and types
|
|
291
|
+
export * from './capacities'
|
|
292
|
+
|
|
293
|
+
// Re-export all hub performance schemas and types
|
|
294
|
+
export * from './performance'
|
|
295
|
+
|
|
296
|
+
// Re-export all hub analytics, utility, and integration schemas and types
|
|
297
|
+
export * from './analytics'
|
|
298
|
+
export * from './utilities'
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { DurationSchema } from '../../time'
|
|
3
|
+
import { MoneySchema } from '../../measure'
|
|
4
|
+
import { SPPerformanceSummarySchema } from '../../context'
|
|
5
|
+
|
|
6
|
+
// Current performance metrics
|
|
7
|
+
export const HubCurrentPerformanceSchema = Type.Object({
|
|
8
|
+
dailyThroughput: Type.Number({ minimum: 0 }),
|
|
9
|
+
hourlyThroughput: Type.Number({ minimum: 0 }),
|
|
10
|
+
sortingEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
|
|
11
|
+
processingEfficiency: Type.Number({ minimum: 0, maximum: 100 }),
|
|
12
|
+
overallUtilization: Type.Number({ minimum: 0, maximum: 100 }),
|
|
13
|
+
equipmentUtilization: Type.Number({ minimum: 0, maximum: 100 }),
|
|
14
|
+
staffUtilization: Type.Number({ minimum: 0, maximum: 100 }),
|
|
15
|
+
facilityUtilization: Type.Number({ minimum: 0, maximum: 100 }),
|
|
16
|
+
networkUtilization: Type.Number({ minimum: 0, maximum: 100 })
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
// Peak performance metrics
|
|
20
|
+
export const HubPeakPerformanceSchema = Type.Object({
|
|
21
|
+
peakDailyThroughput: Type.Number({ minimum: 0 }),
|
|
22
|
+
peakHourlyThroughput: Type.Number({ minimum: 0 }),
|
|
23
|
+
peakUtilization: Type.Number({ minimum: 0, maximum: 100 }),
|
|
24
|
+
peakCapacityMultiplier: Type.Number({ minimum: 1 }),
|
|
25
|
+
sustainablePeakDuration: DurationSchema,
|
|
26
|
+
peakSeasonCapacity: Type.Number({ minimum: 0, maximum: 200, description: 'percentage of normal' }),
|
|
27
|
+
lastPeakDate: Type.Optional(Type.Number()),
|
|
28
|
+
peakTriggerThreshold: Type.Number({ minimum: 0, maximum: 100 })
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
// Quality and accuracy metrics
|
|
32
|
+
export const HubQualityPerformanceSchema = Type.Object({
|
|
33
|
+
overallAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
34
|
+
sortingAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
35
|
+
scanningAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
36
|
+
handlingAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
37
|
+
routingAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
38
|
+
labelingAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
39
|
+
documentationAccuracy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
40
|
+
damageRate: Type.Number({ minimum: 0, maximum: 100 }),
|
|
41
|
+
lossRate: Type.Number({ minimum: 0, maximum: 100 }),
|
|
42
|
+
misrouteRate: Type.Number({ minimum: 0, maximum: 100 })
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// Time-based performance
|
|
46
|
+
export const HubTimingPerformanceSchema = Type.Object({
|
|
47
|
+
averageDwellTime: DurationSchema,
|
|
48
|
+
averageProcessingTime: DurationSchema,
|
|
49
|
+
averageSortingTime: DurationSchema,
|
|
50
|
+
averageLoadingTime: DurationSchema,
|
|
51
|
+
averageUnloadingTime: DurationSchema,
|
|
52
|
+
onTimePerformance: Type.Number({ minimum: 0, maximum: 100 }),
|
|
53
|
+
transitTimeCompliance: Type.Number({ minimum: 0, maximum: 100 }),
|
|
54
|
+
cutoffCompliance: Type.Number({ minimum: 0, maximum: 100 }),
|
|
55
|
+
slaCompliance: Type.Number({ minimum: 0, maximum: 100 })
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
// Cost performance
|
|
59
|
+
export const HubCostPerformanceSchema = Type.Object({
|
|
60
|
+
costPerPackage: MoneySchema,
|
|
61
|
+
costPerSort: MoneySchema,
|
|
62
|
+
costPerPound: MoneySchema,
|
|
63
|
+
laborCostPerHour: MoneySchema,
|
|
64
|
+
equipmentCostPerHour: MoneySchema,
|
|
65
|
+
facilityCostPerSqFt: MoneySchema,
|
|
66
|
+
totalOperatingCost: MoneySchema,
|
|
67
|
+
costEfficiency: Type.Number({ minimum: 0, maximum: 100 })
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
// Combined performance schema
|
|
71
|
+
export const HubPerformanceSchema = Type.Object({
|
|
72
|
+
summary: SPPerformanceSummarySchema,
|
|
73
|
+
metrics: Type.Object({
|
|
74
|
+
current: HubCurrentPerformanceSchema,
|
|
75
|
+
peak: HubPeakPerformanceSchema,
|
|
76
|
+
quality: HubQualityPerformanceSchema,
|
|
77
|
+
timing: HubTimingPerformanceSchema,
|
|
78
|
+
costs: Type.Optional(HubCostPerformanceSchema)
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// TypeScript type exports
|
|
83
|
+
export type HubCurrentPerformance = Static<typeof HubCurrentPerformanceSchema>
|
|
84
|
+
export type HubPeakPerformance = Static<typeof HubPeakPerformanceSchema>
|
|
85
|
+
export type HubQualityPerformance = Static<typeof HubQualityPerformanceSchema>
|
|
86
|
+
export type HubTimingPerformance = Static<typeof HubTimingPerformanceSchema>
|
|
87
|
+
export type HubCostPerformance = Static<typeof HubCostPerformanceSchema>
|
|
88
|
+
export type HubPerformance = Static<typeof HubPerformanceSchema>
|
|
89
|
+
|