@compassdigital/sdk.typescript 3.45.0 → 3.45.2

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.
@@ -0,0 +1,101 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ import { RequestQuery, BaseRequest } from "./util";
4
+
5
+ export interface Error {
6
+ message?: string;
7
+ code?: number;
8
+ }
9
+
10
+ export interface Delivery {
11
+ // starship delivery job
12
+ id?: string;
13
+ // order id
14
+ order_id?: string;
15
+ date?: {
16
+ created?: string;
17
+ modified?: string;
18
+ CONFIRMED?: string;
19
+ ENROUTE_LOADING_AREA?: string;
20
+ ARRIVING_LOADING_AREA?: string;
21
+ WAITING_LOADING?: string;
22
+ LOADING?: string;
23
+ ENROUTE_CUSTOMER?: string;
24
+ ARRIVING_CUSTOMER?: string;
25
+ WAITING_CUSTOMER?: string;
26
+ UNLOADING?: string;
27
+ COMPLETED?: string;
28
+ CANCELLED?: string;
29
+ CUSTOMER_NO_SHOW?: string;
30
+ NO_SHOW_DEADLINE?: string;
31
+ };
32
+ assigned_robot?: {
33
+ name?: string;
34
+ heading?: number;
35
+ arrivedDestinationAt?: string;
36
+ coordinates?: {
37
+ lat?: number;
38
+ lng?: number;
39
+ };
40
+ };
41
+ drop_off_location?: {
42
+ // drop off location cd id
43
+ id?: string;
44
+ // starship delivery location id
45
+ starship_id?: string;
46
+ name?: string;
47
+ coordinates?: {
48
+ lat?: number;
49
+ lng?: number;
50
+ };
51
+ };
52
+ eta?: {
53
+ loadingAt?: string;
54
+ destinationAt?: string;
55
+ };
56
+ customer?: string;
57
+ loading_code?: string;
58
+ state?: string;
59
+ state_reason?: string;
60
+ tracker_url?: string;
61
+ }
62
+
63
+ // GET /delivery/{id}/order/{order_id} - get delivery for order
64
+
65
+ export interface GetDeliveryOrderPath {
66
+ // delivery provider id
67
+ id: string;
68
+ // order id
69
+ order_id: string;
70
+ }
71
+
72
+ export interface GetDeliveryOrderQuery {
73
+ // Graphql query string
74
+ _query?: string;
75
+ }
76
+
77
+ export type GetDeliveryOrderResponse = Delivery;
78
+
79
+ export interface GetDeliveryOrderRequest
80
+ extends BaseRequest,
81
+ RequestQuery<GetDeliveryOrderQuery>,
82
+ GetDeliveryOrderPath {}
83
+
84
+ // GET /delivery/{id} - Get all Deliveries for delivery provider
85
+
86
+ export interface GetDeliveryPath {
87
+ // delivery provider id
88
+ id: string;
89
+ }
90
+
91
+ export interface GetDeliveryQuery {
92
+ // Graphql query string
93
+ _query?: string;
94
+ }
95
+
96
+ export type GetDeliveryResponse = Delivery;
97
+
98
+ export interface GetDeliveryRequest
99
+ extends BaseRequest,
100
+ RequestQuery<GetDeliveryQuery>,
101
+ GetDeliveryPath {}