@burdenoff/microfe-movethewheels 2026.710.1 → 2026.713.1
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/movethewheels/services/createSandboxAssistantTransport.d.ts +20 -4
- package/dist/services/createSandboxAssistantTransport.js +7 -28
- package/package.json +2 -2
- package/src/movethewheels/services/createSandboxAssistantTransport.ts +23 -58
- package/dist/src/generated/wspace-operations.js +0 -793
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
import { AssistantTransport } from '@burdenoff/fe-libs/shared/components';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* movethewheels adapter for the shared fe-libs AssistantWidget transport.
|
|
3
|
+
*
|
|
4
|
+
* The sandbox lifecycle + poll/stream loop now lives in
|
|
5
|
+
* `@burdenoff/fe-libs/shared/assistant` (one implementation for all products);
|
|
6
|
+
* this is a thin wrapper. The exported name/shape are unchanged so app-shell
|
|
7
|
+
* imports don't move. The public return type is a LOCALLY-declared structural
|
|
8
|
+
* mirror — never re-export fe-libs types (vite-plugin-dts path rewriting).
|
|
6
9
|
*/
|
|
10
|
+
interface AssistantSendArgs {
|
|
11
|
+
prompt: string;
|
|
12
|
+
onProgress: (partialText: string) => void;
|
|
13
|
+
signal: AbortSignal;
|
|
14
|
+
}
|
|
15
|
+
export interface AssistantTransport {
|
|
16
|
+
sendPrompt: (args: AssistantSendArgs) => Promise<{
|
|
17
|
+
text: string;
|
|
18
|
+
}>;
|
|
19
|
+
prewarm?: (level?: 'probe' | 'full') => void;
|
|
20
|
+
suspend?: () => void;
|
|
21
|
+
}
|
|
7
22
|
export declare function useSandboxAssistantTransport(): AssistantTransport;
|
|
23
|
+
export {};
|
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCallback as t, useMemo as n } from "react";
|
|
3
|
-
import { useGatewayClient as r } from "@burdenoff/fe-libs/shared/graphql";
|
|
4
|
-
import { useAuthToken as i } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
1
|
+
import { useSandboxAssistantTransport as e } from "@burdenoff/fe-libs/shared/assistant";
|
|
5
2
|
//#region src/movethewheels/services/createSandboxAssistantTransport.ts
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
query: e,
|
|
12
|
-
variables: { question: t },
|
|
13
|
-
context: { headers: {
|
|
14
|
-
...i ? { "x-workspace-id": i } : {},
|
|
15
|
-
...o ? { authorization: `Bearer ${o}` } : {},
|
|
16
|
-
...s ? { "x-workspace-authorization": `Bearer ${s}` } : {}
|
|
17
|
-
} }
|
|
18
|
-
});
|
|
19
|
-
if (r.aborted) throw Error("Cancelled");
|
|
20
|
-
let l = c.data?.assistantInsights?.answer;
|
|
21
|
-
if (typeof l != "string" || l.length === 0) throw Error("The assistant returned an empty response. Please try again.");
|
|
22
|
-
return n(l), { text: l };
|
|
23
|
-
}, [
|
|
24
|
-
a,
|
|
25
|
-
o,
|
|
26
|
-
s
|
|
27
|
-
]);
|
|
28
|
-
return n(() => ({ sendPrompt: c }), [c]);
|
|
3
|
+
function t() {
|
|
4
|
+
return e({
|
|
5
|
+
product: "movethewheels",
|
|
6
|
+
enableCredits: !0
|
|
7
|
+
});
|
|
29
8
|
}
|
|
30
9
|
//#endregion
|
|
31
|
-
export {
|
|
10
|
+
export { t as useSandboxAssistantTransport };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-movethewheels",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.713.1",
|
|
4
4
|
"description": "Burdenoff MoveTheWheels Microfrontend - Logistics & Supply Chain Management Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@apollo/client": "^4.0.11",
|
|
47
|
-
"@burdenoff/fe-libs": "2026.
|
|
47
|
+
"@burdenoff/fe-libs": "2026.713.6",
|
|
48
48
|
"@react-leaflet/core": "^3.0.0",
|
|
49
49
|
"@tanstack/react-query": "^5.90.16",
|
|
50
50
|
"clsx": "^2.1.1",
|
|
@@ -1,67 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* movethewheels adapter for the shared fe-libs AssistantWidget transport.
|
|
3
3
|
*
|
|
4
|
-
* The
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* MoveTheWheels onboards sandbox-backed agentic actions.
|
|
4
|
+
* The sandbox lifecycle + poll/stream loop now lives in
|
|
5
|
+
* `@burdenoff/fe-libs/shared/assistant` (one implementation for all products);
|
|
6
|
+
* this is a thin wrapper. The exported name/shape are unchanged so app-shell
|
|
7
|
+
* imports don't move. The public return type is a LOCALLY-declared structural
|
|
8
|
+
* mirror — never re-export fe-libs types (vite-plugin-dts path rewriting).
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
|
-
import {
|
|
13
|
-
import { useGatewayClient } from '@burdenoff/fe-libs/shared/graphql';
|
|
14
|
-
import { useAuthToken } from '@burdenoff/fe-libs/shared/providers/shell';
|
|
15
|
-
import {
|
|
16
|
-
GetAssistantInsightsDocument,
|
|
17
|
-
type GetAssistantInsightsQuery,
|
|
18
|
-
} from '../../generated/wspace-operations';
|
|
19
|
-
import type { AssistantTransport, AssistantSendArgs } from '@burdenoff/fe-libs/shared/components';
|
|
11
|
+
import { useSandboxAssistantTransport as useSharedTransport } from '@burdenoff/fe-libs/shared/assistant';
|
|
20
12
|
|
|
21
|
-
/**
|
|
22
|
-
* Returns a memoized `AssistantTransport` wired to MoveTheWheels'
|
|
23
|
-
* `assistantInsights` GraphQL query.
|
|
24
|
-
*/
|
|
25
|
-
export function useSandboxAssistantTransport(): AssistantTransport {
|
|
26
|
-
const apollo = useGatewayClient('workspace');
|
|
27
|
-
const { accessToken, workspaceToken } = useAuthToken();
|
|
28
|
-
|
|
29
|
-
const sendPrompt = useCallback(
|
|
30
|
-
async ({ prompt, onProgress, signal }: AssistantSendArgs): Promise<{ text: string }> => {
|
|
31
|
-
const workspaceId = new URLSearchParams(window.location.search).get('workspace') ?? undefined;
|
|
32
|
-
|
|
33
|
-
if (signal.aborted) {
|
|
34
|
-
throw new Error('Cancelled');
|
|
35
|
-
}
|
|
36
13
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
...(workspaceId ? { 'x-workspace-id': workspaceId } : {}),
|
|
43
|
-
...(accessToken ? { authorization: `Bearer ${accessToken}` } : {}),
|
|
44
|
-
...(workspaceToken ? { 'x-workspace-authorization': `Bearer ${workspaceToken}` } : {}),
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
if (signal.aborted) {
|
|
50
|
-
throw new Error('Cancelled');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const answer = result.data?.assistantInsights?.answer;
|
|
54
|
-
if (typeof answer !== 'string' || answer.length === 0) {
|
|
55
|
-
throw new Error('The assistant returned an empty response. Please try again.');
|
|
56
|
-
}
|
|
14
|
+
interface AssistantSendArgs {
|
|
15
|
+
prompt: string;
|
|
16
|
+
onProgress: (partialText: string) => void;
|
|
17
|
+
signal: AbortSignal;
|
|
18
|
+
}
|
|
57
19
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
[apollo, accessToken, workspaceToken]
|
|
64
|
-
);
|
|
20
|
+
export interface AssistantTransport {
|
|
21
|
+
sendPrompt: (args: AssistantSendArgs) => Promise<{ text: string }>;
|
|
22
|
+
prewarm?: (level?: 'probe' | 'full') => void;
|
|
23
|
+
suspend?: () => void;
|
|
24
|
+
}
|
|
65
25
|
|
|
66
|
-
|
|
26
|
+
export function useSandboxAssistantTransport(): AssistantTransport {
|
|
27
|
+
return useSharedTransport({
|
|
28
|
+
product: 'movethewheels',
|
|
29
|
+
|
|
30
|
+
enableCredits: true,
|
|
31
|
+
});
|
|
67
32
|
}
|
|
@@ -1,793 +0,0 @@
|
|
|
1
|
-
import { gql as e } from "@apollo/client";
|
|
2
|
-
import "@apollo/client/react";
|
|
3
|
-
//#region src/generated/wspace-operations.ts
|
|
4
|
-
var t = e`
|
|
5
|
-
fragment MovethewheelsOrderCore on MovethewheelsOrder {
|
|
6
|
-
id
|
|
7
|
-
orderNumber
|
|
8
|
-
orderType
|
|
9
|
-
status
|
|
10
|
-
priority
|
|
11
|
-
customerId
|
|
12
|
-
trackingNumber
|
|
13
|
-
pickupAddress
|
|
14
|
-
deliveryAddress
|
|
15
|
-
items
|
|
16
|
-
pricing
|
|
17
|
-
scheduledDelivery
|
|
18
|
-
vehicleId
|
|
19
|
-
driverId
|
|
20
|
-
createdAt
|
|
21
|
-
updatedAt
|
|
22
|
-
}
|
|
23
|
-
`, n = e`
|
|
24
|
-
fragment CustomerCore on Customer {
|
|
25
|
-
id
|
|
26
|
-
name
|
|
27
|
-
email
|
|
28
|
-
phone
|
|
29
|
-
type
|
|
30
|
-
company
|
|
31
|
-
address
|
|
32
|
-
rating
|
|
33
|
-
createdAt
|
|
34
|
-
updatedAt
|
|
35
|
-
}
|
|
36
|
-
`, r = e`
|
|
37
|
-
fragment ProductCore on Product {
|
|
38
|
-
id
|
|
39
|
-
sku
|
|
40
|
-
name
|
|
41
|
-
description
|
|
42
|
-
category
|
|
43
|
-
brand
|
|
44
|
-
dimensions
|
|
45
|
-
weight
|
|
46
|
-
value
|
|
47
|
-
hazardous
|
|
48
|
-
fragile
|
|
49
|
-
temperatureControlled
|
|
50
|
-
createdAt
|
|
51
|
-
updatedAt
|
|
52
|
-
}
|
|
53
|
-
`, i = e`
|
|
54
|
-
fragment VehicleCore on Vehicle {
|
|
55
|
-
id
|
|
56
|
-
vehicleNumber
|
|
57
|
-
make
|
|
58
|
-
model
|
|
59
|
-
year
|
|
60
|
-
licensePlate
|
|
61
|
-
type
|
|
62
|
-
ownershipType
|
|
63
|
-
capacity
|
|
64
|
-
status
|
|
65
|
-
currentLocation
|
|
66
|
-
fuelLevel
|
|
67
|
-
mileage
|
|
68
|
-
createdAt
|
|
69
|
-
updatedAt
|
|
70
|
-
}
|
|
71
|
-
`, a = e`
|
|
72
|
-
fragment DriverCore on Driver {
|
|
73
|
-
id
|
|
74
|
-
employeeId
|
|
75
|
-
firstName
|
|
76
|
-
lastName
|
|
77
|
-
phone
|
|
78
|
-
email
|
|
79
|
-
licenseNumber
|
|
80
|
-
licenseClass
|
|
81
|
-
licenseExpiry
|
|
82
|
-
status
|
|
83
|
-
currentLocation
|
|
84
|
-
rating
|
|
85
|
-
userId
|
|
86
|
-
vehicleId
|
|
87
|
-
createdAt
|
|
88
|
-
updatedAt
|
|
89
|
-
}
|
|
90
|
-
`, o = e`
|
|
91
|
-
fragment WarehouseCore on Warehouse {
|
|
92
|
-
id
|
|
93
|
-
name
|
|
94
|
-
code
|
|
95
|
-
type
|
|
96
|
-
address
|
|
97
|
-
contactInfo
|
|
98
|
-
operatingHours
|
|
99
|
-
capabilities
|
|
100
|
-
status
|
|
101
|
-
totalCapacity
|
|
102
|
-
usedCapacity
|
|
103
|
-
createdAt
|
|
104
|
-
updatedAt
|
|
105
|
-
}
|
|
106
|
-
`, s = e`
|
|
107
|
-
fragment InventoryItemCore on InventoryItem {
|
|
108
|
-
id
|
|
109
|
-
productId
|
|
110
|
-
warehouseId
|
|
111
|
-
locationId
|
|
112
|
-
onHand
|
|
113
|
-
available
|
|
114
|
-
allocated
|
|
115
|
-
damaged
|
|
116
|
-
unitCost
|
|
117
|
-
reorderPoint
|
|
118
|
-
safetyStock
|
|
119
|
-
createdAt
|
|
120
|
-
updatedAt
|
|
121
|
-
}
|
|
122
|
-
`, c = e`
|
|
123
|
-
fragment RouteCore on Route {
|
|
124
|
-
id
|
|
125
|
-
name
|
|
126
|
-
status
|
|
127
|
-
shipmentId
|
|
128
|
-
vehicleId
|
|
129
|
-
driverId
|
|
130
|
-
waypoints
|
|
131
|
-
estimatedDistance
|
|
132
|
-
estimatedDuration
|
|
133
|
-
actualDistance
|
|
134
|
-
actualDuration
|
|
135
|
-
fuelCost
|
|
136
|
-
createdAt
|
|
137
|
-
updatedAt
|
|
138
|
-
}
|
|
139
|
-
`, l = e`
|
|
140
|
-
fragment ShipmentCore on Shipment {
|
|
141
|
-
id
|
|
142
|
-
shipmentNumber
|
|
143
|
-
orderId
|
|
144
|
-
customerId
|
|
145
|
-
carrierId
|
|
146
|
-
status
|
|
147
|
-
origin
|
|
148
|
-
destination
|
|
149
|
-
cargoDetails
|
|
150
|
-
trackingNumber
|
|
151
|
-
estimatedDelivery
|
|
152
|
-
actualDelivery
|
|
153
|
-
createdAt
|
|
154
|
-
updatedAt
|
|
155
|
-
}
|
|
156
|
-
`, u = e`
|
|
157
|
-
fragment ServiceProviderCore on ServiceProvider {
|
|
158
|
-
id
|
|
159
|
-
name
|
|
160
|
-
type
|
|
161
|
-
description
|
|
162
|
-
rating
|
|
163
|
-
contactInfo
|
|
164
|
-
services
|
|
165
|
-
isVerified
|
|
166
|
-
isActive
|
|
167
|
-
createdAt
|
|
168
|
-
updatedAt
|
|
169
|
-
}
|
|
170
|
-
`, d = e`
|
|
171
|
-
fragment ServiceOfferingCore on ServiceOffering {
|
|
172
|
-
id
|
|
173
|
-
providerId
|
|
174
|
-
name
|
|
175
|
-
description
|
|
176
|
-
category
|
|
177
|
-
price
|
|
178
|
-
currency
|
|
179
|
-
availability
|
|
180
|
-
createdAt
|
|
181
|
-
updatedAt
|
|
182
|
-
}
|
|
183
|
-
`, f = e`
|
|
184
|
-
fragment MovethewheelsReportCore on MovethewheelsReport {
|
|
185
|
-
id
|
|
186
|
-
name
|
|
187
|
-
type
|
|
188
|
-
description
|
|
189
|
-
schedule
|
|
190
|
-
lastGenerated
|
|
191
|
-
configuration
|
|
192
|
-
status
|
|
193
|
-
createdAt
|
|
194
|
-
updatedAt
|
|
195
|
-
}
|
|
196
|
-
`;
|
|
197
|
-
e`
|
|
198
|
-
mutation CreateCustomer($input: CreateCustomerInput!) {
|
|
199
|
-
createCustomer(input: $input) {
|
|
200
|
-
...CustomerCore
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
${n}`, e`
|
|
204
|
-
mutation UpdateCustomer($id: ID!, $input: UpdateCustomerInput!) {
|
|
205
|
-
updateCustomer(id: $id, input: $input) {
|
|
206
|
-
...CustomerCore
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
${n}`, e`
|
|
210
|
-
mutation DeleteCustomer($id: ID!) {
|
|
211
|
-
deleteCustomer(id: $id)
|
|
212
|
-
}
|
|
213
|
-
`, e`
|
|
214
|
-
mutation CreateProduct($input: CreateProductInput!) {
|
|
215
|
-
createProduct(input: $input) {
|
|
216
|
-
...ProductCore
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
${r}`, e`
|
|
220
|
-
mutation UpdateProduct($id: ID!, $input: UpdateProductInput!) {
|
|
221
|
-
updateProduct(id: $id, input: $input) {
|
|
222
|
-
...ProductCore
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
${r}`, e`
|
|
226
|
-
mutation DeleteProduct($id: ID!) {
|
|
227
|
-
deleteProduct(id: $id)
|
|
228
|
-
}
|
|
229
|
-
`, e`
|
|
230
|
-
mutation CreateVehicle($input: CreateVehicleInput!) {
|
|
231
|
-
createVehicle(input: $input) {
|
|
232
|
-
...VehicleCore
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
${i}`, e`
|
|
236
|
-
mutation UpdateVehicle($id: ID!, $input: UpdateVehicleInput!) {
|
|
237
|
-
updateVehicle(id: $id, input: $input) {
|
|
238
|
-
...VehicleCore
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
${i}`, e`
|
|
242
|
-
mutation UpdateVehicleStatus($id: ID!, $status: VehicleStatus!) {
|
|
243
|
-
updateVehicleStatus(id: $id, status: $status) {
|
|
244
|
-
...VehicleCore
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
${i}`, e`
|
|
248
|
-
mutation UpdateVehicleLocation($id: ID!, $location: JSON!) {
|
|
249
|
-
updateVehicleLocation(id: $id, location: $location) {
|
|
250
|
-
...VehicleCore
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
${i}`, e`
|
|
254
|
-
mutation DeleteVehicle($id: ID!) {
|
|
255
|
-
deleteVehicle(id: $id)
|
|
256
|
-
}
|
|
257
|
-
`, e`
|
|
258
|
-
mutation CreateDriver($input: CreateDriverInput!) {
|
|
259
|
-
createDriver(input: $input) {
|
|
260
|
-
...DriverCore
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
${a}`, e`
|
|
264
|
-
mutation UpdateDriver($id: ID!, $input: UpdateDriverInput!) {
|
|
265
|
-
updateDriver(id: $id, input: $input) {
|
|
266
|
-
...DriverCore
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
${a}`, e`
|
|
270
|
-
mutation UpdateDriverStatus($id: ID!, $status: DriverStatus!) {
|
|
271
|
-
updateDriverStatus(id: $id, status: $status) {
|
|
272
|
-
...DriverCore
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
${a}`, e`
|
|
276
|
-
mutation AssignDriverVehicle($id: ID!, $vehicleId: ID) {
|
|
277
|
-
assignDriverVehicle(id: $id, vehicleId: $vehicleId) {
|
|
278
|
-
...DriverCore
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
${a}`, e`
|
|
282
|
-
mutation DeleteDriver($id: ID!) {
|
|
283
|
-
deleteDriver(id: $id)
|
|
284
|
-
}
|
|
285
|
-
`, e`
|
|
286
|
-
mutation CreateWarehouse($input: CreateWarehouseInput!) {
|
|
287
|
-
createWarehouse(input: $input) {
|
|
288
|
-
...WarehouseCore
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
${o}`, e`
|
|
292
|
-
mutation UpdateWarehouse($id: ID!, $input: UpdateWarehouseInput!) {
|
|
293
|
-
updateWarehouse(id: $id, input: $input) {
|
|
294
|
-
...WarehouseCore
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
${o}`, e`
|
|
298
|
-
mutation DeleteWarehouse($id: ID!) {
|
|
299
|
-
deleteWarehouse(id: $id)
|
|
300
|
-
}
|
|
301
|
-
`, e`
|
|
302
|
-
mutation CreateInventoryItem($input: CreateInventoryItemInput!) {
|
|
303
|
-
createInventoryItem(input: $input) {
|
|
304
|
-
...InventoryItemCore
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
${s}`, e`
|
|
308
|
-
mutation UpdateInventoryItem($id: ID!, $input: UpdateInventoryItemInput!) {
|
|
309
|
-
updateInventoryItem(id: $id, input: $input) {
|
|
310
|
-
...InventoryItemCore
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
${s}`, e`
|
|
314
|
-
mutation AdjustInventoryStock($input: AdjustInventoryStockInput!) {
|
|
315
|
-
adjustInventoryStock(input: $input) {
|
|
316
|
-
...InventoryItemCore
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
${s}`, e`
|
|
320
|
-
mutation DeleteInventoryItem($id: ID!) {
|
|
321
|
-
deleteInventoryItem(id: $id)
|
|
322
|
-
}
|
|
323
|
-
`, e`
|
|
324
|
-
mutation CreateRoute($input: CreateRouteInput!) {
|
|
325
|
-
createRoute(input: $input) {
|
|
326
|
-
...RouteCore
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
${c}`, e`
|
|
330
|
-
mutation UpdateRoute($id: ID!, $input: UpdateRouteInput!) {
|
|
331
|
-
updateRoute(id: $id, input: $input) {
|
|
332
|
-
...RouteCore
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
${c}`, e`
|
|
336
|
-
mutation OptimizeRoute($id: ID!) {
|
|
337
|
-
optimizeRoute(id: $id) {
|
|
338
|
-
...RouteCore
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
${c}`, e`
|
|
342
|
-
mutation DeleteRoute($id: ID!) {
|
|
343
|
-
deleteRoute(id: $id)
|
|
344
|
-
}
|
|
345
|
-
`, e`
|
|
346
|
-
mutation CreateShipment($input: CreateShipmentInput!) {
|
|
347
|
-
createShipment(input: $input) {
|
|
348
|
-
...ShipmentCore
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
${l}`, e`
|
|
352
|
-
mutation UpdateShipment($id: ID!, $input: UpdateShipmentInput!) {
|
|
353
|
-
updateShipment(id: $id, input: $input) {
|
|
354
|
-
...ShipmentCore
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
${l}`, e`
|
|
358
|
-
mutation DeleteShipment($id: ID!) {
|
|
359
|
-
deleteShipment(id: $id)
|
|
360
|
-
}
|
|
361
|
-
`, e`
|
|
362
|
-
mutation AddTrackingEvent($input: AddTrackingEventInput!) {
|
|
363
|
-
addTrackingEvent(input: $input) {
|
|
364
|
-
id
|
|
365
|
-
shipmentId
|
|
366
|
-
eventType
|
|
367
|
-
location
|
|
368
|
-
details
|
|
369
|
-
timestamp
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
`, e`
|
|
373
|
-
mutation CreateServiceProvider($input: CreateServiceProviderInput!) {
|
|
374
|
-
createServiceProvider(input: $input) {
|
|
375
|
-
...ServiceProviderCore
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
${u}`, e`
|
|
379
|
-
mutation UpdateServiceProvider($id: ID!, $input: UpdateServiceProviderInput!) {
|
|
380
|
-
updateServiceProvider(id: $id, input: $input) {
|
|
381
|
-
...ServiceProviderCore
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
${u}`, e`
|
|
385
|
-
mutation DeleteServiceProvider($id: ID!) {
|
|
386
|
-
deleteServiceProvider(id: $id)
|
|
387
|
-
}
|
|
388
|
-
`, e`
|
|
389
|
-
mutation CreateServiceOffering($input: CreateServiceOfferingInput!) {
|
|
390
|
-
createServiceOffering(input: $input) {
|
|
391
|
-
...ServiceOfferingCore
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
${d}`, e`
|
|
395
|
-
mutation UpdateServiceOffering($id: ID!, $input: UpdateServiceOfferingInput!) {
|
|
396
|
-
updateServiceOffering(id: $id, input: $input) {
|
|
397
|
-
...ServiceOfferingCore
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
${d}`, e`
|
|
401
|
-
mutation DeleteServiceOffering($id: ID!) {
|
|
402
|
-
deleteServiceOffering(id: $id)
|
|
403
|
-
}
|
|
404
|
-
`, e`
|
|
405
|
-
mutation CreateMovethewheelsReport($input: CreateMovethewheelsReportInput!) {
|
|
406
|
-
createMovethewheelsReport(input: $input) {
|
|
407
|
-
...MovethewheelsReportCore
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
${f}`, e`
|
|
411
|
-
mutation UpdateMovethewheelsReport($id: ID!, $input: UpdateMovethewheelsReportInput!) {
|
|
412
|
-
updateMovethewheelsReport(id: $id, input: $input) {
|
|
413
|
-
...MovethewheelsReportCore
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
${f}`, e`
|
|
417
|
-
mutation DeleteMovethewheelsReport($id: ID!) {
|
|
418
|
-
deleteMovethewheelsReport(id: $id)
|
|
419
|
-
}
|
|
420
|
-
`, e`
|
|
421
|
-
mutation GenerateMovethewheelsReport($input: GenerateMovethewheelsReportInput!) {
|
|
422
|
-
generateMovethewheelsReport(input: $input) {
|
|
423
|
-
generatedAt
|
|
424
|
-
result
|
|
425
|
-
report {
|
|
426
|
-
...MovethewheelsReportCore
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
${f}`, e`
|
|
431
|
-
mutation ImportMovethewheelsData($input: MovethewheelsImportDataInput!) {
|
|
432
|
-
importData(input: $input) {
|
|
433
|
-
success
|
|
434
|
-
message
|
|
435
|
-
payload
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
`, e`
|
|
439
|
-
mutation ExportMovethewheelsData($input: MovethewheelsExportDataInput!) {
|
|
440
|
-
exportData(input: $input) {
|
|
441
|
-
success
|
|
442
|
-
message
|
|
443
|
-
payload
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
`, e`
|
|
447
|
-
mutation UpdateMovethewheelsModuleSettings($input: UpdateMovethewheelsModuleSettingsInput!) {
|
|
448
|
-
updateModuleSettings(input: $input) {
|
|
449
|
-
workspaceId
|
|
450
|
-
preferences
|
|
451
|
-
updatedAt
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
`, e`
|
|
455
|
-
mutation CreateMovethewheelsOrder($input: CreateOrderInput!) {
|
|
456
|
-
createMovethewheelsOrder(input: $input) {
|
|
457
|
-
...MovethewheelsOrderCore
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
${t}`, e`
|
|
461
|
-
mutation UpdateMovethewheelsOrder($id: ID!, $input: UpdateOrderInput!) {
|
|
462
|
-
updateMovethewheelsOrder(id: $id, input: $input) {
|
|
463
|
-
...MovethewheelsOrderCore
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
${t}`, e`
|
|
467
|
-
mutation UpdateMovethewheelsOrderStatus($id: ID!, $input: UpdateOrderStatusInput!) {
|
|
468
|
-
updateMovethewheelsOrderStatus(id: $id, input: $input) {
|
|
469
|
-
...MovethewheelsOrderCore
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
${t}`, e`
|
|
473
|
-
mutation DeleteMovethewheelsOrder($id: ID!) {
|
|
474
|
-
deleteMovethewheelsOrder(id: $id)
|
|
475
|
-
}
|
|
476
|
-
`, e`
|
|
477
|
-
query GetMovethewheelsDashboard {
|
|
478
|
-
dashboardMetrics {
|
|
479
|
-
totalOrders
|
|
480
|
-
activeDeliveries
|
|
481
|
-
availableDrivers
|
|
482
|
-
activeVehicles
|
|
483
|
-
lowStockItems
|
|
484
|
-
totalRevenue
|
|
485
|
-
recentOrders {
|
|
486
|
-
...MovethewheelsOrderCore
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
orderStats {
|
|
490
|
-
total
|
|
491
|
-
pending
|
|
492
|
-
inTransit
|
|
493
|
-
delivered
|
|
494
|
-
cancelled
|
|
495
|
-
failed
|
|
496
|
-
}
|
|
497
|
-
fleetStats {
|
|
498
|
-
totalVehicles
|
|
499
|
-
activeVehicles
|
|
500
|
-
inTransitVehicles
|
|
501
|
-
maintenanceVehicles
|
|
502
|
-
totalDrivers
|
|
503
|
-
availableDrivers
|
|
504
|
-
onDeliveryDrivers
|
|
505
|
-
}
|
|
506
|
-
financeMetrics {
|
|
507
|
-
fuelCost
|
|
508
|
-
openInvoices
|
|
509
|
-
revenue {
|
|
510
|
-
totalRevenue
|
|
511
|
-
averageOrderValue
|
|
512
|
-
deliveredRevenue
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
analytics {
|
|
516
|
-
deliveryTrend {
|
|
517
|
-
label
|
|
518
|
-
value
|
|
519
|
-
}
|
|
520
|
-
orderTrend {
|
|
521
|
-
label
|
|
522
|
-
value
|
|
523
|
-
}
|
|
524
|
-
revenueTrend {
|
|
525
|
-
label
|
|
526
|
-
value
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
${t}`;
|
|
531
|
-
var p = e`
|
|
532
|
-
query GetAssistantInsights($question: String!) {
|
|
533
|
-
assistantInsights(question: $question) {
|
|
534
|
-
question
|
|
535
|
-
answer
|
|
536
|
-
generatedAt
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
`;
|
|
540
|
-
e`
|
|
541
|
-
query ListCustomers($filter: CustomerFilterInput, $pagination: PaginationInput) {
|
|
542
|
-
customers(filter: $filter, pagination: $pagination) {
|
|
543
|
-
...CustomerCore
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
${n}`, e`
|
|
547
|
-
query GetCustomer($id: ID!) {
|
|
548
|
-
customer(id: $id) {
|
|
549
|
-
...CustomerCore
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
${n}`, e`
|
|
553
|
-
query ListProducts($filter: ProductFilterInput, $pagination: PaginationInput) {
|
|
554
|
-
products(filter: $filter, pagination: $pagination) {
|
|
555
|
-
...ProductCore
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
${r}`, e`
|
|
559
|
-
query GetProduct($id: ID!) {
|
|
560
|
-
product(id: $id) {
|
|
561
|
-
...ProductCore
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
${r}`, e`
|
|
565
|
-
query ListVehicles($filter: VehicleFilterInput, $pagination: PaginationInput) {
|
|
566
|
-
vehicles(filter: $filter, pagination: $pagination) {
|
|
567
|
-
...VehicleCore
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
${i}`, e`
|
|
571
|
-
query GetVehicle($id: ID!) {
|
|
572
|
-
vehicle(id: $id) {
|
|
573
|
-
...VehicleCore
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
${i}`, e`
|
|
577
|
-
query ListDrivers($filter: DriverFilterInput, $pagination: PaginationInput) {
|
|
578
|
-
drivers(filter: $filter, pagination: $pagination) {
|
|
579
|
-
...DriverCore
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
${a}`, e`
|
|
583
|
-
query GetDriver($id: ID!) {
|
|
584
|
-
driver(id: $id) {
|
|
585
|
-
...DriverCore
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
${a}`, e`
|
|
589
|
-
query ListWarehouses($filter: WarehouseFilterInput, $pagination: PaginationInput) {
|
|
590
|
-
warehouses(filter: $filter, pagination: $pagination) {
|
|
591
|
-
...WarehouseCore
|
|
592
|
-
locations {
|
|
593
|
-
id
|
|
594
|
-
locationCode
|
|
595
|
-
zone
|
|
596
|
-
aisle
|
|
597
|
-
rack
|
|
598
|
-
shelf
|
|
599
|
-
bin
|
|
600
|
-
locationType
|
|
601
|
-
capacity
|
|
602
|
-
status
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
${o}`, e`
|
|
607
|
-
query GetWarehouse($id: ID!) {
|
|
608
|
-
warehouse(id: $id) {
|
|
609
|
-
...WarehouseCore
|
|
610
|
-
locations {
|
|
611
|
-
id
|
|
612
|
-
locationCode
|
|
613
|
-
zone
|
|
614
|
-
aisle
|
|
615
|
-
rack
|
|
616
|
-
shelf
|
|
617
|
-
bin
|
|
618
|
-
locationType
|
|
619
|
-
capacity
|
|
620
|
-
status
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
${o}`, e`
|
|
625
|
-
query ListInventoryItems($filter: InventoryFilterInput, $pagination: PaginationInput) {
|
|
626
|
-
inventoryItems(filter: $filter, pagination: $pagination) {
|
|
627
|
-
...InventoryItemCore
|
|
628
|
-
product {
|
|
629
|
-
id
|
|
630
|
-
name
|
|
631
|
-
sku
|
|
632
|
-
category
|
|
633
|
-
}
|
|
634
|
-
warehouse {
|
|
635
|
-
id
|
|
636
|
-
name
|
|
637
|
-
code
|
|
638
|
-
type
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
${s}`, e`
|
|
643
|
-
query GetInventoryStats {
|
|
644
|
-
inventoryStats {
|
|
645
|
-
totalOnHand
|
|
646
|
-
totalAvailable
|
|
647
|
-
totalAllocated
|
|
648
|
-
totalDamaged
|
|
649
|
-
lowStockCount
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
`, e`
|
|
653
|
-
query ListRoutes($filter: RouteFilterInput, $pagination: PaginationInput) {
|
|
654
|
-
routes(filter: $filter, pagination: $pagination) {
|
|
655
|
-
...RouteCore
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
${c}`, e`
|
|
659
|
-
query GetRoute($id: ID!) {
|
|
660
|
-
route(id: $id) {
|
|
661
|
-
...RouteCore
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
${c}`, e`
|
|
665
|
-
query ListShipments($filter: ShipmentFilterInput, $pagination: PaginationInput) {
|
|
666
|
-
shipments(filter: $filter, pagination: $pagination) {
|
|
667
|
-
...ShipmentCore
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
${l}`, e`
|
|
671
|
-
query GetShipment($id: ID!) {
|
|
672
|
-
shipment(id: $id) {
|
|
673
|
-
...ShipmentCore
|
|
674
|
-
trackingEvents {
|
|
675
|
-
id
|
|
676
|
-
eventType
|
|
677
|
-
location
|
|
678
|
-
details
|
|
679
|
-
timestamp
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
${l}`, e`
|
|
684
|
-
query GetOrderTracking($orderId: ID!) {
|
|
685
|
-
orderTracking(orderId: $orderId) {
|
|
686
|
-
id
|
|
687
|
-
shipmentId
|
|
688
|
-
eventType
|
|
689
|
-
location
|
|
690
|
-
details
|
|
691
|
-
timestamp
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
`, e`
|
|
695
|
-
query GetActiveDeliveries {
|
|
696
|
-
activeDeliveries {
|
|
697
|
-
...ShipmentCore
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
${l}`, e`
|
|
701
|
-
query GetTrackingAlerts {
|
|
702
|
-
trackingAlerts {
|
|
703
|
-
shipmentId
|
|
704
|
-
shipmentNumber
|
|
705
|
-
alertType
|
|
706
|
-
message
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
`, e`
|
|
710
|
-
query ListServiceProviders($filter: ServiceProviderFilterInput, $pagination: PaginationInput) {
|
|
711
|
-
serviceProviders(filter: $filter, pagination: $pagination) {
|
|
712
|
-
...ServiceProviderCore
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
${u}`, e`
|
|
716
|
-
query ListServiceOfferings($filter: ServiceOfferingFilterInput, $pagination: PaginationInput) {
|
|
717
|
-
serviceOfferings(filter: $filter, pagination: $pagination) {
|
|
718
|
-
...ServiceOfferingCore
|
|
719
|
-
provider {
|
|
720
|
-
id
|
|
721
|
-
name
|
|
722
|
-
type
|
|
723
|
-
rating
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
${d}`, e`
|
|
728
|
-
query ListMovethewheelsReports($filter: MovethewheelsReportFilterInput, $pagination: PaginationInput) {
|
|
729
|
-
movethewheelsReports(filter: $filter, pagination: $pagination) {
|
|
730
|
-
...MovethewheelsReportCore
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
${f}`, e`
|
|
734
|
-
query GetMovethewheelsReport($id: ID!) {
|
|
735
|
-
movethewheelsReport(id: $id) {
|
|
736
|
-
...MovethewheelsReportCore
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
${f}`, e`
|
|
740
|
-
query GetMovethewheelsModuleSettings {
|
|
741
|
-
moduleSettings {
|
|
742
|
-
workspaceId
|
|
743
|
-
preferences
|
|
744
|
-
updatedAt
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
`, e`
|
|
748
|
-
query ListMovethewheelsOrders($filter: OrderFilterInput, $pagination: PaginationInput) {
|
|
749
|
-
movethewheelsOrders(filter: $filter, pagination: $pagination) {
|
|
750
|
-
...MovethewheelsOrderCore
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
${t}`, e`
|
|
754
|
-
query GetMovethewheelsOrder($id: ID!) {
|
|
755
|
-
movethewheelsOrder(id: $id) {
|
|
756
|
-
...MovethewheelsOrderCore
|
|
757
|
-
customer {
|
|
758
|
-
id
|
|
759
|
-
name
|
|
760
|
-
email
|
|
761
|
-
phone
|
|
762
|
-
}
|
|
763
|
-
vehicle {
|
|
764
|
-
id
|
|
765
|
-
vehicleNumber
|
|
766
|
-
type
|
|
767
|
-
status
|
|
768
|
-
}
|
|
769
|
-
driver {
|
|
770
|
-
id
|
|
771
|
-
firstName
|
|
772
|
-
lastName
|
|
773
|
-
status
|
|
774
|
-
}
|
|
775
|
-
statusHistory {
|
|
776
|
-
id
|
|
777
|
-
status
|
|
778
|
-
previousStatus
|
|
779
|
-
notes
|
|
780
|
-
location
|
|
781
|
-
createdAt
|
|
782
|
-
}
|
|
783
|
-
shipment {
|
|
784
|
-
id
|
|
785
|
-
shipmentNumber
|
|
786
|
-
status
|
|
787
|
-
trackingNumber
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
${t}`;
|
|
792
|
-
//#endregion
|
|
793
|
-
export { p as GetAssistantInsightsDocument };
|