Skip to content

Commit

Permalink
Merge pull request #15 from TGoers-FNSB/dev
Browse files Browse the repository at this point in the history
v0.1.8
  • Loading branch information
TristanGoers authored Oct 6, 2023
2 parents 5cfd355 + 1b44c87 commit 68c1e79
Show file tree
Hide file tree
Showing 35 changed files with 496 additions and 496 deletions.
6 changes: 3 additions & 3 deletions response/accessRoles.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ func AccessRolesFromJSON(data []byte) (AccessRoles, error) {
type AccessRoles struct {
Kind string `json:"kind"`
Data []struct {
Id string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Id *string `json:"id,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
} `json:"data"`
}
84 changes: 42 additions & 42 deletions response/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,47 @@ func AccountFromJSON(data []byte) (Account, error) {
type Account struct {
Kind string `json:"kind"`
Data []struct {
Id string `json:"Id"`
Name string `json:"name"`
DateFormat string `json:"dateFormat"`
FirstDayOfWeek string `json:"firstDayOfWeek"`
WorkDays []string `json:"workDays"`
RootFolderId string `json:"rootFolderId"`
RecycleBinId string `json:"recycleBinId"`
CreatedDate string `json:"createdDate"`
Subscription struct {
Type string `json:"type"`
Suspended bool `json:"suspended"`
Paid bool `json:"paid"`
UserLimit int `json:"userLimit"`
} `json:"subscription"`
Metadata []struct {
Key string `json:"key"`
Value string `json:"value"`
} `json:"metadata"`
CustomFields []struct {
Id string `json:"Id"`
AccountId string `json:"accountId"`
Title string `json:"title"`
Type string `json:"type"`
SpaceId string `json:"spaceId"`
SharedIds []string `json:"sharedIds"`
Settings struct {
InheritanceType string `json:"inheritanceType"`
DecimalPlaces int `json:"decimalPlaces"`
UseThousandsSeparator bool `json:"useThousandsSeparator"`
Currency string `json:"currency"`
Aggregation string `json:"aggregation"`
Values []string `json:"values"`
Options []string `json:"options"`
OptionColorsEnabled bool `json:"optionColorsEnabled"`
AllowedOtherValues bool `json:"allowedOtherValues"`
Contacts []string `json:"contacts"`
ReadOnly bool `json:"readOnly"`
AllowTime bool `json:"allowTime"`
Timezone string `json:"timezone"`
} `json:"settings"`
} `json:"customFields"`
JoinedDate string `json:"joinedDate"`
Id *string `json:"Id,omitempty"`
Name *string `json:"name,omitempty"`
DateFormat *string `json:"dateFormat,omitempty"`
FirstDayOfWeek *string `json:"firstDayOfWeek,omitempty"`
WorkDays *[]string `json:"workDays,omitempty"`
RootFolderId *string `json:"rootFolderId,omitempty"`
RecycleBinId *string `json:"recycleBinId,omitempty"`
CreatedDate *string `json:"createdDate,omitempty"`
Subscription *struct {
Type *string `json:"type,omitempty"`
Suspended *bool `json:"suspended,omitempty"`
Paid *bool `json:"paid,omitempty"`
UserLimit *int `json:"userLimit,omitempty"`
} `json:"subscription,omitempty"`
Metadata *[]struct {
Key *string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
} `json:"metadata,omitempty"`
CustomFields *[]struct {
Id *string `json:"Id,omitempty"`
AccountId *string `json:"accountId,omitempty"`
Title *string `json:"title,omitempty"`
Type *string `json:"type,omitempty"`
SpaceId *string `json:"spaceId,omitempty"`
SharedIds *[]string `json:"sharedIds,omitempty"`
Settings *struct {
InheritanceType *string `json:"inheritanceType,omitempty"`
DecimalPlaces *int `json:"decimalPlaces,omitempty"`
UseThousandsSeparator *bool `json:"useThousandsSeparator,omitempty"`
Currency *string `json:"currency,omitempty"`
Aggregation *string `json:"aggregation,omitempty"`
Values *[]string `json:"values,omitempty"`
Options *[]string `json:"options,omitempty"`
OptionColorsEnabled *bool `json:"optionColorsEnabled,omitempty"`
AllowedOtherValues *bool `json:"allowedOtherValues,omitempty"`
Contacts *[]string `json:"contacts,omitempty"`
ReadOnly *bool `json:"readOnly,omitempty"`
AllowTime *bool `json:"allowTime,omitempty"`
Timezone *string `json:"timezone,omitempty"`
} `json:"settings,omitempty"`
} `json:"customFields,omitempty"`
JoinedDate *string `json:"joinedDate,omitempty"`
} `json:"data"`
}
44 changes: 22 additions & 22 deletions response/approvals.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ func ApprovalsFromJSON(data []byte) (Approvals, error) {
type Approvals struct {
Kind string `json:"kind"`
Data []struct {
TaskId string `json:"taskId,omitempty"`
AuthorId string `json:"authorId"`
Title string `json:"title"`
Description string `json:"description"`
UpdatedDate string `json:"updatedDate"`
DueDate string `json:"dueDate"`
Decisions []struct {
ApproverId string `json:"approverId"`
Comment string `json:"comment"`
Status string `json:"status"`
UpdatedDate string `json:"updatedDate"`
} `json:"decisions"`
ReviewId string `json:"reviewId"`
AttachmentIds []string `json:"attachmentIds"`
Type string `json:"type"`
AutoFinishOnApprove bool `json:"autoFinishOnApprove"`
AutoFinishOnReject bool `json:"autoFinishOnReject"`
Finished bool `json:"finished"`
FinisherId string `json:"finisherId"`
Id string `json:"id"`
Status string `json:"status"`
FolderId string `json:"folderId,omitempty"`
TaskId *string `json:"taskId,omitempty"`
AuthorId *string `json:"authorId,omitempty"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
UpdatedDate *string `json:"updatedDate,omitempty"`
DueDate *string `json:"dueDate,omitempty"`
Decisions *[]struct {
ApproverId *string `json:"approverId,omitempty"`
Comment *string `json:"comment,omitempty"`
Status *string `json:"status,omitempty"`
UpdatedDate *string `json:"updatedDate,omitempty"`
} `json:"decisions,omitempty"`
ReviewId *string `json:"reviewId,omitempty"`
AttachmentIds *[]string `json:"attachmentIds,omitempty"`
Type *string `json:"type,omitempty"`
AutoFinishOnApprove *bool `json:"autoFinishOnApprove,omitempty"`
AutoFinishOnReject *bool `json:"autoFinishOnReject,omitempty"`
Finished *bool `json:"finished,omitempty"`
FinisherId *string `json:"finisherId,omitempty"`
Id *string `json:"id,omitempty"`
Status *string `json:"status,omitempty"`
FolderId *string `json:"folderId,omitempty"`
} `json:"data"`
}
20 changes: 10 additions & 10 deletions response/asyncJob.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ func AsyncJobFromJSON(data []byte) (AsyncJob, error) {
type AsyncJob struct {
Kind string `json:"kind"`
Data []struct {
Id string `json:"id"`
Status string `json:"status"`
ProgressPercent int `json:"progressPercent"`
TotalCount int `json:"totalCount"`
ProcessedCount int `json:"processedCount"`
Type string `json:"type"`
Result struct {
FolderId string `json:"folderId"`
} `json:"result"`
ErrorMessage string `json:"errorMessage"`
Id *string `json:"id,omitempty"`
Status *string `json:"status,omitempty"`
ProgressPercent *int `json:"progressPercent,omitempty"`
TotalCount *int `json:"totalCount,omitempty"`
ProcessedCount *int `json:"processedCount,omitempty"`
Type *string `json:"type,omitempty"`
Result *struct {
FolderId *string `json:"folderId,omitempty"`
} `json:"result,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
} `json:"data"`
}
34 changes: 17 additions & 17 deletions response/auditLog.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ func AuditLogFromJSON(data []byte) (AuditLog, error) {
}

type AuditLog struct {
Kind string `json:"kind"`
NextPageToken string `json:"nextPageToken"`
ResponseSize int `json:"responseSize"`
Data []struct {
Id string `json:"id"`
Operation string `json:"operation"`
UserId string `json:"userId"`
UserEmail string `json:"userEmail"`
EventDate string `json:"eventDate"`
IPAddress string `json:"ipAddress"`
ObjectType string `json:"objectType"`
ObjectName string `json:"objectName"`
ObjectId string `json:"objectId"`
Details struct {
UserRole string `json:"User Role"`
UserTypeId string `json:"User Type Id"`
} `json:"details"`
Kind *string `json:"kind,omitempty"`
NextPageToken *string `json:"nextPageToken,omitempty"`
ResponseSize *int `json:"responseSize,omitempty"`
Data *[]struct {
Id *string `json:"id,omitempty"`
Operation *string `json:"operation,omitempty"`
UserId *string `json:"userId,omitempty"`
UserEmail *string `json:"userEmail,omitempty"`
EventDate *string `json:"eventDate,omitempty"`
IPAddress *string `json:"ipAddress,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
ObjectName *string `json:"objectName,omitempty"`
ObjectId *string `json:"objectId,omitempty"`
Details *struct {
UserRole *string `json:"User Role,omitempty"`
UserTypeId *string `json:"User Type Id,omitempty"`
} `json:"details,omitempty"`
} `json:"data"`
}
34 changes: 17 additions & 17 deletions response/bookings.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ 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"`
BookingDates struct {
Duration int `json:"duration"`
StartDate string `json:"startDate"`
FinishDate string `json:"finishDate"`
WorkOnWeekends bool `json:"workOnWeekends"`
} `json:"bookingDates"`
EffortAllocation struct {
ResponsibleAllocation []struct {
UserId string `json:"userId"`
DailyAllocation []interface{} `json:"dailyAllocation"` //? Unknown data type
} `json:"responsibleAllocation"`
Mode string `json:"mode"`
TotalEffort int `json:"totalEffort"`
} `json:"effortAllocation"`
Id *string `json:"id,omitempty"`
FolderId *string `json:"folderId,omitempty"`
ResponsibleId *string `json:"responsibleId,omitempty"`
BookingDates *struct {
Duration *int `json:"duration,omitempty"`
StartDate *string `json:"startDate,omitempty"`
FinishDate *string `json:"finishDate,omitempty"`
WorkOnWeekends *bool `json:"workOnWeekends,omitempty"`
} `json:"bookingDates,omitempty"`
EffortAllocation *struct {
ResponsibleAllocation *[]struct {
UserId *string `json:"userId,omitempty"`
DailyAllocation *[]interface{} `json:"dailyAllocation,omitempty"` //? Unknown data type
} `json:"responsibleAllocation,omitempty"`
Mode *string `json:"mode,omitempty"`
TotalEffort *int `json:"totalEffort,omitempty"`
} `json:"effortAllocation,omitempty"`
} `json:"data"`
}
4 changes: 2 additions & 2 deletions response/colors.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func ColorsFromJSON(data []byte) (Colors, error) {
type Colors struct {
Kind string `json:"kind"`
Data []struct {
Name string `json:"name"`
Hex string `json:"hex"`
Name *string `json:"name,omitempty"`
Hex *string `json:"hex,omitempty"`
} `json:"data"`
}
32 changes: 16 additions & 16 deletions response/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ func CommentsFromJSON(data []byte) (Comments, error) {
type Comments struct {
Kind string `json:"kind"`
Data []struct {
Id string `json:"id"`
AuthorId string `json:"authorId"`
Text string `json:"text"`
UpdatedDate string `json:"updatedDate"`
CreatedDate string `json:"createdDate"`
TaskId string `json:"taskId,omitempty"`
FolderId string `json:"folderId,omitempty"`
Type string `json:"type"`
EmailSubject string `json:"emailSubject"`
Direction string `json:"direction"`
ExternalRequester struct {
Id string `json:"id"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
Email string `json:"email"`
} `json:"externalRequester"`
Id *string `json:"id,omitempty"`
AuthorId *string `json:"authorId,omitempty"`
Text *string `json:"text,omitempty"`
UpdatedDate *string `json:"updatedDate,omitempty"`
CreatedDate *string `json:"createdDate,omitempty"`
TaskId *string `json:"taskId,omitempty,omitempty"`
FolderId *string `json:"folderId,omitempty,omitempty"`
Type *string `json:"type,omitempty"`
EmailSubject *string `json:"emailSubject,omitempty"`
Direction *string `json:"direction,omitempty"`
ExternalRequester *struct {
Id *string `json:"id,omitempty"`
FirstName *string `json:"firstName,omitempty"`
LastName *string `json:"lastName,omitempty"`
Email *string `json:"email,omitempty"`
} `json:"externalRequester,omitempty"`
} `json:"data"`
}
Loading

0 comments on commit 68c1e79

Please sign in to comment.