@compassdigital/sdk.typescript 4.13.0 → 4.15.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.
@@ -111,14 +111,7 @@ export interface TaskUpdate {
111
111
  order?: TaskOrder;
112
112
  pickup_details?: TaskLocation;
113
113
  dropoff_details?: TaskLocation;
114
- // Task Status
115
- status?:
116
- | "accepted"
117
- | "in_progress"
118
- | "ready"
119
- | "out_for_delivery"
120
- | "delivered"
121
- | "order_is_ready";
114
+ status?: TaskStatus;
122
115
  assignee?: string;
123
116
  // Any related metadata information about this Task
124
117
  meta?: {
@@ -162,6 +155,14 @@ export interface OrderIssue {
162
155
  };
163
156
  }
164
157
 
158
+ export type TaskStatus =
159
+ | "new"
160
+ | "in_progress"
161
+ | "ready"
162
+ | "out_for_delivery"
163
+ | "delivered"
164
+ | "order_is_ready";
165
+
165
166
  // POST /task/ - Create new Task
166
167
 
167
168
  export type PostTaskBody = TaskCreate;
@@ -276,7 +277,7 @@ export interface GetTaskAssigneePath {
276
277
 
277
278
  export interface GetTaskAssigneeQuery {
278
279
  // Task Status
279
- status?: "new" | "in_progress" | "ready" | "out_for_delivery" | "delivered" | "order_is_ready";
280
+ status?: string;
280
281
  // Task Location ID
281
282
  location_id?: string;
282
283
  // Filter tasks by their created date. Only return tasks that have a date greater than or equal to the date.
@@ -305,7 +306,7 @@ export interface GetTaskLocationBrandPath {
305
306
 
306
307
  export interface GetTaskLocationBrandQuery {
307
308
  // Task Status
308
- status?: "new" | "in_progress" | "ready" | "out_for_delivery" | "delivered" | "order_is_ready";
309
+ status?: string;
309
310
  // Task Location ID
310
311
  location_id?: string;
311
312
  // Filter tasks by their created date. Only return tasks that have a date greater than or equal to the date.
@@ -317,7 +318,7 @@ export interface GetTaskLocationBrandQuery {
317
318
  // Filter tasks by the action_time in pickup_details. Only return tasks that have a pickup_time date greater than or equal to the date.
318
319
  pickup_time?: number;
319
320
  // The type of task that will be searched on. The default is: 'bolter'
320
- query_type?: "kds" | "bolter";
321
+ query_type?: string;
321
322
  // Graphql query string
322
323
  _query?: string;
323
324
  }
@@ -338,7 +339,7 @@ export interface GetTaskLocationGroupPath {
338
339
 
339
340
  export interface GetTaskLocationGroupQuery {
340
341
  // Task Status
341
- status?: "new" | "in_progress" | "ready" | "out_for_delivery" | "delivered" | "order_is_ready";
342
+ status?: string;
342
343
  // Task Location ID
343
344
  location_id?: string;
344
345
  // Filter tasks by their created date. Only return tasks that have a date greater than or equal to the date.
@@ -350,7 +351,7 @@ export interface GetTaskLocationGroupQuery {
350
351
  // Filter tasks by the action_time in pickup_details. Only return tasks that have a pickup_time date greater than or equal to the date.
351
352
  pickup_time?: number;
352
353
  // The type of task that will be searched on. The default is: 'bolter'
353
- query_type?: "kds" | "bolter";
354
+ query_type?: string;
354
355
  // Graphql query string
355
356
  _query?: string;
356
357
  }