...
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export interface Attendee {
|
||||
user_id?: number;
|
||||
status_latest?: string;
|
||||
attendance_required?: boolean;
|
||||
admin?: boolean;
|
||||
organizer?: boolean;
|
||||
location?: string;
|
||||
log?: any[];
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface AttendeeLog {
|
||||
timestamp?: number;
|
||||
status?: string;
|
||||
remark?: string;
|
||||
}
|
||||
@@ -2,16 +2,18 @@ export interface CalendarEvent {
|
||||
title?: string;
|
||||
start_time?: number;
|
||||
end_time?: number;
|
||||
location?: string;
|
||||
registration_desks?: any[];
|
||||
attendees?: any[];
|
||||
fs_items?: any[];
|
||||
docs?: any[];
|
||||
calendar_id?: number;
|
||||
status?: string;
|
||||
is_all_day?: boolean;
|
||||
is_recurring?: boolean;
|
||||
recurrence?: any[];
|
||||
reminder_mins?: any[];
|
||||
color?: string;
|
||||
timezone?: string;
|
||||
priority?: string;
|
||||
public?: boolean;
|
||||
locations?: any[];
|
||||
is_template?: boolean;
|
||||
// Properties from Base are inherited
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface EventDoc {
|
||||
fs_item?: number;
|
||||
cat?: string;
|
||||
public?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface EventLocation {
|
||||
name?: string;
|
||||
description?: string;
|
||||
cat?: string;
|
||||
docs?: any[];
|
||||
}
|
||||
@@ -4,7 +4,10 @@ import fetch from 'node-fetch';
|
||||
import { Base } from './Base';
|
||||
import { Calendar } from './Calendar';
|
||||
import { CalendarEvent } from './CalendarEvent';
|
||||
import { RecurrenceRule } from './RecurrenceRule';
|
||||
import { Attendee } from './Attendee';
|
||||
import { AttendeeLog } from './AttendeeLog';
|
||||
import { EventDoc } from './EventDoc';
|
||||
import { EventLocation } from './EventLocation';
|
||||
import { ChatGroup } from './ChatGroup';
|
||||
import { ChatMessage } from './ChatMessage';
|
||||
import { MessageLink } from './MessageLink';
|
||||
@@ -65,7 +68,7 @@ export class HeroModelsClient {
|
||||
return this.send('calendar_get', params);
|
||||
}
|
||||
|
||||
async calendar_set(params: { calendar: Calendar }): Promise<number> {
|
||||
async calendar_set(params: { calendar: Calendar, events: any[], color: string, timezone: string, is_public: boolean }): Promise<number> {
|
||||
return this.send('calendar_set', params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user