@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.
- package/lib/index.d.ts +260 -136
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +271 -136
- package/lib/index.js.map +1 -1
- package/lib/interface/delivery.d.ts +73 -0
- package/lib/interface/delivery.d.ts.map +1 -0
- package/lib/interface/delivery.js +4 -0
- package/lib/interface/delivery.js.map +1 -0
- package/lib/interface/menu.d.ts +299 -169
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +10 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +682 -353
- package/src/interface/delivery.ts +101 -0
- package/src/interface/menu.ts +476 -247
- package/src/interface/order.ts +21 -0
package/src/interface/order.ts
CHANGED
|
@@ -105,16 +105,29 @@ export interface Order {
|
|
|
105
105
|
out_for_delivery?: boolean;
|
|
106
106
|
delivered?: boolean;
|
|
107
107
|
checkin_order?: boolean;
|
|
108
|
+
no_show?: boolean;
|
|
108
109
|
};
|
|
109
110
|
date?: {
|
|
111
|
+
// Date order was accepted into our system and shown on kitchen apps
|
|
110
112
|
accepted?: string;
|
|
111
113
|
created?: string;
|
|
112
114
|
modified?: string;
|
|
115
|
+
// Date kitchen should start preparation ideally(not mandatory)
|
|
113
116
|
should_start?: string;
|
|
117
|
+
// Date kitchen should be half way preparation ideally(not mandatory)
|
|
114
118
|
completion_warning?: string;
|
|
119
|
+
// Date kitchen finished preparation
|
|
115
120
|
ready?: string;
|
|
121
|
+
// Date kitchen started preparation
|
|
116
122
|
started?: string;
|
|
123
|
+
// Date till which show orders as active
|
|
117
124
|
show_as_active_until?: string;
|
|
125
|
+
// For delivery orders - date customer did not pick the order
|
|
126
|
+
no_show?: string;
|
|
127
|
+
// For delivery orders - date order was delivered to destination(not picked by user)
|
|
128
|
+
delivered?: string;
|
|
129
|
+
// For delivery orders - date order was picked up from station for delivery(out_for_delivery)
|
|
130
|
+
pickup?: string;
|
|
118
131
|
};
|
|
119
132
|
pickup?: string;
|
|
120
133
|
pickup_name?: string;
|
|
@@ -161,6 +174,14 @@ export interface Order {
|
|
|
161
174
|
};
|
|
162
175
|
// Indicate whether the order is active or inactive
|
|
163
176
|
active?: boolean;
|
|
177
|
+
// Delivery details
|
|
178
|
+
delivery?: {
|
|
179
|
+
// provider
|
|
180
|
+
provider?: string;
|
|
181
|
+
tracker_url?: string;
|
|
182
|
+
loading_code?: string;
|
|
183
|
+
[index: string]: any;
|
|
184
|
+
};
|
|
164
185
|
[index: string]: any;
|
|
165
186
|
};
|
|
166
187
|
issue?: Issue;
|