updates to concierge bot to support adding services and routes
This commit is contained in:
@@ -31,7 +31,7 @@ export interface CalendarEvent {
|
||||
* @param from_event Event from which to get the next 50 chronological event summaries
|
||||
* @returns {Partial<CalendarEvent>[]}
|
||||
*/
|
||||
export async function listCalendarEventSummaries(options: EsiOptions, from_event?: number) {
|
||||
export async function listCalendarEventSummaries(options: EsiOptions, from_event?: number): Promise<Partial<CalendarEvent>[]> {
|
||||
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-calendar.read_calendar_events.v1']);
|
||||
return await esiFetch<Partial<CalendarEvent>[]>(`/characters/${character_id}/calendar/${from_event ?? '?from_event=' + from_event}`, {
|
||||
...options,
|
||||
@@ -62,7 +62,7 @@ export interface CalendarEventDetails {
|
||||
* @param event_id Event Id
|
||||
* @returns {Partial<CalendarEventDetails>}
|
||||
*/
|
||||
export async function getEventDetails(options: EsiOptions, event_id: number) {
|
||||
export async function getEventDetails(options: EsiOptions, event_id: number): Promise<Partial<CalendarEventDetails>> {
|
||||
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-calendar.read_calendar_events.v1']);
|
||||
return await esiFetch<Partial<CalendarEventDetails>>(`/characters/${character_id}/calendar/${event_id}/`, {
|
||||
...options,
|
||||
@@ -79,7 +79,11 @@ export async function getEventDetails(options: EsiOptions, event_id: number) {
|
||||
* @param event_id Event Id
|
||||
* @param response Response: 'accepted' | 'declined' | 'tentative'
|
||||
*/
|
||||
export async function respondToEvent(options: EsiOptions, event_id: number, response: 'accepted' | 'declined' | 'tentative') {
|
||||
export async function respondToEvent(
|
||||
options: EsiOptions,
|
||||
event_id: number,
|
||||
response: 'accepted' | 'declined' | 'tentative',
|
||||
): Promise<void> {
|
||||
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-calendar.respond_calendar_events.v1']);
|
||||
return await esiFetch<void>(`/characters/${character_id}/calendar/${event_id}/`, {
|
||||
...options,
|
||||
@@ -104,7 +108,7 @@ export interface CalendarEventAttendee {
|
||||
* @param event_id Event Id
|
||||
* @returns {Partial<CalendarEventAttendee>[]}
|
||||
*/
|
||||
export async function getEventAttendees(options: EsiOptions, event_id: number) {
|
||||
export async function getEventAttendees(options: EsiOptions, event_id: number): Promise<Partial<CalendarEventAttendee>[]> {
|
||||
const character_id = checkScopesAndGetCharacterId(options, ESI_SCOPE['esi-calendar.read_calendar_events.v1']);
|
||||
return await esiFetch<Partial<CalendarEventAttendee>[]>(`/characters/${character_id}/calendar/${event_id}/attendees/`, {
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user