@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,706 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LSPCoverageUpdatePointsRouteRVS = exports.LSPCoverageAddGeoJsonRouteRVS = exports.LSPCoverageAddPointsRouteRVS = exports.LSPCoverageRemoveAreaRVS = exports.LSPCoverageUnlinkNodeRVS = exports.LSPCoverageLinkNodeRVS = exports.LSPCoverageListAreasRVS = exports.LSPCoverageGetRouteRVS = exports.LSPCoverageGetAreaRVS = exports.LSPCoverageUpdateCustomAreaRVS = exports.LSPCoverageUpdateCountryAreaRVS = exports.LSPCoverageUpdateRegionAreaRVS = exports.LSPCoverageUpdateStateAreaRVS = exports.LSPCoverageUpdateCountyAreaRVS = exports.LSPCoverageUpdateMetroAreaRVS = exports.LSPCoverageUpdateTownAreaRVS = exports.LSPCoverageUpdateCityAreaRVS = exports.LSPCoverageAddCustomAreaRVS = exports.LSPCoverageAddCountryAreaRVS = exports.LSPCoverageAddRegionAreaRVS = exports.LSPCoverageAddStateAreaRVS = exports.LSPCoverageAddCountyAreaRVS = exports.LSPCoverageAddMetroAreaRVS = exports.LSPCoverageAddTownAreaRVS = exports.LSPCoverageAddCityAreaRVS = exports.LSPCoverageOverviewRVS = exports.CoverageOperationSchema = exports.CoverageGeoJsonRouteSchema = exports.CoveragePointsRouteSchema = exports.CoverageRouteTypeSchema = exports.CoverageCustomAreaSchema = exports.CoverageCountryAreaSchema = exports.CoverageRegionAreaSchema = exports.CoverageStateAreaSchema = exports.CoverageCountyAreaSchema = exports.CoverageMetropolitanAreaSchema = exports.CoverageTownAreaSchema = exports.CoverageCityAreaSchema = exports.CoverageAreaTypeSchema = exports.CoverageSegmentBaseSchema = exports.CoverageSegmentTypeSchema = exports.CoveragePerformanceSchema = exports.CoverageRestrictionSchema = exports.CoverageRestrictionTypeSchema = exports.CoverageCapacitySchema = exports.CoverageScheduleSchema = exports.CoverageTransitSchema = exports.CoverageTransitTypeSchema = exports.CoverageTransitModeSchema = exports.CoverageReachSchema = void 0;
|
|
4
|
+
exports.LSPCoverageFindCompliantWaypointsRVS = exports.LSPCoverageValidateRouteRVS = exports.LSPCoverageExportComplianceDataRVS = exports.LSPCoverageGenerateSpeedComplianceReportRVS = exports.LSPCoverageGenerateParkingComplianceReportRVS = exports.LSPCoverageGenerateComplianceReportRVS = exports.LSPCoverageFindChargingZonesRVS = exports.LSPCoverageAnalyzeDistributionRVS = exports.LSPCoverageGetRebalancingRecommendationsRVS = exports.LSPCoverageGetZoneCapacityRVS = exports.LSPCoverageGetViolationStatsRVS = exports.LSPCoverageTrackViolationRVS = exports.LSPCoverageGetParkingCapacityAnalyticsRVS = exports.LSPCoverageGetAnalyticsRVS = exports.LSPCoverageFindParkingZonesRVS = exports.LSPCoverageCheckRestrictionsRVS = exports.LSPCoverageFindNearestRVS = exports.LSPCoverageValidateBoundaryRVS = exports.LSPCoverageGetServiceabilityRVS = exports.LSPCoverageFindAreasRVS = exports.LSPCoverageCheckRVS = exports.LSPCoverageRemoveRouteRVS = exports.LSPCoverageRemoveRouteNodeRVS = exports.LSPCoverageAddRouteNodeRVS = exports.LSPCoverageListRoutesRVS = exports.LSPCoverageUpdateGeoJsonRouteRVS = void 0;
|
|
5
|
+
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
const _1 = require(".");
|
|
7
|
+
const vehicle_1 = require("./fleet/vehicle");
|
|
8
|
+
const parking_1 = require("./fleet/parking");
|
|
9
|
+
const time_1 = require("../time");
|
|
10
|
+
const measure_1 = require("../measure");
|
|
11
|
+
const context_1 = require("../context");
|
|
12
|
+
const entity_1 = require("../entity");
|
|
13
|
+
const geo_1 = require("../geo");
|
|
14
|
+
exports.CoverageReachSchema = typebox_1.Type.Union([
|
|
15
|
+
typebox_1.Type.Literal('INTERNATIONAL'),
|
|
16
|
+
typebox_1.Type.Literal('INTERSTATE'),
|
|
17
|
+
typebox_1.Type.Literal('NATIONAL'),
|
|
18
|
+
typebox_1.Type.Literal('REGIONAL'),
|
|
19
|
+
typebox_1.Type.Literal('LOCAL'),
|
|
20
|
+
typebox_1.Type.Literal('MICRO')
|
|
21
|
+
]);
|
|
22
|
+
exports.CoverageTransitModeSchema = typebox_1.Type.Union([
|
|
23
|
+
typebox_1.Type.Literal('ROAD'), // Road freight transport
|
|
24
|
+
typebox_1.Type.Literal('AIR'), // Air freight transport
|
|
25
|
+
typebox_1.Type.Literal('RAIL'), // Rail freight transport
|
|
26
|
+
typebox_1.Type.Literal('SEA'), // Sea freight transport
|
|
27
|
+
typebox_1.Type.Literal('BARGE'), // Inland waterway transport
|
|
28
|
+
typebox_1.Type.Literal('PIPELINE'), // Pipeline transport (oil, gas, liquids)
|
|
29
|
+
]);
|
|
30
|
+
exports.CoverageTransitTypeSchema = typebox_1.Type.Union([
|
|
31
|
+
typebox_1.Type.Literal('CROSS_BORDER'),
|
|
32
|
+
typebox_1.Type.Literal('INTERMODAL'),
|
|
33
|
+
typebox_1.Type.Literal('MULTIMODAL'),
|
|
34
|
+
typebox_1.Type.Literal('LAST_MILE'),
|
|
35
|
+
typebox_1.Type.Literal('MIDDLE_MILE'),
|
|
36
|
+
typebox_1.Type.Literal('LONG_HAUL'),
|
|
37
|
+
typebox_1.Type.Literal('LINEHAUL'),
|
|
38
|
+
// REVIEW
|
|
39
|
+
typebox_1.Type.Literal('PICKUP_DELIVERY'),
|
|
40
|
+
typebox_1.Type.Literal('HUB_TO_HUB'),
|
|
41
|
+
typebox_1.Type.Literal('HUB_TO_TERMINAL'),
|
|
42
|
+
typebox_1.Type.Literal('HUB_TO_WAREHOUSE'),
|
|
43
|
+
typebox_1.Type.Literal('TERMINAL_TO_TERMINAL'),
|
|
44
|
+
typebox_1.Type.Literal('TERMINAL_TO_HUB'),
|
|
45
|
+
typebox_1.Type.Literal('TERMINAL_TO_WAREHOUSE'),
|
|
46
|
+
typebox_1.Type.Literal('WAREHOUSE_TO_WAREHOUSE'),
|
|
47
|
+
typebox_1.Type.Literal('WAREHOUSE_TO_TERMINAL'),
|
|
48
|
+
typebox_1.Type.Literal('WAREHOUSE_TO_HUB'),
|
|
49
|
+
typebox_1.Type.Literal('POINT_TO_POINT'),
|
|
50
|
+
typebox_1.Type.Literal('MULTI_STOP'),
|
|
51
|
+
typebox_1.Type.Literal('MILK_RUN'),
|
|
52
|
+
typebox_1.Type.Literal('CONSOLIDATION'),
|
|
53
|
+
typebox_1.Type.Literal('DECONSOLIDATION')
|
|
54
|
+
]);
|
|
55
|
+
exports.CoverageTransitSchema = typebox_1.Type.Object({
|
|
56
|
+
type: exports.CoverageTransitTypeSchema,
|
|
57
|
+
mode: exports.CoverageTransitModeSchema,
|
|
58
|
+
time: time_1.DurationRangeSchema, // in Hours
|
|
59
|
+
/**
|
|
60
|
+
* Declare other hubs/terminals/warehouses/points
|
|
61
|
+
* directly linked to this point of the coverage.
|
|
62
|
+
*/
|
|
63
|
+
nodes: typebox_1.Type.Optional(typebox_1.Type.Array(_1.LSPNetworkNodeSchema))
|
|
64
|
+
});
|
|
65
|
+
exports.CoverageScheduleSchema = typebox_1.Type.Object({
|
|
66
|
+
frequency: typebox_1.Type.Union([
|
|
67
|
+
typebox_1.Type.Literal('HOURLY'),
|
|
68
|
+
typebox_1.Type.Literal('DAILY'),
|
|
69
|
+
typebox_1.Type.Literal('WEEKLY'),
|
|
70
|
+
typebox_1.Type.Literal('ON_DEMAND')
|
|
71
|
+
]),
|
|
72
|
+
departureTimes: typebox_1.Type.Array(time_1.TimeSchema),
|
|
73
|
+
arrivalTimes: typebox_1.Type.Optional(typebox_1.Type.Array(time_1.TimeSchema)),
|
|
74
|
+
operatingDays: typebox_1.Type.Array(time_1.WeekDaySchema)
|
|
75
|
+
});
|
|
76
|
+
exports.CoverageCapacitySchema = typebox_1.Type.Object({
|
|
77
|
+
freight: typebox_1.Type.Object({
|
|
78
|
+
volume: measure_1.VolumeSchema,
|
|
79
|
+
weight: measure_1.WeightSchema,
|
|
80
|
+
packages: typebox_1.Type.Optional(typebox_1.Type.Number({ minimum: 0 }))
|
|
81
|
+
}),
|
|
82
|
+
passenger: typebox_1.Type.Object({
|
|
83
|
+
seats: typebox_1.Type.Number({ minimum: 0 }),
|
|
84
|
+
weight: typebox_1.Type.Optional(measure_1.WeightSchema),
|
|
85
|
+
packages: typebox_1.Type.Optional(typebox_1.Type.Number({ minimum: 0 }))
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
exports.CoverageRestrictionTypeSchema = typebox_1.Type.Union([
|
|
89
|
+
typebox_1.Type.Literal('SPEED_LIMIT'),
|
|
90
|
+
typebox_1.Type.Literal('NO_GO_ZONE'),
|
|
91
|
+
typebox_1.Type.Literal('PARKING'),
|
|
92
|
+
typebox_1.Type.Literal('TIME_RESTRICTION'),
|
|
93
|
+
typebox_1.Type.Literal('VEHICLE_TYPE'),
|
|
94
|
+
typebox_1.Type.Literal('WEIGHT_LIMIT'),
|
|
95
|
+
typebox_1.Type.Literal('HEIGHT_LIMIT'),
|
|
96
|
+
typebox_1.Type.Literal('OTHER')
|
|
97
|
+
]);
|
|
98
|
+
exports.CoverageRestrictionSchema = typebox_1.Type.Object({
|
|
99
|
+
type: exports.CoverageRestrictionTypeSchema,
|
|
100
|
+
code: typebox_1.Type.String(),
|
|
101
|
+
label: typebox_1.Type.String(),
|
|
102
|
+
reason: typebox_1.Type.String(),
|
|
103
|
+
alternativeOptions: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
104
|
+
// Vehicle-specific restrictions (for mobility, fleet, e-scooters)
|
|
105
|
+
vehicleType: typebox_1.Type.Optional(vehicle_1.VehicleTypeSchema),
|
|
106
|
+
speedLimit: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
107
|
+
value: typebox_1.Type.Number({ minimum: 0 }),
|
|
108
|
+
unit: typebox_1.Type.Union([
|
|
109
|
+
typebox_1.Type.Literal('KM_PER_HOUR'),
|
|
110
|
+
typebox_1.Type.Literal('MPH')
|
|
111
|
+
])
|
|
112
|
+
})),
|
|
113
|
+
allowed: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
114
|
+
activeHours: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
115
|
+
start: time_1.TimeSchema,
|
|
116
|
+
end: time_1.TimeSchema,
|
|
117
|
+
days: typebox_1.Type.Optional(typebox_1.Type.Array(time_1.WeekDaySchema))
|
|
118
|
+
})),
|
|
119
|
+
severity: typebox_1.Type.Optional(typebox_1.Type.Union([
|
|
120
|
+
typebox_1.Type.Literal('WARNING'),
|
|
121
|
+
typebox_1.Type.Literal('ENFORCED'),
|
|
122
|
+
typebox_1.Type.Literal('CRITICAL')
|
|
123
|
+
])),
|
|
124
|
+
// Parking-specific restrictions (when type = 'PARKING')
|
|
125
|
+
parkingTypes: typebox_1.Type.Optional(typebox_1.Type.Array(parking_1.ParkingTypeSchema)), // Allowed/restricted parking types
|
|
126
|
+
parkingCapacity: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
127
|
+
max: typebox_1.Type.Number({ minimum: 0 }),
|
|
128
|
+
unit: typebox_1.Type.Union([
|
|
129
|
+
typebox_1.Type.Literal('VEHICLES'),
|
|
130
|
+
typebox_1.Type.Literal('SPACES')
|
|
131
|
+
])
|
|
132
|
+
})),
|
|
133
|
+
chargingRequired: typebox_1.Type.Optional(typebox_1.Type.Boolean()), // Must park at charging dock when battery low
|
|
134
|
+
minimumBatteryLevel: typebox_1.Type.Optional(typebox_1.Type.Number({ minimum: 0, maximum: 100 })) // % threshold for charging enforcement
|
|
135
|
+
});
|
|
136
|
+
exports.CoveragePerformanceSchema = typebox_1.Type.Object({
|
|
137
|
+
reliability: typebox_1.Type.Number({ minimum: 0, maximum: 100, description: 'percentage' }),
|
|
138
|
+
averageDelay: measure_1.PerTimeSchema, // minutes,
|
|
139
|
+
capacityUtilization: typebox_1.Type.Number({ minimum: 0, maximum: 100 }),
|
|
140
|
+
cost: typebox_1.Type.Optional(measure_1.MoneySchema)
|
|
141
|
+
});
|
|
142
|
+
exports.CoverageSegmentTypeSchema = typebox_1.Type.Union([
|
|
143
|
+
typebox_1.Type.Literal('AREA'),
|
|
144
|
+
typebox_1.Type.Literal('ROUTE')
|
|
145
|
+
]);
|
|
146
|
+
exports.CoverageSegmentBaseSchema = typebox_1.Type.Object({
|
|
147
|
+
context: context_1.ContextSchema,
|
|
148
|
+
id: typebox_1.Type.String(),
|
|
149
|
+
code: typebox_1.Type.String(),
|
|
150
|
+
name: typebox_1.Type.String(),
|
|
151
|
+
status: entity_1.EntityStatusSchema,
|
|
152
|
+
reach: exports.CoverageReachSchema,
|
|
153
|
+
serviceLevel: measure_1.ServiceLevelSchema,
|
|
154
|
+
transit: exports.CoverageTransitSchema,
|
|
155
|
+
cutoffTime: typebox_1.Type.Optional(time_1.DateTimeZoneSchema), // "15:00"
|
|
156
|
+
schedules: exports.CoverageScheduleSchema,
|
|
157
|
+
capacity: exports.CoverageCapacitySchema,
|
|
158
|
+
restrictions: typebox_1.Type.Optional(typebox_1.Type.Array(exports.CoverageRestrictionSchema)),
|
|
159
|
+
isGuaranteed: typebox_1.Type.Boolean(),
|
|
160
|
+
// Performance
|
|
161
|
+
performance: typebox_1.Type.Optional(exports.CoveragePerformanceSchema),
|
|
162
|
+
added: time_1.ActionRecordSchema,
|
|
163
|
+
updated: typebox_1.Type.Optional(time_1.ActionRecordSchema)
|
|
164
|
+
}, { additionalProperties: false });
|
|
165
|
+
exports.CoverageAreaTypeSchema = typebox_1.Type.Union([
|
|
166
|
+
typebox_1.Type.Literal('CITY'),
|
|
167
|
+
typebox_1.Type.Literal('TOWN'),
|
|
168
|
+
typebox_1.Type.Literal('METROPOLITAN'),
|
|
169
|
+
typebox_1.Type.Literal('COUNTY'),
|
|
170
|
+
typebox_1.Type.Literal('STATE'),
|
|
171
|
+
typebox_1.Type.Literal('REGION'),
|
|
172
|
+
typebox_1.Type.Literal('COUNTRY'),
|
|
173
|
+
typebox_1.Type.Literal('CUSTOM_ZONE')
|
|
174
|
+
]);
|
|
175
|
+
exports.CoverageCityAreaSchema = typebox_1.Type.Composite([
|
|
176
|
+
exports.CoverageSegmentBaseSchema,
|
|
177
|
+
typebox_1.Type.Object({
|
|
178
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
179
|
+
areaType: typebox_1.Type.Literal('CITY'),
|
|
180
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
181
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }),
|
|
182
|
+
region: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
183
|
+
state: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 100 })),
|
|
184
|
+
city: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
185
|
+
}, { additionalProperties: false })
|
|
186
|
+
]);
|
|
187
|
+
exports.CoverageTownAreaSchema = typebox_1.Type.Composite([
|
|
188
|
+
exports.CoverageSegmentBaseSchema,
|
|
189
|
+
typebox_1.Type.Object({
|
|
190
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
191
|
+
areaType: typebox_1.Type.Literal('TOWN'),
|
|
192
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
193
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }),
|
|
194
|
+
region: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
195
|
+
state: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 100 })),
|
|
196
|
+
town: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
197
|
+
}, { additionalProperties: false })
|
|
198
|
+
]);
|
|
199
|
+
exports.CoverageMetropolitanAreaSchema = typebox_1.Type.Composite([
|
|
200
|
+
exports.CoverageSegmentBaseSchema,
|
|
201
|
+
typebox_1.Type.Object({
|
|
202
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
203
|
+
areaType: typebox_1.Type.Literal('METROPOLITAN'),
|
|
204
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
205
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }), // Country code
|
|
206
|
+
region: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
207
|
+
state: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 100 })),
|
|
208
|
+
metropolitan: typebox_1.Type.String({ minLength: 1, maxLength: 100 })
|
|
209
|
+
}, { additionalProperties: false })
|
|
210
|
+
]);
|
|
211
|
+
exports.CoverageCountyAreaSchema = typebox_1.Type.Composite([
|
|
212
|
+
exports.CoverageSegmentBaseSchema,
|
|
213
|
+
typebox_1.Type.Object({
|
|
214
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
215
|
+
areaType: typebox_1.Type.Literal('COUNTY'),
|
|
216
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
217
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }), // Country code
|
|
218
|
+
region: typebox_1.Type.String({ minLength: 1, maxLength: 100 }),
|
|
219
|
+
state: typebox_1.Type.Optional(typebox_1.Type.String({ minLength: 1, maxLength: 100 })),
|
|
220
|
+
county: typebox_1.Type.String({ minLength: 1, maxLength: 100 })
|
|
221
|
+
}, { additionalProperties: false })
|
|
222
|
+
]);
|
|
223
|
+
exports.CoverageStateAreaSchema = typebox_1.Type.Composite([
|
|
224
|
+
exports.CoverageSegmentBaseSchema,
|
|
225
|
+
typebox_1.Type.Object({
|
|
226
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
227
|
+
areaType: typebox_1.Type.Literal('STATE'),
|
|
228
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
229
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }), // Country code
|
|
230
|
+
state: typebox_1.Type.String({ minLength: 1, maxLength: 100 })
|
|
231
|
+
}, { additionalProperties: false })
|
|
232
|
+
]);
|
|
233
|
+
exports.CoverageRegionAreaSchema = typebox_1.Type.Composite([
|
|
234
|
+
exports.CoverageSegmentBaseSchema,
|
|
235
|
+
typebox_1.Type.Object({
|
|
236
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
237
|
+
areaType: typebox_1.Type.Literal('REGION'),
|
|
238
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
239
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }), // Country code
|
|
240
|
+
region: typebox_1.Type.String({ minLength: 1, maxLength: 100 })
|
|
241
|
+
}, { additionalProperties: false })
|
|
242
|
+
]);
|
|
243
|
+
exports.CoverageCountryAreaSchema = typebox_1.Type.Composite([
|
|
244
|
+
exports.CoverageSegmentBaseSchema,
|
|
245
|
+
typebox_1.Type.Object({
|
|
246
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
247
|
+
areaType: typebox_1.Type.Literal('COUNTRY'),
|
|
248
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
249
|
+
country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }) // Country code
|
|
250
|
+
}, { additionalProperties: false })
|
|
251
|
+
]);
|
|
252
|
+
exports.CoverageCustomAreaSchema = typebox_1.Type.Composite([
|
|
253
|
+
exports.CoverageSegmentBaseSchema,
|
|
254
|
+
typebox_1.Type.Object({
|
|
255
|
+
type: typebox_1.Type.Literal('AREA'),
|
|
256
|
+
areaType: typebox_1.Type.Literal('CUSTOM_ZONE'),
|
|
257
|
+
linkedTo: typebox_1.Type.Array(_1.LSPNetworkNodeSchema),
|
|
258
|
+
boundary: geo_1.GeoBoundarySchema
|
|
259
|
+
}, { additionalProperties: false })
|
|
260
|
+
]);
|
|
261
|
+
exports.CoverageRouteTypeSchema = typebox_1.Type.Union([
|
|
262
|
+
typebox_1.Type.Literal('POINT_BASED'),
|
|
263
|
+
typebox_1.Type.Literal('GEOJSON_BASED')
|
|
264
|
+
]);
|
|
265
|
+
exports.CoveragePointsRouteSchema = typebox_1.Type.Composite([
|
|
266
|
+
exports.CoverageSegmentBaseSchema,
|
|
267
|
+
typebox_1.Type.Object({
|
|
268
|
+
type: typebox_1.Type.Literal('ROUTE'),
|
|
269
|
+
routeType: typebox_1.Type.Literal('POINT_BASED'),
|
|
270
|
+
origin: _1.LSPNetworkNodeSchema,
|
|
271
|
+
destination: _1.LSPNetworkNodeSchema,
|
|
272
|
+
distance: measure_1.DistanceSchema
|
|
273
|
+
})
|
|
274
|
+
]);
|
|
275
|
+
exports.CoverageGeoJsonRouteSchema = typebox_1.Type.Composite([
|
|
276
|
+
exports.CoverageSegmentBaseSchema,
|
|
277
|
+
typebox_1.Type.Object({
|
|
278
|
+
type: typebox_1.Type.Literal('ROUTE'),
|
|
279
|
+
routeType: typebox_1.Type.Literal('GEOJSON_BASED'),
|
|
280
|
+
geojson: typebox_1.Type.Any(),
|
|
281
|
+
distance: measure_1.DistanceSchema
|
|
282
|
+
})
|
|
283
|
+
]);
|
|
284
|
+
// LSP Hub Coverage Operation Schema
|
|
285
|
+
exports.CoverageOperationSchema = typebox_1.Type.Object({
|
|
286
|
+
id: typebox_1.Type.String(),
|
|
287
|
+
name: typebox_1.Type.String(),
|
|
288
|
+
type: typebox_1.Type.Union([
|
|
289
|
+
typebox_1.Type.Literal('CAPACITY_BALANCING'),
|
|
290
|
+
typebox_1.Type.Literal('ROUTE_OPTIMIZATION'),
|
|
291
|
+
typebox_1.Type.Literal('EMERGENCY_REROUTING'),
|
|
292
|
+
typebox_1.Type.Literal('COVERAGE_MAINTENANCE'),
|
|
293
|
+
typebox_1.Type.Literal('SERVICE_DISRUPTION'),
|
|
294
|
+
typebox_1.Type.Literal('PEAK_MANAGEMENT')
|
|
295
|
+
]),
|
|
296
|
+
// Operation scope
|
|
297
|
+
scope: typebox_1.Type.Object({
|
|
298
|
+
affectedHubs: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
299
|
+
affectedRoutes: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
300
|
+
affectedServiceLevels: typebox_1.Type.Array(measure_1.ServiceLevelSchema),
|
|
301
|
+
estimatedImpact: typebox_1.Type.Union([
|
|
302
|
+
typebox_1.Type.Literal('LOW'),
|
|
303
|
+
typebox_1.Type.Literal('MEDIUM'),
|
|
304
|
+
typebox_1.Type.Literal('HIGH'),
|
|
305
|
+
typebox_1.Type.Literal('CRITICAL')
|
|
306
|
+
])
|
|
307
|
+
}),
|
|
308
|
+
// Operation details
|
|
309
|
+
details: typebox_1.Type.Object({
|
|
310
|
+
triggerReason: typebox_1.Type.String({ maxLength: 500 }),
|
|
311
|
+
description: typebox_1.Type.String({ maxLength: 1000 }),
|
|
312
|
+
executionPlan: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
313
|
+
step: typebox_1.Type.Number(),
|
|
314
|
+
action: typebox_1.Type.String(),
|
|
315
|
+
hubId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
316
|
+
estimatedDuration: typebox_1.Type.Number({ description: 'minutes' }),
|
|
317
|
+
dependencies: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
318
|
+
status: typebox_1.Type.Union([
|
|
319
|
+
typebox_1.Type.Literal('PENDING'),
|
|
320
|
+
typebox_1.Type.Literal('IN_PROGRESS'),
|
|
321
|
+
typebox_1.Type.Literal('COMPLETED'),
|
|
322
|
+
typebox_1.Type.Literal('FAILED'),
|
|
323
|
+
typebox_1.Type.Literal('SKIPPED')
|
|
324
|
+
])
|
|
325
|
+
}))
|
|
326
|
+
}),
|
|
327
|
+
// Operation scheduling
|
|
328
|
+
scheduling: typebox_1.Type.Object({
|
|
329
|
+
scheduledAt: typebox_1.Type.Number(),
|
|
330
|
+
startedAt: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
331
|
+
completedAt: typebox_1.Type.Optional(typebox_1.Type.Number()),
|
|
332
|
+
priority: typebox_1.Type.Union([
|
|
333
|
+
typebox_1.Type.Literal('LOW'),
|
|
334
|
+
typebox_1.Type.Literal('NORMAL'),
|
|
335
|
+
typebox_1.Type.Literal('HIGH'),
|
|
336
|
+
typebox_1.Type.Literal('URGENT')
|
|
337
|
+
])
|
|
338
|
+
}),
|
|
339
|
+
// Operation status
|
|
340
|
+
status: typebox_1.Type.Union([
|
|
341
|
+
typebox_1.Type.Literal('PLANNED'),
|
|
342
|
+
typebox_1.Type.Literal('APPROVED'),
|
|
343
|
+
typebox_1.Type.Literal('EXECUTING'),
|
|
344
|
+
typebox_1.Type.Literal('COMPLETED'),
|
|
345
|
+
typebox_1.Type.Literal('FAILED'),
|
|
346
|
+
typebox_1.Type.Literal('CANCELLED'),
|
|
347
|
+
typebox_1.Type.Literal('ROLLED_BACK')
|
|
348
|
+
]),
|
|
349
|
+
created: time_1.ActionRecordSchema,
|
|
350
|
+
updated: typebox_1.Type.Optional(time_1.ActionRecordSchema)
|
|
351
|
+
});
|
|
352
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
353
|
+
const api_1 = require("../api");
|
|
354
|
+
const geo_2 = require("../geo");
|
|
355
|
+
const AREA_OMIT = ['id', 'context', 'type', 'areaType', 'status', 'transit.nodes', 'linkedTo', 'performance', 'added', 'updated'];
|
|
356
|
+
const ROUTE_OMIT = ['id', 'context', 'type', 'routeType', 'status', 'transit.nodes', 'performance', 'added', 'updated'];
|
|
357
|
+
const AreaCreatedResponse = { 201: (0, api_1.APIResponseDataSchemaFactory)({ areaId: typebox_1.Type.String() }), '4XX': api_1.APIErrorSchema };
|
|
358
|
+
const RouteCreatedResponse = { 201: (0, api_1.APIResponseDataSchemaFactory)({ routeId: typebox_1.Type.String() }), '4XX': api_1.APIErrorSchema };
|
|
359
|
+
// ── Overview ──────────────────────────────────────────────────────────────────
|
|
360
|
+
exports.LSPCoverageOverviewRVS = {
|
|
361
|
+
headers: api_1.APIHeadersSchema,
|
|
362
|
+
querystring: typebox_1.Type.Object({
|
|
363
|
+
type: typebox_1.Type.Optional(exports.CoverageSegmentTypeSchema),
|
|
364
|
+
status: typebox_1.Type.Optional(entity_1.EntityStatusSchema)
|
|
365
|
+
}),
|
|
366
|
+
response: {
|
|
367
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ coverage: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }),
|
|
368
|
+
'4XX': api_1.APIErrorSchema
|
|
369
|
+
}
|
|
370
|
+
};
|
|
371
|
+
// ── Areas — Add ───────────────────────────────────────────────────────────────
|
|
372
|
+
exports.LSPCoverageAddCityAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageCityAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
373
|
+
exports.LSPCoverageAddTownAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageTownAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
374
|
+
exports.LSPCoverageAddMetroAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageMetropolitanAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
375
|
+
exports.LSPCoverageAddCountyAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageCountyAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
376
|
+
exports.LSPCoverageAddStateAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageStateAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
377
|
+
exports.LSPCoverageAddRegionAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageRegionAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
378
|
+
exports.LSPCoverageAddCountryAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageCountryAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
379
|
+
exports.LSPCoverageAddCustomAreaRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageCustomAreaSchema, AREA_OMIT), response: AreaCreatedResponse };
|
|
380
|
+
// ── Areas — Update ────────────────────────────────────────────────────────────
|
|
381
|
+
const AreaUpdateParams = typebox_1.Type.Object({ id: typebox_1.Type.String() });
|
|
382
|
+
exports.LSPCoverageUpdateCityAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageCityAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageCityAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
383
|
+
exports.LSPCoverageUpdateTownAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageTownAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageTownAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
384
|
+
exports.LSPCoverageUpdateMetroAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageMetropolitanAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageMetropolitanAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
385
|
+
exports.LSPCoverageUpdateCountyAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageCountyAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageCountyAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
386
|
+
exports.LSPCoverageUpdateStateAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageStateAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageStateAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
387
|
+
exports.LSPCoverageUpdateRegionAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageRegionAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageRegionAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
388
|
+
exports.LSPCoverageUpdateCountryAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageCountryAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageCountryAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
389
|
+
exports.LSPCoverageUpdateCustomAreaRVS = { headers: api_1.APIHeadersSchema, params: AreaUpdateParams, body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageCustomAreaSchema, AREA_OMIT)), response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ area: exports.CoverageCustomAreaSchema }), '4XX': api_1.APIErrorSchema } };
|
|
390
|
+
// ── Areas — Common ────────────────────────────────────────────────────────────
|
|
391
|
+
exports.LSPCoverageGetAreaRVS = {
|
|
392
|
+
headers: api_1.APIHeadersSchema,
|
|
393
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
394
|
+
response: {
|
|
395
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ area: typebox_1.Type.Any() }),
|
|
396
|
+
'4XX': api_1.APIErrorSchema
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
exports.LSPCoverageGetRouteRVS = {
|
|
400
|
+
headers: api_1.APIHeadersSchema,
|
|
401
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
402
|
+
response: {
|
|
403
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ route: typebox_1.Type.Any() }),
|
|
404
|
+
'4XX': api_1.APIErrorSchema
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
exports.LSPCoverageListAreasRVS = {
|
|
408
|
+
headers: api_1.APIHeadersSchema,
|
|
409
|
+
querystring: typebox_1.Type.Composite([
|
|
410
|
+
api_1.FetchByQueryRequestSchema,
|
|
411
|
+
typebox_1.Type.Object({ status: typebox_1.Type.Optional(entity_1.EntityStatusSchema) })
|
|
412
|
+
]),
|
|
413
|
+
response: {
|
|
414
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ areas: typebox_1.Type.Array(typebox_1.Type.Any()) }),
|
|
415
|
+
'4XX': api_1.APIErrorSchema
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
exports.LSPCoverageLinkNodeRVS = {
|
|
419
|
+
headers: api_1.APIHeadersSchema,
|
|
420
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
421
|
+
body: _1.LSPNetworkNodeSchema,
|
|
422
|
+
response: {
|
|
423
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ area: typebox_1.Type.Any() }),
|
|
424
|
+
'4XX': api_1.APIErrorSchema
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
exports.LSPCoverageUnlinkNodeRVS = {
|
|
428
|
+
headers: api_1.APIHeadersSchema,
|
|
429
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
430
|
+
body: typebox_1.Type.Object({
|
|
431
|
+
id: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
432
|
+
addressName: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
433
|
+
}),
|
|
434
|
+
response: {
|
|
435
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ area: typebox_1.Type.Any() }),
|
|
436
|
+
'4XX': api_1.APIErrorSchema
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
exports.LSPCoverageRemoveAreaRVS = {
|
|
440
|
+
headers: api_1.APIHeadersSchema,
|
|
441
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
442
|
+
response: {
|
|
443
|
+
200: api_1.APIResponseBaseSchema,
|
|
444
|
+
'4XX': api_1.APIErrorSchema
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
// ── Routes ────────────────────────────────────────────────────────────────────
|
|
448
|
+
exports.LSPCoverageAddPointsRouteRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoveragePointsRouteSchema, ROUTE_OMIT), response: RouteCreatedResponse };
|
|
449
|
+
exports.LSPCoverageAddGeoJsonRouteRVS = { headers: api_1.APIHeadersSchema, body: typebox_1.Type.Omit(exports.CoverageGeoJsonRouteSchema, ROUTE_OMIT), response: RouteCreatedResponse };
|
|
450
|
+
exports.LSPCoverageUpdatePointsRouteRVS = {
|
|
451
|
+
headers: api_1.APIHeadersSchema,
|
|
452
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
453
|
+
body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoveragePointsRouteSchema, ROUTE_OMIT)),
|
|
454
|
+
response: {
|
|
455
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ route: exports.CoveragePointsRouteSchema }),
|
|
456
|
+
'4XX': api_1.APIErrorSchema
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
exports.LSPCoverageUpdateGeoJsonRouteRVS = {
|
|
460
|
+
headers: api_1.APIHeadersSchema,
|
|
461
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
462
|
+
body: typebox_1.Type.Partial(typebox_1.Type.Omit(exports.CoverageGeoJsonRouteSchema, ROUTE_OMIT)),
|
|
463
|
+
response: {
|
|
464
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ route: exports.CoverageGeoJsonRouteSchema }),
|
|
465
|
+
'4XX': api_1.APIErrorSchema
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
exports.LSPCoverageListRoutesRVS = {
|
|
469
|
+
headers: api_1.APIHeadersSchema,
|
|
470
|
+
querystring: typebox_1.Type.Composite([
|
|
471
|
+
api_1.FetchByQueryRequestSchema,
|
|
472
|
+
typebox_1.Type.Object({ status: typebox_1.Type.Optional(entity_1.EntityStatusSchema) })
|
|
473
|
+
]),
|
|
474
|
+
response: {
|
|
475
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ routes: typebox_1.Type.Array(typebox_1.Type.Any()) }),
|
|
476
|
+
'4XX': api_1.APIErrorSchema
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
exports.LSPCoverageAddRouteNodeRVS = {
|
|
480
|
+
headers: api_1.APIHeadersSchema,
|
|
481
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
482
|
+
body: _1.LSPNetworkNodeSchema,
|
|
483
|
+
response: {
|
|
484
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ route: typebox_1.Type.Any() }),
|
|
485
|
+
'4XX': api_1.APIErrorSchema
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
exports.LSPCoverageRemoveRouteNodeRVS = {
|
|
489
|
+
headers: api_1.APIHeadersSchema,
|
|
490
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
491
|
+
body: typebox_1.Type.Object({
|
|
492
|
+
id: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
493
|
+
addressName: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
494
|
+
}),
|
|
495
|
+
response: {
|
|
496
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ route: typebox_1.Type.Any() }),
|
|
497
|
+
'4XX': api_1.APIErrorSchema
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
exports.LSPCoverageRemoveRouteRVS = {
|
|
501
|
+
headers: api_1.APIHeadersSchema,
|
|
502
|
+
params: typebox_1.Type.Object({ id: typebox_1.Type.String() }),
|
|
503
|
+
response: {
|
|
504
|
+
200: api_1.APIResponseBaseSchema,
|
|
505
|
+
'4XX': api_1.APIErrorSchema
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
// ── Checks ────────────────────────────────────────────────────────────────────
|
|
509
|
+
exports.LSPCoverageCheckRVS = {
|
|
510
|
+
headers: api_1.APIHeadersSchema,
|
|
511
|
+
body: typebox_1.Type.Object({
|
|
512
|
+
location: typebox_1.Type.Object({ coordinates: geo_2.CoordinatesSchema, country: typebox_1.Type.String({ minLength: 2, maxLength: 2 }), city: typebox_1.Type.Optional(typebox_1.Type.String()) }),
|
|
513
|
+
serviceType: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
514
|
+
}),
|
|
515
|
+
response: {
|
|
516
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ isCovered: typebox_1.Type.Boolean(), matchingAreas: typebox_1.Type.Array(typebox_1.Type.Any()) }),
|
|
517
|
+
'4XX': api_1.APIErrorSchema
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
exports.LSPCoverageFindAreasRVS = {
|
|
521
|
+
headers: api_1.APIHeadersSchema,
|
|
522
|
+
body: typebox_1.Type.Object({
|
|
523
|
+
location: typebox_1.Type.Object({ coordinates: geo_2.CoordinatesSchema, country: typebox_1.Type.Optional(typebox_1.Type.String()) }),
|
|
524
|
+
filters: typebox_1.Type.Optional(typebox_1.Type.Any())
|
|
525
|
+
}),
|
|
526
|
+
response: {
|
|
527
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ areas: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }),
|
|
528
|
+
'4XX': api_1.APIErrorSchema
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
exports.LSPCoverageGetServiceabilityRVS = {
|
|
532
|
+
headers: api_1.APIHeadersSchema,
|
|
533
|
+
querystring: typebox_1.Type.Object({
|
|
534
|
+
lat: typebox_1.Type.String(),
|
|
535
|
+
lng: typebox_1.Type.String(),
|
|
536
|
+
country: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
537
|
+
}),
|
|
538
|
+
response: {
|
|
539
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ serviceability: typebox_1.Type.Any() }),
|
|
540
|
+
'4XX': api_1.APIErrorSchema
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
exports.LSPCoverageValidateBoundaryRVS = {
|
|
544
|
+
headers: api_1.APIHeadersSchema,
|
|
545
|
+
body: typebox_1.Type.Object({ boundary: typebox_1.Type.Any() }),
|
|
546
|
+
response: {
|
|
547
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ valid: typebox_1.Type.Boolean() }),
|
|
548
|
+
'4XX': api_1.APIErrorSchema
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
exports.LSPCoverageFindNearestRVS = {
|
|
552
|
+
headers: api_1.APIHeadersSchema,
|
|
553
|
+
body: typebox_1.Type.Object({
|
|
554
|
+
location: typebox_1.Type.Object({ coordinates: geo_2.CoordinatesSchema, country: typebox_1.Type.Optional(typebox_1.Type.String()) })
|
|
555
|
+
}),
|
|
556
|
+
response: {
|
|
557
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ nearestArea: typebox_1.Type.Any() }),
|
|
558
|
+
'4XX': api_1.APIErrorSchema
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
exports.LSPCoverageCheckRestrictionsRVS = {
|
|
562
|
+
headers: api_1.APIHeadersSchema,
|
|
563
|
+
body: typebox_1.Type.Object({
|
|
564
|
+
location: typebox_1.Type.Object({ coordinates: geo_2.CoordinatesSchema }),
|
|
565
|
+
vehicleType: typebox_1.Type.Optional(vehicle_1.VehicleTypeSchema),
|
|
566
|
+
restrictionType: typebox_1.Type.Optional(exports.CoverageRestrictionTypeSchema)
|
|
567
|
+
}),
|
|
568
|
+
response: {
|
|
569
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ location: geo_2.CoordinatesSchema, restrictions: typebox_1.Type.Array(typebox_1.Type.Any()), summary: typebox_1.Type.Any() }),
|
|
570
|
+
'4XX': api_1.APIErrorSchema
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
exports.LSPCoverageFindParkingZonesRVS = {
|
|
574
|
+
headers: api_1.APIHeadersSchema,
|
|
575
|
+
body: typebox_1.Type.Object({
|
|
576
|
+
location: typebox_1.Type.Object({ coordinates: geo_2.CoordinatesSchema }),
|
|
577
|
+
vehicleType: vehicle_1.VehicleTypeSchema,
|
|
578
|
+
radius: typebox_1.Type.Optional(measure_1.DistanceSchema)
|
|
579
|
+
}),
|
|
580
|
+
response: {
|
|
581
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ location: geo_2.CoordinatesSchema, vehicleType: vehicle_1.VehicleTypeSchema, radius: measure_1.DistanceSchema, zones: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }),
|
|
582
|
+
'4XX': api_1.APIErrorSchema
|
|
583
|
+
}
|
|
584
|
+
};
|
|
585
|
+
// ── Analytics ─────────────────────────────────────────────────────────────────
|
|
586
|
+
exports.LSPCoverageGetAnalyticsRVS = { headers: api_1.APIHeadersSchema, response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ analytics: typebox_1.Type.Any() }) } };
|
|
587
|
+
exports.LSPCoverageGetParkingCapacityAnalyticsRVS = {
|
|
588
|
+
headers: api_1.APIHeadersSchema,
|
|
589
|
+
body: typebox_1.Type.Object({ vehicleType: typebox_1.Type.Optional(typebox_1.Type.String()), includeOccupancy: typebox_1.Type.Optional(typebox_1.Type.Boolean()) }),
|
|
590
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ zones: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }) }
|
|
591
|
+
};
|
|
592
|
+
exports.LSPCoverageTrackViolationRVS = {
|
|
593
|
+
headers: api_1.APIHeadersSchema,
|
|
594
|
+
body: typebox_1.Type.Object({
|
|
595
|
+
location: geo_2.CoordinatesSchema,
|
|
596
|
+
vehicleType: typebox_1.Type.String(),
|
|
597
|
+
restrictionType: typebox_1.Type.String(),
|
|
598
|
+
severity: typebox_1.Type.Union([typebox_1.Type.Literal('WARNING'), typebox_1.Type.Literal('ENFORCED'), typebox_1.Type.Literal('CRITICAL')]),
|
|
599
|
+
zoneId: typebox_1.Type.String(),
|
|
600
|
+
zoneName: typebox_1.Type.String()
|
|
601
|
+
}),
|
|
602
|
+
response: { 200: api_1.APIResponseBaseSchema }
|
|
603
|
+
};
|
|
604
|
+
exports.LSPCoverageGetViolationStatsRVS = {
|
|
605
|
+
headers: api_1.APIHeadersSchema,
|
|
606
|
+
body: typebox_1.Type.Object({
|
|
607
|
+
startDate: typebox_1.Type.Optional(typebox_1.Type.String({ format: 'date-time' })),
|
|
608
|
+
endDate: typebox_1.Type.Optional(typebox_1.Type.String({ format: 'date-time' })),
|
|
609
|
+
vehicleType: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
610
|
+
restrictionType: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
611
|
+
zoneId: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
612
|
+
}),
|
|
613
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ stats: typebox_1.Type.Any() }) }
|
|
614
|
+
};
|
|
615
|
+
exports.LSPCoverageGetZoneCapacityRVS = {
|
|
616
|
+
headers: api_1.APIHeadersSchema,
|
|
617
|
+
body: typebox_1.Type.Object({ vehicleType: typebox_1.Type.String() }),
|
|
618
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ zones: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }) }
|
|
619
|
+
};
|
|
620
|
+
exports.LSPCoverageGetRebalancingRecommendationsRVS = {
|
|
621
|
+
headers: api_1.APIHeadersSchema,
|
|
622
|
+
body: typebox_1.Type.Object({ vehicleType: typebox_1.Type.String(), maxDistance: typebox_1.Type.Optional(measure_1.DistanceSchema) }),
|
|
623
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ recommendations: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }) }
|
|
624
|
+
};
|
|
625
|
+
exports.LSPCoverageAnalyzeDistributionRVS = {
|
|
626
|
+
headers: api_1.APIHeadersSchema,
|
|
627
|
+
body: typebox_1.Type.Object({ vehicleType: typebox_1.Type.String() }),
|
|
628
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ analysis: typebox_1.Type.Any() }) }
|
|
629
|
+
};
|
|
630
|
+
exports.LSPCoverageFindChargingZonesRVS = {
|
|
631
|
+
headers: api_1.APIHeadersSchema,
|
|
632
|
+
body: typebox_1.Type.Object({
|
|
633
|
+
location: geo_2.CoordinatesSchema,
|
|
634
|
+
vehicleType: typebox_1.Type.String(),
|
|
635
|
+
batteryLevel: typebox_1.Type.Number({ minimum: 0, maximum: 100 }),
|
|
636
|
+
maxDistance: typebox_1.Type.Optional(measure_1.DistanceSchema)
|
|
637
|
+
}),
|
|
638
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ chargingZones: typebox_1.Type.Array(typebox_1.Type.Any()), total: typebox_1.Type.Number() }) }
|
|
639
|
+
};
|
|
640
|
+
exports.LSPCoverageGenerateComplianceReportRVS = {
|
|
641
|
+
headers: api_1.APIHeadersSchema,
|
|
642
|
+
body: typebox_1.Type.Object({
|
|
643
|
+
startDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
644
|
+
endDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
645
|
+
vehicleType: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
646
|
+
zoneId: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
647
|
+
}),
|
|
648
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ report: typebox_1.Type.Any() }) }
|
|
649
|
+
};
|
|
650
|
+
exports.LSPCoverageGenerateParkingComplianceReportRVS = {
|
|
651
|
+
headers: api_1.APIHeadersSchema,
|
|
652
|
+
body: typebox_1.Type.Object({
|
|
653
|
+
startDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
654
|
+
endDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
655
|
+
vehicleType: typebox_1.Type.String()
|
|
656
|
+
}),
|
|
657
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ report: typebox_1.Type.Any() }) }
|
|
658
|
+
};
|
|
659
|
+
exports.LSPCoverageGenerateSpeedComplianceReportRVS = {
|
|
660
|
+
headers: api_1.APIHeadersSchema,
|
|
661
|
+
body: typebox_1.Type.Object({
|
|
662
|
+
startDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
663
|
+
endDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
664
|
+
vehicleType: typebox_1.Type.Optional(typebox_1.Type.String())
|
|
665
|
+
}),
|
|
666
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ report: typebox_1.Type.Any() }) }
|
|
667
|
+
};
|
|
668
|
+
exports.LSPCoverageExportComplianceDataRVS = {
|
|
669
|
+
headers: api_1.APIHeadersSchema,
|
|
670
|
+
body: typebox_1.Type.Object({
|
|
671
|
+
startDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
672
|
+
endDate: typebox_1.Type.String({ format: 'date-time' }),
|
|
673
|
+
format: typebox_1.Type.Union([typebox_1.Type.Literal('JSON'), typebox_1.Type.Literal('CSV'), typebox_1.Type.Literal('PDF')]),
|
|
674
|
+
includeDetails: typebox_1.Type.Optional(typebox_1.Type.Boolean())
|
|
675
|
+
}),
|
|
676
|
+
response: { 200: (0, api_1.APIResponseDataSchemaFactory)({ export: typebox_1.Type.Any() }) }
|
|
677
|
+
};
|
|
678
|
+
// ── Validation ────────────────────────────────────────────────────────────────
|
|
679
|
+
exports.LSPCoverageValidateRouteRVS = {
|
|
680
|
+
headers: api_1.APIHeadersSchema,
|
|
681
|
+
body: typebox_1.Type.Object({
|
|
682
|
+
waypoints: typebox_1.Type.Array(geo_2.CoordinatesSchema, { minItems: 2 }),
|
|
683
|
+
vehicleType: typebox_1.Type.String(),
|
|
684
|
+
checkTimeRestrictions: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
685
|
+
currentTime: typebox_1.Type.Optional(typebox_1.Type.String({ format: 'date-time' })),
|
|
686
|
+
strictMode: typebox_1.Type.Optional(typebox_1.Type.Boolean())
|
|
687
|
+
}),
|
|
688
|
+
response: {
|
|
689
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ isCompliant: typebox_1.Type.Boolean(), totalDistance: measure_1.DistanceSchema, waypoints: typebox_1.Type.Array(typebox_1.Type.Any()), summary: typebox_1.Type.Any(), alternatives: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Any())) }),
|
|
690
|
+
'4XX': api_1.APIErrorSchema
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
exports.LSPCoverageFindCompliantWaypointsRVS = {
|
|
694
|
+
headers: api_1.APIHeadersSchema,
|
|
695
|
+
body: typebox_1.Type.Object({
|
|
696
|
+
start: geo_2.CoordinatesSchema,
|
|
697
|
+
end: geo_2.CoordinatesSchema,
|
|
698
|
+
vehicleType: typebox_1.Type.String(),
|
|
699
|
+
samplePoints: typebox_1.Type.Optional(typebox_1.Type.Number({ minimum: 2, maximum: 50 }))
|
|
700
|
+
}),
|
|
701
|
+
response: {
|
|
702
|
+
200: (0, api_1.APIResponseDataSchemaFactory)({ compliantWaypoints: typebox_1.Type.Array(geo_2.CoordinatesSchema), total: typebox_1.Type.Number() }),
|
|
703
|
+
'4XX': api_1.APIErrorSchema
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
//# sourceMappingURL=coverage.js.map
|