Skip to content

Commit

Permalink
feat: add updated api models
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed May 29, 2024
1 parent b204d66 commit f4a2aba
Show file tree
Hide file tree
Showing 79 changed files with 2,247 additions and 2,249 deletions.
10 changes: 8 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"node_modules",
"types",
".next",
"generated",
"*.json"
]
},
Expand All @@ -30,7 +29,14 @@
},
"suspicious": {
"noArrayIndexKey": "off",
"noExplicitAny": "warn"
"noExplicitAny": "off",
"noPrototypeBuiltins": "off"
},
"complexity": {
"noForEach": "off"
},
"performance": {
"noAccumulatingSpread": "off"
}
}
}
Expand Down
Binary file modified bun.lockb
Binary file not shown.
157 changes: 82 additions & 75 deletions packages/api/lib/generated/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,81 +1,88 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export { GuildedRouter } from "./GuildedRouter";
export { GuildedRouter } from './GuildedRouter';

export { ApiError } from "./core/ApiError";
export { BaseHttpRequest } from "./core/BaseHttpRequest";
export { CancelablePromise, CancelError } from "./core/CancelablePromise";
export { OpenAPI } from "./core/OpenAPI";
export type { OpenAPIConfig } from "./core/OpenAPI";
export { ApiError } from './core/ApiError';
export { BaseHttpRequest } from './core/BaseHttpRequest';
export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';

