From 7abd48d308cf6d99bd4a483e78cbda0c49efa861 Mon Sep 17 00:00:00 2001 From: Tristan Goers Date: Fri, 6 Oct 2023 14:02:34 -0800 Subject: [PATCH] v0.1.7 --- response/accessRoles.go | 2 +- response/account.go | 6 +++--- response/approvals.go | 2 +- response/asyncJob.go | 2 +- response/bookings.go | 10 +++++----- response/contacts.go | 2 +- response/customFields.go | 4 ++-- response/customItemTypes.go | 2 +- response/dataExport.go | 2 +- response/folders.go | 4 ++-- response/ids.go | 4 ++-- response/tasks.go | 4 ++-- response/users.go | 4 ++-- response/workflows.go | 2 +- 14 files changed, 25 insertions(+), 25 deletions(-) diff --git a/response/accessRoles.go b/response/accessRoles.go index 8e3877d..ae007d4 100644 --- a/response/accessRoles.go +++ b/response/accessRoles.go @@ -13,7 +13,7 @@ func AccessRolesFromJSON(data []byte) (AccessRoles, error) { type AccessRoles struct { Kind string `json:"kind"` Data []struct { - ID string `json:"id"` + Id string `json:"id"` Title string `json:"title"` Description string `json:"description"` } `json:"data"` diff --git a/response/account.go b/response/account.go index 5817f9f..cb432e6 100644 --- a/response/account.go +++ b/response/account.go @@ -11,7 +11,7 @@ func AccountFromJSON(data []byte) (Account, error) { type Account struct { Kind string `json:"kind"` Data []struct { - Id string `json:"id"` + Id string `json:"Id"` Name string `json:"name"` DateFormat string `json:"dateFormat"` FirstDayOfWeek string `json:"firstDayOfWeek"` @@ -30,8 +30,8 @@ type Account struct { Value string `json:"value"` } `json:"metadata"` CustomFields []struct { - ID string `json:"id"` - AccountID string `json:"accountId"` + Id string `json:"Id"` + AccountId string `json:"accountId"` Title string `json:"title"` Type string `json:"type"` SpaceId string `json:"spaceId"` diff --git a/response/approvals.go b/response/approvals.go index 32e1e71..9d9e4a1 100644 --- a/response/approvals.go +++ b/response/approvals.go @@ -32,7 +32,7 @@ type Approvals struct { AutoFinishOnReject bool `json:"autoFinishOnReject"` Finished bool `json:"finished"` FinisherId string `json:"finisherId"` - ID string `json:"id"` + Id string `json:"id"` Status string `json:"status"` FolderId string `json:"folderId,omitempty"` } `json:"data"` diff --git a/response/asyncJob.go b/response/asyncJob.go index 0cacf1a..ea7d0e9 100644 --- a/response/asyncJob.go +++ b/response/asyncJob.go @@ -20,7 +20,7 @@ type AsyncJob struct { ProcessedCount int `json:"processedCount"` Type string `json:"type"` Result struct { - FolderID string `json:"folderId"` + FolderId string `json:"folderId"` } `json:"result"` ErrorMessage string `json:"errorMessage"` } `json:"data"` diff --git a/response/bookings.go b/response/bookings.go index 8d4b6a5..9ab0a5f 100644 --- a/response/bookings.go +++ b/response/bookings.go @@ -13,9 +13,9 @@ func BookingsFromJSON(data []byte) (Bookings, error) { type Bookings struct { Kind string `json:"kind"` Data []struct { - ID string `json:"id"` - FolderID string `json:"folderId"` - ResponsibleID string `json:"responsibleId"` + Id string `json:"id"` + FolderId string `json:"folderId"` + ResponsibleId string `json:"responsibleId"` BookingDates struct { Duration int `json:"duration"` StartDate string `json:"startDate"` @@ -24,8 +24,8 @@ type Bookings struct { } `json:"bookingDates"` EffortAllocation struct { ResponsibleAllocation []struct { - UserID string `json:"userId"` - DailyAllocation []interface{} `json:"dailyAllocation"` + UserId string `json:"userId"` + DailyAllocation []interface{} `json:"dailyAllocation"` //? Unknown data type } `json:"responsibleAllocation"` Mode string `json:"mode"` TotalEffort int `json:"totalEffort"` diff --git a/response/contacts.go b/response/contacts.go index 927f03f..d09ff55 100644 --- a/response/contacts.go +++ b/response/contacts.go @@ -16,7 +16,7 @@ type Contacts struct { LastName string `json:"lastName,omitempty"` Type string `json:"type,omitempty"` Profiles []struct { - AccountID string `json:"accountId,omitempty"` + AccountId string `json:"accountId,omitempty"` Role string `json:"role,omitempty"` External bool `json:"external,omitempty"` Admin bool `json:"admin,omitempty"` diff --git a/response/customFields.go b/response/customFields.go index 66b7579..f1e80f7 100644 --- a/response/customFields.go +++ b/response/customFields.go @@ -11,8 +11,8 @@ func CustomFieldsFromJSON(data []byte) (CustomFields, error) { type CustomFields struct { Kind string `json:"kind"` Data []struct { - ID string `json:"id"` - AccountID string `json:"accountId"` + Id string `json:"id"` + AccountId string `json:"accountId"` Title string `json:"title"` Type string `json:"type"` SharedIds []interface{} `json:"sharedIds"` diff --git a/response/customItemTypes.go b/response/customItemTypes.go index 2f4b53d..34c9c3b 100644 --- a/response/customItemTypes.go +++ b/response/customItemTypes.go @@ -16,7 +16,7 @@ type CustomItemTypes struct { Id string `json:"id"` Title string `json:"title"` RelatedType string `json:"relatedType"` - SpaceID string `json:"spaceId"` + SpaceId string `json:"spaceId"` Description string `json:"description"` } `json:"data"` } \ No newline at end of file diff --git a/response/dataExport.go b/response/dataExport.go index 106eee5..f13c80c 100644 --- a/response/dataExport.go +++ b/response/dataExport.go @@ -22,7 +22,7 @@ type DataExport struct { } `json:"resources"` Alias string `json:"alias"` Columns []struct { - ID string `json:"id"` + Id string `json:"id"` Alias string `json:"alias"` DataType string `json:"dataType"` ForeignKey struct { diff --git a/response/folders.go b/response/folders.go index 356797d..4bf73d8 100644 --- a/response/folders.go +++ b/response/folders.go @@ -60,7 +60,7 @@ type Folders struct { Value string `json:"value,omitempty"` } `json:"metadata,omitempty"` CustomFields []struct { - ID string `json:"id,omitempty"` + Id string `json:"id,omitempty"` Value string `json:"value,omitempty"` } `json:"customFields,omitempty"` CustomColumnIds []string `json:"customColumnIds,omitempty"` @@ -72,7 +72,7 @@ type Folders struct { ProgressPercent float64 `json:"progressPercent,omitempty"` ProcessedCount int `json:"processedCount,omitempty"` Type string `json:"type,omitempty"` - Result interface{} `json:"result,omitempty"` + Result interface{} `json:"result,omitempty"` //? Unknown data type ErrorMessage string `json:"errorMessage,omitempty"` } `json:"data,omitempty"` } diff --git a/response/ids.go b/response/ids.go index 7b72b3c..746f882 100644 --- a/response/ids.go +++ b/response/ids.go @@ -11,7 +11,7 @@ func IDsFromJSON(data []byte) (IDs, error) { type IDs struct { Kind string `json:"kind"` Data []struct { - ID string `json:"id"` - APIV2ID string `json:"apiV2Id"` + Id string `json:"id"` + APIV2Id string `json:"apiV2Id"` } `json:"data"` } \ No newline at end of file diff --git a/response/tasks.go b/response/tasks.go index 078163b..a7d19af 100644 --- a/response/tasks.go +++ b/response/tasks.go @@ -53,7 +53,7 @@ type Tasks struct { Value string `json:"value,omitempty"` } `json:"metadata,omitempty"` CustomFields []struct { - ID string `json:"id,omitempty"` + Id string `json:"id,omitempty"` Value string `json:"value,omitempty"` } `json:"customFields,omitempty"` BillingType string `json:"billingType,omitempty"` @@ -70,7 +70,7 @@ type Tasks struct { PlannedFees float64 `json:"plannedFees,omitempty"` PlannedCost float64 `json:"plannedCost,omitempty"` } `json:"finance,omitempty"` - CustomItemTypeID string `json:"customItemTypeId,omitempty"` + CustomItemTypeId string `json:"customItemTypeId,omitempty"` ActualFees float64 `json:"actualFees,omitempty"` ActualCost float64 `json:"actualCost,omitempty"` PlannedFees float64 `json:"plannedFees,omitempty"` diff --git a/response/users.go b/response/users.go index bf77d34..a9721f1 100644 --- a/response/users.go +++ b/response/users.go @@ -11,12 +11,12 @@ func UsersFromJSON(data []byte) (Users, error) { type Users struct { Kind string `json:"kind,omitempty"` Data []struct { - ID string `json:"id,omitempty"` + Id string `json:"id,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Type string `json:"type,omitempty"` Profiles []struct { - AccountID string `json:"accountId,omitempty"` + AccountId string `json:"accountId,omitempty"` Email string `json:"email,omitempty"` Role string `json:"role,omitempty"` External bool `json:"external,omitempty"` diff --git a/response/workflows.go b/response/workflows.go index fe2aad6..244c49a 100644 --- a/response/workflows.go +++ b/response/workflows.go @@ -17,7 +17,7 @@ type Workflows struct { Standard bool `json:"standard"` Hidden bool `json:"hidden"` CustomStatuses []struct { - ID string `json:"id"` + Id string `json:"id"` Name string `json:"name"` StandardName bool `json:"standardName"` Color string `json:"color"`