@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
package/src/lsp/zones.ts
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ActionRecordSchema, DateTimeZoneSchema } from '../time'
|
|
3
|
+
import { ContextSchema } from '../context'
|
|
4
|
+
import { CoordinatesSchema, GeoBoundarySchema } from '../geo'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Discriminates standard dispatch zones from swarm (pod-anchor) zones.
|
|
8
|
+
* Swarm zones optionally carry an anchorPodId in their metadata field
|
|
9
|
+
* which Rally uses for logging and density signals.
|
|
10
|
+
*/
|
|
11
|
+
export const ZoneTypeSchema = Type.Union([
|
|
12
|
+
Type.Literal('STANDARD'),
|
|
13
|
+
Type.Literal('SWARM')
|
|
14
|
+
])
|
|
15
|
+
|
|
16
|
+
export const ZoneStatusSchema = Type.Union([
|
|
17
|
+
Type.Literal('ACTIVE'),
|
|
18
|
+
Type.Literal('DORMANT'),
|
|
19
|
+
Type.Literal('SUSPENDED')
|
|
20
|
+
])
|
|
21
|
+
|
|
22
|
+
export const ZoneSupplyStatusSchema = Type.Union([
|
|
23
|
+
Type.Literal('OVER_SUPPLIED'),
|
|
24
|
+
Type.Literal('AVERAGE'),
|
|
25
|
+
Type.Literal('UNDER_SUPPLIED'),
|
|
26
|
+
Type.Literal('UNKNOWN')
|
|
27
|
+
])
|
|
28
|
+
export const ZoneDensityStatusSchema = Type.Union([
|
|
29
|
+
Type.Literal('HIGH'),
|
|
30
|
+
Type.Literal('NORMAL'),
|
|
31
|
+
Type.Literal('LOW'),
|
|
32
|
+
Type.Literal('UNKNOWN')
|
|
33
|
+
])
|
|
34
|
+
|
|
35
|
+
export const ZoneTelemetrySchema = Type.Object({
|
|
36
|
+
activeRiders: Type.Number({ minimum: 0 }),
|
|
37
|
+
pendingOrders: Type.Number({ minimum: 0 }),
|
|
38
|
+
demandScore: Type.Number({ minimum: 0, maximum: 100 }),
|
|
39
|
+
batchActive: Type.Boolean(),
|
|
40
|
+
updatedAt: DateTimeZoneSchema
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
export const ZoneDensitySchema = Type.Composite([
|
|
44
|
+
Type.Object({
|
|
45
|
+
zoneId: Type.String(),
|
|
46
|
+
name: Type.String(),
|
|
47
|
+
status: ZoneDensityStatusSchema,
|
|
48
|
+
supplyStatus: ZoneSupplyStatusSchema
|
|
49
|
+
}),
|
|
50
|
+
ZoneTelemetrySchema
|
|
51
|
+
])
|
|
52
|
+
|
|
53
|
+
export const ZoneSchema = Type.Object({
|
|
54
|
+
context: ContextSchema,
|
|
55
|
+
id: Type.String(),
|
|
56
|
+
name: Type.String(),
|
|
57
|
+
type: ZoneTypeSchema,
|
|
58
|
+
status: ZoneStatusSchema,
|
|
59
|
+
boundary: GeoBoundarySchema,
|
|
60
|
+
centroid: Type.Optional( CoordinatesSchema ),
|
|
61
|
+
metadata: Type.Optional( Type.Record( Type.String(), Type.Unknown() ) ),
|
|
62
|
+
parentZoneIds: Type.Optional( Type.Array( Type.String() ) ),
|
|
63
|
+
adjacentZones: Type.Array(Type.String()),
|
|
64
|
+
density: Type.Optional(ZoneDensitySchema),
|
|
65
|
+
created: ActionRecordSchema,
|
|
66
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
export const ZoneQuerySchema = Type.Object({
|
|
70
|
+
at: Type.Optional(CoordinatesSchema),
|
|
71
|
+
adjacentTo: Type.Optional(Type.String()),
|
|
72
|
+
nearest: Type.Optional(CoordinatesSchema),
|
|
73
|
+
limit: Type.Optional(Type.Number())
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
export type ZoneType = Static<typeof ZoneTypeSchema>
|
|
77
|
+
export type ZoneStatus = Static<typeof ZoneStatusSchema>
|
|
78
|
+
export type ZoneSupplyStatus = Static<typeof ZoneSupplyStatusSchema>
|
|
79
|
+
export type ZoneDensityStatus = Static<typeof ZoneDensityStatusSchema>
|
|
80
|
+
export type ZoneDensity = Static<typeof ZoneDensitySchema>
|
|
81
|
+
export type ZoneTelemetry = Static<typeof ZoneTelemetrySchema>
|
|
82
|
+
export type Zone = Static<typeof ZoneSchema>
|
|
83
|
+
export type ZoneQuery = Static<typeof ZoneQuerySchema>
|
|
84
|
+
|
|
85
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
86
|
+
|
|
87
|
+
import {
|
|
88
|
+
APIErrorSchema,
|
|
89
|
+
APIHeadersSchema,
|
|
90
|
+
APIResponseBaseSchema,
|
|
91
|
+
APIResponseDataSchemaFactory
|
|
92
|
+
} from '../api'
|
|
93
|
+
|
|
94
|
+
export const LSPZoneListRVS = {
|
|
95
|
+
headers: APIHeadersSchema,
|
|
96
|
+
querystring: ZoneQuerySchema,
|
|
97
|
+
response: {
|
|
98
|
+
200: APIResponseDataSchemaFactory({ zones: Type.Array(ZoneSchema), total: Type.Number() }),
|
|
99
|
+
'4XX': APIErrorSchema
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const LSPZoneDensityRVS = {
|
|
104
|
+
headers: APIHeadersSchema,
|
|
105
|
+
params: Type.Object({ id: Type.String() }),
|
|
106
|
+
response: {
|
|
107
|
+
200: APIResponseDataSchemaFactory({ density: ZoneDensitySchema }),
|
|
108
|
+
'4XX': APIErrorSchema
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export const LSPZoneCreateRVS = {
|
|
113
|
+
headers: APIHeadersSchema,
|
|
114
|
+
body: Type.Object({
|
|
115
|
+
name: Type.String({ minLength: 1, maxLength: 100 }),
|
|
116
|
+
boundary: Type.Any(),
|
|
117
|
+
metadata: Type.Optional(Type.Record(Type.String(), Type.Unknown()))
|
|
118
|
+
}),
|
|
119
|
+
response: {
|
|
120
|
+
201: APIResponseDataSchemaFactory({ zoneId: Type.String() }),
|
|
121
|
+
'4XX': APIErrorSchema
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const LSPZoneUpdateStatusRVS = {
|
|
126
|
+
headers: APIHeadersSchema,
|
|
127
|
+
params: Type.Object({ id: Type.String() }),
|
|
128
|
+
body: Type.Object({ status: ZoneStatusSchema }),
|
|
129
|
+
response: {
|
|
130
|
+
200: APIResponseDataSchemaFactory({ zone: ZoneSchema }),
|
|
131
|
+
'4XX': APIErrorSchema
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export const LSPZoneRemoveRVS = {
|
|
136
|
+
headers: APIHeadersSchema,
|
|
137
|
+
params: Type.Object({ id: Type.String() }),
|
|
138
|
+
response: {
|
|
139
|
+
200: APIResponseBaseSchema,
|
|
140
|
+
'4XX': APIErrorSchema
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type LSPZoneListValidation = { querystring: Static<typeof LSPZoneListRVS.querystring>, response: Static<(typeof LSPZoneListRVS.response)[200]> }
|
|
145
|
+
export type LSPZoneDensityValidation = { params: Static<typeof LSPZoneDensityRVS.params>, response: Static<(typeof LSPZoneDensityRVS.response)[200]> }
|
|
146
|
+
export type LSPZoneCreateValidation = { body: Static<typeof LSPZoneCreateRVS.body>, response: Static<(typeof LSPZoneCreateRVS.response)[201]> }
|
|
147
|
+
export type LSPZoneUpdateStatusValidation = { params: Static<typeof LSPZoneUpdateStatusRVS.params>, body: Static<typeof LSPZoneUpdateStatusRVS.body>, response: Static<(typeof LSPZoneUpdateStatusRVS.response)[200]> }
|
|
148
|
+
export type LSPZoneRemoveValidation = { params: Static<typeof LSPZoneRemoveRVS.params>, response: Static<(typeof LSPZoneRemoveRVS.response)[200]> }
|
package/src/measure.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { Type, Static, TSchema } from '@sinclair/typebox'
|
|
2
|
+
|
|
3
|
+
// ─── Length & Distance ────────────────────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
export const LengthUnitSchema = Type.Union([
|
|
6
|
+
Type.Literal('km', { description: 'kilometer' }),
|
|
7
|
+
Type.Literal('mi', { description: 'mile' }),
|
|
8
|
+
Type.Literal('m', { description: 'meter' }),
|
|
9
|
+
Type.Literal('cm', { description: 'centimeter' }),
|
|
10
|
+
Type.Literal('mm', { description: 'millimeter' }),
|
|
11
|
+
Type.Literal('ft', { description: 'feet' }),
|
|
12
|
+
Type.Literal('in', { description: 'inch' })
|
|
13
|
+
])
|
|
14
|
+
export const LengthSchema = Type.Object({
|
|
15
|
+
value: Type.Number({ minimum: 0 }),
|
|
16
|
+
unit: LengthUnitSchema
|
|
17
|
+
})
|
|
18
|
+
export const DistanceSchema = Type.Object({
|
|
19
|
+
value: Type.Number({ minimum: 0 }),
|
|
20
|
+
unit: LengthUnitSchema
|
|
21
|
+
})
|
|
22
|
+
export const DistanceRangeSchema = Type.Object({
|
|
23
|
+
from: DistanceSchema,
|
|
24
|
+
to: DistanceSchema
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
// ─── Weight ───────────────────────────────────────────────────────────────────
|
|
28
|
+
|
|
29
|
+
export const WeightUnitSchema = Type.Union([
|
|
30
|
+
Type.Literal('ton'),
|
|
31
|
+
Type.Literal('kg'),
|
|
32
|
+
Type.Literal('lb'),
|
|
33
|
+
Type.Literal('g'),
|
|
34
|
+
Type.Literal('oz')
|
|
35
|
+
])
|
|
36
|
+
export const WeightSchema = Type.Object({
|
|
37
|
+
value: Type.Number({ minimum: 0 }),
|
|
38
|
+
unit: WeightUnitSchema
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
// ─── Volume ───────────────────────────────────────────────────────────────────
|
|
42
|
+
|
|
43
|
+
export const VolumeSchema = Type.Object({
|
|
44
|
+
value: Type.Number({ minimum: 0 }),
|
|
45
|
+
unit: Type.Union([
|
|
46
|
+
Type.Literal('cbm'),
|
|
47
|
+
Type.Literal('l'),
|
|
48
|
+
Type.Literal('ml')
|
|
49
|
+
])
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
// ─── Dimensions ───────────────────────────────────────────────────────────────
|
|
53
|
+
|
|
54
|
+
export const DimensionsSchema = Type.Object({
|
|
55
|
+
length: Type.Number({ minimum: 0 }),
|
|
56
|
+
width: Type.Number({ minimum: 0 }),
|
|
57
|
+
height: Type.Number({ minimum: 0 }),
|
|
58
|
+
unit: LengthUnitSchema
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
// ─── Area ─────────────────────────────────────────────────────────────────────
|
|
62
|
+
|
|
63
|
+
export const AreaUnitSchema = Type.Union([
|
|
64
|
+
Type.Literal('sqft'),
|
|
65
|
+
Type.Literal('sqm'),
|
|
66
|
+
Type.Literal('sqkm'),
|
|
67
|
+
Type.Literal('sqmi')
|
|
68
|
+
])
|
|
69
|
+
export const AreaTypeSchema = Type.Union([
|
|
70
|
+
Type.Literal('PHYSICAL'),
|
|
71
|
+
Type.Literal('FUNCTIONAL')
|
|
72
|
+
])
|
|
73
|
+
export const AreaSchema = Type.Object({
|
|
74
|
+
type: AreaTypeSchema,
|
|
75
|
+
value: Type.Number({ minimum: 0 }),
|
|
76
|
+
unit: AreaUnitSchema
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
// ─── Temperature ──────────────────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
export const TemperatureTypeSchema = Type.Union([
|
|
82
|
+
Type.Literal('FROZEN'), // -18°C and below
|
|
83
|
+
Type.Literal('REFRIGERATED'), // 0°C to 8°C
|
|
84
|
+
Type.Literal('COOL'), // 8°C to 15°C
|
|
85
|
+
Type.Literal('AMBIENT'), // 15°C to 25°C
|
|
86
|
+
Type.Literal('CONTROLLED'), // custom range
|
|
87
|
+
Type.Literal('HEATED') // above ambient
|
|
88
|
+
])
|
|
89
|
+
export const TemperatureSchema = Type.Object({
|
|
90
|
+
type: TemperatureTypeSchema,
|
|
91
|
+
min: Type.Number(),
|
|
92
|
+
max: Type.Number(),
|
|
93
|
+
unit: Type.Union([Type.Literal('C'), Type.Literal('F')])
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
// ─── Money & Currency ─────────────────────────────────────────────────────────
|
|
97
|
+
|
|
98
|
+
export const CurrencySchema = Type.Object({
|
|
99
|
+
code: Type.String(),
|
|
100
|
+
name: Type.String(),
|
|
101
|
+
plural: Type.Optional(Type.String()),
|
|
102
|
+
symbol: Type.String(),
|
|
103
|
+
symbol_native: Type.Optional(Type.String())
|
|
104
|
+
})
|
|
105
|
+
export const MoneySchema = Type.Object({
|
|
106
|
+
amount: Type.Number({ example: 12.50 }),
|
|
107
|
+
currency: Type.Union([
|
|
108
|
+
CurrencySchema,
|
|
109
|
+
Type.String({ description: 'ISO 4217 currency code', example: 'USD' })
|
|
110
|
+
])
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
// ─── Power / Bandwidth / Memory ───────────────────────────────────────────────
|
|
114
|
+
|
|
115
|
+
export const PowerUnitSchema = Type.Union([
|
|
116
|
+
Type.Literal('KW'),
|
|
117
|
+
Type.Literal('W')
|
|
118
|
+
])
|
|
119
|
+
export const PowerSchema = Type.Object({
|
|
120
|
+
value: Type.Number({ minimum: 0 }),
|
|
121
|
+
unit: PowerUnitSchema
|
|
122
|
+
})
|
|
123
|
+
export const BandwidthUnitSchema = Type.Union([
|
|
124
|
+
Type.Literal('Mbps')
|
|
125
|
+
])
|
|
126
|
+
export const BandwidthSchema = Type.Object({
|
|
127
|
+
value: Type.Number({ minimum: 0 }),
|
|
128
|
+
unit: BandwidthUnitSchema
|
|
129
|
+
})
|
|
130
|
+
export const MemoryUnitSchema = Type.Union([
|
|
131
|
+
Type.Literal('TB'),
|
|
132
|
+
Type.Literal('GB'),
|
|
133
|
+
Type.Literal('MB'),
|
|
134
|
+
Type.Literal('B')
|
|
135
|
+
])
|
|
136
|
+
export const MemorySchema = Type.Object({
|
|
137
|
+
value: Type.Number({ minimum: 0 }),
|
|
138
|
+
unit: MemoryUnitSchema
|
|
139
|
+
})
|
|
140
|
+
export const NoiseLevelUnitSchema = Type.Union([
|
|
141
|
+
Type.Literal('dbl', { description: 'decibel' })
|
|
142
|
+
])
|
|
143
|
+
export const NoiseLevelSchema = Type.Object({
|
|
144
|
+
value: Type.Number({ minimum: 0 }),
|
|
145
|
+
unit: NoiseLevelUnitSchema
|
|
146
|
+
})
|
|
147
|
+
|
|
148
|
+
// ─── Per-unit rates ───────────────────────────────────────────────────────────
|
|
149
|
+
|
|
150
|
+
export const PerTimeSchema = Type.Object({
|
|
151
|
+
value: Type.Number({ minimum: 0 }),
|
|
152
|
+
unit: Type.String(),
|
|
153
|
+
per: Type.String() // TimeUnit value
|
|
154
|
+
})
|
|
155
|
+
export const PerDistanceSchema = Type.Object({
|
|
156
|
+
value: Type.Number({ minimum: 0 }),
|
|
157
|
+
unit: Type.String(),
|
|
158
|
+
per: LengthUnitSchema
|
|
159
|
+
})
|
|
160
|
+
export const PerAreaSchema = Type.Object({
|
|
161
|
+
value: Type.Number({ minimum: 0 }),
|
|
162
|
+
unit: Type.String(),
|
|
163
|
+
per: AreaUnitSchema
|
|
164
|
+
})
|
|
165
|
+
|
|
166
|
+
// ─── Special handling & compliance ───────────────────────────────────────────
|
|
167
|
+
|
|
168
|
+
export const SpecialHandlingSchema = Type.Union([
|
|
169
|
+
Type.Literal('FRAGILE'),
|
|
170
|
+
Type.Literal('HAZMAT'),
|
|
171
|
+
Type.Literal('PERISHABLE'),
|
|
172
|
+
Type.Literal('HIGH_VALUE'),
|
|
173
|
+
Type.Literal('TEMPERATURE_SENSITIVE'),
|
|
174
|
+
Type.Literal('SIGNATURE_REQUIRED')
|
|
175
|
+
])
|
|
176
|
+
export const AccuracySchema = Type.Union([
|
|
177
|
+
Type.Literal('ESTIMATE'),
|
|
178
|
+
Type.Literal('STANDARD'),
|
|
179
|
+
Type.Literal('PRECISE')
|
|
180
|
+
])
|
|
181
|
+
export const SourceSchema = Type.Union([
|
|
182
|
+
Type.Literal('INTERNAL'),
|
|
183
|
+
Type.Literal('EXTERNAL'),
|
|
184
|
+
Type.Literal('HYBRID')
|
|
185
|
+
])
|
|
186
|
+
|
|
187
|
+
// ─── Service & severity levels ────────────────────────────────────────────────
|
|
188
|
+
|
|
189
|
+
export const ServiceLevelSchema = Type.Union([
|
|
190
|
+
Type.Literal('SAME_DAY'),
|
|
191
|
+
Type.Literal('NEXT_DAY'),
|
|
192
|
+
Type.Literal('STANDARD'),
|
|
193
|
+
Type.Literal('ECONOMY'),
|
|
194
|
+
Type.Literal('EXPRESS'),
|
|
195
|
+
Type.Literal('INTERNATIONAL')
|
|
196
|
+
])
|
|
197
|
+
export const SeverityLevelSchema = Type.Union([
|
|
198
|
+
Type.Literal('LOW'),
|
|
199
|
+
Type.Literal('MEDIUM'),
|
|
200
|
+
Type.Literal('HIGH'),
|
|
201
|
+
Type.Literal('CRITICAL')
|
|
202
|
+
])
|
|
203
|
+
|
|
204
|
+
// ─── Generic Capacity Record ────────────────────────────────────────────────
|
|
205
|
+
|
|
206
|
+
export const CapacityRecordSchema = <T extends TSchema>(measureSchema: T) => Type.Object({
|
|
207
|
+
max: measureSchema,
|
|
208
|
+
used: measureSchema
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
// ─── TypeScript types ─────────────────────────────────────────────────────────
|
|
212
|
+
|
|
213
|
+
export type LengthUnit = Static<typeof LengthUnitSchema>
|
|
214
|
+
export type Length = Static<typeof LengthSchema>
|
|
215
|
+
export type Distance = Static<typeof DistanceSchema>
|
|
216
|
+
export type DistanceRange = Static<typeof DistanceRangeSchema>
|
|
217
|
+
export type WeightUnit = Static<typeof WeightUnitSchema>
|
|
218
|
+
export type Weight = Static<typeof WeightSchema>
|
|
219
|
+
export type Volume = Static<typeof VolumeSchema>
|
|
220
|
+
export type Dimensions = Static<typeof DimensionsSchema>
|
|
221
|
+
export type AreaUnit = Static<typeof AreaUnitSchema>
|
|
222
|
+
export type AreaType = Static<typeof AreaTypeSchema>
|
|
223
|
+
export type Area = Static<typeof AreaSchema>
|
|
224
|
+
export type TemperatureType = Static<typeof TemperatureTypeSchema>
|
|
225
|
+
export type Temperature = Static<typeof TemperatureSchema>
|
|
226
|
+
export type Currency = Static<typeof CurrencySchema>
|
|
227
|
+
export type Money = Static<typeof MoneySchema>
|
|
228
|
+
export type Power = Static<typeof PowerSchema>
|
|
229
|
+
export type Bandwidth = Static<typeof BandwidthSchema>
|
|
230
|
+
export type Memory = Static<typeof MemorySchema>
|
|
231
|
+
export type NoiseLevel = Static<typeof NoiseLevelSchema>
|
|
232
|
+
export type PerTime = Static<typeof PerTimeSchema>
|
|
233
|
+
export type PerDistance = Static<typeof PerDistanceSchema>
|
|
234
|
+
export type PerArea = Static<typeof PerAreaSchema>
|
|
235
|
+
export type SpecialHandling = Static<typeof SpecialHandlingSchema>
|
|
236
|
+
export type Accuracy = Static<typeof AccuracySchema>
|
|
237
|
+
export type Source = Static<typeof SourceSchema>
|
|
238
|
+
export type ServiceLevel = Static<typeof ServiceLevelSchema>
|
|
239
|
+
export type SeverityLevel = Static<typeof SeverityLevelSchema>
|
|
240
|
+
export type CapacityRecord<T extends TSchema> = Static<ReturnType<typeof CapacityRecordSchema<T>>>
|
package/src/operator.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Type, type TSchema, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from './context'
|
|
3
|
+
import { ActionRecordSchema } from './time'
|
|
4
|
+
import { RTLocationSchema, ContactsSchema, AddressSchema } from './geo'
|
|
5
|
+
|
|
6
|
+
// Operator Status Schema
|
|
7
|
+
export const OperatorStatusSchema = Type.Union([
|
|
8
|
+
Type.Literal('ACTIVE'),
|
|
9
|
+
Type.Literal('INACTIVE'),
|
|
10
|
+
Type.Literal('SUSPENDED')
|
|
11
|
+
])
|
|
12
|
+
|
|
13
|
+
// Operator Schema
|
|
14
|
+
export const OperatorSchema = <R extends TSchema>(roleSchema: R) => Type.Object({
|
|
15
|
+
id: Type.String(),
|
|
16
|
+
context: ContextSchema,
|
|
17
|
+
bio: Type.Optional(Type.String({ maxLength: 500 })),
|
|
18
|
+
contacts: ContactsSchema,
|
|
19
|
+
address: Type.Optional(AddressSchema),
|
|
20
|
+
role: roleSchema,
|
|
21
|
+
// permissions: Type.Array(PermissionSchema), // Uncomment when Permission type is available
|
|
22
|
+
status: OperatorStatusSchema,
|
|
23
|
+
currentLocation: Type.Optional(RTLocationSchema),
|
|
24
|
+
added: ActionRecordSchema,
|
|
25
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
26
|
+
})
|
|
27
|
+
export const OperatorUpdateSchema = <R extends TSchema>(roleSchema: R) => Type.Object({
|
|
28
|
+
bio: Type.Optional(Type.String({ maxLength: 500 })),
|
|
29
|
+
contacts: Type.Optional(ContactsSchema),
|
|
30
|
+
address: Type.Optional(AddressSchema),
|
|
31
|
+
role: Type.Optional(roleSchema),
|
|
32
|
+
// permissions: Type.Array(PermissionSchema), // Uncomment when Permission type is available
|
|
33
|
+
status: Type.Optional(OperatorStatusSchema)
|
|
34
|
+
}, { additionalProperties: false })
|
|
35
|
+
|
|
36
|
+
// Generate TypeScript types from schemas
|
|
37
|
+
export type OperatorStatus = Static<typeof OperatorStatusSchema>
|
|
38
|
+
export type Operator<R> = Static<ReturnType<typeof OperatorSchema<TSchema>>>
|
|
39
|
+
export type OperatorUpdate<R> = Static<ReturnType<typeof OperatorUpdateSchema<TSchema>>>
|