export type { Announcement as AnnouncementPayload } from "./models/Announcement";
export type { AnnouncementComment as AnnouncementCommentPayload } from "./models/AnnouncementComment";
export type { AnnouncementCommentReaction as AnnouncementCommentReactionPayload } from "./models/AnnouncementCommentReaction";
export type { AnnouncementReaction as AnnouncementReactionPayload } from "./models/AnnouncementReaction";
export type { CalendarEvent as CalendarEventPayload } from "./models/CalendarEvent";
export type { CalendarEventComment as CalendarEventCommentPayload } from "./models/CalendarEventComment";
export type { CalendarEventCommentReaction as CalendarEventCommentReactionPayload } from "./models/CalendarEventCommentReaction";
export type { CalendarEventReaction as CalendarEventReactionPayload } from "./models/CalendarEventReaction";
export type { CalendarEventRsvp as CalendarEventRsvpPayload } from "./models/CalendarEventRsvp";
export type { CalendarEventSeries as CalendarEventSeriesPayload } from "./models/CalendarEventSeries";
export type { Category as CategoryPayload } from "./models/Category";
export type { ChatEmbed as ChatEmbedPayload } from "./models/ChatEmbed";
export type { ChatMessage as ChatMessagePayload } from "./models/ChatMessage";
export type { ChatMessageReaction as ChatMessageReactionPayload } from "./models/ChatMessageReaction";
export type { Doc as DocPayload } from "./models/Doc";
export type { DocComment as DocCommentPayload } from "./models/DocComment";
export type { DocCommentReaction as DocCommentReactionPayload } from "./models/DocCommentReaction";
export type { DocReaction as DocReactionPayload } from "./models/DocReaction";
export type { Emote as EmotePayload } from "./models/Emote";
export type { ForumTopic as ForumTopicPayload } from "./models/ForumTopic";
export type { ForumTopicComment as ForumTopicCommentPayload } from "./models/ForumTopicComment";
export type { ForumTopicCommentReaction as ForumTopicCommentReactionPayload } from "./models/ForumTopicCommentReaction";
export type { ForumTopicReaction as ForumTopicReactionPayload } from "./models/ForumTopicReaction";
export type { ForumTopicSummary as ForumTopicSummaryPayload } from "./models/ForumTopicSummary";
export type { Group as GroupPayload } from "./models/Group";
export type { ListItem as ListItemPayload } from "./models/ListItem";
export type { ListItemSummary as ListItemSummaryPayload } from "./models/ListItemSummary";
export type { Mentions as MentionsPayload } from "./models/Mentions";
export type { Role as RolePayload } from "./models/Role";
export type { Server as ServerPayload } from "./models/Server";
export type { ServerChannel as ServerChannelPayload } from "./models/ServerChannel";
export type { ServerMember as ServerMemberPayload } from "./models/ServerMember";
export type { ServerMemberBan as ServerMemberBanPayload } from "./models/ServerMemberBan";
export type { ServerMemberPermissions as ServerMemberPermissionsPayload } from "./models/ServerMemberPermissions";
export type { ServerMemberSummary as ServerMemberSummaryPayload } from "./models/ServerMemberSummary";
export type { ServerSubscriptionTier as ServerSubscriptionTierPayload } from "./models/ServerSubscriptionTier";
export type { SocialLink as SocialLinkPayload } from "./models/SocialLink";
export type { User as UserPayload } from "./models/User";
export type { UserStatus as UserStatusPayload } from "./models/UserStatus";
export type { UserSummary as UserSummaryPayload } from "./models/UserSummary";
export type { Webhook as WebhookPayload } from "./models/Webhook";
export type { Announcement as AnnouncementPayload } from './models/Announcement';
export type { AnnouncementComment as AnnouncementCommentPayload } from './models/AnnouncementComment';
export type { AnnouncementCommentReaction as AnnouncementCommentReactionPayload } from './models/AnnouncementCommentReaction';
export type { AnnouncementReaction as AnnouncementReactionPayload } from './models/AnnouncementReaction';
export type { CalendarEvent as CalendarEventPayload } from './models/CalendarEvent';
export type { CalendarEventComment as CalendarEventCommentPayload } from './models/CalendarEventComment';
export type { CalendarEventCommentReaction as CalendarEventCommentReactionPayload } from './models/CalendarEventCommentReaction';
export type { CalendarEventReaction as CalendarEventReactionPayload } from './models/CalendarEventReaction';
export type { CalendarEventRsvp as CalendarEventRsvpPayload } from './models/CalendarEventRsvp';
export type { CalendarEventSeries as CalendarEventSeriesPayload } from './models/CalendarEventSeries';
export type { Category as CategoryPayload } from './models/Category';
export type { ChannelCategoryRolePermission as ChannelCategoryRolePermissionPayload } from './models/ChannelCategoryRolePermission';
export type { ChannelCategoryUserPermission as ChannelCategoryUserPermissionPayload } from './models/ChannelCategoryUserPermission';
export type { ChannelRolePermission as ChannelRolePermissionPayload } from './models/ChannelRolePermission';
export type { ChannelUserPermission as ChannelUserPermissionPayload } from './models/ChannelUserPermission';
export type { ChatEmbed as ChatEmbedPayload } from './models/ChatEmbed';
export type { ChatMessage as ChatMessagePayload } from './models/ChatMessage';
export type { ChatMessageReaction as ChatMessageReactionPayload } from './models/ChatMessageReaction';
export type { Doc as DocPayload } from './models/Doc';
export type { DocComment as DocCommentPayload } from './models/DocComment';
export type { DocCommentReaction as DocCommentReactionPayload } from './models/DocCommentReaction';
export type { DocReaction as DocReactionPayload } from './models/DocReaction';
export type { Emote as EmotePayload } from './models/Emote';
export type { ForumTopic as ForumTopicPayload } from './models/ForumTopic';
export type { ForumTopicComment as ForumTopicCommentPayload } from './models/ForumTopicComment';
export type { ForumTopicCommentReaction as ForumTopicCommentReactionPayload } from './models/ForumTopicCommentReaction';
export type { ForumTopicReaction as ForumTopicReactionPayload } from './models/ForumTopicReaction';
export type { ForumTopicSummary as ForumTopicSummaryPayload } from './models/ForumTopicSummary';
export type { Group as GroupPayload } from './models/Group';
export type { ListItem as ListItemPayload } from './models/ListItem';
export type { ListItemSummary as ListItemSummaryPayload } from './models/ListItemSummary';
export type { Mentions as MentionsPayload } from './models/Mentions';
export type { Role as RolePayload } from './models/Role';
export type { Server as ServerPayload } from './models/Server';
export type { ServerChannel as ServerChannelPayload } from './models/ServerChannel';
export type { ServerMember as ServerMemberPayload } from './models/ServerMember';
export type { ServerMemberBan as ServerMemberBanPayload } from './models/ServerMemberBan';
export type { ServerMemberPermissions as ServerMemberPermissionsPayload } from './models/ServerMemberPermissions';
export type { ServerMemberSummary as ServerMemberSummaryPayload } from './models/ServerMemberSummary';
export type { ServerSubscriptionTier as ServerSubscriptionTierPayload } from './models/ServerSubscriptionTier';
export type { SocialLink as SocialLinkPayload } from './models/SocialLink';
export type { UrlSignature as UrlSignaturePayload } from './models/UrlSignature';
export type { User as UserPayload } from './models/User';
export type { UserStatus as UserStatusPayload } from './models/UserStatus';
export type { UserSummary as UserSummaryPayload } from './models/UserSummary';
export type { Webhook as WebhookPayload } from './models/Webhook';

