|
1 | 1 | package onfleet |
2 | 2 |
|
3 | | -type TasksPaginated struct { |
4 | | - LastId string `json:"lastId,omitempty"` |
5 | | - Tasks []Task `json:"tasks"` |
6 | | -} |
7 | | - |
8 | 3 | type Task struct { |
9 | 4 | AdditionalQuantities TaskAdditionalQuantities `json:"additionalQuantities"` |
10 | 5 | Appearance TaskAppearance `json:"appearance"` |
@@ -45,6 +40,11 @@ type Task struct { |
45 | 40 | Worker *string `json:"worker"` |
46 | 41 | } |
47 | 42 |
|
| 43 | +type TasksPaginated struct { |
| 44 | + LastId string `json:"lastId,omitempty"` |
| 45 | + Tasks []Task `json:"tasks"` |
| 46 | +} |
| 47 | + |
48 | 48 | type TaskState int |
49 | 49 |
|
50 | 50 | const ( |
@@ -245,7 +245,7 @@ type TaskListQueryParams struct { |
245 | 245 | From int64 `json:"from,omitempty,string"` |
246 | 246 | To int64 `json:"to,omitempty,string"` |
247 | 247 | // Used for pagination |
248 | | - LastID string `json:"lastId,omitempty"` |
| 248 | + LastId string `json:"lastId,omitempty"` |
249 | 249 | Worker string `json:"worker,omitempty"` |
250 | 250 | CompleteBeforeBefore int64 `json:"completeBeforeBefore,omitempty,string"` |
251 | 251 | CompleteAfterAfter int64 `json:"completeAfterAfter,omitempty,string"` |
|
0 commit comments