@happyvertical/smrt-properties 0.40.64 → 0.40.66
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 +1 -1
- package/dist/smrt-knowledge.json +624 -16
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/__smrt-register__.ts
|
|
17
|
-
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-properties\",\"packageVersion\":\"0.40.64\",\"objects\":{\"@happyvertical/smrt-properties:PropertyCollection\":{\"name\":\"propertycollection\",\"className\":\"PropertyCollection\",\"qualifiedName\":\"@happyvertical/smrt-properties:PropertyCollection\",\"collection\":\"properties\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/collections/Properties.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"fields\":{},\"methods\":{\"findByDomain\":{\"name\":\"findByDomain\",\"async\":true,\"parameters\":[{\"name\":\"domain\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property | null>\",\"isStatic\":false,\"isPublic\":true},\"findByRepository\":{\"name\":\"findByRepository\",\"async\":true,\"parameters\":[{\"name\":\"repositoryId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findByOwner\":{\"name\":\"findByOwner\",\"async\":true,\"parameters\":[{\"name\":\"ownerId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findActive\":{\"name\":\"findActive\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findByStatus\":{\"name\":\"findByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"PropertyStatus\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"getOrCreateByDomain\":{\"name\":\"getOrCreateByDomain\",\"async\":true,\"parameters\":[{\"name\":\"domain\",\"type\":\"string\",\"optional\":false},{\"name\":\"defaults\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Property>\",\"isStatic\":false,\"isPublic\":true},\"countByStatus\":{\"name\":\"countByStatus\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Record<PropertyStatus, number>>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Property\",\"exportName\":\"PropertyCollection\",\"collectionExportName\":\"PropertyCollectionCollection\",\"schema\":{\"tableName\":\"property_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"property_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\":\"property_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"property_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"755c73e0\"}},\"@happyvertical/smrt-properties:ZoneCollection\":{\"name\":\"zonecollection\",\"className\":\"ZoneCollection\",\"qualifiedName\":\"@happyvertical/smrt-properties:ZoneCollection\",\"collection\":\"zones\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/collections/Zones.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"fields\":{},\"methods\":{\"findByProperty\":{\"name\":\"findByProperty\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findTopLevel\":{\"name\":\"findTopLevel\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findChildren\":{\"name\":\"findChildren\",\"async\":true,\"parameters\":[{\"name\":\"parentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findByPath\":{\"name\":\"findByPath\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"path\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findByType\":{\"name\":\"findByType\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"type\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"getTree\":{\"name\":\"getTree\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ZoneTree<Zone>>\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"getMaxDepth\":{\"name\":\"getMaxDepth\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"findByDimensions\":{\"name\":\"findByDimensions\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"width\",\"type\":\"number\",\"optional\":false},{\"name\":\"height\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findByAllowedFormat\":{\"name\":\"findByAllowedFormat\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"format\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"moveZone\":{\"name\":\"moveZone\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false},{\"name\":\"newParentId\",\"type\":\"string | null\",\"optional\":false}],\"returnType\":\"Promise<Zone | null>\",\"isStatic\":false,\"isPublic\":true},\"deleteZone\":{\"name\":\"deleteZone\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false},{\"name\":\"cascade\",\"type\":\"boolean\",\"optional\":true}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Zone\",\"exportName\":\"ZoneCollection\",\"collectionExportName\":\"ZoneCollectionCollection\",\"schema\":{\"tableName\":\"zone_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"zone_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\":\"zone_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"zone_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"5bed4522\"}},\"@happyvertical/smrt-properties:Property\":{\"name\":\"property\",\"className\":\"Property\",\"qualifiedName\":\"@happyvertical/smrt-properties:Property\",\"collection\":\"properties\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/models/Property.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"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\":\"\"},\"domain\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"url\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"description\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"repositoryId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-projects:Repository\"},\"ownerId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getZones\":{\"name\":\"getZones\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getZoneTree\":{\"name\":\"getZoneTree\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"createZone\":{\"name\":\"createZone\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<'propertyId'>\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"isActive\":{\"name\":\"isActive\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"summarize\":{\"name\":\"summarize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"Property\",\"collectionExportName\":\"PropertyCollection\",\"schema\":{\"tableName\":\"properties\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"properties\\\" (\\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 \\\"domain\\\" TEXT DEFAULT '',\\n \\\"url\\\" TEXT DEFAULT '',\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"repository_id\\\" UUID,\\n \\\"owner_id\\\" UUID,\\n \\\"status\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON 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\":\"\"},\"domain\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"url\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"repository_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"owner_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}}},\"indexes\":[{\"name\":\"properties_id_idx\",\"columns\":[\"id\"]},{\"name\":\"properties_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"properties_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"6431d246\"}},\"@happyvertical/smrt-properties:Zone\":{\"name\":\"zone\",\"className\":\"Zone\",\"qualifiedName\":\"@happyvertical/smrt-properties:Zone\",\"collection\":\"zones\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/models/Zone.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"fields\":{\"parentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Zone\",\"_meta\":{\"nullable\":true}},\"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}}},\"propertyId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Property\"},\"name\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"type\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"path\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"selector\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"position\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"width\":{\"type\":\"integer\",\"required\":false},\"height\":{\"type\":\"integer\",\"required\":false},\"allowedFormats\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"defaultContentId\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}}},\"methods\":{\"getParent\":{\"name\":\"getParent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<null>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<HierarchyView>\",\"isStatic\":false,\"isPublic\":true},\"moveTo\":{\"name\":\"moveTo\",\"async\":true,\"parameters\":[{\"name\":\"newParent\",\"type\":\"string | null\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isTopLevel\":{\"name\":\"isTopLevel\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"hasDimensions\":{\"name\":\"hasDimensions\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getDimensionString\":{\"name\":\"getDimensionString\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getProperty\":{\"name\":\"getProperty\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<null>\",\"isStatic\":false,\"isPublic\":true},\"getFullPath\":{\"name\":\"getFullPath\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<string>\",\"isStatic\":false,\"isPublic\":true},\"getDepth\":{\"name\":\"getDepth\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"createChild\":{\"name\":\"createChild\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<ZoneOptions, 'propertyId' | 'parentId'>\",\"optional\":false}],\"returnType\":\"Promise<Zone>\",\"isStatic\":false,\"isPublic\":true},\"toTreeNode\":{\"name\":\"toTreeNode\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ZoneTreeNode<Zone>>\",\"isStatic\":false,\"isPublic\":true},\"isFormatAllowed\":{\"name\":\"isFormatAllowed\",\"async\":false,\"parameters\":[{\"name\":\"format\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtHierarchical\",\"exportName\":\"Zone\",\"collectionExportName\":\"ZoneCollection\",\"schema\":{\"tableName\":\"zones\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"zones\\\" (\\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 \\\"parent_id\\\" UUID,\\n \\\"tenant_id\\\" UUID,\\n \\\"property_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"type\\\" TEXT DEFAULT '',\\n \\\"path\\\" TEXT DEFAULT '',\\n \\\"selector\\\" TEXT DEFAULT '',\\n \\\"position\\\" TEXT DEFAULT '',\\n \\\"width\\\" INTEGER,\\n \\\"height\\\" INTEGER,\\n \\\"allowed_formats\\\" JSON DEFAULT '[]',\\n \\\"default_content_id\\\" TEXT,\\n \\\"metadata\\\" JSON DEFAULT '{}'\\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\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"property_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"type\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"path\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"selector\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"position\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"width\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"height\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"allowed_formats\":{\"type\":\"JSON\",\"notNull\":false,\"unique\":false,\"default\":[]},\"default_content_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"unique\":false,\"default\":{}}},\"indexes\":[{\"name\":\"zones_id_idx\",\"columns\":[\"id\"]},{\"name\":\"zones_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"53529202\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-prompts\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
17
|
+
ObjectRegistry.registerPackageManifest(JSON.parse("{\"version\":\"1.0.0\",\"timestamp\":0,\"packageName\":\"@happyvertical/smrt-properties\",\"packageVersion\":\"0.40.66\",\"objects\":{\"@happyvertical/smrt-properties:PropertyCollection\":{\"name\":\"propertycollection\",\"className\":\"PropertyCollection\",\"qualifiedName\":\"@happyvertical/smrt-properties:PropertyCollection\",\"collection\":\"properties\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/collections/Properties.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"fields\":{},\"methods\":{\"findByDomain\":{\"name\":\"findByDomain\",\"async\":true,\"parameters\":[{\"name\":\"domain\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property | null>\",\"isStatic\":false,\"isPublic\":true},\"findByRepository\":{\"name\":\"findByRepository\",\"async\":true,\"parameters\":[{\"name\":\"repositoryId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findByOwner\":{\"name\":\"findByOwner\",\"async\":true,\"parameters\":[{\"name\":\"ownerId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findActive\":{\"name\":\"findActive\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findByStatus\":{\"name\":\"findByStatus\",\"async\":true,\"parameters\":[{\"name\":\"status\",\"type\":\"PropertyStatus\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"getOrCreateByDomain\":{\"name\":\"getOrCreateByDomain\",\"async\":true,\"parameters\":[{\"name\":\"domain\",\"type\":\"string\",\"optional\":false},{\"name\":\"defaults\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Property>\",\"isStatic\":false,\"isPublic\":true},\"countByStatus\":{\"name\":\"countByStatus\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Record<PropertyStatus, number>>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Property[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Property\",\"exportName\":\"PropertyCollection\",\"collectionExportName\":\"PropertyCollectionCollection\",\"schema\":{\"tableName\":\"property_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"property_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\":\"property_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"property_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"755c73e0\"}},\"@happyvertical/smrt-properties:ZoneCollection\":{\"name\":\"zonecollection\",\"className\":\"ZoneCollection\",\"qualifiedName\":\"@happyvertical/smrt-properties:ZoneCollection\",\"collection\":\"zones\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/collections/Zones.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"fields\":{},\"methods\":{\"findByProperty\":{\"name\":\"findByProperty\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findTopLevel\":{\"name\":\"findTopLevel\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findChildren\":{\"name\":\"findChildren\",\"async\":true,\"parameters\":[{\"name\":\"parentId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findByPath\":{\"name\":\"findByPath\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"path\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findByType\":{\"name\":\"findByType\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"type\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"getTree\":{\"name\":\"getTree\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<ZoneTree<Zone>>\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"getMaxDepth\":{\"name\":\"getMaxDepth\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"findByDimensions\":{\"name\":\"findByDimensions\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"width\",\"type\":\"number\",\"optional\":false},{\"name\":\"height\",\"type\":\"number\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findByAllowedFormat\":{\"name\":\"findByAllowedFormat\",\"async\":true,\"parameters\":[{\"name\":\"propertyId\",\"type\":\"string\",\"optional\":false},{\"name\":\"format\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"moveZone\":{\"name\":\"moveZone\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false},{\"name\":\"newParentId\",\"type\":\"string | null\",\"optional\":false}],\"returnType\":\"Promise<Zone | null>\",\"isStatic\":false,\"isPublic\":true},\"deleteZone\":{\"name\":\"deleteZone\",\"async\":true,\"parameters\":[{\"name\":\"zoneId\",\"type\":\"string\",\"optional\":false},{\"name\":\"cascade\",\"type\":\"boolean\",\"optional\":true}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"findByTenant\":{\"name\":\"findByTenant\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findGlobal\":{\"name\":\"findGlobal\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true},\"findWithGlobals\":{\"name\":\"findWithGlobals\",\"async\":true,\"parameters\":[{\"name\":\"tenantId\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"Promise<Zone[]>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{},\"extends\":\"SmrtCollection\",\"extendsTypeArg\":\"Zone\",\"exportName\":\"ZoneCollection\",\"collectionExportName\":\"ZoneCollectionCollection\",\"schema\":{\"tableName\":\"zone_collections\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"zone_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\":\"zone_collections_id_idx\",\"columns\":[\"id\"]},{\"name\":\"zone_collections_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"5bed4522\"}},\"@happyvertical/smrt-properties:Property\":{\"name\":\"property\",\"className\":\"Property\",\"qualifiedName\":\"@happyvertical/smrt-properties:Property\",\"collection\":\"properties\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/models/Property.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"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\":\"\"},\"domain\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"url\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"description\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"repositoryId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-projects:Repository\"},\"ownerId\":{\"type\":\"crossPackageRef\",\"required\":false,\"related\":\"@happyvertical/smrt-profiles:Profile\"},\"status\":{\"type\":\"text\",\"required\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}}},\"methods\":{\"getAiUsageSnapshot\":{\"name\":\"getAiUsageSnapshot\",\"async\":false,\"parameters\":[],\"returnType\":\"AiUsageSnapshot | undefined\",\"isStatic\":false,\"isPublic\":true},\"resetAiUsage\":{\"name\":\"resetAiUsage\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"listAiUsage\":{\"name\":\"listAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageListOptions\",\"optional\":true}],\"returnType\":\"Promise<SmrtAiUsageRecord[]>\",\"isStatic\":false,\"isPublic\":true},\"summarizeAiUsage\":{\"name\":\"summarizeAiUsage\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiUsageSummaryOptions\",\"optional\":true}],\"returnType\":\"Promise<Record<string, AiUsageStats>>\",\"isStatic\":false,\"isPublic\":true},\"destroy\":{\"name\":\"destroy\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"markAsPersisted\":{\"name\":\"markAsPersisted\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"requireInsertOnSave\":{\"name\":\"requireInsertOnSave\",\"async\":false,\"parameters\":[],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"initialize\":{\"name\":\"initialize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"loadDataFromDb\":{\"name\":\"loadDataFromDb\",\"async\":true,\"parameters\":[{\"name\":\"data\",\"type\":\"Record<string>\",\"optional\":false}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getFields\":{\"name\":\"getFields\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"toJSON\":{\"name\":\"toJSON\",\"async\":false,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"toPlainObject\":{\"name\":\"toPlainObject\",\"async\":false,\"parameters\":[],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"toPublicJSON\":{\"name\":\"toPublicJSON\",\"async\":false,\"parameters\":[{\"name\":\"options\",\"type\":\"PublicJsonOptions\",\"optional\":true}],\"returnType\":\"Record<string>\",\"isStatic\":false,\"isPublic\":true},\"getId\":{\"name\":\"getId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSlug\":{\"name\":\"getSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"getSavedId\":{\"name\":\"getSavedId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"isSaved\":{\"name\":\"isSaved\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"save\":{\"name\":\"save\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"classifyConstraintError\":{\"name\":\"classifyConstraintError\",\"async\":false,\"parameters\":[{\"name\":\"message\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"'unique' | 'not_null' | null\",\"isStatic\":true,\"isPublic\":true},\"loadFromId\":{\"name\":\"loadFromId\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"loadFromSlug\":{\"name\":\"loadFromSlug\",\"async\":true,\"parameters\":[],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"is\":{\"name\":\"is\",\"async\":true,\"parameters\":[{\"name\":\"criteria\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"do\":{\"name\":\"do\",\"async\":true,\"parameters\":[{\"name\":\"instructions\",\"type\":\"string\",\"optional\":false},{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"describe\":{\"name\":\"describe\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"AiOperationOptions\",\"optional\":true}],\"returnType\":\"any\",\"isStatic\":false,\"isPublic\":true},\"delete\":{\"name\":\"delete\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isRelatedLoaded\":{\"name\":\"isRelatedLoaded\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"_setLoadedRelationship\":{\"name\":\"_setLoadedRelationship\",\"async\":false,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"value\",\"type\":\"any\",\"optional\":false}],\"returnType\":\"void\",\"isStatic\":false,\"isPublic\":true},\"loadRelated\":{\"name\":\"loadRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"loadRelatedMany\":{\"name\":\"loadRelatedMany\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any[]>\",\"isStatic\":false,\"isPublic\":true},\"getRelated\":{\"name\":\"getRelated\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"opts\",\"type\":\"LoadRelatedOptions\",\"optional\":true}],\"returnType\":\"Promise<any>\",\"isStatic\":false,\"isPublic\":true},\"getAvailableTools\":{\"name\":\"getAvailableTools\",\"async\":false,\"parameters\":[],\"returnType\":\"AITool[]\",\"isStatic\":false,\"isPublic\":true},\"executeToolCall\":{\"name\":\"executeToolCall\",\"async\":true,\"parameters\":[{\"name\":\"toolCall\",\"type\":\"ToolCall\",\"optional\":false}],\"returnType\":\"Promise<ToolCallResult>\",\"isStatic\":false,\"isPublic\":true},\"remember\":{\"name\":\"remember\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"recall\":{\"name\":\"recall\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"recallAll\":{\"name\":\"recallAll\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":true}],\"returnType\":\"Promise<Map<string>>\",\"isStatic\":false,\"isPublic\":true},\"forget\":{\"name\":\"forget\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"forgetScope\":{\"name\":\"forgetScope\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"object\",\"optional\":false}],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"generateEmbeddings\":{\"name\":\"generateEmbeddings\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"GenerateEmbeddingsOptions\",\"optional\":true}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getEmbedding\":{\"name\":\"getEmbedding\",\"async\":true,\"parameters\":[{\"name\":\"fieldName\",\"type\":\"string\",\"optional\":false},{\"name\":\"model\",\"type\":\"string\",\"optional\":true}],\"returnType\":\"Promise<number[] | null>\",\"isStatic\":false,\"isPublic\":true},\"hasStaleEmbeddings\":{\"name\":\"hasStaleEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<boolean>\",\"isStatic\":false,\"isPublic\":true},\"clearEmbeddings\":{\"name\":\"clearEmbeddings\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"getZones\":{\"name\":\"getZones\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getZoneTree\":{\"name\":\"getZoneTree\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"createZone\":{\"name\":\"createZone\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<'propertyId'>\",\"optional\":false}],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"isActive\":{\"name\":\"isActive\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"summarize\":{\"name\":\"summarize\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<string>\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"tableStrategy\":\"sti\",\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtObject\",\"exportName\":\"Property\",\"collectionExportName\":\"PropertyCollection\",\"schema\":{\"tableName\":\"properties\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"properties\\\" (\\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 \\\"domain\\\" TEXT DEFAULT '',\\n \\\"url\\\" TEXT DEFAULT '',\\n \\\"description\\\" TEXT DEFAULT '',\\n \\\"repository_id\\\" UUID,\\n \\\"owner_id\\\" UUID,\\n \\\"status\\\" TEXT DEFAULT 'active',\\n \\\"metadata\\\" JSON 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\":\"\"},\"domain\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"url\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"description\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"\"},\"repository_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"owner_id\":{\"type\":\"UUID\",\"referenceKind\":\"crossPackageRef\",\"notNull\":false},\"status\":{\"type\":\"TEXT\",\"notNull\":false,\"default\":\"active\"},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"default\":{}}},\"indexes\":[{\"name\":\"properties_id_idx\",\"columns\":[\"id\"]},{\"name\":\"properties_slug_context_meta_type_idx\",\"columns\":[\"slug\",\"context\",\"_meta_type\"],\"unique\":true},{\"name\":\"properties_meta_type_idx\",\"columns\":[\"_meta_type\"]}],\"version\":\"6431d246\"}},\"@happyvertical/smrt-properties:Zone\":{\"name\":\"zone\",\"className\":\"Zone\",\"qualifiedName\":\"@happyvertical/smrt-properties:Zone\",\"collection\":\"zones\",\"filePath\":\"/home/runner/_work/smrt/smrt/packages/properties/src/models/Zone.ts\",\"packageName\":\"@happyvertical/smrt-properties\",\"fields\":{\"parentId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Zone\",\"_meta\":{\"nullable\":true}},\"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}}},\"propertyId\":{\"type\":\"foreignKey\",\"required\":false,\"related\":\"Property\"},\"name\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"type\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"path\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"selector\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"position\":{\"type\":\"text\",\"required\":false,\"default\":\"\"},\"width\":{\"type\":\"integer\",\"required\":false},\"height\":{\"type\":\"integer\",\"required\":false},\"allowedFormats\":{\"type\":\"json\",\"required\":false,\"default\":[]},\"defaultContentId\":{\"type\":\"text\",\"required\":false},\"metadata\":{\"type\":\"json\",\"required\":false,\"default\":{}}},\"methods\":{\"getParent\":{\"name\":\"getParent\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<null>\",\"isStatic\":false,\"isPublic\":true},\"getChildren\":{\"name\":\"getChildren\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getAncestors\":{\"name\":\"getAncestors\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getDescendants\":{\"name\":\"getDescendants\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise\",\"isStatic\":false,\"isPublic\":true},\"getHierarchy\":{\"name\":\"getHierarchy\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<HierarchyView>\",\"isStatic\":false,\"isPublic\":true},\"moveTo\":{\"name\":\"moveTo\",\"async\":true,\"parameters\":[{\"name\":\"newParent\",\"type\":\"string | null\",\"optional\":false}],\"returnType\":\"Promise<void>\",\"isStatic\":false,\"isPublic\":true},\"isTopLevel\":{\"name\":\"isTopLevel\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"hasDimensions\":{\"name\":\"hasDimensions\",\"async\":false,\"parameters\":[],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true},\"getDimensionString\":{\"name\":\"getDimensionString\",\"async\":false,\"parameters\":[],\"returnType\":\"string | null\",\"isStatic\":false,\"isPublic\":true},\"getProperty\":{\"name\":\"getProperty\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<null>\",\"isStatic\":false,\"isPublic\":true},\"getFullPath\":{\"name\":\"getFullPath\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<string>\",\"isStatic\":false,\"isPublic\":true},\"getDepth\":{\"name\":\"getDepth\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<number>\",\"isStatic\":false,\"isPublic\":true},\"createChild\":{\"name\":\"createChild\",\"async\":true,\"parameters\":[{\"name\":\"options\",\"type\":\"Omit<ZoneOptions, 'propertyId' | 'parentId'>\",\"optional\":false}],\"returnType\":\"Promise<Zone>\",\"isStatic\":false,\"isPublic\":true},\"toTreeNode\":{\"name\":\"toTreeNode\",\"async\":true,\"parameters\":[],\"returnType\":\"Promise<ZoneTreeNode<Zone>>\",\"isStatic\":false,\"isPublic\":true},\"isFormatAllowed\":{\"name\":\"isFormatAllowed\",\"async\":false,\"parameters\":[{\"name\":\"format\",\"type\":\"string\",\"optional\":false}],\"returnType\":\"boolean\",\"isStatic\":false,\"isPublic\":true}},\"decoratorConfig\":{\"api\":{\"include\":[\"list\",\"get\",\"create\",\"update\",\"delete\"]},\"mcp\":{\"include\":[\"list\",\"get\",\"create\"]},\"cli\":true,\"tenantScoped\":{\"mode\":\"optional\"}},\"extends\":\"SmrtHierarchical\",\"exportName\":\"Zone\",\"collectionExportName\":\"ZoneCollection\",\"schema\":{\"tableName\":\"zones\",\"ddl\":\"CREATE TABLE IF NOT EXISTS \\\"zones\\\" (\\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 \\\"parent_id\\\" UUID,\\n \\\"tenant_id\\\" UUID,\\n \\\"property_id\\\" UUID,\\n \\\"name\\\" TEXT DEFAULT '',\\n \\\"type\\\" TEXT DEFAULT '',\\n \\\"path\\\" TEXT DEFAULT '',\\n \\\"selector\\\" TEXT DEFAULT '',\\n \\\"position\\\" TEXT DEFAULT '',\\n \\\"width\\\" INTEGER,\\n \\\"height\\\" INTEGER,\\n \\\"allowed_formats\\\" JSON DEFAULT '[]',\\n \\\"default_content_id\\\" TEXT,\\n \\\"metadata\\\" JSON DEFAULT '{}'\\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\"},\"parent_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"tenant_id\":{\"type\":\"UUID\",\"referenceKind\":\"tenantId\",\"notNull\":false,\"unique\":false},\"property_id\":{\"type\":\"UUID\",\"referenceKind\":\"foreignKey\",\"notNull\":false,\"unique\":false},\"name\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"type\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"path\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"selector\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"position\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false,\"default\":\"\"},\"width\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"height\":{\"type\":\"INTEGER\",\"notNull\":false,\"unique\":false},\"allowed_formats\":{\"type\":\"JSON\",\"notNull\":false,\"unique\":false,\"default\":[]},\"default_content_id\":{\"type\":\"TEXT\",\"notNull\":false,\"unique\":false},\"metadata\":{\"type\":\"JSON\",\"notNull\":false,\"unique\":false,\"default\":{}}},\"indexes\":[{\"name\":\"zones_id_idx\",\"columns\":[\"id\"]},{\"name\":\"zones_slug_context_idx\",\"columns\":[\"slug\",\"context\"],\"unique\":true}],\"version\":\"53529202\"}}},\"moduleType\":\"smrt\",\"smrtDependencies\":[\"@happyvertical/smrt-core\",\"@happyvertical/smrt-prompts\",\"@happyvertical/smrt-tenancy\"]}"));
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/prompts.ts
|
|
20
20
|
var smrtPropertiesSummarizePrompt = definePrompt({
|
package/dist/manifest.json
CHANGED
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
+
"sensitiveFieldsExcluded": true,
|
|
3
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
4
5
|
"packageName": "@happyvertical/smrt-properties",
|
|
5
|
-
"packageVersion": "0.40.
|
|
6
|
+
"packageVersion": "0.40.66",
|
|
6
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
8
|
"agentDocPath": "AGENTS.md",
|
|
8
9
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
10
|
+
"manifest": "7a71623c9a1a80fad9c36011999ade70eb97baf7387654fe27dddf8b942a0bf1",
|
|
11
|
+
"packageJson": "0f30c17c8a8e14e7559c14aefa4a0c4aa684f76506610d2fad7a66b274bde436",
|
|
11
12
|
"agents": "a0f6fb35fa6c32a8c94158511c5f1722e1a96c2fcc01e790ec4b424d02845743"
|
|
12
13
|
},
|
|
13
14
|
"exports": [
|
|
@@ -62,6 +63,80 @@
|
|
|
62
63
|
"findWithGlobals",
|
|
63
64
|
"getOrCreateByDomain"
|
|
64
65
|
],
|
|
66
|
+
"methodSignatures": [
|
|
67
|
+
{
|
|
68
|
+
"name": "countByStatus",
|
|
69
|
+
"async": true,
|
|
70
|
+
"returns": "Promise<Record<PropertyStatus, number>>"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "findActive",
|
|
74
|
+
"async": true,
|
|
75
|
+
"returns": "Promise<Property[]>"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "findByDomain",
|
|
79
|
+
"async": true,
|
|
80
|
+
"params": [
|
|
81
|
+
"domain: string"
|
|
82
|
+
],
|
|
83
|
+
"returns": "Promise<Property | null>"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "findByOwner",
|
|
87
|
+
"async": true,
|
|
88
|
+
"params": [
|
|
89
|
+
"ownerId: string"
|
|
90
|
+
],
|
|
91
|
+
"returns": "Promise<Property[]>"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "findByRepository",
|
|
95
|
+
"async": true,
|
|
96
|
+
"params": [
|
|
97
|
+
"repositoryId: string"
|
|
98
|
+
],
|
|
99
|
+
"returns": "Promise<Property[]>"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "findByStatus",
|
|
103
|
+
"async": true,
|
|
104
|
+
"params": [
|
|
105
|
+
"status: PropertyStatus"
|
|
106
|
+
],
|
|
107
|
+
"returns": "Promise<Property[]>"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "findByTenant",
|
|
111
|
+
"async": true,
|
|
112
|
+
"params": [
|
|
113
|
+
"tenantId: string"
|
|
114
|
+
],
|
|
115
|
+
"returns": "Promise<Property[]>"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "findGlobal",
|
|
119
|
+
"async": true,
|
|
120
|
+
"returns": "Promise<Property[]>"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "findWithGlobals",
|
|
124
|
+
"async": true,
|
|
125
|
+
"params": [
|
|
126
|
+
"tenantId: string"
|
|
127
|
+
],
|
|
128
|
+
"returns": "Promise<Property[]>"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "getOrCreateByDomain",
|
|
132
|
+
"async": true,
|
|
133
|
+
"params": [
|
|
134
|
+
"domain: string",
|
|
135
|
+
"defaults?: object"
|
|
136
|
+
],
|
|
137
|
+
"returns": "Promise<Property>"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
65
140
|
"surfaces": [],
|
|
66
141
|
"relationshipFeatures": [
|
|
67
142
|
"uuidColumns"
|
|
@@ -96,6 +171,140 @@
|
|
|
96
171
|
"getTree",
|
|
97
172
|
"moveZone"
|
|
98
173
|
],
|
|
174
|
+
"methodSignatures": [
|
|
175
|
+
{
|
|
176
|
+
"name": "deleteZone",
|
|
177
|
+
"async": true,
|
|
178
|
+
"params": [
|
|
179
|
+
"zoneId: string",
|
|
180
|
+
"cascade?: boolean"
|
|
181
|
+
],
|
|
182
|
+
"returns": "Promise<number>"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "findByAllowedFormat",
|
|
186
|
+
"async": true,
|
|
187
|
+
"params": [
|
|
188
|
+
"propertyId: string",
|
|
189
|
+
"format: string"
|
|
190
|
+
],
|
|
191
|
+
"returns": "Promise<Zone[]>"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "findByDimensions",
|
|
195
|
+
"async": true,
|
|
196
|
+
"params": [
|
|
197
|
+
"propertyId: string",
|
|
198
|
+
"width: number",
|
|
199
|
+
"height: number"
|
|
200
|
+
],
|
|
201
|
+
"returns": "Promise<Zone[]>"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "findByPath",
|
|
205
|
+
"async": true,
|
|
206
|
+
"params": [
|
|
207
|
+
"propertyId: string",
|
|
208
|
+
"path: string"
|
|
209
|
+
],
|
|
210
|
+
"returns": "Promise<Zone[]>"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "findByProperty",
|
|
214
|
+
"async": true,
|
|
215
|
+
"params": [
|
|
216
|
+
"propertyId: string"
|
|
217
|
+
],
|
|
218
|
+
"returns": "Promise<Zone[]>"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "findByTenant",
|
|
222
|
+
"async": true,
|
|
223
|
+
"params": [
|
|
224
|
+
"tenantId: string"
|
|
225
|
+
],
|
|
226
|
+
"returns": "Promise<Zone[]>"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "findByType",
|
|
230
|
+
"async": true,
|
|
231
|
+
"params": [
|
|
232
|
+
"propertyId: string",
|
|
233
|
+
"type: string"
|
|
234
|
+
],
|
|
235
|
+
"returns": "Promise<Zone[]>"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "findChildren",
|
|
239
|
+
"async": true,
|
|
240
|
+
"params": [
|
|
241
|
+
"parentId: string"
|
|
242
|
+
],
|
|
243
|
+
"returns": "Promise<Zone[]>"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "findGlobal",
|
|
247
|
+
"async": true,
|
|
248
|
+
"returns": "Promise<Zone[]>"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "findTopLevel",
|
|
252
|
+
"async": true,
|
|
253
|
+
"params": [
|
|
254
|
+
"propertyId: string"
|
|
255
|
+
],
|
|
256
|
+
"returns": "Promise<Zone[]>"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "findWithGlobals",
|
|
260
|
+
"async": true,
|
|
261
|
+
"params": [
|
|
262
|
+
"tenantId: string"
|
|
263
|
+
],
|
|
264
|
+
"returns": "Promise<Zone[]>"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "getAncestors",
|
|
268
|
+
"async": true,
|
|
269
|
+
"params": [
|
|
270
|
+
"zoneId: string"
|
|
271
|
+
],
|
|
272
|
+
"returns": "Promise<Zone[]>"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "getDescendants",
|
|
276
|
+
"async": true,
|
|
277
|
+
"params": [
|
|
278
|
+
"zoneId: string"
|
|
279
|
+
],
|
|
280
|
+
"returns": "Promise<Zone[]>"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "getMaxDepth",
|
|
284
|
+
"async": true,
|
|
285
|
+
"params": [
|
|
286
|
+
"propertyId: string"
|
|
287
|
+
],
|
|
288
|
+
"returns": "Promise<number>"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "getTree",
|
|
292
|
+
"async": true,
|
|
293
|
+
"params": [
|
|
294
|
+
"propertyId: string"
|
|
295
|
+
],
|
|
296
|
+
"returns": "Promise<ZoneTree<Zone>>"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "moveZone",
|
|
300
|
+
"async": true,
|
|
301
|
+
"params": [
|
|
302
|
+
"zoneId: string",
|
|
303
|
+
"newParentId: string | null"
|
|
304
|
+
],
|
|
305
|
+
"returns": "Promise<Zone | null>"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
99
308
|
"surfaces": [],
|
|
100
309
|
"relationshipFeatures": [
|
|
101
310
|
"uuidColumns"
|
|
@@ -133,25 +342,29 @@
|
|
|
133
342
|
"name": "name",
|
|
134
343
|
"type": "text",
|
|
135
344
|
"required": false,
|
|
136
|
-
"columnType": "TEXT"
|
|
345
|
+
"columnType": "TEXT",
|
|
346
|
+
"default": ""
|
|
137
347
|
},
|
|
138
348
|
{
|
|
139
349
|
"name": "domain",
|
|
140
350
|
"type": "text",
|
|
141
351
|
"required": false,
|
|
142
|
-
"columnType": "TEXT"
|
|
352
|
+
"columnType": "TEXT",
|
|
353
|
+
"default": ""
|
|
143
354
|
},
|
|
144
355
|
{
|
|
145
356
|
"name": "url",
|
|
146
357
|
"type": "text",
|
|
147
358
|
"required": false,
|
|
148
|
-
"columnType": "TEXT"
|
|
359
|
+
"columnType": "TEXT",
|
|
360
|
+
"default": ""
|
|
149
361
|
},
|
|
150
362
|
{
|
|
151
363
|
"name": "description",
|
|
152
364
|
"type": "text",
|
|
153
365
|
"required": false,
|
|
154
|
-
"columnType": "TEXT"
|
|
366
|
+
"columnType": "TEXT",
|
|
367
|
+
"default": ""
|
|
155
368
|
},
|
|
156
369
|
{
|
|
157
370
|
"name": "repositoryId",
|
|
@@ -171,13 +384,15 @@
|
|
|
171
384
|
"name": "status",
|
|
172
385
|
"type": "text",
|
|
173
386
|
"required": false,
|
|
174
|
-
"columnType": "TEXT"
|
|
387
|
+
"columnType": "TEXT",
|
|
388
|
+
"default": "active"
|
|
175
389
|
},
|
|
176
390
|
{
|
|
177
391
|
"name": "metadata",
|
|
178
392
|
"type": "json",
|
|
179
393
|
"required": false,
|
|
180
|
-
"columnType": "JSON"
|
|
394
|
+
"columnType": "JSON",
|
|
395
|
+
"default": {}
|
|
181
396
|
}
|
|
182
397
|
],
|
|
183
398
|
"relationships": [
|
|
@@ -244,6 +459,305 @@
|
|
|
244
459
|
"toPlainObject",
|
|
245
460
|
"toPublicJSON"
|
|
246
461
|
],
|
|
462
|
+
"methodSignatures": [
|
|
463
|
+
{
|
|
464
|
+
"name": "_setLoadedRelationship",
|
|
465
|
+
"params": [
|
|
466
|
+
"fieldName: string",
|
|
467
|
+
"value: any"
|
|
468
|
+
],
|
|
469
|
+
"returns": "void"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "classifyConstraintError",
|
|
473
|
+
"static": true,
|
|
474
|
+
"params": [
|
|
475
|
+
"message: string"
|
|
476
|
+
],
|
|
477
|
+
"returns": "'unique' | 'not_null' | null"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "clearEmbeddings",
|
|
481
|
+
"async": true,
|
|
482
|
+
"returns": "Promise<void>"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "createZone",
|
|
486
|
+
"async": true,
|
|
487
|
+
"params": [
|
|
488
|
+
"options: Omit<'propertyId'>"
|
|
489
|
+
],
|
|
490
|
+
"returns": "Promise"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"name": "delete",
|
|
494
|
+
"async": true,
|
|
495
|
+
"returns": "Promise<void>"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "describe",
|
|
499
|
+
"async": true,
|
|
500
|
+
"params": [
|
|
501
|
+
"options?: AiOperationOptions"
|
|
502
|
+
],
|
|
503
|
+
"returns": "any"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "destroy",
|
|
507
|
+
"returns": "void"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "do",
|
|
511
|
+
"async": true,
|
|
512
|
+
"params": [
|
|
513
|
+
"instructions: string",
|
|
514
|
+
"options?: AiOperationOptions"
|
|
515
|
+
],
|
|
516
|
+
"returns": "any"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "executeToolCall",
|
|
520
|
+
"async": true,
|
|
521
|
+
"params": [
|
|
522
|
+
"toolCall: ToolCall"
|
|
523
|
+
],
|
|
524
|
+
"returns": "Promise<ToolCallResult>"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "forget",
|
|
528
|
+
"async": true,
|
|
529
|
+
"params": [
|
|
530
|
+
"options: object"
|
|
531
|
+
],
|
|
532
|
+
"returns": "Promise<void>"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"name": "forgetScope",
|
|
536
|
+
"async": true,
|
|
537
|
+
"params": [
|
|
538
|
+
"options: object"
|
|
539
|
+
],
|
|
540
|
+
"returns": "Promise<number>"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "generateEmbeddings",
|
|
544
|
+
"async": true,
|
|
545
|
+
"params": [
|
|
546
|
+
"options?: GenerateEmbeddingsOptions"
|
|
547
|
+
],
|
|
548
|
+
"returns": "Promise<void>"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "getAiUsageSnapshot",
|
|
552
|
+
"returns": "AiUsageSnapshot | undefined"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "getAvailableTools",
|
|
556
|
+
"returns": "AITool[]"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "getEmbedding",
|
|
560
|
+
"async": true,
|
|
561
|
+
"params": [
|
|
562
|
+
"fieldName: string",
|
|
563
|
+
"model?: string"
|
|
564
|
+
],
|
|
565
|
+
"returns": "Promise<number[] | null>"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "getFields",
|
|
569
|
+
"async": true,
|
|
570
|
+
"returns": "Promise<any>"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "getId",
|
|
574
|
+
"async": true,
|
|
575
|
+
"returns": "any"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "getRelated",
|
|
579
|
+
"async": true,
|
|
580
|
+
"params": [
|
|
581
|
+
"fieldName: string",
|
|
582
|
+
"opts?: LoadRelatedOptions"
|
|
583
|
+
],
|
|
584
|
+
"returns": "Promise<any>"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "getSavedId",
|
|
588
|
+
"async": true,
|
|
589
|
+
"returns": "any"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "getSlug",
|
|
593
|
+
"async": true,
|
|
594
|
+
"returns": "any"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "getZones",
|
|
598
|
+
"async": true,
|
|
599
|
+
"returns": "Promise"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "getZoneTree",
|
|
603
|
+
"async": true,
|
|
604
|
+
"returns": "Promise"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "hasStaleEmbeddings",
|
|
608
|
+
"async": true,
|
|
609
|
+
"returns": "Promise<boolean>"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "initialize",
|
|
613
|
+
"async": true,
|
|
614
|
+
"returns": "Promise"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "is",
|
|
618
|
+
"async": true,
|
|
619
|
+
"params": [
|
|
620
|
+
"criteria: string",
|
|
621
|
+
"options?: AiOperationOptions"
|
|
622
|
+
],
|
|
623
|
+
"returns": "any"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "isActive",
|
|
627
|
+
"returns": "boolean"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "isRelatedLoaded",
|
|
631
|
+
"params": [
|
|
632
|
+
"fieldName: string"
|
|
633
|
+
],
|
|
634
|
+
"returns": "boolean"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "isSaved",
|
|
638
|
+
"async": true,
|
|
639
|
+
"returns": "any"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "listAiUsage",
|
|
643
|
+
"async": true,
|
|
644
|
+
"params": [
|
|
645
|
+
"options?: AiUsageListOptions"
|
|
646
|
+
],
|
|
647
|
+
"returns": "Promise<SmrtAiUsageRecord[]>"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "loadDataFromDb",
|
|
651
|
+
"async": true,
|
|
652
|
+
"params": [
|
|
653
|
+
"data: Record<string>"
|
|
654
|
+
],
|
|
655
|
+
"returns": "any"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "loadFromId",
|
|
659
|
+
"async": true,
|
|
660
|
+
"returns": "any"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "loadFromSlug",
|
|
664
|
+
"async": true,
|
|
665
|
+
"returns": "any"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "loadRelated",
|
|
669
|
+
"async": true,
|
|
670
|
+
"params": [
|
|
671
|
+
"fieldName: string",
|
|
672
|
+
"opts?: LoadRelatedOptions"
|
|
673
|
+
],
|
|
674
|
+
"returns": "Promise<any>"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "loadRelatedMany",
|
|
678
|
+
"async": true,
|
|
679
|
+
"params": [
|
|
680
|
+
"fieldName: string",
|
|
681
|
+
"opts?: LoadRelatedOptions"
|
|
682
|
+
],
|
|
683
|
+
"returns": "Promise<any[]>"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "markAsPersisted",
|
|
687
|
+
"returns": "void"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"name": "recall",
|
|
691
|
+
"async": true,
|
|
692
|
+
"params": [
|
|
693
|
+
"options: object"
|
|
694
|
+
],
|
|
695
|
+
"returns": "Promise"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "recallAll",
|
|
699
|
+
"async": true,
|
|
700
|
+
"params": [
|
|
701
|
+
"options?: object"
|
|
702
|
+
],
|
|
703
|
+
"returns": "Promise<Map<string>>"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "remember",
|
|
707
|
+
"async": true,
|
|
708
|
+
"params": [
|
|
709
|
+
"options: object"
|
|
710
|
+
],
|
|
711
|
+
"returns": "Promise<void>"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "requireInsertOnSave",
|
|
715
|
+
"returns": "void"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "resetAiUsage",
|
|
719
|
+
"returns": "void"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "save",
|
|
723
|
+
"async": true,
|
|
724
|
+
"returns": "any"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "summarize",
|
|
728
|
+
"async": true,
|
|
729
|
+
"returns": "Promise<string>"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "summarizeAiUsage",
|
|
733
|
+
"async": true,
|
|
734
|
+
"params": [
|
|
735
|
+
"options?: AiUsageSummaryOptions"
|
|
736
|
+
],
|
|
737
|
+
"returns": "Promise<Record<string, AiUsageStats>>"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "toJSON",
|
|
741
|
+
"returns": "any"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "toPlainObject",
|
|
745
|
+
"returns": "Record<string>"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "toPublicJSON",
|
|
749
|
+
"params": [
|
|
750
|
+
"options?: PublicJsonOptions"
|
|
751
|
+
],
|
|
752
|
+
"returns": "Record<string>"
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
"tenant": {
|
|
756
|
+
"scoped": true,
|
|
757
|
+
"mode": "optional",
|
|
758
|
+
"field": "tenantId"
|
|
759
|
+
},
|
|
760
|
+
"tableStrategy": "sti",
|
|
247
761
|
"surfaces": [
|
|
248
762
|
{
|
|
249
763
|
"kind": "api",
|
|
@@ -373,31 +887,36 @@
|
|
|
373
887
|
"name": "name",
|
|
374
888
|
"type": "text",
|
|
375
889
|
"required": false,
|
|
376
|
-
"columnType": "TEXT"
|
|
890
|
+
"columnType": "TEXT",
|
|
891
|
+
"default": ""
|
|
377
892
|
},
|
|
378
893
|
{
|
|
379
894
|
"name": "type",
|
|
380
895
|
"type": "text",
|
|
381
896
|
"required": false,
|
|
382
|
-
"columnType": "TEXT"
|
|
897
|
+
"columnType": "TEXT",
|
|
898
|
+
"default": ""
|
|
383
899
|
},
|
|
384
900
|
{
|
|
385
901
|
"name": "path",
|
|
386
902
|
"type": "text",
|
|
387
903
|
"required": false,
|
|
388
|
-
"columnType": "TEXT"
|
|
904
|
+
"columnType": "TEXT",
|
|
905
|
+
"default": ""
|
|
389
906
|
},
|
|
390
907
|
{
|
|
391
908
|
"name": "selector",
|
|
392
909
|
"type": "text",
|
|
393
910
|
"required": false,
|
|
394
|
-
"columnType": "TEXT"
|
|
911
|
+
"columnType": "TEXT",
|
|
912
|
+
"default": ""
|
|
395
913
|
},
|
|
396
914
|
{
|
|
397
915
|
"name": "position",
|
|
398
916
|
"type": "text",
|
|
399
917
|
"required": false,
|
|
400
|
-
"columnType": "TEXT"
|
|
918
|
+
"columnType": "TEXT",
|
|
919
|
+
"default": ""
|
|
401
920
|
},
|
|
402
921
|
{
|
|
403
922
|
"name": "width",
|
|
@@ -415,7 +934,8 @@
|
|
|
415
934
|
"name": "allowedFormats",
|
|
416
935
|
"type": "json",
|
|
417
936
|
"required": false,
|
|
418
|
-
"columnType": "JSON"
|
|
937
|
+
"columnType": "JSON",
|
|
938
|
+
"default": []
|
|
419
939
|
},
|
|
420
940
|
{
|
|
421
941
|
"name": "defaultContentId",
|
|
@@ -427,7 +947,8 @@
|
|
|
427
947
|
"name": "metadata",
|
|
428
948
|
"type": "json",
|
|
429
949
|
"required": false,
|
|
430
|
-
"columnType": "JSON"
|
|
950
|
+
"columnType": "JSON",
|
|
951
|
+
"default": {}
|
|
431
952
|
}
|
|
432
953
|
],
|
|
433
954
|
"relationships": [
|
|
@@ -463,6 +984,93 @@
|
|
|
463
984
|
"moveTo",
|
|
464
985
|
"toTreeNode"
|
|
465
986
|
],
|
|
987
|
+
"methodSignatures": [
|
|
988
|
+
{
|
|
989
|
+
"name": "createChild",
|
|
990
|
+
"async": true,
|
|
991
|
+
"params": [
|
|
992
|
+
"options: Omit<ZoneOptions, 'propertyId' | 'parentId'>"
|
|
993
|
+
],
|
|
994
|
+
"returns": "Promise<Zone>"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "getAncestors",
|
|
998
|
+
"async": true,
|
|
999
|
+
"returns": "Promise"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "getChildren",
|
|
1003
|
+
"async": true,
|
|
1004
|
+
"returns": "Promise"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "getDepth",
|
|
1008
|
+
"async": true,
|
|
1009
|
+
"returns": "Promise<number>"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "getDescendants",
|
|
1013
|
+
"async": true,
|
|
1014
|
+
"returns": "Promise"
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"name": "getDimensionString",
|
|
1018
|
+
"returns": "string | null"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"name": "getFullPath",
|
|
1022
|
+
"async": true,
|
|
1023
|
+
"returns": "Promise<string>"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"name": "getHierarchy",
|
|
1027
|
+
"async": true,
|
|
1028
|
+
"returns": "Promise<HierarchyView>"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "getParent",
|
|
1032
|
+
"async": true,
|
|
1033
|
+
"returns": "Promise<null>"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "getProperty",
|
|
1037
|
+
"async": true,
|
|
1038
|
+
"returns": "Promise<null>"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "hasDimensions",
|
|
1042
|
+
"returns": "boolean"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"name": "isFormatAllowed",
|
|
1046
|
+
"params": [
|
|
1047
|
+
"format: string"
|
|
1048
|
+
],
|
|
1049
|
+
"returns": "boolean"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "isTopLevel",
|
|
1053
|
+
"returns": "boolean"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "moveTo",
|
|
1057
|
+
"async": true,
|
|
1058
|
+
"params": [
|
|
1059
|
+
"newParent: string | null"
|
|
1060
|
+
],
|
|
1061
|
+
"returns": "Promise<void>"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "toTreeNode",
|
|
1065
|
+
"async": true,
|
|
1066
|
+
"returns": "Promise<ZoneTreeNode<Zone>>"
|
|
1067
|
+
}
|
|
1068
|
+
],
|
|
1069
|
+
"tenant": {
|
|
1070
|
+
"scoped": true,
|
|
1071
|
+
"mode": "optional",
|
|
1072
|
+
"field": "tenantId"
|
|
1073
|
+
},
|
|
466
1074
|
"surfaces": [
|
|
467
1075
|
{
|
|
468
1076
|
"kind": "api",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-properties",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.66",
|
|
4
4
|
"description": "Digital property and zone management models for SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"./manifest.json": "./dist/manifest.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@happyvertical/smrt-
|
|
23
|
-
"@happyvertical/smrt-
|
|
24
|
-
"@happyvertical/smrt-
|
|
22
|
+
"@happyvertical/smrt-prompts": "0.40.66",
|
|
23
|
+
"@happyvertical/smrt-tenancy": "0.40.66",
|
|
24
|
+
"@happyvertical/smrt-core": "0.40.66"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@happyvertical/sql": "^0.86.
|
|
27
|
+
"@happyvertical/sql": "^0.86.3",
|
|
28
28
|
"@types/node": "24.13.2",
|
|
29
29
|
"fast-glob": "3.3.3",
|
|
30
30
|
"typescript": "5.9.3",
|
|
31
31
|
"vite": "8.1.4",
|
|
32
32
|
"vitest": "4.1.10",
|
|
33
|
-
"@happyvertical/smrt-
|
|
34
|
-
"@happyvertical/smrt-
|
|
33
|
+
"@happyvertical/smrt-cli": "0.40.66",
|
|
34
|
+
"@happyvertical/smrt-vitest": "0.40.66"
|
|
35
35
|
},
|
|
36
36
|
"keywords": [
|
|
37
37
|
"ai",
|