@compassdigital/sdk.typescript 4.754.0 → 4.755.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.
|
@@ -8,9 +8,17 @@ export interface UpdateOrderStatusCommand {
|
|
|
8
8
|
};
|
|
9
9
|
payload: {
|
|
10
10
|
orderId: string;
|
|
11
|
-
status: 'accepted' | 'in_progress' | 'ready' | 'out_for_delivery' | 'delivered' | 'collected' | 'no_show' | 'see_kitchen' | 'dropoff_leave_warning';
|
|
11
|
+
status: 'accepted' | 'in_progress' | 'ready' | 'out_for_delivery' | 'delivered' | 'collected' | 'no_show' | 'cancelled' | 'see_kitchen' | 'dropoff_leave_warning';
|
|
12
12
|
reason?: string;
|
|
13
13
|
updateSource: string;
|
|
14
|
+
delivery?: {
|
|
15
|
+
status: string;
|
|
16
|
+
partnerStatus: string;
|
|
17
|
+
robotName?: string | null;
|
|
18
|
+
etaAt?: string | null;
|
|
19
|
+
leaveTimeAt?: string | null;
|
|
20
|
+
[index: string]: any;
|
|
21
|
+
};
|
|
14
22
|
};
|
|
15
23
|
source: string;
|
|
16
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateOrderStatusCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/UpdateOrderStatusCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EACH,UAAU,GACV,aAAa,GACb,OAAO,GACP,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,SAAS,GACT,aAAa,GACb,uBAAuB,CAAC;QAE3B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"UpdateOrderStatusCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/UpdateOrderStatusCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EACH,UAAU,GACV,aAAa,GACb,OAAO,GACP,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,SAAS,GACT,WAAW,GACX,aAAa,GACb,uBAAuB,CAAC;QAE3B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QAErB,QAAQ,CAAC,EAAE;YAEV,MAAM,EAAE,MAAM,CAAC;YAEf,aAAa,EAAE,MAAM,CAAC;YAEtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEtB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAC5B,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;SACrB,CAAC;KACF,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
|
package/package.json
CHANGED
|
@@ -18,11 +18,26 @@ export interface UpdateOrderStatusCommand {
|
|
|
18
18
|
| 'delivered'
|
|
19
19
|
| 'collected'
|
|
20
20
|
| 'no_show'
|
|
21
|
+
| 'cancelled'
|
|
21
22
|
| 'see_kitchen'
|
|
22
23
|
| 'dropoff_leave_warning';
|
|
23
24
|
// Reason if the status is see_kitchen
|
|
24
25
|
reason?: string;
|
|
25
26
|
updateSource: string;
|
|
27
|
+
// Latest delivery record snapshot at the time of the status change. Deep-merged into order.meta.delivery, so a field that no longer applies must be sent as an explicit null rather than omitted.
|
|
28
|
+
delivery?: {
|
|
29
|
+
// Guest-facing delivery status
|
|
30
|
+
status: string;
|
|
31
|
+
// Raw delivery partner status, e.g. AVride
|
|
32
|
+
partnerStatus: string;
|
|
33
|
+
// Name of the assigned robot, null once the delivery reaches a terminal status
|
|
34
|
+
robotName?: string | null;
|
|
35
|
+
// ISO 8601 estimated arrival, null unless the delivery is out for delivery or returning
|
|
36
|
+
etaAt?: string | null;
|
|
37
|
+
// ISO 8601 time the robot leaves the drop-off point (drop-off arrival plus the discard window), null before it arrives
|
|
38
|
+
leaveTimeAt?: string | null;
|
|
39
|
+
[index: string]: any;
|
|
40
|
+
};
|
|
26
41
|
};
|
|
27
42
|
source: string;
|
|
28
43
|
}
|