@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,245 @@
|
|
|
1
|
+
import type { APIResponseBase } from '@de./types'
|
|
2
|
+
import type {
|
|
3
|
+
LSPHubCreateValidation,
|
|
4
|
+
LSPHubRetrieveValidation,
|
|
5
|
+
LSPHubListValidation,
|
|
6
|
+
LSPHubUpdateValidation,
|
|
7
|
+
LSPHubUpdateStatusValidation,
|
|
8
|
+
LSPHubRemoveValidation,
|
|
9
|
+
LSPHubGetOperationsCapabilityValidation,
|
|
10
|
+
LSPHubSetOperationsCapabilityValidation,
|
|
11
|
+
LSPHubSetCapacityValidation,
|
|
12
|
+
LSPHubGetCapacityValidation
|
|
13
|
+
} from '@de./types/lsp/hub'
|
|
14
|
+
import type {
|
|
15
|
+
LSPSortValidation,
|
|
16
|
+
LSPSortingListValidation,
|
|
17
|
+
LSPSortingStatsValidation,
|
|
18
|
+
LSPCrossDockInitiateValidation,
|
|
19
|
+
LSPCrossDockCompleteValidation,
|
|
20
|
+
LSPCrossDockStatsValidation
|
|
21
|
+
} from '@de./types/lsp/order/management'
|
|
22
|
+
import type {
|
|
23
|
+
LSPPassthroughOrderCreateValidation,
|
|
24
|
+
LSPPassthroughOrderListValidation,
|
|
25
|
+
LSPPassthroughOrderGetValidation,
|
|
26
|
+
LSPPassthroughOrderLogsValidation,
|
|
27
|
+
LSPPassthroughOrderUpdateStageValidation,
|
|
28
|
+
LSPPassthroughOrderUpdateStatusValidation,
|
|
29
|
+
LSPPassthroughOrderAssignValidation,
|
|
30
|
+
LSPPassthroughOrderCancelValidation
|
|
31
|
+
} from '@de./types/lsp/order/passthrough'
|
|
32
|
+
import { qs, type Http, type Res, type Data } from '../../utils'
|
|
33
|
+
import { LSPPricingBindToValidation } from '@de./types/lsp/pricing'
|
|
34
|
+
import LSPFacilityPSL from './psl'
|
|
35
|
+
import LSPFacilityInventory from './inventory'
|
|
36
|
+
|
|
37
|
+
// ── LSP Hubs ──────────────────────────────────────────────────────────────────
|
|
38
|
+
|
|
39
|
+
export default class LSPHubs {
|
|
40
|
+
psl: LSPFacilityPSL
|
|
41
|
+
inventory: LSPFacilityInventory
|
|
42
|
+
|
|
43
|
+
constructor( private http: Http ){
|
|
44
|
+
this.psl = new LSPFacilityPSL( this.http, 'hubs' )
|
|
45
|
+
this.inventory = new LSPFacilityInventory( this.http, 'hubs' )
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async create( body: LSPHubCreateValidation['body'] ): Promise<LSPHubCreateValidation['response']> {
|
|
49
|
+
return await this.http.request<LSPHubCreateValidation['response']>({
|
|
50
|
+
url: '/lsp/hubs/create',
|
|
51
|
+
method: 'POST',
|
|
52
|
+
body
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async list( querystring?: LSPHubListValidation['querystring'] ): Promise<LSPHubListValidation['response']> {
|
|
57
|
+
return await this.http.request<LSPHubListValidation['response']>({
|
|
58
|
+
url: `/lsp/hubs${qs( querystring )}`,
|
|
59
|
+
method: 'GET'
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async retrieve( id: string ): Promise<LSPHubRetrieveValidation['response']> {
|
|
64
|
+
return await this.http.request<LSPHubRetrieveValidation['response']>({
|
|
65
|
+
url: `/lsp/hubs/${id}`,
|
|
66
|
+
method: 'GET'
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async update( id: string, body: LSPHubUpdateValidation['body'] ): Promise<LSPHubUpdateValidation['response']> {
|
|
71
|
+
return await this.http.request<LSPHubUpdateValidation['response']>({
|
|
72
|
+
url: `/lsp/hubs/${id}`,
|
|
73
|
+
method: 'PATCH',
|
|
74
|
+
body
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
async updateStatus( id: string, body: LSPHubUpdateStatusValidation['body'] ): Promise<LSPHubUpdateStatusValidation['response']> {
|
|
79
|
+
return await this.http.request<LSPHubUpdateStatusValidation['response']>({
|
|
80
|
+
url: `/lsp/hubs/${id}/status`,
|
|
81
|
+
method: 'PATCH',
|
|
82
|
+
body
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async remove( id: string ): Promise<LSPHubRemoveValidation['response']> {
|
|
87
|
+
return await this.http.request<LSPHubRemoveValidation['response']>({
|
|
88
|
+
url: `/lsp/hubs/${id}`,
|
|
89
|
+
method: 'DELETE'
|
|
90
|
+
})
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async bindPricing( id: string, action: LSPPricingBindToValidation['params']['action'], body: LSPPricingBindToValidation['body'] ): Promise<LSPPricingBindToValidation['response']> {
|
|
94
|
+
return await this.http.request<LSPPricingBindToValidation['response']>({
|
|
95
|
+
url: `/lsp/hubs/${id}/pricing/${action}`,
|
|
96
|
+
method: 'PUT',
|
|
97
|
+
body
|
|
98
|
+
})
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// ── Capabilities ──────────────────────────────────────────────────────────
|
|
102
|
+
|
|
103
|
+
async getCapability( id: string, type: string ): Promise<LSPHubGetOperationsCapabilityValidation['response']> {
|
|
104
|
+
return await this.http.request<LSPHubGetOperationsCapabilityValidation['response']>({
|
|
105
|
+
url: `/lsp/hubs/${id}/capabilities/${type}`,
|
|
106
|
+
method: 'GET'
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
async setCapability( id: string, type: string, body: LSPHubSetOperationsCapabilityValidation['body'] ): Promise<LSPHubSetOperationsCapabilityValidation['response']> {
|
|
111
|
+
return await this.http.request<LSPHubSetOperationsCapabilityValidation['response']>({
|
|
112
|
+
url: `/lsp/hubs/${id}/capabilities/${type}`,
|
|
113
|
+
method: 'PUT',
|
|
114
|
+
body
|
|
115
|
+
})
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// ── Capacities ────────────────────────────────────────────────────────────
|
|
119
|
+
|
|
120
|
+
async getCapacity( id: string, type: string ): Promise<LSPHubGetCapacityValidation['response']> {
|
|
121
|
+
return await this.http.request<LSPHubGetCapacityValidation['response']>({
|
|
122
|
+
url: `/lsp/hubs/${id}/capacities/${type}`,
|
|
123
|
+
method: 'GET'
|
|
124
|
+
})
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
async setCapacity( id: string, type: string, body: LSPHubSetCapacityValidation['body'] ): Promise<LSPHubSetCapacityValidation['response']> {
|
|
128
|
+
return await this.http.request<LSPHubSetCapacityValidation['response']>({
|
|
129
|
+
url: `/lsp/hubs/${id}/capacities/${type}`,
|
|
130
|
+
method: 'PUT',
|
|
131
|
+
body
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ── Passthrough ───────────────────────────────────────────────────────────
|
|
136
|
+
|
|
137
|
+
async createPassthrough( hubId: string, body: LSPPassthroughOrderCreateValidation['body'] ): Promise<LSPPassthroughOrderCreateValidation['response']> {
|
|
138
|
+
return await this.http.request<LSPPassthroughOrderCreateValidation['response']>({
|
|
139
|
+
url: `/lsp/hubs/${hubId}/passthrough`,
|
|
140
|
+
method: 'POST',
|
|
141
|
+
body
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
async listPassthrough( hubId: string, querystring?: LSPPassthroughOrderListValidation['querystring'] ): Promise<LSPPassthroughOrderListValidation['response']> {
|
|
146
|
+
return await this.http.request<LSPPassthroughOrderListValidation['response']>({
|
|
147
|
+
url: `/lsp/hubs/${hubId}/passthrough${qs( querystring )}`,
|
|
148
|
+
method: 'GET'
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
async retrievePassthrough( hubId: string, reference: string ): Promise<LSPPassthroughOrderGetValidation['response']> {
|
|
153
|
+
return await this.http.request<LSPPassthroughOrderGetValidation['response']>({
|
|
154
|
+
url: `/lsp/hubs/${hubId}/passthrough/${reference}`,
|
|
155
|
+
method: 'GET'
|
|
156
|
+
})
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
async getPassthroughLogs( hubId: string, reference: string ): Promise<LSPPassthroughOrderLogsValidation['response']> {
|
|
160
|
+
return await this.http.request<LSPPassthroughOrderLogsValidation['response']>({
|
|
161
|
+
url: `/lsp/hubs/${hubId}/passthrough/${reference}/logs`,
|
|
162
|
+
method: 'GET'
|
|
163
|
+
})
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
async updatePassthroughStage( hubId: string, reference: string, body: LSPPassthroughOrderUpdateStageValidation['body'] ): Promise<LSPPassthroughOrderUpdateStageValidation['response']> {
|
|
167
|
+
return await this.http.request<LSPPassthroughOrderUpdateStageValidation['response']>({
|
|
168
|
+
url: `/lsp/hubs/${hubId}/passthrough/${reference}/stage`,
|
|
169
|
+
method: 'PUT',
|
|
170
|
+
body
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
async updatePassthroughStatus( hubId: string, reference: string, body: LSPPassthroughOrderUpdateStatusValidation['body'] ): Promise<LSPPassthroughOrderUpdateStatusValidation['response']> {
|
|
175
|
+
return await this.http.request<LSPPassthroughOrderUpdateStatusValidation['response']>({
|
|
176
|
+
url: `/lsp/hubs/${hubId}/passthrough/${reference}/status`,
|
|
177
|
+
method: 'PUT',
|
|
178
|
+
body
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
async assignPassthrough( hubId: string, reference: string, body: LSPPassthroughOrderAssignValidation['body'] ): Promise<LSPPassthroughOrderAssignValidation['response']> {
|
|
183
|
+
return await this.http.request<LSPPassthroughOrderAssignValidation['response']>({
|
|
184
|
+
url: `/lsp/hubs/${hubId}/passthrough/${reference}/assign`,
|
|
185
|
+
method: 'PATCH',
|
|
186
|
+
body
|
|
187
|
+
})
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
async removePassthrough( hubId: string, reference: string ): Promise<APIResponseBase> {
|
|
191
|
+
return await this.http.request<APIResponseBase>({
|
|
192
|
+
url: `/lsp/hubs/${hubId}/passthrough/${reference}`,
|
|
193
|
+
method: 'DELETE'
|
|
194
|
+
})
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// ── Sorting ───────────────────────────────────────────────────────────────
|
|
198
|
+
|
|
199
|
+
async createSortingJob( hubId: string, body: LSPSortValidation['body'] ): Promise<LSPSortValidation['response']> {
|
|
200
|
+
return await this.http.request<LSPSortValidation['response']>({
|
|
201
|
+
url: `/lsp/hubs/${hubId}/sorting`,
|
|
202
|
+
method: 'POST',
|
|
203
|
+
body
|
|
204
|
+
})
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
async listSortingJobs( hubId: string, querystring?: LSPSortingListValidation['querystring'] ): Promise<LSPSortingListValidation['response']> {
|
|
208
|
+
return await this.http.request<LSPSortingListValidation['response']>({
|
|
209
|
+
url: `/lsp/hubs/${hubId}/sorting${qs( querystring )}`,
|
|
210
|
+
method: 'GET'
|
|
211
|
+
})
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
async getSortingStats( hubId: string, querystring?: LSPSortingStatsValidation['querystring'] ): Promise<LSPSortingStatsValidation['response']> {
|
|
215
|
+
return await this.http.request<LSPSortingStatsValidation['response']>({
|
|
216
|
+
url: `/lsp/hubs/${hubId}/sorting/stats${qs( querystring )}`,
|
|
217
|
+
method: 'GET'
|
|
218
|
+
})
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// ── Cross-docking ─────────────────────────────────────────────────────────
|
|
222
|
+
|
|
223
|
+
async initiateCrossDock( hubId: string, body: LSPCrossDockInitiateValidation['body'] ): Promise<LSPCrossDockInitiateValidation['response']> {
|
|
224
|
+
return await this.http.request<LSPCrossDockInitiateValidation['response']>({
|
|
225
|
+
url: `/lsp/hubs/${hubId}/crossdock/initiate`,
|
|
226
|
+
method: 'POST',
|
|
227
|
+
body
|
|
228
|
+
})
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
async completeCrossDock( hubId: string, body: LSPCrossDockCompleteValidation['body'] ): Promise<LSPCrossDockCompleteValidation['response']> {
|
|
232
|
+
return await this.http.request<LSPCrossDockCompleteValidation['response']>({
|
|
233
|
+
url: `/lsp/hubs/${hubId}/crossdock/complete`,
|
|
234
|
+
method: 'POST',
|
|
235
|
+
body
|
|
236
|
+
})
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
async getCrossDockStats( hubId: string, querystring?: LSPCrossDockStatsValidation['querystring'] ): Promise<LSPCrossDockStatsValidation['response']> {
|
|
240
|
+
return await this.http.request<LSPCrossDockStatsValidation['response']>({
|
|
241
|
+
url: `/lsp/hubs/${hubId}/crossdock/stats${qs( querystring )}`,
|
|
242
|
+
method: 'GET'
|
|
243
|
+
})
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { AccessOptions } from '../../types/access'
|
|
2
|
+
import SharedContextClient from '../Shared/context'
|
|
3
|
+
import SharedBuckets from '../Shared/buckets'
|
|
4
|
+
import SharedOperators from '../Shared/operators'
|
|
5
|
+
import LSPAgents from './agents'
|
|
6
|
+
import LSPCarriers from './carriers'
|
|
7
|
+
import LSPFleets from './fleets'
|
|
8
|
+
import LSPHubs from './hubs'
|
|
9
|
+
import LSPWarehouses from './warehouses'
|
|
10
|
+
import LSPPods from './pods'
|
|
11
|
+
import LSPOrders from './orders'
|
|
12
|
+
import LSPPricing from './pricing'
|
|
13
|
+
import LSPOperations from './operations'
|
|
14
|
+
|
|
15
|
+
export type LSPConfig = {
|
|
16
|
+
context: string
|
|
17
|
+
accessToken: string
|
|
18
|
+
env?: 'dev' | 'staging' | 'prod'
|
|
19
|
+
platform?: 'web' | 'mobile' | 'server' | 'proxy'
|
|
20
|
+
remoteOrigin?: string
|
|
21
|
+
/** Per-request deadline in ms. See `AccessOptions.timeout`. */
|
|
22
|
+
timeout?: number
|
|
23
|
+
/** Explicit service origin, overriding the env table. See `AccessOptions.baseUrl`. */
|
|
24
|
+
baseUrl?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
28
|
+
//
|
|
29
|
+
// LSP: Logistics Service Provider API — de.arch /lsp routes.
|
|
30
|
+
// Covers agents, orders, coverage, inventory, pricing, services, and more.
|
|
31
|
+
// Shared faqs/users/account/invitation come from SharedContextClient.
|
|
32
|
+
//
|
|
33
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
34
|
+
|
|
35
|
+
export default class LSP extends SharedContextClient<'LSP'> {
|
|
36
|
+
readonly buckets: SharedBuckets
|
|
37
|
+
readonly operators: SharedOperators<'LSP'>
|
|
38
|
+
readonly agents: LSPAgents
|
|
39
|
+
readonly carriers: LSPCarriers
|
|
40
|
+
readonly fleets: LSPFleets
|
|
41
|
+
readonly hubs: LSPHubs
|
|
42
|
+
readonly warehouses: LSPWarehouses
|
|
43
|
+
readonly pods: LSPPods
|
|
44
|
+
readonly orders: LSPOrders
|
|
45
|
+
readonly pricing: LSPPricing
|
|
46
|
+
readonly operations: LSPOperations
|
|
47
|
+
|
|
48
|
+
constructor( config: LSPConfig ){
|
|
49
|
+
if( !config.context ) throw new Error('Undefined context. See https://doc.dedot.io/sdk/lsp')
|
|
50
|
+
if( !config.accessToken ) throw new Error('Undefined accessToken. See https://doc.dedot.io/sdk/auth')
|
|
51
|
+
|
|
52
|
+
const access: AccessOptions = {
|
|
53
|
+
context: config.context,
|
|
54
|
+
accessToken: config.accessToken,
|
|
55
|
+
env: config.env || 'dev',
|
|
56
|
+
platform: config.platform || 'proxy',
|
|
57
|
+
remoteOrigin: config.remoteOrigin,
|
|
58
|
+
timeout: config.timeout,
|
|
59
|
+
baseUrl: config.baseUrl
|
|
60
|
+
}
|
|
61
|
+
super( access, 'LSP' )
|
|
62
|
+
|
|
63
|
+
this.buckets = new SharedBuckets( this, 'LSP' )
|
|
64
|
+
this.operators = new SharedOperators( this, 'LSP' )
|
|
65
|
+
this.agents = new LSPAgents( this )
|
|
66
|
+
this.carriers = new LSPCarriers( this )
|
|
67
|
+
this.fleets = new LSPFleets( this )
|
|
68
|
+
this.hubs = new LSPHubs( this )
|
|
69
|
+
this.warehouses = new LSPWarehouses( this )
|
|
70
|
+
this.pods = new LSPPods( this )
|
|
71
|
+
this.orders = new LSPOrders( this )
|
|
72
|
+
this.pricing = new LSPPricing( this )
|
|
73
|
+
this.operations = new LSPOperations( this )
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
LSPInventoryCreateValidation,
|
|
3
|
+
LSPInventoryFetchValidation,
|
|
4
|
+
LSPInventoryRetrieveValidation,
|
|
5
|
+
LSPInventoryUpdateValidation,
|
|
6
|
+
LSPInventoryAdjustValidation,
|
|
7
|
+
LSPInventoryRemoveValidation
|
|
8
|
+
} from '@de./types/inventory'
|
|
9
|
+
import { qs, type Http, type Res, type Data } from '../../utils'
|
|
10
|
+
|
|
11
|
+
// ── LSP Facility Inventory ──────────────────────────────────────────────────────
|
|
12
|
+
//
|
|
13
|
+
// Dual-mounted under hubs and warehouses: /lsp/{hubs|warehouses}/:id/inventory
|
|
14
|
+
// Instantiated per facility segment; each method takes the facility id.
|
|
15
|
+
//
|
|
16
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
export default class LSPFacilityInventory {
|
|
19
|
+
constructor( private http: Http, private segment: 'hubs' | 'warehouses' ){}
|
|
20
|
+
|
|
21
|
+
async create( facilityId: string, body: LSPInventoryCreateValidation['body'] ): Promise<LSPInventoryCreateValidation['response']> {
|
|
22
|
+
return await this.http.request<LSPInventoryCreateValidation['response']>({
|
|
23
|
+
url: `/lsp/${this.segment}/${facilityId}/inventory/create`,
|
|
24
|
+
method: 'POST',
|
|
25
|
+
body
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
async list( facilityId: string, querystring?: LSPInventoryFetchValidation['querystring'] ): Promise<LSPInventoryFetchValidation['response']> {
|
|
30
|
+
return await this.http.request<LSPInventoryFetchValidation['response']>({
|
|
31
|
+
url: `/lsp/${this.segment}/${facilityId}/inventory${qs( querystring )}`,
|
|
32
|
+
method: 'GET'
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async retrieve( facilityId: string, itemId: string ): Promise<LSPInventoryRetrieveValidation['response']> {
|
|
37
|
+
return await this.http.request<LSPInventoryRetrieveValidation['response']>({
|
|
38
|
+
url: `/lsp/${this.segment}/${facilityId}/inventory/${itemId}`,
|
|
39
|
+
method: 'GET'
|
|
40
|
+
})
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async update( facilityId: string, itemId: string, body: LSPInventoryUpdateValidation['body'] ): Promise<LSPInventoryUpdateValidation['response']> {
|
|
44
|
+
return await this.http.request<LSPInventoryUpdateValidation['response']>({
|
|
45
|
+
url: `/lsp/${this.segment}/${facilityId}/inventory/${itemId}`,
|
|
46
|
+
method: 'PATCH',
|
|
47
|
+
body
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async adjust( facilityId: string, itemId: string, body: LSPInventoryAdjustValidation['body'] ): Promise<LSPInventoryAdjustValidation['response']> {
|
|
52
|
+
return await this.http.request<LSPInventoryAdjustValidation['response']>({
|
|
53
|
+
url: `/lsp/${this.segment}/${facilityId}/inventory/${itemId}/adjust`,
|
|
54
|
+
method: 'POST',
|
|
55
|
+
body
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async remove( facilityId: string, itemId: string ): Promise<LSPInventoryRemoveValidation['response']> {
|
|
60
|
+
return await this.http.request<LSPInventoryRemoveValidation['response']>({
|
|
61
|
+
url: `/lsp/${this.segment}/${facilityId}/inventory/${itemId}`,
|
|
62
|
+
method: 'DELETE'
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import type { APIResponseBase } from '@de./types'
|
|
2
|
+
import type {
|
|
3
|
+
LSPScoreOriginValidation,
|
|
4
|
+
LSPScoreAgentValidation,
|
|
5
|
+
LSPReportsInventoryValidation,
|
|
6
|
+
LSPReportsOperationsValidation,
|
|
7
|
+
LSPReportsFacilityValidation,
|
|
8
|
+
LSPReportsTasksValidation,
|
|
9
|
+
LSPRallyConfigRetrieveValidation,
|
|
10
|
+
LSPRallyConfigUpdateValidation,
|
|
11
|
+
LSPRallyConfigResetValidation,
|
|
12
|
+
LSPRallyConfigResetKeyValidation
|
|
13
|
+
} from '@de./types/lsp/operations'
|
|
14
|
+
import type {
|
|
15
|
+
LSPZoneListValidation,
|
|
16
|
+
LSPZoneDensityValidation,
|
|
17
|
+
LSPZoneCreateValidation,
|
|
18
|
+
LSPZoneUpdateStatusValidation,
|
|
19
|
+
LSPZoneRemoveValidation
|
|
20
|
+
} from '@de./types/lsp/zones'
|
|
21
|
+
import type {
|
|
22
|
+
LSPGraphGetPoiValidation,
|
|
23
|
+
LSPGraphRegisterPoiValidation,
|
|
24
|
+
LSPGraphNearestValidation,
|
|
25
|
+
LSPGraphLandmarksValidation
|
|
26
|
+
} from '@de./types/lsp/graph'
|
|
27
|
+
import LSPCoverage from './coverage'
|
|
28
|
+
import { qs, type Http, type Res, type Data } from '../../utils'
|
|
29
|
+
|
|
30
|
+
// ── LSP Operations ────────────────────────────────────────────────────────────
|
|
31
|
+
|
|
32
|
+
export default class LSPOperations {
|
|
33
|
+
readonly coverage: LSPCoverage
|
|
34
|
+
|
|
35
|
+
constructor( private http: Http ){
|
|
36
|
+
this.coverage = new LSPCoverage( this.http )
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// ── Rally Config ──────────────────────────────────────────────────────────
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* How the rally engine is tuned for this workspace.
|
|
43
|
+
*
|
|
44
|
+
* `config` is everything in force, platform defaults included; `overrides`
|
|
45
|
+
* is only what this workspace has set, which is the answer to "what did we
|
|
46
|
+
* change"; `describe` says the same thing knob by knob with the provenance
|
|
47
|
+
* and scope of each, so a surprising value can be traced without guessing.
|
|
48
|
+
*/
|
|
49
|
+
async getRallyConfig(): Promise<LSPRallyConfigRetrieveValidation['response']> {
|
|
50
|
+
return await this.http.request<LSPRallyConfigRetrieveValidation['response']>({
|
|
51
|
+
url: '/lsp/rally/config',
|
|
52
|
+
method: 'GET'
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Set one or more knobs for this workspace.
|
|
58
|
+
*
|
|
59
|
+
* A partial body — only the keys sent are touched. Keys the engine holds at
|
|
60
|
+
* process scope are rejected rather than silently ignored, since a setting
|
|
61
|
+
* that appears to take and does nothing is worse than a refusal.
|
|
62
|
+
*/
|
|
63
|
+
async updateRallyConfig( body: LSPRallyConfigUpdateValidation['body'] ): Promise<LSPRallyConfigUpdateValidation['response']> {
|
|
64
|
+
return await this.http.request<LSPRallyConfigUpdateValidation['response']>({
|
|
65
|
+
url: '/lsp/rally/config',
|
|
66
|
+
method: 'PATCH',
|
|
67
|
+
body
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Put one knob back to the platform default, leaving the rest tuned. */
|
|
72
|
+
async resetRallyConfigKey( key: string ): Promise<LSPRallyConfigResetKeyValidation['response']> {
|
|
73
|
+
return await this.http.request<LSPRallyConfigResetKeyValidation['response']>({
|
|
74
|
+
url: `/lsp/rally/config/${key}`,
|
|
75
|
+
method: 'DELETE'
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Drop every override this workspace holds. */
|
|
80
|
+
async resetRallyConfig(): Promise<LSPRallyConfigResetValidation['response']> {
|
|
81
|
+
return await this.http.request<LSPRallyConfigResetValidation['response']>({
|
|
82
|
+
url: '/lsp/rally/config',
|
|
83
|
+
method: 'DELETE'
|
|
84
|
+
})
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ── Zones ─────────────────────────────────────────────────────────────────
|
|
88
|
+
|
|
89
|
+
async createZone( body: LSPZoneCreateValidation['body'] ): Promise<LSPZoneCreateValidation['response']> {
|
|
90
|
+
return await this.http.request<LSPZoneCreateValidation['response']>({
|
|
91
|
+
url: '/lsp/zones',
|
|
92
|
+
method: 'POST',
|
|
93
|
+
body
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
async listZones( querystring?: LSPZoneListValidation['querystring'] ): Promise<LSPZoneListValidation['response']> {
|
|
98
|
+
return await this.http.request<LSPZoneListValidation['response']>({
|
|
99
|
+
url: `/lsp/zones${qs( querystring )}`,
|
|
100
|
+
method: 'GET'
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
async getZoneDensity( id: string ): Promise<LSPZoneDensityValidation['response']> {
|
|
105
|
+
return await this.http.request<LSPZoneDensityValidation['response']>({
|
|
106
|
+
url: `/lsp/zones/${id}/density`,
|
|
107
|
+
method: 'GET'
|
|
108
|
+
})
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async updateZoneStatus( id: string, body: LSPZoneUpdateStatusValidation['body'] ): Promise<LSPZoneUpdateStatusValidation['response']> {
|
|
112
|
+
return await this.http.request<LSPZoneUpdateStatusValidation['response']>({
|
|
113
|
+
url: `/lsp/zones/${id}/status`,
|
|
114
|
+
method: 'PATCH',
|
|
115
|
+
body
|
|
116
|
+
})
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
async removeZone( id: string ): Promise<APIResponseBase> {
|
|
120
|
+
return await this.http.request<APIResponseBase>({
|
|
121
|
+
url: `/lsp/zones/${id}`,
|
|
122
|
+
method: 'DELETE'
|
|
123
|
+
})
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// ── Graph ─────────────────────────────────────────────────────────────────
|
|
127
|
+
|
|
128
|
+
async getGraphPoi( externalId: string ): Promise<LSPGraphGetPoiValidation['response']> {
|
|
129
|
+
return await this.http.request<LSPGraphGetPoiValidation['response']>({
|
|
130
|
+
url: `/lsp/graph/poi/${externalId}`,
|
|
131
|
+
method: 'GET'
|
|
132
|
+
})
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
async registerGraphPoi( body: LSPGraphRegisterPoiValidation['body'] ): Promise<LSPGraphRegisterPoiValidation['response']> {
|
|
136
|
+
return await this.http.request<LSPGraphRegisterPoiValidation['response']>({
|
|
137
|
+
url: '/lsp/graph/poi',
|
|
138
|
+
method: 'POST',
|
|
139
|
+
body
|
|
140
|
+
})
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
async getNearestGraph( querystring: LSPGraphNearestValidation['querystring'] ): Promise<LSPGraphNearestValidation['response']> {
|
|
144
|
+
return await this.http.request<LSPGraphNearestValidation['response']>({
|
|
145
|
+
url: `/lsp/graph/nearest${qs( querystring )}`,
|
|
146
|
+
method: 'GET'
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
async getGraphLandmarks(): Promise<LSPGraphLandmarksValidation['response']> {
|
|
151
|
+
return await this.http.request<LSPGraphLandmarksValidation['response']>({
|
|
152
|
+
url: '/lsp/graph/landmarks',
|
|
153
|
+
method: 'GET'
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// ── Score ─────────────────────────────────────────────────────────────────
|
|
158
|
+
|
|
159
|
+
async getOriginScore( senderId: string ): Promise<LSPScoreOriginValidation['response']> {
|
|
160
|
+
return await this.http.request<LSPScoreOriginValidation['response']>({
|
|
161
|
+
url: `/lsp/score/origin/${senderId}`,
|
|
162
|
+
method: 'GET'
|
|
163
|
+
})
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
async getAgentScore( agentId: string ): Promise<LSPScoreAgentValidation['response']> {
|
|
167
|
+
return await this.http.request<LSPScoreAgentValidation['response']>({
|
|
168
|
+
url: `/lsp/score/agent/${agentId}`,
|
|
169
|
+
method: 'GET'
|
|
170
|
+
})
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// ── Reports ───────────────────────────────────────────────────────────────
|
|
174
|
+
|
|
175
|
+
async getInventoryReport( querystring?: LSPReportsInventoryValidation['querystring'] ): Promise<LSPReportsInventoryValidation['response']> {
|
|
176
|
+
return await this.http.request<LSPReportsInventoryValidation['response']>({
|
|
177
|
+
url: `/lsp/reports/inventory${qs( querystring )}`,
|
|
178
|
+
method: 'GET'
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
async getOperationsReport( querystring?: LSPReportsOperationsValidation['querystring'] ): Promise<LSPReportsOperationsValidation['response']> {
|
|
183
|
+
return await this.http.request<LSPReportsOperationsValidation['response']>({
|
|
184
|
+
url: `/lsp/reports/operations${qs( querystring )}`,
|
|
185
|
+
method: 'GET'
|
|
186
|
+
})
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
async getFacilityReport( querystring?: LSPReportsFacilityValidation['querystring'] ): Promise<LSPReportsFacilityValidation['response']> {
|
|
190
|
+
return await this.http.request<LSPReportsFacilityValidation['response']>({
|
|
191
|
+
url: `/lsp/reports/facility${qs( querystring )}`,
|
|
192
|
+
method: 'GET'
|
|
193
|
+
})
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
async getTasksReport( querystring?: LSPReportsTasksValidation['querystring'] ): Promise<LSPReportsTasksValidation['response']> {
|
|
197
|
+
return await this.http.request<LSPReportsTasksValidation['response']>({
|
|
198
|
+
url: `/lsp/reports/tasks${qs( querystring )}`,
|
|
199
|
+
method: 'GET'
|
|
200
|
+
})
|
|
201
|
+
}
|
|
202
|
+
}
|