Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Commit 0790121

Browse files
naszzzNastassy Zagorov
andauthored
taskqueryparams LastID to LastId (#14)
* lasID - lastId * task query params LastID to LastId --------- Co-authored-by: Nastassy Zagorov <nzagorov@onfleet.com>
1 parent fc86425 commit 0790121

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [0.3.1](https://github.com/onfleet/gonfleet/compare/v0.3.0...v0.3.1) - 2023-04-06
4+
* Change
5+
* `TaskListQueryParams` field `LastID` to `LastId`
6+
37
## [0.3.0](https://github.com/onfleet/gonfleet/compare/v0.2.3...v0.3.0) - 2023-04-06
48
* Add
59
* task `List`

task.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
package onfleet
22

3-
type TasksPaginated struct {
4-
LastId string `json:"lastId,omitempty"`
5-
Tasks []Task `json:"tasks"`
6-
}
7-
83
type Task struct {
94
AdditionalQuantities TaskAdditionalQuantities `json:"additionalQuantities"`
105
Appearance TaskAppearance `json:"appearance"`
@@ -45,6 +40,11 @@ type Task struct {
4540
Worker *string `json:"worker"`
4641
}
4742

43+
type TasksPaginated struct {
44+
LastId string `json:"lastId,omitempty"`
45+
Tasks []Task `json:"tasks"`
46+
}
47+
4848
type TaskState int
4949

5050
const (
@@ -245,7 +245,7 @@ type TaskListQueryParams struct {
245245
From int64 `json:"from,omitempty,string"`
246246
To int64 `json:"to,omitempty,string"`
247247
// Used for pagination
248-
LastID string `json:"lastId,omitempty"`
248+
LastId string `json:"lastId,omitempty"`
249249
Worker string `json:"worker,omitempty"`
250250
CompleteBeforeBefore int64 `json:"completeBeforeBefore,omitempty,string"`
251251
CompleteAfterAfter int64 `json:"completeAfterAfter,omitempty,string"`

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ package version
22

33
const (
44
Name = "onfleet/gonfleet"
5-
Value = "0.3.0"
5+
Value = "0.3.1"
66
)

0 commit comments

Comments
 (0)