export { AnnouncementCommentsService } from "./services/AnnouncementCommentsService";
export { AnnouncementsService } from "./services/AnnouncementsService";
export { CalendarEventCommentsService } from "./services/CalendarEventCommentsService";
export { CalendarEventsService } from "./services/CalendarEventsService";
export { CalendarEventSeriesService } from "./services/CalendarEventSeriesService";
export { CategoriesService } from "./services/CategoriesService";
export { ChannelsService } from "./services/ChannelsService";
export { ChatService } from "./services/ChatService";
export { DocCommentsService } from "./services/DocCommentsService";
export { DocsService } from "./services/DocsService";
export { ForumCommentsService } from "./services/ForumCommentsService";
export { ForumsService } from "./services/ForumsService";
export { GroupMembershipService } from "./services/GroupMembershipService";
export { GroupsService } from "./services/GroupsService";
export { ListItemsService } from "./services/ListItemsService";
export { MemberBansService } from "./services/MemberBansService";
export { MembersService } from "./services/MembersService";
export { ReactionsService } from "./services/ReactionsService";
export { RoleMembershipService } from "./services/RoleMembershipService";
export { RolesService } from "./services/RolesService";
export { ServersService } from "./services/ServersService";
export { ServerSubscriptionService } from "./services/ServerSubscriptionService";
export { ServerXpService } from "./services/ServerXpService";
export { SocialLinksService } from "./services/SocialLinksService";
export { UsersService } from "./services/UsersService";
export { UserStatusService } from "./services/UserStatusService";
export { WebhookService } from "./services/WebhookService";
export { AnnouncementCommentsService } from './services/AnnouncementCommentsService';
export { AnnouncementsService } from './services/AnnouncementsService';
export { CalendarEventCommentsService } from './services/CalendarEventCommentsService';
export { CalendarEventsService } from './services/CalendarEventsService';
export { CalendarEventSeriesService } from './services/CalendarEventSeriesService';
export { CategoriesService } from './services/CategoriesService';
export { ChannelsService } from './services/ChannelsService';
export { ChatService } from './services/ChatService';
export { DocCommentsService } from './services/DocCommentsService';
export { DocsService } from './services/DocsService';
export { ForumCommentsService } from './services/ForumCommentsService';
export { ForumsService } from './services/ForumsService';
export { GroupMembershipService } from './services/GroupMembershipService';
export { GroupsService } from './services/GroupsService';
export { ListItemsService } from './services/ListItemsService';
export { MemberBansService } from './services/MemberBansService';
export { MembersService } from './services/MembersService';
export { PermissionOverrideService } from './services/PermissionOverrideService';
export { ReactionsService } from './services/ReactionsService';
export { RoleMembershipService } from './services/RoleMembershipService';
export { RolesService } from './services/RolesService';
export { ServersService } from './services/ServersService';
export { ServerSubscriptionService } from './services/ServerSubscriptionService';
export { ServerXpService } from './services/ServerXpService';
export { SocialLinksService } from './services/SocialLinksService';
export { UrlSignatureService } from './services/UrlSignatureService';
export { UsersService } from './services/UsersService';
export { UserStatusService } from './services/UserStatusService';
export { WebhookService } from './services/WebhookService';
8 changes: 5 additions & 3 deletions packages/api/lib/generated/router/models/Announcement.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Mentions } from "./Mentions";

export type Announcement = {
/**
* The ID of the announcement
Expand All @@ -14,6 +12,10 @@ export type Announcement = {
* The ID of the server
*/
serverId: string;
/**
* The ID of the group
*/
groupId: string;
/**
* The ID of the channel
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Mentions } from "./Mentions";

export type AnnouncementComment = {
/**
* The ID of the announcement comment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Emote } from "./Emote";

export type AnnouncementCommentReaction = {
/**
* The ID of the channel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Emote } from "./Emote";

export type AnnouncementReaction = {
/**
* The ID of the channel
Expand Down
8 changes: 5 additions & 3 deletions packages/api/lib/generated/router/models/CalendarEvent.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Mentions } from "./Mentions";

export type CalendarEvent = {
/**
* The ID of the calendar event
Expand All @@ -14,6 +12,10 @@ export type CalendarEvent = {
* The ID of the server
*/
serverId: string;
/**
* The ID of the group
*/
groupId: string;
/**
* The ID of the channel
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Mentions } from "./Mentions";

export type CalendarEventComment = {
/**
* The ID of the calendar event comment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Emote } from "./Emote";

export type CalendarEventCommentReaction = {
/**
* The ID of the channel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Emote } from "./Emote";

export type CalendarEventReaction = {
/**
* The ID of the channel
Expand Down
11 changes: 2 additions & 9 deletions packages/api/lib/generated/router/models/CalendarEventRsvp.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CalendarEventRsvp = {
/**
* The ID of the calendar event
Expand All @@ -23,13 +22,7 @@ export type CalendarEventRsvp = {
/**
* The status of the RSVP
*/
status:
| "going"
| "maybe"
| "declined"
| "invited"
| "waitlisted"
| "not responded";
status: "going" | "maybe" | "declined" | "invited" | "waitlisted" | "not responded";
/**
* The ID of the user who created this RSVP
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CalendarEventSeries = {
/**
* The ID of the calendar event series
Expand Down
7 changes: 5 additions & 2 deletions packages/api/lib/generated/router/models/Category.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type Category = {
/**
* The ID of the category
Expand All @@ -28,4 +27,8 @@ export type Category = {
* Name of the category
*/
name: string;
/**
* The priority of the category will determine its position relative to other categories in the group. The higher the value, the higher up it will be displayed in the UI. Returned values can be null, in which case sorting will be done by `createdAt` in descending order. Due to legacy issues, sending a null value is not possible
*/
priority?: number;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ChannelCategoryRolePermission = {
permissions: Record<string, boolean>;
/**
* The ISO 8601 timestamp that the permission override was created at
*/
createdAt: string;
/**
* The ISO 8601 timestamp that the permission override was updated at, if relevant
*/
updatedAt?: string;
/**
* The ID of the role
*/
roleId: number;
/**
* The ID of the category
*/
categoryId: number;
};
Loading

0 comments on commit f4a2aba

Please sign in to comment.