Skip to content

Commit

Permalink
Merge pull request #86 from tada-team/meeting-freq-statuses
Browse files Browse the repository at this point in the history
update freq meeting structs
  • Loading branch information
deniskelin authored Apr 19, 2022
2 parents 22b1065 + bb94acd commit 6196c26
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
18 changes: 9 additions & 9 deletions meetings.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ type Meeting struct {
Description string `json:"description,omitempty"`
StartAt ISODateTimeString `json:"start_at"`
Duration int32 `json:"duration"`
IsFreq bool `json:"is_freq"`
FreqDays []int32 `json:"freq_days,omitempty"`
Freq int32 `json:"freq,omitempty"`
Freq Freq `json:"freq,omitempty"`
IsArchive bool `json:"is_archive,omitempty"`
IsPublic bool `json:"is_public,omitempty"`
IsOutside bool `json:"is_outside,omitempty"`
Expand Down Expand Up @@ -51,12 +49,16 @@ type MeetingsCreateRequest struct {
Description string `json:"description,omitempty"`
StartAt ISODateTimeString `json:"start_at"`
Duration int32 `json:"duration"`
Freq int32 `json:"freq,omitempty"`
FreqDays []int32 `json:"freq_days,omitempty"`
Freq Freq `json:"freq,omitempty"`
Members []MeetingsMembersCreateParams `json:"members"`
IsPublic bool `json:"is_public,omitempty"`
IsOutside bool `json:"is_outside,omitempty"`
IsFreq bool `json:"is_freq"`
}

type Freq struct {
Frequency int32 `json:"frequency"`
FreqDays []int32 `json:"freq_days,omitempty"`
RepeatabilityType MeetingRepeatabilityType `json:"repeatability_type"`
}

type MeetingsUpdateRequest struct {
Expand All @@ -65,11 +67,9 @@ type MeetingsUpdateRequest struct {
ActiveFrom *string `json:"active_from,omitempty"`
StartAt *string `json:"start_at,omitempty"`
Duration *int32 `json:"duration,omitempty"`
Freq *int32 `json:"freq,omitempty"`
FreqDays []int32 `json:"freq_days,omitempty"`
Freq Freq `json:"freq,omitempty"`
IsPublic *bool `json:"is_public,omitempty"`
IsOutside *bool `json:"is_outside,omitempty"`
IsFreq bool `json:"is_freq"`
}

type MeetingsDeleteRequestParams struct {
Expand Down
11 changes: 11 additions & 0 deletions meetings_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ const (
MeetingPresenceStatusDoubts MeetingPresenceStatus = "MEETING_PRESENCE_STATUS_DOUBTS"
MeetingPresenceStatusWaiting MeetingPresenceStatus = "MEETING_PRESENCE_STATUS_WAITING"
)

type MeetingRepeatabilityType string

const (
MeetingRepeatabilityStatusUnspecified MeetingRepeatabilityType = "MEETING_PRESENCE_STATUS_UNSPECIFIED"
MeetingRepeatabilityStatusDaily MeetingRepeatabilityType = "MEETING_PRESENCE_STATUS_DAILY"
MeetingRepeatabilityTypeWeekly MeetingRepeatabilityType = "MEETING_PRESENCE_STATUS_WEEKLY"
MeetingRepeatabilityTypeMonthly MeetingRepeatabilityType = "MEETING_PRESENCE_STATUS_MONTHLY"
MeetingRepeatabilityTypeNDOW MeetingRepeatabilityType = "MEETING_PRESENCE_STATUS_NDOW"
MeetingRepeatabilityTypeAnnually MeetingRepeatabilityType = "MEETING_PRESENCE_STATUS_ANNUALLY"
)

0 comments on commit 6196c26

Please sign in to comment.