-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
146 additions
and
128 deletions.
There are no files selected for viewing
254 changes: 127 additions & 127 deletions
254
packages/guilded-api-typings/lib/v1/structs/CalendarEvent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,137 +1,137 @@ | ||
import type { MentionsPayload } from "./Message"; | ||
|
||
export type CalendarEventCancellationPayload = { | ||
/** | ||
* The ID of the user who created this event cancellation | ||
*/ | ||
createdBy?: string; | ||
/** | ||
* The description of event cancellation (min 1; max 140) | ||
*/ | ||
description?: string; | ||
/** | ||
* The ID of the user who created this event cancellation | ||
*/ | ||
createdBy?: string; | ||
/** | ||
* The description of event cancellation (min 1; max 140) | ||
*/ | ||
description?: string; | ||
}; | ||
|
||
export type CalendarEventPayload = { | ||
cancellation?: CalendarEventCancellationPayload; | ||
/** | ||
* The ID of the channel | ||
*/ | ||
channelId: string; | ||
/** | ||
* The color of the event when viewed in the calendar (min 0; max 16777215) | ||
*/ | ||
color?: number; | ||
/** | ||
* The ISO 8601 timestamp that the event was created at | ||
*/ | ||
createdAt: string; | ||
/** | ||
* The ID of the user who created this event | ||
*/ | ||
createdBy: string; | ||
/** | ||
* The description of the event length: (min 1; max 8000) | ||
*/ | ||
description?: string; | ||
/** | ||
* The duration of the event IN MINUTES (min 1) | ||
*/ | ||
duration?: number; | ||
/** | ||
* The ID of the calendar event | ||
*/ | ||
id: number; | ||
/** | ||
* If the event has a limited view | ||
*/ | ||
isPrivate?: boolean; | ||
/** | ||
* The location of the event | ||
*/ | ||
location?: string; | ||
mentions?: MentionsPayload; | ||
/** | ||
* The name of the event length: (min 1; max 60) | ||
*/ | ||
name: string; | ||
/** | ||
* The number of rsvps to allow before waitlisting rsvps (min 1) | ||
*/ | ||
rsvpLimit?: number; | ||
/** | ||
* Collection of fetched rsvps if cached | ||
*/ | ||
rsvps?: CalendarEventRsvpPayload[]; | ||
/** | ||
* The ID of the server | ||
*/ | ||
serverId: string; | ||
/** | ||
* The ID of the calendar event series. Only shows if the event is repeating | ||
*/ | ||
seriesId?: string; | ||
/** | ||
* The role IDs to restrict the event to (min items 1; must have unique items true) | ||
*/ | ||
roleIds?: number[]; | ||
/** | ||
* The ISO 8601 timestamp that the event starts at | ||
*/ | ||
startsAt: string; | ||
/** | ||
* Whether this is a repeating event | ||
*/ | ||
repeats?: boolean; | ||
/** | ||
* Whether this event lasts all day | ||
*/ | ||
isAllDay?: boolean; | ||
/** | ||
* When rsvpLimit is set, users from the waitlist will be added as space becomes available in the event | ||
*/ | ||
autofillWaitlist?: boolean; | ||
/** | ||
* A URL to associate with the event | ||
*/ | ||
url?: string; | ||
/** | ||
* When rsvpLimit is set, users from the waitlist will be added as space becomes available in the event | ||
*/ | ||
autofillWaitlist?: boolean; | ||
cancellation?: CalendarEventCancellationPayload; | ||
/** | ||
* The ID of the channel | ||
*/ | ||
channelId: string; | ||
/** | ||
* The color of the event when viewed in the calendar (min 0; max 16777215) | ||
*/ | ||
color?: number; | ||
/** | ||
* The ISO 8601 timestamp that the event was created at | ||
*/ | ||
createdAt: string; | ||
/** | ||
* The ID of the user who created this event | ||
*/ | ||
createdBy: string; | ||
/** | ||
* The description of the event length: (min 1; max 8000) | ||
*/ | ||
description?: string; | ||
/** | ||
* The duration of the event IN MINUTES (min 1) | ||
*/ | ||
duration?: number; | ||
/** | ||
* The ID of the calendar event | ||
*/ | ||
id: number; | ||
/** | ||
* Whether this event lasts all day | ||
*/ | ||
isAllDay?: boolean; | ||
/** | ||
* If the event has a limited view | ||
*/ | ||
isPrivate?: boolean; | ||
/** | ||
* The location of the event | ||
*/ | ||
location?: string; | ||
mentions?: MentionsPayload; | ||
/** | ||
* The name of the event length: (min 1; max 60) | ||
*/ | ||
name: string; | ||
/** | ||
* Whether this is a repeating event | ||
*/ | ||
repeats?: boolean; | ||
/** | ||
* The role IDs to restrict the event to (min items 1; must have unique items true) | ||
*/ | ||
roleIds?: number[]; | ||
/** | ||
* The number of rsvps to allow before waitlisting rsvps (min 1) | ||
*/ | ||
rsvpLimit?: number; | ||
/** | ||
* Collection of fetched rsvps if cached | ||
*/ | ||
rsvps?: CalendarEventRsvpPayload[]; | ||
/** | ||
* The ID of the calendar event series. Only shows if the event is repeating | ||
*/ | ||
seriesId?: string; | ||
/** | ||
* The ID of the server | ||
*/ | ||
serverId: string; | ||
/** | ||
* The ISO 8601 timestamp that the event starts at | ||
*/ | ||
startsAt: string; | ||
/** | ||
* A URL to associate with the event | ||
*/ | ||
url?: string; | ||
}; | ||
|
||
export type CalendarEventRsvpPayload = { | ||
/** | ||
* The ID of the calendar event | ||
*/ | ||
calendarEventId: number; | ||
/** | ||
* The ID of the channel | ||
*/ | ||
channelId: string; | ||
/** | ||
* The ISO 8601 timestamp that the rsvp was created at | ||
*/ | ||
createdAt: string; | ||
/** | ||
* The ID of the user who created this rsvp | ||
*/ | ||
createdBy: string; | ||
id: string; | ||
/** | ||
* The ID of the server | ||
*/ | ||
serverId: string; | ||
/** | ||
* The status of the rsvp ("going", "maybe", "declined", "invited", "waitlisted", or "not responded") | ||
*/ | ||
status: string; | ||
/** | ||
* The ISO 8601 timestamp that the rsvp was updated at, if relevant | ||
*/ | ||
updatedAt?: string; | ||
/** | ||
* The ID of the user who updated this rsvp | ||
*/ | ||
updatedBy?: string; | ||
/** | ||
* The ID of the user | ||
*/ | ||
userId: string; | ||
/** | ||
* The ID of the calendar event | ||
*/ | ||
calendarEventId: number; | ||
/** | ||
* The ID of the channel | ||
*/ | ||
channelId: string; | ||
/** | ||
* The ISO 8601 timestamp that the rsvp was created at | ||
*/ | ||
createdAt: string; | ||
/** | ||
* The ID of the user who created this rsvp | ||
*/ | ||
createdBy: string; | ||
id: string; | ||
/** | ||
* The ID of the server | ||
*/ | ||
serverId: string; | ||
/** | ||
* The status of the rsvp ("going", "maybe", "declined", "invited", "waitlisted", or "not responded") | ||
*/ | ||
status: string; | ||
/** | ||
* The ISO 8601 timestamp that the rsvp was updated at, if relevant | ||
*/ | ||
updatedAt?: string; | ||
/** | ||
* The ID of the user who updated this rsvp | ||
*/ | ||
updatedBy?: string; | ||
/** | ||
* The ID of the user | ||
*/ | ||
userId: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters