routes

package
v0.0.0-...-14f5e45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const APP_SOURCE = "user-admin-api"

Variables

This section is empty.

Functions

func Run

func Run(config *config.Config, services *service.Services)

Run will start the server

Types

type AttendedBy

type AttendedBy struct {
	ContactParticipant *ContactParticipant `json:"contactParticipant"`
}

type BookingCancelRequest

type BookingCancelRequest struct {
	TriggerEvent string `json:"triggerEvent"`
	Payload      struct {
		Organizer struct {
			Email string `json:"email"`
		} `json:"organizer"`
		Uid string `json:"uid"`
	} `json:"payload"`
}

type BookingCreatedRequest

type BookingCreatedRequest struct {
	TriggerEvent string `json:"triggerEvent"`
	Payload      struct {
		Title           string    `json:"title"`
		AdditionalNotes string    `json:"additionalNotes"`
		StartTime       time.Time `json:"startTime"`
		EndTime         time.Time `json:"endTime"`
		Organizer       struct {
			Email string `json:"email"`
		} `json:"organizer"`
		Attendees []struct {
			Email    string `json:"email"`
			Name     string `json:"name"`
			TimeZone string `json:"timeZone"`
			Language struct {
				Locale string `json:"locale"`
			} `json:"language"`
		} `json:"attendees"`
		Uid            string `json:"uid"`
		ConferenceData struct {
			CreateRequest struct {
				RequestId string `json:"requestId"`
			} `json:"createRequest"`
		} `json:"conferenceData"`
		Metadata struct {
			VideoCallUrl string `json:"videoCallUrl"`
		} `json:"metadata"`
	} `json:"payload"`
}

type BookingRescheduleRequest

type BookingRescheduleRequest struct {
	TriggerEvent string `json:"triggerEvent"`
	Payload      struct {
		Title               string    `json:"title"`
		RescheduleUid       string    `json:"rescheduleUid"`
		RescheduleStartTime time.Time `json:"rescheduleStartTime"`
		RescheduleEndTime   time.Time `json:"rescheduleEndTime"`
		Organizer           struct {
			Email string `json:"email"`
		} `json:"organizer"`
		Attendees []struct {
			Email    string `json:"email"`
			Name     string `json:"name"`
			TimeZone string `json:"timeZone"`
			Language struct {
				Locale string `json:"locale"`
			} `json:"language"`
		} `json:"attendees"`
		Uid      string `json:"uid"`
		Metadata struct {
			VideoCallUrl string `json:"videoCallUrl"`
		} `json:"metadata"`
	} `json:"payload"`
}

type ContactParticipant

type ContactParticipant struct {
	ID     string   `json:"id"`
	Emails []*Email `json:"emails"`
}

type CreateMeetingResponse

type CreateMeetingResponse struct {
	MeetingCreate struct {
		Id         string    `json:"id"`
		Name       string    `json:"name"`
		Source     string    `json:"source"`
		StartedAt  time.Time `json:"startedAt"`
		EndedAt    time.Time `json:"endedAt"`
		AttendedBy []struct {
			Typename           string `json:"__typename"`
			ContactParticipant struct {
				Id        string `json:"id"`
				FirstName string `json:"firstName"`
			} `json:"contactParticipant"`
		} `json:"attendedBy"`
		CreatedBy []struct {
			Typename        string `json:"__typename"`
			UserParticipant struct {
				Id        string `json:"id"`
				FirstName string `json:"firstName"`
			} `json:"userParticipant"`
		} `json:"createdBy"`
		Note []struct {
			Id            string    `json:"id"`
			Html          string    `json:"html"`
			CreatedAt     time.Time `json:"createdAt"`
			UpdatedAt     time.Time `json:"updatedAt"`
			AppSource     string    `json:"appSource"`
			SourceOfTruth string    `json:"sourceOfTruth"`
		} `json:"note"`
		CreatedAt     time.Time `json:"createdAt"`
		UpdatedAt     time.Time `json:"updatedAt"`
		AppSource     string    `json:"appSource"`
		SourceOfTruth string    `json:"sourceOfTruth"`
	} `json:"meeting_Create"`
}

type Email

type Email struct {
	Email string `json:"email"`
}

type ExternalMeeting

type ExternalMeeting struct {
	AttendedBy []*AttendedBy `json:"attendedBy"`
	Note       []*Note       `json:"note"`
	ID         string        `json:"id"`
}

type ExternalMeetings

type ExternalMeetings struct {
	Content       []*ExternalMeeting `json:"content"`
	TotalElements int64              `json:"totalElements"`
	TotalPages    int64              `json:"totalPages"`
}

type Note

type Note struct {
	HTML string `json:"html"`
	ID   string `json:"id"`
}

type OauthSlackResponse

type OauthSlackResponse struct {
	Ok         bool   `json:"ok"`
	Error      string `json:"error"`
	AppId      string `json:"app_id"`
	AuthedUser struct {
		Id string `json:"id"`
	} `json:"authed_user"`
	Scope       string `json:"scope"`
	TokenType   string `json:"token_type"`
	AccessToken string `json:"access_token"`
	BotUserId   string `json:"bot_user_id"`
	Team        struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"team"`
	Enterprise          interface{} `json:"enterprise"`
	IsEnterpriseInstall bool        `json:"is_enterprise_install"`
}

type OauthSlackRevokeResponse

type OauthSlackRevokeResponse struct {
	Ok      bool    `json:"ok"`
	Revoked *bool   `json:"revoked"`
	Error   *string `json:"error"`
}

type Response

type Response struct {
	ExternalMeetings *ExternalMeetings `json:"externalMeetings"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL