Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

guilded-api-typings

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guilded-api-typings - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

21

lib/REST.js

@@ -192,2 +192,23 @@ "use strict";

/**
* The endpoint for a calendar event RSVP on Guilded.
* @param channelId The ID of the channel the calendar event belongs to.
* @param calendarEventId The ID of the calendar event the RSVP belongs to.
* @param userId The ID of the user the RSVP belongs to.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpRead
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpUpdate
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpDelete
*/
static calendarEventRsvp(channelId, calendarEventId, userId) {
return `/channels/${channelId}/events/${calendarEventId}/rsvps/${userId}`;
}
/**
* The endpoint for calendar event RSVPs on Guilded.
* @param channelId The ID of the channel the calendar event belongs to.
* @param calendarEventId The ID of the calendar event the RSVPs belong to.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpReadMany
*/
static calendarEventRsvps(channelId, calendarEventId) {
return `/channels/${channelId}/events/${calendarEventId}/rsvps`;
}
/**
* The endpoint for a content reaction on Guilded.

@@ -194,0 +215,0 @@ * @param channelId The ID of the channel the content belongs to.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.APICalendarEventRsvpStatus = void 0;
/**
* The status of a calendar event RSVP.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvp
*/
var APICalendarEventRsvpStatus;
(function (APICalendarEventRsvpStatus) {
APICalendarEventRsvpStatus["Going"] = "going";
APICalendarEventRsvpStatus["Maybe"] = "maybe";
APICalendarEventRsvpStatus["Declined"] = "declined";
APICalendarEventRsvpStatus["Invited"] = "invited";
APICalendarEventRsvpStatus["Waitlisted"] = "waitlisted";
})(APICalendarEventRsvpStatus = exports.APICalendarEventRsvpStatus || (exports.APICalendarEventRsvpStatus = {}));
//# sourceMappingURL=CalendarEvent.js.map

4

package.json
{
"name": "guilded-api-typings",
"version": "0.6.0",
"version": "0.7.0",
"description": "Type definitions for the Guilded API.",

@@ -37,4 +37,4 @@ "main": "lib/index.js",

"rimraf": "^3.0.2",
"typescript": "^4.6.3"
"typescript": "^4.7.4"
}
}

@@ -164,2 +164,19 @@ /** Represents a error that occurred while interacting with the Guilded REST API. */

/**
* The endpoint for a calendar event RSVP on Guilded.
* @param channelId The ID of the channel the calendar event belongs to.
* @param calendarEventId The ID of the calendar event the RSVP belongs to.
* @param userId The ID of the user the RSVP belongs to.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpRead
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpUpdate
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpDelete
*/
static calendarEventRsvp(channelId: string, calendarEventId: number, userId: string): `/channels/${string}/events/${number}/rsvps/${string}`;
/**
* The endpoint for calendar event RSVPs on Guilded.
* @param channelId The ID of the channel the calendar event belongs to.
* @param calendarEventId The ID of the calendar event the RSVPs belong to.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpReadMany
*/
static calendarEventRsvps(channelId: string, calendarEventId: number): `/channels/${string}/events/${number}/rsvps`;
/**
* The endpoint for a content reaction on Guilded.

@@ -166,0 +183,0 @@ * @param channelId The ID of the channel the content belongs to.

@@ -23,2 +23,4 @@ import { APIMentions } from './Channel';

color?: number;
/** The limit of RSVPs of the calendar event. */
rsvpLimit?: number;
/** The date the calendar event starts. */

@@ -73,2 +75,4 @@ startsAt: string;

color?: number;
/** The limit of RSVPs of the calendar event. */
rsvpLimit?: number;
/** The duration of the calendar event. */

@@ -91,2 +95,50 @@ duration?: number;

}
/**
* Represents a calendar event RSVP on Guilded.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvp
*/
export interface APICalendarEventRsvp {
/** The ID of the calendar event. */
calendarEventId: number;
/** The ID of the channel the RSVP belongs to. */
channelId: string;
/** The ID of the server the RSVP belongs to. */
serverId: string;
/** The ID of the user the RSVP belongs to. */
userId: string;
/** The status of the RSVP. */
status: APICalendarEventRsvpStatusString;
/** The ID of the user that created the RSVP. */
createdBy: string;
/** The date the RSVP was created. */
createdAt: string;
/** The ID of the user that edited the RSVP. */
updatedBy?: string;
/** The date the RSVP was edited. */
updatedAt?: string;
}
/**
* The status of a calendar event RSVP.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvp
*/
export declare enum APICalendarEventRsvpStatus {
Going = "going",
Maybe = "maybe",
Declined = "declined",
Invited = "invited",
Waitlisted = "waitlisted"
}
/**
* The status string of a calendar event RSVP.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvp
*/
export declare type APICalendarEventRsvpStatusString = `${APICalendarEventRsvpStatus}`;
/**
* The payload for editing a calendar event RSVP.
* @see https://www.guilded.gg/docs/api/calendarEvents/CalendarEventRsvpUpdate
*/
export interface APICalendarEventRsvpEditPayload {
/** The status of the RSVP. */
status: APICalendarEventRsvpStatusString;
}
//# sourceMappingURL=CalendarEvent.d.ts.map

@@ -7,3 +7,3 @@ import { APIChannel } from './structures/Channel';

import { APIWebhook } from './structures/Webhook';
import { APICalendarEvent } from './structures/CalendarEvent';
import { APICalendarEvent, APICalendarEventRsvp } from './structures/CalendarEvent';
import { APIClientUser } from './structures/User';

@@ -259,2 +259,32 @@ /** The ready payload of the websocket. */

/**
* Emitted when a calendar event RSVP is edited.
* @see https://www.guilded.gg/docs/api/websockets/CalendarEventRsvpUpdated
*/
CalendarEventRsvpUpdated: {
/** The ID of the server the calendar event RSVP belongs to. */
serverId: string;
/** The edited calendar event RSVP. */
calendarEventRsvp: APICalendarEventRsvp;
};
/**
* Emitted when calendar event RSVPs are edited.
* @see https://www.guilded.gg/docs/api/websockets/CalendarEventRsvpManyUpdated
*/
CalendarEventRsvpManyUpdated: {
/** The ID of the server the calendar event RSVPs belong to. */
serverId: string;
/** The edited calendar event RSVPs. */
calendarEventRsvps: APICalendarEventRsvp[];
};
/**
* Emitted when a calendar event RSVP is deleted.
* @see https://www.guilded.gg/docs/api/websockets/CalendarEventRsvpDeleted
*/
CalendarEventRsvpDeleted: {
/** The ID of the server the calendar event RSVP belongs to. */
serverId: string;
/** The deleted calendar event RSVP. */
calendarEventRsvp: APICalendarEventRsvp;
};
/**
* Emitted when a list item is created.

@@ -261,0 +291,0 @@ * @see https://www.guilded.gg/docs/api/websockets/ListItemCreated

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc