This commit is contained in:
2025-09-27 05:12:15 +04:00
parent ab1d8b1157
commit ba75cc39a0
7 changed files with 45 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
export interface Attendee {
user_id?: number;
status_latest?: string;
attendance_required?: boolean;
admin?: boolean;
organizer?: boolean;
location?: string;
log?: any[];
}

View File

@@ -0,0 +1,5 @@
export interface AttendeeLog {
timestamp?: number;
status?: string;
remark?: string;
}

View File

@@ -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
}

View File

@@ -0,0 +1,5 @@
export interface EventDoc {
fs_item?: number;
cat?: string;
public?: boolean;
}

View File

@@ -0,0 +1,6 @@
export interface EventLocation {
name?: string;
description?: string;
cat?: string;
docs?: any[];
}

View File

@@ -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);
}