Skip to content

Commit

Permalink
Merge pull request #12 from TGoers-FNSB/dev
Browse files Browse the repository at this point in the history
v0.1.5
  • Loading branch information
TristanGoers authored Oct 6, 2023
2 parents 50b0e81 + 285cc79 commit a5a03d8
Show file tree
Hide file tree
Showing 25 changed files with 117 additions and 122 deletions.
1 change: 0 additions & 1 deletion parameters/accessRoles.go

This file was deleted.

4 changes: 2 additions & 2 deletions parameters/account.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package wrikeparams

type QueryAccount struct {
Metadata *[]Metadata `url:"metadata,omitempty"`
Metadata *Metadata `url:"metadata,omitempty"`
Fields *[]string `url:"fields,omitempty"`
}

type ModifyAccount struct {
Metadata *Metadata `url:"metadata,omitempty"`
Metadata *[]Metadata `url:"metadata,omitempty"`
}
1 change: 0 additions & 1 deletion parameters/asyncJob.go

This file was deleted.

26 changes: 13 additions & 13 deletions parameters/bookings.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@ type CreateBookings struct {
Duration *int `url:"duration,omitempty"`
StartDate *string `url:"startDate,omitempty"`
FinishDate *string `url:"finishDate,omitempty"`
WorkOnWeekends *bool `url:"bookingDates,omitempty"`
WorkOnWeekends *bool `url:"workOnWeekends,omitempty"`
} `url:"bookingDates"`
ResponsibleId *[]string `url:"responsibleId,omitempty"`
ResponsiblePlaceholderId *[]string `url:"respopnsiblePlaceholderId,omitempty"`
ResponsibleId *string `url:"responsibleId,omitempty"`
ResponsiblePlaceholderId *string `url:"respopnsiblePlaceholderId,omitempty"`
EffortAllocation *struct {
ResponsibleAllocation *[]struct {
UserId *string `url:"userId,omitempty"`
PlaceholderId *string `url:"placeholderId,omitempty"`
DailyAllocation *[]string `url:"dailyAllocation"`
UserId *string `url:"userId,omitempty"`
PlaceholderId *string `url:"placeholderId,omitempty"`
DailyAllocation []string `url:"dailyAllocation"` //? Data Type
} `url:"responsibleAllocation,omitempty"`
Mode string `url:"mode"`
TotalEffort *int `url:"totalEffort,omitempty"`
} `url:"effortAllocation,omitempty"`
}

type ModifyBookings struct {
type ModifyBookings *struct {
BookingDates struct {
Duration *int `url:"duration,omitempty"`
StartDate *string `url:"startDate,omitempty"`
FinishDate *string `url:"finishDate,omitempty"`
WorkOnWeekends *bool `url:"bookingDates,omitempty"`
} `url:"bookingDates"`
ResponsibleId *[]string `url:"responsibleId,omitempty"`
ResponsiblePlaceholderId *[]string `url:"respopnsiblePlaceholderId,omitempty"`
WorkOnWeekends *bool `url:"workOnWeekends,omitempty"`
} `url:"bookingDates,omitempty"`
ResponsibleId *string `url:"responsibleId,omitempty"`
ResponsiblePlaceholderId *string `url:"respopnsiblePlaceholderId,omitempty"`
EffortAllocation *struct {
ResponsibleAllocation *[]struct {
UserId *string `url:"userId,omitempty"`
PlaceholderId *string `url:"placeholderId,omitempty"`
DailyAllocation *[]string `url:"dailyAllocation"`
DailyAllocation *[]string `url:"dailyAllocation"` //? Data Type
} `url:"responsibleAllocation,omitempty"`
Mode string `url:"mode"`
TotalEffort *int `url:"totalEffort,omitempty"`
} `url:"effortAllocation,omitempty"`
}
}
1 change: 0 additions & 1 deletion parameters/colors.go

This file was deleted.

8 changes: 4 additions & 4 deletions parameters/contacts.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package wrikeparams

type QueryContacts struct {
Me *bool `url:"me,omitempty"` // Required in some queries
Me *bool `url:"me,omitempty"` //! Required in some queries
Metadata *Metadata `url:"metadata,omitempty"`
Deleted *bool `url:"deleted,omitempty"`
Fields *[]string `url:"fields,omitempty"`
UpdatedDate *DateOrRange `url:"updatedDate,omitempty"`
}

