@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,582 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from '../../context'
|
|
3
|
+
import { ActionRecordSchema, DateTimeZoneSchema, DateTimeRangeSchema, DurationSchema } from '../../time'
|
|
4
|
+
import { MoneySchema, DimensionsSchema, WeightSchema, LengthSchema, PerTimeSchema } from '../../measure'
|
|
5
|
+
import { AddressSchema, ContactsSchema, CoordinatesSchema } from '../../geo'
|
|
6
|
+
import { OperatingHoursSchema } from '../../entity'
|
|
7
|
+
import { VehicleTypeSchema } from './vehicle'
|
|
8
|
+
|
|
9
|
+
// Parking Type Schema
|
|
10
|
+
export const ParkingTypeSchema = Type.Union([
|
|
11
|
+
// FACILITY TYPES
|
|
12
|
+
Type.Literal('DEPOT'), // Main fleet depot/garage
|
|
13
|
+
Type.Literal('YARD'), // Open parking yard
|
|
14
|
+
Type.Literal('GARAGE'), // Covered garage
|
|
15
|
+
Type.Literal('LOT'), // Parking lot
|
|
16
|
+
Type.Literal('STRUCTURE'), // Multi-level parking structure
|
|
17
|
+
|
|
18
|
+
// OPERATIONAL TYPES
|
|
19
|
+
Type.Literal('MAINTENANCE_FACILITY'), // Service/maintenance depot
|
|
20
|
+
Type.Literal('TERMINAL'), // Transport terminal parking
|
|
21
|
+
Type.Literal('LAYOVER'), // Driver rest/layover area
|
|
22
|
+
Type.Literal('STAGING'), // Pre-trip staging area
|
|
23
|
+
Type.Literal('OVERFLOW'), // Temporary/overflow parking
|
|
24
|
+
|
|
25
|
+
// SPECIALIZED
|
|
26
|
+
Type.Literal('CHARGING_STATION'), // EV charging depot
|
|
27
|
+
Type.Literal('FUEL_DEPOT'), // Refueling facility
|
|
28
|
+
Type.Literal('WASH_BAY'), // Vehicle wash facility
|
|
29
|
+
Type.Literal('SECURE_COMPOUND'), // High-security parking
|
|
30
|
+
|
|
31
|
+
// MICRO-MOBILITY
|
|
32
|
+
Type.Literal('DOCKING_STATION'), // E-scooter/e-bike docking hub
|
|
33
|
+
Type.Literal('BIKE_RACK'), // Bicycle parking rack
|
|
34
|
+
Type.Literal('SCOOTER_ZONE'), // Designated e-scooter parking zone
|
|
35
|
+
Type.Literal('MICRO_MOBILITY_HUB'), // Multi-modal micro-mobility parking
|
|
36
|
+
Type.Literal('CHARGING_DOCK'), // Charging dock station for e-scooters/e-bikes
|
|
37
|
+
|
|
38
|
+
// TEMPORARY
|
|
39
|
+
Type.Literal('STREET_PARKING'), // On-street parking
|
|
40
|
+
Type.Literal('TEMPORARY'), // Temporary parking location
|
|
41
|
+
|
|
42
|
+
Type.Literal('OTHER')
|
|
43
|
+
])
|
|
44
|
+
|
|
45
|
+
// Parking Status Schema
|
|
46
|
+
export const ParkingStatusSchema = Type.Union([
|
|
47
|
+
Type.Literal('OPERATIONAL'), // Actively in use
|
|
48
|
+
Type.Literal('MAINTENANCE'), // Under maintenance
|
|
49
|
+
Type.Literal('FULL'), // At capacity
|
|
50
|
+
Type.Literal('CLOSED'), // Temporarily closed
|
|
51
|
+
Type.Literal('DECOMMISSIONED') // Permanently closed
|
|
52
|
+
])
|
|
53
|
+
|
|
54
|
+
// Parking Access Schema
|
|
55
|
+
export const ParkingAccessSchema = Type.Union([
|
|
56
|
+
Type.Literal('24_7'), // Round-the-clock access
|
|
57
|
+
Type.Literal('SCHEDULED'), // Specific hours
|
|
58
|
+
Type.Literal('ON_DEMAND'), // By arrangement
|
|
59
|
+
Type.Literal('RESTRICTED') // Limited/controlled access
|
|
60
|
+
])
|
|
61
|
+
|
|
62
|
+
// Parking Security Level Schema
|
|
63
|
+
export const ParkingSecurityLevelSchema = Type.Union([
|
|
64
|
+
Type.Literal('BASIC'), // Open/minimal security
|
|
65
|
+
Type.Literal('STANDARD'), // Fenced with basic monitoring
|
|
66
|
+
Type.Literal('ENHANCED'), // CCTV, security personnel
|
|
67
|
+
Type.Literal('MAXIMUM') // High-security compound
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
// Parking Amenities Schema
|
|
71
|
+
export const ParkingAmenitiesSchema = Type.Object({
|
|
72
|
+
// Basic Facilities
|
|
73
|
+
covered: Type.Boolean({ default: false }),
|
|
74
|
+
lighting: Type.Boolean({ default: false }),
|
|
75
|
+
fenced: Type.Boolean({ default: false }),
|
|
76
|
+
paved: Type.Boolean({ default: false }),
|
|
77
|
+
|
|
78
|
+
// Security
|
|
79
|
+
cctv: Type.Boolean({ default: false }),
|
|
80
|
+
securityPersonnel: Type.Boolean({ default: false }),
|
|
81
|
+
gatedAccess: Type.Boolean({ default: false }),
|
|
82
|
+
|
|
83
|
+
// Services
|
|
84
|
+
electricCharging: Type.Optional(Type.Object({
|
|
85
|
+
available: Type.Boolean(),
|
|
86
|
+
chargingPoints: Type.Number({ minimum: 0 }),
|
|
87
|
+
maxPower: Type.Optional(Type.String()), // e.g., "150kW"
|
|
88
|
+
connectorTypes: Type.Optional(Type.Array(Type.String())) // e.g., ["CCS", "CHAdeMO"]
|
|
89
|
+
})),
|
|
90
|
+
fuelStation: Type.Optional(Type.Object({
|
|
91
|
+
available: Type.Boolean(),
|
|
92
|
+
fuelTypes: Type.Array(Type.String()) // e.g., ["diesel", "gasoline", "CNG"]
|
|
93
|
+
})),
|
|
94
|
+
washBay: Type.Boolean({ default: false }),
|
|
95
|
+
maintenanceBay: Type.Boolean({ default: false }),
|
|
96
|
+
|
|
97
|
+
// Micro-Mobility Specific
|
|
98
|
+
microMobility: Type.Optional(Type.Object({
|
|
99
|
+
dockingStations: Type.Optional(Type.Number({ minimum: 0 })),
|
|
100
|
+
chargingDocks: Type.Optional(Type.Number({ minimum: 0 })),
|
|
101
|
+
bikeRacks: Type.Optional(Type.Number({ minimum: 0 })),
|
|
102
|
+
lockingMechanism: Type.Optional(Type.Union([
|
|
103
|
+
Type.Literal('PHYSICAL_LOCK'),
|
|
104
|
+
Type.Literal('ELECTRONIC_DOCK'),
|
|
105
|
+
Type.Literal('QR_CODE'),
|
|
106
|
+
Type.Literal('GEOFENCE')
|
|
107
|
+
])),
|
|
108
|
+
swapStation: Type.Optional(Type.Boolean()), // Battery swap capability
|
|
109
|
+
repairStation: Type.Optional(Type.Boolean()) // On-site repair tools
|
|
110
|
+
})),
|
|
111
|
+
|
|
112
|
+
// Driver Facilities
|
|
113
|
+
restroom: Type.Boolean({ default: false }),
|
|
114
|
+
restArea: Type.Boolean({ default: false }),
|
|
115
|
+
office: Type.Boolean({ default: false }),
|
|
116
|
+
wifi: Type.Boolean({ default: false }),
|
|
117
|
+
|
|
118
|
+
// Access
|
|
119
|
+
wheelchairAccessible: Type.Boolean({ default: false }),
|
|
120
|
+
truckAccess: Type.Boolean({ default: false }),
|
|
121
|
+
heightClearance: Type.Optional(LengthSchema)
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
// Parking Space Schema
|
|
125
|
+
const ParkingSpaceTypeSchema = Type.Union([
|
|
126
|
+
Type.Literal('STANDARD'),
|
|
127
|
+
Type.Literal('COMPACT'),
|
|
128
|
+
Type.Literal('OVERSIZED'),
|
|
129
|
+
Type.Literal('ACCESSIBLE'),
|
|
130
|
+
Type.Literal('EV_CHARGING'),
|
|
131
|
+
Type.Literal('BIKE_SLOT'), // Bicycle parking slot
|
|
132
|
+
Type.Literal('SCOOTER_SLOT'), // E-scooter parking slot
|
|
133
|
+
Type.Literal('DOCKING_SLOT'), // Electronic docking slot
|
|
134
|
+
Type.Literal('MICRO_MOBILITY'), // General micro-mobility space
|
|
135
|
+
Type.Literal('MAINTENANCE')
|
|
136
|
+
])
|
|
137
|
+
const ParkingSpaceStatusSchema = Type.Union([
|
|
138
|
+
Type.Literal('AVAILABLE'),
|
|
139
|
+
Type.Literal('OCCUPIED'),
|
|
140
|
+
Type.Literal('RESERVED'),
|
|
141
|
+
Type.Literal('MAINTENANCE'),
|
|
142
|
+
Type.Literal('OUT_OF_SERVICE')
|
|
143
|
+
])
|
|
144
|
+
export const ParkingSpaceSchema = Type.Object({
|
|
145
|
+
id: Type.String(),
|
|
146
|
+
zone: Type.Optional(Type.String()), // e.g., "Zone A", "Bay 1"
|
|
147
|
+
spaceNumber: Type.String(),
|
|
148
|
+
dimensions: Type.Optional(DimensionsSchema),
|
|
149
|
+
|
|
150
|
+
// Space Specifications
|
|
151
|
+
type: ParkingSpaceTypeSchema,
|
|
152
|
+
// Availability
|
|
153
|
+
status: ParkingSpaceStatusSchema,
|
|
154
|
+
// Current Occupant
|
|
155
|
+
occupiedBy: Type.Optional(Type.Object({
|
|
156
|
+
vid: Type.String(),
|
|
157
|
+
since: DateTimeZoneSchema,
|
|
158
|
+
expectedDeparture: Type.Optional(DateTimeZoneSchema)
|
|
159
|
+
})),
|
|
160
|
+
// Restrictions
|
|
161
|
+
restrictions: Type.Optional(Type.Object({
|
|
162
|
+
vehicleTypes: Type.Optional(Type.Array(VehicleTypeSchema)),
|
|
163
|
+
maxWeight: Type.Optional(WeightSchema),
|
|
164
|
+
maxHeight: Type.Optional(LengthSchema)
|
|
165
|
+
})),
|
|
166
|
+
// Features
|
|
167
|
+
hasCharging: Type.Boolean({ default: false }),
|
|
168
|
+
isCovered: Type.Boolean({ default: false }),
|
|
169
|
+
accessible: Type.Boolean({ default: false })
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
// Parking Assignment Schema
|
|
173
|
+
export const ParkingAssignmentTypeSchema = Type.Union([
|
|
174
|
+
Type.Literal('PERMANENT'), // Long-term assigned space
|
|
175
|
+
Type.Literal('TEMPORARY'), // Short-term parking
|
|
176
|
+
Type.Literal('OVERNIGHT'), // Overnight parking
|
|
177
|
+
Type.Literal('MAINTENANCE'), // For maintenance/repair
|
|
178
|
+
Type.Literal('LAYOVER') // Driver rest period
|
|
179
|
+
])
|
|
180
|
+
export const ParkingAssignmentStatusSchema = Type.Union([
|
|
181
|
+
Type.Literal('ACTIVE'),
|
|
182
|
+
Type.Literal('COMPLETED'),
|
|
183
|
+
Type.Literal('CANCELLED'),
|
|
184
|
+
Type.Literal('NO_SHOW')
|
|
185
|
+
])
|
|
186
|
+
export const ParkingAssignmentSchema = Type.Object({
|
|
187
|
+
id: Type.String(),
|
|
188
|
+
parkingId: Type.String(),
|
|
189
|
+
spaceId: Type.Optional(Type.String()),
|
|
190
|
+
vid: Type.String(),
|
|
191
|
+
|
|
192
|
+
// Assignment Details
|
|
193
|
+
type: ParkingAssignmentTypeSchema,
|
|
194
|
+
// Status
|
|
195
|
+
status: ParkingAssignmentStatusSchema,
|
|
196
|
+
|
|
197
|
+
period: Type.Object({
|
|
198
|
+
start: DateTimeZoneSchema,
|
|
199
|
+
end: Type.Optional(DateTimeZoneSchema)
|
|
200
|
+
}),
|
|
201
|
+
|
|
202
|
+
// Check-in/out
|
|
203
|
+
checkIn: Type.Optional(Type.Composite([
|
|
204
|
+
ActionRecordSchema,
|
|
205
|
+
Type.Object({
|
|
206
|
+
agentId: Type.String(),
|
|
207
|
+
mileage: Type.Optional(Type.Number())
|
|
208
|
+
})
|
|
209
|
+
])),
|
|
210
|
+
checkOut: Type.Optional(Type.Composite([
|
|
211
|
+
ActionRecordSchema,
|
|
212
|
+
Type.Object({
|
|
213
|
+
agentId: Type.String(),
|
|
214
|
+
mileage: Type.Optional(Type.Number())
|
|
215
|
+
})
|
|
216
|
+
])),
|
|
217
|
+
|
|
218
|
+
// Additional Info
|
|
219
|
+
purpose: Type.Optional(Type.String({ maxLength: 200 })),
|
|
220
|
+
notes: Type.Optional(Type.String({ maxLength: 500 })),
|
|
221
|
+
|
|
222
|
+
created: ActionRecordSchema,
|
|
223
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
224
|
+
})
|
|
225
|
+
|
|
226
|
+
// Main Parking Facility Schema
|
|
227
|
+
export const ParkingFacilitySchema = Type.Object({
|
|
228
|
+
context: ContextSchema,
|
|
229
|
+
id: Type.String(),
|
|
230
|
+
|
|
231
|
+
// Basic Information
|
|
232
|
+
name: Type.String({ maxLength: 100 }),
|
|
233
|
+
type: ParkingTypeSchema,
|
|
234
|
+
status: ParkingStatusSchema,
|
|
235
|
+
|
|
236
|
+
// Location
|
|
237
|
+
address: AddressSchema,
|
|
238
|
+
|
|
239
|
+
// Capacity
|
|
240
|
+
capacity: Type.Object({
|
|
241
|
+
total: Type.Number({ minimum: 0 }),
|
|
242
|
+
available: Type.Number({ minimum: 0 }),
|
|
243
|
+
occupied: Type.Number({ minimum: 0 }),
|
|
244
|
+
reserved: Type.Number({ minimum: 0 }),
|
|
245
|
+
outOfService: Type.Number({ minimum: 0 })
|
|
246
|
+
}),
|
|
247
|
+
|
|
248
|
+
// Breakdown by vehicle type
|
|
249
|
+
capacityByType: Type.Optional(Type.Record(Type.String(), Type.Object({
|
|
250
|
+
total: Type.Number({ minimum: 0 }),
|
|
251
|
+
available: Type.Number({ minimum: 0 })
|
|
252
|
+
}))),
|
|
253
|
+
|
|
254
|
+
// Spaces
|
|
255
|
+
spaces: Type.Optional(Type.Array(ParkingSpaceSchema)),
|
|
256
|
+
|
|
257
|
+
// Access & Security
|
|
258
|
+
access: Type.Object({
|
|
259
|
+
type: ParkingAccessSchema,
|
|
260
|
+
hours: Type.Optional(Type.Object({
|
|
261
|
+
weekday: Type.Optional(Type.String()), // e.g., "06:00-22:00"
|
|
262
|
+
weekend: Type.Optional(Type.String()),
|
|
263
|
+
holiday: Type.Optional(Type.String())
|
|
264
|
+
})),
|
|
265
|
+
restrictions: Type.Optional(Type.Array(Type.String()))
|
|
266
|
+
}),
|
|
267
|
+
|
|
268
|
+
securityLevel: ParkingSecurityLevelSchema,
|
|
269
|
+
|
|
270
|
+
// Amenities
|
|
271
|
+
amenities: ParkingAmenitiesSchema,
|
|
272
|
+
|
|
273
|
+
// Contact & Management
|
|
274
|
+
contacts: Type.Optional(ContactsSchema),
|
|
275
|
+
managedBy: Type.Optional(Type.String()), // Manager/Company ID
|
|
276
|
+
|
|
277
|
+
// Financial
|
|
278
|
+
costs: Type.Optional(Type.Object({
|
|
279
|
+
dailyRate: Type.Optional(MoneySchema),
|
|
280
|
+
monthlyRate: Type.Optional(MoneySchema),
|
|
281
|
+
maintenanceBudget: Type.Optional(MoneySchema)
|
|
282
|
+
})),
|
|
283
|
+
|
|
284
|
+
// Operational
|
|
285
|
+
operationalHours: Type.Optional(OperatingHoursSchema),
|
|
286
|
+
|
|
287
|
+
// Connected Facilities
|
|
288
|
+
nearbyFacilities: Type.Optional(Type.Array(Type.Object({
|
|
289
|
+
type: Type.String(), // e.g., "fuel_station", "maintenance_facility"
|
|
290
|
+
id: Type.String(),
|
|
291
|
+
distance: LengthSchema
|
|
292
|
+
}))),
|
|
293
|
+
|
|
294
|
+
// Fleet Assignment
|
|
295
|
+
assignedFleets: Type.Optional(Type.Array(Type.String())), // Fleet IDs
|
|
296
|
+
|
|
297
|
+
// Metadata
|
|
298
|
+
notes: Type.Optional(Type.String({ maxLength: 1000 })),
|
|
299
|
+
tags: Type.Optional(Type.Array(Type.String())),
|
|
300
|
+
|
|
301
|
+
created: ActionRecordSchema,
|
|
302
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
303
|
+
}, { additionalProperties: false })
|
|
304
|
+
|
|
305
|
+
// Parking Utilization Schema
|
|
306
|
+
export const ParkingUtilizationSchema = Type.Object({
|
|
307
|
+
parkingId: Type.String(),
|
|
308
|
+
period: DateTimeRangeSchema,
|
|
309
|
+
|
|
310
|
+
// Utilization Metrics
|
|
311
|
+
metrics: Type.Object({
|
|
312
|
+
averageOccupancy: Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
|
|
313
|
+
peakOccupancy: Type.Number({ minimum: 0, maximum: 100 }),
|
|
314
|
+
averageDuration: DurationSchema, // hours
|
|
315
|
+
totalVehicles: Type.Number({ minimum: 0 }),
|
|
316
|
+
turnoverRate: PerTimeSchema // Vehicles per day
|
|
317
|
+
}),
|
|
318
|
+
|
|
319
|
+
// Time-based Analysis
|
|
320
|
+
occupancyByHour: Type.Optional(Type.Record(Type.String(), Type.Number())),
|
|
321
|
+
occupancyByDay: Type.Optional(Type.Record(Type.String(), Type.Number())),
|
|
322
|
+
|
|
323
|
+
// Vehicle Type Distribution
|
|
324
|
+
byVehicleType: Type.Optional(Type.Record(Type.String(), Type.Object({
|
|
325
|
+
count: Type.Number({ minimum: 0 }),
|
|
326
|
+
averageDuration: Type.Number({ minimum: 0 })
|
|
327
|
+
}))),
|
|
328
|
+
|
|
329
|
+
// Revenue (if applicable)
|
|
330
|
+
revenue: Type.Optional(MoneySchema),
|
|
331
|
+
|
|
332
|
+
// Issues
|
|
333
|
+
incidents: Type.Optional(Type.Object({
|
|
334
|
+
unauthorized: Type.Number({ minimum: 0 }),
|
|
335
|
+
violations: Type.Number({ minimum: 0 }),
|
|
336
|
+
damages: Type.Number({ minimum: 0 })
|
|
337
|
+
}))
|
|
338
|
+
})
|
|
339
|
+
|
|
340
|
+
// Parking Reservation Schema
|
|
341
|
+
export const ParkingReservationStatusSchema = Type.Union([
|
|
342
|
+
Type.Literal('PENDING'),
|
|
343
|
+
Type.Literal('CONFIRMED'),
|
|
344
|
+
Type.Literal('ACTIVE'),
|
|
345
|
+
Type.Literal('COMPLETED'),
|
|
346
|
+
Type.Literal('CANCELLED'),
|
|
347
|
+
Type.Literal('NO_SHOW')
|
|
348
|
+
])
|
|
349
|
+
export const ParkingReservationSchema = Type.Object({
|
|
350
|
+
id: Type.String(),
|
|
351
|
+
parkingId: Type.String(),
|
|
352
|
+
spaceId: Type.Optional(Type.String()),
|
|
353
|
+
|
|
354
|
+
// Reservation Details
|
|
355
|
+
vid: Type.String(),
|
|
356
|
+
fleetId: Type.Optional(Type.String()),
|
|
357
|
+
|
|
358
|
+
period: DateTimeRangeSchema,
|
|
359
|
+
|
|
360
|
+
// Status
|
|
361
|
+
status: ParkingReservationStatusSchema,
|
|
362
|
+
|
|
363
|
+
// Requester
|
|
364
|
+
requested: ActionRecordSchema,
|
|
365
|
+
purpose: Type.Optional(Type.String({ maxLength: 200 })),
|
|
366
|
+
|
|
367
|
+
// Pricing
|
|
368
|
+
cost: Type.Optional(MoneySchema),
|
|
369
|
+
|
|
370
|
+
// Special Requirements
|
|
371
|
+
requirements: Type.Optional(Type.Object({
|
|
372
|
+
charging: Type.Boolean({ default: false }),
|
|
373
|
+
covered: Type.Boolean({ default: false }),
|
|
374
|
+
maintenance: Type.Boolean({ default: false }),
|
|
375
|
+
security: Type.Optional(ParkingSecurityLevelSchema)
|
|
376
|
+
})),
|
|
377
|
+
|
|
378
|
+
notes: Type.Optional(Type.String({ maxLength: 500 })),
|
|
379
|
+
|
|
380
|
+
created: ActionRecordSchema,
|
|
381
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
382
|
+
})
|
|
383
|
+
|
|
384
|
+
// Update Schemas
|
|
385
|
+
export const ParkingFacilityUpdateSchema = Type.Partial(Type.Omit(ParkingFacilitySchema, ['id', 'context', 'created']))
|
|
386
|
+
export const ParkingSpaceUpdateSchema = Type.Partial(Type.Omit(ParkingSpaceSchema, ['id']))
|
|
387
|
+
export const ParkingAssignmentUpdateSchema = Type.Partial(Type.Omit(ParkingAssignmentSchema, ['id', 'created']))
|
|
388
|
+
export const ParkingReservationUpdateSchema = Type.Partial(Type.Omit(ParkingReservationSchema, ['id', 'created']))
|
|
389
|
+
|
|
390
|
+
// TypeScript Types
|
|
391
|
+
export type ParkingType = Static<typeof ParkingTypeSchema>
|
|
392
|
+
export type ParkingStatus = Static<typeof ParkingStatusSchema>
|
|
393
|
+
export type ParkingAccess = Static<typeof ParkingAccessSchema>
|
|
394
|
+
export type ParkingSecurityLevel = Static<typeof ParkingSecurityLevelSchema>
|
|
395
|
+
export type ParkingAmenities = Static<typeof ParkingAmenitiesSchema>
|
|
396
|
+
export type ParkingSpaceType = Static<typeof ParkingSpaceTypeSchema>
|
|
397
|
+
export type ParkingSpaceStatus = Static<typeof ParkingSpaceStatusSchema>
|
|
398
|
+
export type ParkingSpace = Static<typeof ParkingSpaceSchema>
|
|
399
|
+
export type ParkingAssignmentType = Static<typeof ParkingAssignmentTypeSchema>
|
|
400
|
+
export type ParkingAssignmentStatus = Static<typeof ParkingAssignmentStatusSchema>
|
|
401
|
+
export type ParkingAssignment = Static<typeof ParkingAssignmentSchema>
|
|
402
|
+
export type ParkingFacility = Static<typeof ParkingFacilitySchema>
|
|
403
|
+
export type ParkingUtilization = Static<typeof ParkingUtilizationSchema>
|
|
404
|
+
export type ParkingReservationStatus = Static<typeof ParkingReservationStatusSchema>
|
|
405
|
+
export type ParkingReservation = Static<typeof ParkingReservationSchema>
|
|
406
|
+
export type ParkingFacilityUpdate = Static<typeof ParkingFacilityUpdateSchema>
|
|
407
|
+
export type ParkingSpaceUpdate = Static<typeof ParkingSpaceUpdateSchema>
|
|
408
|
+
export type ParkingAssignmentUpdate = Static<typeof ParkingAssignmentUpdateSchema>
|
|
409
|
+
export type ParkingReservationUpdate = Static<typeof ParkingReservationUpdateSchema>
|
|
410
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
411
|
+
|
|
412
|
+
import {
|
|
413
|
+
APIHeadersSchema,
|
|
414
|
+
APIResponseBaseSchema,
|
|
415
|
+
APIResponseDataSchemaFactory,
|
|
416
|
+
FetchByQueryRequestSchema,
|
|
417
|
+
FetchByQueryRequest
|
|
418
|
+
} from '../../api'
|
|
419
|
+
|
|
420
|
+
export const LSPFleetParkingAddFacilityRVS = {
|
|
421
|
+
headers: APIHeadersSchema,
|
|
422
|
+
body: Type.Omit(ParkingFacilitySchema, ['id', 'context', 'capacity', 'created', 'updated']),
|
|
423
|
+
response: APIResponseDataSchemaFactory({ parkingId: Type.String() })
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export const LSPFleetParkingRetrieveFacilityRVS = {
|
|
427
|
+
headers: APIHeadersSchema,
|
|
428
|
+
params: Type.Object({ id: Type.String() }),
|
|
429
|
+
response: APIResponseDataSchemaFactory({ parking: ParkingFacilitySchema })
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export const LSPFleetParkingFetchFacilitiesRVS = {
|
|
433
|
+
headers: APIHeadersSchema,
|
|
434
|
+
querystring: FetchByQueryRequestSchema,
|
|
435
|
+
response: APIResponseDataSchemaFactory({ parkings: Type.Array(ParkingFacilitySchema) })
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export const LSPFleetParkingUpdateFacilityRVS = {
|
|
439
|
+
headers: APIHeadersSchema,
|
|
440
|
+
params: Type.Object({ id: Type.String() }),
|
|
441
|
+
body: ParkingFacilityUpdateSchema,
|
|
442
|
+
response: APIResponseDataSchemaFactory({ parking: ParkingFacilitySchema })
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export const LSPFleetParkingRemoveFacilityRVS = {
|
|
446
|
+
headers: APIHeadersSchema,
|
|
447
|
+
params: Type.Object({ id: Type.String() }),
|
|
448
|
+
body: Type.Object({ reason: Type.String() }),
|
|
449
|
+
response: APIResponseBaseSchema
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export const LSPFleetParkingAddSpaceRVS = {
|
|
453
|
+
headers: APIHeadersSchema,
|
|
454
|
+
params: Type.Object({ id: Type.String() }),
|
|
455
|
+
body: Type.Omit(ParkingSpaceSchema, ['id', 'status', 'occupiedBy']),
|
|
456
|
+
response: APIResponseDataSchemaFactory({ spaceId: Type.String() })
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export const LSPFleetParkingUpdateSpaceRVS = {
|
|
460
|
+
headers: APIHeadersSchema,
|
|
461
|
+
params: Type.Object({ id: Type.String(), spaceId: Type.String() }),
|
|
462
|
+
body: ParkingSpaceUpdateSchema,
|
|
463
|
+
response: APIResponseDataSchemaFactory({ space: ParkingSpaceSchema })
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export const LSPFleetParkingRemoveSpaceRVS = {
|
|
467
|
+
headers: APIHeadersSchema,
|
|
468
|
+
params: Type.Object({ id: Type.String(), spaceId: Type.String() }),
|
|
469
|
+
response: APIResponseBaseSchema
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export const LSPFleetParkingCreateAssignmentRVS = {
|
|
473
|
+
headers: APIHeadersSchema,
|
|
474
|
+
body: Type.Omit(ParkingAssignmentSchema, ['id', 'status', 'checkIn', 'checkOut', 'created', 'updated']),
|
|
475
|
+
response: APIResponseDataSchemaFactory({ assignmentId: Type.String() })
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export const LSPFleetParkingRetrieveAssignmentRVS = {
|
|
479
|
+
headers: APIHeadersSchema,
|
|
480
|
+
params: Type.Object({ id: Type.String() }),
|
|
481
|
+
response: APIResponseDataSchemaFactory({ assignment: ParkingAssignmentSchema })
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export const LSPFleetParkingFetchAssignmentsRVS = {
|
|
485
|
+
headers: APIHeadersSchema,
|
|
486
|
+
querystring: FetchByQueryRequestSchema,
|
|
487
|
+
response: APIResponseDataSchemaFactory({ assignments: Type.Array(ParkingAssignmentSchema) })
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export const LSPFleetParkingUpdateAssignmentRVS = {
|
|
491
|
+
headers: APIHeadersSchema,
|
|
492
|
+
params: Type.Object({ id: Type.String() }),
|
|
493
|
+
body: ParkingAssignmentUpdateSchema,
|
|
494
|
+
response: APIResponseDataSchemaFactory({ assignment: ParkingAssignmentSchema })
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export const LSPFleetParkingCheckInRVS = {
|
|
498
|
+
headers: APIHeadersSchema,
|
|
499
|
+
params: Type.Object({ id: Type.String() }),
|
|
500
|
+
body: Type.Object({ mileage: Type.Optional(Type.Number()) }),
|
|
501
|
+
response: APIResponseBaseSchema
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export const LSPFleetParkingCheckOutRVS = {
|
|
505
|
+
headers: APIHeadersSchema,
|
|
506
|
+
params: Type.Object({ id: Type.String() }),
|
|
507
|
+
body: Type.Object({ mileage: Type.Optional(Type.Number()) }),
|
|
508
|
+
response: APIResponseBaseSchema
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export const LSPFleetParkingCancelAssignmentRVS = {
|
|
512
|
+
headers: APIHeadersSchema,
|
|
513
|
+
params: Type.Object({ id: Type.String() }),
|
|
514
|
+
response: APIResponseBaseSchema
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
export const LSPFleetParkingCreateReservationRVS = {
|
|
518
|
+
headers: APIHeadersSchema,
|
|
519
|
+
body: Type.Omit(ParkingReservationSchema, ['id', 'status', 'created', 'updated']),
|
|
520
|
+
response: APIResponseDataSchemaFactory({ reservationId: Type.String() })
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export const LSPFleetParkingRetrieveReservationRVS = {
|
|
524
|
+
headers: APIHeadersSchema,
|
|
525
|
+
params: Type.Object({ id: Type.String() }),
|
|
526
|
+
response: APIResponseDataSchemaFactory({ reservation: ParkingReservationSchema })
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
export const LSPFleetParkingFetchReservationsRVS = {
|
|
530
|
+
headers: APIHeadersSchema,
|
|
531
|
+
querystring: FetchByQueryRequestSchema,
|
|
532
|
+
response: APIResponseDataSchemaFactory({ reservations: Type.Array(ParkingReservationSchema) })
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export const LSPFleetParkingUpdateReservationRVS = {
|
|
536
|
+
headers: APIHeadersSchema,
|
|
537
|
+
params: Type.Object({ id: Type.String() }),
|
|
538
|
+
body: ParkingReservationUpdateSchema,
|
|
539
|
+
response: APIResponseDataSchemaFactory({ reservation: ParkingReservationSchema })
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
export const LSPFleetParkingConfirmReservationRVS = {
|
|
543
|
+
headers: APIHeadersSchema,
|
|
544
|
+
params: Type.Object({ id: Type.String() }),
|
|
545
|
+
response: APIResponseBaseSchema
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export const LSPFleetParkingCancelReservationRVS = {
|
|
549
|
+
headers: APIHeadersSchema,
|
|
550
|
+
params: Type.Object({ id: Type.String() }),
|
|
551
|
+
response: APIResponseBaseSchema
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
export const LSPFleetParkingGetUtilizationRVS = {
|
|
555
|
+
headers: APIHeadersSchema,
|
|
556
|
+
params: Type.Object({ id: Type.String() }),
|
|
557
|
+
querystring: Type.Object({ start: Type.String(), end: Type.String() }),
|
|
558
|
+
response: APIResponseDataSchemaFactory({ utilization: ParkingUtilizationSchema })
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
export type LSPFleetParkingAddFacilityValidation = { headers: Static<typeof LSPFleetParkingAddFacilityRVS.headers>, body: Static<typeof LSPFleetParkingAddFacilityRVS.body>, response: Static<typeof LSPFleetParkingAddFacilityRVS.response> }
|
|
562
|
+
export type LSPFleetParkingRetrieveFacilityValidation = { headers: Static<typeof LSPFleetParkingRetrieveFacilityRVS.headers>, params: Static<typeof LSPFleetParkingRetrieveFacilityRVS.params>, response: Static<typeof LSPFleetParkingRetrieveFacilityRVS.response> }
|
|
563
|
+
export type LSPFleetParkingFetchFacilitiesValidation = { headers: Static<typeof LSPFleetParkingFetchFacilitiesRVS.headers>, querystring: Static<typeof LSPFleetParkingFetchFacilitiesRVS.querystring>, response: Static<typeof LSPFleetParkingFetchFacilitiesRVS.response> }
|
|
564
|
+
export type LSPFleetParkingUpdateFacilityValidation = { headers: Static<typeof LSPFleetParkingUpdateFacilityRVS.headers>, params: Static<typeof LSPFleetParkingUpdateFacilityRVS.params>, body: Static<typeof LSPFleetParkingUpdateFacilityRVS.body>, response: Static<typeof LSPFleetParkingUpdateFacilityRVS.response> }
|
|
565
|
+
export type LSPFleetParkingRemoveFacilityValidation = { headers: Static<typeof LSPFleetParkingRemoveFacilityRVS.headers>, params: Static<typeof LSPFleetParkingRemoveFacilityRVS.params>, body: Static<typeof LSPFleetParkingRemoveFacilityRVS.body>, response: Static<typeof LSPFleetParkingRemoveFacilityRVS.response> }
|
|
566
|
+
export type LSPFleetParkingAddSpaceValidation = { headers: Static<typeof LSPFleetParkingAddSpaceRVS.headers>, params: Static<typeof LSPFleetParkingAddSpaceRVS.params>, body: Static<typeof LSPFleetParkingAddSpaceRVS.body>, response: Static<typeof LSPFleetParkingAddSpaceRVS.response> }
|
|
567
|
+
export type LSPFleetParkingUpdateSpaceValidation = { headers: Static<typeof LSPFleetParkingUpdateSpaceRVS.headers>, params: Static<typeof LSPFleetParkingUpdateSpaceRVS.params>, body: Static<typeof LSPFleetParkingUpdateSpaceRVS.body>, response: Static<typeof LSPFleetParkingUpdateSpaceRVS.response> }
|
|
568
|
+
export type LSPFleetParkingRemoveSpaceValidation = { headers: Static<typeof LSPFleetParkingRemoveSpaceRVS.headers>, params: Static<typeof LSPFleetParkingRemoveSpaceRVS.params>, response: Static<typeof LSPFleetParkingRemoveSpaceRVS.response> }
|
|
569
|
+
export type LSPFleetParkingCreateAssignmentValidation = { headers: Static<typeof LSPFleetParkingCreateAssignmentRVS.headers>, body: Static<typeof LSPFleetParkingCreateAssignmentRVS.body>, response: Static<typeof LSPFleetParkingCreateAssignmentRVS.response> }
|
|
570
|
+
export type LSPFleetParkingRetrieveAssignmentValidation = { headers: Static<typeof LSPFleetParkingRetrieveAssignmentRVS.headers>, params: Static<typeof LSPFleetParkingRetrieveAssignmentRVS.params>, response: Static<typeof LSPFleetParkingRetrieveAssignmentRVS.response> }
|
|
571
|
+
export type LSPFleetParkingFetchAssignmentsValidation = { headers: Static<typeof LSPFleetParkingFetchAssignmentsRVS.headers>, querystring: Static<typeof LSPFleetParkingFetchAssignmentsRVS.querystring>, response: Static<typeof LSPFleetParkingFetchAssignmentsRVS.response> }
|
|
572
|
+
export type LSPFleetParkingUpdateAssignmentValidation = { headers: Static<typeof LSPFleetParkingUpdateAssignmentRVS.headers>, params: Static<typeof LSPFleetParkingUpdateAssignmentRVS.params>, body: Static<typeof LSPFleetParkingUpdateAssignmentRVS.body>, response: Static<typeof LSPFleetParkingUpdateAssignmentRVS.response> }
|
|
573
|
+
export type LSPFleetParkingCheckInValidation = { headers: Static<typeof LSPFleetParkingCheckInRVS.headers>, params: Static<typeof LSPFleetParkingCheckInRVS.params>, body: Static<typeof LSPFleetParkingCheckInRVS.body>, response: Static<typeof LSPFleetParkingCheckInRVS.response> }
|
|
574
|
+
export type LSPFleetParkingCheckOutValidation = { headers: Static<typeof LSPFleetParkingCheckOutRVS.headers>, params: Static<typeof LSPFleetParkingCheckOutRVS.params>, body: Static<typeof LSPFleetParkingCheckOutRVS.body>, response: Static<typeof LSPFleetParkingCheckOutRVS.response> }
|
|
575
|
+
export type LSPFleetParkingCancelAssignmentValidation = { headers: Static<typeof LSPFleetParkingCancelAssignmentRVS.headers>, params: Static<typeof LSPFleetParkingCancelAssignmentRVS.params>, response: Static<typeof LSPFleetParkingCancelAssignmentRVS.response> }
|
|
576
|
+
export type LSPFleetParkingCreateReservationValidation = { headers: Static<typeof LSPFleetParkingCreateReservationRVS.headers>, body: Static<typeof LSPFleetParkingCreateReservationRVS.body>, response: Static<typeof LSPFleetParkingCreateReservationRVS.response> }
|
|
577
|
+
export type LSPFleetParkingRetrieveReservationValidation = { headers: Static<typeof LSPFleetParkingRetrieveReservationRVS.headers>, params: Static<typeof LSPFleetParkingRetrieveReservationRVS.params>, response: Static<typeof LSPFleetParkingRetrieveReservationRVS.response> }
|
|
578
|
+
export type LSPFleetParkingFetchReservationsValidation = { headers: Static<typeof LSPFleetParkingFetchReservationsRVS.headers>, querystring: Static<typeof LSPFleetParkingFetchReservationsRVS.querystring>, response: Static<typeof LSPFleetParkingFetchReservationsRVS.response> }
|
|
579
|
+
export type LSPFleetParkingUpdateReservationValidation = { headers: Static<typeof LSPFleetParkingUpdateReservationRVS.headers>, params: Static<typeof LSPFleetParkingUpdateReservationRVS.params>, body: Static<typeof LSPFleetParkingUpdateReservationRVS.body>, response: Static<typeof LSPFleetParkingUpdateReservationRVS.response> }
|
|
580
|
+
export type LSPFleetParkingConfirmReservationValidation = { headers: Static<typeof LSPFleetParkingConfirmReservationRVS.headers>, params: Static<typeof LSPFleetParkingConfirmReservationRVS.params>, response: Static<typeof LSPFleetParkingConfirmReservationRVS.response> }
|
|
581
|
+
export type LSPFleetParkingCancelReservationValidation = { headers: Static<typeof LSPFleetParkingCancelReservationRVS.headers>, params: Static<typeof LSPFleetParkingCancelReservationRVS.params>, response: Static<typeof LSPFleetParkingCancelReservationRVS.response> }
|
|
582
|
+
export type LSPFleetParkingGetUtilizationValidation = { headers: Static<typeof LSPFleetParkingGetUtilizationRVS.headers>, params: Static<typeof LSPFleetParkingGetUtilizationRVS.params>, querystring: Static<typeof LSPFleetParkingGetUtilizationRVS.querystring>, response: Static<typeof LSPFleetParkingGetUtilizationRVS.response> }
|