@happyvertical/smrt-core 0.38.18 → 0.38.20
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/AGENTS.md +28 -0
- package/dist/collection.d.ts +82 -41
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +92 -57
- package/dist/collection.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/interceptors.d.ts +2 -1
- package/dist/interceptors.d.ts.map +1 -1
- package/dist/interceptors.js.map +1 -1
- package/dist/learning/index.d.ts +8 -0
- package/dist/learning/index.d.ts.map +1 -0
- package/dist/learning/memory.d.ts +226 -0
- package/dist/learning/memory.d.ts.map +1 -0
- package/dist/learning/memory.js +340 -0
- package/dist/learning/memory.js.map +1 -0
- package/dist/manifest/static-manifest.js +4 -4
- package/dist/manifest/static-manifest.js.map +1 -1
- package/dist/manifest/store.js +1 -1
- package/dist/manifest/store.js.map +1 -1
- package/dist/manifest/test-manifest-stub.d.ts.map +1 -1
- package/dist/manifest/test-manifest-stub.js +1027 -229
- package/dist/manifest/test-manifest-stub.js.map +1 -1
- package/dist/manifest.json +4 -4
- package/dist/runtime/types.d.ts +1 -0
- package/dist/runtime/types.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +6 -6
- package/dist/testing/database.d.ts +5 -1
- package/dist/testing/database.d.ts.map +1 -1
- package/dist/testing/database.js +4 -1
- package/dist/testing/database.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
//#region src/manifest/test-manifest-stub.ts
|
|
2
2
|
var testManifest = {
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"timestamp":
|
|
4
|
+
"timestamp": 1783576161448,
|
|
5
5
|
"packageName": "@happyvertical/smrt-core",
|
|
6
|
-
"packageVersion": "0.38.
|
|
6
|
+
"packageVersion": "0.38.20",
|
|
7
7
|
"objects": {
|
|
8
8
|
"@happyvertical/smrt-core:SmrtClass": {
|
|
9
9
|
"name": "smrtclass",
|
|
@@ -229,10 +229,10 @@ var testManifest = {
|
|
|
229
229
|
"async": true,
|
|
230
230
|
"parameters": [{
|
|
231
231
|
"name": "options",
|
|
232
|
-
"type": "
|
|
232
|
+
"type": "SmrtListOptions<ModelType>",
|
|
233
233
|
"optional": true
|
|
234
234
|
}],
|
|
235
|
-
"returnType": "Promise<ModelType[]>",
|
|
235
|
+
"returnType": "Promise<ModelType[] | Record<string>[]>",
|
|
236
236
|
"isStatic": false,
|
|
237
237
|
"isPublic": true
|
|
238
238
|
},
|
|
@@ -7076,26 +7076,26 @@ var testManifest = {
|
|
|
7076
7076
|
"version": "700dd3d6"
|
|
7077
7077
|
}
|
|
7078
7078
|
},
|
|
7079
|
-
"@happyvertical/smrt-core:
|
|
7080
|
-
"name": "
|
|
7081
|
-
"className": "
|
|
7082
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7083
|
-
"collection": "
|
|
7084
|
-
"filePath": "packages/core/src/__tests__/
|
|
7079
|
+
"@happyvertical/smrt-core:ProjectionAccount": {
|
|
7080
|
+
"name": "projectionaccount",
|
|
7081
|
+
"className": "ProjectionAccount",
|
|
7082
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionAccount",
|
|
7083
|
+
"collection": "projectionaccounts",
|
|
7084
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7085
7085
|
"packageName": "@happyvertical/smrt-core",
|
|
7086
|
-
"fields": { "
|
|
7086
|
+
"fields": { "name": {
|
|
7087
7087
|
"type": "text",
|
|
7088
7088
|
"required": false,
|
|
7089
7089
|
"default": ""
|
|
7090
7090
|
} },
|
|
7091
7091
|
"methods": {},
|
|
7092
|
-
"decoratorConfig": {
|
|
7092
|
+
"decoratorConfig": {},
|
|
7093
7093
|
"extends": "SmrtObject",
|
|
7094
|
-
"exportName": "
|
|
7095
|
-
"collectionExportName": "
|
|
7094
|
+
"exportName": "ProjectionAccount",
|
|
7095
|
+
"collectionExportName": "ProjectionAccountCollection",
|
|
7096
7096
|
"schema": {
|
|
7097
|
-
"tableName": "
|
|
7098
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7097
|
+
"tableName": "projection_accounts",
|
|
7098
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_accounts\" (\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 \"name\" TEXT DEFAULT ''\n);",
|
|
7099
7099
|
"columns": {
|
|
7100
7100
|
"id": {
|
|
7101
7101
|
"type": "UUID",
|
|
@@ -7122,7 +7122,7 @@ var testManifest = {
|
|
|
7122
7122
|
"notNull": true,
|
|
7123
7123
|
"default": "current_timestamp"
|
|
7124
7124
|
},
|
|
7125
|
-
"
|
|
7125
|
+
"name": {
|
|
7126
7126
|
"type": "TEXT",
|
|
7127
7127
|
"notNull": false,
|
|
7128
7128
|
"unique": false,
|
|
@@ -7130,49 +7130,33 @@ var testManifest = {
|
|
|
7130
7130
|
}
|
|
7131
7131
|
},
|
|
7132
7132
|
"indexes": [{
|
|
7133
|
-
"name": "
|
|
7133
|
+
"name": "projection_accounts_id_idx",
|
|
7134
7134
|
"columns": ["id"]
|
|
7135
7135
|
}, {
|
|
7136
|
-
"name": "
|
|
7136
|
+
"name": "projection_accounts_slug_context_idx",
|
|
7137
7137
|
"columns": ["slug", "context"],
|
|
7138
7138
|
"unique": true
|
|
7139
7139
|
}],
|
|
7140
|
-
"version": "
|
|
7140
|
+
"version": "82baa87c"
|
|
7141
7141
|
}
|
|
7142
7142
|
},
|
|
7143
|
-
"@happyvertical/smrt-core:
|
|
7144
|
-
"name": "
|
|
7145
|
-
"className": "
|
|
7146
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7147
|
-
"collection": "
|
|
7148
|
-
"filePath": "packages/core/src/__tests__/
|
|
7143
|
+
"@happyvertical/smrt-core:ProjectionAccountCollection": {
|
|
7144
|
+
"name": "projectionaccountcollection",
|
|
7145
|
+
"className": "ProjectionAccountCollection",
|
|
7146
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionAccountCollection",
|
|
7147
|
+
"collection": "projectionaccounts",
|
|
7148
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7149
7149
|
"packageName": "@happyvertical/smrt-core",
|
|
7150
|
-
"fields": {
|
|
7151
|
-
"name": {
|
|
7152
|
-
"type": "text",
|
|
7153
|
-
"required": false,
|
|
7154
|
-
"default": ""
|
|
7155
|
-
},
|
|
7156
|
-
"profileId": {
|
|
7157
|
-
"type": "crossPackageRef",
|
|
7158
|
-
"required": false,
|
|
7159
|
-
"related": "@happyvertical/smrt-test-target:XPRefTargetProfile"
|
|
7160
|
-
},
|
|
7161
|
-
"primaryContactId": {
|
|
7162
|
-
"type": "crossPackageRef",
|
|
7163
|
-
"required": false,
|
|
7164
|
-
"related": "@happyvertical/smrt-test-target:XPRefTargetProfile",
|
|
7165
|
-
"_meta": { "validate": true }
|
|
7166
|
-
}
|
|
7167
|
-
},
|
|
7150
|
+
"fields": {},
|
|
7168
7151
|
"methods": {},
|
|
7169
7152
|
"decoratorConfig": {},
|
|
7170
|
-
"extends": "
|
|
7171
|
-
"
|
|
7172
|
-
"
|
|
7153
|
+
"extends": "SmrtCollection",
|
|
7154
|
+
"extendsTypeArg": "ProjectionAccount",
|
|
7155
|
+
"exportName": "ProjectionAccountCollection",
|
|
7156
|
+
"collectionExportName": "ProjectionAccountCollectionCollection",
|
|
7173
7157
|
"schema": {
|
|
7174
|
-
"tableName": "
|
|
7175
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7158
|
+
"tableName": "projection_account_collections",
|
|
7159
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_account_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);",
|
|
7176
7160
|
"columns": {
|
|
7177
7161
|
"id": {
|
|
7178
7162
|
"type": "UUID",
|
|
@@ -7198,69 +7182,56 @@ var testManifest = {
|
|
|
7198
7182
|
"type": "TIMESTAMP",
|
|
7199
7183
|
"notNull": true,
|
|
7200
7184
|
"default": "current_timestamp"
|
|
7201
|
-
},
|
|
7202
|
-
"name": {
|
|
7203
|
-
"type": "TEXT",
|
|
7204
|
-
"notNull": false,
|
|
7205
|
-
"unique": false,
|
|
7206
|
-
"default": ""
|
|
7207
|
-
},
|
|
7208
|
-
"profile_id": {
|
|
7209
|
-
"type": "UUID",
|
|
7210
|
-
"referenceKind": "crossPackageRef",
|
|
7211
|
-
"notNull": false,
|
|
7212
|
-
"unique": false
|
|
7213
|
-
},
|
|
7214
|
-
"primary_contact_id": {
|
|
7215
|
-
"type": "UUID",
|
|
7216
|
-
"referenceKind": "crossPackageRef",
|
|
7217
|
-
"notNull": false,
|
|
7218
|
-
"unique": false
|
|
7219
7185
|
}
|
|
7220
7186
|
},
|
|
7221
7187
|
"indexes": [{
|
|
7222
|
-
"name": "
|
|
7188
|
+
"name": "projection_account_collections_id_idx",
|
|
7223
7189
|
"columns": ["id"]
|
|
7224
7190
|
}, {
|
|
7225
|
-
"name": "
|
|
7191
|
+
"name": "projection_account_collections_slug_context_idx",
|
|
7226
7192
|
"columns": ["slug", "context"],
|
|
7227
7193
|
"unique": true
|
|
7228
7194
|
}],
|
|
7229
|
-
"version": "
|
|
7195
|
+
"version": "ec10a7f8"
|
|
7230
7196
|
}
|
|
7231
7197
|
},
|
|
7232
|
-
"@happyvertical/smrt-core:
|
|
7233
|
-
"name": "
|
|
7234
|
-
"className": "
|
|
7235
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7236
|
-
"collection": "
|
|
7237
|
-
"filePath": "packages/core/src/__tests__/
|
|
7198
|
+
"@happyvertical/smrt-core:ProjectionOpportunity": {
|
|
7199
|
+
"name": "projectionopportunity",
|
|
7200
|
+
"className": "ProjectionOpportunity",
|
|
7201
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionOpportunity",
|
|
7202
|
+
"collection": "projectionopportunities",
|
|
7203
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7238
7204
|
"packageName": "@happyvertical/smrt-core",
|
|
7239
7205
|
"fields": {
|
|
7240
|
-
"
|
|
7206
|
+
"title": {
|
|
7241
7207
|
"type": "text",
|
|
7242
7208
|
"required": false,
|
|
7243
7209
|
"default": ""
|
|
7244
7210
|
},
|
|
7245
|
-
"
|
|
7246
|
-
"type": "
|
|
7211
|
+
"status": {
|
|
7212
|
+
"type": "text",
|
|
7247
7213
|
"required": false,
|
|
7248
|
-
"
|
|
7214
|
+
"default": ""
|
|
7249
7215
|
},
|
|
7250
|
-
"
|
|
7251
|
-
"type": "
|
|
7216
|
+
"priority": {
|
|
7217
|
+
"type": "integer",
|
|
7252
7218
|
"required": false,
|
|
7253
|
-
"
|
|
7219
|
+
"default": 0
|
|
7220
|
+
},
|
|
7221
|
+
"accountId": {
|
|
7222
|
+
"type": "foreignKey",
|
|
7223
|
+
"required": false,
|
|
7224
|
+
"related": "ProjectionAccount"
|
|
7254
7225
|
}
|
|
7255
7226
|
},
|
|
7256
7227
|
"methods": {},
|
|
7257
7228
|
"decoratorConfig": {},
|
|
7258
7229
|
"extends": "SmrtObject",
|
|
7259
|
-
"exportName": "
|
|
7260
|
-
"collectionExportName": "
|
|
7230
|
+
"exportName": "ProjectionOpportunity",
|
|
7231
|
+
"collectionExportName": "ProjectionOpportunityCollection",
|
|
7261
7232
|
"schema": {
|
|
7262
|
-
"tableName": "
|
|
7263
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7233
|
+
"tableName": "projection_opportunities",
|
|
7234
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_opportunities\" (\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 \"title\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT '',\n \"priority\" INTEGER DEFAULT 0,\n \"account_id\" UUID\n);",
|
|
7264
7235
|
"columns": {
|
|
7265
7236
|
"id": {
|
|
7266
7237
|
"type": "UUID",
|
|
@@ -7287,118 +7258,59 @@ var testManifest = {
|
|
|
7287
7258
|
"notNull": true,
|
|
7288
7259
|
"default": "current_timestamp"
|
|
7289
7260
|
},
|
|
7290
|
-
"
|
|
7261
|
+
"title": {
|
|
7291
7262
|
"type": "TEXT",
|
|
7292
7263
|
"notNull": false,
|
|
7293
7264
|
"unique": false,
|
|
7294
7265
|
"default": ""
|
|
7295
|
-
}
|
|
7296
|
-
},
|
|
7297
|
-
"indexes": [{
|
|
7298
|
-
"name": "parents_id_idx",
|
|
7299
|
-
"columns": ["id"]
|
|
7300
|
-
}, {
|
|
7301
|
-
"name": "parents_slug_context_idx",
|
|
7302
|
-
"columns": ["slug", "context"],
|
|
7303
|
-
"unique": true
|
|
7304
|
-
}],
|
|
7305
|
-
"version": "f15b1a50"
|
|
7306
|
-
}
|
|
7307
|
-
},
|
|
7308
|
-
"@happyvertical/smrt-core:Child": {
|
|
7309
|
-
"name": "child",
|
|
7310
|
-
"className": "Child",
|
|
7311
|
-
"qualifiedName": "@happyvertical/smrt-core:Child",
|
|
7312
|
-
"collection": "childs",
|
|
7313
|
-
"filePath": "packages/core/src/__tests__/crud-with-relationships.test.ts",
|
|
7314
|
-
"packageName": "@happyvertical/smrt-core",
|
|
7315
|
-
"fields": {
|
|
7316
|
-
"parentId": {
|
|
7317
|
-
"type": "text",
|
|
7318
|
-
"required": false,
|
|
7319
|
-
"default": ""
|
|
7320
|
-
},
|
|
7321
|
-
"title": {
|
|
7322
|
-
"type": "text",
|
|
7323
|
-
"required": false,
|
|
7324
|
-
"default": ""
|
|
7325
|
-
}
|
|
7326
|
-
},
|
|
7327
|
-
"methods": {},
|
|
7328
|
-
"decoratorConfig": {},
|
|
7329
|
-
"extends": "SmrtObject",
|
|
7330
|
-
"exportName": "Child",
|
|
7331
|
-
"collectionExportName": "ChildCollection",
|
|
7332
|
-
"schema": {
|
|
7333
|
-
"tableName": "children",
|
|
7334
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"children\" (\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\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT ''\n);",
|
|
7335
|
-
"columns": {
|
|
7336
|
-
"id": {
|
|
7337
|
-
"type": "UUID",
|
|
7338
|
-
"primaryKey": true,
|
|
7339
|
-
"referenceKind": "id",
|
|
7340
|
-
"notNull": true
|
|
7341
|
-
},
|
|
7342
|
-
"slug": {
|
|
7343
|
-
"type": "TEXT",
|
|
7344
|
-
"notNull": true
|
|
7345
|
-
},
|
|
7346
|
-
"context": {
|
|
7347
|
-
"type": "TEXT",
|
|
7348
|
-
"notNull": true,
|
|
7349
|
-
"default": ""
|
|
7350
|
-
},
|
|
7351
|
-
"created_at": {
|
|
7352
|
-
"type": "TIMESTAMP",
|
|
7353
|
-
"notNull": true,
|
|
7354
|
-
"default": "current_timestamp"
|
|
7355
|
-
},
|
|
7356
|
-
"updated_at": {
|
|
7357
|
-
"type": "TIMESTAMP",
|
|
7358
|
-
"notNull": true,
|
|
7359
|
-
"default": "current_timestamp"
|
|
7360
7266
|
},
|
|
7361
|
-
"
|
|
7267
|
+
"status": {
|
|
7362
7268
|
"type": "TEXT",
|
|
7363
7269
|
"notNull": false,
|
|
7364
7270
|
"unique": false,
|
|
7365
7271
|
"default": ""
|
|
7366
7272
|
},
|
|
7367
|
-
"
|
|
7368
|
-
"type": "
|
|
7273
|
+
"priority": {
|
|
7274
|
+
"type": "INTEGER",
|
|
7369
7275
|
"notNull": false,
|
|
7370
7276
|
"unique": false,
|
|
7371
|
-
"default":
|
|
7277
|
+
"default": 0
|
|
7278
|
+
},
|
|
7279
|
+
"account_id": {
|
|
7280
|
+
"type": "UUID",
|
|
7281
|
+
"referenceKind": "foreignKey",
|
|
7282
|
+
"notNull": false,
|
|
7283
|
+
"unique": false
|
|
7372
7284
|
}
|
|
7373
7285
|
},
|
|
7374
7286
|
"indexes": [{
|
|
7375
|
-
"name": "
|
|
7287
|
+
"name": "projection_opportunities_id_idx",
|
|
7376
7288
|
"columns": ["id"]
|
|
7377
7289
|
}, {
|
|
7378
|
-
"name": "
|
|
7290
|
+
"name": "projection_opportunities_slug_context_idx",
|
|
7379
7291
|
"columns": ["slug", "context"],
|
|
7380
7292
|
"unique": true
|
|
7381
7293
|
}],
|
|
7382
|
-
"version": "
|
|
7294
|
+
"version": "6c2c93af"
|
|
7383
7295
|
}
|
|
7384
7296
|
},
|
|
7385
|
-
"@happyvertical/smrt-core:
|
|
7386
|
-
"name": "
|
|
7387
|
-
"className": "
|
|
7388
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7389
|
-
"collection": "
|
|
7390
|
-
"filePath": "packages/core/src/__tests__/
|
|
7297
|
+
"@happyvertical/smrt-core:ProjectionOpportunityCollection": {
|
|
7298
|
+
"name": "projectionopportunitycollection",
|
|
7299
|
+
"className": "ProjectionOpportunityCollection",
|
|
7300
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionOpportunityCollection",
|
|
7301
|
+
"collection": "projectionopportunities",
|
|
7302
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7391
7303
|
"packageName": "@happyvertical/smrt-core",
|
|
7392
7304
|
"fields": {},
|
|
7393
7305
|
"methods": {},
|
|
7394
7306
|
"decoratorConfig": {},
|
|
7395
7307
|
"extends": "SmrtCollection",
|
|
7396
|
-
"extendsTypeArg": "
|
|
7397
|
-
"exportName": "
|
|
7398
|
-
"collectionExportName": "
|
|
7308
|
+
"extendsTypeArg": "ProjectionOpportunity",
|
|
7309
|
+
"exportName": "ProjectionOpportunityCollection",
|
|
7310
|
+
"collectionExportName": "ProjectionOpportunityCollectionCollection",
|
|
7399
7311
|
"schema": {
|
|
7400
|
-
"tableName": "
|
|
7401
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7312
|
+
"tableName": "projection_opportunity_collections",
|
|
7313
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_opportunity_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);",
|
|
7402
7314
|
"columns": {
|
|
7403
7315
|
"id": {
|
|
7404
7316
|
"type": "UUID",
|
|
@@ -7427,46 +7339,44 @@ var testManifest = {
|
|
|
7427
7339
|
}
|
|
7428
7340
|
},
|
|
7429
7341
|
"indexes": [{
|
|
7430
|
-
"name": "
|
|
7342
|
+
"name": "projection_opportunity_collections_id_idx",
|
|
7431
7343
|
"columns": ["id"]
|
|
7432
7344
|
}, {
|
|
7433
|
-
"name": "
|
|
7345
|
+
"name": "projection_opportunity_collections_slug_context_idx",
|
|
7434
7346
|
"columns": ["slug", "context"],
|
|
7435
7347
|
"unique": true
|
|
7436
7348
|
}],
|
|
7437
|
-
"version": "
|
|
7349
|
+
"version": "3d0a788a"
|
|
7438
7350
|
}
|
|
7439
7351
|
},
|
|
7440
|
-
"@happyvertical/smrt-core:
|
|
7441
|
-
"name": "
|
|
7442
|
-
"className": "
|
|
7443
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7444
|
-
"collection": "
|
|
7445
|
-
"filePath": "packages/core/src/__tests__/
|
|
7352
|
+
"@happyvertical/smrt-core:ProjectionSecret": {
|
|
7353
|
+
"name": "projectionsecret",
|
|
7354
|
+
"className": "ProjectionSecret",
|
|
7355
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionSecret",
|
|
7356
|
+
"collection": "projectionsecrets",
|
|
7357
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7446
7358
|
"packageName": "@happyvertical/smrt-core",
|
|
7447
7359
|
"fields": {
|
|
7448
|
-
"
|
|
7360
|
+
"label": {
|
|
7449
7361
|
"type": "text",
|
|
7450
7362
|
"required": false,
|
|
7451
7363
|
"default": ""
|
|
7452
7364
|
},
|
|
7453
|
-
"
|
|
7365
|
+
"apiSecret": {
|
|
7454
7366
|
"type": "text",
|
|
7455
7367
|
"required": false,
|
|
7456
|
-
"
|
|
7368
|
+
"_meta": { "sensitive": true },
|
|
7369
|
+
"sensitive": true
|
|
7457
7370
|
}
|
|
7458
7371
|
},
|
|
7459
7372
|
"methods": {},
|
|
7460
|
-
"decoratorConfig": {
|
|
7461
|
-
"fields": ["content"],
|
|
7462
|
-
"autoGenerate": true
|
|
7463
|
-
} },
|
|
7373
|
+
"decoratorConfig": {},
|
|
7464
7374
|
"extends": "SmrtObject",
|
|
7465
|
-
"exportName": "
|
|
7466
|
-
"collectionExportName": "
|
|
7375
|
+
"exportName": "ProjectionSecret",
|
|
7376
|
+
"collectionExportName": "ProjectionSecretCollection",
|
|
7467
7377
|
"schema": {
|
|
7468
|
-
"tableName": "
|
|
7469
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7378
|
+
"tableName": "projection_secrets",
|
|
7379
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_secrets\" (\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 \"label\" TEXT DEFAULT '',\n \"api_secret\" TEXT\n);",
|
|
7470
7380
|
"columns": {
|
|
7471
7381
|
"id": {
|
|
7472
7382
|
"type": "UUID",
|
|
@@ -7493,47 +7403,46 @@ var testManifest = {
|
|
|
7493
7403
|
"notNull": true,
|
|
7494
7404
|
"default": "current_timestamp"
|
|
7495
7405
|
},
|
|
7496
|
-
"
|
|
7406
|
+
"label": {
|
|
7497
7407
|
"type": "TEXT",
|
|
7498
7408
|
"notNull": false,
|
|
7499
7409
|
"unique": false,
|
|
7500
7410
|
"default": ""
|
|
7501
7411
|
},
|
|
7502
|
-
"
|
|
7412
|
+
"api_secret": {
|
|
7503
7413
|
"type": "TEXT",
|
|
7504
7414
|
"notNull": false,
|
|
7505
|
-
"unique": false
|
|
7506
|
-
"default": ""
|
|
7415
|
+
"unique": false
|
|
7507
7416
|
}
|
|
7508
7417
|
},
|
|
7509
7418
|
"indexes": [{
|
|
7510
|
-
"name": "
|
|
7419
|
+
"name": "projection_secrets_id_idx",
|
|
7511
7420
|
"columns": ["id"]
|
|
7512
7421
|
}, {
|
|
7513
|
-
"name": "
|
|
7422
|
+
"name": "projection_secrets_slug_context_idx",
|
|
7514
7423
|
"columns": ["slug", "context"],
|
|
7515
7424
|
"unique": true
|
|
7516
7425
|
}],
|
|
7517
|
-
"version": "
|
|
7426
|
+
"version": "72cbf3f8"
|
|
7518
7427
|
}
|
|
7519
7428
|
},
|
|
7520
|
-
"@happyvertical/smrt-core:
|
|
7521
|
-
"name": "
|
|
7522
|
-
"className": "
|
|
7523
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7524
|
-
"collection": "
|
|
7525
|
-
"filePath": "packages/core/src/__tests__/
|
|
7429
|
+
"@happyvertical/smrt-core:ProjectionSecretCollection": {
|
|
7430
|
+
"name": "projectionsecretcollection",
|
|
7431
|
+
"className": "ProjectionSecretCollection",
|
|
7432
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionSecretCollection",
|
|
7433
|
+
"collection": "projectionsecrets",
|
|
7434
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7526
7435
|
"packageName": "@happyvertical/smrt-core",
|
|
7527
7436
|
"fields": {},
|
|
7528
7437
|
"methods": {},
|
|
7529
7438
|
"decoratorConfig": {},
|
|
7530
7439
|
"extends": "SmrtCollection",
|
|
7531
|
-
"extendsTypeArg": "
|
|
7532
|
-
"exportName": "
|
|
7533
|
-
"collectionExportName": "
|
|
7440
|
+
"extendsTypeArg": "ProjectionSecret",
|
|
7441
|
+
"exportName": "ProjectionSecretCollection",
|
|
7442
|
+
"collectionExportName": "ProjectionSecretCollectionCollection",
|
|
7534
7443
|
"schema": {
|
|
7535
|
-
"tableName": "
|
|
7536
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7444
|
+
"tableName": "projection_secret_collections",
|
|
7445
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_secret_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);",
|
|
7537
7446
|
"columns": {
|
|
7538
7447
|
"id": {
|
|
7539
7448
|
"type": "UUID",
|
|
@@ -7562,46 +7471,813 @@ var testManifest = {
|
|
|
7562
7471
|
}
|
|
7563
7472
|
},
|
|
7564
7473
|
"indexes": [{
|
|
7565
|
-
"name": "
|
|
7474
|
+
"name": "projection_secret_collections_id_idx",
|
|
7566
7475
|
"columns": ["id"]
|
|
7567
7476
|
}, {
|
|
7568
|
-
"name": "
|
|
7477
|
+
"name": "projection_secret_collections_slug_context_idx",
|
|
7569
7478
|
"columns": ["slug", "context"],
|
|
7570
7479
|
"unique": true
|
|
7571
7480
|
}],
|
|
7572
|
-
"version": "
|
|
7481
|
+
"version": "92100d16"
|
|
7573
7482
|
}
|
|
7574
7483
|
},
|
|
7575
|
-
"@happyvertical/smrt-core:
|
|
7576
|
-
"name": "
|
|
7577
|
-
"className": "
|
|
7578
|
-
"qualifiedName": "@happyvertical/smrt-core:
|
|
7579
|
-
"collection": "
|
|
7580
|
-
"filePath": "packages/core/src/__tests__/
|
|
7484
|
+
"@happyvertical/smrt-core:ProjectionRestricted": {
|
|
7485
|
+
"name": "projectionrestricted",
|
|
7486
|
+
"className": "ProjectionRestricted",
|
|
7487
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionRestricted",
|
|
7488
|
+
"collection": "projectionrestricteds",
|
|
7489
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7581
7490
|
"packageName": "@happyvertical/smrt-core",
|
|
7582
7491
|
"fields": {
|
|
7583
|
-
"
|
|
7492
|
+
"label": {
|
|
7584
7493
|
"type": "text",
|
|
7585
7494
|
"required": false,
|
|
7586
7495
|
"default": ""
|
|
7587
7496
|
},
|
|
7588
|
-
"
|
|
7497
|
+
"internalNote": {
|
|
7589
7498
|
"type": "text",
|
|
7590
7499
|
"required": false,
|
|
7591
|
-
"
|
|
7500
|
+
"_meta": { "readPermission": "projection.restricted.read" },
|
|
7501
|
+
"readPermission": "projection.restricted.read"
|
|
7592
7502
|
}
|
|
7593
7503
|
},
|
|
7594
7504
|
"methods": {},
|
|
7595
|
-
"decoratorConfig": {
|
|
7596
|
-
"fields": ["content"],
|
|
7597
|
-
"autoGenerate": false
|
|
7598
|
-
} },
|
|
7505
|
+
"decoratorConfig": {},
|
|
7599
7506
|
"extends": "SmrtObject",
|
|
7600
|
-
"exportName": "
|
|
7601
|
-
"collectionExportName": "
|
|
7507
|
+
"exportName": "ProjectionRestricted",
|
|
7508
|
+
"collectionExportName": "ProjectionRestrictedCollection",
|
|
7602
7509
|
"schema": {
|
|
7603
|
-
"tableName": "
|
|
7604
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
7510
|
+
"tableName": "projection_restricteds",
|
|
7511
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_restricteds\" (\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 \"label\" TEXT DEFAULT '',\n \"internal_note\" TEXT\n);",
|
|
7512
|
+
"columns": {
|
|
7513
|
+
"id": {
|
|
7514
|
+
"type": "UUID",
|
|
7515
|
+
"primaryKey": true,
|
|
7516
|
+
"referenceKind": "id",
|
|
7517
|
+
"notNull": true
|
|
7518
|
+
},
|
|
7519
|
+
"slug": {
|
|
7520
|
+
"type": "TEXT",
|
|
7521
|
+
"notNull": true
|
|
7522
|
+
},
|
|
7523
|
+
"context": {
|
|
7524
|
+
"type": "TEXT",
|
|
7525
|
+
"notNull": true,
|
|
7526
|
+
"default": ""
|
|
7527
|
+
},
|
|
7528
|
+
"created_at": {
|
|
7529
|
+
"type": "TIMESTAMP",
|
|
7530
|
+
"notNull": true,
|
|
7531
|
+
"default": "current_timestamp"
|
|
7532
|
+
},
|
|
7533
|
+
"updated_at": {
|
|
7534
|
+
"type": "TIMESTAMP",
|
|
7535
|
+
"notNull": true,
|
|
7536
|
+
"default": "current_timestamp"
|
|
7537
|
+
},
|
|
7538
|
+
"label": {
|
|
7539
|
+
"type": "TEXT",
|
|
7540
|
+
"notNull": false,
|
|
7541
|
+
"unique": false,
|
|
7542
|
+
"default": ""
|
|
7543
|
+
},
|
|
7544
|
+
"internal_note": {
|
|
7545
|
+
"type": "TEXT",
|
|
7546
|
+
"notNull": false,
|
|
7547
|
+
"unique": false
|
|
7548
|
+
}
|
|
7549
|
+
},
|
|
7550
|
+
"indexes": [{
|
|
7551
|
+
"name": "projection_restricteds_id_idx",
|
|
7552
|
+
"columns": ["id"]
|
|
7553
|
+
}, {
|
|
7554
|
+
"name": "projection_restricteds_slug_context_idx",
|
|
7555
|
+
"columns": ["slug", "context"],
|
|
7556
|
+
"unique": true
|
|
7557
|
+
}],
|
|
7558
|
+
"version": "47a1bcce"
|
|
7559
|
+
}
|
|
7560
|
+
},
|
|
7561
|
+
"@happyvertical/smrt-core:ProjectionRestrictedCollection": {
|
|
7562
|
+
"name": "projectionrestrictedcollection",
|
|
7563
|
+
"className": "ProjectionRestrictedCollection",
|
|
7564
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionRestrictedCollection",
|
|
7565
|
+
"collection": "projectionrestricteds",
|
|
7566
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7567
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7568
|
+
"fields": {},
|
|
7569
|
+
"methods": {},
|
|
7570
|
+
"decoratorConfig": {},
|
|
7571
|
+
"extends": "SmrtCollection",
|
|
7572
|
+
"extendsTypeArg": "ProjectionRestricted",
|
|
7573
|
+
"exportName": "ProjectionRestrictedCollection",
|
|
7574
|
+
"collectionExportName": "ProjectionRestrictedCollectionCollection",
|
|
7575
|
+
"schema": {
|
|
7576
|
+
"tableName": "projection_restricted_collections",
|
|
7577
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_restricted_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);",
|
|
7578
|
+
"columns": {
|
|
7579
|
+
"id": {
|
|
7580
|
+
"type": "UUID",
|
|
7581
|
+
"primaryKey": true,
|
|
7582
|
+
"referenceKind": "id",
|
|
7583
|
+
"notNull": true
|
|
7584
|
+
},
|
|
7585
|
+
"slug": {
|
|
7586
|
+
"type": "TEXT",
|
|
7587
|
+
"notNull": true
|
|
7588
|
+
},
|
|
7589
|
+
"context": {
|
|
7590
|
+
"type": "TEXT",
|
|
7591
|
+
"notNull": true,
|
|
7592
|
+
"default": ""
|
|
7593
|
+
},
|
|
7594
|
+
"created_at": {
|
|
7595
|
+
"type": "TIMESTAMP",
|
|
7596
|
+
"notNull": true,
|
|
7597
|
+
"default": "current_timestamp"
|
|
7598
|
+
},
|
|
7599
|
+
"updated_at": {
|
|
7600
|
+
"type": "TIMESTAMP",
|
|
7601
|
+
"notNull": true,
|
|
7602
|
+
"default": "current_timestamp"
|
|
7603
|
+
}
|
|
7604
|
+
},
|
|
7605
|
+
"indexes": [{
|
|
7606
|
+
"name": "projection_restricted_collections_id_idx",
|
|
7607
|
+
"columns": ["id"]
|
|
7608
|
+
}, {
|
|
7609
|
+
"name": "projection_restricted_collections_slug_context_idx",
|
|
7610
|
+
"columns": ["slug", "context"],
|
|
7611
|
+
"unique": true
|
|
7612
|
+
}],
|
|
7613
|
+
"version": "0b9562f1"
|
|
7614
|
+
}
|
|
7615
|
+
},
|
|
7616
|
+
"@happyvertical/smrt-core:ProjectionExternalRecord": {
|
|
7617
|
+
"name": "projectionexternalrecord",
|
|
7618
|
+
"className": "ProjectionExternalRecord",
|
|
7619
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionExternalRecord",
|
|
7620
|
+
"collection": "projectionexternalrecords",
|
|
7621
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7622
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7623
|
+
"fields": {
|
|
7624
|
+
"externalId": {
|
|
7625
|
+
"type": "text",
|
|
7626
|
+
"required": true,
|
|
7627
|
+
"_meta": {
|
|
7628
|
+
"required": true,
|
|
7629
|
+
"primaryKey": true
|
|
7630
|
+
}
|
|
7631
|
+
},
|
|
7632
|
+
"label": {
|
|
7633
|
+
"type": "text",
|
|
7634
|
+
"required": false,
|
|
7635
|
+
"default": ""
|
|
7636
|
+
}
|
|
7637
|
+
},
|
|
7638
|
+
"methods": {},
|
|
7639
|
+
"decoratorConfig": {},
|
|
7640
|
+
"extends": "SmrtObject",
|
|
7641
|
+
"exportName": "ProjectionExternalRecord",
|
|
7642
|
+
"collectionExportName": "ProjectionExternalRecordCollection",
|
|
7643
|
+
"validationRules": [{
|
|
7644
|
+
"field": "externalId",
|
|
7645
|
+
"rule": "required",
|
|
7646
|
+
"fieldType": "text"
|
|
7647
|
+
}],
|
|
7648
|
+
"schema": {
|
|
7649
|
+
"tableName": "projection_external_records",
|
|
7650
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_external_records\" (\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 \"external_id\" TEXT NOT NULL,\n \"label\" TEXT DEFAULT ''\n);",
|
|
7651
|
+
"columns": {
|
|
7652
|
+
"id": {
|
|
7653
|
+
"type": "UUID",
|
|
7654
|
+
"primaryKey": true,
|
|
7655
|
+
"referenceKind": "id",
|
|
7656
|
+
"notNull": true
|
|
7657
|
+
},
|
|
7658
|
+
"slug": {
|
|
7659
|
+
"type": "TEXT",
|
|
7660
|
+
"notNull": true
|
|
7661
|
+
},
|
|
7662
|
+
"context": {
|
|
7663
|
+
"type": "TEXT",
|
|
7664
|
+
"notNull": true,
|
|
7665
|
+
"default": ""
|
|
7666
|
+
},
|
|
7667
|
+
"created_at": {
|
|
7668
|
+
"type": "TIMESTAMP",
|
|
7669
|
+
"notNull": true,
|
|
7670
|
+
"default": "current_timestamp"
|
|
7671
|
+
},
|
|
7672
|
+
"updated_at": {
|
|
7673
|
+
"type": "TIMESTAMP",
|
|
7674
|
+
"notNull": true,
|
|
7675
|
+
"default": "current_timestamp"
|
|
7676
|
+
},
|
|
7677
|
+
"external_id": {
|
|
7678
|
+
"type": "TEXT",
|
|
7679
|
+
"notNull": true,
|
|
7680
|
+
"unique": false
|
|
7681
|
+
},
|
|
7682
|
+
"label": {
|
|
7683
|
+
"type": "TEXT",
|
|
7684
|
+
"notNull": false,
|
|
7685
|
+
"unique": false,
|
|
7686
|
+
"default": ""
|
|
7687
|
+
}
|
|
7688
|
+
},
|
|
7689
|
+
"indexes": [{
|
|
7690
|
+
"name": "projection_external_records_id_idx",
|
|
7691
|
+
"columns": ["id"]
|
|
7692
|
+
}, {
|
|
7693
|
+
"name": "projection_external_records_slug_context_idx",
|
|
7694
|
+
"columns": ["slug", "context"],
|
|
7695
|
+
"unique": true
|
|
7696
|
+
}],
|
|
7697
|
+
"version": "5e1744cf"
|
|
7698
|
+
}
|
|
7699
|
+
},
|
|
7700
|
+
"@happyvertical/smrt-core:ProjectionExternalRecordCollection": {
|
|
7701
|
+
"name": "projectionexternalrecordcollection",
|
|
7702
|
+
"className": "ProjectionExternalRecordCollection",
|
|
7703
|
+
"qualifiedName": "@happyvertical/smrt-core:ProjectionExternalRecordCollection",
|
|
7704
|
+
"collection": "projectionexternalrecords",
|
|
7705
|
+
"filePath": "packages/core/src/__tests__/collection-select.test.ts",
|
|
7706
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7707
|
+
"fields": {},
|
|
7708
|
+
"methods": {},
|
|
7709
|
+
"decoratorConfig": {},
|
|
7710
|
+
"extends": "SmrtCollection",
|
|
7711
|
+
"extendsTypeArg": "ProjectionExternalRecord",
|
|
7712
|
+
"exportName": "ProjectionExternalRecordCollection",
|
|
7713
|
+
"collectionExportName": "ProjectionExternalRecordCollectionCollection",
|
|
7714
|
+
"schema": {
|
|
7715
|
+
"tableName": "projection_external_record_collections",
|
|
7716
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"projection_external_record_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);",
|
|
7717
|
+
"columns": {
|
|
7718
|
+
"id": {
|
|
7719
|
+
"type": "UUID",
|
|
7720
|
+
"primaryKey": true,
|
|
7721
|
+
"referenceKind": "id",
|
|
7722
|
+
"notNull": true
|
|
7723
|
+
},
|
|
7724
|
+
"slug": {
|
|
7725
|
+
"type": "TEXT",
|
|
7726
|
+
"notNull": true
|
|
7727
|
+
},
|
|
7728
|
+
"context": {
|
|
7729
|
+
"type": "TEXT",
|
|
7730
|
+
"notNull": true,
|
|
7731
|
+
"default": ""
|
|
7732
|
+
},
|
|
7733
|
+
"created_at": {
|
|
7734
|
+
"type": "TIMESTAMP",
|
|
7735
|
+
"notNull": true,
|
|
7736
|
+
"default": "current_timestamp"
|
|
7737
|
+
},
|
|
7738
|
+
"updated_at": {
|
|
7739
|
+
"type": "TIMESTAMP",
|
|
7740
|
+
"notNull": true,
|
|
7741
|
+
"default": "current_timestamp"
|
|
7742
|
+
}
|
|
7743
|
+
},
|
|
7744
|
+
"indexes": [{
|
|
7745
|
+
"name": "projection_external_record_collections_id_idx",
|
|
7746
|
+
"columns": ["id"]
|
|
7747
|
+
}, {
|
|
7748
|
+
"name": "projection_external_record_collections_slug_context_idx",
|
|
7749
|
+
"columns": ["slug", "context"],
|
|
7750
|
+
"unique": true
|
|
7751
|
+
}],
|
|
7752
|
+
"version": "fef6b56b"
|
|
7753
|
+
}
|
|
7754
|
+
},
|
|
7755
|
+
"@happyvertical/smrt-core:XPRefTargetProfile": {
|
|
7756
|
+
"name": "xpreftargetprofile",
|
|
7757
|
+
"className": "XPRefTargetProfile",
|
|
7758
|
+
"qualifiedName": "@happyvertical/smrt-core:XPRefTargetProfile",
|
|
7759
|
+
"collection": "xpreftargetprofiles",
|
|
7760
|
+
"filePath": "packages/core/src/__tests__/cross-package-ref.test.ts",
|
|
7761
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7762
|
+
"fields": { "displayName": {
|
|
7763
|
+
"type": "text",
|
|
7764
|
+
"required": false,
|
|
7765
|
+
"default": ""
|
|
7766
|
+
} },
|
|
7767
|
+
"methods": {},
|
|
7768
|
+
"decoratorConfig": { "packageName": "@happyvertical/smrt-test-target" },
|
|
7769
|
+
"extends": "SmrtObject",
|
|
7770
|
+
"exportName": "XPRefTargetProfile",
|
|
7771
|
+
"collectionExportName": "XPRefTargetProfileCollection",
|
|
7772
|
+
"schema": {
|
|
7773
|
+
"tableName": "xpref_target_profiles",
|
|
7774
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"xpref_target_profiles\" (\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 \"display_name\" TEXT DEFAULT ''\n);",
|
|
7775
|
+
"columns": {
|
|
7776
|
+
"id": {
|
|
7777
|
+
"type": "UUID",
|
|
7778
|
+
"primaryKey": true,
|
|
7779
|
+
"referenceKind": "id",
|
|
7780
|
+
"notNull": true
|
|
7781
|
+
},
|
|
7782
|
+
"slug": {
|
|
7783
|
+
"type": "TEXT",
|
|
7784
|
+
"notNull": true
|
|
7785
|
+
},
|
|
7786
|
+
"context": {
|
|
7787
|
+
"type": "TEXT",
|
|
7788
|
+
"notNull": true,
|
|
7789
|
+
"default": ""
|
|
7790
|
+
},
|
|
7791
|
+
"created_at": {
|
|
7792
|
+
"type": "TIMESTAMP",
|
|
7793
|
+
"notNull": true,
|
|
7794
|
+
"default": "current_timestamp"
|
|
7795
|
+
},
|
|
7796
|
+
"updated_at": {
|
|
7797
|
+
"type": "TIMESTAMP",
|
|
7798
|
+
"notNull": true,
|
|
7799
|
+
"default": "current_timestamp"
|
|
7800
|
+
},
|
|
7801
|
+
"display_name": {
|
|
7802
|
+
"type": "TEXT",
|
|
7803
|
+
"notNull": false,
|
|
7804
|
+
"unique": false,
|
|
7805
|
+
"default": ""
|
|
7806
|
+
}
|
|
7807
|
+
},
|
|
7808
|
+
"indexes": [{
|
|
7809
|
+
"name": "xpref_target_profiles_id_idx",
|
|
7810
|
+
"columns": ["id"]
|
|
7811
|
+
}, {
|
|
7812
|
+
"name": "xpref_target_profiles_slug_context_idx",
|
|
7813
|
+
"columns": ["slug", "context"],
|
|
7814
|
+
"unique": true
|
|
7815
|
+
}],
|
|
7816
|
+
"version": "07da3616"
|
|
7817
|
+
}
|
|
7818
|
+
},
|
|
7819
|
+
"@happyvertical/smrt-core:XPRefSourceCustomer": {
|
|
7820
|
+
"name": "xprefsourcecustomer",
|
|
7821
|
+
"className": "XPRefSourceCustomer",
|
|
7822
|
+
"qualifiedName": "@happyvertical/smrt-core:XPRefSourceCustomer",
|
|
7823
|
+
"collection": "xprefsourcecustomers",
|
|
7824
|
+
"filePath": "packages/core/src/__tests__/cross-package-ref.test.ts",
|
|
7825
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7826
|
+
"fields": {
|
|
7827
|
+
"name": {
|
|
7828
|
+
"type": "text",
|
|
7829
|
+
"required": false,
|
|
7830
|
+
"default": ""
|
|
7831
|
+
},
|
|
7832
|
+
"profileId": {
|
|
7833
|
+
"type": "crossPackageRef",
|
|
7834
|
+
"required": false,
|
|
7835
|
+
"related": "@happyvertical/smrt-test-target:XPRefTargetProfile"
|
|
7836
|
+
},
|
|
7837
|
+
"primaryContactId": {
|
|
7838
|
+
"type": "crossPackageRef",
|
|
7839
|
+
"required": false,
|
|
7840
|
+
"related": "@happyvertical/smrt-test-target:XPRefTargetProfile",
|
|
7841
|
+
"_meta": { "validate": true }
|
|
7842
|
+
}
|
|
7843
|
+
},
|
|
7844
|
+
"methods": {},
|
|
7845
|
+
"decoratorConfig": {},
|
|
7846
|
+
"extends": "SmrtObject",
|
|
7847
|
+
"exportName": "XPRefSourceCustomer",
|
|
7848
|
+
"collectionExportName": "XPRefSourceCustomerCollection",
|
|
7849
|
+
"schema": {
|
|
7850
|
+
"tableName": "xpref_source_customers",
|
|
7851
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"xpref_source_customers\" (\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 \"name\" TEXT DEFAULT '',\n \"profile_id\" UUID,\n \"primary_contact_id\" UUID\n);",
|
|
7852
|
+
"columns": {
|
|
7853
|
+
"id": {
|
|
7854
|
+
"type": "UUID",
|
|
7855
|
+
"primaryKey": true,
|
|
7856
|
+
"referenceKind": "id",
|
|
7857
|
+
"notNull": true
|
|
7858
|
+
},
|
|
7859
|
+
"slug": {
|
|
7860
|
+
"type": "TEXT",
|
|
7861
|
+
"notNull": true
|
|
7862
|
+
},
|
|
7863
|
+
"context": {
|
|
7864
|
+
"type": "TEXT",
|
|
7865
|
+
"notNull": true,
|
|
7866
|
+
"default": ""
|
|
7867
|
+
},
|
|
7868
|
+
"created_at": {
|
|
7869
|
+
"type": "TIMESTAMP",
|
|
7870
|
+
"notNull": true,
|
|
7871
|
+
"default": "current_timestamp"
|
|
7872
|
+
},
|
|
7873
|
+
"updated_at": {
|
|
7874
|
+
"type": "TIMESTAMP",
|
|
7875
|
+
"notNull": true,
|
|
7876
|
+
"default": "current_timestamp"
|
|
7877
|
+
},
|
|
7878
|
+
"name": {
|
|
7879
|
+
"type": "TEXT",
|
|
7880
|
+
"notNull": false,
|
|
7881
|
+
"unique": false,
|
|
7882
|
+
"default": ""
|
|
7883
|
+
},
|
|
7884
|
+
"profile_id": {
|
|
7885
|
+
"type": "UUID",
|
|
7886
|
+
"referenceKind": "crossPackageRef",
|
|
7887
|
+
"notNull": false,
|
|
7888
|
+
"unique": false
|
|
7889
|
+
},
|
|
7890
|
+
"primary_contact_id": {
|
|
7891
|
+
"type": "UUID",
|
|
7892
|
+
"referenceKind": "crossPackageRef",
|
|
7893
|
+
"notNull": false,
|
|
7894
|
+
"unique": false
|
|
7895
|
+
}
|
|
7896
|
+
},
|
|
7897
|
+
"indexes": [{
|
|
7898
|
+
"name": "xpref_source_customers_id_idx",
|
|
7899
|
+
"columns": ["id"]
|
|
7900
|
+
}, {
|
|
7901
|
+
"name": "xpref_source_customers_slug_context_idx",
|
|
7902
|
+
"columns": ["slug", "context"],
|
|
7903
|
+
"unique": true
|
|
7904
|
+
}],
|
|
7905
|
+
"version": "b30970cb"
|
|
7906
|
+
}
|
|
7907
|
+
},
|
|
7908
|
+
"@happyvertical/smrt-core:Parent": {
|
|
7909
|
+
"name": "parent",
|
|
7910
|
+
"className": "Parent",
|
|
7911
|
+
"qualifiedName": "@happyvertical/smrt-core:Parent",
|
|
7912
|
+
"collection": "parents",
|
|
7913
|
+
"filePath": "packages/core/src/__tests__/crud-with-relationships.test.ts",
|
|
7914
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7915
|
+
"fields": {
|
|
7916
|
+
"name": {
|
|
7917
|
+
"type": "text",
|
|
7918
|
+
"required": false,
|
|
7919
|
+
"default": ""
|
|
7920
|
+
},
|
|
7921
|
+
"children": {
|
|
7922
|
+
"type": "oneToMany",
|
|
7923
|
+
"required": false,
|
|
7924
|
+
"related": "Child"
|
|
7925
|
+
},
|
|
7926
|
+
"relatedItems": {
|
|
7927
|
+
"type": "oneToMany",
|
|
7928
|
+
"required": false,
|
|
7929
|
+
"related": "Related"
|
|
7930
|
+
}
|
|
7931
|
+
},
|
|
7932
|
+
"methods": {},
|
|
7933
|
+
"decoratorConfig": {},
|
|
7934
|
+
"extends": "SmrtObject",
|
|
7935
|
+
"exportName": "Parent",
|
|
7936
|
+
"collectionExportName": "ParentCollection",
|
|
7937
|
+
"schema": {
|
|
7938
|
+
"tableName": "parents",
|
|
7939
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"parents\" (\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 \"name\" TEXT DEFAULT ''\n);",
|
|
7940
|
+
"columns": {
|
|
7941
|
+
"id": {
|
|
7942
|
+
"type": "UUID",
|
|
7943
|
+
"primaryKey": true,
|
|
7944
|
+
"referenceKind": "id",
|
|
7945
|
+
"notNull": true
|
|
7946
|
+
},
|
|
7947
|
+
"slug": {
|
|
7948
|
+
"type": "TEXT",
|
|
7949
|
+
"notNull": true
|
|
7950
|
+
},
|
|
7951
|
+
"context": {
|
|
7952
|
+
"type": "TEXT",
|
|
7953
|
+
"notNull": true,
|
|
7954
|
+
"default": ""
|
|
7955
|
+
},
|
|
7956
|
+
"created_at": {
|
|
7957
|
+
"type": "TIMESTAMP",
|
|
7958
|
+
"notNull": true,
|
|
7959
|
+
"default": "current_timestamp"
|
|
7960
|
+
},
|
|
7961
|
+
"updated_at": {
|
|
7962
|
+
"type": "TIMESTAMP",
|
|
7963
|
+
"notNull": true,
|
|
7964
|
+
"default": "current_timestamp"
|
|
7965
|
+
},
|
|
7966
|
+
"name": {
|
|
7967
|
+
"type": "TEXT",
|
|
7968
|
+
"notNull": false,
|
|
7969
|
+
"unique": false,
|
|
7970
|
+
"default": ""
|
|
7971
|
+
}
|
|
7972
|
+
},
|
|
7973
|
+
"indexes": [{
|
|
7974
|
+
"name": "parents_id_idx",
|
|
7975
|
+
"columns": ["id"]
|
|
7976
|
+
}, {
|
|
7977
|
+
"name": "parents_slug_context_idx",
|
|
7978
|
+
"columns": ["slug", "context"],
|
|
7979
|
+
"unique": true
|
|
7980
|
+
}],
|
|
7981
|
+
"version": "f15b1a50"
|
|
7982
|
+
}
|
|
7983
|
+
},
|
|
7984
|
+
"@happyvertical/smrt-core:Child": {
|
|
7985
|
+
"name": "child",
|
|
7986
|
+
"className": "Child",
|
|
7987
|
+
"qualifiedName": "@happyvertical/smrt-core:Child",
|
|
7988
|
+
"collection": "childs",
|
|
7989
|
+
"filePath": "packages/core/src/__tests__/crud-with-relationships.test.ts",
|
|
7990
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7991
|
+
"fields": {
|
|
7992
|
+
"parentId": {
|
|
7993
|
+
"type": "text",
|
|
7994
|
+
"required": false,
|
|
7995
|
+
"default": ""
|
|
7996
|
+
},
|
|
7997
|
+
"title": {
|
|
7998
|
+
"type": "text",
|
|
7999
|
+
"required": false,
|
|
8000
|
+
"default": ""
|
|
8001
|
+
}
|
|
8002
|
+
},
|
|
8003
|
+
"methods": {},
|
|
8004
|
+
"decoratorConfig": {},
|
|
8005
|
+
"extends": "SmrtObject",
|
|
8006
|
+
"exportName": "Child",
|
|
8007
|
+
"collectionExportName": "ChildCollection",
|
|
8008
|
+
"schema": {
|
|
8009
|
+
"tableName": "children",
|
|
8010
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"children\" (\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\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT ''\n);",
|
|
8011
|
+
"columns": {
|
|
8012
|
+
"id": {
|
|
8013
|
+
"type": "UUID",
|
|
8014
|
+
"primaryKey": true,
|
|
8015
|
+
"referenceKind": "id",
|
|
8016
|
+
"notNull": true
|
|
8017
|
+
},
|
|
8018
|
+
"slug": {
|
|
8019
|
+
"type": "TEXT",
|
|
8020
|
+
"notNull": true
|
|
8021
|
+
},
|
|
8022
|
+
"context": {
|
|
8023
|
+
"type": "TEXT",
|
|
8024
|
+
"notNull": true,
|
|
8025
|
+
"default": ""
|
|
8026
|
+
},
|
|
8027
|
+
"created_at": {
|
|
8028
|
+
"type": "TIMESTAMP",
|
|
8029
|
+
"notNull": true,
|
|
8030
|
+
"default": "current_timestamp"
|
|
8031
|
+
},
|
|
8032
|
+
"updated_at": {
|
|
8033
|
+
"type": "TIMESTAMP",
|
|
8034
|
+
"notNull": true,
|
|
8035
|
+
"default": "current_timestamp"
|
|
8036
|
+
},
|
|
8037
|
+
"parent_id": {
|
|
8038
|
+
"type": "TEXT",
|
|
8039
|
+
"notNull": false,
|
|
8040
|
+
"unique": false,
|
|
8041
|
+
"default": ""
|
|
8042
|
+
},
|
|
8043
|
+
"title": {
|
|
8044
|
+
"type": "TEXT",
|
|
8045
|
+
"notNull": false,
|
|
8046
|
+
"unique": false,
|
|
8047
|
+
"default": ""
|
|
8048
|
+
}
|
|
8049
|
+
},
|
|
8050
|
+
"indexes": [{
|
|
8051
|
+
"name": "children_id_idx",
|
|
8052
|
+
"columns": ["id"]
|
|
8053
|
+
}, {
|
|
8054
|
+
"name": "children_slug_context_idx",
|
|
8055
|
+
"columns": ["slug", "context"],
|
|
8056
|
+
"unique": true
|
|
8057
|
+
}],
|
|
8058
|
+
"version": "2064f66f"
|
|
8059
|
+
}
|
|
8060
|
+
},
|
|
8061
|
+
"@happyvertical/smrt-core:ParentCollection": {
|
|
8062
|
+
"name": "parentcollection",
|
|
8063
|
+
"className": "ParentCollection",
|
|
8064
|
+
"qualifiedName": "@happyvertical/smrt-core:ParentCollection",
|
|
8065
|
+
"collection": "parents",
|
|
8066
|
+
"filePath": "packages/core/src/__tests__/crud-with-relationships.test.ts",
|
|
8067
|
+
"packageName": "@happyvertical/smrt-core",
|
|
8068
|
+
"fields": {},
|
|
8069
|
+
"methods": {},
|
|
8070
|
+
"decoratorConfig": {},
|
|
8071
|
+
"extends": "SmrtCollection",
|
|
8072
|
+
"extendsTypeArg": "Parent",
|
|
8073
|
+
"exportName": "ParentCollection",
|
|
8074
|
+
"collectionExportName": "ParentCollectionCollection",
|
|
8075
|
+
"schema": {
|
|
8076
|
+
"tableName": "parent_collections",
|
|
8077
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"parent_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);",
|
|
8078
|
+
"columns": {
|
|
8079
|
+
"id": {
|
|
8080
|
+
"type": "UUID",
|
|
8081
|
+
"primaryKey": true,
|
|
8082
|
+
"referenceKind": "id",
|
|
8083
|
+
"notNull": true
|
|
8084
|
+
},
|
|
8085
|
+
"slug": {
|
|
8086
|
+
"type": "TEXT",
|
|
8087
|
+
"notNull": true
|
|
8088
|
+
},
|
|
8089
|
+
"context": {
|
|
8090
|
+
"type": "TEXT",
|
|
8091
|
+
"notNull": true,
|
|
8092
|
+
"default": ""
|
|
8093
|
+
},
|
|
8094
|
+
"created_at": {
|
|
8095
|
+
"type": "TIMESTAMP",
|
|
8096
|
+
"notNull": true,
|
|
8097
|
+
"default": "current_timestamp"
|
|
8098
|
+
},
|
|
8099
|
+
"updated_at": {
|
|
8100
|
+
"type": "TIMESTAMP",
|
|
8101
|
+
"notNull": true,
|
|
8102
|
+
"default": "current_timestamp"
|
|
8103
|
+
}
|
|
8104
|
+
},
|
|
8105
|
+
"indexes": [{
|
|
8106
|
+
"name": "parent_collections_id_idx",
|
|
8107
|
+
"columns": ["id"]
|
|
8108
|
+
}, {
|
|
8109
|
+
"name": "parent_collections_slug_context_idx",
|
|
8110
|
+
"columns": ["slug", "context"],
|
|
8111
|
+
"unique": true
|
|
8112
|
+
}],
|
|
8113
|
+
"version": "574c09a3"
|
|
8114
|
+
}
|
|
8115
|
+
},
|
|
8116
|
+
"@happyvertical/smrt-core:AutoGenDocument": {
|
|
8117
|
+
"name": "autogendocument",
|
|
8118
|
+
"className": "AutoGenDocument",
|
|
8119
|
+
"qualifiedName": "@happyvertical/smrt-core:AutoGenDocument",
|
|
8120
|
+
"collection": "autogendocuments",
|
|
8121
|
+
"filePath": "packages/core/src/__tests__/embedding-auto-generate.test.ts",
|
|
8122
|
+
"packageName": "@happyvertical/smrt-core",
|
|
8123
|
+
"fields": {
|
|
8124
|
+
"title": {
|
|
8125
|
+
"type": "text",
|
|
8126
|
+
"required": false,
|
|
8127
|
+
"default": ""
|
|
8128
|
+
},
|
|
8129
|
+
"content": {
|
|
8130
|
+
"type": "text",
|
|
8131
|
+
"required": false,
|
|
8132
|
+
"default": ""
|
|
8133
|
+
}
|
|
8134
|
+
},
|
|
8135
|
+
"methods": {},
|
|
8136
|
+
"decoratorConfig": { "embeddings": {
|
|
8137
|
+
"fields": ["content"],
|
|
8138
|
+
"autoGenerate": true
|
|
8139
|
+
} },
|
|
8140
|
+
"extends": "SmrtObject",
|
|
8141
|
+
"exportName": "AutoGenDocument",
|
|
8142
|
+
"collectionExportName": "AutoGenDocumentCollection",
|
|
8143
|
+
"schema": {
|
|
8144
|
+
"tableName": "auto_gen_documents",
|
|
8145
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"auto_gen_documents\" (\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 \"title\" TEXT DEFAULT '',\n \"content\" TEXT DEFAULT ''\n);",
|
|
8146
|
+
"columns": {
|
|
8147
|
+
"id": {
|
|
8148
|
+
"type": "UUID",
|
|
8149
|
+
"primaryKey": true,
|
|
8150
|
+
"referenceKind": "id",
|
|
8151
|
+
"notNull": true
|
|
8152
|
+
},
|
|
8153
|
+
"slug": {
|
|
8154
|
+
"type": "TEXT",
|
|
8155
|
+
"notNull": true
|
|
8156
|
+
},
|
|
8157
|
+
"context": {
|
|
8158
|
+
"type": "TEXT",
|
|
8159
|
+
"notNull": true,
|
|
8160
|
+
"default": ""
|
|
8161
|
+
},
|
|
8162
|
+
"created_at": {
|
|
8163
|
+
"type": "TIMESTAMP",
|
|
8164
|
+
"notNull": true,
|
|
8165
|
+
"default": "current_timestamp"
|
|
8166
|
+
},
|
|
8167
|
+
"updated_at": {
|
|
8168
|
+
"type": "TIMESTAMP",
|
|
8169
|
+
"notNull": true,
|
|
8170
|
+
"default": "current_timestamp"
|
|
8171
|
+
},
|
|
8172
|
+
"title": {
|
|
8173
|
+
"type": "TEXT",
|
|
8174
|
+
"notNull": false,
|
|
8175
|
+
"unique": false,
|
|
8176
|
+
"default": ""
|
|
8177
|
+
},
|
|
8178
|
+
"content": {
|
|
8179
|
+
"type": "TEXT",
|
|
8180
|
+
"notNull": false,
|
|
8181
|
+
"unique": false,
|
|
8182
|
+
"default": ""
|
|
8183
|
+
}
|
|
8184
|
+
},
|
|
8185
|
+
"indexes": [{
|
|
8186
|
+
"name": "auto_gen_documents_id_idx",
|
|
8187
|
+
"columns": ["id"]
|
|
8188
|
+
}, {
|
|
8189
|
+
"name": "auto_gen_documents_slug_context_idx",
|
|
8190
|
+
"columns": ["slug", "context"],
|
|
8191
|
+
"unique": true
|
|
8192
|
+
}],
|
|
8193
|
+
"version": "be63e70d"
|
|
8194
|
+
}
|
|
8195
|
+
},
|
|
8196
|
+
"@happyvertical/smrt-core:AutoGenDocumentCollection": {
|
|
8197
|
+
"name": "autogendocumentcollection",
|
|
8198
|
+
"className": "AutoGenDocumentCollection",
|
|
8199
|
+
"qualifiedName": "@happyvertical/smrt-core:AutoGenDocumentCollection",
|
|
8200
|
+
"collection": "autogendocuments",
|
|
8201
|
+
"filePath": "packages/core/src/__tests__/embedding-auto-generate.test.ts",
|
|
8202
|
+
"packageName": "@happyvertical/smrt-core",
|
|
8203
|
+
"fields": {},
|
|
8204
|
+
"methods": {},
|
|
8205
|
+
"decoratorConfig": {},
|
|
8206
|
+
"extends": "SmrtCollection",
|
|
8207
|
+
"extendsTypeArg": "AutoGenDocument",
|
|
8208
|
+
"exportName": "AutoGenDocumentCollection",
|
|
8209
|
+
"collectionExportName": "AutoGenDocumentCollectionCollection",
|
|
8210
|
+
"schema": {
|
|
8211
|
+
"tableName": "auto_gen_document_collections",
|
|
8212
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"auto_gen_document_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);",
|
|
8213
|
+
"columns": {
|
|
8214
|
+
"id": {
|
|
8215
|
+
"type": "UUID",
|
|
8216
|
+
"primaryKey": true,
|
|
8217
|
+
"referenceKind": "id",
|
|
8218
|
+
"notNull": true
|
|
8219
|
+
},
|
|
8220
|
+
"slug": {
|
|
8221
|
+
"type": "TEXT",
|
|
8222
|
+
"notNull": true
|
|
8223
|
+
},
|
|
8224
|
+
"context": {
|
|
8225
|
+
"type": "TEXT",
|
|
8226
|
+
"notNull": true,
|
|
8227
|
+
"default": ""
|
|
8228
|
+
},
|
|
8229
|
+
"created_at": {
|
|
8230
|
+
"type": "TIMESTAMP",
|
|
8231
|
+
"notNull": true,
|
|
8232
|
+
"default": "current_timestamp"
|
|
8233
|
+
},
|
|
8234
|
+
"updated_at": {
|
|
8235
|
+
"type": "TIMESTAMP",
|
|
8236
|
+
"notNull": true,
|
|
8237
|
+
"default": "current_timestamp"
|
|
8238
|
+
}
|
|
8239
|
+
},
|
|
8240
|
+
"indexes": [{
|
|
8241
|
+
"name": "auto_gen_document_collections_id_idx",
|
|
8242
|
+
"columns": ["id"]
|
|
8243
|
+
}, {
|
|
8244
|
+
"name": "auto_gen_document_collections_slug_context_idx",
|
|
8245
|
+
"columns": ["slug", "context"],
|
|
8246
|
+
"unique": true
|
|
8247
|
+
}],
|
|
8248
|
+
"version": "2d96cbe4"
|
|
8249
|
+
}
|
|
8250
|
+
},
|
|
8251
|
+
"@happyvertical/smrt-core:ManualGenDocument": {
|
|
8252
|
+
"name": "manualgendocument",
|
|
8253
|
+
"className": "ManualGenDocument",
|
|
8254
|
+
"qualifiedName": "@happyvertical/smrt-core:ManualGenDocument",
|
|
8255
|
+
"collection": "manualgendocuments",
|
|
8256
|
+
"filePath": "packages/core/src/__tests__/embedding-auto-generate.test.ts",
|
|
8257
|
+
"packageName": "@happyvertical/smrt-core",
|
|
8258
|
+
"fields": {
|
|
8259
|
+
"title": {
|
|
8260
|
+
"type": "text",
|
|
8261
|
+
"required": false,
|
|
8262
|
+
"default": ""
|
|
8263
|
+
},
|
|
8264
|
+
"content": {
|
|
8265
|
+
"type": "text",
|
|
8266
|
+
"required": false,
|
|
8267
|
+
"default": ""
|
|
8268
|
+
}
|
|
8269
|
+
},
|
|
8270
|
+
"methods": {},
|
|
8271
|
+
"decoratorConfig": { "embeddings": {
|
|
8272
|
+
"fields": ["content"],
|
|
8273
|
+
"autoGenerate": false
|
|
8274
|
+
} },
|
|
8275
|
+
"extends": "SmrtObject",
|
|
8276
|
+
"exportName": "ManualGenDocument",
|
|
8277
|
+
"collectionExportName": "ManualGenDocumentCollection",
|
|
8278
|
+
"schema": {
|
|
8279
|
+
"tableName": "manual_gen_documents",
|
|
8280
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"manual_gen_documents\" (\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 \"title\" TEXT DEFAULT '',\n \"content\" TEXT DEFAULT ''\n);",
|
|
7605
8281
|
"columns": {
|
|
7606
8282
|
"id": {
|
|
7607
8283
|
"type": "UUID",
|
|
@@ -71165,6 +71841,128 @@ var testManifest = {
|
|
|
71165
71841
|
"version": "f97e7d09"
|
|
71166
71842
|
}
|
|
71167
71843
|
},
|
|
71844
|
+
"@happyvertical/smrt-core:LearningNote": {
|
|
71845
|
+
"name": "learningnote",
|
|
71846
|
+
"className": "LearningNote",
|
|
71847
|
+
"qualifiedName": "@happyvertical/smrt-core:LearningNote",
|
|
71848
|
+
"collection": "learningnotes",
|
|
71849
|
+
"filePath": "packages/core/src/learning/memory.test.ts",
|
|
71850
|
+
"packageName": "@happyvertical/smrt-core",
|
|
71851
|
+
"fields": { "content": {
|
|
71852
|
+
"type": "text",
|
|
71853
|
+
"required": false,
|
|
71854
|
+
"default": ""
|
|
71855
|
+
} },
|
|
71856
|
+
"methods": {},
|
|
71857
|
+
"decoratorConfig": { "embeddings": {
|
|
71858
|
+
"fields": ["content"],
|
|
71859
|
+
"autoGenerate": false
|
|
71860
|
+
} },
|
|
71861
|
+
"extends": "SmrtObject",
|
|
71862
|
+
"exportName": "LearningNote",
|
|
71863
|
+
"collectionExportName": "LearningNoteCollection",
|
|
71864
|
+
"schema": {
|
|
71865
|
+
"tableName": "learning_notes",
|
|
71866
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"learning_notes\" (\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 \"content\" TEXT DEFAULT ''\n);",
|
|
71867
|
+
"columns": {
|
|
71868
|
+
"id": {
|
|
71869
|
+
"type": "UUID",
|
|
71870
|
+
"primaryKey": true,
|
|
71871
|
+
"referenceKind": "id",
|
|
71872
|
+
"notNull": true
|
|
71873
|
+
},
|
|
71874
|
+
"slug": {
|
|
71875
|
+
"type": "TEXT",
|
|
71876
|
+
"notNull": true
|
|
71877
|
+
},
|
|
71878
|
+
"context": {
|
|
71879
|
+
"type": "TEXT",
|
|
71880
|
+
"notNull": true,
|
|
71881
|
+
"default": ""
|
|
71882
|
+
},
|
|
71883
|
+
"created_at": {
|
|
71884
|
+
"type": "TIMESTAMP",
|
|
71885
|
+
"notNull": true,
|
|
71886
|
+
"default": "current_timestamp"
|
|
71887
|
+
},
|
|
71888
|
+
"updated_at": {
|
|
71889
|
+
"type": "TIMESTAMP",
|
|
71890
|
+
"notNull": true,
|
|
71891
|
+
"default": "current_timestamp"
|
|
71892
|
+
},
|
|
71893
|
+
"content": {
|
|
71894
|
+
"type": "TEXT",
|
|
71895
|
+
"notNull": false,
|
|
71896
|
+
"unique": false,
|
|
71897
|
+
"default": ""
|
|
71898
|
+
}
|
|
71899
|
+
},
|
|
71900
|
+
"indexes": [{
|
|
71901
|
+
"name": "learning_notes_id_idx",
|
|
71902
|
+
"columns": ["id"]
|
|
71903
|
+
}, {
|
|
71904
|
+
"name": "learning_notes_slug_context_idx",
|
|
71905
|
+
"columns": ["slug", "context"],
|
|
71906
|
+
"unique": true
|
|
71907
|
+
}],
|
|
71908
|
+
"version": "61ba3524"
|
|
71909
|
+
}
|
|
71910
|
+
},
|
|
71911
|
+
"@happyvertical/smrt-core:LearningNoteCollection": {
|
|
71912
|
+
"name": "learningnotecollection",
|
|
71913
|
+
"className": "LearningNoteCollection",
|
|
71914
|
+
"qualifiedName": "@happyvertical/smrt-core:LearningNoteCollection",
|
|
71915
|
+
"collection": "learningnotes",
|
|
71916
|
+
"filePath": "packages/core/src/learning/memory.test.ts",
|
|
71917
|
+
"packageName": "@happyvertical/smrt-core",
|
|
71918
|
+
"fields": {},
|
|
71919
|
+
"methods": {},
|
|
71920
|
+
"decoratorConfig": {},
|
|
71921
|
+
"extends": "SmrtCollection",
|
|
71922
|
+
"extendsTypeArg": "LearningNote",
|
|
71923
|
+
"exportName": "LearningNoteCollection",
|
|
71924
|
+
"collectionExportName": "LearningNoteCollectionCollection",
|
|
71925
|
+
"schema": {
|
|
71926
|
+
"tableName": "learning_note_collections",
|
|
71927
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"learning_note_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);",
|
|
71928
|
+
"columns": {
|
|
71929
|
+
"id": {
|
|
71930
|
+
"type": "UUID",
|
|
71931
|
+
"primaryKey": true,
|
|
71932
|
+
"referenceKind": "id",
|
|
71933
|
+
"notNull": true
|
|
71934
|
+
},
|
|
71935
|
+
"slug": {
|
|
71936
|
+
"type": "TEXT",
|
|
71937
|
+
"notNull": true
|
|
71938
|
+
},
|
|
71939
|
+
"context": {
|
|
71940
|
+
"type": "TEXT",
|
|
71941
|
+
"notNull": true,
|
|
71942
|
+
"default": ""
|
|
71943
|
+
},
|
|
71944
|
+
"created_at": {
|
|
71945
|
+
"type": "TIMESTAMP",
|
|
71946
|
+
"notNull": true,
|
|
71947
|
+
"default": "current_timestamp"
|
|
71948
|
+
},
|
|
71949
|
+
"updated_at": {
|
|
71950
|
+
"type": "TIMESTAMP",
|
|
71951
|
+
"notNull": true,
|
|
71952
|
+
"default": "current_timestamp"
|
|
71953
|
+
}
|
|
71954
|
+
},
|
|
71955
|
+
"indexes": [{
|
|
71956
|
+
"name": "learning_note_collections_id_idx",
|
|
71957
|
+
"columns": ["id"]
|
|
71958
|
+
}, {
|
|
71959
|
+
"name": "learning_note_collections_slug_context_idx",
|
|
71960
|
+
"columns": ["slug", "context"],
|
|
71961
|
+
"unique": true
|
|
71962
|
+
}],
|
|
71963
|
+
"version": "4d2823ae"
|
|
71964
|
+
}
|
|
71965
|
+
},
|
|
71168
71966
|
"@happyvertical/smrt-core:CliModuleTestDocument": {
|
|
71169
71967
|
"name": "climoduletestdocument",
|
|
71170
71968
|
"className": "CliModuleTestDocument",
|