@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.
- package/lib/index.d.ts +10 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/calendar.d.ts +1 -1
- package/lib/interface/config.d.ts +1 -3
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/location.d.ts +6 -4
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +9 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +26 -2
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/report.d.ts +9 -0
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/task.d.ts +7 -6
- package/lib/interface/task.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/calendar.ts +1 -1
- package/src/interface/config.ts +1 -3
- package/src/interface/location.ts +6 -4
- package/src/interface/menu.ts +9 -0
- package/src/interface/partner.ts +29 -2
- package/src/interface/report.ts +18 -0
- package/src/interface/task.ts +14 -13
package/src/interface/task.ts
CHANGED
|
@@ -111,14 +111,7 @@ export interface TaskUpdate {
|
|
|
111
111
|
order?: TaskOrder;
|
|
112
112
|
pickup_details?: TaskLocation;
|
|
113
113
|
dropoff_details?: TaskLocation;
|
|
114
|
-
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
354
|
+
query_type?: string;
|
|
354
355
|
// Graphql query string
|
|
355
356
|
_query?: string;
|
|
356
357
|
}
|