type ModifyContacts struct {
Metadata *Metadata `url:"metadata,omitempty"`
Metadata *[]Metadata `url:"metadata,omitempty"`
CurrentBillRate *struct {
RateSource *string `url:"rateSource,omitempty"`
RateSource string `url:"rateSource"`
RateValue *string `url:"rateValue,omitempty"`
} `url:"currentBillRate,omitempty"`
CurrentCostRate *struct {
RateSource *string `url:"rateSource,omitempty"`
RateSource string `url:"rateSource"`
RateValue *string `url:"rateValue,omitempty"`
} `url:"currentCostRate,omitempty"`
JobRoleId *string `url:"jobRoleId,omitempty"`
Expand Down
30 changes: 15 additions & 15 deletions parameters/customFields.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package wrikeparams

type CreateCustomFields struct {
Title string `url:"title"`
Type string `url:"type"`
SpaceId *string `url:"spaceId,omitempty"`
Shareds *[]string `url:"shareds,omitempty"`
Settings *struct {
Title string `url:"title"`
Type string `url:"type"`
SpaceId *string `url:"spaceId,omitempty"`
Shareds *[]string `url:"shareds,omitempty"`
Settings *struct {
InheritanceType *string `url:"inheritanceType,omitempty"`
DecimalPlaces *int `url:"decimalPlaces,omitempty"`
UseThousandsSeparator *bool `url:"useThousandsSeparator,omitempty"`
Expand All @@ -14,19 +14,19 @@ type CreateCustomFields struct {
Values *[]string `url:"values,omitempty"`
Options *[]string `url:"options,omitempty"`
OptionColorsEnabled *bool `url:"optionColorsEnabled,omitempty"`
AllowedOtherValues *bool `url:"allowedOtherValues,omitempty"`
AllowOtherValues *bool `url:"allowOtherValues,omitempty"`
Contacts *[]string `url:"contacts,omitempty"`
} `url:"settings,omitempty"`
}

type ModifyCustomFields struct {
Title *string `url:"title,omitempty"`
Type *string `url:"type,omitempty"`
ChangeScope *string `url:"changeScope,omitempty"`
SpaceId *string `url:"spaceId,omitempty"`
AddShareds *[]string `url:"addShareds,omitempty"`
RemoveShareds *[]string `url:"removeShareds,omitempty"`
Settings *struct {
Title *string `url:"title,omitempty"`
Type *string `url:"type,omitempty"`
ChangeScope *string `url:"changeScope,omitempty"`
SpaceId *string `url:"spaceId,omitempty"`
AddShareds *[]string `url:"addShareds,omitempty"`
RemoveShareds *[]string `url:"removeShareds,omitempty"`
Settings *struct {
InheritanceType *string `url:"inheritanceType,omitempty"`
DecimalPlaces *int `url:"decimalPlaces,omitempty"`
UseThousandsSeparator *bool `url:"useThousandsSeparator,omitempty"`
Expand All @@ -35,7 +35,7 @@ type ModifyCustomFields struct {
Values *[]string `url:"values,omitempty"`
Options *[]string `url:"options,omitempty"`
OptionColorsEnabled *bool `url:"optionColorsEnabled,omitempty"`
AllowedOtherValues *bool `url:"allowedOtherValues,omitempty"`
AllowOtherValues *bool `url:"allowOtherValues,omitempty"`
Contacts *[]string `url:"contacts,omitempty"`
} `url:"settings,omitempty"`
}
}
2 changes: 1 addition & 1 deletion parameters/customItemTypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ type QueryCustomItemTypes struct {
type CreateWorkFromCustomItemType struct {
SuperTaskId *string `url:"superTaskId,omitempty"`
ParentId *string `url:"parentId,omitempty"`
Title *string `url:"title,omitempty"`
Title string `url:"title"`
}
10 changes: 6 additions & 4 deletions parameters/folders.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ type QueryFolders struct {
CustomField *CustomField `url:"customField,omitempty"`
UpdatedDate *DateOrRange `url:"updatedDate,omitempty"`
Project *bool `url:"project,omitempty"`
Delete *bool `url:"deleted,omitempty"`
Deleted *bool `url:"deleted,omitempty"`
ContractTypes *[]string `url:"contractTypes,omitempty"`
Fields *[]string `url:"fields,omitempty"`
}

type CreateFolders struct {
Title string `url:"title"`
Title string `url:"title"`
Description *string `url:"description,omitempty"`
Shareds *[]string `url:"shareds,omitempty"`
Metadata *[]Metadata `url:"metadata,omitempty"`
Expand All @@ -24,8 +24,8 @@ type CreateFolders struct {
}

type CreateFoldersCopy struct {
Parent string `url:"parent"`
Title string `url:"title"`
Parent string `url:"parent"`
Title string `url:"title"`
TitlePrefix *string `url:"titlePrefix,omitempty"`
CopyDescriptions *bool `url:"copyDescriptions,omitempty"`
CopyResponsibles *bool `url:"copyResponsibles,omitempty"`
Expand All @@ -47,6 +47,8 @@ type ModifyFolders struct {
Description *string `url:"description,omitempty"`
AddParents *[]string `url:"addParents,omitempty"`
RemoveParents *[]string `url:"removeParents,omitempty"`
AddShareds *[]string `url:"addShareds,omitempty"`
RemoveShareds *[]string `url:"removeShareds,omitempty"`
Metadata *[]Metadata `url:"metadata,omitempty"`
Restore *bool `url:"restore,omitempty"`
CustomFields *[]CustomField `url:"customFields,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion parameters/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package wrikeparams

type QueryGroups struct {
Metadata *Metadata `url:"metadata,omitempty"`
PageSize *float64 `url:"pageSize,omitempty"`
PageSize *int `url:"pageSize,omitempty"`
PageToken *string `url:"pageToken,omitempty"`
Fields *[]string `url:"fields,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion parameters/invitations.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type CreateInvitations struct {
}

type ModifyInvitaions struct {
Resend *string `url:"resend,omitempty"`
Resend *bool `url:"resend,omitempty"`
Role *string `url:"role,omitempty"`
External *bool `url:"external,omitempty"`
}
10 changes: 5 additions & 5 deletions parameters/jobRoles.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package wrikeparams

type CreateJobRoles struct {
Title string `url:"title"`
ShortTitle *string `url:"shortTitle"`
AvatarColor *string `url:"avatarColor"`
ShortTitle *string `url:"shortTitle,omitempty"`
AvatarColor *string `url:"avatarColor,omitempty"`
}

type ModifyJobRoles struct {
Title *string `url:"title"`
ShortTitle *string `url:"shortTitle"`
AvatarColor *string `url:"avatarColor"`
Title *string `url:"title,omitempty"`
ShortTitle *string `url:"shortTitle,omitempty"`
AvatarColor *string `url:"avatarColor,omitempty"`
}
1 change: 0 additions & 1 deletion parameters/placeholders.go

This file was deleted.

22 changes: 11 additions & 11 deletions parameters/sharedParamaters.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ type DateOrRange struct {
}

type TaskDates struct {
Type *string `url:"type,omitempty"`
Type string `url:"type"`
Duration *int `url:"duration,omitempty"`
Start *string `url:"start,omitempty"`
Due *string `url:"due,omitempty"`
WorkOnWeekends *bool `url:"workOnWeekends,omitempty"`
}

type Metadata struct {
Key *string `url:"key,omitempty"`
Value *string `url:"value,omitempty"`
Key string `url:"key"`
Value string `url:"value"`
}

type CustomField struct {
Id *string `url:"id,omitempty"`
Id string `url:"id"`
Comparator *string `url:"comparator,omitempty"`
Value *string `url:"value,omitempty"`
Value string `url:"value"`
MinValue *string `url:"minValue,omitempty"`
MaxValue *string `url:"maxValue,omitempty"`
Values *[]string `url:"values,omitempty"`
}

type EffortAllocation struct {
AllocatedEffort *int `url:"allocatedEffort,omitempty"`
DailyAllocationPercentage *int `url:"dailyAllocationPercentage,omitempty"`
Mode *string `url:"mode,omitempty"`
TotalEffort *int `url:"totalEffort,omitempty"`
AllocatedEffort *int `url:"allocatedEffort,omitempty"`
DailyAllocationPercentage *int `url:"dailyAllocationPercentage,omitempty"`
Mode string `url:"mode"`
TotalEffort *int `url:"totalEffort,omitempty"`
}

type Project struct {
Expand All @@ -52,6 +52,6 @@ type Project struct {
}

type Avatar struct {
Letters *string `url:"letters,omitempty"`
Color *string `url:"color,omitempty"`
Letters string `url:"letters"`
Color string `url:"color"`
}
4 changes: 2 additions & 2 deletions parameters/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ type CreateSpaces struct {
}

type ModifySpaces struct {
AccessType *string `url:"accessType"`
Title *string `url:"title"`
AccessType *string `url:"accessType,omitempty"`
Title *string `url:"title,omitempty"`
Description *string `url:"description,omitempty"`
MembersAdd *[]struct {
Id string `url:"id"`
Expand Down
60 changes: 33 additions & 27 deletions parameters/tasks.go
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
package wrikeparams

type QueryTasks struct {
Descendants *bool `url:"descendants,omitempty"`
Title *string `url:"title,omitempty"`
Status *[]string `url:"status,omitempty"`
Importance *string `url:"importance,omitempty"`
StartDate *DateOrRange `url:"startDate,omitempty"`
DueDate *DateOrRange `url:"dueDate,omitempty"`
ScheduledDate *DateOrRange `url:"scheduledDate,omitempty"`
CreatedDate *DateOrRange `url:"createdDate,omitempty"`
UpdatedDate *DateOrRange `url:"updatedDate,omitempty"`
CompletedDate *DateOrRange `url:"completedDate,omitempty"`
Authors *[]string `url:"authors,omitempty"`
Responsibles *[]string `url:"responsibles,omitempty"`
Permalink *string `url:"permalink,omitempty"`
Type *string `url:"type,omitempty"`
Limit *int `url:"limit,omitempty"`
SortField *string `url:"sortField,omitempty"`
SortOrder *string `url:"sortOrder,omitempty"`
SubTasks *bool `url:"subTasks,omitempty"`
PageSize *int `url:"pageSize,omitempty"`
NextPageToken *string `url:"nextPageToken,omitempty"`
Metadata *Metadata `url:"metadata,omitempty"`
CustomField *CustomField `url:"customField,omitempty"`
CustomStatuses *[]string `url:"customStatuses,omitempty"`
BillingTypes *[]string `url:"billingTypes,omitempty"`
Fields *[]string `url:"fields,omitempty"`
Descendants *bool `url:"descendants,omitempty"`
Title *string `url:"title,omitempty"`
Status *[]string `url:"status,omitempty"`
Importance *string `url:"importance,omitempty"`
StartDate *DateOrRange `url:"startDate,omitempty"`
DueDate *DateOrRange `url:"dueDate,omitempty"`
ScheduledDate *DateOrRange `url:"scheduledDate,omitempty"`
CreatedDate *DateOrRange `url:"createdDate,omitempty"`
UpdatedDate *DateOrRange `url:"updatedDate,omitempty"`
CompletedDate *DateOrRange `url:"completedDate,omitempty"`
Authors *[]string `url:"authors,omitempty"`
Responsibles *[]string `url:"responsibles,omitempty"`
ResponsiblePlaceholders *[]string `url:"responsiblePlaceholders,omitempty"`
Permalink *string `url:"permalink,omitempty"`
Type *string `url:"type,omitempty"`
Limit *int `url:"limit,omitempty"`
SortField *string `url:"sortField,omitempty"`
SortOrder *string `url:"sortOrder,omitempty"`
SubTasks *bool `url:"subTasks,omitempty"`
PageSize *int `url:"pageSize,omitempty"`
NextPageToken *string `url:"nextPageToken,omitempty"`
Metadata *Metadata `url:"metadata,omitempty"`
CustomField *CustomField `url:"customField,omitempty"`
CustomStatuses *[]string `url:"customStatuses,omitempty"`
BillingTypes *[]string `url:"billingTypes,omitempty"`
Fields *[]string `url:"fields,omitempty"`
}

type QueryTasksFieldsHistory struct {
UpdatedDate *DateOrRange `url:"updatedDate,omitempty"`
Fields *[]string `url:"fields,omitempty"`
}

type CreateTasks struct {
Title string `url:"title"`
Title string `url:"title"`
Description *string `url:"description,omitempty"`
Status *string `url:"status,omitempty"`
Importance *string `url:"importance,omitempty"`
Expand Down Expand Up @@ -78,4 +84,4 @@ type ModifyTasks struct {
EffortAllocation *EffortAllocation `url:"effortAllocation,omitempty"`
BillingType *string `url:"billingType,omitempty"`
Fields *[]string `url:"fields,omitempty"`
}
}
1 change: 0 additions & 1 deletion parameters/timelogCategories.go

This file was deleted.

Loading

0 comments on commit a5a03d8

Please sign in to comment.