MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / create

Method create

lib/models/calendar.ts:292–309  ·  view source on GitHub ↗
(
    userId: string,
    calendarId: string,
    eventId: string,
    vCalendar: string,
  )

Source from the content-addressed store, hash-verified

290 }
291
292 static async create(
293 userId: string,
294 calendarId: string,
295 eventId: string,
296 vCalendar: string,
297 ): Promise<void> {
298 const client = await getClient(userId);
299
300 const calendarUrl = `${calendarConfig.calDavUrl}/${userId}/${calendarId}/`;
301
302 await client.createCalendarObject({
303 calendar: {
304 url: calendarUrl,
305 },
306 iCalString: vCalendar,
307 filename: `${eventId}.ics`,
308 });
309 }
310
311 static async update(
312 userId: string,

Callers

nothing calls this directly

Calls 2

createCalendarObjectMethod · 0.80
getClientFunction · 0.70

Tested by

no test coverage detected