@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,478 @@
|
|
|
1
|
+
import { Type, Static } from '@sinclair/typebox'
|
|
2
|
+
import { ContextSchema } from '../../context'
|
|
3
|
+
import { ActionRecordSchema, DateTimeZoneSchema, DurationSchema } from '../../time'
|
|
4
|
+
import { MoneySchema, DistanceSchema } from '../../measure'
|
|
5
|
+
import { ContactsSchema, AddressSchema } from '../../geo'
|
|
6
|
+
import { RatingSchema } from '../../entity'
|
|
7
|
+
|
|
8
|
+
// Maintenance Type Enums
|
|
9
|
+
export const MaintenanceTypeSchema = Type.Union([
|
|
10
|
+
Type.Literal('SCHEDULED'), // Regular scheduled maintenance
|
|
11
|
+
Type.Literal('PREVENTIVE'), // Preventive maintenance based on usage
|
|
12
|
+
Type.Literal('CORRECTIVE'), // Fix identified issues
|
|
13
|
+
Type.Literal('EMERGENCY'), // Urgent repairs
|
|
14
|
+
Type.Literal('INSPECTION'), // Safety/regulatory inspections
|
|
15
|
+
Type.Literal('RECALL'), // Manufacturer recalls
|
|
16
|
+
Type.Literal('UPGRADE'), // System upgrades/modifications
|
|
17
|
+
Type.Literal('SEASONAL') // Weather-specific maintenance
|
|
18
|
+
])
|
|
19
|
+
|
|
20
|
+
export const MaintenancePrioritySchema = Type.Union([
|
|
21
|
+
Type.Literal('CRITICAL'), // Vehicle unsafe to operate
|
|
22
|
+
Type.Literal('HIGH'), // Impacts safety or performance
|
|
23
|
+
Type.Literal('MEDIUM'), // Scheduled maintenance
|
|
24
|
+
Type.Literal('LOW') // Optional improvements
|
|
25
|
+
])
|
|
26
|
+
|
|
27
|
+
export const MaintenanceStatusSchema = Type.Union([
|
|
28
|
+
Type.Literal('SCHEDULED'),
|
|
29
|
+
Type.Literal('IN_PROGRESS'),
|
|
30
|
+
Type.Literal('AWAITING_PARTS'),
|
|
31
|
+
Type.Literal('AWAITING_APPROVAL'),
|
|
32
|
+
Type.Literal('ON_HOLD'),
|
|
33
|
+
Type.Literal('COMPLETED'),
|
|
34
|
+
Type.Literal('CANCELLED'),
|
|
35
|
+
Type.Literal('FAILED')
|
|
36
|
+
])
|
|
37
|
+
|
|
38
|
+
export const MaintenanceCategorySchema = Type.Union([
|
|
39
|
+
Type.Literal('ENGINE'),
|
|
40
|
+
Type.Literal('TRANSMISSION'),
|
|
41
|
+
Type.Literal('BRAKES'),
|
|
42
|
+
Type.Literal('SUSPENSION'),
|
|
43
|
+
Type.Literal('ELECTRICAL'),
|
|
44
|
+
Type.Literal('HVAC'),
|
|
45
|
+
Type.Literal('BODY_EXTERIOR'),
|
|
46
|
+
Type.Literal('INTERIOR'),
|
|
47
|
+
Type.Literal('TIRES_WHEELS'),
|
|
48
|
+
Type.Literal('SAFETY_SYSTEMS'),
|
|
49
|
+
Type.Literal('EMISSIONS'),
|
|
50
|
+
Type.Literal('FUEL_SYSTEM'),
|
|
51
|
+
Type.Literal('COOLING_SYSTEM'),
|
|
52
|
+
Type.Literal('EXHAUST_SYSTEM'),
|
|
53
|
+
Type.Literal('ELECTRONICS'),
|
|
54
|
+
Type.Literal('ACCESSIBILITY'),
|
|
55
|
+
Type.Literal('CLEANING'),
|
|
56
|
+
Type.Literal('OTHER')
|
|
57
|
+
])
|
|
58
|
+
|
|
59
|
+
// Maintenance Item Schema
|
|
60
|
+
export const MaintenanceItemSchema = Type.Object({
|
|
61
|
+
category: MaintenanceCategorySchema,
|
|
62
|
+
component: Type.String({ maxLength: 100 }),
|
|
63
|
+
description: Type.String({ maxLength: 500 }),
|
|
64
|
+
labor: Type.Optional(Type.Object({
|
|
65
|
+
duration: DurationSchema,
|
|
66
|
+
cost: Type.Optional(MoneySchema)
|
|
67
|
+
})),
|
|
68
|
+
completed: Type.Boolean({ default: false }),
|
|
69
|
+
notes: Type.Optional(Type.String({ maxLength: 1000 }))
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
// Parts Schema
|
|
73
|
+
export const MaintenancePartSchema = Type.Object({
|
|
74
|
+
no: Type.String({ maxLength: 50 }),
|
|
75
|
+
name: Type.String({ maxLength: 100 }),
|
|
76
|
+
manufacturer: Type.Optional(Type.String({ maxLength: 50 })),
|
|
77
|
+
quantity: Type.Number({ minimum: 1 }),
|
|
78
|
+
cost: Type.Optional(Type.Object({
|
|
79
|
+
unit: MoneySchema,
|
|
80
|
+
total: MoneySchema
|
|
81
|
+
})),
|
|
82
|
+
supplier: Type.Optional(Type.String({ maxLength: 100 })),
|
|
83
|
+
warrantyPeriod: Type.Optional(DurationSchema), // days
|
|
84
|
+
serialNumbers: Type.Optional(Type.Array(Type.String()))
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
// Service Provider Schema
|
|
88
|
+
export const MaintenanceServiceProviderSchema = Type.Object({
|
|
89
|
+
id: Type.String(),
|
|
90
|
+
name: Type.String({ maxLength: 100 }),
|
|
91
|
+
type: Type.Union([
|
|
92
|
+
Type.Literal('IN_HOUSE'),
|
|
93
|
+
Type.Literal('AUTHORIZED_DEALER'),
|
|
94
|
+
Type.Literal('THIRD_PARTY'),
|
|
95
|
+
Type.Literal('MOBILE_SERVICE')
|
|
96
|
+
]),
|
|
97
|
+
location: Type.Optional(Type.String({ maxLength: 200 })),
|
|
98
|
+
contactInfo: ContactsSchema,
|
|
99
|
+
address: Type.Optional(AddressSchema),
|
|
100
|
+
certifications: Type.Optional(Type.Array(Type.String())),
|
|
101
|
+
rating: Type.Optional(RatingSchema)
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
// Inspection/Checklist Schema
|
|
105
|
+
export const MaintenanceChecklistSchema = Type.Object({
|
|
106
|
+
id: Type.String(),
|
|
107
|
+
name: Type.String({ maxLength: 100 }),
|
|
108
|
+
items: Type.Array(Type.Object({
|
|
109
|
+
id: Type.String(),
|
|
110
|
+
description: Type.String({ maxLength: 200 }),
|
|
111
|
+
status: Type.Union([
|
|
112
|
+
Type.Literal('PASS'),
|
|
113
|
+
Type.Literal('FAIL'),
|
|
114
|
+
Type.Literal('ATTENTION_REQUIRED'),
|
|
115
|
+
Type.Literal('NOT_APPLICABLE')
|
|
116
|
+
]),
|
|
117
|
+
notes: Type.Optional(Type.String({ maxLength: 500 })),
|
|
118
|
+
measurements: Type.Optional(Type.Record(Type.String(), Type.Union([
|
|
119
|
+
Type.String(),
|
|
120
|
+
Type.Number()
|
|
121
|
+
])))
|
|
122
|
+
})),
|
|
123
|
+
overallStatus: Type.Union([
|
|
124
|
+
Type.Literal('PASS'),
|
|
125
|
+
Type.Literal('CONDITIONAL_PASS'),
|
|
126
|
+
Type.Literal('FAIL')
|
|
127
|
+
])
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
// Main Maintenance Record Schema
|
|
131
|
+
export const MaintenanceRecordSchema = Type.Object({
|
|
132
|
+
context: ContextSchema,
|
|
133
|
+
id: Type.String(),
|
|
134
|
+
vid: Type.String(), // Reference to vehicle ID
|
|
135
|
+
|
|
136
|
+
// Basic Information
|
|
137
|
+
type: MaintenanceTypeSchema,
|
|
138
|
+
category: Type.Array(MaintenanceCategorySchema),
|
|
139
|
+
priority: MaintenancePrioritySchema,
|
|
140
|
+
status: MaintenanceStatusSchema,
|
|
141
|
+
|
|
142
|
+
title: Type.String({ maxLength: 200 }),
|
|
143
|
+
description: Type.String({ maxLength: 1000 }),
|
|
144
|
+
|
|
145
|
+
// Scheduling
|
|
146
|
+
scheduled: Type.Optional(DateTimeZoneSchema),
|
|
147
|
+
started: Type.Optional(DateTimeZoneSchema),
|
|
148
|
+
completed: Type.Optional(DateTimeZoneSchema),
|
|
149
|
+
duration: Type.Optional(Type.Object({
|
|
150
|
+
estimated: Type.Optional(DurationSchema), // Hours
|
|
151
|
+
actual: Type.Optional(DurationSchema) // Hours
|
|
152
|
+
})),
|
|
153
|
+
|
|
154
|
+
// Vehicle State
|
|
155
|
+
mileageAtMaintenance: Type.Optional(DistanceSchema),
|
|
156
|
+
hoursAtMaintenance: Type.Optional(Type.Number({ minimum: 0 })),
|
|
157
|
+
|
|
158
|
+
// Service Details
|
|
159
|
+
service: Type.Optional(Type.Object({
|
|
160
|
+
provider: Type.Optional(MaintenanceServiceProviderSchema),
|
|
161
|
+
location: Type.Optional(Type.String({ maxLength: 200 }))
|
|
162
|
+
})),
|
|
163
|
+
|
|
164
|
+
// Work Performed
|
|
165
|
+
workItems: Type.Array(MaintenanceItemSchema),
|
|
166
|
+
partsUsed: Type.Optional(Type.Array(MaintenancePartSchema)),
|
|
167
|
+
|
|
168
|
+
// Inspections/Checklists
|
|
169
|
+
checklists: Type.Optional(Type.Array(MaintenanceChecklistSchema)),
|
|
170
|
+
|
|
171
|
+
// Costs
|
|
172
|
+
cost: Type.Optional(Type.Object({
|
|
173
|
+
labor: Type.Optional(MoneySchema),
|
|
174
|
+
parts: Type.Optional(MoneySchema),
|
|
175
|
+
total: Type.Optional(MoneySchema)
|
|
176
|
+
})),
|
|
177
|
+
|
|
178
|
+
// Documentation
|
|
179
|
+
attachments: Type.Optional(Type.Array(Type.Object({
|
|
180
|
+
filename: Type.String(),
|
|
181
|
+
url: Type.String(),
|
|
182
|
+
type: Type.Union([
|
|
183
|
+
Type.Literal('INVOICE'),
|
|
184
|
+
Type.Literal('RECEIPT'),
|
|
185
|
+
Type.Literal('PHOTO_BEFORE'),
|
|
186
|
+
Type.Literal('PHOTO_AFTER'),
|
|
187
|
+
Type.Literal('INSPECTION_REPORT'),
|
|
188
|
+
Type.Literal('WARRANTY'),
|
|
189
|
+
Type.Literal('MANUAL'),
|
|
190
|
+
Type.Literal('OTHER')
|
|
191
|
+
])
|
|
192
|
+
}))),
|
|
193
|
+
|
|
194
|
+
// Warranty
|
|
195
|
+
warranty: Type.Optional(Type.Object({
|
|
196
|
+
covered: Type.Boolean(),
|
|
197
|
+
provider: Type.String(),
|
|
198
|
+
expiry: Type.Optional(DateTimeZoneSchema),
|
|
199
|
+
claimNumber: Type.Optional(Type.String())
|
|
200
|
+
})),
|
|
201
|
+
|
|
202
|
+
// Follow-up
|
|
203
|
+
nextMaintenanceDue: Type.Optional(DateTimeZoneSchema),
|
|
204
|
+
nextMaintenanceMileage: Type.Optional(DistanceSchema),
|
|
205
|
+
recommendations: Type.Optional(Type.Array(Type.String())),
|
|
206
|
+
|
|
207
|
+
// Quality Control
|
|
208
|
+
qualityCheck: Type.Optional(Type.Object({
|
|
209
|
+
performedBy: Type.String(),
|
|
210
|
+
date: DateTimeZoneSchema,
|
|
211
|
+
passed: Type.Boolean(),
|
|
212
|
+
notes: Type.Optional(Type.String({ maxLength: 500 }))
|
|
213
|
+
})),
|
|
214
|
+
|
|
215
|
+
// Tracking
|
|
216
|
+
assignedTo: Type.Optional(Type.String()), // Technician/Team ID
|
|
217
|
+
approvedBy: Type.Optional(Type.String()), // Manager ID
|
|
218
|
+
|
|
219
|
+
created: ActionRecordSchema,
|
|
220
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
221
|
+
}, { additionalProperties: false })
|
|
222
|
+
|
|
223
|
+
// Maintenance Schedule Schema
|
|
224
|
+
export const MaintenanceScheduleSchema = Type.Object({
|
|
225
|
+
context: ContextSchema,
|
|
226
|
+
id: Type.String(),
|
|
227
|
+
vid: Type.String(), // Reference to vehicle ID
|
|
228
|
+
scheduleType: Type.Union([
|
|
229
|
+
Type.Literal('MILEAGE_BASED'),
|
|
230
|
+
Type.Literal('TIME_BASED'),
|
|
231
|
+
Type.Literal('USAGE_BASED'),
|
|
232
|
+
Type.Literal('CONDITION_BASED')
|
|
233
|
+
]),
|
|
234
|
+
|
|
235
|
+
// Schedule Parameters
|
|
236
|
+
interval: Type.Optional(Type.Object({
|
|
237
|
+
mileage: Type.Optional(DistanceSchema),
|
|
238
|
+
time: Type.Optional(DurationSchema), // days
|
|
239
|
+
usage: Type.Optional(DurationSchema), // hours
|
|
240
|
+
})),
|
|
241
|
+
|
|
242
|
+
// Maintenance Details
|
|
243
|
+
maintenanceType: MaintenanceTypeSchema,
|
|
244
|
+
category: Type.Array(MaintenanceCategorySchema),
|
|
245
|
+
description: Type.String({ maxLength: 500 }),
|
|
246
|
+
|
|
247
|
+
estimated: Type.Optional(Type.Object({
|
|
248
|
+
duration: Type.Optional(DurationSchema),
|
|
249
|
+
cost: Type.Optional(MoneySchema)
|
|
250
|
+
})),
|
|
251
|
+
|
|
252
|
+
// Scheduling
|
|
253
|
+
isActive: Type.Boolean({ default: true }),
|
|
254
|
+
lastPerformed: Type.Optional(DateTimeZoneSchema),
|
|
255
|
+
nextDue: Type.Optional(DateTimeZoneSchema),
|
|
256
|
+
|
|
257
|
+
// Notifications
|
|
258
|
+
reminderDays: Type.Optional(Type.Array(Type.Number())), // Days before due
|
|
259
|
+
|
|
260
|
+
created: ActionRecordSchema,
|
|
261
|
+
updated: Type.Optional(ActionRecordSchema)
|
|
262
|
+
})
|
|
263
|
+
|
|
264
|
+
// Maintenance History Summary Schema
|
|
265
|
+
export const MaintenanceHistorySummarySchema = Type.Object({
|
|
266
|
+
context: ContextSchema,
|
|
267
|
+
vid: Type.String(), // Reference to vehicle ID
|
|
268
|
+
period: Type.Object({
|
|
269
|
+
start: DateTimeZoneSchema,
|
|
270
|
+
end: DateTimeZoneSchema
|
|
271
|
+
}),
|
|
272
|
+
|
|
273
|
+
// Counts
|
|
274
|
+
totalMaintenanceEvents: Type.Number({ minimum: 0 }),
|
|
275
|
+
scheduledMaintenanceCount: Type.Number({ minimum: 0 }),
|
|
276
|
+
emergencyMaintenanceCount: Type.Number({ minimum: 0 }),
|
|
277
|
+
|
|
278
|
+
// Costs
|
|
279
|
+
totalCost: MoneySchema,
|
|
280
|
+
averageCostPerEvent: MoneySchema,
|
|
281
|
+
|
|
282
|
+
// Downtime
|
|
283
|
+
totalDowntimeHours: Type.Number({ minimum: 0 }),
|
|
284
|
+
averageDowntimePerEvent: Type.Number({ minimum: 0 }),
|
|
285
|
+
|
|
286
|
+
// Categories
|
|
287
|
+
maintenanceByCategory: Type.Record(Type.String(), Type.Object({
|
|
288
|
+
count: Type.Number({ minimum: 0 }),
|
|
289
|
+
cost: MoneySchema,
|
|
290
|
+
downtimeHours: Type.Number({ minimum: 0 })
|
|
291
|
+
})),
|
|
292
|
+
|
|
293
|
+
// Reliability Metrics
|
|
294
|
+
meanTimeBetweenFailures: Type.Optional(Type.Number({ minimum: 0 })),
|
|
295
|
+
maintenanceCompliance: Type.Number({ minimum: 0, maximum: 100 }) // percentage
|
|
296
|
+
})
|
|
297
|
+
|
|
298
|
+
// Update Schemas
|
|
299
|
+
export const MaintenanceRecordUpdateSchema = Type.Partial(Type.Omit(MaintenanceRecordSchema, ['id', 'context', 'vid', 'created']))
|
|
300
|
+
export const MaintenanceScheduleUpdateSchema = Type.Partial(Type.Omit(MaintenanceScheduleSchema, ['id', 'vid', 'created']))
|
|
301
|
+
|
|
302
|
+
// TypeScript Types
|
|
303
|
+
export type MaintenanceType = Static<typeof MaintenanceTypeSchema>
|
|
304
|
+
export type MaintenancePriority = Static<typeof MaintenancePrioritySchema>
|
|
305
|
+
export type MaintenanceStatus = Static<typeof MaintenanceStatusSchema>
|
|
306
|
+
export type MaintenanceCategory = Static<typeof MaintenanceCategorySchema>
|
|
307
|
+
export type MaintenanceItem = Static<typeof MaintenanceItemSchema>
|
|
308
|
+
export type MaintenancePart = Static<typeof MaintenancePartSchema>
|
|
309
|
+
export type ServiceProvider = Static<typeof MaintenanceServiceProviderSchema>
|
|
310
|
+
export type MaintenanceChecklist = Static<typeof MaintenanceChecklistSchema>
|
|
311
|
+
export type MaintenanceRecord = Static<typeof MaintenanceRecordSchema>
|
|
312
|
+
export type MaintenanceSchedule = Static<typeof MaintenanceScheduleSchema>
|
|
313
|
+
export type MaintenanceHistorySummary = Static<typeof MaintenanceHistorySummarySchema>
|
|
314
|
+
export type MaintenanceRecordUpdate = Static<typeof MaintenanceRecordUpdateSchema>
|
|
315
|
+
export type MaintenanceScheduleUpdate = Static<typeof MaintenanceScheduleUpdateSchema>
|
|
316
|
+
// ─── Request Validation Schemas ───────────────────────────────────────────────
|
|
317
|
+
|
|
318
|
+
import {
|
|
319
|
+
APIHeadersSchema,
|
|
320
|
+
APIResponseBaseSchema,
|
|
321
|
+
APIResponseDataSchemaFactory
|
|
322
|
+
} from '../../api'
|
|
323
|
+
|
|
324
|
+
export const LSPFleetMaintenanceAddRecordRVS = {
|
|
325
|
+
headers: APIHeadersSchema,
|
|
326
|
+
body: Type.Omit(MaintenanceRecordSchema, ['id', 'context', 'status', 'started', 'completed', 'duration', 'created', 'updated']),
|
|
327
|
+
response: APIResponseDataSchemaFactory({ maintenanceId: Type.String() })
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export const LSPFleetMaintenanceRetrieveRecordRVS = {
|
|
331
|
+
headers: APIHeadersSchema,
|
|
332
|
+
params: Type.Object({ id: Type.String() }),
|
|
333
|
+
response: APIResponseDataSchemaFactory({ maintenance: MaintenanceRecordSchema })
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export const LSPFleetMaintenanceFetchRecordsRVS = {
|
|
337
|
+
headers: APIHeadersSchema,
|
|
338
|
+
querystring: Type.Optional(Type.Object({
|
|
339
|
+
vid: Type.Optional(Type.String()),
|
|
340
|
+
status: Type.Optional(Type.String()),
|
|
341
|
+
type: Type.Optional(Type.String()),
|
|
342
|
+
priority: Type.Optional(Type.String())
|
|
343
|
+
})),
|
|
344
|
+
response: APIResponseDataSchemaFactory({ maintenances: Type.Array(MaintenanceRecordSchema) })
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export const LSPFleetMaintenanceUpdateRecordRVS = {
|
|
348
|
+
headers: APIHeadersSchema,
|
|
349
|
+
params: Type.Object({ id: Type.String() }),
|
|
350
|
+
body: MaintenanceRecordUpdateSchema,
|
|
351
|
+
response: APIResponseDataSchemaFactory({ maintenance: MaintenanceRecordSchema })
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export const LSPFleetMaintenanceDeleteRecordRVS = {
|
|
355
|
+
headers: APIHeadersSchema,
|
|
356
|
+
params: Type.Object({ id: Type.String() }),
|
|
357
|
+
response: APIResponseBaseSchema
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export const LSPFleetMaintenanceStartRVS = {
|
|
361
|
+
headers: APIHeadersSchema,
|
|
362
|
+
params: Type.Object({ id: Type.String() }),
|
|
363
|
+
body: Type.Optional(Type.Object({ assignedTo: Type.Optional(Type.String()), notes: Type.Optional(Type.String()) })),
|
|
364
|
+
response: APIResponseBaseSchema
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export const LSPFleetMaintenanceCompleteRVS = {
|
|
368
|
+
headers: APIHeadersSchema,
|
|
369
|
+
params: Type.Object({ id: Type.String() }),
|
|
370
|
+
body: Type.Optional(Type.Object({ notes: Type.Optional(Type.String()), nextMaintenanceDue: Type.Optional(Type.String()), nextMaintenanceMileage: Type.Optional(Type.Number()) })),
|
|
371
|
+
response: APIResponseBaseSchema
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export const LSPFleetMaintenanceCancelRVS = {
|
|
375
|
+
headers: APIHeadersSchema,
|
|
376
|
+
params: Type.Object({ id: Type.String() }),
|
|
377
|
+
body: Type.Optional(Type.Object({ reason: Type.Optional(Type.String()) })),
|
|
378
|
+
response: APIResponseBaseSchema
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export const LSPFleetMaintenanceApproveRVS = {
|
|
382
|
+
headers: APIHeadersSchema,
|
|
383
|
+
params: Type.Object({ id: Type.String() }),
|
|
384
|
+
body: Type.Optional(Type.Object({ approvedBy: Type.String(), notes: Type.Optional(Type.String()) })),
|
|
385
|
+
response: APIResponseBaseSchema
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export const LSPFleetMaintenanceAddScheduleRVS = {
|
|
389
|
+
headers: APIHeadersSchema,
|
|
390
|
+
body: Type.Omit(MaintenanceScheduleSchema, ['id', 'context', 'lastPerformed', 'nextDue', 'created', 'updated']),
|
|
391
|
+
response: APIResponseDataSchemaFactory({ scheduleId: Type.String() })
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export const LSPFleetMaintenanceRetrieveScheduleRVS = {
|
|
395
|
+
headers: APIHeadersSchema,
|
|
396
|
+
params: Type.Object({ id: Type.String() }),
|
|
397
|
+
response: APIResponseDataSchemaFactory({ schedule: MaintenanceScheduleSchema })
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export const LSPFleetMaintenanceFetchSchedulesRVS = {
|
|
401
|
+
headers: APIHeadersSchema,
|
|
402
|
+
querystring: Type.Optional(Type.Object({
|
|
403
|
+
vid: Type.Optional(Type.String()),
|
|
404
|
+
isActive: Type.Optional(Type.Boolean())
|
|
405
|
+
})),
|
|
406
|
+
response: APIResponseDataSchemaFactory({ schedules: Type.Array(MaintenanceScheduleSchema) })
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export const LSPFleetMaintenanceUpdateScheduleRVS = {
|
|
410
|
+
headers: APIHeadersSchema,
|
|
411
|
+
params: Type.Object({ id: Type.String() }),
|
|
412
|
+
body: MaintenanceScheduleUpdateSchema,
|
|
413
|
+
response: APIResponseDataSchemaFactory({ schedule: MaintenanceScheduleSchema })
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export const LSPFleetMaintenanceDeleteScheduleRVS = {
|
|
417
|
+
headers: APIHeadersSchema,
|
|
418
|
+
params: Type.Object({ id: Type.String() }),
|
|
419
|
+
response: APIResponseBaseSchema
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export const LSPFleetMaintenanceActivateScheduleRVS = {
|
|
423
|
+
headers: APIHeadersSchema,
|
|
424
|
+
params: Type.Object({ id: Type.String() }),
|
|
425
|
+
response: APIResponseBaseSchema
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export const LSPFleetMaintenanceDeactivateScheduleRVS = {
|
|
429
|
+
headers: APIHeadersSchema,
|
|
430
|
+
params: Type.Object({ id: Type.String() }),
|
|
431
|
+
response: APIResponseBaseSchema
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export const LSPFleetMaintenanceGetHistoryRVS = {
|
|
435
|
+
headers: APIHeadersSchema,
|
|
436
|
+
params: Type.Object({ vid: Type.String() }),
|
|
437
|
+
querystring: Type.Object({ start: Type.String(), end: Type.String() }),
|
|
438
|
+
response: APIResponseDataSchemaFactory({ summary: MaintenanceHistorySummarySchema })
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export const LSPFleetMaintenanceGetUpcomingRVS = {
|
|
442
|
+
headers: APIHeadersSchema,
|
|
443
|
+
querystring: Type.Optional(Type.Object({
|
|
444
|
+
days: Type.Optional(Type.Number({ minimum: 1, maximum: 365, default: 30 })),
|
|
445
|
+
vid: Type.Optional(Type.String())
|
|
446
|
+
})),
|
|
447
|
+
response: APIResponseDataSchemaFactory({
|
|
448
|
+
upcoming: Type.Array(Type.Object({ scheduleId: Type.String(), vid: Type.String(), type: Type.String(), dueDate: Type.String(), priority: Type.String() }))
|
|
449
|
+
})
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export const LSPFleetMaintenanceGetOverdueRVS = {
|
|
453
|
+
headers: APIHeadersSchema,
|
|
454
|
+
querystring: Type.Optional(Type.Object({ vid: Type.Optional(Type.String()) })),
|
|
455
|
+
response: APIResponseDataSchemaFactory({
|
|
456
|
+
overdue: Type.Array(Type.Object({ scheduleId: Type.String(), vid: Type.String(), type: Type.String(), dueDate: Type.String(), daysOverdue: Type.Number() }))
|
|
457
|
+
})
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export type LSPFleetMaintenanceAddRecordValidation = { headers: Static<typeof LSPFleetMaintenanceAddRecordRVS.headers>, body: Static<typeof LSPFleetMaintenanceAddRecordRVS.body>, response: Static<typeof LSPFleetMaintenanceAddRecordRVS.response> }
|
|
461
|
+
export type LSPFleetMaintenanceRetrieveRecordValidation = { headers: Static<typeof LSPFleetMaintenanceRetrieveRecordRVS.headers>, params: Static<typeof LSPFleetMaintenanceRetrieveRecordRVS.params>, response: Static<typeof LSPFleetMaintenanceRetrieveRecordRVS.response> }
|
|
462
|
+
export type LSPFleetMaintenanceFetchRecordsValidation = { headers: Static<typeof LSPFleetMaintenanceFetchRecordsRVS.headers>, querystring: Static<typeof LSPFleetMaintenanceFetchRecordsRVS.querystring>, response: Static<typeof LSPFleetMaintenanceFetchRecordsRVS.response> }
|
|
463
|
+
export type LSPFleetMaintenanceUpdateRecordValidation = { headers: Static<typeof LSPFleetMaintenanceUpdateRecordRVS.headers>, params: Static<typeof LSPFleetMaintenanceUpdateRecordRVS.params>, body: Static<typeof LSPFleetMaintenanceUpdateRecordRVS.body>, response: Static<typeof LSPFleetMaintenanceUpdateRecordRVS.response> }
|
|
464
|
+
export type LSPFleetMaintenanceDeleteRecordValidation = { headers: Static<typeof LSPFleetMaintenanceDeleteRecordRVS.headers>, params: Static<typeof LSPFleetMaintenanceDeleteRecordRVS.params>, response: Static<typeof LSPFleetMaintenanceDeleteRecordRVS.response> }
|
|
465
|
+
export type LSPFleetMaintenanceStartValidation = { headers: Static<typeof LSPFleetMaintenanceStartRVS.headers>, params: Static<typeof LSPFleetMaintenanceStartRVS.params>, body: Static<typeof LSPFleetMaintenanceStartRVS.body>, response: Static<typeof LSPFleetMaintenanceStartRVS.response> }
|
|
466
|
+
export type LSPFleetMaintenanceCompleteValidation = { headers: Static<typeof LSPFleetMaintenanceCompleteRVS.headers>, params: Static<typeof LSPFleetMaintenanceCompleteRVS.params>, body: Static<typeof LSPFleetMaintenanceCompleteRVS.body>, response: Static<typeof LSPFleetMaintenanceCompleteRVS.response> }
|
|
467
|
+
export type LSPFleetMaintenanceCancelValidation = { headers: Static<typeof LSPFleetMaintenanceCancelRVS.headers>, params: Static<typeof LSPFleetMaintenanceCancelRVS.params>, body: Static<typeof LSPFleetMaintenanceCancelRVS.body>, response: Static<typeof LSPFleetMaintenanceCancelRVS.response> }
|
|
468
|
+
export type LSPFleetMaintenanceApproveValidation = { headers: Static<typeof LSPFleetMaintenanceApproveRVS.headers>, params: Static<typeof LSPFleetMaintenanceApproveRVS.params>, body: Static<typeof LSPFleetMaintenanceApproveRVS.body>, response: Static<typeof LSPFleetMaintenanceApproveRVS.response> }
|
|
469
|
+
export type LSPFleetMaintenanceAddScheduleValidation = { headers: Static<typeof LSPFleetMaintenanceAddScheduleRVS.headers>, body: Static<typeof LSPFleetMaintenanceAddScheduleRVS.body>, response: Static<typeof LSPFleetMaintenanceAddScheduleRVS.response> }
|
|
470
|
+
export type LSPFleetMaintenanceRetrieveScheduleValidation = { headers: Static<typeof LSPFleetMaintenanceRetrieveScheduleRVS.headers>, params: Static<typeof LSPFleetMaintenanceRetrieveScheduleRVS.params>, response: Static<typeof LSPFleetMaintenanceRetrieveScheduleRVS.response> }
|
|
471
|
+
export type LSPFleetMaintenanceFetchSchedulesValidation = { headers: Static<typeof LSPFleetMaintenanceFetchSchedulesRVS.headers>, querystring: Static<typeof LSPFleetMaintenanceFetchSchedulesRVS.querystring>, response: Static<typeof LSPFleetMaintenanceFetchSchedulesRVS.response> }
|
|
472
|
+
export type LSPFleetMaintenanceUpdateScheduleValidation = { headers: Static<typeof LSPFleetMaintenanceUpdateScheduleRVS.headers>, params: Static<typeof LSPFleetMaintenanceUpdateScheduleRVS.params>, body: Static<typeof LSPFleetMaintenanceUpdateScheduleRVS.body>, response: Static<typeof LSPFleetMaintenanceUpdateScheduleRVS.response> }
|
|
473
|
+
export type LSPFleetMaintenanceDeleteScheduleValidation = { headers: Static<typeof LSPFleetMaintenanceDeleteScheduleRVS.headers>, params: Static<typeof LSPFleetMaintenanceDeleteScheduleRVS.params>, response: Static<typeof LSPFleetMaintenanceDeleteScheduleRVS.response> }
|
|
474
|
+
export type LSPFleetMaintenanceActivateScheduleValidation = { headers: Static<typeof LSPFleetMaintenanceActivateScheduleRVS.headers>, params: Static<typeof LSPFleetMaintenanceActivateScheduleRVS.params>, response: Static<typeof LSPFleetMaintenanceActivateScheduleRVS.response> }
|
|
475
|
+
export type LSPFleetMaintenanceDeactivateScheduleValidation = { headers: Static<typeof LSPFleetMaintenanceDeactivateScheduleRVS.headers>, params: Static<typeof LSPFleetMaintenanceDeactivateScheduleRVS.params>, response: Static<typeof LSPFleetMaintenanceDeactivateScheduleRVS.response> }
|
|
476
|
+
export type LSPFleetMaintenanceGetHistoryValidation = { headers: Static<typeof LSPFleetMaintenanceGetHistoryRVS.headers>, params: Static<typeof LSPFleetMaintenanceGetHistoryRVS.params>, querystring: Static<typeof LSPFleetMaintenanceGetHistoryRVS.querystring>, response: Static<typeof LSPFleetMaintenanceGetHistoryRVS.response> }
|
|
477
|
+
export type LSPFleetMaintenanceGetUpcomingValidation = { headers: Static<typeof LSPFleetMaintenanceGetUpcomingRVS.headers>, querystring: Static<typeof LSPFleetMaintenanceGetUpcomingRVS.querystring>, response: Static<typeof LSPFleetMaintenanceGetUpcomingRVS.response> }
|
|
478
|
+
export type LSPFleetMaintenanceGetOverdueValidation = { headers: Static<typeof LSPFleetMaintenanceGetOverdueRVS.headers>, querystring: Static<typeof LSPFleetMaintenanceGetOverdueRVS.querystring>, response: Static<typeof LSPFleetMaintenanceGetOverdueRVS.response> }
|