@happyvertical/smrt-core 0.38.19 → 0.38.21
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 +8 -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/interceptors.d.ts +2 -1
- package/dist/interceptors.d.ts.map +1 -1
- package/dist/interceptors.js.map +1 -1
- 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 +680 -4
- 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": 1783580570160,
|
|
5
5
|
"packageName": "@happyvertical/smrt-core",
|
|
6
|
-
"packageVersion": "0.38.
|
|
6
|
+
"packageVersion": "0.38.21",
|
|
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,6 +7076,682 @@ var testManifest = {
|
|
|
7076
7076
|
"version": "700dd3d6"
|
|
7077
7077
|
}
|
|
7078
7078
|
},
|
|
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
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7086
|
+
"fields": { "name": {
|
|
7087
|
+
"type": "text",
|
|
7088
|
+
"required": false,
|
|
7089
|
+
"default": ""
|
|
7090
|
+
} },
|
|
7091
|
+
"methods": {},
|
|
7092
|
+
"decoratorConfig": {},
|
|
7093
|
+
"extends": "SmrtObject",
|
|
7094
|
+
"exportName": "ProjectionAccount",
|
|
7095
|
+
"collectionExportName": "ProjectionAccountCollection",
|
|
7096
|
+
"schema": {
|
|
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
|
+
"columns": {
|
|
7100
|
+
"id": {
|
|
7101
|
+
"type": "UUID",
|
|
7102
|
+
"primaryKey": true,
|
|
7103
|
+
"referenceKind": "id",
|
|
7104
|
+
"notNull": true
|
|
7105
|
+
},
|
|
7106
|
+
"slug": {
|
|
7107
|
+
"type": "TEXT",
|
|
7108
|
+
"notNull": true
|
|
7109
|
+
},
|
|
7110
|
+
"context": {
|
|
7111
|
+
"type": "TEXT",
|
|
7112
|
+
"notNull": true,
|
|
7113
|
+
"default": ""
|
|
7114
|
+
},
|
|
7115
|
+
"created_at": {
|
|
7116
|
+
"type": "TIMESTAMP",
|
|
7117
|
+
"notNull": true,
|
|
7118
|
+
"default": "current_timestamp"
|
|
7119
|
+
},
|
|
7120
|
+
"updated_at": {
|
|
7121
|
+
"type": "TIMESTAMP",
|
|
7122
|
+
"notNull": true,
|
|
7123
|
+
"default": "current_timestamp"
|
|
7124
|
+
},
|
|
7125
|
+
"name": {
|
|
7126
|
+
"type": "TEXT",
|
|
7127
|
+
"notNull": false,
|
|
7128
|
+
"unique": false,
|
|
7129
|
+
"default": ""
|
|
7130
|
+
}
|
|
7131
|
+
},
|
|
7132
|
+
"indexes": [{
|
|
7133
|
+
"name": "projection_accounts_id_idx",
|
|
7134
|
+
"columns": ["id"]
|
|
7135
|
+
}, {
|
|
7136
|
+
"name": "projection_accounts_slug_context_idx",
|
|
7137
|
+
"columns": ["slug", "context"],
|
|
7138
|
+
"unique": true
|
|
7139
|
+
}],
|
|
7140
|
+
"version": "82baa87c"
|
|
7141
|
+
}
|
|
7142
|
+
},
|
|
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
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7150
|
+
"fields": {},
|
|
7151
|
+
"methods": {},
|
|
7152
|
+
"decoratorConfig": {},
|
|
7153
|
+
"extends": "SmrtCollection",
|
|
7154
|
+
"extendsTypeArg": "ProjectionAccount",
|
|
7155
|
+
"exportName": "ProjectionAccountCollection",
|
|
7156
|
+
"collectionExportName": "ProjectionAccountCollectionCollection",
|
|
7157
|
+
"schema": {
|
|
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);",
|
|
7160
|
+
"columns": {
|
|
7161
|
+
"id": {
|
|
7162
|
+
"type": "UUID",
|
|
7163
|
+
"primaryKey": true,
|
|
7164
|
+
"referenceKind": "id",
|
|
7165
|
+
"notNull": true
|
|
7166
|
+
},
|
|
7167
|
+
"slug": {
|
|
7168
|
+
"type": "TEXT",
|
|
7169
|
+
"notNull": true
|
|
7170
|
+
},
|
|
7171
|
+
"context": {
|
|
7172
|
+
"type": "TEXT",
|
|
7173
|
+
"notNull": true,
|
|
7174
|
+
"default": ""
|
|
7175
|
+
},
|
|
7176
|
+
"created_at": {
|
|
7177
|
+
"type": "TIMESTAMP",
|
|
7178
|
+
"notNull": true,
|
|
7179
|
+
"default": "current_timestamp"
|
|
7180
|
+
},
|
|
7181
|
+
"updated_at": {
|
|
7182
|
+
"type": "TIMESTAMP",
|
|
7183
|
+
"notNull": true,
|
|
7184
|
+
"default": "current_timestamp"
|
|
7185
|
+
}
|
|
7186
|
+
},
|
|
7187
|
+
"indexes": [{
|
|
7188
|
+
"name": "projection_account_collections_id_idx",
|
|
7189
|
+
"columns": ["id"]
|
|
7190
|
+
}, {
|
|
7191
|
+
"name": "projection_account_collections_slug_context_idx",
|
|
7192
|
+
"columns": ["slug", "context"],
|
|
7193
|
+
"unique": true
|
|
7194
|
+
}],
|
|
7195
|
+
"version": "ec10a7f8"
|
|
7196
|
+
}
|
|
7197
|
+
},
|
|
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",
|
|
7204
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7205
|
+
"fields": {
|
|
7206
|
+
"title": {
|
|
7207
|
+
"type": "text",
|
|
7208
|
+
"required": false,
|
|
7209
|
+
"default": ""
|
|
7210
|
+
},
|
|
7211
|
+
"status": {
|
|
7212
|
+
"type": "text",
|
|
7213
|
+
"required": false,
|
|
7214
|
+
"default": ""
|
|
7215
|
+
},
|
|
7216
|
+
"priority": {
|
|
7217
|
+
"type": "integer",
|
|
7218
|
+
"required": false,
|
|
7219
|
+
"default": 0
|
|
7220
|
+
},
|
|
7221
|
+
"accountId": {
|
|
7222
|
+
"type": "foreignKey",
|
|
7223
|
+
"required": false,
|
|
7224
|
+
"related": "ProjectionAccount"
|
|
7225
|
+
}
|
|
7226
|
+
},
|
|
7227
|
+
"methods": {},
|
|
7228
|
+
"decoratorConfig": {},
|
|
7229
|
+
"extends": "SmrtObject",
|
|
7230
|
+
"exportName": "ProjectionOpportunity",
|
|
7231
|
+
"collectionExportName": "ProjectionOpportunityCollection",
|
|
7232
|
+
"schema": {
|
|
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);",
|
|
7235
|
+
"columns": {
|
|
7236
|
+
"id": {
|
|
7237
|
+
"type": "UUID",
|
|
7238
|
+
"primaryKey": true,
|
|
7239
|
+
"referenceKind": "id",
|
|
7240
|
+
"notNull": true
|
|
7241
|
+
},
|
|
7242
|
+
"slug": {
|
|
7243
|
+
"type": "TEXT",
|
|
7244
|
+
"notNull": true
|
|
7245
|
+
},
|
|
7246
|
+
"context": {
|
|
7247
|
+
"type": "TEXT",
|
|
7248
|
+
"notNull": true,
|
|
7249
|
+
"default": ""
|
|
7250
|
+
},
|
|
7251
|
+
"created_at": {
|
|
7252
|
+
"type": "TIMESTAMP",
|
|
7253
|
+
"notNull": true,
|
|
7254
|
+
"default": "current_timestamp"
|
|
7255
|
+
},
|
|
7256
|
+
"updated_at": {
|
|
7257
|
+
"type": "TIMESTAMP",
|
|
7258
|
+
"notNull": true,
|
|
7259
|
+
"default": "current_timestamp"
|
|
7260
|
+
},
|
|
7261
|
+
"title": {
|
|
7262
|
+
"type": "TEXT",
|
|
7263
|
+
"notNull": false,
|
|
7264
|
+
"unique": false,
|
|
7265
|
+
"default": ""
|
|
7266
|
+
},
|
|
7267
|
+
"status": {
|
|
7268
|
+
"type": "TEXT",
|
|
7269
|
+
"notNull": false,
|
|
7270
|
+
"unique": false,
|
|
7271
|
+
"default": ""
|
|
7272
|
+
},
|
|
7273
|
+
"priority": {
|
|
7274
|
+
"type": "INTEGER",
|
|
7275
|
+
"notNull": false,
|
|
7276
|
+
"unique": false,
|
|
7277
|
+
"default": 0
|
|
7278
|
+
},
|
|
7279
|
+
"account_id": {
|
|
7280
|
+
"type": "UUID",
|
|
7281
|
+
"referenceKind": "foreignKey",
|
|
7282
|
+
"notNull": false,
|
|
7283
|
+
"unique": false
|
|
7284
|
+
}
|
|
7285
|
+
},
|
|
7286
|
+
"indexes": [{
|
|
7287
|
+
"name": "projection_opportunities_id_idx",
|
|
7288
|
+
"columns": ["id"]
|
|
7289
|
+
}, {
|
|
7290
|
+
"name": "projection_opportunities_slug_context_idx",
|
|
7291
|
+
"columns": ["slug", "context"],
|
|
7292
|
+
"unique": true
|
|
7293
|
+
}],
|
|
7294
|
+
"version": "6c2c93af"
|
|
7295
|
+
}
|
|
7296
|
+
},
|
|
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",
|
|
7303
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7304
|
+
"fields": {},
|
|
7305
|
+
"methods": {},
|
|
7306
|
+
"decoratorConfig": {},
|
|
7307
|
+
"extends": "SmrtCollection",
|
|
7308
|
+
"extendsTypeArg": "ProjectionOpportunity",
|
|
7309
|
+
"exportName": "ProjectionOpportunityCollection",
|
|
7310
|
+
"collectionExportName": "ProjectionOpportunityCollectionCollection",
|
|
7311
|
+
"schema": {
|
|
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);",
|
|
7314
|
+
"columns": {
|
|
7315
|
+
"id": {
|
|
7316
|
+
"type": "UUID",
|
|
7317
|
+
"primaryKey": true,
|
|
7318
|
+
"referenceKind": "id",
|
|
7319
|
+
"notNull": true
|
|
7320
|
+
},
|
|
7321
|
+
"slug": {
|
|
7322
|
+
"type": "TEXT",
|
|
7323
|
+
"notNull": true
|
|
7324
|
+
},
|
|
7325
|
+
"context": {
|
|
7326
|
+
"type": "TEXT",
|
|
7327
|
+
"notNull": true,
|
|
7328
|
+
"default": ""
|
|
7329
|
+
},
|
|
7330
|
+
"created_at": {
|
|
7331
|
+
"type": "TIMESTAMP",
|
|
7332
|
+
"notNull": true,
|
|
7333
|
+
"default": "current_timestamp"
|
|
7334
|
+
},
|
|
7335
|
+
"updated_at": {
|
|
7336
|
+
"type": "TIMESTAMP",
|
|
7337
|
+
"notNull": true,
|
|
7338
|
+
"default": "current_timestamp"
|
|
7339
|
+
}
|
|
7340
|
+
},
|
|
7341
|
+
"indexes": [{
|
|
7342
|
+
"name": "projection_opportunity_collections_id_idx",
|
|
7343
|
+
"columns": ["id"]
|
|
7344
|
+
}, {
|
|
7345
|
+
"name": "projection_opportunity_collections_slug_context_idx",
|
|
7346
|
+
"columns": ["slug", "context"],
|
|
7347
|
+
"unique": true
|
|
7348
|
+
}],
|
|
7349
|
+
"version": "3d0a788a"
|
|
7350
|
+
}
|
|
7351
|
+
},
|
|
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",
|
|
7358
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7359
|
+
"fields": {
|
|
7360
|
+
"label": {
|
|
7361
|
+
"type": "text",
|
|
7362
|
+
"required": false,
|
|
7363
|
+
"default": ""
|
|
7364
|
+
},
|
|
7365
|
+
"apiSecret": {
|
|
7366
|
+
"type": "text",
|
|
7367
|
+
"required": false,
|
|
7368
|
+
"_meta": { "sensitive": true },
|
|
7369
|
+
"sensitive": true
|
|
7370
|
+
}
|
|
7371
|
+
},
|
|
7372
|
+
"methods": {},
|
|
7373
|
+
"decoratorConfig": {},
|
|
7374
|
+
"extends": "SmrtObject",
|
|
7375
|
+
"exportName": "ProjectionSecret",
|
|
7376
|
+
"collectionExportName": "ProjectionSecretCollection",
|
|
7377
|
+
"schema": {
|
|
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);",
|
|
7380
|
+
"columns": {
|
|
7381
|
+
"id": {
|
|
7382
|
+
"type": "UUID",
|
|
7383
|
+
"primaryKey": true,
|
|
7384
|
+
"referenceKind": "id",
|
|
7385
|
+
"notNull": true
|
|
7386
|
+
},
|
|
7387
|
+
"slug": {
|
|
7388
|
+
"type": "TEXT",
|
|
7389
|
+
"notNull": true
|
|
7390
|
+
},
|
|
7391
|
+
"context": {
|
|
7392
|
+
"type": "TEXT",
|
|
7393
|
+
"notNull": true,
|
|
7394
|
+
"default": ""
|
|
7395
|
+
},
|
|
7396
|
+
"created_at": {
|
|
7397
|
+
"type": "TIMESTAMP",
|
|
7398
|
+
"notNull": true,
|
|
7399
|
+
"default": "current_timestamp"
|
|
7400
|
+
},
|
|
7401
|
+
"updated_at": {
|
|
7402
|
+
"type": "TIMESTAMP",
|
|
7403
|
+
"notNull": true,
|
|
7404
|
+
"default": "current_timestamp"
|
|
7405
|
+
},
|
|
7406
|
+
"label": {
|
|
7407
|
+
"type": "TEXT",
|
|
7408
|
+
"notNull": false,
|
|
7409
|
+
"unique": false,
|
|
7410
|
+
"default": ""
|
|
7411
|
+
},
|
|
7412
|
+
"api_secret": {
|
|
7413
|
+
"type": "TEXT",
|
|
7414
|
+
"notNull": false,
|
|
7415
|
+
"unique": false
|
|
7416
|
+
}
|
|
7417
|
+
},
|
|
7418
|
+
"indexes": [{
|
|
7419
|
+
"name": "projection_secrets_id_idx",
|
|
7420
|
+
"columns": ["id"]
|
|
7421
|
+
}, {
|
|
7422
|
+
"name": "projection_secrets_slug_context_idx",
|
|
7423
|
+
"columns": ["slug", "context"],
|
|
7424
|
+
"unique": true
|
|
7425
|
+
}],
|
|
7426
|
+
"version": "72cbf3f8"
|
|
7427
|
+
}
|
|
7428
|
+
},
|
|
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",
|
|
7435
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7436
|
+
"fields": {},
|
|
7437
|
+
"methods": {},
|
|
7438
|
+
"decoratorConfig": {},
|
|
7439
|
+
"extends": "SmrtCollection",
|
|
7440
|
+
"extendsTypeArg": "ProjectionSecret",
|
|
7441
|
+
"exportName": "ProjectionSecretCollection",
|
|
7442
|
+
"collectionExportName": "ProjectionSecretCollectionCollection",
|
|
7443
|
+
"schema": {
|
|
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);",
|
|
7446
|
+
"columns": {
|
|
7447
|
+
"id": {
|
|
7448
|
+
"type": "UUID",
|
|
7449
|
+
"primaryKey": true,
|
|
7450
|
+
"referenceKind": "id",
|
|
7451
|
+
"notNull": true
|
|
7452
|
+
},
|
|
7453
|
+
"slug": {
|
|
7454
|
+
"type": "TEXT",
|
|
7455
|
+
"notNull": true
|
|
7456
|
+
},
|
|
7457
|
+
"context": {
|
|
7458
|
+
"type": "TEXT",
|
|
7459
|
+
"notNull": true,
|
|
7460
|
+
"default": ""
|
|
7461
|
+
},
|
|
7462
|
+
"created_at": {
|
|
7463
|
+
"type": "TIMESTAMP",
|
|
7464
|
+
"notNull": true,
|
|
7465
|
+
"default": "current_timestamp"
|
|
7466
|
+
},
|
|
7467
|
+
"updated_at": {
|
|
7468
|
+
"type": "TIMESTAMP",
|
|
7469
|
+
"notNull": true,
|
|
7470
|
+
"default": "current_timestamp"
|
|
7471
|
+
}
|
|
7472
|
+
},
|
|
7473
|
+
"indexes": [{
|
|
7474
|
+
"name": "projection_secret_collections_id_idx",
|
|
7475
|
+
"columns": ["id"]
|
|
7476
|
+
}, {
|
|
7477
|
+
"name": "projection_secret_collections_slug_context_idx",
|
|
7478
|
+
"columns": ["slug", "context"],
|
|
7479
|
+
"unique": true
|
|
7480
|
+
}],
|
|
7481
|
+
"version": "92100d16"
|
|
7482
|
+
}
|
|
7483
|
+
},
|
|
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",
|
|
7490
|
+
"packageName": "@happyvertical/smrt-core",
|
|
7491
|
+
"fields": {
|
|
7492
|
+
"label": {
|
|
7493
|
+
"type": "text",
|
|
7494
|
+
"required": false,
|
|
7495
|
+
"default": ""
|
|
7496
|
+
},
|
|
7497
|
+
"internalNote": {
|
|
7498
|
+
"type": "text",
|
|
7499
|
+
"required": false,
|
|
7500
|
+
"_meta": { "readPermission": "projection.restricted.read" },
|
|
7501
|
+
"readPermission": "projection.restricted.read"
|
|
7502
|
+
}
|
|
7503
|
+
},
|
|
7504
|
+
"methods": {},
|
|
7505
|
+
"decoratorConfig": {},
|
|
7506
|
+
"extends": "SmrtObject",
|
|
7507
|
+
"exportName": "ProjectionRestricted",
|
|
7508
|
+
"collectionExportName": "ProjectionRestrictedCollection",
|
|
7509
|
+
"schema": {
|
|
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
|
+
},
|
|
7079
7755
|
"@happyvertical/smrt-core:XPRefTargetProfile": {
|
|
7080
7756
|
"name": "xpreftargetprofile",
|
|
7081
7757
|
"className": "XPRefTargetProfile",
|