@happyvertical/smrt-events 0.49.3 → 0.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/manifest.json +425 -38
- package/dist/smrt-knowledge.json +8 -8
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/__smrt-register__.ts
|
|
19
|
-
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-events\",\"packageVersion\":\"0.49.3\",\"objects\":{\"@happyvertical/smrt-events:EventAssetCollection\":{\"name\":\"eventassetcollection\",\"className\":\"EventAssetCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventAssetCollection\",\"collection\":\"eventassets\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventAssetCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"event_assets\"},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"EventAsset\",\"exportName\":\"EventAssetCollection\",\"collectionExportName\":\"EventAssetCollectionCollection\",\"schema\":{\"tableName\":\"event_assets\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_assets\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"event_assets_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"event_assets_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"e9c466e3\"}},\"@happyvertical/smrt-events:EventCollection\":{\"name\":\"eventcollection\",\"className\":\"EventCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventCollection\",\"collection\":\"events\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"getBySeriesId\":{\"name\":\"getBySeriesId\",\"async\":true,\"parameters\":[{\"name\":\"seriesId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByPlace\":{\"name\":\"getByPlace\",\"async\":true,\"parameters\":[{\"name\":\"placeId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByDateRange\":{\"name\":\"getByDateRange\",\"async\":true,\"parameters\":[{\"name\":\"startDate\",\"type\":\"Date\",\"optional\":false},{\"name\":\"endDate\",\"type\":\"Date\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getUpcoming\":{\"name\":\"getUpcoming\",\"async\":true,\"parameters\":[{\"name\":\"limit\",\"type\":\"number\",\"optional\":true}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByStatus\":{\"name\":\"getByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"EventStatus\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByType\":{\"name\":\"getByType\",\"async\":true,\"parameters\":[{\"name\":\"typeId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getRootEvents\":{\"name\":\"getRootEvents\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByParent\":{\"name\":\"getByParent\",\"async\":true,\"parameters\":[{\"name\":\"parentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getEventTree\":{\"name\":\"getEventTree\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event | null>\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"search\":{\"name\":\"search\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"string\",\"optional\":false},{\"name\":\"filters\",\"type\":\"EventSearchFilters\",\"optional\":true}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getInProgress\":{\"name\":\"getInProgress\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Event\",\"exportName\":\"EventCollection\",\"collectionExportName\":\"EventCollectionCollection\",\"schema\":{\"tableName\":\"event_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_collections\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"event_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"event_collections_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"4f32e011\"}},\"@happyvertical/smrt-events:EventParticipantCollection\":{\"name\":\"eventparticipantcollection\",\"className\":\"EventParticipantCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventParticipantCollection\",\"collection\":\"eventparticipants\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventParticipantCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getByPlacement\":{\"name\":\"getByPlacement\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getByGroup\":{\"name\":\"getByGroup\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"groupId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getHome\":{\"name\":\"getHome\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getAway\":{\"name\":\"getAway\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"search\":{\"name\":\"search\",\"async\":true,\"parameters\":[{\"name\":\"filters\",\"type\":\"ParticipantSearchFilters\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getParticipantStats\":{\"name\":\"getParticipantStats\",\"async\":true,\"parameters\":[{\"name\":\"profileId\",\"type\":\"string\",\"optional\":false},{\"name\":\"eventTypeId\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"EventParticipant\",\"exportName\":\"EventParticipantCollection\",\"collectionExportName\":\"EventParticipantCollectionCollection\",\"schema\":{\"tableName\":\"event_participant_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_participant_collections\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"event_participant_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"event_participant_collections_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"5971b720\"}},\"@happyvertical/smrt-events:EventSeriesCollection\":{\"name\":\"eventseriescollection\",\"className\":\"EventSeriesCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventSeriesCollection\",\"collection\":\"eventserieses\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventSeriesCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"getByOrganizer\":{\"name\":\"getByOrganizer\",\"async\":true,\"parameters\":[{\"name\":\"organizerId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"getActive\":{\"name\":\"getActive\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"getUpcoming\":{\"name\":\"getUpcoming\",\"async\":true,\"parameters\":[{\"name\":\"limit\",\"type\":\"number\",\"optional\":true}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"getByType\":{\"name\":\"getByType\",\"async\":true,\"parameters\":[{\"name\":\"typeId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"search\":{\"name\":\"search\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"string\",\"optional\":false},{\"name\":\"filters\",\"type\":\"EventSeriesSearchFilters\",\"optional\":true}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"EventSeries\",\"exportName\":\"EventSeriesCollection\",\"collectionExportName\":\"EventSeriesCollectionCollection\",\"schema\":{\"tableName\":\"event_series_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_series_collections\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"event_series_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"event_series_collections_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"a0233b62\"}},\"@happyvertical/smrt-events:EventTypeCollection\":{\"name\":\"eventtypecollection\",\"className\":\"EventTypeCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventTypeCollection\",\"collection\":\"eventtypes\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventTypeCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"getOrCreate\":{\"name\":\"getOrCreate\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"name\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<EventType>\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType | null>\",\"isStatic\":false,\"isPublic\":true},\"initializeDefaults\":{\"name\":\"initializeDefaults\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"EventType\",\"exportName\":\"EventTypeCollection\",\"collectionExportName\":\"EventTypeCollectionCollection\",\"schema\":{\"tableName\":\"event_type_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_type_collections\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"}},\"indexes\":[{\"name\":\"event_type_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true},{\"name\":\"event_type_collections_created_at_idx\",\"columns\":[\"created_at\"]}],\"version\":\"20331d5e\"}},\"@happyvertical/smrt-events:Event\":{\"name\":\"event\",\"className\":\"Event\",\"qualifiedName\":\"@happyvertical/smrt-events:Event\",\"collection\":\"events\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/Event.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"parentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Event\",\"_meta\":{\"nullable\":true,\"constraint\":{\"engines\":[\"postgres\",\"sqlite\"]}}},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"seriesId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"EventSeries\",\"_meta\":{\"constraint\":{\"engines\":[\"postgres\",\"sqlite\"]}}},\"typeId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"EventType\",\"_meta\":{\"constraint\":{\"engines\":[\"postgres\",\"sqlite\"]}}},\"placeId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-places:Place\"},\"description\":{\"type\":\"text\",\"required\":false},\"startDate\":{\"type\":\"datetime\",\"required\":false},\"endDate\":{\"type\":\"datetime\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"scheduled\"},\"round\":{\"type\":\"integer\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"externalId\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getParent\":{\"name\":\"getParent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this | null>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this[]>\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this[]>\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this[]>\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<HierarchyView<this>>\",\"isStatic\":false,\"isPublic\":true},\"moveTo\":{\"name\":\"moveTo\",\"async\":true,\"parameters\":[{\"name\":\"newParent\",\"type\":\"this | string | null\",\"optional\":false,\"unionBranches\":[{\"type\":\"this\"},{\"type\":\"string\"},{\"type\":\"null\"}]}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateStatus\":{\"name\":\"updateStatus\",\"async\":true,\"parameters\":[{\"name\":\"newStatus\",\"type\":\"EventStatus\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getSeries\":{\"name\":\"getSeries\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getType\":{\"name\":\"getType\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPlace\":{\"name\":\"getPlace\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getRootEvent\":{\"name\":\"getRootEvent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event>\",\"isStatic\":false,\"isPublic\":true},\"getParticipants\":{\"name\":\"getParticipants\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isInProgress\":{\"name\":\"isInProgress\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"isRoot\":{\"name\":\"isRoot\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"},\"conflictColumns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"]},\"extends\":\"SmrtHierarchical\",\"exportName\":\"Event\",\"collectionExportName\":\"EventCollection\",\"schema\":{\"tableName\":\"events\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"events\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"parent_id\\\" UUID,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"series_id\\\" UUID,\\n \\\"type_id\\\" UUID,\\n \\\"place_id\\\" UUID,\\n \\\"description\\\" TEXT,\\n \\\"start_date\\\" TIMESTAMP,\\n \\\"end_date\\\" TIMESTAMP,\\n \\\"status\\\" TEXT DEFAULT 'scheduled',\\n \\\"round\\\" INTEGER,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"series_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_series\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"type_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_types\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"place_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"start_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"end_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"scheduled\"},\"round\":{\"type\":\"INTEGER\",\"notNull\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"events_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"events_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"events_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"events_parent_id_idx\",\"columns\":[\"parent_id\"]},{\"name\":\"events_series_id_idx\",\"columns\":[\"series_id\"]},{\"name\":\"events_type_id_idx\",\"columns\":[\"type_id\"]},{\"name\":\"events_place_id_idx\",\"columns\":[\"place_id\"]}],\"version\":\"373ccc72\"}},\"@happyvertical/smrt-events:EventAsset\":{\"name\":\"eventasset\",\"className\":\"EventAsset\",\"qualifiedName\":\"@happyvertical/smrt-events:EventAsset\",\"collection\":\"eventassets\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventAsset.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"eventId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Event\",\"_meta\":{\"required\":true}},\"assetId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"relationship\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"sortOrder\":{\"type\":\"integer\",\"required\":true,\"default\":0}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"event_assets\",\"conflictColumns\":[\"event_id\",\"asset_id\",\"relationship\"],\"api\":false,\"mcp\":false,\"cli\":false,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"EventAsset\",\"collectionExportName\":\"EventAssetCollection\",\"validationRules\":[{\"field\":\"eventId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"assetId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"},{\"field\":\"relationship\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"sortOrder\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"event_assets\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_assets\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"event_id\\\" UUID NOT NULL,\\n \\\"asset_id\\\" UUID NOT NULL,\\n \\\"relationship\\\" TEXT NOT NULL,\\n \\\"sort_order\\\" INTEGER NOT NULL DEFAULT 0\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"event_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"CASCADE\",\"onUpdate\":\"CASCADE\"}},\"asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"relationship\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"sort_order\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0}},\"indexes\":[{\"name\":\"event_assets_event_id_asset_id_idx\",\"columns\":[\"event_id\",\"asset_id\",\"relationship\"],\"unique\":true},{\"name\":\"event_assets_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"event_assets_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_assets_asset_id_idx\",\"columns\":[\"asset_id\"]}],\"version\":\"aeebedc6\"}},\"@happyvertical/smrt-events:EventParticipant\":{\"name\":\"eventparticipant\",\"className\":\"EventParticipant\",\"qualifiedName\":\"@happyvertical/smrt-events:EventParticipant\",\"collection\":\"eventparticipants\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventParticipant.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"eventId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Event\"},\"profileId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"role\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"placement\":{\"type\":\"integer\",\"required\":false},\"groupId\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"externalId\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getEvent\":{\"name\":\"getEvent\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getProfile\":{\"name\":\"getProfile\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGroupParticipants\":{\"name\":\"getGroupParticipants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"isHome\":{\"name\":\"isHome\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"isAway\":{\"name\":\"isAway\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"conflictColumns\":[\"event_id\",\"profile_id\",\"role\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"EventParticipant\",\"collectionExportName\":\"EventParticipantCollection\",\"schema\":{\"tableName\":\"event_participants\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_participants\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"event_id\\\" UUID,\\n \\\"profile_id\\\" UUID,\\n \\\"role\\\" TEXT DEFAULT '',\\n \\\"placement\\\" INTEGER,\\n \\\"group_id\\\" TEXT,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"event_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"CASCADE\",\"onUpdate\":\"CASCADE\"}},\"profile_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"role\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"placement\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"group_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"event_participants_event_id_profile_id_idx\",\"columns\":[\"event_id\",\"profile_id\",\"role\"],\"unique\":true},{\"name\":\"event_participants_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"event_participants_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_participants_profile_id_idx\",\"columns\":[\"profile_id\"]}],\"version\":\"c2faac84\"}},\"@happyvertical/smrt-events:EventSeries\":{\"name\":\"eventseries\",\"className\":\"EventSeries\",\"qualifiedName\":\"@happyvertical/smrt-events:EventSeries\",\"collection\":\"eventserieses\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventSeries.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"typeId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"EventType\"},\"organizerId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"description\":{\"type\":\"text\",\"required\":false},\"startDate\":{\"type\":\"datetime\",\"required\":false},\"endDate\":{\"type\":\"datetime\",\"required\":false},\"recurrence\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"externalId\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getRecurrence\":{\"name\":\"getRecurrence\",\"async\":false,\"parameters\":[],\"returnType\":\"RecurrencePattern | null\",\"isStatic\":false,\"isPublic\":true},\"setRecurrence\":{\"name\":\"setRecurrence\",\"async\":false,\"parameters\":[{\"name\":\"pattern\",\"type\":\"RecurrencePattern\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getType\":{\"name\":\"getType\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getOrganizer\":{\"name\":\"getOrganizer\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getEvents\":{\"name\":\"getEvents\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isActive\":{\"name\":\"isActive\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"},\"conflictColumns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"]},\"extends\":\"SmrtObject\",\"exportName\":\"EventSeries\",\"collectionExportName\":\"EventSeriesCollection\",\"schema\":{\"tableName\":\"event_series\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_series\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"type_id\\\" UUID,\\n \\\"organizer_id\\\" UUID,\\n \\\"description\\\" TEXT,\\n \\\"start_date\\\" TIMESTAMP,\\n \\\"end_date\\\" TIMESTAMP,\\n \\\"recurrence\\\" TEXT,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"type_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_types\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\"}},\"organizer_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"start_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"end_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"recurrence\":{\"type\":\"TEXT\",\"notNull\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"event_series_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"event_series_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"event_series_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_series_type_id_idx\",\"columns\":[\"type_id\"]},{\"name\":\"event_series_organizer_id_idx\",\"columns\":[\"organizer_id\"]}],\"version\":\"c79f5863\"}},\"@happyvertical/smrt-events:EventType\":{\"name\":\"eventtype\",\"className\":\"EventType\",\"qualifiedName\":\"@happyvertical/smrt-events:EventType\",\"collection\":\"eventtypes\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventType.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"description\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"schema\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"participantSchema\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"createdAt\":{\"type\":\"datetime\",\"required\":false},\"updatedAt\":{\"type\":\"datetime\",\"required\":false}},\"methods\":{\"getSchema\":{\"name\":\"getSchema\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setSchema\":{\"name\":\"setSchema\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getParticipantSchema\":{\"name\":\"getParticipantSchema\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setParticipantSchema\":{\"name\":\"setParticipantSchema\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"_slug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType | null>\",\"isStatic\":true,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"},\"conflictColumns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"]},\"extends\":\"SmrtObject\",\"exportName\":\"EventType\",\"collectionExportName\":\"EventTypeCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"event_types\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_types\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"schema\\\" TEXT DEFAULT '',\\n \\\"participant_schema\\\" TEXT DEFAULT ''\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"schema\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"participant_schema\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"}},\"indexes\":[{\"name\":\"event_types_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"event_types_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"event_types_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"version\":\"922ae3b0\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-assets\",\"@happyvertical/smrt-core\",\"@happyvertical/smrt-places\",\"@happyvertical/smrt-profiles\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
19
|
+
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-events\",\"packageVersion\":\"0.49.4\",\"objects\":{\"@happyvertical/smrt-events:EventAssetCollection\":{\"name\":\"eventassetcollection\",\"className\":\"EventAssetCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventAssetCollection\",\"collection\":\"eventassets\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventAssetCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":false,\"mcp\":false,\"cli\":false,\"tableName\":\"event_assets\"},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"EventAsset\",\"exportName\":\"EventAssetCollection\",\"collectionExportName\":\"EventAssetCollectionCollection\",\"schema\":{\"tableName\":\"event_assets\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_assets\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"event_id\\\" UUID NOT NULL,\\n \\\"asset_id\\\" UUID NOT NULL,\\n \\\"relationship\\\" TEXT NOT NULL,\\n \\\"sort_order\\\" INTEGER NOT NULL DEFAULT 0\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"event_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"CASCADE\",\"onUpdate\":\"CASCADE\"}},\"asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"relationship\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"sort_order\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0}},\"indexes\":[{\"name\":\"event_assets_event_id_asset_id_idx\",\"columns\":[\"event_id\",\"asset_id\",\"relationship\"],\"unique\":true},{\"name\":\"event_assets_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"event_assets_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_assets_asset_id_idx\",\"columns\":[\"asset_id\"]}],\"version\":\"aeebedc6\"}},\"@happyvertical/smrt-events:EventCollection\":{\"name\":\"eventcollection\",\"className\":\"EventCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventCollection\",\"collection\":\"events\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"getBySeriesId\":{\"name\":\"getBySeriesId\",\"async\":true,\"parameters\":[{\"name\":\"seriesId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByPlace\":{\"name\":\"getByPlace\",\"async\":true,\"parameters\":[{\"name\":\"placeId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByDateRange\":{\"name\":\"getByDateRange\",\"async\":true,\"parameters\":[{\"name\":\"startDate\",\"type\":\"Date\",\"optional\":false},{\"name\":\"endDate\",\"type\":\"Date\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getUpcoming\":{\"name\":\"getUpcoming\",\"async\":true,\"parameters\":[{\"name\":\"limit\",\"type\":\"number\",\"optional\":true}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByStatus\":{\"name\":\"getByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"EventStatus\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByType\":{\"name\":\"getByType\",\"async\":true,\"parameters\":[{\"name\":\"typeId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getRootEvents\":{\"name\":\"getRootEvents\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getByParent\":{\"name\":\"getByParent\",\"async\":true,\"parameters\":[{\"name\":\"parentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getEventTree\":{\"name\":\"getEventTree\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event | null>\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"search\":{\"name\":\"search\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"string\",\"optional\":false},{\"name\":\"filters\",\"type\":\"EventSearchFilters\",\"optional\":true}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"getInProgress\":{\"name\":\"getInProgress\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Event[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Event\",\"exportName\":\"EventCollection\",\"collectionExportName\":\"EventCollectionCollection\",\"schema\":{\"tableName\":\"events\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"events\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"parent_id\\\" UUID,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"series_id\\\" UUID,\\n \\\"type_id\\\" UUID,\\n \\\"place_id\\\" UUID,\\n \\\"description\\\" TEXT,\\n \\\"start_date\\\" TIMESTAMP,\\n \\\"end_date\\\" TIMESTAMP,\\n \\\"status\\\" TEXT DEFAULT 'scheduled',\\n \\\"round\\\" INTEGER,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"series_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_series\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"type_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_types\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"place_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"start_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"end_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"scheduled\"},\"round\":{\"type\":\"INTEGER\",\"notNull\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"events_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"events_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"events_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"events_parent_id_idx\",\"columns\":[\"parent_id\"]},{\"name\":\"events_series_id_idx\",\"columns\":[\"series_id\"]},{\"name\":\"events_type_id_idx\",\"columns\":[\"type_id\"]},{\"name\":\"events_place_id_idx\",\"columns\":[\"place_id\"]}],\"version\":\"373ccc72\"}},\"@happyvertical/smrt-events:EventParticipantCollection\":{\"name\":\"eventparticipantcollection\",\"className\":\"EventParticipantCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventParticipantCollection\",\"collection\":\"eventparticipants\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventParticipantCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"byLeft\":{\"name\":\"byLeft\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"byRight\":{\"name\":\"byRight\",\"async\":true,\"parameters\":[{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem[]>\",\"isStatic\":false,\"isPublic\":true},\"attach\":{\"name\":\"attach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<TItem>\",\"isStatic\":false,\"isPublic\":true},\"detach\":{\"name\":\"detach\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightId\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionFilterOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"setLinks\":{\"name\":\"setLinks\",\"async\":true,\"parameters\":[{\"name\":\"leftId\",\"type\":\"string\",\"optional\":false},{\"name\":\"rightIds\",\"type\":\"string[]\",\"optional\":false},{\"name\":\"opts\",\"type\":\"JunctionAttachOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getByPlacement\":{\"name\":\"getByPlacement\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getByGroup\":{\"name\":\"getByGroup\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false},{\"name\":\"groupId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getHome\":{\"name\":\"getHome\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getAway\":{\"name\":\"getAway\",\"async\":true,\"parameters\":[{\"name\":\"eventId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"search\":{\"name\":\"search\",\"async\":true,\"parameters\":[{\"name\":\"filters\",\"type\":\"ParticipantSearchFilters\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"getParticipantStats\":{\"name\":\"getParticipantStats\",\"async\":true,\"parameters\":[{\"name\":\"profileId\",\"type\":\"string\",\"optional\":false},{\"name\":\"eventTypeId\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<object>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtJunction\",\"extendsTypeArg\":\"EventParticipant\",\"exportName\":\"EventParticipantCollection\",\"collectionExportName\":\"EventParticipantCollectionCollection\",\"schema\":{\"tableName\":\"event_participants\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_participants\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"event_id\\\" UUID,\\n \\\"profile_id\\\" UUID,\\n \\\"role\\\" TEXT DEFAULT '',\\n \\\"placement\\\" INTEGER,\\n \\\"group_id\\\" TEXT,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"event_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"CASCADE\",\"onUpdate\":\"CASCADE\"}},\"profile_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"role\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"placement\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"group_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"event_participants_event_id_profile_id_idx\",\"columns\":[\"event_id\",\"profile_id\",\"role\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"event_participants_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"event_participants_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_participants_profile_id_idx\",\"columns\":[\"profile_id\"]}],\"version\":\"c2faac84\"}},\"@happyvertical/smrt-events:EventSeriesCollection\":{\"name\":\"eventseriescollection\",\"className\":\"EventSeriesCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventSeriesCollection\",\"collection\":\"eventserieses\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventSeriesCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"getByOrganizer\":{\"name\":\"getByOrganizer\",\"async\":true,\"parameters\":[{\"name\":\"organizerId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"getActive\":{\"name\":\"getActive\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"getUpcoming\":{\"name\":\"getUpcoming\",\"async\":true,\"parameters\":[{\"name\":\"limit\",\"type\":\"number\",\"optional\":true}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"getByType\":{\"name\":\"getByType\",\"async\":true,\"parameters\":[{\"name\":\"typeId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"search\":{\"name\":\"search\",\"async\":true,\"parameters\":[{\"name\":\"query\",\"type\":\"string\",\"optional\":false},{\"name\":\"filters\",\"type\":\"EventSeriesSearchFilters\",\"optional\":true}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventSeries[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"EventSeries\",\"exportName\":\"EventSeriesCollection\",\"collectionExportName\":\"EventSeriesCollectionCollection\",\"schema\":{\"tableName\":\"event_series\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_series\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"type_id\\\" UUID,\\n \\\"organizer_id\\\" UUID,\\n \\\"description\\\" TEXT,\\n \\\"start_date\\\" TIMESTAMP,\\n \\\"end_date\\\" TIMESTAMP,\\n \\\"recurrence\\\" TEXT,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"type_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_types\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\"}},\"organizer_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"start_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"end_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"recurrence\":{\"type\":\"TEXT\",\"notNull\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"event_series_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"event_series_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"event_series_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_series_type_id_idx\",\"columns\":[\"type_id\"]},{\"name\":\"event_series_organizer_id_idx\",\"columns\":[\"organizer_id\"]}],\"version\":\"c79f5863\"}},\"@happyvertical/smrt-events:EventTypeCollection\":{\"name\":\"eventtypecollection\",\"className\":\"EventTypeCollection\",\"qualifiedName\":\"@happyvertical/smrt-events:EventTypeCollection\",\"collection\":\"eventtypes\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/collections/EventTypeCollection.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{},\"methods\":{\"getOrCreate\":{\"name\":\"getOrCreate\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false},{\"name\":\"name\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<EventType>\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"slug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType | null>\",\"isStatic\":false,\"isPublic\":true},\"initializeDefaults\":{\"name\":\"initializeDefaults\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"EventType\",\"exportName\":\"EventTypeCollection\",\"collectionExportName\":\"EventTypeCollectionCollection\",\"schema\":{\"tableName\":\"event_types\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_types\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"schema\\\" TEXT DEFAULT '',\\n \\\"participant_schema\\\" TEXT DEFAULT ''\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"schema\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"participant_schema\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"}},\"indexes\":[{\"name\":\"event_types_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"event_types_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"event_types_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"version\":\"922ae3b0\"}},\"@happyvertical/smrt-events:Event\":{\"name\":\"event\",\"className\":\"Event\",\"qualifiedName\":\"@happyvertical/smrt-events:Event\",\"collection\":\"events\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/Event.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"parentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Event\",\"_meta\":{\"nullable\":true,\"constraint\":{\"engines\":[\"postgres\",\"sqlite\"]}}},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"seriesId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"EventSeries\",\"_meta\":{\"constraint\":{\"engines\":[\"postgres\",\"sqlite\"]}}},\"typeId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"EventType\",\"_meta\":{\"constraint\":{\"engines\":[\"postgres\",\"sqlite\"]}}},\"placeId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-places:Place\"},\"description\":{\"type\":\"text\",\"required\":false},\"startDate\":{\"type\":\"datetime\",\"required\":false},\"endDate\":{\"type\":\"datetime\",\"required\":false},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"scheduled\"},\"round\":{\"type\":\"integer\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"externalId\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getParent\":{\"name\":\"getParent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this | null>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this[]>\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this[]>\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<this[]>\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<HierarchyView<this>>\",\"isStatic\":false,\"isPublic\":true},\"moveTo\":{\"name\":\"moveTo\",\"async\":true,\"parameters\":[{\"name\":\"newParent\",\"type\":\"this | string | null\",\"optional\":false,\"unionBranches\":[{\"type\":\"this\"},{\"type\":\"string\"},{\"type\":\"null\"}]}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateStatus\":{\"name\":\"updateStatus\",\"async\":true,\"parameters\":[{\"name\":\"newStatus\",\"type\":\"EventStatus\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getSeries\":{\"name\":\"getSeries\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getType\":{\"name\":\"getType\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getPlace\":{\"name\":\"getPlace\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getRootEvent\":{\"name\":\"getRootEvent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Event>\",\"isStatic\":false,\"isPublic\":true},\"getParticipants\":{\"name\":\"getParticipants\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getAssets\":{\"name\":\"getAssets\",\"async\":true,\"parameters\":[{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<Asset[]>\",\"isStatic\":false,\"isPublic\":true},\"addAsset\":{\"name\":\"addAsset\",\"async\":true,\"parameters\":[{\"name\":\"asset\",\"type\":\"Asset\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"any\",\"optional\":true,\"default\":\"attachment\"},{\"name\":\"sortOrder\",\"type\":\"any\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"removeAsset\":{\"name\":\"removeAsset\",\"async\":true,\"parameters\":[{\"name\":\"assetId\",\"type\":\"string\",\"optional\":false},{\"name\":\"relationship\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isInProgress\":{\"name\":\"isInProgress\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"isRoot\":{\"name\":\"isRoot\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"},\"conflictColumns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"]},\"extends\":\"SmrtHierarchical\",\"exportName\":\"Event\",\"collectionExportName\":\"EventCollection\",\"schema\":{\"tableName\":\"events\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"events\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"parent_id\\\" UUID,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"series_id\\\" UUID,\\n \\\"type_id\\\" UUID,\\n \\\"place_id\\\" UUID,\\n \\\"description\\\" TEXT,\\n \\\"start_date\\\" TIMESTAMP,\\n \\\"end_date\\\" TIMESTAMP,\\n \\\"status\\\" TEXT DEFAULT 'scheduled',\\n \\\"round\\\" INTEGER,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"series_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_series\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"type_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_types\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\",\"engines\":[\"postgres\",\"sqlite\"]}},\"place_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"start_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"end_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"scheduled\"},\"round\":{\"type\":\"INTEGER\",\"notNull\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"events_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"events_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"events_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"events_parent_id_idx\",\"columns\":[\"parent_id\"]},{\"name\":\"events_series_id_idx\",\"columns\":[\"series_id\"]},{\"name\":\"events_type_id_idx\",\"columns\":[\"type_id\"]},{\"name\":\"events_place_id_idx\",\"columns\":[\"place_id\"]}],\"version\":\"373ccc72\"}},\"@happyvertical/smrt-events:EventAsset\":{\"name\":\"eventasset\",\"className\":\"EventAsset\",\"qualifiedName\":\"@happyvertical/smrt-events:EventAsset\",\"collection\":\"eventassets\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventAsset.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"eventId\":{\"type\":\"foreignKey\",\"required\":true,\"related\":\"Event\",\"_meta\":{\"required\":true}},\"assetId\":{\"type\":\"crossPackageRef\",\"required\":true,\"related\":\"@happyvertical/smrt-assets:Asset\"},\"relationship\":{\"type\":\"text\",\"required\":true,\"_meta\":{\"required\":true}},\"sortOrder\":{\"type\":\"integer\",\"required\":true,\"default\":0}},\"methods\":{},\"decoratorConfig\":{\"tableName\":\"event_assets\",\"conflictColumns\":[\"event_id\",\"asset_id\",\"relationship\"],\"api\":false,\"mcp\":false,\"cli\":false,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"EventAsset\",\"collectionExportName\":\"EventAssetCollection\",\"validationRules\":[{\"field\":\"eventId\",\"rule\":\"required\",\"fieldType\":\"foreignKey\"},{\"field\":\"assetId\",\"rule\":\"required\",\"fieldType\":\"crossPackageRef\"},{\"field\":\"relationship\",\"rule\":\"required\",\"fieldType\":\"text\"},{\"field\":\"sortOrder\",\"rule\":\"required\",\"fieldType\":\"integer\"}],\"schema\":{\"tableName\":\"event_assets\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_assets\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"event_id\\\" UUID NOT NULL,\\n \\\"asset_id\\\" UUID NOT NULL,\\n \\\"relationship\\\" TEXT NOT NULL,\\n \\\"sort_order\\\" INTEGER NOT NULL DEFAULT 0\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"event_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":true,\"unique\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"CASCADE\",\"onUpdate\":\"CASCADE\"}},\"asset_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":true,\"unique\":false},\"relationship\":{\"type\":\"TEXT\",\"notNull\":true,\"unique\":false},\"sort_order\":{\"type\":\"INTEGER\",\"notNull\":true,\"unique\":false,\"default\":0}},\"indexes\":[{\"name\":\"event_assets_event_id_asset_id_idx\",\"columns\":[\"event_id\",\"asset_id\",\"relationship\"],\"unique\":true},{\"name\":\"event_assets_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"event_assets_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_assets_asset_id_idx\",\"columns\":[\"asset_id\"]}],\"version\":\"aeebedc6\"}},\"@happyvertical/smrt-events:EventParticipant\":{\"name\":\"eventparticipant\",\"className\":\"EventParticipant\",\"qualifiedName\":\"@happyvertical/smrt-events:EventParticipant\",\"collection\":\"eventparticipants\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventParticipant.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"eventId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Event\"},\"profileId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"role\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"placement\":{\"type\":\"integer\",\"required\":false},\"groupId\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"externalId\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getEvent\":{\"name\":\"getEvent\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getProfile\":{\"name\":\"getProfile\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getGroupParticipants\":{\"name\":\"getGroupParticipants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<EventParticipant[]>\",\"isStatic\":false,\"isPublic\":true},\"isHome\":{\"name\":\"isHome\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"isAway\":{\"name\":\"isAway\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"conflictColumns\":[\"event_id\",\"profile_id\",\"role\"],\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"EventParticipant\",\"collectionExportName\":\"EventParticipantCollection\",\"schema\":{\"tableName\":\"event_participants\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_participants\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"event_id\\\" UUID,\\n \\\"profile_id\\\" UUID,\\n \\\"role\\\" TEXT DEFAULT '',\\n \\\"placement\\\" INTEGER,\\n \\\"group_id\\\" TEXT,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"event_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false,\"foreignKey\":{\"table\":\"events\",\"column\":\"id\",\"onDelete\":\"CASCADE\",\"onUpdate\":\"CASCADE\"}},\"profile_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false,\"unique\":false},\"role\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"placement\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"group_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false}},\"indexes\":[{\"name\":\"event_participants_event_id_profile_id_idx\",\"columns\":[\"event_id\",\"profile_id\",\"role\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"event_participants_slug_context_idx\",\"columns\":[\"slug\",\"context\"]},{\"name\":\"event_participants_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_participants_profile_id_idx\",\"columns\":[\"profile_id\"]}],\"version\":\"c2faac84\"}},\"@happyvertical/smrt-events:EventSeries\":{\"name\":\"eventseries\",\"className\":\"EventSeries\",\"qualifiedName\":\"@happyvertical/smrt-events:EventSeries\",\"collection\":\"eventserieses\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventSeries.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"typeId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"EventType\"},\"organizerId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"description\":{\"type\":\"text\",\"required\":false},\"startDate\":{\"type\":\"datetime\",\"required\":false},\"endDate\":{\"type\":\"datetime\",\"required\":false},\"recurrence\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"text\",\"required\":false},\"externalId\":{\"type\":\"text\",\"required\":false},\"source\":{\"type\":\"text\",\"required\":false},\"createdAt\":{\"type\":\"text\",\"required\":false},\"updatedAt\":{\"type\":\"text\",\"required\":false}},\"methods\":{\"getRecurrence\":{\"name\":\"getRecurrence\",\"async\":false,\"parameters\":[],\"returnType\":\"RecurrencePattern | null\",\"isStatic\":false,\"isPublic\":true},\"setRecurrence\":{\"name\":\"setRecurrence\",\"async\":false,\"parameters\":[{\"name\":\"pattern\",\"type\":\"RecurrencePattern\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getMetadata\":{\"name\":\"getMetadata\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setMetadata\":{\"name\":\"setMetadata\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"updateMetadata\":{\"name\":\"updateMetadata\",\"async\":false,\"parameters\":[{\"name\":\"updates\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getType\":{\"name\":\"getType\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getOrganizer\":{\"name\":\"getOrganizer\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getEvents\":{\"name\":\"getEvents\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isActive\":{\"name\":\"isActive\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\",\"update\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"},\"conflictColumns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"]},\"extends\":\"SmrtObject\",\"exportName\":\"EventSeries\",\"collectionExportName\":\"EventSeriesCollection\",\"schema\":{\"tableName\":\"event_series\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_series\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"type_id\\\" UUID,\\n \\\"organizer_id\\\" UUID,\\n \\\"description\\\" TEXT,\\n \\\"start_date\\\" TIMESTAMP,\\n \\\"end_date\\\" TIMESTAMP,\\n \\\"recurrence\\\" TEXT,\\n \\\"metadata\\\" TEXT,\\n \\\"external_id\\\" TEXT,\\n \\\"source\\\" TEXT\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"type_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"foreignKey\":{\"table\":\"event_types\",\"column\":\"id\",\"onDelete\":\"NO ACTION\",\"onUpdate\":\"CASCADE\"}},\"organizer_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"description\":{\"type\":\"TEXT\",\"notNull\":false},\"start_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"end_date\":{\"type\":\"TIMESTAMP\",\"notNull\":false},\"recurrence\":{\"type\":\"TEXT\",\"notNull\":false},\"metadata\":{\"type\":\"TEXT\",\"notNull\":false},\"external_id\":{\"type\":\"TEXT\",\"notNull\":false},\"source\":{\"type\":\"TEXT\",\"notNull\":false}},\"indexes\":[{\"name\":\"event_series_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"event_series_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"event_series_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]},{\"name\":\"event_series_type_id_idx\",\"columns\":[\"type_id\"]},{\"name\":\"event_series_organizer_id_idx\",\"columns\":[\"organizer_id\"]}],\"version\":\"c79f5863\"}},\"@happyvertical/smrt-events:EventType\":{\"name\":\"eventtype\",\"className\":\"EventType\",\"qualifiedName\":\"@happyvertical/smrt-events:EventType\",\"collection\":\"eventtypes\",\"filePath\":\"/home/runner/work/smrt/smrt/packages/events/src/models/EventType.ts\",\"packageName\":\"@happyvertical/smrt-events\",\"fields\":{\"created_at\":{\"type\":\"datetime\",\"required\":false},\"updated_at\":{\"type\":\"datetime\",\"required\":false},\"tenantId\":{\"type\":\"text\",\"required\":false,\"_meta\":{\"sqlType\":\"UUID\",\"nullable\":true,\"__tenancy\":{\"isTenantIdField\":true,\"autoFilter\":true,\"required\":false,\"autoPopulate\":true,\"nullable\":true,\"mode\":\"optional\",\"field\":\"tenantId\",\"allowSuperAdminBypass\":false}}},\"name\":{\"type\":\"text\",\"required\":true,\"default\":\"\",\"_meta\":{\"required\":true}},\"description\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"schema\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"participantSchema\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"createdAt\":{\"type\":\"datetime\",\"required\":false},\"updatedAt\":{\"type\":\"datetime\",\"required\":false}},\"methods\":{\"getSchema\":{\"name\":\"getSchema\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setSchema\":{\"name\":\"setSchema\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getParticipantSchema\":{\"name\":\"getParticipantSchema\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string, unknown>\",\"isStatic\":false,\"isPublic\":true},\"setParticipantSchema\":{\"name\":\"setParticipantSchema\",\"async\":false,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string, unknown>\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"getBySlug\":{\"name\":\"getBySlug\",\"async\":true,\"parameters\":[{\"name\":\"_slug\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<EventType | null>\",\"isStatic\":true,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":{\"skipApiCheck\":true},\"tenantScoped\":{\"mode\":\"optional\"},\"conflictColumns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"]},\"extends\":\"SmrtObject\",\"exportName\":\"EventType\",\"collectionExportName\":\"EventTypeCollection\",\"validationRules\":[{\"field\":\"name\",\"rule\":\"required\",\"fieldType\":\"text\"}],\"schema\":{\"tableName\":\"event_types\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"event_types\\\" (\\n \\\"id\\\" UUID PRIMARY KEY NOT NULL,\\n \\\"slug\\\" TEXT NOT NULL,\\n \\\"context\\\" TEXT NOT NULL DEFAULT '',\\n \\\"_meta_type\\\" TEXT NOT NULL,\\n \\\"_meta_data\\\" JSON,\\n \\\"created_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"updated_at\\\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\\n \\\"tenant_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"schema\\\" TEXT DEFAULT '',\\n \\\"participant_schema\\\" TEXT DEFAULT ''\\n);\",\"columns\":{\"id\":{\"type\":\"UUID\",\"primaryKey\":true,\"referenceKind\":\"id\",\"notNull\":true},\"slug\":{\"type\":\"TEXT\",\"notNull\":true},\"context\":{\"type\":\"TEXT\",\"notNull\":true,\"default\":\"\"},\"_meta_type\":{\"type\":\"TEXT\",\"notNull\":true},\"_meta_data\":{\"type\":\"JSON\",\"notNull\":false},\"created_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"updated_at\":{\"type\":\"TIMESTAMP\",\"notNull\":true,\"default\":\"current_timestamp\"},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"schema\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"participant_schema\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"}},\"indexes\":[{\"name\":\"event_types_slug_context_meta_type_idx\",\"columns\":[\"tenant_id\",\"slug\",\"context\",\"_meta_type\"],\"unique\":true,\"nullsNotDistinct\":true},{\"name\":\"event_types_meta_type_idx\",\"columns\":[\"_meta_type\"]},{\"name\":\"event_types_tenant_id_created_at_idx\",\"columns\":[\"tenant_id\",\"created_at\"]}],\"version\":\"922ae3b0\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-assets\",\"@happyvertical/smrt-core\",\"@happyvertical/smrt-places\",\"@happyvertical/smrt-profiles\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/models/EventAsset.ts
|
|
22
22
|
var __defProp$6 = Object.defineProperty;
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-events",
|
|
5
|
-
"packageVersion": "0.49.
|
|
5
|
+
"packageVersion": "0.49.4",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-events:EventAssetCollection": {
|
|
8
8
|
"name": "eventassetcollection",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"collectionExportName": "EventAssetCollectionCollection",
|
|
210
210
|
"schema": {
|
|
211
211
|
"tableName": "event_assets",
|
|
212
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"event_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
|
|
212
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"event_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"event_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0\n);",
|
|
213
213
|
"columns": {
|
|
214
214
|
"id": {
|
|
215
215
|
"type": "UUID",
|
|
@@ -235,25 +235,75 @@
|
|
|
235
235
|
"type": "TIMESTAMP",
|
|
236
236
|
"notNull": true,
|
|
237
237
|
"default": "current_timestamp"
|
|
238
|
+
},
|
|
239
|
+
"tenant_id": {
|
|
240
|
+
"type": "UUID",
|
|
241
|
+
"referenceKind": "tenantId",
|
|
242
|
+
"notNull": false,
|
|
243
|
+
"unique": false
|
|
244
|
+
},
|
|
245
|
+
"event_id": {
|
|
246
|
+
"type": "UUID",
|
|
247
|
+
"referenceKind": "foreignKey",
|
|
248
|
+
"notNull": true,
|
|
249
|
+
"unique": false,
|
|
250
|
+
"foreignKey": {
|
|
251
|
+
"table": "events",
|
|
252
|
+
"column": "id",
|
|
253
|
+
"onDelete": "CASCADE",
|
|
254
|
+
"onUpdate": "CASCADE"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"asset_id": {
|
|
258
|
+
"type": "UUID",
|
|
259
|
+
"referenceKind": "crossPackageRef",
|
|
260
|
+
"notNull": true,
|
|
261
|
+
"unique": false
|
|
262
|
+
},
|
|
263
|
+
"relationship": {
|
|
264
|
+
"type": "TEXT",
|
|
265
|
+
"notNull": true,
|
|
266
|
+
"unique": false
|
|
267
|
+
},
|
|
268
|
+
"sort_order": {
|
|
269
|
+
"type": "INTEGER",
|
|
270
|
+
"notNull": true,
|
|
271
|
+
"unique": false,
|
|
272
|
+
"default": 0
|
|
238
273
|
}
|
|
239
274
|
},
|
|
240
275
|
"indexes": [
|
|
276
|
+
{
|
|
277
|
+
"name": "event_assets_event_id_asset_id_idx",
|
|
278
|
+
"columns": [
|
|
279
|
+
"event_id",
|
|
280
|
+
"asset_id",
|
|
281
|
+
"relationship"
|
|
282
|
+
],
|
|
283
|
+
"unique": true
|
|
284
|
+
},
|
|
241
285
|
{
|
|
242
286
|
"name": "event_assets_slug_context_idx",
|
|
243
287
|
"columns": [
|
|
244
288
|
"slug",
|
|
245
289
|
"context"
|
|
246
|
-
]
|
|
247
|
-
"unique": true
|
|
290
|
+
]
|
|
248
291
|
},
|
|
249
292
|
{
|
|
250
|
-
"name": "
|
|
293
|
+
"name": "event_assets_tenant_id_created_at_idx",
|
|
251
294
|
"columns": [
|
|
295
|
+
"tenant_id",
|
|
252
296
|
"created_at"
|
|
253
297
|
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "event_assets_asset_id_idx",
|
|
301
|
+
"columns": [
|
|
302
|
+
"asset_id"
|
|
303
|
+
]
|
|
254
304
|
}
|
|
255
305
|
],
|
|
256
|
-
"version": "
|
|
306
|
+
"version": "aeebedc6"
|
|
257
307
|
}
|
|
258
308
|
},
|
|
259
309
|
"@happyvertical/smrt-events:EventCollection": {
|
|
@@ -533,8 +583,8 @@
|
|
|
533
583
|
"exportName": "EventCollection",
|
|
534
584
|
"collectionExportName": "EventCollectionCollection",
|
|
535
585
|
"schema": {
|
|
536
|
-
"tableName": "
|
|
537
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
586
|
+
"tableName": "events",
|
|
587
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"parent_id\" UUID,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"series_id\" UUID,\n \"type_id\" UUID,\n \"place_id\" UUID,\n \"description\" TEXT,\n \"start_date\" TIMESTAMP,\n \"end_date\" TIMESTAMP,\n \"status\" TEXT DEFAULT 'scheduled',\n \"round\" INTEGER,\n \"metadata\" TEXT,\n \"external_id\" TEXT,\n \"source\" TEXT\n);",
|
|
538
588
|
"columns": {
|
|
539
589
|
"id": {
|
|
540
590
|
"type": "UUID",
|
|
@@ -551,6 +601,14 @@
|
|
|
551
601
|
"notNull": true,
|
|
552
602
|
"default": ""
|
|
553
603
|
},
|
|
604
|
+
"_meta_type": {
|
|
605
|
+
"type": "TEXT",
|
|
606
|
+
"notNull": true
|
|
607
|
+
},
|
|
608
|
+
"_meta_data": {
|
|
609
|
+
"type": "JSON",
|
|
610
|
+
"notNull": false
|
|
611
|
+
},
|
|
554
612
|
"created_at": {
|
|
555
613
|
"type": "TIMESTAMP",
|
|
556
614
|
"notNull": true,
|
|
@@ -560,25 +618,152 @@
|
|
|
560
618
|
"type": "TIMESTAMP",
|
|
561
619
|
"notNull": true,
|
|
562
620
|
"default": "current_timestamp"
|
|
621
|
+
},
|
|
622
|
+
"parent_id": {
|
|
623
|
+
"type": "UUID",
|
|
624
|
+
"referenceKind": "foreignKey",
|
|
625
|
+
"notNull": false,
|
|
626
|
+
"foreignKey": {
|
|
627
|
+
"table": "events",
|
|
628
|
+
"column": "id",
|
|
629
|
+
"onDelete": "NO ACTION",
|
|
630
|
+
"onUpdate": "CASCADE",
|
|
631
|
+
"engines": [
|
|
632
|
+
"postgres",
|
|
633
|
+
"sqlite"
|
|
634
|
+
]
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"tenant_id": {
|
|
638
|
+
"type": "UUID",
|
|
639
|
+
"referenceKind": "tenantId",
|
|
640
|
+
"notNull": false
|
|
641
|
+
},
|
|
642
|
+
"name": {
|
|
643
|
+
"type": "TEXT",
|
|
644
|
+
"notNull": false,
|
|
645
|
+
"default": ""
|
|
646
|
+
},
|
|
647
|
+
"series_id": {
|
|
648
|
+
"type": "UUID",
|
|
649
|
+
"referenceKind": "foreignKey",
|
|
650
|
+
"notNull": false,
|
|
651
|
+
"foreignKey": {
|
|
652
|
+
"table": "event_series",
|
|
653
|
+
"column": "id",
|
|
654
|
+
"onDelete": "NO ACTION",
|
|
655
|
+
"onUpdate": "CASCADE",
|
|
656
|
+
"engines": [
|
|
657
|
+
"postgres",
|
|
658
|
+
"sqlite"
|
|
659
|
+
]
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"type_id": {
|
|
663
|
+
"type": "UUID",
|
|
664
|
+
"referenceKind": "foreignKey",
|
|
665
|
+
"notNull": false,
|
|
666
|
+
"foreignKey": {
|
|
667
|
+
"table": "event_types",
|
|
668
|
+
"column": "id",
|
|
669
|
+
"onDelete": "NO ACTION",
|
|
670
|
+
"onUpdate": "CASCADE",
|
|
671
|
+
"engines": [
|
|
672
|
+
"postgres",
|
|
673
|
+
"sqlite"
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"place_id": {
|
|
678
|
+
"type": "UUID",
|
|
679
|
+
"referenceKind": "crossPackageRef",
|
|
680
|
+
"notNull": false
|
|
681
|
+
},
|
|
682
|
+
"description": {
|
|
683
|
+
"type": "TEXT",
|
|
684
|
+
"notNull": false
|
|
685
|
+
},
|
|
686
|
+
"start_date": {
|
|
687
|
+
"type": "TIMESTAMP",
|
|
688
|
+
"notNull": false
|
|
689
|
+
},
|
|
690
|
+
"end_date": {
|
|
691
|
+
"type": "TIMESTAMP",
|
|
692
|
+
"notNull": false
|
|
693
|
+
},
|
|
694
|
+
"status": {
|
|
695
|
+
"type": "TEXT",
|
|
696
|
+
"notNull": false,
|
|
697
|
+
"default": "scheduled"
|
|
698
|
+
},
|
|
699
|
+
"round": {
|
|
700
|
+
"type": "INTEGER",
|
|
701
|
+
"notNull": false
|
|
702
|
+
},
|
|
703
|
+
"metadata": {
|
|
704
|
+
"type": "TEXT",
|
|
705
|
+
"notNull": false
|
|
706
|
+
},
|
|
707
|
+
"external_id": {
|
|
708
|
+
"type": "TEXT",
|
|
709
|
+
"notNull": false
|
|
710
|
+
},
|
|
711
|
+
"source": {
|
|
712
|
+
"type": "TEXT",
|
|
713
|
+
"notNull": false
|
|
563
714
|
}
|
|
564
715
|
},
|
|
565
716
|
"indexes": [
|
|
566
717
|
{
|
|
567
|
-
"name": "
|
|
718
|
+
"name": "events_slug_context_meta_type_idx",
|
|
568
719
|
"columns": [
|
|
720
|
+
"tenant_id",
|
|
569
721
|
"slug",
|
|
570
|
-
"context"
|
|
722
|
+
"context",
|
|
723
|
+
"_meta_type"
|
|
571
724
|
],
|
|
572
|
-
"unique": true
|
|
725
|
+
"unique": true,
|
|
726
|
+
"nullsNotDistinct": true
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "events_meta_type_idx",
|
|
730
|
+
"columns": [
|
|
731
|
+
"_meta_type"
|
|
732
|
+
]
|
|
573
733
|
},
|
|
574
734
|
{
|
|
575
|
-
"name": "
|
|
735
|
+
"name": "events_tenant_id_created_at_idx",
|
|
576
736
|
"columns": [
|
|
737
|
+
"tenant_id",
|
|
577
738
|
"created_at"
|
|
578
739
|
]
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "events_parent_id_idx",
|
|
743
|
+
"columns": [
|
|
744
|
+
"parent_id"
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "events_series_id_idx",
|
|
749
|
+
"columns": [
|
|
750
|
+
"series_id"
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "events_type_id_idx",
|
|
755
|
+
"columns": [
|
|
756
|
+
"type_id"
|
|
757
|
+
]
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "events_place_id_idx",
|
|
761
|
+
"columns": [
|
|
762
|
+
"place_id"
|
|
763
|
+
]
|
|
579
764
|
}
|
|
580
765
|
],
|
|
581
|
-
"version": "
|
|
766
|
+
"version": "373ccc72"
|
|
582
767
|
}
|
|
583
768
|
},
|
|
584
769
|
"@happyvertical/smrt-events:EventParticipantCollection": {
|
|
@@ -837,8 +1022,8 @@
|
|
|
837
1022
|
"exportName": "EventParticipantCollection",
|
|
838
1023
|
"collectionExportName": "EventParticipantCollectionCollection",
|
|
839
1024
|
"schema": {
|
|
840
|
-
"tableName": "
|
|
841
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
1025
|
+
"tableName": "event_participants",
|
|
1026
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"event_participants\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"event_id\" UUID,\n \"profile_id\" UUID,\n \"role\" TEXT DEFAULT '',\n \"placement\" INTEGER,\n \"group_id\" TEXT,\n \"metadata\" TEXT,\n \"external_id\" TEXT,\n \"source\" TEXT\n);",
|
|
842
1027
|
"columns": {
|
|
843
1028
|
"id": {
|
|
844
1029
|
"type": "UUID",
|
|
@@ -864,25 +1049,96 @@
|
|
|
864
1049
|
"type": "TIMESTAMP",
|
|
865
1050
|
"notNull": true,
|
|
866
1051
|
"default": "current_timestamp"
|
|
1052
|
+
},
|
|
1053
|
+
"tenant_id": {
|
|
1054
|
+
"type": "UUID",
|
|
1055
|
+
"referenceKind": "tenantId",
|
|
1056
|
+
"notNull": false,
|
|
1057
|
+
"unique": false
|
|
1058
|
+
},
|
|
1059
|
+
"event_id": {
|
|
1060
|
+
"type": "UUID",
|
|
1061
|
+
"referenceKind": "foreignKey",
|
|
1062
|
+
"notNull": false,
|
|
1063
|
+
"unique": false,
|
|
1064
|
+
"foreignKey": {
|
|
1065
|
+
"table": "events",
|
|
1066
|
+
"column": "id",
|
|
1067
|
+
"onDelete": "CASCADE",
|
|
1068
|
+
"onUpdate": "CASCADE"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"profile_id": {
|
|
1072
|
+
"type": "UUID",
|
|
1073
|
+
"referenceKind": "crossPackageRef",
|
|
1074
|
+
"notNull": false,
|
|
1075
|
+
"unique": false
|
|
1076
|
+
},
|
|
1077
|
+
"role": {
|
|
1078
|
+
"type": "TEXT",
|
|
1079
|
+
"notNull": false,
|
|
1080
|
+
"unique": false,
|
|
1081
|
+
"default": ""
|
|
1082
|
+
},
|
|
1083
|
+
"placement": {
|
|
1084
|
+
"type": "INTEGER",
|
|
1085
|
+
"notNull": false,
|
|
1086
|
+
"unique": false
|
|
1087
|
+
},
|
|
1088
|
+
"group_id": {
|
|
1089
|
+
"type": "TEXT",
|
|
1090
|
+
"notNull": false,
|
|
1091
|
+
"unique": false
|
|
1092
|
+
},
|
|
1093
|
+
"metadata": {
|
|
1094
|
+
"type": "TEXT",
|
|
1095
|
+
"notNull": false,
|
|
1096
|
+
"unique": false
|
|
1097
|
+
},
|
|
1098
|
+
"external_id": {
|
|
1099
|
+
"type": "TEXT",
|
|
1100
|
+
"notNull": false,
|
|
1101
|
+
"unique": false
|
|
1102
|
+
},
|
|
1103
|
+
"source": {
|
|
1104
|
+
"type": "TEXT",
|
|
1105
|
+
"notNull": false,
|
|
1106
|
+
"unique": false
|
|
867
1107
|
}
|
|
868
1108
|
},
|
|
869
1109
|
"indexes": [
|
|
870
1110
|
{
|
|
871
|
-
"name": "
|
|
1111
|
+
"name": "event_participants_event_id_profile_id_idx",
|
|
1112
|
+
"columns": [
|
|
1113
|
+
"event_id",
|
|
1114
|
+
"profile_id",
|
|
1115
|
+
"role"
|
|
1116
|
+
],
|
|
1117
|
+
"unique": true,
|
|
1118
|
+
"nullsNotDistinct": true
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"name": "event_participants_slug_context_idx",
|
|
872
1122
|
"columns": [
|
|
873
1123
|
"slug",
|
|
874
1124
|
"context"
|
|
875
|
-
]
|
|
876
|
-
"unique": true
|
|
1125
|
+
]
|
|
877
1126
|
},
|
|
878
1127
|
{
|
|
879
|
-
"name": "
|
|
1128
|
+
"name": "event_participants_tenant_id_created_at_idx",
|
|
880
1129
|
"columns": [
|
|
1130
|
+
"tenant_id",
|
|
881
1131
|
"created_at"
|
|
882
1132
|
]
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"name": "event_participants_profile_id_idx",
|
|
1136
|
+
"columns": [
|
|
1137
|
+
"profile_id"
|
|
1138
|
+
]
|
|
883
1139
|
}
|
|
884
1140
|
],
|
|
885
|
-
"version": "
|
|
1141
|
+
"version": "c2faac84"
|
|
886
1142
|
}
|
|
887
1143
|
},
|
|
888
1144
|
"@happyvertical/smrt-events:EventSeriesCollection": {
|
|
@@ -1006,8 +1262,8 @@
|
|
|
1006
1262
|
"exportName": "EventSeriesCollection",
|
|
1007
1263
|
"collectionExportName": "EventSeriesCollectionCollection",
|
|
1008
1264
|
"schema": {
|
|
1009
|
-
"tableName": "
|
|
1010
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
1265
|
+
"tableName": "event_series",
|
|
1266
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"event_series\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"type_id\" UUID,\n \"organizer_id\" UUID,\n \"description\" TEXT,\n \"start_date\" TIMESTAMP,\n \"end_date\" TIMESTAMP,\n \"recurrence\" TEXT,\n \"metadata\" TEXT,\n \"external_id\" TEXT,\n \"source\" TEXT\n);",
|
|
1011
1267
|
"columns": {
|
|
1012
1268
|
"id": {
|
|
1013
1269
|
"type": "UUID",
|
|
@@ -1024,6 +1280,14 @@
|
|
|
1024
1280
|
"notNull": true,
|
|
1025
1281
|
"default": ""
|
|
1026
1282
|
},
|
|
1283
|
+
"_meta_type": {
|
|
1284
|
+
"type": "TEXT",
|
|
1285
|
+
"notNull": true
|
|
1286
|
+
},
|
|
1287
|
+
"_meta_data": {
|
|
1288
|
+
"type": "JSON",
|
|
1289
|
+
"notNull": false
|
|
1290
|
+
},
|
|
1027
1291
|
"created_at": {
|
|
1028
1292
|
"type": "TIMESTAMP",
|
|
1029
1293
|
"notNull": true,
|
|
@@ -1033,25 +1297,101 @@
|
|
|
1033
1297
|
"type": "TIMESTAMP",
|
|
1034
1298
|
"notNull": true,
|
|
1035
1299
|
"default": "current_timestamp"
|
|
1300
|
+
},
|
|
1301
|
+
"tenant_id": {
|
|
1302
|
+
"type": "UUID",
|
|
1303
|
+
"referenceKind": "tenantId",
|
|
1304
|
+
"notNull": false
|
|
1305
|
+
},
|
|
1306
|
+
"name": {
|
|
1307
|
+
"type": "TEXT",
|
|
1308
|
+
"notNull": false,
|
|
1309
|
+
"default": ""
|
|
1310
|
+
},
|
|
1311
|
+
"type_id": {
|
|
1312
|
+
"type": "UUID",
|
|
1313
|
+
"referenceKind": "foreignKey",
|
|
1314
|
+
"notNull": false,
|
|
1315
|
+
"foreignKey": {
|
|
1316
|
+
"table": "event_types",
|
|
1317
|
+
"column": "id",
|
|
1318
|
+
"onDelete": "NO ACTION",
|
|
1319
|
+
"onUpdate": "CASCADE"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
"organizer_id": {
|
|
1323
|
+
"type": "UUID",
|
|
1324
|
+
"referenceKind": "crossPackageRef",
|
|
1325
|
+
"notNull": false
|
|
1326
|
+
},
|
|
1327
|
+
"description": {
|
|
1328
|
+
"type": "TEXT",
|
|
1329
|
+
"notNull": false
|
|
1330
|
+
},
|
|
1331
|
+
"start_date": {
|
|
1332
|
+
"type": "TIMESTAMP",
|
|
1333
|
+
"notNull": false
|
|
1334
|
+
},
|
|
1335
|
+
"end_date": {
|
|
1336
|
+
"type": "TIMESTAMP",
|
|
1337
|
+
"notNull": false
|
|
1338
|
+
},
|
|
1339
|
+
"recurrence": {
|
|
1340
|
+
"type": "TEXT",
|
|
1341
|
+
"notNull": false
|
|
1342
|
+
},
|
|
1343
|
+
"metadata": {
|
|
1344
|
+
"type": "TEXT",
|
|
1345
|
+
"notNull": false
|
|
1346
|
+
},
|
|
1347
|
+
"external_id": {
|
|
1348
|
+
"type": "TEXT",
|
|
1349
|
+
"notNull": false
|
|
1350
|
+
},
|
|
1351
|
+
"source": {
|
|
1352
|
+
"type": "TEXT",
|
|
1353
|
+
"notNull": false
|
|
1036
1354
|
}
|
|
1037
1355
|
},
|
|
1038
1356
|
"indexes": [
|
|
1039
1357
|
{
|
|
1040
|
-
"name": "
|
|
1358
|
+
"name": "event_series_slug_context_meta_type_idx",
|
|
1041
1359
|
"columns": [
|
|
1360
|
+
"tenant_id",
|
|
1042
1361
|
"slug",
|
|
1043
|
-
"context"
|
|
1362
|
+
"context",
|
|
1363
|
+
"_meta_type"
|
|
1044
1364
|
],
|
|
1045
|
-
"unique": true
|
|
1365
|
+
"unique": true,
|
|
1366
|
+
"nullsNotDistinct": true
|
|
1046
1367
|
},
|
|
1047
1368
|
{
|
|
1048
|
-
"name": "
|
|
1369
|
+
"name": "event_series_meta_type_idx",
|
|
1049
1370
|
"columns": [
|
|
1371
|
+
"_meta_type"
|
|
1372
|
+
]
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "event_series_tenant_id_created_at_idx",
|
|
1376
|
+
"columns": [
|
|
1377
|
+
"tenant_id",
|
|
1050
1378
|
"created_at"
|
|
1051
1379
|
]
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"name": "event_series_type_id_idx",
|
|
1383
|
+
"columns": [
|
|
1384
|
+
"type_id"
|
|
1385
|
+
]
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"name": "event_series_organizer_id_idx",
|
|
1389
|
+
"columns": [
|
|
1390
|
+
"organizer_id"
|
|
1391
|
+
]
|
|
1052
1392
|
}
|
|
1053
1393
|
],
|
|
1054
|
-
"version": "
|
|
1394
|
+
"version": "c79f5863"
|
|
1055
1395
|
}
|
|
1056
1396
|
},
|
|
1057
1397
|
"@happyvertical/smrt-events:EventTypeCollection": {
|
|
@@ -1147,8 +1487,8 @@
|
|
|
1147
1487
|
"exportName": "EventTypeCollection",
|
|
1148
1488
|
"collectionExportName": "EventTypeCollectionCollection",
|
|
1149
1489
|
"schema": {
|
|
1150
|
-
"tableName": "
|
|
1151
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
1490
|
+
"tableName": "event_types",
|
|
1491
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"event_types\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"schema\" TEXT DEFAULT '',\n \"participant_schema\" TEXT DEFAULT ''\n);",
|
|
1152
1492
|
"columns": {
|
|
1153
1493
|
"id": {
|
|
1154
1494
|
"type": "UUID",
|
|
@@ -1165,6 +1505,14 @@
|
|
|
1165
1505
|
"notNull": true,
|
|
1166
1506
|
"default": ""
|
|
1167
1507
|
},
|
|
1508
|
+
"_meta_type": {
|
|
1509
|
+
"type": "TEXT",
|
|
1510
|
+
"notNull": true
|
|
1511
|
+
},
|
|
1512
|
+
"_meta_data": {
|
|
1513
|
+
"type": "JSON",
|
|
1514
|
+
"notNull": false
|
|
1515
|
+
},
|
|
1168
1516
|
"created_at": {
|
|
1169
1517
|
"type": "TIMESTAMP",
|
|
1170
1518
|
"notNull": true,
|
|
@@ -1174,25 +1522,60 @@
|
|
|
1174
1522
|
"type": "TIMESTAMP",
|
|
1175
1523
|
"notNull": true,
|
|
1176
1524
|
"default": "current_timestamp"
|
|
1525
|
+
},
|
|
1526
|
+
"tenant_id": {
|
|
1527
|
+
"type": "UUID",
|
|
1528
|
+
"referenceKind": "tenantId",
|
|
1529
|
+
"notNull": false
|
|
1530
|
+
},
|
|
1531
|
+
"name": {
|
|
1532
|
+
"type": "TEXT",
|
|
1533
|
+
"notNull": false,
|
|
1534
|
+
"default": ""
|
|
1535
|
+
},
|
|
1536
|
+
"description": {
|
|
1537
|
+
"type": "TEXT",
|
|
1538
|
+
"notNull": false,
|
|
1539
|
+
"default": ""
|
|
1540
|
+
},
|
|
1541
|
+
"schema": {
|
|
1542
|
+
"type": "TEXT",
|
|
1543
|
+
"notNull": false,
|
|
1544
|
+
"default": ""
|
|
1545
|
+
},
|
|
1546
|
+
"participant_schema": {
|
|
1547
|
+
"type": "TEXT",
|
|
1548
|
+
"notNull": false,
|
|
1549
|
+
"default": ""
|
|
1177
1550
|
}
|
|
1178
1551
|
},
|
|
1179
1552
|
"indexes": [
|
|
1180
1553
|
{
|
|
1181
|
-
"name": "
|
|
1554
|
+
"name": "event_types_slug_context_meta_type_idx",
|
|
1182
1555
|
"columns": [
|
|
1556
|
+
"tenant_id",
|
|
1183
1557
|
"slug",
|
|
1184
|
-
"context"
|
|
1558
|
+
"context",
|
|
1559
|
+
"_meta_type"
|
|
1185
1560
|
],
|
|
1186
|
-
"unique": true
|
|
1561
|
+
"unique": true,
|
|
1562
|
+
"nullsNotDistinct": true
|
|
1187
1563
|
},
|
|
1188
1564
|
{
|
|
1189
|
-
"name": "
|
|
1565
|
+
"name": "event_types_meta_type_idx",
|
|
1566
|
+
"columns": [
|
|
1567
|
+
"_meta_type"
|
|
1568
|
+
]
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"name": "event_types_tenant_id_created_at_idx",
|
|
1190
1572
|
"columns": [
|
|
1573
|
+
"tenant_id",
|
|
1191
1574
|
"created_at"
|
|
1192
1575
|
]
|
|
1193
1576
|
}
|
|
1194
1577
|
],
|
|
1195
|
-
"version": "
|
|
1578
|
+
"version": "922ae3b0"
|
|
1196
1579
|
}
|
|
1197
1580
|
},
|
|
1198
1581
|
"@happyvertical/smrt-events:Event": {
|
|
@@ -1727,7 +2110,8 @@
|
|
|
1727
2110
|
"context",
|
|
1728
2111
|
"_meta_type"
|
|
1729
2112
|
],
|
|
1730
|
-
"unique": true
|
|
2113
|
+
"unique": true,
|
|
2114
|
+
"nullsNotDistinct": true
|
|
1731
2115
|
},
|
|
1732
2116
|
{
|
|
1733
2117
|
"name": "events_meta_type_idx",
|
|
@@ -2235,7 +2619,8 @@
|
|
|
2235
2619
|
"profile_id",
|
|
2236
2620
|
"role"
|
|
2237
2621
|
],
|
|
2238
|
-
"unique": true
|
|
2622
|
+
"unique": true,
|
|
2623
|
+
"nullsNotDistinct": true
|
|
2239
2624
|
},
|
|
2240
2625
|
{
|
|
2241
2626
|
"name": "event_participants_slug_context_idx",
|
|
@@ -2575,7 +2960,8 @@
|
|
|
2575
2960
|
"context",
|
|
2576
2961
|
"_meta_type"
|
|
2577
2962
|
],
|
|
2578
|
-
"unique": true
|
|
2963
|
+
"unique": true,
|
|
2964
|
+
"nullsNotDistinct": true
|
|
2579
2965
|
},
|
|
2580
2966
|
{
|
|
2581
2967
|
"name": "event_series_meta_type_idx",
|
|
@@ -2845,7 +3231,8 @@
|
|
|
2845
3231
|
"context",
|
|
2846
3232
|
"_meta_type"
|
|
2847
3233
|
],
|
|
2848
|
-
"unique": true
|
|
3234
|
+
"unique": true,
|
|
3235
|
+
"nullsNotDistinct": true
|
|
2849
3236
|
},
|
|
2850
3237
|
{
|
|
2851
3238
|
"name": "event_types_meta_type_idx",
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-events",
|
|
6
|
-
"packageVersion": "0.49.
|
|
6
|
+
"packageVersion": "0.49.4",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "74818f55c442a8463fe79fc7eff7e642b6383dd0340378b8883017bdd9e62741",
|
|
11
|
+
"packageJson": "16d18e384759cf2cb7f3f793ee4af8309a39f4a48dc3283e1a58908fdbab9e7a",
|
|
12
12
|
"agents": "c020c54c72cc890a8fccc8d784f0fde9edde4b62df91a038b401de97c2ce47cf"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"name": "EventCollection",
|
|
234
234
|
"qualifiedName": "@happyvertical/smrt-events:EventCollection",
|
|
235
235
|
"collection": "events",
|
|
236
|
-
"tableName": "
|
|
236
|
+
"tableName": "events",
|
|
237
237
|
"packageName": "@happyvertical/smrt-events",
|
|
238
238
|
"extends": "SmrtCollection",
|
|
239
239
|
"fields": [],
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
"name": "EventParticipantCollection",
|
|
747
747
|
"qualifiedName": "@happyvertical/smrt-events:EventParticipantCollection",
|
|
748
748
|
"collection": "eventparticipants",
|
|
749
|
-
"tableName": "
|
|
749
|
+
"tableName": "event_participants",
|
|
750
750
|
"packageName": "@happyvertical/smrt-events",
|
|
751
751
|
"extends": "SmrtJunction",
|
|
752
752
|
"fields": [],
|
|
@@ -1181,7 +1181,7 @@
|
|
|
1181
1181
|
"name": "EventSeriesCollection",
|
|
1182
1182
|
"qualifiedName": "@happyvertical/smrt-events:EventSeriesCollection",
|
|
1183
1183
|
"collection": "eventserieses",
|
|
1184
|
-
"tableName": "
|
|
1184
|
+
"tableName": "event_series",
|
|
1185
1185
|
"packageName": "@happyvertical/smrt-events",
|
|
1186
1186
|
"extends": "SmrtCollection",
|
|
1187
1187
|
"fields": [],
|
|
@@ -1429,7 +1429,7 @@
|
|
|
1429
1429
|
"name": "EventTypeCollection",
|
|
1430
1430
|
"qualifiedName": "@happyvertical/smrt-events:EventTypeCollection",
|
|
1431
1431
|
"collection": "eventtypes",
|
|
1432
|
-
"tableName": "
|
|
1432
|
+
"tableName": "event_types",
|
|
1433
1433
|
"packageName": "@happyvertical/smrt-events",
|
|
1434
1434
|
"extends": "SmrtCollection",
|
|
1435
1435
|
"fields": [],
|
|
@@ -4964,7 +4964,7 @@
|
|
|
4964
4964
|
"junctionCollections": 2,
|
|
4965
4965
|
"hierarchicalObjects": 1,
|
|
4966
4966
|
"polymorphicAssociations": 0,
|
|
4967
|
-
"uuidColumns":
|
|
4967
|
+
"uuidColumns": 40
|
|
4968
4968
|
},
|
|
4969
4969
|
"agentDoc": "# @happyvertical/smrt-events\n\nInfinite-nesting event hierarchy with series, types, participants, and role/placement management.\n\n## Models\n\n- **Event** (STI, extends `SmrtHierarchical`): self-referencing parent-child via `parentId` (UUID). Links to `seriesId`, `typeId`, `placeId`. Status: scheduled/in_progress/completed/cancelled/postponed. Hierarchy traversal (`getParent()`, `getChildren()`, `getAncestors()`, `getDescendants()`, `getHierarchy()`, `moveTo()`) is provided by `SmrtHierarchical`; `getRootEvent()` and `isRoot()` remain on `Event`.\n- **EventAsset**: dedicated owned-asset join in `event_assets` with `relationship` and `sortOrder`.\n- **EventType**: classification with JSON schema for custom fields per type.\n- **EventSeries**: recurrence patterns (daily/weekly/monthly/yearly).\n- **EventParticipant**: junction with `role` (home/away/speaker/panelist/etc.), `placement` (numeric — team ordering and rankings), `groupId` (team grouping within event). `conflictColumns: ['event_id', 'profile_id', 'role']`.\n\n## Gotchas\n\n- **No depth limit** on event hierarchy — deep nesting can cause N+1 queries\n- **Placement is numeric**: used for both team ordering (0=home, 1=away) and rankings — context-dependent\n- **GroupId not enforced at DB level**: for logical grouping only (e.g., team members in a game)\n- **Optional tenancy** with nullable tenantId\n- **Event physical foreign keys**: `parentId`, `seriesId`, and `typeId` retain\n PostgreSQL/SQLite constraints. DuckDB/JSON omit only those explicitly scoped\n physical constraints because DuckDB cannot enforce Event's self-reference or\n generated `ON UPDATE CASCADE`; UUID fields, indexes, relationship loading,\n and application-side delete enforcement remain active on every engine.\n- **Metadata stored as JSON string** with get/set/update helpers\n- **Owned asset helpers**: use `Event.getAssets()` / `addAsset()` / `removeAsset()` or the matching `EventCollection` wrappers instead of generic `AssetAssociation`\n"
|
|
4970
4970
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-events",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.4",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Hierarchical event management with participant tracking and SMRT framework support",
|
|
6
6
|
"type": "module",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"@happyvertical/ai": "^0.89.6",
|
|
49
49
|
"@happyvertical/files": "^0.89.6",
|
|
50
50
|
"@happyvertical/logger": "^0.89.6",
|
|
51
|
-
"@happyvertical/smrt-assets": "0.49.
|
|
52
|
-
"@happyvertical/smrt-core": "0.49.
|
|
53
|
-
"@happyvertical/smrt-places": "0.49.
|
|
54
|
-
"@happyvertical/smrt-profiles": "0.49.
|
|
55
|
-
"@happyvertical/smrt-tenancy": "0.49.
|
|
56
|
-
"@happyvertical/smrt-types": "0.49.
|
|
57
|
-
"@happyvertical/smrt-ui": "0.49.
|
|
51
|
+
"@happyvertical/smrt-assets": "0.49.4",
|
|
52
|
+
"@happyvertical/smrt-core": "0.49.4",
|
|
53
|
+
"@happyvertical/smrt-places": "0.49.4",
|
|
54
|
+
"@happyvertical/smrt-profiles": "0.49.4",
|
|
55
|
+
"@happyvertical/smrt-tenancy": "0.49.4",
|
|
56
|
+
"@happyvertical/smrt-types": "0.49.4",
|
|
57
|
+
"@happyvertical/smrt-ui": "0.49.4",
|
|
58
58
|
"@happyvertical/sql": "^0.89.6",
|
|
59
59
|
"@happyvertical/utils": "^0.89.6"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@happyvertical/smrt-vitest": "0.49.
|
|
62
|
+
"@happyvertical/smrt-vitest": "0.49.4",
|
|
63
63
|
"@sveltejs/package": "^2.5.8",
|
|
64
64
|
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
65
65
|
"@types/node": "24.13.2",
|