Skip to content

Commit

Permalink
Merge pull request #14 from TGoers-FNSB/dev
Browse files Browse the repository at this point in the history
v0.1.7
  • Loading branch information
TristanGoers authored Oct 6, 2023
2 parents 4d306b5 + 7abd48d commit 5cfd355
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion response/accessRoles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
6 changes: 3 additions & 3 deletions response/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion response/approvals.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion response/asyncJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
10 changes: 5 additions & 5 deletions response/bookings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion response/contacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions response/customFields.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion response/customItemTypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
2 changes: 1 addition & 1 deletion response/dataExport.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions response/folders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
}
4 changes: 2 additions & 2 deletions response/ids.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
4 changes: 2 additions & 2 deletions response/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions response/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion response/workflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 5cfd355

Please sign in to comment.