@de./sdk 1.0.4 → 2.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/allend/Access.d.ts +39 -3
- package/dist/allend/Access.js +147 -114
- package/dist/allend/Access.js.map +1 -1
- package/dist/allend/Agent/consolidation.d.ts +16 -0
- package/dist/allend/Agent/consolidation.js +38 -0
- package/dist/allend/Agent/consolidation.js.map +1 -0
- package/dist/allend/Agent/delivery.d.ts +11 -0
- package/dist/allend/Agent/delivery.js +43 -0
- package/dist/allend/Agent/delivery.js.map +1 -0
- package/dist/allend/Agent/dispatch.d.ts +8 -0
- package/dist/allend/Agent/dispatch.js +24 -0
- package/dist/allend/Agent/dispatch.js.map +1 -0
- package/dist/allend/Agent/index.d.ts +49 -0
- package/dist/allend/Agent/index.js +74 -0
- package/dist/allend/Agent/index.js.map +1 -0
- package/dist/allend/Agent/navigation.d.ts +8 -0
- package/dist/allend/Agent/navigation.js +25 -0
- package/dist/allend/Agent/navigation.js.map +1 -0
- package/dist/allend/Agent/origin.d.ts +9 -0
- package/dist/allend/Agent/origin.js +31 -0
- package/dist/allend/Agent/origin.js.map +1 -0
- package/dist/allend/Agent/reallocation.d.ts +7 -0
- package/dist/allend/Agent/reallocation.js +17 -0
- package/dist/allend/Agent/reallocation.js.map +1 -0
- package/dist/allend/Agent/realtime.d.ts +36 -0
- package/dist/allend/Agent/realtime.js +111 -0
- package/dist/allend/Agent/realtime.js.map +1 -0
- package/dist/allend/Agent/rides.d.ts +12 -0
- package/dist/allend/Agent/rides.js +51 -0
- package/dist/allend/Agent/rides.js.map +1 -0
- package/dist/allend/Agent/shipping.d.ts +11 -0
- package/dist/allend/Agent/shipping.js +43 -0
- package/dist/allend/Agent/shipping.js.map +1 -0
- package/dist/allend/CSP/analytics.d.ts +12 -0
- package/dist/allend/CSP/analytics.js +51 -0
- package/dist/allend/CSP/analytics.js.map +1 -0
- package/dist/allend/CSP/index.d.ts +25 -0
- package/dist/allend/CSP/index.js +43 -0
- package/dist/allend/CSP/index.js.map +1 -0
- package/dist/allend/CSP/inventory.d.ts +16 -0
- package/dist/allend/CSP/inventory.js +78 -0
- package/dist/allend/CSP/inventory.js.map +1 -0
- package/dist/allend/CSP/orders.d.ts +19 -0
- package/dist/allend/CSP/orders.js +97 -0
- package/dist/allend/CSP/orders.js.map +1 -0
- package/dist/allend/CSP/webhooks.d.ts +13 -0
- package/dist/allend/CSP/webhooks.js +56 -0
- package/dist/allend/CSP/webhooks.js.map +1 -0
- package/dist/allend/Customer/index.d.ts +27 -0
- package/dist/allend/Customer/index.js +39 -0
- package/dist/allend/Customer/index.js.map +1 -0
- package/dist/allend/Customer/intents.d.ts +12 -0
- package/dist/allend/Customer/intents.js +55 -0
- package/dist/allend/Customer/intents.js.map +1 -0
- package/dist/allend/Customer/orders.d.ts +11 -0
- package/dist/allend/Customer/orders.js +43 -0
- package/dist/allend/Customer/orders.js.map +1 -0
- package/dist/allend/Customer/rides.d.ts +12 -0
- package/dist/allend/Customer/rides.js +50 -0
- package/dist/allend/Customer/rides.js.map +1 -0
- package/dist/allend/DEV/developers.d.ts +11 -0
- package/dist/allend/DEV/developers.js +35 -0
- package/dist/allend/DEV/developers.js.map +1 -0
- package/dist/allend/DEV/index.d.ts +19 -0
- package/dist/allend/DEV/index.js +37 -0
- package/dist/allend/DEV/index.js.map +1 -0
- package/dist/allend/IoTClient.js +29 -35
- package/dist/allend/IoTClient.js.map +1 -1
- package/dist/allend/IoTSP/backend.d.ts +29 -0
- package/dist/allend/IoTSP/backend.js +75 -0
- package/dist/allend/IoTSP/backend.js.map +1 -0
- package/dist/allend/IoTSP/devices.d.ts +14 -0
- package/dist/allend/IoTSP/devices.js +61 -0
- package/dist/allend/IoTSP/devices.js.map +1 -0
- package/dist/allend/IoTSP/index.d.ts +28 -0
- package/dist/allend/IoTSP/index.js +84 -0
- package/dist/allend/IoTSP/index.js.map +1 -0
- package/dist/allend/IoTSP/rules.d.ts +17 -0
- package/dist/allend/IoTSP/rules.js +81 -0
- package/dist/allend/IoTSP/rules.js.map +1 -0
- package/dist/allend/IoTSP/topics.d.ts +17 -0
- package/dist/allend/IoTSP/topics.js +81 -0
- package/dist/allend/IoTSP/topics.js.map +1 -0
- package/dist/allend/LSP/agents.d.ts +20 -0
- package/dist/allend/LSP/agents.js +89 -0
- package/dist/allend/LSP/agents.js.map +1 -0
- package/dist/allend/LSP/carriers.d.ts +54 -0
- package/dist/allend/LSP/carriers.js +315 -0
- package/dist/allend/LSP/carriers.js.map +1 -0
- package/dist/allend/LSP/coverage.d.ts +44 -0
- package/dist/allend/LSP/coverage.js +135 -0
- package/dist/allend/LSP/coverage.js.map +1 -0
- package/dist/allend/LSP/fleets.d.ts +66 -0
- package/dist/allend/LSP/fleets.js +381 -0
- package/dist/allend/LSP/fleets.js.map +1 -0
- package/dist/allend/LSP/hubs.d.ts +39 -0
- package/dist/allend/LSP/hubs.js +186 -0
- package/dist/allend/LSP/hubs.js.map +1 -0
- package/dist/allend/LSP/index.d.ts +37 -0
- package/dist/allend/LSP/index.js +55 -0
- package/dist/allend/LSP/index.js.map +1 -0
- package/dist/allend/LSP/inventory.d.ts +13 -0
- package/dist/allend/LSP/inventory.js +56 -0
- package/dist/allend/LSP/inventory.js.map +1 -0
- package/dist/allend/LSP/operations.d.ts +47 -0
- package/dist/allend/LSP/operations.js +156 -0
- package/dist/allend/LSP/operations.js.map +1 -0
- package/dist/allend/LSP/orders.d.ts +69 -0
- package/dist/allend/LSP/orders.js +303 -0
- package/dist/allend/LSP/orders.js.map +1 -0
- package/dist/allend/LSP/pods.d.ts +26 -0
- package/dist/allend/LSP/pods.js +137 -0
- package/dist/allend/LSP/pods.js.map +1 -0
- package/dist/allend/LSP/pricing.d.ts +35 -0
- package/dist/allend/LSP/pricing.js +151 -0
- package/dist/allend/LSP/pricing.js.map +1 -0
- package/dist/allend/LSP/psl.d.ts +15 -0
- package/dist/allend/LSP/psl.js +68 -0
- package/dist/allend/LSP/psl.js.map +1 -0
- package/dist/allend/LSP/warehouses.d.ts +23 -0
- package/dist/allend/LSP/warehouses.js +94 -0
- package/dist/allend/LSP/warehouses.js.map +1 -0
- package/dist/allend/MSI/Controls.d.ts +9 -5
- package/dist/allend/MSI/Controls.js +269 -297
- package/dist/allend/MSI/Controls.js.map +1 -1
- package/dist/allend/MSI/Handles.d.ts +5 -4
- package/dist/allend/MSI/Handles.js +136 -233
- package/dist/allend/MSI/Handles.js.map +1 -1
- package/dist/allend/MSI/Plugins.d.ts +2 -2
- package/dist/allend/MSI/Plugins.js +12 -15
- package/dist/allend/MSI/Plugins.js.map +1 -1
- package/dist/allend/MSI/index.d.ts +4 -3
- package/dist/allend/MSI/index.js +123 -87
- package/dist/allend/MSI/index.js.map +1 -1
- package/dist/allend/MSI/native.d.ts +32 -0
- package/dist/allend/MSI/native.js +246 -0
- package/dist/allend/MSI/native.js.map +1 -0
- package/dist/allend/MSI/token.d.ts +12 -0
- package/dist/allend/MSI/token.js +21 -0
- package/dist/allend/MSI/token.js.map +1 -0
- package/dist/allend/OTPAuth/index.d.ts +77 -0
- package/dist/allend/OTPAuth/index.js +69 -0
- package/dist/allend/OTPAuth/index.js.map +1 -0
- package/dist/allend/Pipelines/analytics.d.ts +8 -0
- package/dist/allend/Pipelines/analytics.js +24 -0
- package/dist/allend/Pipelines/analytics.js.map +1 -0
- package/dist/allend/Pipelines/escalations.d.ts +8 -0
- package/dist/allend/Pipelines/escalations.js +25 -0
- package/dist/allend/Pipelines/escalations.js.map +1 -0
- package/dist/allend/Pipelines/executions.d.ts +11 -0
- package/dist/allend/Pipelines/executions.js +44 -0
- package/dist/allend/Pipelines/executions.js.map +1 -0
- package/dist/allend/Pipelines/index.d.ts +42 -0
- package/dist/allend/Pipelines/index.js +88 -0
- package/dist/allend/Pipelines/index.js.map +1 -0
- package/dist/allend/Pipelines/interventions.d.ts +8 -0
- package/dist/allend/Pipelines/interventions.js +25 -0
- package/dist/allend/Pipelines/interventions.js.map +1 -0
- package/dist/allend/Pipelines/monitor.d.ts +9 -0
- package/dist/allend/Pipelines/monitor.js +30 -0
- package/dist/allend/Pipelines/monitor.js.map +1 -0
- package/dist/allend/Pipelines/queries.d.ts +8 -0
- package/dist/allend/Pipelines/queries.js +25 -0
- package/dist/allend/Pipelines/queries.js.map +1 -0
- package/dist/allend/Pipelines/templates.d.ts +11 -0
- package/dist/allend/Pipelines/templates.js +46 -0
- package/dist/allend/Pipelines/templates.js.map +1 -0
- package/dist/allend/Pipelines/utils.d.ts +0 -0
- package/dist/allend/Pipelines/utils.js +2 -0
- package/dist/allend/Pipelines/utils.js.map +1 -0
- package/dist/allend/Pipelines/webhooks.d.ts +9 -0
- package/dist/allend/Pipelines/webhooks.js +35 -0
- package/dist/allend/Pipelines/webhooks.js.map +1 -0
- package/dist/allend/Pipelines/workers.d.ts +11 -0
- package/dist/allend/Pipelines/workers.js +45 -0
- package/dist/allend/Pipelines/workers.js.map +1 -0
- package/dist/allend/Queries/capacity.d.ts +11 -0
- package/dist/allend/Queries/capacity.js +44 -0
- package/dist/allend/Queries/capacity.js.map +1 -0
- package/dist/allend/Queries/discovery.d.ts +11 -0
- package/dist/allend/Queries/discovery.js +45 -0
- package/dist/allend/Queries/discovery.js.map +1 -0
- package/dist/allend/Queries/index.d.ts +27 -0
- package/dist/allend/Queries/index.js +40 -0
- package/dist/allend/Queries/index.js.map +1 -0
- package/dist/allend/Queries/matching.d.ts +7 -0
- package/dist/allend/Queries/matching.js +18 -0
- package/dist/allend/Queries/matching.js.map +1 -0
- package/dist/allend/Queries/performance.d.ts +9 -0
- package/dist/allend/Queries/performance.js +31 -0
- package/dist/allend/Queries/performance.js.map +1 -0
- package/dist/allend/Queries/pricing.d.ts +11 -0
- package/dist/allend/Queries/pricing.js +43 -0
- package/dist/allend/Queries/pricing.js.map +1 -0
- package/dist/allend/{DClient/Event.d.ts → Realtime/index.d.ts} +2 -6
- package/dist/allend/Realtime/index.js +62 -0
- package/dist/allend/Realtime/index.js.map +1 -0
- package/dist/allend/Shared/account.d.ts +10 -0
- package/dist/allend/Shared/account.js +22 -0
- package/dist/allend/Shared/account.js.map +1 -0
- package/dist/allend/Shared/buckets.d.ts +21 -0
- package/dist/allend/Shared/buckets.js +95 -0
- package/dist/allend/Shared/buckets.js.map +1 -0
- package/dist/allend/Shared/context.d.ts +14 -0
- package/dist/allend/Shared/context.js +33 -0
- package/dist/allend/Shared/context.js.map +1 -0
- package/dist/allend/Shared/faqs.d.ts +20 -0
- package/dist/allend/Shared/faqs.js +87 -0
- package/dist/allend/Shared/faqs.js.map +1 -0
- package/dist/allend/Shared/invitation.d.ts +42 -0
- package/dist/allend/Shared/invitation.js +40 -0
- package/dist/allend/Shared/invitation.js.map +1 -0
- package/dist/allend/Shared/operators.d.ts +39 -0
- package/dist/allend/Shared/operators.js +37 -0
- package/dist/allend/Shared/operators.js.map +1 -0
- package/dist/allend/Shared/users.d.ts +11 -0
- package/dist/allend/Shared/users.js +29 -0
- package/dist/allend/Shared/users.js.map +1 -0
- package/dist/allend/Tracking/index.d.ts +17 -0
- package/dist/allend/Tracking/index.js +39 -0
- package/dist/allend/Tracking/index.js.map +1 -0
- package/dist/allend/Utilities/common.d.ts +12 -0
- package/dist/allend/Utilities/common.js +53 -0
- package/dist/allend/Utilities/common.js.map +1 -0
- package/dist/allend/Utilities/fares.d.ts +10 -0
- package/dist/allend/Utilities/fares.js +39 -0
- package/dist/allend/Utilities/fares.js.map +1 -0
- package/dist/allend/Utilities/index.d.ts +23 -0
- package/dist/allend/Utilities/index.js +36 -0
- package/dist/allend/Utilities/index.js.map +1 -0
- package/dist/allend/Utilities/nearby.d.ts +9 -0
- package/dist/allend/Utilities/nearby.js +32 -0
- package/dist/allend/Utilities/nearby.js.map +1 -0
- package/dist/allend/Workflows/Client.d.ts +17 -0
- package/dist/allend/Workflows/Client.js +50 -0
- package/dist/allend/Workflows/Client.js.map +1 -0
- package/dist/allend/Workflows/Delivery.d.ts +36 -0
- package/dist/allend/Workflows/Delivery.js +16 -0
- package/dist/allend/Workflows/Delivery.js.map +1 -0
- package/dist/allend/Workflows/index.d.ts +11 -0
- package/dist/allend/Workflows/index.js +25 -0
- package/dist/allend/Workflows/index.js.map +1 -0
- package/dist/allend/Workspace/index.d.ts +162 -0
- package/dist/allend/Workspace/index.js +220 -0
- package/dist/allend/Workspace/index.js.map +1 -0
- package/dist/allend/index.d.ts +8 -5
- package/dist/allend/index.js +15 -8
- package/dist/allend/index.js.map +1 -1
- package/dist/backend/Auth.d.ts +28 -4
- package/dist/backend/Auth.js +125 -245
- package/dist/backend/Auth.js.map +1 -1
- package/dist/baseUrl.d.ts +56 -0
- package/dist/baseUrl.js +72 -4
- package/dist/baseUrl.js.map +1 -1
- package/dist/core.d.ts +88 -0
- package/dist/core.js +121 -0
- package/dist/core.js.map +1 -0
- package/dist/error.d.ts +17 -0
- package/dist/error.js +26 -0
- package/dist/error.js.map +1 -0
- package/dist/index.d.ts +30 -12
- package/dist/index.js +38 -14
- package/dist/index.js.map +1 -1
- package/dist/react-native.d.ts +30 -0
- package/dist/react-native.js +55 -0
- package/dist/react-native.js.map +1 -0
- package/dist/types/access.d.ts +64 -7
- package/dist/types/auth.d.ts +17 -17
- package/dist/types/channel.d.ts +45 -0
- package/dist/types/index.d.ts +379 -237
- package/dist/utils/index.d.ts +25 -0
- package/dist/utils/index.js +11 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/stream.js +25 -26
- package/dist/utils/stream.js.map +1 -1
- package/package.json +38 -18
- package/src/allend/Access.ts +143 -13
- package/src/allend/Agent/consolidation.ts +43 -0
- package/src/allend/Agent/delivery.ts +51 -0
- package/src/allend/Agent/dispatch.ts +27 -0
- package/src/allend/Agent/index.ts +113 -0
- package/src/allend/Agent/navigation.ts +27 -0
- package/src/allend/Agent/origin.ts +36 -0
- package/src/allend/Agent/reallocation.ts +16 -0
- package/src/allend/Agent/realtime.ts +140 -0
- package/src/allend/Agent/rides.ts +61 -0
- package/src/allend/Agent/shipping.ts +51 -0
- package/src/allend/CSP/analytics.ts +61 -0
- package/src/allend/CSP/index.ts +57 -0
- package/src/allend/CSP/inventory.ts +96 -0
- package/src/allend/CSP/orders.ts +121 -0
- package/src/allend/CSP/webhooks.ts +68 -0
- package/src/allend/Customer/index.ts +56 -0
- package/src/allend/Customer/intents.ts +66 -0
- package/src/allend/Customer/orders.ts +51 -0
- package/src/allend/Customer/rides.ts +60 -0
- package/src/allend/DEV/developers.ts +42 -0
- package/src/allend/DEV/index.ts +48 -0
- package/src/allend/IoTSP/backend.ts +103 -0
- package/src/allend/IoTSP/devices.ts +74 -0
- package/src/allend/IoTSP/index.ts +69 -0
- package/src/allend/IoTSP/rules.ts +99 -0
- package/src/allend/IoTSP/topics.ts +99 -0
- package/src/allend/LSP/agents.ts +115 -0
- package/src/allend/LSP/carriers.ts +408 -0
- package/src/allend/LSP/coverage.ts +212 -0
- package/src/allend/LSP/fleets.ts +505 -0
- package/src/allend/LSP/hubs.ts +245 -0
- package/src/allend/LSP/index.ts +75 -0
- package/src/allend/LSP/inventory.ts +65 -0
- package/src/allend/LSP/operations.ts +202 -0
- package/src/allend/LSP/orders.ts +397 -0
- package/src/allend/LSP/pods.ts +176 -0
- package/src/allend/LSP/pricing.ts +192 -0
- package/src/allend/LSP/psl.ts +81 -0
- package/src/allend/LSP/warehouses.ts +118 -0
- package/src/allend/MSI/Controls.ts +109 -90
- package/src/allend/MSI/Handles.ts +24 -15
- package/src/allend/MSI/Plugins.ts +3 -3
- package/src/allend/MSI/index.ts +85 -16
- package/src/allend/MSI/native.tsx +314 -0
- package/src/allend/MSI/token.ts +20 -0
- package/src/allend/OTPAuth/index.ts +130 -0
- package/src/allend/Pipelines/analytics.ts +25 -0
- package/src/allend/Pipelines/escalations.ts +26 -0
- package/src/allend/Pipelines/executions.ts +51 -0
- package/src/allend/Pipelines/index.ts +125 -0
- package/src/allend/Pipelines/interventions.ts +27 -0
- package/src/allend/Pipelines/monitor.ts +33 -0
- package/src/allend/Pipelines/queries.ts +27 -0
- package/src/allend/Pipelines/templates.ts +51 -0
- package/src/allend/Pipelines/utils.ts +0 -0
- package/src/allend/Pipelines/webhooks.ts +36 -0
- package/src/allend/Pipelines/workers.ts +49 -0
- package/src/allend/Queries/capacity.ts +51 -0
- package/src/allend/Queries/discovery.ts +53 -0
- package/src/allend/Queries/index.ts +58 -0
- package/src/allend/Queries/matching.ts +16 -0
- package/src/allend/Queries/performance.ts +35 -0
- package/src/allend/Queries/pricing.ts +51 -0
- package/src/allend/{DClient/Event.ts → Realtime/index.ts} +23 -22
- package/src/allend/Shared/account.ts +24 -0
- package/src/allend/Shared/buckets.ts +117 -0
- package/src/allend/Shared/context.ts +36 -0
- package/src/allend/Shared/faqs.ts +106 -0
- package/src/allend/Shared/invitation.ts +77 -0
- package/src/allend/Shared/operators.ts +84 -0
- package/src/allend/Shared/users.ts +32 -0
- package/src/allend/Tracking/index.ts +48 -0
- package/src/allend/Utilities/common.ts +63 -0
- package/src/allend/Utilities/fares.ts +45 -0
- package/src/allend/Utilities/index.ts +52 -0
- package/src/allend/Utilities/nearby.ts +36 -0
- package/src/allend/{DClient → Workflows}/Client.ts +12 -22
- package/src/allend/Workflows/Delivery.ts +94 -0
- package/src/allend/Workflows/index.ts +31 -0
- package/src/allend/Workspace/index.ts +302 -0
- package/src/allend/index.ts +23 -10
- package/src/backend/Auth.ts +68 -35
- package/src/baseUrl.ts +81 -7
- package/src/core.ts +145 -0
- package/src/error.ts +27 -0
- package/src/index.ts +25 -17
- package/src/react-native.ts +43 -0
- package/src/types/access.d.ts +64 -7
- package/src/types/auth.d.ts +17 -17
- package/src/types/channel.d.ts +45 -0
- package/src/types/index.d.ts +379 -237
- package/src/utils/index.ts +33 -1
- package/dist/allend/DAuth/index.d.ts +0 -20
- package/dist/allend/DAuth/index.js +0 -92
- package/dist/allend/DAuth/index.js.map +0 -1
- package/dist/allend/DClient/Client.d.ts +0 -10
- package/dist/allend/DClient/Client.js +0 -144
- package/dist/allend/DClient/Client.js.map +0 -1
- package/dist/allend/DClient/Event.js +0 -100
- package/dist/allend/DClient/Event.js.map +0 -1
- package/dist/allend/DClient/Order.d.ts +0 -49
- package/dist/allend/DClient/Order.js +0 -601
- package/dist/allend/DClient/Order.js.map +0 -1
- package/dist/bundle.js +0 -1
- package/src/allend/DAuth/index.ts +0 -39
- package/src/allend/DClient/Order.ts +0 -452
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
LSPFleetCreateValidation,
|
|
3
|
+
LSPFleetRetrieveValidation,
|
|
4
|
+
LSPFleetListValidation,
|
|
5
|
+
LSPFleetUpdateValidation,
|
|
6
|
+
LSPFleetUpdateStatusValidation,
|
|
7
|
+
LSPFleetRemoveValidation
|
|
8
|
+
} from '@de./types/lsp/fleet'
|
|
9
|
+
import type {
|
|
10
|
+
LSPVehicleAddValidation,
|
|
11
|
+
LSPVehicleRetrieveValidation,
|
|
12
|
+
LSPVehicleListValidation,
|
|
13
|
+
LSPVehicleUpdateValidation,
|
|
14
|
+
LSPVehicleUpdateStatusValidation,
|
|
15
|
+
LSPVehicleUpdateSpecsValidation,
|
|
16
|
+
LSPVehicleUpdateIoTValidation,
|
|
17
|
+
LSPVehicleAllocateValidation,
|
|
18
|
+
LSPVehicleRemoveValidation,
|
|
19
|
+
LSPVehicleDeallocateValidation
|
|
20
|
+
} from '@de./types/lsp/fleet/vehicle'
|
|
21
|
+
import type {
|
|
22
|
+
LSPFleetParkingAddFacilityValidation,
|
|
23
|
+
LSPFleetParkingRetrieveFacilityValidation,
|
|
24
|
+
LSPFleetParkingFetchFacilitiesValidation,
|
|
25
|
+
LSPFleetParkingUpdateFacilityValidation,
|
|
26
|
+
LSPFleetParkingRemoveFacilityValidation,
|
|
27
|
+
LSPFleetParkingAddSpaceValidation,
|
|
28
|
+
LSPFleetParkingUpdateSpaceValidation,
|
|
29
|
+
LSPFleetParkingRemoveSpaceValidation,
|
|
30
|
+
LSPFleetParkingCreateAssignmentValidation,
|
|
31
|
+
LSPFleetParkingRetrieveAssignmentValidation,
|
|
32
|
+
LSPFleetParkingFetchAssignmentsValidation,
|
|
33
|
+
LSPFleetParkingUpdateAssignmentValidation,
|
|
34
|
+
LSPFleetParkingCheckInValidation,
|
|
35
|
+
LSPFleetParkingCheckOutValidation,
|
|
36
|
+
LSPFleetParkingCancelAssignmentValidation,
|
|
37
|
+
LSPFleetParkingCreateReservationValidation,
|
|
38
|
+
LSPFleetParkingRetrieveReservationValidation,
|
|
39
|
+
LSPFleetParkingFetchReservationsValidation,
|
|
40
|
+
LSPFleetParkingUpdateReservationValidation,
|
|
41
|
+
LSPFleetParkingConfirmReservationValidation,
|
|
42
|
+
LSPFleetParkingCancelReservationValidation,
|
|
43
|
+
LSPFleetParkingGetUtilizationValidation
|
|
44
|
+
} from '@de./types/lsp/fleet/parking'
|
|
45
|
+
import type {
|
|
46
|
+
LSPFleetMaintenanceAddRecordValidation,
|
|
47
|
+
LSPFleetMaintenanceRetrieveRecordValidation,
|
|
48
|
+
LSPFleetMaintenanceFetchRecordsValidation,
|
|
49
|
+
LSPFleetMaintenanceUpdateRecordValidation,
|
|
50
|
+
LSPFleetMaintenanceDeleteRecordValidation,
|
|
51
|
+
LSPFleetMaintenanceStartValidation,
|
|
52
|
+
LSPFleetMaintenanceCompleteValidation,
|
|
53
|
+
LSPFleetMaintenanceCancelValidation,
|
|
54
|
+
LSPFleetMaintenanceApproveValidation,
|
|
55
|
+
LSPFleetMaintenanceAddScheduleValidation,
|
|
56
|
+
LSPFleetMaintenanceRetrieveScheduleValidation,
|
|
57
|
+
LSPFleetMaintenanceFetchSchedulesValidation,
|
|
58
|
+
LSPFleetMaintenanceUpdateScheduleValidation,
|
|
59
|
+
LSPFleetMaintenanceDeleteScheduleValidation,
|
|
60
|
+
LSPFleetMaintenanceActivateScheduleValidation,
|
|
61
|
+
LSPFleetMaintenanceDeactivateScheduleValidation,
|
|
62
|
+
LSPFleetMaintenanceGetHistoryValidation,
|
|
63
|
+
LSPFleetMaintenanceGetUpcomingValidation,
|
|
64
|
+
LSPFleetMaintenanceGetOverdueValidation
|
|
65
|
+
} from '@de./types/lsp/fleet/maintenance'
|
|
66
|
+
import { qs, type Http, type Res, type Data } from '../../utils'
|
|
67
|
+
|
|
68
|
+
// ── LSP Fleets ────────────────────────────────────────────────────────────────
|
|
69
|
+
|
|
70
|
+
export default class LSPFleets {
|
|
71
|
+
constructor( private http: Http ){}
|
|
72
|
+
|
|
73
|
+
async create( body: LSPFleetCreateValidation['body'] ): Promise<LSPFleetCreateValidation['response']> {
|
|
74
|
+
return await this.http.request<LSPFleetCreateValidation['response']>({
|
|
75
|
+
url: '/lsp/fleets/create',
|
|
76
|
+
method: 'POST',
|
|
77
|
+
body
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async list( querystring?: LSPFleetListValidation['querystring'] ): Promise<LSPFleetListValidation['response']> {
|
|
82
|
+
return await this.http.request<LSPFleetListValidation['response']>({
|
|
83
|
+
url: `/lsp/fleets${qs( querystring )}`,
|
|
84
|
+
method: 'GET'
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async retrieve( id: string ): Promise<LSPFleetRetrieveValidation['response']> {
|
|
89
|
+
return await this.http.request<LSPFleetRetrieveValidation['response']>({
|
|
90
|
+
url: `/lsp/fleets/${id}`,
|
|
91
|
+
method: 'GET'
|
|
92
|
+
})
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
async update( id: string, body: LSPFleetUpdateValidation['body'] ): Promise<LSPFleetUpdateValidation['response']> {
|
|
96
|
+
return await this.http.request<LSPFleetUpdateValidation['response']>({
|
|
97
|
+
url: `/lsp/fleets/${id}`,
|
|
98
|
+
method: 'PATCH',
|
|
99
|
+
body
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
async updateStatus( id: string, body: LSPFleetUpdateStatusValidation['body'] ): Promise<LSPFleetUpdateStatusValidation['response']> {
|
|
104
|
+
return await this.http.request<LSPFleetUpdateStatusValidation['response']>({
|
|
105
|
+
url: `/lsp/fleets/${id}/status`,
|
|
106
|
+
method: 'PATCH',
|
|
107
|
+
body
|
|
108
|
+
})
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async remove( id: string ): Promise<LSPFleetRemoveValidation['response']> {
|
|
112
|
+
return await this.http.request<LSPFleetRemoveValidation['response']>({
|
|
113
|
+
url: `/lsp/fleets/${id}`,
|
|
114
|
+
method: 'DELETE'
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// ── Vehicles ──────────────────────────────────────────────────────────────
|
|
119
|
+
|
|
120
|
+
async addVehicle( body: LSPVehicleAddValidation['body'] ): Promise<LSPVehicleAddValidation['response']> {
|
|
121
|
+
return await this.http.request<LSPVehicleAddValidation['response']>({
|
|
122
|
+
url: '/lsp/fleet/vehicles/add',
|
|
123
|
+
method: 'POST',
|
|
124
|
+
body
|
|
125
|
+
})
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
async listVehicles( querystring?: LSPVehicleListValidation['querystring'] ): Promise<LSPVehicleListValidation['response']> {
|
|
129
|
+
return await this.http.request<LSPVehicleListValidation['response']>({
|
|
130
|
+
url: `/lsp/fleet/vehicles${qs( querystring )}`,
|
|
131
|
+
method: 'GET'
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
async retrieveVehicle( id: string ): Promise<LSPVehicleRetrieveValidation['response']> {
|
|
136
|
+
return await this.http.request<LSPVehicleRetrieveValidation['response']>({
|
|
137
|
+
url: `/lsp/fleet/vehicles/${id}`,
|
|
138
|
+
method: 'GET'
|
|
139
|
+
})
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
async updateVehicle( id: string, body: LSPVehicleUpdateValidation['body'] ): Promise<LSPVehicleUpdateValidation['response']> {
|
|
143
|
+
return await this.http.request<LSPVehicleUpdateValidation['response']>({
|
|
144
|
+
url: `/lsp/fleet/vehicles/${id}`,
|
|
145
|
+
method: 'PATCH',
|
|
146
|
+
body
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
async updateVehicleStatus( id: string, body: LSPVehicleUpdateStatusValidation['body'] ): Promise<LSPVehicleUpdateStatusValidation['response']> {
|
|
151
|
+
return await this.http.request<LSPVehicleUpdateStatusValidation['response']>({
|
|
152
|
+
url: `/lsp/fleet/vehicles/${id}/status`,
|
|
153
|
+
method: 'PATCH',
|
|
154
|
+
body
|
|
155
|
+
})
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
async updateVehicleSpecs( id: string, body: LSPVehicleUpdateSpecsValidation['body'] ): Promise<LSPVehicleUpdateSpecsValidation['response']> {
|
|
159
|
+
return await this.http.request<LSPVehicleUpdateSpecsValidation['response']>({
|
|
160
|
+
url: `/lsp/fleet/vehicles/${id}/specs`,
|
|
161
|
+
method: 'PATCH',
|
|
162
|
+
body
|
|
163
|
+
})
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
async updateVehicleIoT( id: string, body: LSPVehicleUpdateIoTValidation['body'] ): Promise<LSPVehicleUpdateIoTValidation['response']> {
|
|
167
|
+
return await this.http.request<LSPVehicleUpdateIoTValidation['response']>({
|
|
168
|
+
url: `/lsp/fleet/vehicles/${id}/iot`,
|
|
169
|
+
method: 'PATCH',
|
|
170
|
+
body
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
async allocateVehicle( id: string, body: LSPVehicleAllocateValidation['body'] ): Promise<LSPVehicleAllocateValidation['response']> {
|
|
175
|
+
return await this.http.request<LSPVehicleAllocateValidation['response']>({
|
|
176
|
+
url: `/lsp/fleet/vehicles/${id}/allocate`,
|
|
177
|
+
method: 'PUT',
|
|
178
|
+
body
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
async deallocateVehicle( id: string ): Promise<LSPVehicleDeallocateValidation['response']> {
|
|
183
|
+
return await this.http.request<LSPVehicleDeallocateValidation['response']>({
|
|
184
|
+
url: `/lsp/fleet/vehicles/${id}/deallocate`,
|
|
185
|
+
method: 'PATCH'
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
async removeVehicle( id: string ): Promise<LSPVehicleRemoveValidation['response']> {
|
|
190
|
+
return await this.http.request<LSPVehicleRemoveValidation['response']>({
|
|
191
|
+
url: `/lsp/fleet/vehicles/${id}`,
|
|
192
|
+
method: 'DELETE'
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// ── Parking Facilities ────────────────────────────────────────────────────
|
|
197
|
+
|
|
198
|
+
async addParkingFacility( body: LSPFleetParkingAddFacilityValidation['body'] ): Promise<LSPFleetParkingAddFacilityValidation['response']> {
|
|
199
|
+
return await this.http.request<LSPFleetParkingAddFacilityValidation['response']>({
|
|
200
|
+
url: '/lsp/fleet/parking/facilities',
|
|
201
|
+
method: 'POST',
|
|
202
|
+
body
|
|
203
|
+
})
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
async listParkingFacilities( querystring?: LSPFleetParkingFetchFacilitiesValidation['querystring'] ): Promise<LSPFleetParkingFetchFacilitiesValidation['response']> {
|
|
207
|
+
return await this.http.request<LSPFleetParkingFetchFacilitiesValidation['response']>({
|
|
208
|
+
url: `/lsp/fleet/parking/facilities${qs( querystring )}`,
|
|
209
|
+
method: 'GET'
|
|
210
|
+
})
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
async retrieveParkingFacility( id: string ): Promise<LSPFleetParkingRetrieveFacilityValidation['response']> {
|
|
214
|
+
return await this.http.request<LSPFleetParkingRetrieveFacilityValidation['response']>({
|
|
215
|
+
url: `/lsp/fleet/parking/facilities/${id}`,
|
|
216
|
+
method: 'GET'
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
async getParkingFacilityUtilization( id: string, querystring: LSPFleetParkingGetUtilizationValidation['querystring'] ): Promise<LSPFleetParkingGetUtilizationValidation['response']> {
|
|
221
|
+
return await this.http.request<LSPFleetParkingGetUtilizationValidation['response']>({
|
|
222
|
+
url: `/lsp/fleet/parking/facilities/${id}/utilization${qs( querystring )}`,
|
|
223
|
+
method: 'GET'
|
|
224
|
+
})
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
async updateParkingFacility( id: string, body: LSPFleetParkingUpdateFacilityValidation['body'] ): Promise<LSPFleetParkingUpdateFacilityValidation['response']> {
|
|
228
|
+
return await this.http.request<LSPFleetParkingUpdateFacilityValidation['response']>({
|
|
229
|
+
url: `/lsp/fleet/parking/facilities/${id}`,
|
|
230
|
+
method: 'PATCH',
|
|
231
|
+
body
|
|
232
|
+
})
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
async removeParkingFacility( id: string, body: LSPFleetParkingRemoveFacilityValidation['body'] ): Promise<LSPFleetParkingRemoveFacilityValidation['response']> {
|
|
236
|
+
return await this.http.request<LSPFleetParkingRemoveFacilityValidation['response']>({
|
|
237
|
+
url: `/lsp/fleet/parking/facilities/${id}`,
|
|
238
|
+
method: 'DELETE',
|
|
239
|
+
body
|
|
240
|
+
})
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
async addParkingSpace( id: string, body: LSPFleetParkingAddSpaceValidation['body'] ): Promise<LSPFleetParkingAddSpaceValidation['response']> {
|
|
244
|
+
return await this.http.request<LSPFleetParkingAddSpaceValidation['response']>({
|
|
245
|
+
url: `/lsp/fleet/parking/facilities/${id}/spaces`,
|
|
246
|
+
method: 'POST',
|
|
247
|
+
body
|
|
248
|
+
})
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
async updateParkingSpace( id: string, spaceId: string, body: LSPFleetParkingUpdateSpaceValidation['body'] ): Promise<LSPFleetParkingUpdateSpaceValidation['response']> {
|
|
252
|
+
return await this.http.request<LSPFleetParkingUpdateSpaceValidation['response']>({
|
|
253
|
+
url: `/lsp/fleet/parking/facilities/${id}/spaces/${spaceId}`,
|
|
254
|
+
method: 'PATCH',
|
|
255
|
+
body
|
|
256
|
+
})
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
async removeParkingSpace( id: string, spaceId: string ): Promise<LSPFleetParkingRemoveSpaceValidation['response']> {
|
|
260
|
+
return await this.http.request<LSPFleetParkingRemoveSpaceValidation['response']>({
|
|
261
|
+
url: `/lsp/fleet/parking/facilities/${id}/spaces/${spaceId}`,
|
|
262
|
+
method: 'DELETE'
|
|
263
|
+
})
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// ── Parking Assignments ───────────────────────────────────────────────────
|
|
267
|
+
|
|
268
|
+
async createParkingAssignment( body: LSPFleetParkingCreateAssignmentValidation['body'] ): Promise<LSPFleetParkingCreateAssignmentValidation['response']> {
|
|
269
|
+
return await this.http.request<LSPFleetParkingCreateAssignmentValidation['response']>({
|
|
270
|
+
url: '/lsp/fleet/parking/assignments',
|
|
271
|
+
method: 'POST',
|
|
272
|
+
body
|
|
273
|
+
})
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
async listParkingAssignments( querystring?: LSPFleetParkingFetchAssignmentsValidation['querystring'] ): Promise<LSPFleetParkingFetchAssignmentsValidation['response']> {
|
|
277
|
+
return await this.http.request<LSPFleetParkingFetchAssignmentsValidation['response']>({
|
|
278
|
+
url: `/lsp/fleet/parking/assignments${qs( querystring )}`,
|
|
279
|
+
method: 'GET'
|
|
280
|
+
})
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
async retrieveParkingAssignment( id: string ): Promise<LSPFleetParkingRetrieveAssignmentValidation['response']> {
|
|
284
|
+
return await this.http.request<LSPFleetParkingRetrieveAssignmentValidation['response']>({
|
|
285
|
+
url: `/lsp/fleet/parking/assignments/${id}`,
|
|
286
|
+
method: 'GET'
|
|
287
|
+
})
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
async updateParkingAssignment( id: string, body: LSPFleetParkingUpdateAssignmentValidation['body'] ): Promise<LSPFleetParkingUpdateAssignmentValidation['response']> {
|
|
291
|
+
return await this.http.request<LSPFleetParkingUpdateAssignmentValidation['response']>({
|
|
292
|
+
url: `/lsp/fleet/parking/assignments/${id}`,
|
|
293
|
+
method: 'PATCH',
|
|
294
|
+
body
|
|
295
|
+
})
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
async checkInParking( id: string ): Promise<LSPFleetParkingCheckInValidation['response']> {
|
|
299
|
+
return await this.http.request<LSPFleetParkingCheckInValidation['response']>({
|
|
300
|
+
url: `/lsp/fleet/parking/assignments/${id}/check-in`,
|
|
301
|
+
method: 'PATCH'
|
|
302
|
+
})
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
async checkOutParking( id: string ): Promise<LSPFleetParkingCheckOutValidation['response']> {
|
|
306
|
+
return await this.http.request<LSPFleetParkingCheckOutValidation['response']>({
|
|
307
|
+
url: `/lsp/fleet/parking/assignments/${id}/check-out`,
|
|
308
|
+
method: 'PATCH'
|
|
309
|
+
})
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
async cancelParkingAssignment( id: string ): Promise<LSPFleetParkingCancelAssignmentValidation['response']> {
|
|
313
|
+
return await this.http.request<LSPFleetParkingCancelAssignmentValidation['response']>({
|
|
314
|
+
url: `/lsp/fleet/parking/assignments/${id}/cancel`,
|
|
315
|
+
method: 'PATCH'
|
|
316
|
+
})
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// ── Parking Reservations ──────────────────────────────────────────────────
|
|
320
|
+
|
|
321
|
+
async createParkingReservation( body: LSPFleetParkingCreateReservationValidation['body'] ): Promise<LSPFleetParkingCreateReservationValidation['response']> {
|
|
322
|
+
return await this.http.request<LSPFleetParkingCreateReservationValidation['response']>({
|
|
323
|
+
url: '/lsp/fleet/parking/reservations',
|
|
324
|
+
method: 'POST',
|
|
325
|
+
body
|
|
326
|
+
})
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
async listParkingReservations( querystring?: LSPFleetParkingFetchReservationsValidation['querystring'] ): Promise<LSPFleetParkingFetchReservationsValidation['response']> {
|
|
330
|
+
return await this.http.request<LSPFleetParkingFetchReservationsValidation['response']>({
|
|
331
|
+
url: `/lsp/fleet/parking/reservations${qs( querystring )}`,
|
|
332
|
+
method: 'GET'
|
|
333
|
+
})
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
async retrieveParkingReservation( id: string ): Promise<LSPFleetParkingRetrieveReservationValidation['response']> {
|
|
337
|
+
return await this.http.request<LSPFleetParkingRetrieveReservationValidation['response']>({
|
|
338
|
+
url: `/lsp/fleet/parking/reservations/${id}`,
|
|
339
|
+
method: 'GET'
|
|
340
|
+
})
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
async updateParkingReservation( id: string, body: LSPFleetParkingUpdateReservationValidation['body'] ): Promise<LSPFleetParkingUpdateReservationValidation['response']> {
|
|
344
|
+
return await this.http.request<LSPFleetParkingUpdateReservationValidation['response']>({
|
|
345
|
+
url: `/lsp/fleet/parking/reservations/${id}`,
|
|
346
|
+
method: 'PATCH',
|
|
347
|
+
body
|
|
348
|
+
})
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
async confirmParkingReservation( id: string ): Promise<LSPFleetParkingConfirmReservationValidation['response']> {
|
|
352
|
+
return await this.http.request<LSPFleetParkingConfirmReservationValidation['response']>({
|
|
353
|
+
url: `/lsp/fleet/parking/reservations/${id}/confirm`,
|
|
354
|
+
method: 'PATCH'
|
|
355
|
+
})
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
async cancelParkingReservation( id: string ): Promise<LSPFleetParkingCancelReservationValidation['response']> {
|
|
359
|
+
return await this.http.request<LSPFleetParkingCancelReservationValidation['response']>({
|
|
360
|
+
url: `/lsp/fleet/parking/reservations/${id}/cancel`,
|
|
361
|
+
method: 'PATCH'
|
|
362
|
+
})
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// ── Maintenance Records ───────────────────────────────────────────────────
|
|
366
|
+
|
|
367
|
+
async addMaintenanceRecord( body: LSPFleetMaintenanceAddRecordValidation['body'] ): Promise<LSPFleetMaintenanceAddRecordValidation['response']> {
|
|
368
|
+
return await this.http.request<LSPFleetMaintenanceAddRecordValidation['response']>({
|
|
369
|
+
url: '/lsp/fleet/maintenance/records',
|
|
370
|
+
method: 'POST',
|
|
371
|
+
body
|
|
372
|
+
})
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
async listMaintenanceRecords( querystring?: LSPFleetMaintenanceFetchRecordsValidation['querystring'] ): Promise<LSPFleetMaintenanceFetchRecordsValidation['response']> {
|
|
376
|
+
return await this.http.request<LSPFleetMaintenanceFetchRecordsValidation['response']>({
|
|
377
|
+
url: `/lsp/fleet/maintenance/records${qs( querystring )}`,
|
|
378
|
+
method: 'GET'
|
|
379
|
+
})
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
async retrieveMaintenanceRecord( id: string ): Promise<LSPFleetMaintenanceRetrieveRecordValidation['response']> {
|
|
383
|
+
return await this.http.request<LSPFleetMaintenanceRetrieveRecordValidation['response']>({
|
|
384
|
+
url: `/lsp/fleet/maintenance/records/${id}`,
|
|
385
|
+
method: 'GET'
|
|
386
|
+
})
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
async getVehicleMaintenanceHistory( vid: string, querystring: LSPFleetMaintenanceGetHistoryValidation['querystring'] ): Promise<LSPFleetMaintenanceGetHistoryValidation['response']> {
|
|
390
|
+
return await this.http.request<LSPFleetMaintenanceGetHistoryValidation['response']>({
|
|
391
|
+
url: `/lsp/fleet/maintenance/vehicles/${vid}/history${qs( querystring )}`,
|
|
392
|
+
method: 'GET'
|
|
393
|
+
})
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
async updateMaintenanceRecord( id: string, body: LSPFleetMaintenanceUpdateRecordValidation['body'] ): Promise<LSPFleetMaintenanceUpdateRecordValidation['response']> {
|
|
397
|
+
return await this.http.request<LSPFleetMaintenanceUpdateRecordValidation['response']>({
|
|
398
|
+
url: `/lsp/fleet/maintenance/records/${id}`,
|
|
399
|
+
method: 'PATCH',
|
|
400
|
+
body
|
|
401
|
+
})
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
async startMaintenance( id: string ): Promise<LSPFleetMaintenanceStartValidation['response']> {
|
|
405
|
+
return await this.http.request<LSPFleetMaintenanceStartValidation['response']>({
|
|
406
|
+
url: `/lsp/fleet/maintenance/records/${id}/start`,
|
|
407
|
+
method: 'PATCH'
|
|
408
|
+
})
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
async completeMaintenance( id: string ): Promise<LSPFleetMaintenanceCompleteValidation['response']> {
|
|
412
|
+
return await this.http.request<LSPFleetMaintenanceCompleteValidation['response']>({
|
|
413
|
+
url: `/lsp/fleet/maintenance/records/${id}/complete`,
|
|
414
|
+
method: 'PATCH'
|
|
415
|
+
})
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
async cancelMaintenance( id: string ): Promise<LSPFleetMaintenanceCancelValidation['response']> {
|
|
419
|
+
return await this.http.request<LSPFleetMaintenanceCancelValidation['response']>({
|
|
420
|
+
url: `/lsp/fleet/maintenance/records/${id}/cancel`,
|
|
421
|
+
method: 'PATCH'
|
|
422
|
+
})
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
async approveMaintenance( id: string ): Promise<LSPFleetMaintenanceApproveValidation['response']> {
|
|
426
|
+
return await this.http.request<LSPFleetMaintenanceApproveValidation['response']>({
|
|
427
|
+
url: `/lsp/fleet/maintenance/records/${id}/approve`,
|
|
428
|
+
method: 'PATCH'
|
|
429
|
+
})
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
async deleteMaintenanceRecord( id: string ): Promise<LSPFleetMaintenanceDeleteRecordValidation['response']> {
|
|
433
|
+
return await this.http.request<LSPFleetMaintenanceDeleteRecordValidation['response']>({
|
|
434
|
+
url: `/lsp/fleet/maintenance/records/${id}`,
|
|
435
|
+
method: 'DELETE'
|
|
436
|
+
})
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
// ── Maintenance Schedules ─────────────────────────────────────────────────
|
|
440
|
+
|
|
441
|
+
async addMaintenanceSchedule( body: LSPFleetMaintenanceAddScheduleValidation['body'] ): Promise<LSPFleetMaintenanceAddScheduleValidation['response']> {
|
|
442
|
+
return await this.http.request<LSPFleetMaintenanceAddScheduleValidation['response']>({
|
|
443
|
+
url: '/lsp/fleet/maintenance/schedules',
|
|
444
|
+
method: 'POST',
|
|
445
|
+
body
|
|
446
|
+
})
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
async listMaintenanceSchedules( querystring?: LSPFleetMaintenanceFetchSchedulesValidation['querystring'] ): Promise<LSPFleetMaintenanceFetchSchedulesValidation['response']> {
|
|
450
|
+
return await this.http.request<LSPFleetMaintenanceFetchSchedulesValidation['response']>({
|
|
451
|
+
url: `/lsp/fleet/maintenance/schedules${qs( querystring )}`,
|
|
452
|
+
method: 'GET'
|
|
453
|
+
})
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
async getUpcomingMaintenance( querystring?: LSPFleetMaintenanceGetUpcomingValidation['querystring'] ): Promise<LSPFleetMaintenanceGetUpcomingValidation['response']> {
|
|
457
|
+
return await this.http.request<LSPFleetMaintenanceGetUpcomingValidation['response']>({
|
|
458
|
+
url: `/lsp/fleet/maintenance/schedules/upcoming${qs( querystring )}`,
|
|
459
|
+
method: 'GET'
|
|
460
|
+
})
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
async getOverdueMaintenance( querystring?: LSPFleetMaintenanceGetOverdueValidation['querystring'] ): Promise<LSPFleetMaintenanceGetOverdueValidation['response']> {
|
|
464
|
+
return await this.http.request<LSPFleetMaintenanceGetOverdueValidation['response']>({
|
|
465
|
+
url: `/lsp/fleet/maintenance/schedules/overdue${qs( querystring )}`,
|
|
466
|
+
method: 'GET'
|
|
467
|
+
})
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
async retrieveMaintenanceSchedule( id: string ): Promise<LSPFleetMaintenanceRetrieveScheduleValidation['response']> {
|
|
471
|
+
return await this.http.request<LSPFleetMaintenanceRetrieveScheduleValidation['response']>({
|
|
472
|
+
url: `/lsp/fleet/maintenance/schedules/${id}`,
|
|
473
|
+
method: 'GET'
|
|
474
|
+
})
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
async updateMaintenanceSchedule( id: string, body: LSPFleetMaintenanceUpdateScheduleValidation['body'] ): Promise<LSPFleetMaintenanceUpdateScheduleValidation['response']> {
|
|
478
|
+
return await this.http.request<LSPFleetMaintenanceUpdateScheduleValidation['response']>({
|
|
479
|
+
url: `/lsp/fleet/maintenance/schedules/${id}`,
|
|
480
|
+
method: 'PATCH',
|
|
481
|
+
body
|
|
482
|
+
})
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
async activateMaintenanceSchedule( id: string ): Promise<LSPFleetMaintenanceActivateScheduleValidation['response']> {
|
|
486
|
+
return await this.http.request<LSPFleetMaintenanceActivateScheduleValidation['response']>({
|
|
487
|
+
url: `/lsp/fleet/maintenance/schedules/${id}/activate`,
|
|
488
|
+
method: 'PATCH'
|
|
489
|
+
})
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
async deactivateMaintenanceSchedule( id: string ): Promise<LSPFleetMaintenanceDeactivateScheduleValidation['response']> {
|
|
493
|
+
return await this.http.request<LSPFleetMaintenanceDeactivateScheduleValidation['response']>({
|
|
494
|
+
url: `/lsp/fleet/maintenance/schedules/${id}/deactivate`,
|
|
495
|
+
method: 'PATCH'
|
|
496
|
+
})
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
async deleteMaintenanceSchedule( id: string ): Promise<LSPFleetMaintenanceDeleteScheduleValidation['response']> {
|
|
500
|
+
return await this.http.request<LSPFleetMaintenanceDeleteScheduleValidation['response']>({
|
|
501
|
+
url: `/lsp/fleet/maintenance/schedules/${id}`,
|
|
502
|
+
method: 'DELETE'
|
|
503
|
+
})
|
|
504
|
+
}
|
|
505
|
+
}
|