@happyvertical/smrt-sites 0.51.18 → 0.51.19
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 +510 -510
- package/dist/smrt-knowledge.json +687 -687
- package/package.json +5 -5
package/dist/manifest.json
CHANGED
|
@@ -2,445 +2,86 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-sites",
|
|
5
|
-
"packageVersion": "0.51.
|
|
5
|
+
"packageVersion": "0.51.19",
|
|
6
6
|
"objects": {
|
|
7
|
-
"@happyvertical/smrt-sites:
|
|
8
|
-
"name": "
|
|
9
|
-
"className": "
|
|
10
|
-
"qualifiedName": "@happyvertical/smrt-sites:
|
|
11
|
-
"collection": "
|
|
12
|
-
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/
|
|
7
|
+
"@happyvertical/smrt-sites:SiteAgentBindingCollection": {
|
|
8
|
+
"name": "siteagentbindingcollection",
|
|
9
|
+
"className": "SiteAgentBindingCollection",
|
|
10
|
+
"qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
|
|
11
|
+
"collection": "siteagentbindings",
|
|
12
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/SiteAgentBindingCollection.ts",
|
|
13
13
|
"packageName": "@happyvertical/smrt-sites",
|
|
14
|
-
"fields": {
|
|
15
|
-
"tenantId": {
|
|
16
|
-
"type": "text",
|
|
17
|
-
"required": true,
|
|
18
|
-
"_meta": {
|
|
19
|
-
"sqlType": "UUID",
|
|
20
|
-
"__tenancy": {
|
|
21
|
-
"isTenantIdField": true,
|
|
22
|
-
"autoFilter": true,
|
|
23
|
-
"required": true,
|
|
24
|
-
"autoPopulate": true,
|
|
25
|
-
"nullable": false,
|
|
26
|
-
"mode": "required",
|
|
27
|
-
"field": "tenantId",
|
|
28
|
-
"allowSuperAdminBypass": false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"name": {
|
|
33
|
-
"type": "text",
|
|
34
|
-
"required": false,
|
|
35
|
-
"default": ""
|
|
36
|
-
},
|
|
37
|
-
"domain": {
|
|
38
|
-
"type": "text",
|
|
39
|
-
"required": false,
|
|
40
|
-
"default": ""
|
|
41
|
-
},
|
|
42
|
-
"status": {
|
|
43
|
-
"type": "text",
|
|
44
|
-
"required": false,
|
|
45
|
-
"default": "draft"
|
|
46
|
-
},
|
|
47
|
-
"tier": {
|
|
48
|
-
"type": "text",
|
|
49
|
-
"required": false,
|
|
50
|
-
"default": "free"
|
|
51
|
-
},
|
|
52
|
-
"databaseUrl": {
|
|
53
|
-
"type": "text",
|
|
54
|
-
"required": false,
|
|
55
|
-
"default": ""
|
|
56
|
-
},
|
|
57
|
-
"databaseType": {
|
|
58
|
-
"type": "text",
|
|
59
|
-
"required": false,
|
|
60
|
-
"default": ""
|
|
61
|
-
},
|
|
62
|
-
"portalConfig": {
|
|
63
|
-
"type": "text",
|
|
64
|
-
"required": false,
|
|
65
|
-
"default": ""
|
|
66
|
-
},
|
|
67
|
-
"repositoryUrl": {
|
|
68
|
-
"type": "text",
|
|
69
|
-
"required": false,
|
|
70
|
-
"default": ""
|
|
71
|
-
},
|
|
72
|
-
"templateName": {
|
|
73
|
-
"type": "text",
|
|
74
|
-
"required": false,
|
|
75
|
-
"default": ""
|
|
76
|
-
},
|
|
77
|
-
"provisioningStatus": {
|
|
78
|
-
"type": "text",
|
|
79
|
-
"required": false,
|
|
80
|
-
"default": ""
|
|
81
|
-
},
|
|
82
|
-
"provisionedAt": {
|
|
83
|
-
"type": "datetime",
|
|
84
|
-
"required": false
|
|
85
|
-
},
|
|
86
|
-
"provisioningError": {
|
|
87
|
-
"type": "text",
|
|
88
|
-
"required": false,
|
|
89
|
-
"default": ""
|
|
90
|
-
},
|
|
91
|
-
"metadata": {
|
|
92
|
-
"type": "text",
|
|
93
|
-
"required": false,
|
|
94
|
-
"default": ""
|
|
95
|
-
},
|
|
96
|
-
"createdAt": {
|
|
97
|
-
"type": "datetime",
|
|
98
|
-
"required": false
|
|
99
|
-
},
|
|
100
|
-
"updatedAt": {
|
|
101
|
-
"type": "datetime",
|
|
102
|
-
"required": false
|
|
103
|
-
}
|
|
104
|
-
},
|
|
14
|
+
"fields": {},
|
|
105
15
|
"methods": {
|
|
106
|
-
"
|
|
107
|
-
"name": "
|
|
108
|
-
"async":
|
|
109
|
-
"parameters": [],
|
|
110
|
-
"returnType": "boolean",
|
|
111
|
-
"isStatic": false,
|
|
112
|
-
"isPublic": true
|
|
113
|
-
},
|
|
114
|
-
"isReady": {
|
|
115
|
-
"name": "isReady",
|
|
116
|
-
"async": false,
|
|
117
|
-
"parameters": [],
|
|
118
|
-
"returnType": "boolean",
|
|
119
|
-
"isStatic": false,
|
|
120
|
-
"isPublic": true
|
|
121
|
-
},
|
|
122
|
-
"getPortalConfig": {
|
|
123
|
-
"name": "getPortalConfig",
|
|
124
|
-
"async": false,
|
|
125
|
-
"parameters": [],
|
|
126
|
-
"returnType": "SitePortalConfig",
|
|
127
|
-
"isStatic": false,
|
|
128
|
-
"isPublic": true
|
|
129
|
-
},
|
|
130
|
-
"setPortalConfig": {
|
|
131
|
-
"name": "setPortalConfig",
|
|
132
|
-
"async": false,
|
|
16
|
+
"findBySite": {
|
|
17
|
+
"name": "findBySite",
|
|
18
|
+
"async": true,
|
|
133
19
|
"parameters": [
|
|
134
20
|
{
|
|
135
|
-
"name": "
|
|
136
|
-
"type": "
|
|
21
|
+
"name": "siteId",
|
|
22
|
+
"type": "string",
|
|
137
23
|
"optional": false
|
|
138
24
|
}
|
|
139
25
|
],
|
|
140
|
-
"returnType": "
|
|
26
|
+
"returnType": "Promise<SiteAgentBinding[]>",
|
|
141
27
|
"isStatic": false,
|
|
142
28
|
"isPublic": true
|
|
143
29
|
},
|
|
144
|
-
"
|
|
145
|
-
"name": "
|
|
146
|
-
"async":
|
|
147
|
-
"parameters": [
|
|
148
|
-
|
|
30
|
+
"findByAgent": {
|
|
31
|
+
"name": "findByAgent",
|
|
32
|
+
"async": true,
|
|
33
|
+
"parameters": [
|
|
34
|
+
{
|
|
35
|
+
"name": "agentClass",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"optional": false
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"returnType": "Promise<SiteAgentBinding[]>",
|
|
149
41
|
"isStatic": false,
|
|
150
42
|
"isPublic": true
|
|
151
43
|
},
|
|
152
|
-
"
|
|
153
|
-
"name": "
|
|
154
|
-
"async":
|
|
44
|
+
"findEnabled": {
|
|
45
|
+
"name": "findEnabled",
|
|
46
|
+
"async": true,
|
|
155
47
|
"parameters": [
|
|
156
48
|
{
|
|
157
|
-
"name": "
|
|
158
|
-
"type": "
|
|
49
|
+
"name": "siteId",
|
|
50
|
+
"type": "string",
|
|
159
51
|
"optional": false
|
|
160
52
|
}
|
|
161
53
|
],
|
|
162
|
-
"returnType": "
|
|
54
|
+
"returnType": "Promise<SiteAgentBinding[]>",
|
|
163
55
|
"isStatic": false,
|
|
164
56
|
"isPublic": true
|
|
165
57
|
},
|
|
166
|
-
"
|
|
167
|
-
"name": "
|
|
168
|
-
"async":
|
|
58
|
+
"findBySiteAndAgent": {
|
|
59
|
+
"name": "findBySiteAndAgent",
|
|
60
|
+
"async": true,
|
|
169
61
|
"parameters": [
|
|
170
62
|
{
|
|
171
|
-
"name": "
|
|
172
|
-
"type": "
|
|
63
|
+
"name": "siteId",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"optional": false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "agentClass",
|
|
69
|
+
"type": "string",
|
|
173
70
|
"optional": false
|
|
174
71
|
}
|
|
175
72
|
],
|
|
176
|
-
"returnType": "
|
|
73
|
+
"returnType": "Promise<SiteAgentBinding | null>",
|
|
177
74
|
"isStatic": false,
|
|
178
75
|
"isPublic": true
|
|
179
76
|
}
|
|
180
77
|
},
|
|
181
78
|
"decoratorConfig": {
|
|
182
|
-
"tableName": "
|
|
183
|
-
"api": {
|
|
184
|
-
"include": [
|
|
185
|
-
"list",
|
|
186
|
-
"get",
|
|
187
|
-
"create",
|
|
188
|
-
"update",
|
|
189
|
-
"delete"
|
|
190
|
-
]
|
|
191
|
-
},
|
|
192
|
-
"mcp": {
|
|
193
|
-
"include": [
|
|
194
|
-
"list",
|
|
195
|
-
"get",
|
|
196
|
-
"create",
|
|
197
|
-
"update"
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
"cli": {
|
|
201
|
-
"skipApiCheck": true
|
|
202
|
-
},
|
|
203
|
-
"conflictColumns": [
|
|
204
|
-
"tenant_id",
|
|
205
|
-
"domain"
|
|
206
|
-
],
|
|
207
|
-
"tenantScoped": {
|
|
208
|
-
"mode": "required"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"extends": "SmrtObject",
|
|
212
|
-
"exportName": "Site",
|
|
213
|
-
"collectionExportName": "SiteCollection",
|
|
214
|
-
"validationRules": [],
|
|
215
|
-
"schema": {
|
|
216
|
-
"tableName": "sites",
|
|
217
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"domain\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'draft',\n \"tier\" TEXT DEFAULT 'free',\n \"database_url\" TEXT DEFAULT '',\n \"database_type\" TEXT DEFAULT '',\n \"portal_config\" TEXT DEFAULT '',\n \"repository_url\" TEXT DEFAULT '',\n \"template_name\" TEXT DEFAULT '',\n \"provisioning_status\" TEXT DEFAULT '',\n \"provisioned_at\" TIMESTAMP,\n \"provisioning_error\" TEXT DEFAULT '',\n \"metadata\" TEXT DEFAULT ''\n);",
|
|
218
|
-
"columns": {
|
|
219
|
-
"id": {
|
|
220
|
-
"type": "UUID",
|
|
221
|
-
"primaryKey": true,
|
|
222
|
-
"referenceKind": "id",
|
|
223
|
-
"notNull": true
|
|
224
|
-
},
|
|
225
|
-
"slug": {
|
|
226
|
-
"type": "TEXT",
|
|
227
|
-
"notNull": true
|
|
228
|
-
},
|
|
229
|
-
"context": {
|
|
230
|
-
"type": "TEXT",
|
|
231
|
-
"notNull": true,
|
|
232
|
-
"default": ""
|
|
233
|
-
},
|
|
234
|
-
"created_at": {
|
|
235
|
-
"type": "TIMESTAMP",
|
|
236
|
-
"notNull": true,
|
|
237
|
-
"default": "current_timestamp"
|
|
238
|
-
},
|
|
239
|
-
"updated_at": {
|
|
240
|
-
"type": "TIMESTAMP",
|
|
241
|
-
"notNull": true,
|
|
242
|
-
"default": "current_timestamp"
|
|
243
|
-
},
|
|
244
|
-
"tenant_id": {
|
|
245
|
-
"type": "UUID",
|
|
246
|
-
"referenceKind": "tenantId",
|
|
247
|
-
"notNull": true,
|
|
248
|
-
"unique": false
|
|
249
|
-
},
|
|
250
|
-
"name": {
|
|
251
|
-
"type": "TEXT",
|
|
252
|
-
"notNull": false,
|
|
253
|
-
"unique": false,
|
|
254
|
-
"default": ""
|
|
255
|
-
},
|
|
256
|
-
"domain": {
|
|
257
|
-
"type": "TEXT",
|
|
258
|
-
"notNull": false,
|
|
259
|
-
"unique": false,
|
|
260
|
-
"default": ""
|
|
261
|
-
},
|
|
262
|
-
"status": {
|
|
263
|
-
"type": "TEXT",
|
|
264
|
-
"notNull": false,
|
|
265
|
-
"unique": false,
|
|
266
|
-
"default": "draft"
|
|
267
|
-
},
|
|
268
|
-
"tier": {
|
|
269
|
-
"type": "TEXT",
|
|
270
|
-
"notNull": false,
|
|
271
|
-
"unique": false,
|
|
272
|
-
"default": "free"
|
|
273
|
-
},
|
|
274
|
-
"database_url": {
|
|
275
|
-
"type": "TEXT",
|
|
276
|
-
"notNull": false,
|
|
277
|
-
"unique": false,
|
|
278
|
-
"default": ""
|
|
279
|
-
},
|
|
280
|
-
"database_type": {
|
|
281
|
-
"type": "TEXT",
|
|
282
|
-
"notNull": false,
|
|
283
|
-
"unique": false,
|
|
284
|
-
"default": ""
|
|
285
|
-
},
|
|
286
|
-
"portal_config": {
|
|
287
|
-
"type": "TEXT",
|
|
288
|
-
"notNull": false,
|
|
289
|
-
"unique": false,
|
|
290
|
-
"default": ""
|
|
291
|
-
},
|
|
292
|
-
"repository_url": {
|
|
293
|
-
"type": "TEXT",
|
|
294
|
-
"notNull": false,
|
|
295
|
-
"unique": false,
|
|
296
|
-
"default": ""
|
|
297
|
-
},
|
|
298
|
-
"template_name": {
|
|
299
|
-
"type": "TEXT",
|
|
300
|
-
"notNull": false,
|
|
301
|
-
"unique": false,
|
|
302
|
-
"default": ""
|
|
303
|
-
},
|
|
304
|
-
"provisioning_status": {
|
|
305
|
-
"type": "TEXT",
|
|
306
|
-
"notNull": false,
|
|
307
|
-
"unique": false,
|
|
308
|
-
"default": ""
|
|
309
|
-
},
|
|
310
|
-
"provisioned_at": {
|
|
311
|
-
"type": "TIMESTAMP",
|
|
312
|
-
"notNull": false,
|
|
313
|
-
"unique": false
|
|
314
|
-
},
|
|
315
|
-
"provisioning_error": {
|
|
316
|
-
"type": "TEXT",
|
|
317
|
-
"notNull": false,
|
|
318
|
-
"unique": false,
|
|
319
|
-
"default": ""
|
|
320
|
-
},
|
|
321
|
-
"metadata": {
|
|
322
|
-
"type": "TEXT",
|
|
323
|
-
"notNull": false,
|
|
324
|
-
"unique": false,
|
|
325
|
-
"default": ""
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
"indexes": [
|
|
329
|
-
{
|
|
330
|
-
"name": "sites_tenant_id_domain_idx",
|
|
331
|
-
"columns": [
|
|
332
|
-
"tenant_id",
|
|
333
|
-
"domain"
|
|
334
|
-
],
|
|
335
|
-
"unique": true,
|
|
336
|
-
"nullsNotDistinct": true
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"name": "sites_slug_context_idx",
|
|
340
|
-
"columns": [
|
|
341
|
-
"slug",
|
|
342
|
-
"context"
|
|
343
|
-
]
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"name": "sites_tenant_id_created_at_idx",
|
|
347
|
-
"columns": [
|
|
348
|
-
"tenant_id",
|
|
349
|
-
"created_at"
|
|
350
|
-
]
|
|
351
|
-
}
|
|
352
|
-
],
|
|
353
|
-
"version": "1845042e"
|
|
354
|
-
},
|
|
355
|
-
"importPath": "@happyvertical/smrt-sites"
|
|
356
|
-
},
|
|
357
|
-
"@happyvertical/smrt-sites:SiteAgentBinding": {
|
|
358
|
-
"name": "siteagentbinding",
|
|
359
|
-
"className": "SiteAgentBinding",
|
|
360
|
-
"qualifiedName": "@happyvertical/smrt-sites:SiteAgentBinding",
|
|
361
|
-
"collection": "siteagentbindings",
|
|
362
|
-
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/models/SiteAgentBinding.ts",
|
|
363
|
-
"packageName": "@happyvertical/smrt-sites",
|
|
364
|
-
"fields": {
|
|
365
|
-
"tenantId": {
|
|
366
|
-
"type": "text",
|
|
367
|
-
"required": true,
|
|
368
|
-
"_meta": {
|
|
369
|
-
"sqlType": "UUID",
|
|
370
|
-
"__tenancy": {
|
|
371
|
-
"isTenantIdField": true,
|
|
372
|
-
"autoFilter": true,
|
|
373
|
-
"required": true,
|
|
374
|
-
"autoPopulate": true,
|
|
375
|
-
"nullable": false,
|
|
376
|
-
"mode": "required",
|
|
377
|
-
"field": "tenantId",
|
|
378
|
-
"allowSuperAdminBypass": false
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
"siteId": {
|
|
383
|
-
"type": "foreignKey",
|
|
384
|
-
"required": false,
|
|
385
|
-
"related": "Site"
|
|
386
|
-
},
|
|
387
|
-
"agentClass": {
|
|
388
|
-
"type": "text",
|
|
389
|
-
"required": false,
|
|
390
|
-
"default": ""
|
|
391
|
-
},
|
|
392
|
-
"enabled": {
|
|
393
|
-
"type": "boolean",
|
|
394
|
-
"required": false,
|
|
395
|
-
"default": true
|
|
396
|
-
},
|
|
397
|
-
"config": {
|
|
398
|
-
"type": "json",
|
|
399
|
-
"required": false,
|
|
400
|
-
"default": {}
|
|
401
|
-
},
|
|
402
|
-
"priority": {
|
|
403
|
-
"type": "integer",
|
|
404
|
-
"required": false,
|
|
405
|
-
"default": 0
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"methods": {},
|
|
409
|
-
"decoratorConfig": {
|
|
410
|
-
"tableName": "site_agent_bindings",
|
|
411
|
-
"api": {
|
|
412
|
-
"include": [
|
|
413
|
-
"list",
|
|
414
|
-
"get",
|
|
415
|
-
"create",
|
|
416
|
-
"update",
|
|
417
|
-
"delete"
|
|
418
|
-
]
|
|
419
|
-
},
|
|
420
|
-
"cli": {
|
|
421
|
-
"include": [
|
|
422
|
-
"list",
|
|
423
|
-
"get"
|
|
424
|
-
]
|
|
425
|
-
},
|
|
426
|
-
"mcp": {
|
|
427
|
-
"include": [
|
|
428
|
-
"list",
|
|
429
|
-
"get"
|
|
430
|
-
]
|
|
431
|
-
},
|
|
432
|
-
"conflictColumns": [
|
|
433
|
-
"site_id",
|
|
434
|
-
"agent_class"
|
|
435
|
-
],
|
|
436
|
-
"tenantScoped": {
|
|
437
|
-
"mode": "required"
|
|
438
|
-
}
|
|
79
|
+
"tableName": "site_agent_bindings"
|
|
439
80
|
},
|
|
440
|
-
"extends": "
|
|
441
|
-
"
|
|
442
|
-
"
|
|
443
|
-
"
|
|
81
|
+
"extends": "SmrtCollection",
|
|
82
|
+
"extendsTypeArg": "SiteAgentBinding",
|
|
83
|
+
"exportName": "SiteAgentBindingCollection",
|
|
84
|
+
"collectionExportName": "SiteAgentBindingCollectionCollection",
|
|
444
85
|
"schema": {
|
|
445
86
|
"tableName": "site_agent_bindings",
|
|
446
87
|
"ddl": "CREATE TABLE IF NOT EXISTS \"site_agent_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"site_id\" UUID,\n \"agent_class\" TEXT DEFAULT '',\n \"enabled\" BOOLEAN DEFAULT TRUE,\n \"config\" JSON DEFAULT '{}',\n \"priority\" INTEGER DEFAULT 0\n);",
|
|
@@ -542,87 +183,76 @@
|
|
|
542
183
|
},
|
|
543
184
|
"importPath": "@happyvertical/smrt-sites"
|
|
544
185
|
},
|
|
545
|
-
"@happyvertical/smrt-sites:
|
|
546
|
-
"name": "
|
|
547
|
-
"className": "
|
|
548
|
-
"qualifiedName": "@happyvertical/smrt-sites:
|
|
549
|
-
"collection": "
|
|
550
|
-
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/
|
|
186
|
+
"@happyvertical/smrt-sites:SiteCollection": {
|
|
187
|
+
"name": "sitecollection",
|
|
188
|
+
"className": "SiteCollection",
|
|
189
|
+
"qualifiedName": "@happyvertical/smrt-sites:SiteCollection",
|
|
190
|
+
"collection": "sites",
|
|
191
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/collections/SiteCollection.ts",
|
|
551
192
|
"packageName": "@happyvertical/smrt-sites",
|
|
552
193
|
"fields": {},
|
|
553
194
|
"methods": {
|
|
554
|
-
"
|
|
555
|
-
"name": "
|
|
195
|
+
"findByDomain": {
|
|
196
|
+
"name": "findByDomain",
|
|
556
197
|
"async": true,
|
|
557
198
|
"parameters": [
|
|
558
199
|
{
|
|
559
|
-
"name": "
|
|
200
|
+
"name": "domain",
|
|
560
201
|
"type": "string",
|
|
561
202
|
"optional": false
|
|
562
203
|
}
|
|
563
204
|
],
|
|
564
|
-
"returnType": "Promise<
|
|
205
|
+
"returnType": "Promise<Site | null>",
|
|
565
206
|
"isStatic": false,
|
|
566
207
|
"isPublic": true
|
|
567
208
|
},
|
|
568
|
-
"
|
|
569
|
-
"name": "
|
|
209
|
+
"findByTenant": {
|
|
210
|
+
"name": "findByTenant",
|
|
570
211
|
"async": true,
|
|
571
212
|
"parameters": [
|
|
572
213
|
{
|
|
573
|
-
"name": "
|
|
214
|
+
"name": "tenantId",
|
|
574
215
|
"type": "string",
|
|
575
216
|
"optional": false
|
|
576
217
|
}
|
|
577
218
|
],
|
|
578
|
-
"returnType": "Promise<
|
|
219
|
+
"returnType": "Promise<Site[]>",
|
|
579
220
|
"isStatic": false,
|
|
580
221
|
"isPublic": true
|
|
581
222
|
},
|
|
582
|
-
"
|
|
583
|
-
"name": "
|
|
223
|
+
"findByStatus": {
|
|
224
|
+
"name": "findByStatus",
|
|
584
225
|
"async": true,
|
|
585
226
|
"parameters": [
|
|
586
227
|
{
|
|
587
|
-
"name": "
|
|
588
|
-
"type": "
|
|
228
|
+
"name": "status",
|
|
229
|
+
"type": "SiteStatus",
|
|
589
230
|
"optional": false
|
|
590
231
|
}
|
|
591
232
|
],
|
|
592
|
-
"returnType": "Promise<
|
|
233
|
+
"returnType": "Promise<Site[]>",
|
|
593
234
|
"isStatic": false,
|
|
594
235
|
"isPublic": true
|
|
595
|
-
},
|
|
596
|
-
"
|
|
597
|
-
"name": "
|
|
598
|
-
"async": true,
|
|
599
|
-
"parameters": [
|
|
600
|
-
|
|
601
|
-
"name": "siteId",
|
|
602
|
-
"type": "string",
|
|
603
|
-
"optional": false
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"name": "agentClass",
|
|
607
|
-
"type": "string",
|
|
608
|
-
"optional": false
|
|
609
|
-
}
|
|
610
|
-
],
|
|
611
|
-
"returnType": "Promise<SiteAgentBinding | null>",
|
|
236
|
+
},
|
|
237
|
+
"findActive": {
|
|
238
|
+
"name": "findActive",
|
|
239
|
+
"async": true,
|
|
240
|
+
"parameters": [],
|
|
241
|
+
"returnType": "Promise<Site[]>",
|
|
612
242
|
"isStatic": false,
|
|
613
243
|
"isPublic": true
|
|
614
244
|
}
|
|
615
245
|
},
|
|
616
246
|
"decoratorConfig": {
|
|
617
|
-
"tableName": "
|
|
247
|
+
"tableName": "sites"
|
|
618
248
|
},
|
|
619
249
|
"extends": "SmrtCollection",
|
|
620
|
-
"extendsTypeArg": "
|
|
621
|
-
"exportName": "
|
|
622
|
-
"collectionExportName": "
|
|
250
|
+
"extendsTypeArg": "Site",
|
|
251
|
+
"exportName": "SiteCollection",
|
|
252
|
+
"collectionExportName": "SiteCollectionCollection",
|
|
623
253
|
"schema": {
|
|
624
|
-
"tableName": "
|
|
625
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
254
|
+
"tableName": "sites",
|
|
255
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"domain\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'draft',\n \"tier\" TEXT DEFAULT 'free',\n \"database_url\" TEXT DEFAULT '',\n \"database_type\" TEXT DEFAULT '',\n \"portal_config\" TEXT DEFAULT '',\n \"repository_url\" TEXT DEFAULT '',\n \"template_name\" TEXT DEFAULT '',\n \"provisioning_status\" TEXT DEFAULT '',\n \"provisioned_at\" TIMESTAMP,\n \"provisioning_error\" TEXT DEFAULT '',\n \"metadata\" TEXT DEFAULT ''\n);",
|
|
626
256
|
"columns": {
|
|
627
257
|
"id": {
|
|
628
258
|
"type": "UUID",
|
|
@@ -655,139 +285,321 @@
|
|
|
655
285
|
"notNull": true,
|
|
656
286
|
"unique": false
|
|
657
287
|
},
|
|
658
|
-
"
|
|
659
|
-
"type": "
|
|
660
|
-
"referenceKind": "foreignKey",
|
|
288
|
+
"name": {
|
|
289
|
+
"type": "TEXT",
|
|
661
290
|
"notNull": false,
|
|
662
291
|
"unique": false,
|
|
663
|
-
"
|
|
664
|
-
"table": "sites",
|
|
665
|
-
"column": "id",
|
|
666
|
-
"onDelete": "CASCADE",
|
|
667
|
-
"onUpdate": "CASCADE"
|
|
668
|
-
}
|
|
292
|
+
"default": ""
|
|
669
293
|
},
|
|
670
|
-
"
|
|
294
|
+
"domain": {
|
|
671
295
|
"type": "TEXT",
|
|
672
296
|
"notNull": false,
|
|
673
297
|
"unique": false,
|
|
674
298
|
"default": ""
|
|
675
299
|
},
|
|
676
|
-
"
|
|
677
|
-
"type": "
|
|
300
|
+
"status": {
|
|
301
|
+
"type": "TEXT",
|
|
678
302
|
"notNull": false,
|
|
679
303
|
"unique": false,
|
|
680
|
-
"default":
|
|
304
|
+
"default": "draft"
|
|
681
305
|
},
|
|
682
|
-
"
|
|
683
|
-
"type": "
|
|
306
|
+
"tier": {
|
|
307
|
+
"type": "TEXT",
|
|
684
308
|
"notNull": false,
|
|
685
309
|
"unique": false,
|
|
686
|
-
"default":
|
|
310
|
+
"default": "free"
|
|
687
311
|
},
|
|
688
|
-
"
|
|
689
|
-
"type": "
|
|
312
|
+
"database_url": {
|
|
313
|
+
"type": "TEXT",
|
|
690
314
|
"notNull": false,
|
|
691
315
|
"unique": false,
|
|
692
|
-
"default":
|
|
316
|
+
"default": ""
|
|
317
|
+
},
|
|
318
|
+
"database_type": {
|
|
319
|
+
"type": "TEXT",
|
|
320
|
+
"notNull": false,
|
|
321
|
+
"unique": false,
|
|
322
|
+
"default": ""
|
|
323
|
+
},
|
|
324
|
+
"portal_config": {
|
|
325
|
+
"type": "TEXT",
|
|
326
|
+
"notNull": false,
|
|
327
|
+
"unique": false,
|
|
328
|
+
"default": ""
|
|
329
|
+
},
|
|
330
|
+
"repository_url": {
|
|
331
|
+
"type": "TEXT",
|
|
332
|
+
"notNull": false,
|
|
333
|
+
"unique": false,
|
|
334
|
+
"default": ""
|
|
335
|
+
},
|
|
336
|
+
"template_name": {
|
|
337
|
+
"type": "TEXT",
|
|
338
|
+
"notNull": false,
|
|
339
|
+
"unique": false,
|
|
340
|
+
"default": ""
|
|
341
|
+
},
|
|
342
|
+
"provisioning_status": {
|
|
343
|
+
"type": "TEXT",
|
|
344
|
+
"notNull": false,
|
|
345
|
+
"unique": false,
|
|
346
|
+
"default": ""
|
|
347
|
+
},
|
|
348
|
+
"provisioned_at": {
|
|
349
|
+
"type": "TIMESTAMP",
|
|
350
|
+
"notNull": false,
|
|
351
|
+
"unique": false
|
|
352
|
+
},
|
|
353
|
+
"provisioning_error": {
|
|
354
|
+
"type": "TEXT",
|
|
355
|
+
"notNull": false,
|
|
356
|
+
"unique": false,
|
|
357
|
+
"default": ""
|
|
358
|
+
},
|
|
359
|
+
"metadata": {
|
|
360
|
+
"type": "TEXT",
|
|
361
|
+
"notNull": false,
|
|
362
|
+
"unique": false,
|
|
363
|
+
"default": ""
|
|
693
364
|
}
|
|
694
365
|
},
|
|
695
366
|
"indexes": [
|
|
696
367
|
{
|
|
697
|
-
"name": "
|
|
368
|
+
"name": "sites_tenant_id_domain_idx",
|
|
698
369
|
"columns": [
|
|
699
|
-
"
|
|
700
|
-
"
|
|
370
|
+
"tenant_id",
|
|
371
|
+
"domain"
|
|
701
372
|
],
|
|
702
373
|
"unique": true,
|
|
703
374
|
"nullsNotDistinct": true
|
|
704
375
|
},
|
|
705
376
|
{
|
|
706
|
-
"name": "
|
|
377
|
+
"name": "sites_slug_context_idx",
|
|
707
378
|
"columns": [
|
|
708
379
|
"slug",
|
|
709
380
|
"context"
|
|
710
381
|
]
|
|
711
382
|
},
|
|
712
383
|
{
|
|
713
|
-
"name": "
|
|
384
|
+
"name": "sites_tenant_id_created_at_idx",
|
|
714
385
|
"columns": [
|
|
715
386
|
"tenant_id",
|
|
716
387
|
"created_at"
|
|
717
388
|
]
|
|
718
389
|
}
|
|
719
390
|
],
|
|
720
|
-
"version": "
|
|
391
|
+
"version": "1845042e"
|
|
721
392
|
},
|
|
722
393
|
"importPath": "@happyvertical/smrt-sites"
|
|
723
394
|
},
|
|
724
|
-
"@happyvertical/smrt-sites:
|
|
725
|
-
"name": "
|
|
726
|
-
"className": "
|
|
727
|
-
"qualifiedName": "@happyvertical/smrt-sites:
|
|
395
|
+
"@happyvertical/smrt-sites:Site": {
|
|
396
|
+
"name": "site",
|
|
397
|
+
"className": "Site",
|
|
398
|
+
"qualifiedName": "@happyvertical/smrt-sites:Site",
|
|
728
399
|
"collection": "sites",
|
|
729
|
-
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/
|
|
400
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/models/Site.ts",
|
|
730
401
|
"packageName": "@happyvertical/smrt-sites",
|
|
731
|
-
"fields": {
|
|
402
|
+
"fields": {
|
|
403
|
+
"tenantId": {
|
|
404
|
+
"type": "text",
|
|
405
|
+
"required": true,
|
|
406
|
+
"_meta": {
|
|
407
|
+
"sqlType": "UUID",
|
|
408
|
+
"__tenancy": {
|
|
409
|
+
"isTenantIdField": true,
|
|
410
|
+
"autoFilter": true,
|
|
411
|
+
"required": true,
|
|
412
|
+
"autoPopulate": true,
|
|
413
|
+
"nullable": false,
|
|
414
|
+
"mode": "required",
|
|
415
|
+
"field": "tenantId",
|
|
416
|
+
"allowSuperAdminBypass": false
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"name": {
|
|
421
|
+
"type": "text",
|
|
422
|
+
"required": false,
|
|
423
|
+
"default": ""
|
|
424
|
+
},
|
|
425
|
+
"domain": {
|
|
426
|
+
"type": "text",
|
|
427
|
+
"required": false,
|
|
428
|
+
"default": ""
|
|
429
|
+
},
|
|
430
|
+
"status": {
|
|
431
|
+
"type": "text",
|
|
432
|
+
"required": false,
|
|
433
|
+
"default": "draft"
|
|
434
|
+
},
|
|
435
|
+
"tier": {
|
|
436
|
+
"type": "text",
|
|
437
|
+
"required": false,
|
|
438
|
+
"default": "free"
|
|
439
|
+
},
|
|
440
|
+
"databaseUrl": {
|
|
441
|
+
"type": "text",
|
|
442
|
+
"required": false,
|
|
443
|
+
"default": ""
|
|
444
|
+
},
|
|
445
|
+
"databaseType": {
|
|
446
|
+
"type": "text",
|
|
447
|
+
"required": false,
|
|
448
|
+
"default": ""
|
|
449
|
+
},
|
|
450
|
+
"portalConfig": {
|
|
451
|
+
"type": "text",
|
|
452
|
+
"required": false,
|
|
453
|
+
"default": ""
|
|
454
|
+
},
|
|
455
|
+
"repositoryUrl": {
|
|
456
|
+
"type": "text",
|
|
457
|
+
"required": false,
|
|
458
|
+
"default": ""
|
|
459
|
+
},
|
|
460
|
+
"templateName": {
|
|
461
|
+
"type": "text",
|
|
462
|
+
"required": false,
|
|
463
|
+
"default": ""
|
|
464
|
+
},
|
|
465
|
+
"provisioningStatus": {
|
|
466
|
+
"type": "text",
|
|
467
|
+
"required": false,
|
|
468
|
+
"default": ""
|
|
469
|
+
},
|
|
470
|
+
"provisionedAt": {
|
|
471
|
+
"type": "datetime",
|
|
472
|
+
"required": false
|
|
473
|
+
},
|
|
474
|
+
"provisioningError": {
|
|
475
|
+
"type": "text",
|
|
476
|
+
"required": false,
|
|
477
|
+
"default": ""
|
|
478
|
+
},
|
|
479
|
+
"metadata": {
|
|
480
|
+
"type": "text",
|
|
481
|
+
"required": false,
|
|
482
|
+
"default": ""
|
|
483
|
+
},
|
|
484
|
+
"createdAt": {
|
|
485
|
+
"type": "datetime",
|
|
486
|
+
"required": false
|
|
487
|
+
},
|
|
488
|
+
"updatedAt": {
|
|
489
|
+
"type": "datetime",
|
|
490
|
+
"required": false
|
|
491
|
+
}
|
|
492
|
+
},
|
|
732
493
|
"methods": {
|
|
733
|
-
"
|
|
734
|
-
"name": "
|
|
735
|
-
"async":
|
|
494
|
+
"isActive": {
|
|
495
|
+
"name": "isActive",
|
|
496
|
+
"async": false,
|
|
497
|
+
"parameters": [],
|
|
498
|
+
"returnType": "boolean",
|
|
499
|
+
"isStatic": false,
|
|
500
|
+
"isPublic": true
|
|
501
|
+
},
|
|
502
|
+
"isReady": {
|
|
503
|
+
"name": "isReady",
|
|
504
|
+
"async": false,
|
|
505
|
+
"parameters": [],
|
|
506
|
+
"returnType": "boolean",
|
|
507
|
+
"isStatic": false,
|
|
508
|
+
"isPublic": true
|
|
509
|
+
},
|
|
510
|
+
"getPortalConfig": {
|
|
511
|
+
"name": "getPortalConfig",
|
|
512
|
+
"async": false,
|
|
513
|
+
"parameters": [],
|
|
514
|
+
"returnType": "SitePortalConfig",
|
|
515
|
+
"isStatic": false,
|
|
516
|
+
"isPublic": true
|
|
517
|
+
},
|
|
518
|
+
"setPortalConfig": {
|
|
519
|
+
"name": "setPortalConfig",
|
|
520
|
+
"async": false,
|
|
736
521
|
"parameters": [
|
|
737
522
|
{
|
|
738
|
-
"name": "
|
|
739
|
-
"type": "
|
|
523
|
+
"name": "config",
|
|
524
|
+
"type": "SitePortalConfig",
|
|
740
525
|
"optional": false
|
|
741
526
|
}
|
|
742
527
|
],
|
|
743
|
-
"returnType": "
|
|
528
|
+
"returnType": "void",
|
|
744
529
|
"isStatic": false,
|
|
745
530
|
"isPublic": true
|
|
746
531
|
},
|
|
747
|
-
"
|
|
748
|
-
"name": "
|
|
749
|
-
"async":
|
|
532
|
+
"getMetadata": {
|
|
533
|
+
"name": "getMetadata",
|
|
534
|
+
"async": false,
|
|
535
|
+
"parameters": [],
|
|
536
|
+
"returnType": "Record<string, unknown>",
|
|
537
|
+
"isStatic": false,
|
|
538
|
+
"isPublic": true
|
|
539
|
+
},
|
|
540
|
+
"setMetadata": {
|
|
541
|
+
"name": "setMetadata",
|
|
542
|
+
"async": false,
|
|
750
543
|
"parameters": [
|
|
751
544
|
{
|
|
752
|
-
"name": "
|
|
753
|
-
"type": "string",
|
|
545
|
+
"name": "data",
|
|
546
|
+
"type": "Record<string, unknown>",
|
|
754
547
|
"optional": false
|
|
755
548
|
}
|
|
756
549
|
],
|
|
757
|
-
"returnType": "
|
|
550
|
+
"returnType": "void",
|
|
758
551
|
"isStatic": false,
|
|
759
552
|
"isPublic": true
|
|
760
553
|
},
|
|
761
|
-
"
|
|
762
|
-
"name": "
|
|
763
|
-
"async":
|
|
554
|
+
"updateMetadata": {
|
|
555
|
+
"name": "updateMetadata",
|
|
556
|
+
"async": false,
|
|
764
557
|
"parameters": [
|
|
765
558
|
{
|
|
766
|
-
"name": "
|
|
767
|
-
"type": "
|
|
559
|
+
"name": "updates",
|
|
560
|
+
"type": "Record<string, unknown>",
|
|
768
561
|
"optional": false
|
|
769
562
|
}
|
|
770
563
|
],
|
|
771
|
-
"returnType": "
|
|
772
|
-
"isStatic": false,
|
|
773
|
-
"isPublic": true
|
|
774
|
-
},
|
|
775
|
-
"findActive": {
|
|
776
|
-
"name": "findActive",
|
|
777
|
-
"async": true,
|
|
778
|
-
"parameters": [],
|
|
779
|
-
"returnType": "Promise<Site[]>",
|
|
564
|
+
"returnType": "void",
|
|
780
565
|
"isStatic": false,
|
|
781
566
|
"isPublic": true
|
|
782
567
|
}
|
|
783
568
|
},
|
|
784
569
|
"decoratorConfig": {
|
|
785
|
-
"tableName": "sites"
|
|
570
|
+
"tableName": "sites",
|
|
571
|
+
"api": {
|
|
572
|
+
"include": [
|
|
573
|
+
"list",
|
|
574
|
+
"get",
|
|
575
|
+
"create",
|
|
576
|
+
"update",
|
|
577
|
+
"delete"
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
"mcp": {
|
|
581
|
+
"include": [
|
|
582
|
+
"list",
|
|
583
|
+
"get",
|
|
584
|
+
"create",
|
|
585
|
+
"update"
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
"cli": {
|
|
589
|
+
"skipApiCheck": true
|
|
590
|
+
},
|
|
591
|
+
"conflictColumns": [
|
|
592
|
+
"tenant_id",
|
|
593
|
+
"domain"
|
|
594
|
+
],
|
|
595
|
+
"tenantScoped": {
|
|
596
|
+
"mode": "required"
|
|
597
|
+
}
|
|
786
598
|
},
|
|
787
|
-
"extends": "
|
|
788
|
-
"
|
|
789
|
-
"
|
|
790
|
-
"
|
|
599
|
+
"extends": "SmrtObject",
|
|
600
|
+
"exportName": "Site",
|
|
601
|
+
"collectionExportName": "SiteCollection",
|
|
602
|
+
"validationRules": [],
|
|
791
603
|
"schema": {
|
|
792
604
|
"tableName": "sites",
|
|
793
605
|
"ddl": "CREATE TABLE IF NOT EXISTS \"sites\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"name\" TEXT DEFAULT '',\n \"domain\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'draft',\n \"tier\" TEXT DEFAULT 'free',\n \"database_url\" TEXT DEFAULT '',\n \"database_type\" TEXT DEFAULT '',\n \"portal_config\" TEXT DEFAULT '',\n \"repository_url\" TEXT DEFAULT '',\n \"template_name\" TEXT DEFAULT '',\n \"provisioning_status\" TEXT DEFAULT '',\n \"provisioned_at\" TIMESTAMP,\n \"provisioning_error\" TEXT DEFAULT '',\n \"metadata\" TEXT DEFAULT ''\n);",
|
|
@@ -929,6 +741,194 @@
|
|
|
929
741
|
"version": "1845042e"
|
|
930
742
|
},
|
|
931
743
|
"importPath": "@happyvertical/smrt-sites"
|
|
744
|
+
},
|
|
745
|
+
"@happyvertical/smrt-sites:SiteAgentBinding": {
|
|
746
|
+
"name": "siteagentbinding",
|
|
747
|
+
"className": "SiteAgentBinding",
|
|
748
|
+
"qualifiedName": "@happyvertical/smrt-sites:SiteAgentBinding",
|
|
749
|
+
"collection": "siteagentbindings",
|
|
750
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/sites/src/models/SiteAgentBinding.ts",
|
|
751
|
+
"packageName": "@happyvertical/smrt-sites",
|
|
752
|
+
"fields": {
|
|
753
|
+
"tenantId": {
|
|
754
|
+
"type": "text",
|
|
755
|
+
"required": true,
|
|
756
|
+
"_meta": {
|
|
757
|
+
"sqlType": "UUID",
|
|
758
|
+
"__tenancy": {
|
|
759
|
+
"isTenantIdField": true,
|
|
760
|
+
"autoFilter": true,
|
|
761
|
+
"required": true,
|
|
762
|
+
"autoPopulate": true,
|
|
763
|
+
"nullable": false,
|
|
764
|
+
"mode": "required",
|
|
765
|
+
"field": "tenantId",
|
|
766
|
+
"allowSuperAdminBypass": false
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
},
|
|
770
|
+
"siteId": {
|
|
771
|
+
"type": "foreignKey",
|
|
772
|
+
"required": false,
|
|
773
|
+
"related": "Site"
|
|
774
|
+
},
|
|
775
|
+
"agentClass": {
|
|
776
|
+
"type": "text",
|
|
777
|
+
"required": false,
|
|
778
|
+
"default": ""
|
|
779
|
+
},
|
|
780
|
+
"enabled": {
|
|
781
|
+
"type": "boolean",
|
|
782
|
+
"required": false,
|
|
783
|
+
"default": true
|
|
784
|
+
},
|
|
785
|
+
"config": {
|
|
786
|
+
"type": "json",
|
|
787
|
+
"required": false,
|
|
788
|
+
"default": {}
|
|
789
|
+
},
|
|
790
|
+
"priority": {
|
|
791
|
+
"type": "integer",
|
|
792
|
+
"required": false,
|
|
793
|
+
"default": 0
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"methods": {},
|
|
797
|
+
"decoratorConfig": {
|
|
798
|
+
"tableName": "site_agent_bindings",
|
|
799
|
+
"api": {
|
|
800
|
+
"include": [
|
|
801
|
+
"list",
|
|
802
|
+
"get",
|
|
803
|
+
"create",
|
|
804
|
+
"update",
|
|
805
|
+
"delete"
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
"cli": {
|
|
809
|
+
"include": [
|
|
810
|
+
"list",
|
|
811
|
+
"get"
|
|
812
|
+
]
|
|
813
|
+
},
|
|
814
|
+
"mcp": {
|
|
815
|
+
"include": [
|
|
816
|
+
"list",
|
|
817
|
+
"get"
|
|
818
|
+
]
|
|
819
|
+
},
|
|
820
|
+
"conflictColumns": [
|
|
821
|
+
"site_id",
|
|
822
|
+
"agent_class"
|
|
823
|
+
],
|
|
824
|
+
"tenantScoped": {
|
|
825
|
+
"mode": "required"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"extends": "SmrtObject",
|
|
829
|
+
"exportName": "SiteAgentBinding",
|
|
830
|
+
"collectionExportName": "SiteAgentBindingCollection",
|
|
831
|
+
"validationRules": [],
|
|
832
|
+
"schema": {
|
|
833
|
+
"tableName": "site_agent_bindings",
|
|
834
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"site_agent_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"site_id\" UUID,\n \"agent_class\" TEXT DEFAULT '',\n \"enabled\" BOOLEAN DEFAULT TRUE,\n \"config\" JSON DEFAULT '{}',\n \"priority\" INTEGER DEFAULT 0\n);",
|
|
835
|
+
"columns": {
|
|
836
|
+
"id": {
|
|
837
|
+
"type": "UUID",
|
|
838
|
+
"primaryKey": true,
|
|
839
|
+
"referenceKind": "id",
|
|
840
|
+
"notNull": true
|
|
841
|
+
},
|
|
842
|
+
"slug": {
|
|
843
|
+
"type": "TEXT",
|
|
844
|
+
"notNull": true
|
|
845
|
+
},
|
|
846
|
+
"context": {
|
|
847
|
+
"type": "TEXT",
|
|
848
|
+
"notNull": true,
|
|
849
|
+
"default": ""
|
|
850
|
+
},
|
|
851
|
+
"created_at": {
|
|
852
|
+
"type": "TIMESTAMP",
|
|
853
|
+
"notNull": true,
|
|
854
|
+
"default": "current_timestamp"
|
|
855
|
+
},
|
|
856
|
+
"updated_at": {
|
|
857
|
+
"type": "TIMESTAMP",
|
|
858
|
+
"notNull": true,
|
|
859
|
+
"default": "current_timestamp"
|
|
860
|
+
},
|
|
861
|
+
"tenant_id": {
|
|
862
|
+
"type": "UUID",
|
|
863
|
+
"referenceKind": "tenantId",
|
|
864
|
+
"notNull": true,
|
|
865
|
+
"unique": false
|
|
866
|
+
},
|
|
867
|
+
"site_id": {
|
|
868
|
+
"type": "UUID",
|
|
869
|
+
"referenceKind": "foreignKey",
|
|
870
|
+
"notNull": false,
|
|
871
|
+
"unique": false,
|
|
872
|
+
"foreignKey": {
|
|
873
|
+
"table": "sites",
|
|
874
|
+
"column": "id",
|
|
875
|
+
"onDelete": "CASCADE",
|
|
876
|
+
"onUpdate": "CASCADE"
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
"agent_class": {
|
|
880
|
+
"type": "TEXT",
|
|
881
|
+
"notNull": false,
|
|
882
|
+
"unique": false,
|
|
883
|
+
"default": ""
|
|
884
|
+
},
|
|
885
|
+
"enabled": {
|
|
886
|
+
"type": "BOOLEAN",
|
|
887
|
+
"notNull": false,
|
|
888
|
+
"unique": false,
|
|
889
|
+
"default": true
|
|
890
|
+
},
|
|
891
|
+
"config": {
|
|
892
|
+
"type": "JSON",
|
|
893
|
+
"notNull": false,
|
|
894
|
+
"unique": false,
|
|
895
|
+
"default": {}
|
|
896
|
+
},
|
|
897
|
+
"priority": {
|
|
898
|
+
"type": "INTEGER",
|
|
899
|
+
"notNull": false,
|
|
900
|
+
"unique": false,
|
|
901
|
+
"default": 0
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"indexes": [
|
|
905
|
+
{
|
|
906
|
+
"name": "site_agent_bindings_site_id_agent_class_idx",
|
|
907
|
+
"columns": [
|
|
908
|
+
"site_id",
|
|
909
|
+
"agent_class"
|
|
910
|
+
],
|
|
911
|
+
"unique": true,
|
|
912
|
+
"nullsNotDistinct": true
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"name": "site_agent_bindings_slug_context_idx",
|
|
916
|
+
"columns": [
|
|
917
|
+
"slug",
|
|
918
|
+
"context"
|
|
919
|
+
]
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "site_agent_bindings_tenant_id_created_at_idx",
|
|
923
|
+
"columns": [
|
|
924
|
+
"tenant_id",
|
|
925
|
+
"created_at"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
],
|
|
929
|
+
"version": "dec43c9c"
|
|
930
|
+
},
|
|
931
|
+
"importPath": "@happyvertical/smrt-sites"
|
|
932
932
|
}
|
|
933
933
|
},
|
|
934
934
|
"moduleType": "smrt",
|