@withpotter/calendar-sync — module reference

A support module — it mounts no HTTP routes of its own but contributes the internal building blocks below. See the package internal architecture for how the layers fit together.

Internals

Entities

Sequelize models owned by this module.

CalendarConnection — table calendar_connections

FieldType
idstring
tenantIdstring
tenantTenant
namestring
providerCalendarProvider
externalCalendarIdstring | null
feedUrlstring | null
accessTokenstring | null
refreshTokenstring | null
tokenExpiresAtDate | null
syncDirectionSyncDirection
syncIntervalMinutesnumber
blockExternalEventsboolean
showExternalEventsboolean
eventColorstring
statusCalendarSyncStatus
lastErrorMessagestring | null
lastSyncAtDate | null
nextSyncAtDate | null
syncedEventsCountnumber
teamMemberIdstring | null
createdAtDate
updatedAtDate
idstring
tenantIdstring
connectionIdstring
connectionCalendarConnection
externalEventIdstring
titlestring | null
descriptionstring | null
locationstring | null
startTimeDate
endTimeDate
isAllDayboolean
timezonestring | null
blocksAvailabilityboolean
rawDataRecord<string, unknown> | null
lastSyncedAtDate | null
createdAtDate
updatedAtDate

Repositories

Data-access classes wrapping the entities.

CalendarSyncRepository

createConnection · findAllConnections · findConnectionById · findConnectionByIdOrFail · updateConnection · deleteConnection · setConnectionStatus · markSyncComplete · getConnectionsDueForSync · upsertSyncedEvent · bulkUpsertSyncedEvents · findSyncedEvents · deleteSyncedEvent · deleteStaleEvents · getBlockedTimeSlots · getStats

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.