@memberjunction/server 2.16.1 → 2.17.0

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.
@@ -1027,6 +1027,1292 @@ ExplorerNavigationItemResolver = __decorate([
1027
1027
  Resolver(ExplorerNavigationItem_)
1028
1028
  ], ExplorerNavigationItemResolver);
1029
1029
  export { ExplorerNavigationItemResolver };
1030
+ let AIAgentModel_ = class AIAgentModel_ {
1031
+ ID;
1032
+ AgentID;
1033
+ ModelID;
1034
+ Active;
1035
+ Priority;
1036
+ _mj__CreatedAt;
1037
+ _mj__UpdatedAt;
1038
+ Agent;
1039
+ Model;
1040
+ };
1041
+ __decorate([
1042
+ Field({ description: 'The unique identifier for each AI agent-model mapping. Serves as the primary key.' }),
1043
+ MaxLength(16),
1044
+ __metadata("design:type", String)
1045
+ ], AIAgentModel_.prototype, "ID", void 0);
1046
+ __decorate([
1047
+ Field({ nullable: true, description: 'References the unique identifier of the associated AI agent from AIAgent table.' }),
1048
+ MaxLength(16),
1049
+ __metadata("design:type", String)
1050
+ ], AIAgentModel_.prototype, "AgentID", void 0);
1051
+ __decorate([
1052
+ Field({ nullable: true, description: 'The unique identifier of the associated AI model.' }),
1053
+ MaxLength(16),
1054
+ __metadata("design:type", String)
1055
+ ], AIAgentModel_.prototype, "ModelID", void 0);
1056
+ __decorate([
1057
+ Field(() => Boolean, { nullable: true }),
1058
+ __metadata("design:type", Boolean)
1059
+ ], AIAgentModel_.prototype, "Active", void 0);
1060
+ __decorate([
1061
+ Field(() => Int, { nullable: true, description: 'The priority level of the AI model for the agent, where higher values indicate higher priority.' }),
1062
+ __metadata("design:type", Number)
1063
+ ], AIAgentModel_.prototype, "Priority", void 0);
1064
+ __decorate([
1065
+ Field(),
1066
+ MaxLength(10),
1067
+ __metadata("design:type", Date)
1068
+ ], AIAgentModel_.prototype, "_mj__CreatedAt", void 0);
1069
+ __decorate([
1070
+ Field(),
1071
+ MaxLength(10),
1072
+ __metadata("design:type", Date)
1073
+ ], AIAgentModel_.prototype, "_mj__UpdatedAt", void 0);
1074
+ __decorate([
1075
+ Field({ nullable: true }),
1076
+ MaxLength(510),
1077
+ __metadata("design:type", String)
1078
+ ], AIAgentModel_.prototype, "Agent", void 0);
1079
+ __decorate([
1080
+ Field({ nullable: true }),
1081
+ MaxLength(100),
1082
+ __metadata("design:type", String)
1083
+ ], AIAgentModel_.prototype, "Model", void 0);
1084
+ AIAgentModel_ = __decorate([
1085
+ ObjectType({ description: 'Table to store the relationship between AI agents and AI models.' })
1086
+ ], AIAgentModel_);
1087
+ export { AIAgentModel_ };
1088
+ let CreateAIAgentModelInput = class CreateAIAgentModelInput {
1089
+ AgentID;
1090
+ ModelID;
1091
+ Active;
1092
+ Priority;
1093
+ };
1094
+ __decorate([
1095
+ Field({ nullable: true }),
1096
+ __metadata("design:type", String)
1097
+ ], CreateAIAgentModelInput.prototype, "AgentID", void 0);
1098
+ __decorate([
1099
+ Field({ nullable: true }),
1100
+ __metadata("design:type", String)
1101
+ ], CreateAIAgentModelInput.prototype, "ModelID", void 0);
1102
+ __decorate([
1103
+ Field(() => Boolean, { nullable: true }),
1104
+ __metadata("design:type", Boolean)
1105
+ ], CreateAIAgentModelInput.prototype, "Active", void 0);
1106
+ __decorate([
1107
+ Field(() => Int, { nullable: true }),
1108
+ __metadata("design:type", Number)
1109
+ ], CreateAIAgentModelInput.prototype, "Priority", void 0);
1110
+ CreateAIAgentModelInput = __decorate([
1111
+ InputType()
1112
+ ], CreateAIAgentModelInput);
1113
+ export { CreateAIAgentModelInput };
1114
+ let UpdateAIAgentModelInput = class UpdateAIAgentModelInput {
1115
+ ID;
1116
+ AgentID;
1117
+ ModelID;
1118
+ Active;
1119
+ Priority;
1120
+ OldValues___;
1121
+ };
1122
+ __decorate([
1123
+ Field(),
1124
+ __metadata("design:type", String)
1125
+ ], UpdateAIAgentModelInput.prototype, "ID", void 0);
1126
+ __decorate([
1127
+ Field({ nullable: true }),
1128
+ __metadata("design:type", String)
1129
+ ], UpdateAIAgentModelInput.prototype, "AgentID", void 0);
1130
+ __decorate([
1131
+ Field({ nullable: true }),
1132
+ __metadata("design:type", String)
1133
+ ], UpdateAIAgentModelInput.prototype, "ModelID", void 0);
1134
+ __decorate([
1135
+ Field(() => Boolean, { nullable: true }),
1136
+ __metadata("design:type", Boolean)
1137
+ ], UpdateAIAgentModelInput.prototype, "Active", void 0);
1138
+ __decorate([
1139
+ Field(() => Int, { nullable: true }),
1140
+ __metadata("design:type", Number)
1141
+ ], UpdateAIAgentModelInput.prototype, "Priority", void 0);
1142
+ __decorate([
1143
+ Field(() => [KeyValuePairInput], { nullable: true }),
1144
+ __metadata("design:type", Array)
1145
+ ], UpdateAIAgentModelInput.prototype, "OldValues___", void 0);
1146
+ UpdateAIAgentModelInput = __decorate([
1147
+ InputType()
1148
+ ], UpdateAIAgentModelInput);
1149
+ export { UpdateAIAgentModelInput };
1150
+ let RunAIAgentModelViewResult = class RunAIAgentModelViewResult {
1151
+ Results;
1152
+ UserViewRunID;
1153
+ RowCount;
1154
+ TotalRowCount;
1155
+ ExecutionTime;
1156
+ ErrorMessage;
1157
+ Success;
1158
+ };
1159
+ __decorate([
1160
+ Field(() => [AIAgentModel_]),
1161
+ __metadata("design:type", Array)
1162
+ ], RunAIAgentModelViewResult.prototype, "Results", void 0);
1163
+ __decorate([
1164
+ Field(() => String, { nullable: true }),
1165
+ __metadata("design:type", String)
1166
+ ], RunAIAgentModelViewResult.prototype, "UserViewRunID", void 0);
1167
+ __decorate([
1168
+ Field(() => Int, { nullable: true }),
1169
+ __metadata("design:type", Number)
1170
+ ], RunAIAgentModelViewResult.prototype, "RowCount", void 0);
1171
+ __decorate([
1172
+ Field(() => Int, { nullable: true }),
1173
+ __metadata("design:type", Number)
1174
+ ], RunAIAgentModelViewResult.prototype, "TotalRowCount", void 0);
1175
+ __decorate([
1176
+ Field(() => Int, { nullable: true }),
1177
+ __metadata("design:type", Number)
1178
+ ], RunAIAgentModelViewResult.prototype, "ExecutionTime", void 0);
1179
+ __decorate([
1180
+ Field({ nullable: true }),
1181
+ __metadata("design:type", String)
1182
+ ], RunAIAgentModelViewResult.prototype, "ErrorMessage", void 0);
1183
+ __decorate([
1184
+ Field(() => Boolean, { nullable: false }),
1185
+ __metadata("design:type", Boolean)
1186
+ ], RunAIAgentModelViewResult.prototype, "Success", void 0);
1187
+ RunAIAgentModelViewResult = __decorate([
1188
+ ObjectType()
1189
+ ], RunAIAgentModelViewResult);
1190
+ export { RunAIAgentModelViewResult };
1191
+ let AIAgentModelResolver = class AIAgentModelResolver extends ResolverBase {
1192
+ async RunAIAgentModelViewByID(input, { dataSource, userPayload }, pubSub) {
1193
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
1194
+ }
1195
+ async RunAIAgentModelViewByName(input, { dataSource, userPayload }, pubSub) {
1196
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
1197
+ }
1198
+ async RunAIAgentModelDynamicView(input, { dataSource, userPayload }, pubSub) {
1199
+ input.EntityName = 'AIAgent Models';
1200
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
1201
+ }
1202
+ async AIAgentModel(ID, { dataSource, userPayload }, pubSub) {
1203
+ this.CheckUserReadPermissions('AIAgent Models', userPayload);
1204
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModels] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Models', userPayload, EntityPermissionType.Read, 'AND');
1205
+ const result = this.MapFieldNamesToCodeNames('AIAgent Models', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
1206
+ return result;
1207
+ }
1208
+ async CreateAIAgentModel(input, { dataSource, userPayload }, pubSub) {
1209
+ return this.CreateRecord('AIAgent Models', input, dataSource, userPayload, pubSub);
1210
+ }
1211
+ async UpdateAIAgentModel(input, { dataSource, userPayload }, pubSub) {
1212
+ return this.UpdateRecord('AIAgent Models', input, dataSource, userPayload, pubSub);
1213
+ }
1214
+ async DeleteAIAgentModel(ID, options, { dataSource, userPayload }, pubSub) {
1215
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1216
+ return this.DeleteRecord('AIAgent Models', key, options, dataSource, userPayload, pubSub);
1217
+ }
1218
+ };
1219
+ __decorate([
1220
+ Query(() => RunAIAgentModelViewResult),
1221
+ __param(0, Arg('input', () => RunViewByIDInput)),
1222
+ __param(1, Ctx()),
1223
+ __param(2, PubSub()),
1224
+ __metadata("design:type", Function),
1225
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1226
+ __metadata("design:returntype", Promise)
1227
+ ], AIAgentModelResolver.prototype, "RunAIAgentModelViewByID", null);
1228
+ __decorate([
1229
+ Query(() => RunAIAgentModelViewResult),
1230
+ __param(0, Arg('input', () => RunViewByNameInput)),
1231
+ __param(1, Ctx()),
1232
+ __param(2, PubSub()),
1233
+ __metadata("design:type", Function),
1234
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1235
+ __metadata("design:returntype", Promise)
1236
+ ], AIAgentModelResolver.prototype, "RunAIAgentModelViewByName", null);
1237
+ __decorate([
1238
+ Query(() => RunAIAgentModelViewResult),
1239
+ __param(0, Arg('input', () => RunDynamicViewInput)),
1240
+ __param(1, Ctx()),
1241
+ __param(2, PubSub()),
1242
+ __metadata("design:type", Function),
1243
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1244
+ __metadata("design:returntype", Promise)
1245
+ ], AIAgentModelResolver.prototype, "RunAIAgentModelDynamicView", null);
1246
+ __decorate([
1247
+ Query(() => AIAgentModel_, { nullable: true }),
1248
+ __param(0, Arg('ID', () => String)),
1249
+ __param(1, Ctx()),
1250
+ __param(2, PubSub()),
1251
+ __metadata("design:type", Function),
1252
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1253
+ __metadata("design:returntype", Promise)
1254
+ ], AIAgentModelResolver.prototype, "AIAgentModel", null);
1255
+ __decorate([
1256
+ Mutation(() => AIAgentModel_),
1257
+ __param(0, Arg('input', () => CreateAIAgentModelInput)),
1258
+ __param(1, Ctx()),
1259
+ __param(2, PubSub()),
1260
+ __metadata("design:type", Function),
1261
+ __metadata("design:paramtypes", [CreateAIAgentModelInput, Object, PubSubEngine]),
1262
+ __metadata("design:returntype", Promise)
1263
+ ], AIAgentModelResolver.prototype, "CreateAIAgentModel", null);
1264
+ __decorate([
1265
+ Mutation(() => AIAgentModel_),
1266
+ __param(0, Arg('input', () => UpdateAIAgentModelInput)),
1267
+ __param(1, Ctx()),
1268
+ __param(2, PubSub()),
1269
+ __metadata("design:type", Function),
1270
+ __metadata("design:paramtypes", [UpdateAIAgentModelInput, Object, PubSubEngine]),
1271
+ __metadata("design:returntype", Promise)
1272
+ ], AIAgentModelResolver.prototype, "UpdateAIAgentModel", null);
1273
+ __decorate([
1274
+ Mutation(() => AIAgentModel_),
1275
+ __param(0, Arg('ID', () => String)),
1276
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
1277
+ __param(2, Ctx()),
1278
+ __param(3, PubSub()),
1279
+ __metadata("design:type", Function),
1280
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1281
+ __metadata("design:returntype", Promise)
1282
+ ], AIAgentModelResolver.prototype, "DeleteAIAgentModel", null);
1283
+ AIAgentModelResolver = __decorate([
1284
+ Resolver(AIAgentModel_)
1285
+ ], AIAgentModelResolver);
1286
+ export { AIAgentModelResolver };
1287
+ let AIAgentNoteType_ = class AIAgentNoteType_ {
1288
+ ID;
1289
+ Name;
1290
+ Description;
1291
+ _mj__CreatedAt;
1292
+ _mj__UpdatedAt;
1293
+ AIAgentNotes_AgentNoteTypeIDArray;
1294
+ };
1295
+ __decorate([
1296
+ Field(),
1297
+ MaxLength(16),
1298
+ __metadata("design:type", String)
1299
+ ], AIAgentNoteType_.prototype, "ID", void 0);
1300
+ __decorate([
1301
+ Field({ nullable: true }),
1302
+ MaxLength(510),
1303
+ __metadata("design:type", String)
1304
+ ], AIAgentNoteType_.prototype, "Name", void 0);
1305
+ __decorate([
1306
+ Field({ nullable: true }),
1307
+ __metadata("design:type", String)
1308
+ ], AIAgentNoteType_.prototype, "Description", void 0);
1309
+ __decorate([
1310
+ Field(),
1311
+ MaxLength(10),
1312
+ __metadata("design:type", Date)
1313
+ ], AIAgentNoteType_.prototype, "_mj__CreatedAt", void 0);
1314
+ __decorate([
1315
+ Field(),
1316
+ MaxLength(10),
1317
+ __metadata("design:type", Date)
1318
+ ], AIAgentNoteType_.prototype, "_mj__UpdatedAt", void 0);
1319
+ __decorate([
1320
+ Field(() => [AIAgentNote_]),
1321
+ __metadata("design:type", Array)
1322
+ ], AIAgentNoteType_.prototype, "AIAgentNotes_AgentNoteTypeIDArray", void 0);
1323
+ AIAgentNoteType_ = __decorate([
1324
+ ObjectType()
1325
+ ], AIAgentNoteType_);
1326
+ export { AIAgentNoteType_ };
1327
+ let CreateAIAgentNoteTypeInput = class CreateAIAgentNoteTypeInput {
1328
+ Name;
1329
+ Description;
1330
+ };
1331
+ __decorate([
1332
+ Field({ nullable: true }),
1333
+ __metadata("design:type", String)
1334
+ ], CreateAIAgentNoteTypeInput.prototype, "Name", void 0);
1335
+ __decorate([
1336
+ Field({ nullable: true }),
1337
+ __metadata("design:type", String)
1338
+ ], CreateAIAgentNoteTypeInput.prototype, "Description", void 0);
1339
+ CreateAIAgentNoteTypeInput = __decorate([
1340
+ InputType()
1341
+ ], CreateAIAgentNoteTypeInput);
1342
+ export { CreateAIAgentNoteTypeInput };
1343
+ let UpdateAIAgentNoteTypeInput = class UpdateAIAgentNoteTypeInput {
1344
+ ID;
1345
+ Name;
1346
+ Description;
1347
+ OldValues___;
1348
+ };
1349
+ __decorate([
1350
+ Field(),
1351
+ __metadata("design:type", String)
1352
+ ], UpdateAIAgentNoteTypeInput.prototype, "ID", void 0);
1353
+ __decorate([
1354
+ Field({ nullable: true }),
1355
+ __metadata("design:type", String)
1356
+ ], UpdateAIAgentNoteTypeInput.prototype, "Name", void 0);
1357
+ __decorate([
1358
+ Field({ nullable: true }),
1359
+ __metadata("design:type", String)
1360
+ ], UpdateAIAgentNoteTypeInput.prototype, "Description", void 0);
1361
+ __decorate([
1362
+ Field(() => [KeyValuePairInput], { nullable: true }),
1363
+ __metadata("design:type", Array)
1364
+ ], UpdateAIAgentNoteTypeInput.prototype, "OldValues___", void 0);
1365
+ UpdateAIAgentNoteTypeInput = __decorate([
1366
+ InputType()
1367
+ ], UpdateAIAgentNoteTypeInput);
1368
+ export { UpdateAIAgentNoteTypeInput };
1369
+ let RunAIAgentNoteTypeViewResult = class RunAIAgentNoteTypeViewResult {
1370
+ Results;
1371
+ UserViewRunID;
1372
+ RowCount;
1373
+ TotalRowCount;
1374
+ ExecutionTime;
1375
+ ErrorMessage;
1376
+ Success;
1377
+ };
1378
+ __decorate([
1379
+ Field(() => [AIAgentNoteType_]),
1380
+ __metadata("design:type", Array)
1381
+ ], RunAIAgentNoteTypeViewResult.prototype, "Results", void 0);
1382
+ __decorate([
1383
+ Field(() => String, { nullable: true }),
1384
+ __metadata("design:type", String)
1385
+ ], RunAIAgentNoteTypeViewResult.prototype, "UserViewRunID", void 0);
1386
+ __decorate([
1387
+ Field(() => Int, { nullable: true }),
1388
+ __metadata("design:type", Number)
1389
+ ], RunAIAgentNoteTypeViewResult.prototype, "RowCount", void 0);
1390
+ __decorate([
1391
+ Field(() => Int, { nullable: true }),
1392
+ __metadata("design:type", Number)
1393
+ ], RunAIAgentNoteTypeViewResult.prototype, "TotalRowCount", void 0);
1394
+ __decorate([
1395
+ Field(() => Int, { nullable: true }),
1396
+ __metadata("design:type", Number)
1397
+ ], RunAIAgentNoteTypeViewResult.prototype, "ExecutionTime", void 0);
1398
+ __decorate([
1399
+ Field({ nullable: true }),
1400
+ __metadata("design:type", String)
1401
+ ], RunAIAgentNoteTypeViewResult.prototype, "ErrorMessage", void 0);
1402
+ __decorate([
1403
+ Field(() => Boolean, { nullable: false }),
1404
+ __metadata("design:type", Boolean)
1405
+ ], RunAIAgentNoteTypeViewResult.prototype, "Success", void 0);
1406
+ RunAIAgentNoteTypeViewResult = __decorate([
1407
+ ObjectType()
1408
+ ], RunAIAgentNoteTypeViewResult);
1409
+ export { RunAIAgentNoteTypeViewResult };
1410
+ let AIAgentNoteTypeResolver = class AIAgentNoteTypeResolver extends ResolverBase {
1411
+ async RunAIAgentNoteTypeViewByID(input, { dataSource, userPayload }, pubSub) {
1412
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
1413
+ }
1414
+ async RunAIAgentNoteTypeViewByName(input, { dataSource, userPayload }, pubSub) {
1415
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
1416
+ }
1417
+ async RunAIAgentNoteTypeDynamicView(input, { dataSource, userPayload }, pubSub) {
1418
+ input.EntityName = 'AIAgent Note Types';
1419
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
1420
+ }
1421
+ async AIAgentNoteType(ID, { dataSource, userPayload }, pubSub) {
1422
+ this.CheckUserReadPermissions('AIAgent Note Types', userPayload);
1423
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentNoteTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Note Types', userPayload, EntityPermissionType.Read, 'AND');
1424
+ const result = this.MapFieldNamesToCodeNames('AIAgent Note Types', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
1425
+ return result;
1426
+ }
1427
+ async AIAgentNotes_AgentNoteTypeIDArray(aiagentnotetype_, { dataSource, userPayload }, pubSub) {
1428
+ this.CheckUserReadPermissions('AIAgent Notes', userPayload);
1429
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentNotes] WHERE [AgentNoteTypeID]='${aiagentnotetype_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Notes', userPayload, EntityPermissionType.Read, 'AND');
1430
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Notes', await dataSource.query(sSQL));
1431
+ return result;
1432
+ }
1433
+ async CreateAIAgentNoteType(input, { dataSource, userPayload }, pubSub) {
1434
+ return this.CreateRecord('AIAgent Note Types', input, dataSource, userPayload, pubSub);
1435
+ }
1436
+ async UpdateAIAgentNoteType(input, { dataSource, userPayload }, pubSub) {
1437
+ return this.UpdateRecord('AIAgent Note Types', input, dataSource, userPayload, pubSub);
1438
+ }
1439
+ async DeleteAIAgentNoteType(ID, options, { dataSource, userPayload }, pubSub) {
1440
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1441
+ return this.DeleteRecord('AIAgent Note Types', key, options, dataSource, userPayload, pubSub);
1442
+ }
1443
+ };
1444
+ __decorate([
1445
+ Query(() => RunAIAgentNoteTypeViewResult),
1446
+ __param(0, Arg('input', () => RunViewByIDInput)),
1447
+ __param(1, Ctx()),
1448
+ __param(2, PubSub()),
1449
+ __metadata("design:type", Function),
1450
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1451
+ __metadata("design:returntype", Promise)
1452
+ ], AIAgentNoteTypeResolver.prototype, "RunAIAgentNoteTypeViewByID", null);
1453
+ __decorate([
1454
+ Query(() => RunAIAgentNoteTypeViewResult),
1455
+ __param(0, Arg('input', () => RunViewByNameInput)),
1456
+ __param(1, Ctx()),
1457
+ __param(2, PubSub()),
1458
+ __metadata("design:type", Function),
1459
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1460
+ __metadata("design:returntype", Promise)
1461
+ ], AIAgentNoteTypeResolver.prototype, "RunAIAgentNoteTypeViewByName", null);
1462
+ __decorate([
1463
+ Query(() => RunAIAgentNoteTypeViewResult),
1464
+ __param(0, Arg('input', () => RunDynamicViewInput)),
1465
+ __param(1, Ctx()),
1466
+ __param(2, PubSub()),
1467
+ __metadata("design:type", Function),
1468
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1469
+ __metadata("design:returntype", Promise)
1470
+ ], AIAgentNoteTypeResolver.prototype, "RunAIAgentNoteTypeDynamicView", null);
1471
+ __decorate([
1472
+ Query(() => AIAgentNoteType_, { nullable: true }),
1473
+ __param(0, Arg('ID', () => String)),
1474
+ __param(1, Ctx()),
1475
+ __param(2, PubSub()),
1476
+ __metadata("design:type", Function),
1477
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1478
+ __metadata("design:returntype", Promise)
1479
+ ], AIAgentNoteTypeResolver.prototype, "AIAgentNoteType", null);
1480
+ __decorate([
1481
+ FieldResolver(() => [AIAgentNote_]),
1482
+ __param(0, Root()),
1483
+ __param(1, Ctx()),
1484
+ __param(2, PubSub()),
1485
+ __metadata("design:type", Function),
1486
+ __metadata("design:paramtypes", [AIAgentNoteType_, Object, PubSubEngine]),
1487
+ __metadata("design:returntype", Promise)
1488
+ ], AIAgentNoteTypeResolver.prototype, "AIAgentNotes_AgentNoteTypeIDArray", null);
1489
+ __decorate([
1490
+ Mutation(() => AIAgentNoteType_),
1491
+ __param(0, Arg('input', () => CreateAIAgentNoteTypeInput)),
1492
+ __param(1, Ctx()),
1493
+ __param(2, PubSub()),
1494
+ __metadata("design:type", Function),
1495
+ __metadata("design:paramtypes", [CreateAIAgentNoteTypeInput, Object, PubSubEngine]),
1496
+ __metadata("design:returntype", Promise)
1497
+ ], AIAgentNoteTypeResolver.prototype, "CreateAIAgentNoteType", null);
1498
+ __decorate([
1499
+ Mutation(() => AIAgentNoteType_),
1500
+ __param(0, Arg('input', () => UpdateAIAgentNoteTypeInput)),
1501
+ __param(1, Ctx()),
1502
+ __param(2, PubSub()),
1503
+ __metadata("design:type", Function),
1504
+ __metadata("design:paramtypes", [UpdateAIAgentNoteTypeInput, Object, PubSubEngine]),
1505
+ __metadata("design:returntype", Promise)
1506
+ ], AIAgentNoteTypeResolver.prototype, "UpdateAIAgentNoteType", null);
1507
+ __decorate([
1508
+ Mutation(() => AIAgentNoteType_),
1509
+ __param(0, Arg('ID', () => String)),
1510
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
1511
+ __param(2, Ctx()),
1512
+ __param(3, PubSub()),
1513
+ __metadata("design:type", Function),
1514
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1515
+ __metadata("design:returntype", Promise)
1516
+ ], AIAgentNoteTypeResolver.prototype, "DeleteAIAgentNoteType", null);
1517
+ AIAgentNoteTypeResolver = __decorate([
1518
+ Resolver(AIAgentNoteType_)
1519
+ ], AIAgentNoteTypeResolver);
1520
+ export { AIAgentNoteTypeResolver };
1521
+ let AIAgent_ = class AIAgent_ {
1522
+ ID;
1523
+ Name;
1524
+ Description;
1525
+ LogoURL;
1526
+ _mj__CreatedAt;
1527
+ _mj__UpdatedAt;
1528
+ AIAgentLearningCycles_AgentIDArray;
1529
+ AIAgentModels_AgentIDArray;
1530
+ AIAgentActions_AgentIDArray;
1531
+ AIAgentNotes_AgentIDArray;
1532
+ };
1533
+ __decorate([
1534
+ Field({ description: 'The unique identifier for each AI agent. Serves as the primary key.' }),
1535
+ MaxLength(16),
1536
+ __metadata("design:type", String)
1537
+ ], AIAgent_.prototype, "ID", void 0);
1538
+ __decorate([
1539
+ Field({ nullable: true, description: 'The name of the AI agent.' }),
1540
+ MaxLength(510),
1541
+ __metadata("design:type", String)
1542
+ ], AIAgent_.prototype, "Name", void 0);
1543
+ __decorate([
1544
+ Field({ nullable: true, description: 'A detailed description of the AI agent.' }),
1545
+ __metadata("design:type", String)
1546
+ ], AIAgent_.prototype, "Description", void 0);
1547
+ __decorate([
1548
+ Field({ nullable: true }),
1549
+ MaxLength(510),
1550
+ __metadata("design:type", String)
1551
+ ], AIAgent_.prototype, "LogoURL", void 0);
1552
+ __decorate([
1553
+ Field(),
1554
+ MaxLength(10),
1555
+ __metadata("design:type", Date)
1556
+ ], AIAgent_.prototype, "_mj__CreatedAt", void 0);
1557
+ __decorate([
1558
+ Field(),
1559
+ MaxLength(10),
1560
+ __metadata("design:type", Date)
1561
+ ], AIAgent_.prototype, "_mj__UpdatedAt", void 0);
1562
+ __decorate([
1563
+ Field(() => [AIAgentLearningCycle_]),
1564
+ __metadata("design:type", Array)
1565
+ ], AIAgent_.prototype, "AIAgentLearningCycles_AgentIDArray", void 0);
1566
+ __decorate([
1567
+ Field(() => [AIAgentModel_]),
1568
+ __metadata("design:type", Array)
1569
+ ], AIAgent_.prototype, "AIAgentModels_AgentIDArray", void 0);
1570
+ __decorate([
1571
+ Field(() => [AIAgentAction_]),
1572
+ __metadata("design:type", Array)
1573
+ ], AIAgent_.prototype, "AIAgentActions_AgentIDArray", void 0);
1574
+ __decorate([
1575
+ Field(() => [AIAgentNote_]),
1576
+ __metadata("design:type", Array)
1577
+ ], AIAgent_.prototype, "AIAgentNotes_AgentIDArray", void 0);
1578
+ AIAgent_ = __decorate([
1579
+ ObjectType({ description: 'Table to store information about AI agents.' })
1580
+ ], AIAgent_);
1581
+ export { AIAgent_ };
1582
+ let CreateAIAgentInput = class CreateAIAgentInput {
1583
+ Name;
1584
+ Description;
1585
+ LogoURL;
1586
+ };
1587
+ __decorate([
1588
+ Field({ nullable: true }),
1589
+ __metadata("design:type", String)
1590
+ ], CreateAIAgentInput.prototype, "Name", void 0);
1591
+ __decorate([
1592
+ Field({ nullable: true }),
1593
+ __metadata("design:type", String)
1594
+ ], CreateAIAgentInput.prototype, "Description", void 0);
1595
+ __decorate([
1596
+ Field({ nullable: true }),
1597
+ __metadata("design:type", String)
1598
+ ], CreateAIAgentInput.prototype, "LogoURL", void 0);
1599
+ CreateAIAgentInput = __decorate([
1600
+ InputType()
1601
+ ], CreateAIAgentInput);
1602
+ export { CreateAIAgentInput };
1603
+ let UpdateAIAgentInput = class UpdateAIAgentInput {
1604
+ ID;
1605
+ Name;
1606
+ Description;
1607
+ LogoURL;
1608
+ OldValues___;
1609
+ };
1610
+ __decorate([
1611
+ Field(),
1612
+ __metadata("design:type", String)
1613
+ ], UpdateAIAgentInput.prototype, "ID", void 0);
1614
+ __decorate([
1615
+ Field({ nullable: true }),
1616
+ __metadata("design:type", String)
1617
+ ], UpdateAIAgentInput.prototype, "Name", void 0);
1618
+ __decorate([
1619
+ Field({ nullable: true }),
1620
+ __metadata("design:type", String)
1621
+ ], UpdateAIAgentInput.prototype, "Description", void 0);
1622
+ __decorate([
1623
+ Field({ nullable: true }),
1624
+ __metadata("design:type", String)
1625
+ ], UpdateAIAgentInput.prototype, "LogoURL", void 0);
1626
+ __decorate([
1627
+ Field(() => [KeyValuePairInput], { nullable: true }),
1628
+ __metadata("design:type", Array)
1629
+ ], UpdateAIAgentInput.prototype, "OldValues___", void 0);
1630
+ UpdateAIAgentInput = __decorate([
1631
+ InputType()
1632
+ ], UpdateAIAgentInput);
1633
+ export { UpdateAIAgentInput };
1634
+ let RunAIAgentViewResult = class RunAIAgentViewResult {
1635
+ Results;
1636
+ UserViewRunID;
1637
+ RowCount;
1638
+ TotalRowCount;
1639
+ ExecutionTime;
1640
+ ErrorMessage;
1641
+ Success;
1642
+ };
1643
+ __decorate([
1644
+ Field(() => [AIAgent_]),
1645
+ __metadata("design:type", Array)
1646
+ ], RunAIAgentViewResult.prototype, "Results", void 0);
1647
+ __decorate([
1648
+ Field(() => String, { nullable: true }),
1649
+ __metadata("design:type", String)
1650
+ ], RunAIAgentViewResult.prototype, "UserViewRunID", void 0);
1651
+ __decorate([
1652
+ Field(() => Int, { nullable: true }),
1653
+ __metadata("design:type", Number)
1654
+ ], RunAIAgentViewResult.prototype, "RowCount", void 0);
1655
+ __decorate([
1656
+ Field(() => Int, { nullable: true }),
1657
+ __metadata("design:type", Number)
1658
+ ], RunAIAgentViewResult.prototype, "TotalRowCount", void 0);
1659
+ __decorate([
1660
+ Field(() => Int, { nullable: true }),
1661
+ __metadata("design:type", Number)
1662
+ ], RunAIAgentViewResult.prototype, "ExecutionTime", void 0);
1663
+ __decorate([
1664
+ Field({ nullable: true }),
1665
+ __metadata("design:type", String)
1666
+ ], RunAIAgentViewResult.prototype, "ErrorMessage", void 0);
1667
+ __decorate([
1668
+ Field(() => Boolean, { nullable: false }),
1669
+ __metadata("design:type", Boolean)
1670
+ ], RunAIAgentViewResult.prototype, "Success", void 0);
1671
+ RunAIAgentViewResult = __decorate([
1672
+ ObjectType()
1673
+ ], RunAIAgentViewResult);
1674
+ export { RunAIAgentViewResult };
1675
+ let AIAgentResolver = class AIAgentResolver extends ResolverBase {
1676
+ async RunAIAgentViewByID(input, { dataSource, userPayload }, pubSub) {
1677
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
1678
+ }
1679
+ async RunAIAgentViewByName(input, { dataSource, userPayload }, pubSub) {
1680
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
1681
+ }
1682
+ async RunAIAgentDynamicView(input, { dataSource, userPayload }, pubSub) {
1683
+ input.EntityName = 'AIAgents';
1684
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
1685
+ }
1686
+ async AIAgent(ID, { dataSource, userPayload }, pubSub) {
1687
+ this.CheckUserReadPermissions('AIAgents', userPayload);
1688
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgents] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AIAgents', userPayload, EntityPermissionType.Read, 'AND');
1689
+ const result = this.MapFieldNamesToCodeNames('AIAgents', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
1690
+ return result;
1691
+ }
1692
+ async AIAgentLearningCycles_AgentIDArray(aiagent_, { dataSource, userPayload }, pubSub) {
1693
+ this.CheckUserReadPermissions('AIAgent Learning Cycles', userPayload);
1694
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentLearningCycles] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Learning Cycles', userPayload, EntityPermissionType.Read, 'AND');
1695
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Learning Cycles', await dataSource.query(sSQL));
1696
+ return result;
1697
+ }
1698
+ async AIAgentModels_AgentIDArray(aiagent_, { dataSource, userPayload }, pubSub) {
1699
+ this.CheckUserReadPermissions('AIAgent Models', userPayload);
1700
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModels] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Models', userPayload, EntityPermissionType.Read, 'AND');
1701
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Models', await dataSource.query(sSQL));
1702
+ return result;
1703
+ }
1704
+ async AIAgentActions_AgentIDArray(aiagent_, { dataSource, userPayload }, pubSub) {
1705
+ this.CheckUserReadPermissions('AIAgent Actions', userPayload);
1706
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentActions] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Actions', userPayload, EntityPermissionType.Read, 'AND');
1707
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Actions', await dataSource.query(sSQL));
1708
+ return result;
1709
+ }
1710
+ async AIAgentNotes_AgentIDArray(aiagent_, { dataSource, userPayload }, pubSub) {
1711
+ this.CheckUserReadPermissions('AIAgent Notes', userPayload);
1712
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentNotes] WHERE [AgentID]='${aiagent_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Notes', userPayload, EntityPermissionType.Read, 'AND');
1713
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Notes', await dataSource.query(sSQL));
1714
+ return result;
1715
+ }
1716
+ async CreateAIAgent(input, { dataSource, userPayload }, pubSub) {
1717
+ return this.CreateRecord('AIAgents', input, dataSource, userPayload, pubSub);
1718
+ }
1719
+ async UpdateAIAgent(input, { dataSource, userPayload }, pubSub) {
1720
+ return this.UpdateRecord('AIAgents', input, dataSource, userPayload, pubSub);
1721
+ }
1722
+ async DeleteAIAgent(ID, options, { dataSource, userPayload }, pubSub) {
1723
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
1724
+ return this.DeleteRecord('AIAgents', key, options, dataSource, userPayload, pubSub);
1725
+ }
1726
+ };
1727
+ __decorate([
1728
+ Query(() => RunAIAgentViewResult),
1729
+ __param(0, Arg('input', () => RunViewByIDInput)),
1730
+ __param(1, Ctx()),
1731
+ __param(2, PubSub()),
1732
+ __metadata("design:type", Function),
1733
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
1734
+ __metadata("design:returntype", Promise)
1735
+ ], AIAgentResolver.prototype, "RunAIAgentViewByID", null);
1736
+ __decorate([
1737
+ Query(() => RunAIAgentViewResult),
1738
+ __param(0, Arg('input', () => RunViewByNameInput)),
1739
+ __param(1, Ctx()),
1740
+ __param(2, PubSub()),
1741
+ __metadata("design:type", Function),
1742
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
1743
+ __metadata("design:returntype", Promise)
1744
+ ], AIAgentResolver.prototype, "RunAIAgentViewByName", null);
1745
+ __decorate([
1746
+ Query(() => RunAIAgentViewResult),
1747
+ __param(0, Arg('input', () => RunDynamicViewInput)),
1748
+ __param(1, Ctx()),
1749
+ __param(2, PubSub()),
1750
+ __metadata("design:type", Function),
1751
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
1752
+ __metadata("design:returntype", Promise)
1753
+ ], AIAgentResolver.prototype, "RunAIAgentDynamicView", null);
1754
+ __decorate([
1755
+ Query(() => AIAgent_, { nullable: true }),
1756
+ __param(0, Arg('ID', () => String)),
1757
+ __param(1, Ctx()),
1758
+ __param(2, PubSub()),
1759
+ __metadata("design:type", Function),
1760
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
1761
+ __metadata("design:returntype", Promise)
1762
+ ], AIAgentResolver.prototype, "AIAgent", null);
1763
+ __decorate([
1764
+ FieldResolver(() => [AIAgentLearningCycle_]),
1765
+ __param(0, Root()),
1766
+ __param(1, Ctx()),
1767
+ __param(2, PubSub()),
1768
+ __metadata("design:type", Function),
1769
+ __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
1770
+ __metadata("design:returntype", Promise)
1771
+ ], AIAgentResolver.prototype, "AIAgentLearningCycles_AgentIDArray", null);
1772
+ __decorate([
1773
+ FieldResolver(() => [AIAgentModel_]),
1774
+ __param(0, Root()),
1775
+ __param(1, Ctx()),
1776
+ __param(2, PubSub()),
1777
+ __metadata("design:type", Function),
1778
+ __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
1779
+ __metadata("design:returntype", Promise)
1780
+ ], AIAgentResolver.prototype, "AIAgentModels_AgentIDArray", null);
1781
+ __decorate([
1782
+ FieldResolver(() => [AIAgentAction_]),
1783
+ __param(0, Root()),
1784
+ __param(1, Ctx()),
1785
+ __param(2, PubSub()),
1786
+ __metadata("design:type", Function),
1787
+ __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
1788
+ __metadata("design:returntype", Promise)
1789
+ ], AIAgentResolver.prototype, "AIAgentActions_AgentIDArray", null);
1790
+ __decorate([
1791
+ FieldResolver(() => [AIAgentNote_]),
1792
+ __param(0, Root()),
1793
+ __param(1, Ctx()),
1794
+ __param(2, PubSub()),
1795
+ __metadata("design:type", Function),
1796
+ __metadata("design:paramtypes", [AIAgent_, Object, PubSubEngine]),
1797
+ __metadata("design:returntype", Promise)
1798
+ ], AIAgentResolver.prototype, "AIAgentNotes_AgentIDArray", null);
1799
+ __decorate([
1800
+ Mutation(() => AIAgent_),
1801
+ __param(0, Arg('input', () => CreateAIAgentInput)),
1802
+ __param(1, Ctx()),
1803
+ __param(2, PubSub()),
1804
+ __metadata("design:type", Function),
1805
+ __metadata("design:paramtypes", [CreateAIAgentInput, Object, PubSubEngine]),
1806
+ __metadata("design:returntype", Promise)
1807
+ ], AIAgentResolver.prototype, "CreateAIAgent", null);
1808
+ __decorate([
1809
+ Mutation(() => AIAgent_),
1810
+ __param(0, Arg('input', () => UpdateAIAgentInput)),
1811
+ __param(1, Ctx()),
1812
+ __param(2, PubSub()),
1813
+ __metadata("design:type", Function),
1814
+ __metadata("design:paramtypes", [UpdateAIAgentInput, Object, PubSubEngine]),
1815
+ __metadata("design:returntype", Promise)
1816
+ ], AIAgentResolver.prototype, "UpdateAIAgent", null);
1817
+ __decorate([
1818
+ Mutation(() => AIAgent_),
1819
+ __param(0, Arg('ID', () => String)),
1820
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
1821
+ __param(2, Ctx()),
1822
+ __param(3, PubSub()),
1823
+ __metadata("design:type", Function),
1824
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
1825
+ __metadata("design:returntype", Promise)
1826
+ ], AIAgentResolver.prototype, "DeleteAIAgent", null);
1827
+ AIAgentResolver = __decorate([
1828
+ Resolver(AIAgent_)
1829
+ ], AIAgentResolver);
1830
+ export { AIAgentResolver };
1831
+ let AIAgentNote_ = class AIAgentNote_ {
1832
+ ID;
1833
+ AgentID;
1834
+ AgentNoteTypeID;
1835
+ Note;
1836
+ _mj__CreatedAt;
1837
+ _mj__UpdatedAt;
1838
+ Agent;
1839
+ AgentNoteType;
1840
+ };
1841
+ __decorate([
1842
+ Field(),
1843
+ MaxLength(16),
1844
+ __metadata("design:type", String)
1845
+ ], AIAgentNote_.prototype, "ID", void 0);
1846
+ __decorate([
1847
+ Field({ nullable: true }),
1848
+ MaxLength(16),
1849
+ __metadata("design:type", String)
1850
+ ], AIAgentNote_.prototype, "AgentID", void 0);
1851
+ __decorate([
1852
+ Field({ nullable: true }),
1853
+ MaxLength(16),
1854
+ __metadata("design:type", String)
1855
+ ], AIAgentNote_.prototype, "AgentNoteTypeID", void 0);
1856
+ __decorate([
1857
+ Field({ nullable: true }),
1858
+ __metadata("design:type", String)
1859
+ ], AIAgentNote_.prototype, "Note", void 0);
1860
+ __decorate([
1861
+ Field(),
1862
+ MaxLength(10),
1863
+ __metadata("design:type", Date)
1864
+ ], AIAgentNote_.prototype, "_mj__CreatedAt", void 0);
1865
+ __decorate([
1866
+ Field(),
1867
+ MaxLength(10),
1868
+ __metadata("design:type", Date)
1869
+ ], AIAgentNote_.prototype, "_mj__UpdatedAt", void 0);
1870
+ __decorate([
1871
+ Field({ nullable: true }),
1872
+ MaxLength(510),
1873
+ __metadata("design:type", String)
1874
+ ], AIAgentNote_.prototype, "Agent", void 0);
1875
+ __decorate([
1876
+ Field({ nullable: true }),
1877
+ MaxLength(510),
1878
+ __metadata("design:type", String)
1879
+ ], AIAgentNote_.prototype, "AgentNoteType", void 0);
1880
+ AIAgentNote_ = __decorate([
1881
+ ObjectType()
1882
+ ], AIAgentNote_);
1883
+ export { AIAgentNote_ };
1884
+ let CreateAIAgentNoteInput = class CreateAIAgentNoteInput {
1885
+ AgentID;
1886
+ AgentNoteTypeID;
1887
+ Note;
1888
+ };
1889
+ __decorate([
1890
+ Field({ nullable: true }),
1891
+ __metadata("design:type", String)
1892
+ ], CreateAIAgentNoteInput.prototype, "AgentID", void 0);
1893
+ __decorate([
1894
+ Field({ nullable: true }),
1895
+ __metadata("design:type", String)
1896
+ ], CreateAIAgentNoteInput.prototype, "AgentNoteTypeID", void 0);
1897
+ __decorate([
1898
+ Field({ nullable: true }),
1899
+ __metadata("design:type", String)
1900
+ ], CreateAIAgentNoteInput.prototype, "Note", void 0);
1901
+ CreateAIAgentNoteInput = __decorate([
1902
+ InputType()
1903
+ ], CreateAIAgentNoteInput);
1904
+ export { CreateAIAgentNoteInput };
1905
+ let UpdateAIAgentNoteInput = class UpdateAIAgentNoteInput {
1906
+ ID;
1907
+ AgentID;
1908
+ AgentNoteTypeID;
1909
+ Note;
1910
+ OldValues___;
1911
+ };
1912
+ __decorate([
1913
+ Field(),
1914
+ __metadata("design:type", String)
1915
+ ], UpdateAIAgentNoteInput.prototype, "ID", void 0);
1916
+ __decorate([
1917
+ Field({ nullable: true }),
1918
+ __metadata("design:type", String)
1919
+ ], UpdateAIAgentNoteInput.prototype, "AgentID", void 0);
1920
+ __decorate([
1921
+ Field({ nullable: true }),
1922
+ __metadata("design:type", String)
1923
+ ], UpdateAIAgentNoteInput.prototype, "AgentNoteTypeID", void 0);
1924
+ __decorate([
1925
+ Field({ nullable: true }),
1926
+ __metadata("design:type", String)
1927
+ ], UpdateAIAgentNoteInput.prototype, "Note", void 0);
1928
+ __decorate([
1929
+ Field(() => [KeyValuePairInput], { nullable: true }),
1930
+ __metadata("design:type", Array)
1931
+ ], UpdateAIAgentNoteInput.prototype, "OldValues___", void 0);
1932
+ UpdateAIAgentNoteInput = __decorate([
1933
+ InputType()
1934
+ ], UpdateAIAgentNoteInput);
1935
+ export { UpdateAIAgentNoteInput };
1936
+ let RunAIAgentNoteViewResult = class RunAIAgentNoteViewResult {
1937
+ Results;
1938
+ UserViewRunID;
1939
+ RowCount;
1940
+ TotalRowCount;
1941
+ ExecutionTime;
1942
+ ErrorMessage;
1943
+ Success;
1944
+ };
1945
+ __decorate([
1946
+ Field(() => [AIAgentNote_]),
1947
+ __metadata("design:type", Array)
1948
+ ], RunAIAgentNoteViewResult.prototype, "Results", void 0);
1949
+ __decorate([
1950
+ Field(() => String, { nullable: true }),
1951
+ __metadata("design:type", String)
1952
+ ], RunAIAgentNoteViewResult.prototype, "UserViewRunID", void 0);
1953
+ __decorate([
1954
+ Field(() => Int, { nullable: true }),
1955
+ __metadata("design:type", Number)
1956
+ ], RunAIAgentNoteViewResult.prototype, "RowCount", void 0);
1957
+ __decorate([
1958
+ Field(() => Int, { nullable: true }),
1959
+ __metadata("design:type", Number)
1960
+ ], RunAIAgentNoteViewResult.prototype, "TotalRowCount", void 0);
1961
+ __decorate([
1962
+ Field(() => Int, { nullable: true }),
1963
+ __metadata("design:type", Number)
1964
+ ], RunAIAgentNoteViewResult.prototype, "ExecutionTime", void 0);
1965
+ __decorate([
1966
+ Field({ nullable: true }),
1967
+ __metadata("design:type", String)
1968
+ ], RunAIAgentNoteViewResult.prototype, "ErrorMessage", void 0);
1969
+ __decorate([
1970
+ Field(() => Boolean, { nullable: false }),
1971
+ __metadata("design:type", Boolean)
1972
+ ], RunAIAgentNoteViewResult.prototype, "Success", void 0);
1973
+ RunAIAgentNoteViewResult = __decorate([
1974
+ ObjectType()
1975
+ ], RunAIAgentNoteViewResult);
1976
+ export { RunAIAgentNoteViewResult };
1977
+ let AIAgentNoteResolver = class AIAgentNoteResolver extends ResolverBase {
1978
+ async RunAIAgentNoteViewByID(input, { dataSource, userPayload }, pubSub) {
1979
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
1980
+ }
1981
+ async RunAIAgentNoteViewByName(input, { dataSource, userPayload }, pubSub) {
1982
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
1983
+ }
1984
+ async RunAIAgentNoteDynamicView(input, { dataSource, userPayload }, pubSub) {
1985
+ input.EntityName = 'AIAgent Notes';
1986
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
1987
+ }
1988
+ async AIAgentNote(ID, { dataSource, userPayload }, pubSub) {
1989
+ this.CheckUserReadPermissions('AIAgent Notes', userPayload);
1990
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentNotes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Notes', userPayload, EntityPermissionType.Read, 'AND');
1991
+ const result = this.MapFieldNamesToCodeNames('AIAgent Notes', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
1992
+ return result;
1993
+ }
1994
+ async CreateAIAgentNote(input, { dataSource, userPayload }, pubSub) {
1995
+ return this.CreateRecord('AIAgent Notes', input, dataSource, userPayload, pubSub);
1996
+ }
1997
+ async UpdateAIAgentNote(input, { dataSource, userPayload }, pubSub) {
1998
+ return this.UpdateRecord('AIAgent Notes', input, dataSource, userPayload, pubSub);
1999
+ }
2000
+ async DeleteAIAgentNote(ID, options, { dataSource, userPayload }, pubSub) {
2001
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
2002
+ return this.DeleteRecord('AIAgent Notes', key, options, dataSource, userPayload, pubSub);
2003
+ }
2004
+ };
2005
+ __decorate([
2006
+ Query(() => RunAIAgentNoteViewResult),
2007
+ __param(0, Arg('input', () => RunViewByIDInput)),
2008
+ __param(1, Ctx()),
2009
+ __param(2, PubSub()),
2010
+ __metadata("design:type", Function),
2011
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
2012
+ __metadata("design:returntype", Promise)
2013
+ ], AIAgentNoteResolver.prototype, "RunAIAgentNoteViewByID", null);
2014
+ __decorate([
2015
+ Query(() => RunAIAgentNoteViewResult),
2016
+ __param(0, Arg('input', () => RunViewByNameInput)),
2017
+ __param(1, Ctx()),
2018
+ __param(2, PubSub()),
2019
+ __metadata("design:type", Function),
2020
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
2021
+ __metadata("design:returntype", Promise)
2022
+ ], AIAgentNoteResolver.prototype, "RunAIAgentNoteViewByName", null);
2023
+ __decorate([
2024
+ Query(() => RunAIAgentNoteViewResult),
2025
+ __param(0, Arg('input', () => RunDynamicViewInput)),
2026
+ __param(1, Ctx()),
2027
+ __param(2, PubSub()),
2028
+ __metadata("design:type", Function),
2029
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
2030
+ __metadata("design:returntype", Promise)
2031
+ ], AIAgentNoteResolver.prototype, "RunAIAgentNoteDynamicView", null);
2032
+ __decorate([
2033
+ Query(() => AIAgentNote_, { nullable: true }),
2034
+ __param(0, Arg('ID', () => String)),
2035
+ __param(1, Ctx()),
2036
+ __param(2, PubSub()),
2037
+ __metadata("design:type", Function),
2038
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
2039
+ __metadata("design:returntype", Promise)
2040
+ ], AIAgentNoteResolver.prototype, "AIAgentNote", null);
2041
+ __decorate([
2042
+ Mutation(() => AIAgentNote_),
2043
+ __param(0, Arg('input', () => CreateAIAgentNoteInput)),
2044
+ __param(1, Ctx()),
2045
+ __param(2, PubSub()),
2046
+ __metadata("design:type", Function),
2047
+ __metadata("design:paramtypes", [CreateAIAgentNoteInput, Object, PubSubEngine]),
2048
+ __metadata("design:returntype", Promise)
2049
+ ], AIAgentNoteResolver.prototype, "CreateAIAgentNote", null);
2050
+ __decorate([
2051
+ Mutation(() => AIAgentNote_),
2052
+ __param(0, Arg('input', () => UpdateAIAgentNoteInput)),
2053
+ __param(1, Ctx()),
2054
+ __param(2, PubSub()),
2055
+ __metadata("design:type", Function),
2056
+ __metadata("design:paramtypes", [UpdateAIAgentNoteInput, Object, PubSubEngine]),
2057
+ __metadata("design:returntype", Promise)
2058
+ ], AIAgentNoteResolver.prototype, "UpdateAIAgentNote", null);
2059
+ __decorate([
2060
+ Mutation(() => AIAgentNote_),
2061
+ __param(0, Arg('ID', () => String)),
2062
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
2063
+ __param(2, Ctx()),
2064
+ __param(3, PubSub()),
2065
+ __metadata("design:type", Function),
2066
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
2067
+ __metadata("design:returntype", Promise)
2068
+ ], AIAgentNoteResolver.prototype, "DeleteAIAgentNote", null);
2069
+ AIAgentNoteResolver = __decorate([
2070
+ Resolver(AIAgentNote_)
2071
+ ], AIAgentNoteResolver);
2072
+ export { AIAgentNoteResolver };
2073
+ let AIAgentAction_ = class AIAgentAction_ {
2074
+ ID;
2075
+ AgentID;
2076
+ ActionID;
2077
+ Status;
2078
+ _mj__CreatedAt;
2079
+ _mj__UpdatedAt;
2080
+ Agent;
2081
+ Action;
2082
+ };
2083
+ __decorate([
2084
+ Field({ description: 'The unique identifier for each AI agent-action mapping. Serves as the primary key.' }),
2085
+ MaxLength(16),
2086
+ __metadata("design:type", String)
2087
+ ], AIAgentAction_.prototype, "ID", void 0);
2088
+ __decorate([
2089
+ Field({ nullable: true, description: 'References the unique identifier of the associated AI agent from the AIAgent table.' }),
2090
+ MaxLength(16),
2091
+ __metadata("design:type", String)
2092
+ ], AIAgentAction_.prototype, "AgentID", void 0);
2093
+ __decorate([
2094
+ Field({ nullable: true, description: 'References the unique identifier of the associated action from the Action table.' }),
2095
+ MaxLength(16),
2096
+ __metadata("design:type", String)
2097
+ ], AIAgentAction_.prototype, "ActionID", void 0);
2098
+ __decorate([
2099
+ Field(),
2100
+ MaxLength(30),
2101
+ __metadata("design:type", String)
2102
+ ], AIAgentAction_.prototype, "Status", void 0);
2103
+ __decorate([
2104
+ Field(),
2105
+ MaxLength(10),
2106
+ __metadata("design:type", Date)
2107
+ ], AIAgentAction_.prototype, "_mj__CreatedAt", void 0);
2108
+ __decorate([
2109
+ Field(),
2110
+ MaxLength(10),
2111
+ __metadata("design:type", Date)
2112
+ ], AIAgentAction_.prototype, "_mj__UpdatedAt", void 0);
2113
+ __decorate([
2114
+ Field({ nullable: true }),
2115
+ MaxLength(510),
2116
+ __metadata("design:type", String)
2117
+ ], AIAgentAction_.prototype, "Agent", void 0);
2118
+ __decorate([
2119
+ Field({ nullable: true }),
2120
+ MaxLength(850),
2121
+ __metadata("design:type", String)
2122
+ ], AIAgentAction_.prototype, "Action", void 0);
2123
+ AIAgentAction_ = __decorate([
2124
+ ObjectType({ description: 'Table to store the relationship between AI agents and actions.' })
2125
+ ], AIAgentAction_);
2126
+ export { AIAgentAction_ };
2127
+ let CreateAIAgentActionInput = class CreateAIAgentActionInput {
2128
+ AgentID;
2129
+ ActionID;
2130
+ Status;
2131
+ };
2132
+ __decorate([
2133
+ Field({ nullable: true }),
2134
+ __metadata("design:type", String)
2135
+ ], CreateAIAgentActionInput.prototype, "AgentID", void 0);
2136
+ __decorate([
2137
+ Field({ nullable: true }),
2138
+ __metadata("design:type", String)
2139
+ ], CreateAIAgentActionInput.prototype, "ActionID", void 0);
2140
+ __decorate([
2141
+ Field(),
2142
+ __metadata("design:type", String)
2143
+ ], CreateAIAgentActionInput.prototype, "Status", void 0);
2144
+ CreateAIAgentActionInput = __decorate([
2145
+ InputType()
2146
+ ], CreateAIAgentActionInput);
2147
+ export { CreateAIAgentActionInput };
2148
+ let UpdateAIAgentActionInput = class UpdateAIAgentActionInput {
2149
+ ID;
2150
+ AgentID;
2151
+ ActionID;
2152
+ Status;
2153
+ OldValues___;
2154
+ };
2155
+ __decorate([
2156
+ Field(),
2157
+ __metadata("design:type", String)
2158
+ ], UpdateAIAgentActionInput.prototype, "ID", void 0);
2159
+ __decorate([
2160
+ Field({ nullable: true }),
2161
+ __metadata("design:type", String)
2162
+ ], UpdateAIAgentActionInput.prototype, "AgentID", void 0);
2163
+ __decorate([
2164
+ Field({ nullable: true }),
2165
+ __metadata("design:type", String)
2166
+ ], UpdateAIAgentActionInput.prototype, "ActionID", void 0);
2167
+ __decorate([
2168
+ Field(),
2169
+ __metadata("design:type", String)
2170
+ ], UpdateAIAgentActionInput.prototype, "Status", void 0);
2171
+ __decorate([
2172
+ Field(() => [KeyValuePairInput], { nullable: true }),
2173
+ __metadata("design:type", Array)
2174
+ ], UpdateAIAgentActionInput.prototype, "OldValues___", void 0);
2175
+ UpdateAIAgentActionInput = __decorate([
2176
+ InputType()
2177
+ ], UpdateAIAgentActionInput);
2178
+ export { UpdateAIAgentActionInput };
2179
+ let RunAIAgentActionViewResult = class RunAIAgentActionViewResult {
2180
+ Results;
2181
+ UserViewRunID;
2182
+ RowCount;
2183
+ TotalRowCount;
2184
+ ExecutionTime;
2185
+ ErrorMessage;
2186
+ Success;
2187
+ };
2188
+ __decorate([
2189
+ Field(() => [AIAgentAction_]),
2190
+ __metadata("design:type", Array)
2191
+ ], RunAIAgentActionViewResult.prototype, "Results", void 0);
2192
+ __decorate([
2193
+ Field(() => String, { nullable: true }),
2194
+ __metadata("design:type", String)
2195
+ ], RunAIAgentActionViewResult.prototype, "UserViewRunID", void 0);
2196
+ __decorate([
2197
+ Field(() => Int, { nullable: true }),
2198
+ __metadata("design:type", Number)
2199
+ ], RunAIAgentActionViewResult.prototype, "RowCount", void 0);
2200
+ __decorate([
2201
+ Field(() => Int, { nullable: true }),
2202
+ __metadata("design:type", Number)
2203
+ ], RunAIAgentActionViewResult.prototype, "TotalRowCount", void 0);
2204
+ __decorate([
2205
+ Field(() => Int, { nullable: true }),
2206
+ __metadata("design:type", Number)
2207
+ ], RunAIAgentActionViewResult.prototype, "ExecutionTime", void 0);
2208
+ __decorate([
2209
+ Field({ nullable: true }),
2210
+ __metadata("design:type", String)
2211
+ ], RunAIAgentActionViewResult.prototype, "ErrorMessage", void 0);
2212
+ __decorate([
2213
+ Field(() => Boolean, { nullable: false }),
2214
+ __metadata("design:type", Boolean)
2215
+ ], RunAIAgentActionViewResult.prototype, "Success", void 0);
2216
+ RunAIAgentActionViewResult = __decorate([
2217
+ ObjectType()
2218
+ ], RunAIAgentActionViewResult);
2219
+ export { RunAIAgentActionViewResult };
2220
+ let AIAgentActionResolver = class AIAgentActionResolver extends ResolverBase {
2221
+ async RunAIAgentActionViewByID(input, { dataSource, userPayload }, pubSub) {
2222
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
2223
+ }
2224
+ async RunAIAgentActionViewByName(input, { dataSource, userPayload }, pubSub) {
2225
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
2226
+ }
2227
+ async RunAIAgentActionDynamicView(input, { dataSource, userPayload }, pubSub) {
2228
+ input.EntityName = 'AIAgent Actions';
2229
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
2230
+ }
2231
+ async AIAgentAction(ID, { dataSource, userPayload }, pubSub) {
2232
+ this.CheckUserReadPermissions('AIAgent Actions', userPayload);
2233
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentActions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Actions', userPayload, EntityPermissionType.Read, 'AND');
2234
+ const result = this.MapFieldNamesToCodeNames('AIAgent Actions', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
2235
+ return result;
2236
+ }
2237
+ async CreateAIAgentAction(input, { dataSource, userPayload }, pubSub) {
2238
+ return this.CreateRecord('AIAgent Actions', input, dataSource, userPayload, pubSub);
2239
+ }
2240
+ async UpdateAIAgentAction(input, { dataSource, userPayload }, pubSub) {
2241
+ return this.UpdateRecord('AIAgent Actions', input, dataSource, userPayload, pubSub);
2242
+ }
2243
+ async DeleteAIAgentAction(ID, options, { dataSource, userPayload }, pubSub) {
2244
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
2245
+ return this.DeleteRecord('AIAgent Actions', key, options, dataSource, userPayload, pubSub);
2246
+ }
2247
+ };
2248
+ __decorate([
2249
+ Query(() => RunAIAgentActionViewResult),
2250
+ __param(0, Arg('input', () => RunViewByIDInput)),
2251
+ __param(1, Ctx()),
2252
+ __param(2, PubSub()),
2253
+ __metadata("design:type", Function),
2254
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
2255
+ __metadata("design:returntype", Promise)
2256
+ ], AIAgentActionResolver.prototype, "RunAIAgentActionViewByID", null);
2257
+ __decorate([
2258
+ Query(() => RunAIAgentActionViewResult),
2259
+ __param(0, Arg('input', () => RunViewByNameInput)),
2260
+ __param(1, Ctx()),
2261
+ __param(2, PubSub()),
2262
+ __metadata("design:type", Function),
2263
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
2264
+ __metadata("design:returntype", Promise)
2265
+ ], AIAgentActionResolver.prototype, "RunAIAgentActionViewByName", null);
2266
+ __decorate([
2267
+ Query(() => RunAIAgentActionViewResult),
2268
+ __param(0, Arg('input', () => RunDynamicViewInput)),
2269
+ __param(1, Ctx()),
2270
+ __param(2, PubSub()),
2271
+ __metadata("design:type", Function),
2272
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
2273
+ __metadata("design:returntype", Promise)
2274
+ ], AIAgentActionResolver.prototype, "RunAIAgentActionDynamicView", null);
2275
+ __decorate([
2276
+ Query(() => AIAgentAction_, { nullable: true }),
2277
+ __param(0, Arg('ID', () => String)),
2278
+ __param(1, Ctx()),
2279
+ __param(2, PubSub()),
2280
+ __metadata("design:type", Function),
2281
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
2282
+ __metadata("design:returntype", Promise)
2283
+ ], AIAgentActionResolver.prototype, "AIAgentAction", null);
2284
+ __decorate([
2285
+ Mutation(() => AIAgentAction_),
2286
+ __param(0, Arg('input', () => CreateAIAgentActionInput)),
2287
+ __param(1, Ctx()),
2288
+ __param(2, PubSub()),
2289
+ __metadata("design:type", Function),
2290
+ __metadata("design:paramtypes", [CreateAIAgentActionInput, Object, PubSubEngine]),
2291
+ __metadata("design:returntype", Promise)
2292
+ ], AIAgentActionResolver.prototype, "CreateAIAgentAction", null);
2293
+ __decorate([
2294
+ Mutation(() => AIAgentAction_),
2295
+ __param(0, Arg('input', () => UpdateAIAgentActionInput)),
2296
+ __param(1, Ctx()),
2297
+ __param(2, PubSub()),
2298
+ __metadata("design:type", Function),
2299
+ __metadata("design:paramtypes", [UpdateAIAgentActionInput, Object, PubSubEngine]),
2300
+ __metadata("design:returntype", Promise)
2301
+ ], AIAgentActionResolver.prototype, "UpdateAIAgentAction", null);
2302
+ __decorate([
2303
+ Mutation(() => AIAgentAction_),
2304
+ __param(0, Arg('ID', () => String)),
2305
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
2306
+ __param(2, Ctx()),
2307
+ __param(3, PubSub()),
2308
+ __metadata("design:type", Function),
2309
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
2310
+ __metadata("design:returntype", Promise)
2311
+ ], AIAgentActionResolver.prototype, "DeleteAIAgentAction", null);
2312
+ AIAgentActionResolver = __decorate([
2313
+ Resolver(AIAgentAction_)
2314
+ ], AIAgentActionResolver);
2315
+ export { AIAgentActionResolver };
1030
2316
  let AIPrompt_ = class AIPrompt_ {
1031
2317
  ID;
1032
2318
  Name;
@@ -16658,6 +17944,7 @@ let AIModel_ = class AIModel_ {
16658
17944
  ContentTypes_AIModelIDArray;
16659
17945
  AIResultCache_AIModelIDArray;
16660
17946
  EntityAIActions_AIModelIDArray;
17947
+ AIAgentModels_ModelIDArray;
16661
17948
  };
16662
17949
  __decorate([
16663
17950
  Field(),
@@ -16765,6 +18052,10 @@ __decorate([
16765
18052
  Field(() => [EntityAIAction_]),
16766
18053
  __metadata("design:type", Array)
16767
18054
  ], AIModel_.prototype, "EntityAIActions_AIModelIDArray", void 0);
18055
+ __decorate([
18056
+ Field(() => [AIAgentModel_]),
18057
+ __metadata("design:type", Array)
18058
+ ], AIModel_.prototype, "AIAgentModels_ModelIDArray", void 0);
16768
18059
  AIModel_ = __decorate([
16769
18060
  ObjectType({ description: 'Catalog of all AI Models configured in the system' })
16770
18061
  ], AIModel_);
@@ -17027,6 +18318,12 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
17027
18318
  const result = this.ArrayMapFieldNamesToCodeNames('Entity AI Actions', await dataSource.query(sSQL));
17028
18319
  return result;
17029
18320
  }
18321
+ async AIAgentModels_ModelIDArray(aimodel_, { dataSource, userPayload }, pubSub) {
18322
+ this.CheckUserReadPermissions('AIAgent Models', userPayload);
18323
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentModels] WHERE [ModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Models', userPayload, EntityPermissionType.Read, 'AND');
18324
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Models', await dataSource.query(sSQL));
18325
+ return result;
18326
+ }
17030
18327
  async CreateAIModel(input, { dataSource, userPayload }, pubSub) {
17031
18328
  return this.CreateRecord('AI Models', input, dataSource, userPayload, pubSub);
17032
18329
  }
@@ -17145,6 +18442,15 @@ __decorate([
17145
18442
  __metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
17146
18443
  __metadata("design:returntype", Promise)
17147
18444
  ], AIModelResolver.prototype, "EntityAIActions_AIModelIDArray", null);
18445
+ __decorate([
18446
+ FieldResolver(() => [AIAgentModel_]),
18447
+ __param(0, Root()),
18448
+ __param(1, Ctx()),
18449
+ __param(2, PubSub()),
18450
+ __metadata("design:type", Function),
18451
+ __metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
18452
+ __metadata("design:returntype", Promise)
18453
+ ], AIModelResolver.prototype, "AIAgentModels_ModelIDArray", null);
17148
18454
  __decorate([
17149
18455
  Mutation(() => AIModel_),
17150
18456
  __param(0, Arg('input', () => CreateAIModelInput)),
@@ -33522,6 +34828,7 @@ let Action_ = class Action_ {
33522
34828
  ActionLibraries_ActionIDArray;
33523
34829
  ScheduledActions_ActionIDArray;
33524
34830
  ActionResultCodes_ActionIDArray;
34831
+ AIAgentActions_ActionIDArray;
33525
34832
  ActionContexts_ActionIDArray;
33526
34833
  EntityActions_ActionIDArray;
33527
34834
  ActionExecutionLogs_ActionIDArray;
@@ -33639,6 +34946,10 @@ __decorate([
33639
34946
  Field(() => [ActionResultCode_]),
33640
34947
  __metadata("design:type", Array)
33641
34948
  ], Action_.prototype, "ActionResultCodes_ActionIDArray", void 0);
34949
+ __decorate([
34950
+ Field(() => [AIAgentAction_]),
34951
+ __metadata("design:type", Array)
34952
+ ], Action_.prototype, "AIAgentActions_ActionIDArray", void 0);
33642
34953
  __decorate([
33643
34954
  Field(() => [ActionContext_]),
33644
34955
  __metadata("design:type", Array)
@@ -33923,6 +35234,12 @@ let ActionResolver = class ActionResolver extends ResolverBase {
33923
35234
  const result = this.ArrayMapFieldNamesToCodeNames('Action Result Codes', await dataSource.query(sSQL));
33924
35235
  return result;
33925
35236
  }
35237
+ async AIAgentActions_ActionIDArray(action_, { dataSource, userPayload }, pubSub) {
35238
+ this.CheckUserReadPermissions('AIAgent Actions', userPayload);
35239
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentActions] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Actions', userPayload, EntityPermissionType.Read, 'AND');
35240
+ const result = this.ArrayMapFieldNamesToCodeNames('AIAgent Actions', await dataSource.query(sSQL));
35241
+ return result;
35242
+ }
33926
35243
  async ActionContexts_ActionIDArray(action_, { dataSource, userPayload }, pubSub) {
33927
35244
  this.CheckUserReadPermissions('Action Contexts', userPayload);
33928
35245
  const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwActionContexts] WHERE [ActionID]='${action_.ID}' ` + this.getRowLevelSecurityWhereClause('Action Contexts', userPayload, EntityPermissionType.Read, 'AND');
@@ -34030,6 +35347,15 @@ __decorate([
34030
35347
  __metadata("design:paramtypes", [Action_, Object, PubSubEngine]),
34031
35348
  __metadata("design:returntype", Promise)
34032
35349
  ], ActionResolver.prototype, "ActionResultCodes_ActionIDArray", null);
35350
+ __decorate([
35351
+ FieldResolver(() => [AIAgentAction_]),
35352
+ __param(0, Root()),
35353
+ __param(1, Ctx()),
35354
+ __param(2, PubSub()),
35355
+ __metadata("design:type", Function),
35356
+ __metadata("design:paramtypes", [Action_, Object, PubSubEngine]),
35357
+ __metadata("design:returntype", Promise)
35358
+ ], ActionResolver.prototype, "AIAgentActions_ActionIDArray", null);
34033
35359
  __decorate([
34034
35360
  FieldResolver(() => [ActionContext_]),
34035
35361
  __param(0, Root()),
@@ -42639,109 +43965,437 @@ __decorate([
42639
43965
  Field({ description: 'Foreign key to the user linking the resource' }),
42640
43966
  MaxLength(16),
42641
43967
  __metadata("design:type", String)
42642
- ], ResourceLink_.prototype, "UserID", void 0);
43968
+ ], ResourceLink_.prototype, "UserID", void 0);
43969
+ __decorate([
43970
+ Field({ description: 'Foreign key to the resource type (view, dashboard, etc.)' }),
43971
+ MaxLength(16),
43972
+ __metadata("design:type", String)
43973
+ ], ResourceLink_.prototype, "ResourceTypeID", void 0);
43974
+ __decorate([
43975
+ Field({ description: 'ID of the specific resource being linked' }),
43976
+ MaxLength(510),
43977
+ __metadata("design:type", String)
43978
+ ], ResourceLink_.prototype, "ResourceRecordID", void 0);
43979
+ __decorate([
43980
+ Field({ nullable: true, description: 'Optional folder where the user organizes the linked resource' }),
43981
+ MaxLength(510),
43982
+ __metadata("design:type", String)
43983
+ ], ResourceLink_.prototype, "FolderID", void 0);
43984
+ __decorate([
43985
+ Field(),
43986
+ MaxLength(10),
43987
+ __metadata("design:type", Date)
43988
+ ], ResourceLink_.prototype, "_mj__CreatedAt", void 0);
43989
+ __decorate([
43990
+ Field(),
43991
+ MaxLength(10),
43992
+ __metadata("design:type", Date)
43993
+ ], ResourceLink_.prototype, "_mj__UpdatedAt", void 0);
43994
+ __decorate([
43995
+ Field(),
43996
+ MaxLength(200),
43997
+ __metadata("design:type", String)
43998
+ ], ResourceLink_.prototype, "User", void 0);
43999
+ __decorate([
44000
+ Field(),
44001
+ MaxLength(510),
44002
+ __metadata("design:type", String)
44003
+ ], ResourceLink_.prototype, "ResourceType", void 0);
44004
+ ResourceLink_ = __decorate([
44005
+ ObjectType({ description: 'Table to track user links to shared resources such as views, dashboards, etc.' })
44006
+ ], ResourceLink_);
44007
+ export { ResourceLink_ };
44008
+ let CreateResourceLinkInput = class CreateResourceLinkInput {
44009
+ UserID;
44010
+ ResourceTypeID;
44011
+ ResourceRecordID;
44012
+ FolderID;
44013
+ };
44014
+ __decorate([
44015
+ Field(),
44016
+ __metadata("design:type", String)
44017
+ ], CreateResourceLinkInput.prototype, "UserID", void 0);
44018
+ __decorate([
44019
+ Field(),
44020
+ __metadata("design:type", String)
44021
+ ], CreateResourceLinkInput.prototype, "ResourceTypeID", void 0);
44022
+ __decorate([
44023
+ Field(),
44024
+ __metadata("design:type", String)
44025
+ ], CreateResourceLinkInput.prototype, "ResourceRecordID", void 0);
44026
+ __decorate([
44027
+ Field({ nullable: true }),
44028
+ __metadata("design:type", String)
44029
+ ], CreateResourceLinkInput.prototype, "FolderID", void 0);
44030
+ CreateResourceLinkInput = __decorate([
44031
+ InputType()
44032
+ ], CreateResourceLinkInput);
44033
+ export { CreateResourceLinkInput };
44034
+ let UpdateResourceLinkInput = class UpdateResourceLinkInput {
44035
+ ID;
44036
+ UserID;
44037
+ ResourceTypeID;
44038
+ ResourceRecordID;
44039
+ FolderID;
44040
+ OldValues___;
44041
+ };
44042
+ __decorate([
44043
+ Field(),
44044
+ __metadata("design:type", String)
44045
+ ], UpdateResourceLinkInput.prototype, "ID", void 0);
44046
+ __decorate([
44047
+ Field(),
44048
+ __metadata("design:type", String)
44049
+ ], UpdateResourceLinkInput.prototype, "UserID", void 0);
44050
+ __decorate([
44051
+ Field(),
44052
+ __metadata("design:type", String)
44053
+ ], UpdateResourceLinkInput.prototype, "ResourceTypeID", void 0);
44054
+ __decorate([
44055
+ Field(),
44056
+ __metadata("design:type", String)
44057
+ ], UpdateResourceLinkInput.prototype, "ResourceRecordID", void 0);
44058
+ __decorate([
44059
+ Field({ nullable: true }),
44060
+ __metadata("design:type", String)
44061
+ ], UpdateResourceLinkInput.prototype, "FolderID", void 0);
44062
+ __decorate([
44063
+ Field(() => [KeyValuePairInput], { nullable: true }),
44064
+ __metadata("design:type", Array)
44065
+ ], UpdateResourceLinkInput.prototype, "OldValues___", void 0);
44066
+ UpdateResourceLinkInput = __decorate([
44067
+ InputType()
44068
+ ], UpdateResourceLinkInput);
44069
+ export { UpdateResourceLinkInput };
44070
+ let RunResourceLinkViewResult = class RunResourceLinkViewResult {
44071
+ Results;
44072
+ UserViewRunID;
44073
+ RowCount;
44074
+ TotalRowCount;
44075
+ ExecutionTime;
44076
+ ErrorMessage;
44077
+ Success;
44078
+ };
44079
+ __decorate([
44080
+ Field(() => [ResourceLink_]),
44081
+ __metadata("design:type", Array)
44082
+ ], RunResourceLinkViewResult.prototype, "Results", void 0);
44083
+ __decorate([
44084
+ Field(() => String, { nullable: true }),
44085
+ __metadata("design:type", String)
44086
+ ], RunResourceLinkViewResult.prototype, "UserViewRunID", void 0);
44087
+ __decorate([
44088
+ Field(() => Int, { nullable: true }),
44089
+ __metadata("design:type", Number)
44090
+ ], RunResourceLinkViewResult.prototype, "RowCount", void 0);
44091
+ __decorate([
44092
+ Field(() => Int, { nullable: true }),
44093
+ __metadata("design:type", Number)
44094
+ ], RunResourceLinkViewResult.prototype, "TotalRowCount", void 0);
44095
+ __decorate([
44096
+ Field(() => Int, { nullable: true }),
44097
+ __metadata("design:type", Number)
44098
+ ], RunResourceLinkViewResult.prototype, "ExecutionTime", void 0);
44099
+ __decorate([
44100
+ Field({ nullable: true }),
44101
+ __metadata("design:type", String)
44102
+ ], RunResourceLinkViewResult.prototype, "ErrorMessage", void 0);
44103
+ __decorate([
44104
+ Field(() => Boolean, { nullable: false }),
44105
+ __metadata("design:type", Boolean)
44106
+ ], RunResourceLinkViewResult.prototype, "Success", void 0);
44107
+ RunResourceLinkViewResult = __decorate([
44108
+ ObjectType()
44109
+ ], RunResourceLinkViewResult);
44110
+ export { RunResourceLinkViewResult };
44111
+ let ResourceLinkResolver = class ResourceLinkResolver extends ResolverBase {
44112
+ async RunResourceLinkViewByID(input, { dataSource, userPayload }, pubSub) {
44113
+ return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
44114
+ }
44115
+ async RunResourceLinkViewByName(input, { dataSource, userPayload }, pubSub) {
44116
+ return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
44117
+ }
44118
+ async RunResourceLinkDynamicView(input, { dataSource, userPayload }, pubSub) {
44119
+ input.EntityName = 'Resource Links';
44120
+ return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
44121
+ }
44122
+ async ResourceLink(ID, { dataSource, userPayload }, pubSub) {
44123
+ this.CheckUserReadPermissions('Resource Links', userPayload);
44124
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
44125
+ const result = this.MapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
44126
+ return result;
44127
+ }
44128
+ async CreateResourceLink(input, { dataSource, userPayload }, pubSub) {
44129
+ return this.CreateRecord('Resource Links', input, dataSource, userPayload, pubSub);
44130
+ }
44131
+ async UpdateResourceLink(input, { dataSource, userPayload }, pubSub) {
44132
+ return this.UpdateRecord('Resource Links', input, dataSource, userPayload, pubSub);
44133
+ }
44134
+ async DeleteResourceLink(ID, options, { dataSource, userPayload }, pubSub) {
44135
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
44136
+ return this.DeleteRecord('Resource Links', key, options, dataSource, userPayload, pubSub);
44137
+ }
44138
+ };
44139
+ __decorate([
44140
+ Query(() => RunResourceLinkViewResult),
44141
+ __param(0, Arg('input', () => RunViewByIDInput)),
44142
+ __param(1, Ctx()),
44143
+ __param(2, PubSub()),
44144
+ __metadata("design:type", Function),
44145
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
44146
+ __metadata("design:returntype", Promise)
44147
+ ], ResourceLinkResolver.prototype, "RunResourceLinkViewByID", null);
44148
+ __decorate([
44149
+ Query(() => RunResourceLinkViewResult),
44150
+ __param(0, Arg('input', () => RunViewByNameInput)),
44151
+ __param(1, Ctx()),
44152
+ __param(2, PubSub()),
44153
+ __metadata("design:type", Function),
44154
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
44155
+ __metadata("design:returntype", Promise)
44156
+ ], ResourceLinkResolver.prototype, "RunResourceLinkViewByName", null);
44157
+ __decorate([
44158
+ Query(() => RunResourceLinkViewResult),
44159
+ __param(0, Arg('input', () => RunDynamicViewInput)),
44160
+ __param(1, Ctx()),
44161
+ __param(2, PubSub()),
44162
+ __metadata("design:type", Function),
44163
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
44164
+ __metadata("design:returntype", Promise)
44165
+ ], ResourceLinkResolver.prototype, "RunResourceLinkDynamicView", null);
44166
+ __decorate([
44167
+ Query(() => ResourceLink_, { nullable: true }),
44168
+ __param(0, Arg('ID', () => String)),
44169
+ __param(1, Ctx()),
44170
+ __param(2, PubSub()),
44171
+ __metadata("design:type", Function),
44172
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
44173
+ __metadata("design:returntype", Promise)
44174
+ ], ResourceLinkResolver.prototype, "ResourceLink", null);
44175
+ __decorate([
44176
+ Mutation(() => ResourceLink_),
44177
+ __param(0, Arg('input', () => CreateResourceLinkInput)),
44178
+ __param(1, Ctx()),
44179
+ __param(2, PubSub()),
44180
+ __metadata("design:type", Function),
44181
+ __metadata("design:paramtypes", [CreateResourceLinkInput, Object, PubSubEngine]),
44182
+ __metadata("design:returntype", Promise)
44183
+ ], ResourceLinkResolver.prototype, "CreateResourceLink", null);
44184
+ __decorate([
44185
+ Mutation(() => ResourceLink_),
44186
+ __param(0, Arg('input', () => UpdateResourceLinkInput)),
44187
+ __param(1, Ctx()),
44188
+ __param(2, PubSub()),
44189
+ __metadata("design:type", Function),
44190
+ __metadata("design:paramtypes", [UpdateResourceLinkInput, Object, PubSubEngine]),
44191
+ __metadata("design:returntype", Promise)
44192
+ ], ResourceLinkResolver.prototype, "UpdateResourceLink", null);
44193
+ __decorate([
44194
+ Mutation(() => ResourceLink_),
44195
+ __param(0, Arg('ID', () => String)),
44196
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
44197
+ __param(2, Ctx()),
44198
+ __param(3, PubSub()),
44199
+ __metadata("design:type", Function),
44200
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
44201
+ __metadata("design:returntype", Promise)
44202
+ ], ResourceLinkResolver.prototype, "DeleteResourceLink", null);
44203
+ ResourceLinkResolver = __decorate([
44204
+ Resolver(ResourceLink_)
44205
+ ], ResourceLinkResolver);
44206
+ export { ResourceLinkResolver };
44207
+ let flyway_schema_history_ = class flyway_schema_history_ {
44208
+ installed_rank;
44209
+ version;
44210
+ description;
44211
+ type;
44212
+ script;
44213
+ checksum;
44214
+ installed_by;
44215
+ installed_on;
44216
+ execution_time;
44217
+ success;
44218
+ _mj__CreatedAt;
44219
+ _mj__UpdatedAt;
44220
+ };
44221
+ __decorate([
44222
+ Field(() => Int),
44223
+ __metadata("design:type", Number)
44224
+ ], flyway_schema_history_.prototype, "installed_rank", void 0);
44225
+ __decorate([
44226
+ Field({ nullable: true }),
44227
+ MaxLength(100),
44228
+ __metadata("design:type", String)
44229
+ ], flyway_schema_history_.prototype, "version", void 0);
44230
+ __decorate([
44231
+ Field({ nullable: true }),
44232
+ MaxLength(400),
44233
+ __metadata("design:type", String)
44234
+ ], flyway_schema_history_.prototype, "description", void 0);
42643
44235
  __decorate([
42644
- Field({ description: 'Foreign key to the resource type (view, dashboard, etc.)' }),
42645
- MaxLength(16),
44236
+ Field(),
44237
+ MaxLength(40),
42646
44238
  __metadata("design:type", String)
42647
- ], ResourceLink_.prototype, "ResourceTypeID", void 0);
44239
+ ], flyway_schema_history_.prototype, "type", void 0);
42648
44240
  __decorate([
42649
- Field({ description: 'ID of the specific resource being linked' }),
42650
- MaxLength(510),
44241
+ Field(),
44242
+ MaxLength(2000),
42651
44243
  __metadata("design:type", String)
42652
- ], ResourceLink_.prototype, "ResourceRecordID", void 0);
44244
+ ], flyway_schema_history_.prototype, "script", void 0);
42653
44245
  __decorate([
42654
- Field({ nullable: true, description: 'Optional folder where the user organizes the linked resource' }),
42655
- MaxLength(510),
44246
+ Field(() => Int, { nullable: true }),
44247
+ __metadata("design:type", Number)
44248
+ ], flyway_schema_history_.prototype, "checksum", void 0);
44249
+ __decorate([
44250
+ Field(),
44251
+ MaxLength(200),
42656
44252
  __metadata("design:type", String)
42657
- ], ResourceLink_.prototype, "FolderID", void 0);
44253
+ ], flyway_schema_history_.prototype, "installed_by", void 0);
42658
44254
  __decorate([
42659
44255
  Field(),
42660
- MaxLength(10),
44256
+ MaxLength(8),
42661
44257
  __metadata("design:type", Date)
42662
- ], ResourceLink_.prototype, "_mj__CreatedAt", void 0);
44258
+ ], flyway_schema_history_.prototype, "installed_on", void 0);
44259
+ __decorate([
44260
+ Field(() => Int),
44261
+ __metadata("design:type", Number)
44262
+ ], flyway_schema_history_.prototype, "execution_time", void 0);
44263
+ __decorate([
44264
+ Field(() => Boolean),
44265
+ __metadata("design:type", Boolean)
44266
+ ], flyway_schema_history_.prototype, "success", void 0);
42663
44267
  __decorate([
42664
44268
  Field(),
42665
44269
  MaxLength(10),
42666
44270
  __metadata("design:type", Date)
42667
- ], ResourceLink_.prototype, "_mj__UpdatedAt", void 0);
44271
+ ], flyway_schema_history_.prototype, "_mj__CreatedAt", void 0);
42668
44272
  __decorate([
42669
44273
  Field(),
42670
- MaxLength(200),
44274
+ MaxLength(10),
44275
+ __metadata("design:type", Date)
44276
+ ], flyway_schema_history_.prototype, "_mj__UpdatedAt", void 0);
44277
+ flyway_schema_history_ = __decorate([
44278
+ ObjectType()
44279
+ ], flyway_schema_history_);
44280
+ export { flyway_schema_history_ };
44281
+ let Createflyway_schema_historyInput = class Createflyway_schema_historyInput {
44282
+ installed_rank;
44283
+ version;
44284
+ description;
44285
+ type;
44286
+ script;
44287
+ checksum;
44288
+ installed_by;
44289
+ installed_on;
44290
+ execution_time;
44291
+ success;
44292
+ };
44293
+ __decorate([
44294
+ Field(() => Int),
44295
+ __metadata("design:type", Number)
44296
+ ], Createflyway_schema_historyInput.prototype, "installed_rank", void 0);
44297
+ __decorate([
44298
+ Field({ nullable: true }),
42671
44299
  __metadata("design:type", String)
42672
- ], ResourceLink_.prototype, "User", void 0);
44300
+ ], Createflyway_schema_historyInput.prototype, "version", void 0);
42673
44301
  __decorate([
42674
- Field(),
42675
- MaxLength(510),
44302
+ Field({ nullable: true }),
42676
44303
  __metadata("design:type", String)
42677
- ], ResourceLink_.prototype, "ResourceType", void 0);
42678
- ResourceLink_ = __decorate([
42679
- ObjectType({ description: 'Table to track user links to shared resources such as views, dashboards, etc.' })
42680
- ], ResourceLink_);
42681
- export { ResourceLink_ };
42682
- let CreateResourceLinkInput = class CreateResourceLinkInput {
42683
- UserID;
42684
- ResourceTypeID;
42685
- ResourceRecordID;
42686
- FolderID;
42687
- };
44304
+ ], Createflyway_schema_historyInput.prototype, "description", void 0);
42688
44305
  __decorate([
42689
44306
  Field(),
42690
44307
  __metadata("design:type", String)
42691
- ], CreateResourceLinkInput.prototype, "UserID", void 0);
44308
+ ], Createflyway_schema_historyInput.prototype, "type", void 0);
42692
44309
  __decorate([
42693
44310
  Field(),
42694
44311
  __metadata("design:type", String)
42695
- ], CreateResourceLinkInput.prototype, "ResourceTypeID", void 0);
44312
+ ], Createflyway_schema_historyInput.prototype, "script", void 0);
44313
+ __decorate([
44314
+ Field(() => Int, { nullable: true }),
44315
+ __metadata("design:type", Number)
44316
+ ], Createflyway_schema_historyInput.prototype, "checksum", void 0);
42696
44317
  __decorate([
42697
44318
  Field(),
42698
44319
  __metadata("design:type", String)
42699
- ], CreateResourceLinkInput.prototype, "ResourceRecordID", void 0);
44320
+ ], Createflyway_schema_historyInput.prototype, "installed_by", void 0);
42700
44321
  __decorate([
42701
- Field({ nullable: true }),
42702
- __metadata("design:type", String)
42703
- ], CreateResourceLinkInput.prototype, "FolderID", void 0);
42704
- CreateResourceLinkInput = __decorate([
44322
+ Field(),
44323
+ __metadata("design:type", Date)
44324
+ ], Createflyway_schema_historyInput.prototype, "installed_on", void 0);
44325
+ __decorate([
44326
+ Field(() => Int),
44327
+ __metadata("design:type", Number)
44328
+ ], Createflyway_schema_historyInput.prototype, "execution_time", void 0);
44329
+ __decorate([
44330
+ Field(() => Boolean),
44331
+ __metadata("design:type", Boolean)
44332
+ ], Createflyway_schema_historyInput.prototype, "success", void 0);
44333
+ Createflyway_schema_historyInput = __decorate([
42705
44334
  InputType()
42706
- ], CreateResourceLinkInput);
42707
- export { CreateResourceLinkInput };
42708
- let UpdateResourceLinkInput = class UpdateResourceLinkInput {
42709
- ID;
42710
- UserID;
42711
- ResourceTypeID;
42712
- ResourceRecordID;
42713
- FolderID;
44335
+ ], Createflyway_schema_historyInput);
44336
+ export { Createflyway_schema_historyInput };
44337
+ let Updateflyway_schema_historyInput = class Updateflyway_schema_historyInput {
44338
+ installed_rank;
44339
+ version;
44340
+ description;
44341
+ type;
44342
+ script;
44343
+ checksum;
44344
+ installed_by;
44345
+ installed_on;
44346
+ execution_time;
44347
+ success;
42714
44348
  OldValues___;
42715
44349
  };
42716
44350
  __decorate([
42717
- Field(),
44351
+ Field(() => Int),
44352
+ __metadata("design:type", Number)
44353
+ ], Updateflyway_schema_historyInput.prototype, "installed_rank", void 0);
44354
+ __decorate([
44355
+ Field({ nullable: true }),
42718
44356
  __metadata("design:type", String)
42719
- ], UpdateResourceLinkInput.prototype, "ID", void 0);
44357
+ ], Updateflyway_schema_historyInput.prototype, "version", void 0);
42720
44358
  __decorate([
42721
- Field(),
44359
+ Field({ nullable: true }),
42722
44360
  __metadata("design:type", String)
42723
- ], UpdateResourceLinkInput.prototype, "UserID", void 0);
44361
+ ], Updateflyway_schema_historyInput.prototype, "description", void 0);
42724
44362
  __decorate([
42725
44363
  Field(),
42726
44364
  __metadata("design:type", String)
42727
- ], UpdateResourceLinkInput.prototype, "ResourceTypeID", void 0);
44365
+ ], Updateflyway_schema_historyInput.prototype, "type", void 0);
42728
44366
  __decorate([
42729
44367
  Field(),
42730
44368
  __metadata("design:type", String)
42731
- ], UpdateResourceLinkInput.prototype, "ResourceRecordID", void 0);
44369
+ ], Updateflyway_schema_historyInput.prototype, "script", void 0);
42732
44370
  __decorate([
42733
- Field({ nullable: true }),
44371
+ Field(() => Int, { nullable: true }),
44372
+ __metadata("design:type", Number)
44373
+ ], Updateflyway_schema_historyInput.prototype, "checksum", void 0);
44374
+ __decorate([
44375
+ Field(),
42734
44376
  __metadata("design:type", String)
42735
- ], UpdateResourceLinkInput.prototype, "FolderID", void 0);
44377
+ ], Updateflyway_schema_historyInput.prototype, "installed_by", void 0);
44378
+ __decorate([
44379
+ Field(),
44380
+ __metadata("design:type", Date)
44381
+ ], Updateflyway_schema_historyInput.prototype, "installed_on", void 0);
44382
+ __decorate([
44383
+ Field(() => Int),
44384
+ __metadata("design:type", Number)
44385
+ ], Updateflyway_schema_historyInput.prototype, "execution_time", void 0);
44386
+ __decorate([
44387
+ Field(() => Boolean),
44388
+ __metadata("design:type", Boolean)
44389
+ ], Updateflyway_schema_historyInput.prototype, "success", void 0);
42736
44390
  __decorate([
42737
44391
  Field(() => [KeyValuePairInput], { nullable: true }),
42738
44392
  __metadata("design:type", Array)
42739
- ], UpdateResourceLinkInput.prototype, "OldValues___", void 0);
42740
- UpdateResourceLinkInput = __decorate([
44393
+ ], Updateflyway_schema_historyInput.prototype, "OldValues___", void 0);
44394
+ Updateflyway_schema_historyInput = __decorate([
42741
44395
  InputType()
42742
- ], UpdateResourceLinkInput);
42743
- export { UpdateResourceLinkInput };
42744
- let RunResourceLinkViewResult = class RunResourceLinkViewResult {
44396
+ ], Updateflyway_schema_historyInput);
44397
+ export { Updateflyway_schema_historyInput };
44398
+ let Runflyway_schema_historyViewResult = class Runflyway_schema_historyViewResult {
42745
44399
  Results;
42746
44400
  UserViewRunID;
42747
44401
  RowCount;
@@ -42751,133 +44405,133 @@ let RunResourceLinkViewResult = class RunResourceLinkViewResult {
42751
44405
  Success;
42752
44406
  };
42753
44407
  __decorate([
42754
- Field(() => [ResourceLink_]),
44408
+ Field(() => [flyway_schema_history_]),
42755
44409
  __metadata("design:type", Array)
42756
- ], RunResourceLinkViewResult.prototype, "Results", void 0);
44410
+ ], Runflyway_schema_historyViewResult.prototype, "Results", void 0);
42757
44411
  __decorate([
42758
44412
  Field(() => String, { nullable: true }),
42759
44413
  __metadata("design:type", String)
42760
- ], RunResourceLinkViewResult.prototype, "UserViewRunID", void 0);
44414
+ ], Runflyway_schema_historyViewResult.prototype, "UserViewRunID", void 0);
42761
44415
  __decorate([
42762
44416
  Field(() => Int, { nullable: true }),
42763
44417
  __metadata("design:type", Number)
42764
- ], RunResourceLinkViewResult.prototype, "RowCount", void 0);
44418
+ ], Runflyway_schema_historyViewResult.prototype, "RowCount", void 0);
42765
44419
  __decorate([
42766
44420
  Field(() => Int, { nullable: true }),
42767
44421
  __metadata("design:type", Number)
42768
- ], RunResourceLinkViewResult.prototype, "TotalRowCount", void 0);
44422
+ ], Runflyway_schema_historyViewResult.prototype, "TotalRowCount", void 0);
42769
44423
  __decorate([
42770
44424
  Field(() => Int, { nullable: true }),
42771
44425
  __metadata("design:type", Number)
42772
- ], RunResourceLinkViewResult.prototype, "ExecutionTime", void 0);
44426
+ ], Runflyway_schema_historyViewResult.prototype, "ExecutionTime", void 0);
42773
44427
  __decorate([
42774
44428
  Field({ nullable: true }),
42775
44429
  __metadata("design:type", String)
42776
- ], RunResourceLinkViewResult.prototype, "ErrorMessage", void 0);
44430
+ ], Runflyway_schema_historyViewResult.prototype, "ErrorMessage", void 0);
42777
44431
  __decorate([
42778
44432
  Field(() => Boolean, { nullable: false }),
42779
44433
  __metadata("design:type", Boolean)
42780
- ], RunResourceLinkViewResult.prototype, "Success", void 0);
42781
- RunResourceLinkViewResult = __decorate([
44434
+ ], Runflyway_schema_historyViewResult.prototype, "Success", void 0);
44435
+ Runflyway_schema_historyViewResult = __decorate([
42782
44436
  ObjectType()
42783
- ], RunResourceLinkViewResult);
42784
- export { RunResourceLinkViewResult };
42785
- let ResourceLinkResolver = class ResourceLinkResolver extends ResolverBase {
42786
- async RunResourceLinkViewByID(input, { dataSource, userPayload }, pubSub) {
44437
+ ], Runflyway_schema_historyViewResult);
44438
+ export { Runflyway_schema_historyViewResult };
44439
+ let flyway_schema_historyResolver = class flyway_schema_historyResolver extends ResolverBase {
44440
+ async Runflyway_schema_historyViewByID(input, { dataSource, userPayload }, pubSub) {
42787
44441
  return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
42788
44442
  }
42789
- async RunResourceLinkViewByName(input, { dataSource, userPayload }, pubSub) {
44443
+ async Runflyway_schema_historyViewByName(input, { dataSource, userPayload }, pubSub) {
42790
44444
  return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
42791
44445
  }
42792
- async RunResourceLinkDynamicView(input, { dataSource, userPayload }, pubSub) {
42793
- input.EntityName = 'Resource Links';
44446
+ async Runflyway_schema_historyDynamicView(input, { dataSource, userPayload }, pubSub) {
44447
+ input.EntityName = 'flyway _schema _histories';
42794
44448
  return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
42795
44449
  }
42796
- async ResourceLink(ID, { dataSource, userPayload }, pubSub) {
42797
- this.CheckUserReadPermissions('Resource Links', userPayload);
42798
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Resource Links', userPayload, EntityPermissionType.Read, 'AND');
42799
- const result = this.MapFieldNamesToCodeNames('Resource Links', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
44450
+ async flyway_schema_history(installed_rank, { dataSource, userPayload }, pubSub) {
44451
+ this.CheckUserReadPermissions('flyway _schema _histories', userPayload);
44452
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwflyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
44453
+ const result = this.MapFieldNamesToCodeNames('flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
42800
44454
  return result;
42801
44455
  }
42802
- async CreateResourceLink(input, { dataSource, userPayload }, pubSub) {
42803
- return this.CreateRecord('Resource Links', input, dataSource, userPayload, pubSub);
44456
+ async Createflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
44457
+ return this.CreateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
42804
44458
  }
42805
- async UpdateResourceLink(input, { dataSource, userPayload }, pubSub) {
42806
- return this.UpdateRecord('Resource Links', input, dataSource, userPayload, pubSub);
44459
+ async Updateflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
44460
+ return this.UpdateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
42807
44461
  }
42808
- async DeleteResourceLink(ID, options, { dataSource, userPayload }, pubSub) {
42809
- const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
42810
- return this.DeleteRecord('Resource Links', key, options, dataSource, userPayload, pubSub);
44462
+ async Deleteflyway_schema_history(installed_rank, options, { dataSource, userPayload }, pubSub) {
44463
+ const key = new CompositeKey([{ FieldName: 'installed_rank', Value: installed_rank }]);
44464
+ return this.DeleteRecord('flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
42811
44465
  }
42812
44466
  };
42813
44467
  __decorate([
42814
- Query(() => RunResourceLinkViewResult),
44468
+ Query(() => Runflyway_schema_historyViewResult),
42815
44469
  __param(0, Arg('input', () => RunViewByIDInput)),
42816
44470
  __param(1, Ctx()),
42817
44471
  __param(2, PubSub()),
42818
44472
  __metadata("design:type", Function),
42819
44473
  __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
42820
44474
  __metadata("design:returntype", Promise)
42821
- ], ResourceLinkResolver.prototype, "RunResourceLinkViewByID", null);
44475
+ ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByID", null);
42822
44476
  __decorate([
42823
- Query(() => RunResourceLinkViewResult),
44477
+ Query(() => Runflyway_schema_historyViewResult),
42824
44478
  __param(0, Arg('input', () => RunViewByNameInput)),
42825
44479
  __param(1, Ctx()),
42826
44480
  __param(2, PubSub()),
42827
44481
  __metadata("design:type", Function),
42828
44482
  __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
42829
44483
  __metadata("design:returntype", Promise)
42830
- ], ResourceLinkResolver.prototype, "RunResourceLinkViewByName", null);
44484
+ ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByName", null);
42831
44485
  __decorate([
42832
- Query(() => RunResourceLinkViewResult),
44486
+ Query(() => Runflyway_schema_historyViewResult),
42833
44487
  __param(0, Arg('input', () => RunDynamicViewInput)),
42834
44488
  __param(1, Ctx()),
42835
44489
  __param(2, PubSub()),
42836
44490
  __metadata("design:type", Function),
42837
44491
  __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
42838
44492
  __metadata("design:returntype", Promise)
42839
- ], ResourceLinkResolver.prototype, "RunResourceLinkDynamicView", null);
44493
+ ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyDynamicView", null);
42840
44494
  __decorate([
42841
- Query(() => ResourceLink_, { nullable: true }),
42842
- __param(0, Arg('ID', () => String)),
44495
+ Query(() => flyway_schema_history_, { nullable: true }),
44496
+ __param(0, Arg('installed_rank', () => Int)),
42843
44497
  __param(1, Ctx()),
42844
44498
  __param(2, PubSub()),
42845
44499
  __metadata("design:type", Function),
42846
- __metadata("design:paramtypes", [String, Object, PubSubEngine]),
44500
+ __metadata("design:paramtypes", [Number, Object, PubSubEngine]),
42847
44501
  __metadata("design:returntype", Promise)
42848
- ], ResourceLinkResolver.prototype, "ResourceLink", null);
44502
+ ], flyway_schema_historyResolver.prototype, "flyway_schema_history", null);
42849
44503
  __decorate([
42850
- Mutation(() => ResourceLink_),
42851
- __param(0, Arg('input', () => CreateResourceLinkInput)),
44504
+ Mutation(() => flyway_schema_history_),
44505
+ __param(0, Arg('input', () => Createflyway_schema_historyInput)),
42852
44506
  __param(1, Ctx()),
42853
44507
  __param(2, PubSub()),
42854
44508
  __metadata("design:type", Function),
42855
- __metadata("design:paramtypes", [CreateResourceLinkInput, Object, PubSubEngine]),
44509
+ __metadata("design:paramtypes", [Createflyway_schema_historyInput, Object, PubSubEngine]),
42856
44510
  __metadata("design:returntype", Promise)
42857
- ], ResourceLinkResolver.prototype, "CreateResourceLink", null);
44511
+ ], flyway_schema_historyResolver.prototype, "Createflyway_schema_history", null);
42858
44512
  __decorate([
42859
- Mutation(() => ResourceLink_),
42860
- __param(0, Arg('input', () => UpdateResourceLinkInput)),
44513
+ Mutation(() => flyway_schema_history_),
44514
+ __param(0, Arg('input', () => Updateflyway_schema_historyInput)),
42861
44515
  __param(1, Ctx()),
42862
44516
  __param(2, PubSub()),
42863
44517
  __metadata("design:type", Function),
42864
- __metadata("design:paramtypes", [UpdateResourceLinkInput, Object, PubSubEngine]),
44518
+ __metadata("design:paramtypes", [Updateflyway_schema_historyInput, Object, PubSubEngine]),
42865
44519
  __metadata("design:returntype", Promise)
42866
- ], ResourceLinkResolver.prototype, "UpdateResourceLink", null);
44520
+ ], flyway_schema_historyResolver.prototype, "Updateflyway_schema_history", null);
42867
44521
  __decorate([
42868
- Mutation(() => ResourceLink_),
42869
- __param(0, Arg('ID', () => String)),
44522
+ Mutation(() => flyway_schema_history_),
44523
+ __param(0, Arg('installed_rank', () => Int)),
42870
44524
  __param(1, Arg('options___', () => DeleteOptionsInput)),
42871
44525
  __param(2, Ctx()),
42872
44526
  __param(3, PubSub()),
42873
44527
  __metadata("design:type", Function),
42874
- __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
44528
+ __metadata("design:paramtypes", [Number, DeleteOptionsInput, Object, PubSubEngine]),
42875
44529
  __metadata("design:returntype", Promise)
42876
- ], ResourceLinkResolver.prototype, "DeleteResourceLink", null);
42877
- ResourceLinkResolver = __decorate([
42878
- Resolver(ResourceLink_)
42879
- ], ResourceLinkResolver);
42880
- export { ResourceLinkResolver };
44530
+ ], flyway_schema_historyResolver.prototype, "Deleteflyway_schema_history", null);
44531
+ flyway_schema_historyResolver = __decorate([
44532
+ Resolver(flyway_schema_history_)
44533
+ ], flyway_schema_historyResolver);
44534
+ export { flyway_schema_historyResolver };
42881
44535
  let QueryEntity_ = class QueryEntity_ {
42882
44536
  ID;
42883
44537
  QueryID;
@@ -46117,198 +47771,138 @@ ContentItemTagResolver = __decorate([
46117
47771
  Resolver(ContentItemTag_)
46118
47772
  ], ContentItemTagResolver);
46119
47773
  export { ContentItemTagResolver };
46120
- let flyway_schema_history_ = class flyway_schema_history_ {
46121
- installed_rank;
46122
- version;
46123
- description;
46124
- type;
46125
- script;
46126
- checksum;
46127
- installed_by;
46128
- installed_on;
46129
- execution_time;
46130
- success;
47774
+ let AIAgentLearningCycle_ = class AIAgentLearningCycle_ {
47775
+ ID;
47776
+ AgentID;
47777
+ StartedAt;
47778
+ EndedAt;
47779
+ Status;
47780
+ AgentSummary;
46131
47781
  _mj__CreatedAt;
46132
47782
  _mj__UpdatedAt;
47783
+ Agent;
46133
47784
  };
46134
47785
  __decorate([
46135
- Field(() => Int),
46136
- __metadata("design:type", Number)
46137
- ], flyway_schema_history_.prototype, "installed_rank", void 0);
46138
- __decorate([
46139
- Field({ nullable: true }),
46140
- MaxLength(100),
46141
- __metadata("design:type", String)
46142
- ], flyway_schema_history_.prototype, "version", void 0);
46143
- __decorate([
46144
- Field({ nullable: true }),
46145
- MaxLength(400),
46146
- __metadata("design:type", String)
46147
- ], flyway_schema_history_.prototype, "description", void 0);
46148
- __decorate([
46149
- Field(),
46150
- MaxLength(40),
47786
+ Field({ description: 'Unique identifier for the learning cycle.' }),
47787
+ MaxLength(16),
46151
47788
  __metadata("design:type", String)
46152
- ], flyway_schema_history_.prototype, "type", void 0);
47789
+ ], AIAgentLearningCycle_.prototype, "ID", void 0);
46153
47790
  __decorate([
46154
- Field(),
46155
- MaxLength(2000),
47791
+ Field({ description: 'Identifier for the AI Agent associated with this learning cycle.' }),
47792
+ MaxLength(16),
46156
47793
  __metadata("design:type", String)
46157
- ], flyway_schema_history_.prototype, "script", void 0);
46158
- __decorate([
46159
- Field(() => Int, { nullable: true }),
46160
- __metadata("design:type", Number)
46161
- ], flyway_schema_history_.prototype, "checksum", void 0);
47794
+ ], AIAgentLearningCycle_.prototype, "AgentID", void 0);
46162
47795
  __decorate([
46163
- Field(),
46164
- MaxLength(200),
46165
- __metadata("design:type", String)
46166
- ], flyway_schema_history_.prototype, "installed_by", void 0);
47796
+ Field({ description: 'Timestamp indicating when the learning cycle started.' }),
47797
+ MaxLength(10),
47798
+ __metadata("design:type", Date)
47799
+ ], AIAgentLearningCycle_.prototype, "StartedAt", void 0);
46167
47800
  __decorate([
46168
- Field(),
46169
- MaxLength(8),
47801
+ Field({ nullable: true, description: 'Timestamp indicating when the learning cycle ended.' }),
47802
+ MaxLength(10),
46170
47803
  __metadata("design:type", Date)
46171
- ], flyway_schema_history_.prototype, "installed_on", void 0);
47804
+ ], AIAgentLearningCycle_.prototype, "EndedAt", void 0);
46172
47805
  __decorate([
46173
- Field(() => Int),
46174
- __metadata("design:type", Number)
46175
- ], flyway_schema_history_.prototype, "execution_time", void 0);
47806
+ Field({ description: 'Status of the learning cycle (In-Progress, Complete, or Failed).' }),
47807
+ MaxLength(40),
47808
+ __metadata("design:type", String)
47809
+ ], AIAgentLearningCycle_.prototype, "Status", void 0);
46176
47810
  __decorate([
46177
- Field(() => Boolean),
46178
- __metadata("design:type", Boolean)
46179
- ], flyway_schema_history_.prototype, "success", void 0);
47811
+ Field({ nullable: true, description: 'Text summary provided by the agent about what it learned and any changes it requested for stored metadata.' }),
47812
+ __metadata("design:type", String)
47813
+ ], AIAgentLearningCycle_.prototype, "AgentSummary", void 0);
46180
47814
  __decorate([
46181
47815
  Field(),
46182
47816
  MaxLength(10),
46183
47817
  __metadata("design:type", Date)
46184
- ], flyway_schema_history_.prototype, "_mj__CreatedAt", void 0);
47818
+ ], AIAgentLearningCycle_.prototype, "_mj__CreatedAt", void 0);
46185
47819
  __decorate([
46186
47820
  Field(),
46187
47821
  MaxLength(10),
46188
47822
  __metadata("design:type", Date)
46189
- ], flyway_schema_history_.prototype, "_mj__UpdatedAt", void 0);
46190
- flyway_schema_history_ = __decorate([
46191
- ObjectType()
46192
- ], flyway_schema_history_);
46193
- export { flyway_schema_history_ };
46194
- let Createflyway_schema_historyInput = class Createflyway_schema_historyInput {
46195
- installed_rank;
46196
- version;
46197
- description;
46198
- type;
46199
- script;
46200
- checksum;
46201
- installed_by;
46202
- installed_on;
46203
- execution_time;
46204
- success;
46205
- };
46206
- __decorate([
46207
- Field(() => Int),
46208
- __metadata("design:type", Number)
46209
- ], Createflyway_schema_historyInput.prototype, "installed_rank", void 0);
46210
- __decorate([
46211
- Field({ nullable: true }),
46212
- __metadata("design:type", String)
46213
- ], Createflyway_schema_historyInput.prototype, "version", void 0);
47823
+ ], AIAgentLearningCycle_.prototype, "_mj__UpdatedAt", void 0);
46214
47824
  __decorate([
46215
47825
  Field({ nullable: true }),
47826
+ MaxLength(510),
46216
47827
  __metadata("design:type", String)
46217
- ], Createflyway_schema_historyInput.prototype, "description", void 0);
47828
+ ], AIAgentLearningCycle_.prototype, "Agent", void 0);
47829
+ AIAgentLearningCycle_ = __decorate([
47830
+ ObjectType({ description: 'Tracks the learning cycles for AI Agents where the Agent does offline reasoning, reflection, learning, and updates metadata.' })
47831
+ ], AIAgentLearningCycle_);
47832
+ export { AIAgentLearningCycle_ };
47833
+ let CreateAIAgentLearningCycleInput = class CreateAIAgentLearningCycleInput {
47834
+ AgentID;
47835
+ StartedAt;
47836
+ EndedAt;
47837
+ Status;
47838
+ AgentSummary;
47839
+ };
46218
47840
  __decorate([
46219
47841
  Field(),
46220
47842
  __metadata("design:type", String)
46221
- ], Createflyway_schema_historyInput.prototype, "type", void 0);
47843
+ ], CreateAIAgentLearningCycleInput.prototype, "AgentID", void 0);
46222
47844
  __decorate([
46223
47845
  Field(),
46224
- __metadata("design:type", String)
46225
- ], Createflyway_schema_historyInput.prototype, "script", void 0);
47846
+ __metadata("design:type", Date)
47847
+ ], CreateAIAgentLearningCycleInput.prototype, "StartedAt", void 0);
46226
47848
  __decorate([
46227
- Field(() => Int, { nullable: true }),
46228
- __metadata("design:type", Number)
46229
- ], Createflyway_schema_historyInput.prototype, "checksum", void 0);
47849
+ Field({ nullable: true }),
47850
+ __metadata("design:type", Date)
47851
+ ], CreateAIAgentLearningCycleInput.prototype, "EndedAt", void 0);
46230
47852
  __decorate([
46231
47853
  Field(),
46232
47854
  __metadata("design:type", String)
46233
- ], Createflyway_schema_historyInput.prototype, "installed_by", void 0);
47855
+ ], CreateAIAgentLearningCycleInput.prototype, "Status", void 0);
46234
47856
  __decorate([
46235
- Field(),
46236
- __metadata("design:type", Date)
46237
- ], Createflyway_schema_historyInput.prototype, "installed_on", void 0);
46238
- __decorate([
46239
- Field(() => Int),
46240
- __metadata("design:type", Number)
46241
- ], Createflyway_schema_historyInput.prototype, "execution_time", void 0);
46242
- __decorate([
46243
- Field(() => Boolean),
46244
- __metadata("design:type", Boolean)
46245
- ], Createflyway_schema_historyInput.prototype, "success", void 0);
46246
- Createflyway_schema_historyInput = __decorate([
47857
+ Field({ nullable: true }),
47858
+ __metadata("design:type", String)
47859
+ ], CreateAIAgentLearningCycleInput.prototype, "AgentSummary", void 0);
47860
+ CreateAIAgentLearningCycleInput = __decorate([
46247
47861
  InputType()
46248
- ], Createflyway_schema_historyInput);
46249
- export { Createflyway_schema_historyInput };
46250
- let Updateflyway_schema_historyInput = class Updateflyway_schema_historyInput {
46251
- installed_rank;
46252
- version;
46253
- description;
46254
- type;
46255
- script;
46256
- checksum;
46257
- installed_by;
46258
- installed_on;
46259
- execution_time;
46260
- success;
47862
+ ], CreateAIAgentLearningCycleInput);
47863
+ export { CreateAIAgentLearningCycleInput };
47864
+ let UpdateAIAgentLearningCycleInput = class UpdateAIAgentLearningCycleInput {
47865
+ ID;
47866
+ AgentID;
47867
+ StartedAt;
47868
+ EndedAt;
47869
+ Status;
47870
+ AgentSummary;
46261
47871
  OldValues___;
46262
47872
  };
46263
- __decorate([
46264
- Field(() => Int),
46265
- __metadata("design:type", Number)
46266
- ], Updateflyway_schema_historyInput.prototype, "installed_rank", void 0);
46267
- __decorate([
46268
- Field({ nullable: true }),
46269
- __metadata("design:type", String)
46270
- ], Updateflyway_schema_historyInput.prototype, "version", void 0);
46271
- __decorate([
46272
- Field({ nullable: true }),
46273
- __metadata("design:type", String)
46274
- ], Updateflyway_schema_historyInput.prototype, "description", void 0);
46275
47873
  __decorate([
46276
47874
  Field(),
46277
47875
  __metadata("design:type", String)
46278
- ], Updateflyway_schema_historyInput.prototype, "type", void 0);
47876
+ ], UpdateAIAgentLearningCycleInput.prototype, "ID", void 0);
46279
47877
  __decorate([
46280
47878
  Field(),
46281
47879
  __metadata("design:type", String)
46282
- ], Updateflyway_schema_historyInput.prototype, "script", void 0);
46283
- __decorate([
46284
- Field(() => Int, { nullable: true }),
46285
- __metadata("design:type", Number)
46286
- ], Updateflyway_schema_historyInput.prototype, "checksum", void 0);
47880
+ ], UpdateAIAgentLearningCycleInput.prototype, "AgentID", void 0);
46287
47881
  __decorate([
46288
47882
  Field(),
46289
- __metadata("design:type", String)
46290
- ], Updateflyway_schema_historyInput.prototype, "installed_by", void 0);
47883
+ __metadata("design:type", Date)
47884
+ ], UpdateAIAgentLearningCycleInput.prototype, "StartedAt", void 0);
46291
47885
  __decorate([
46292
- Field(),
47886
+ Field({ nullable: true }),
46293
47887
  __metadata("design:type", Date)
46294
- ], Updateflyway_schema_historyInput.prototype, "installed_on", void 0);
47888
+ ], UpdateAIAgentLearningCycleInput.prototype, "EndedAt", void 0);
46295
47889
  __decorate([
46296
- Field(() => Int),
46297
- __metadata("design:type", Number)
46298
- ], Updateflyway_schema_historyInput.prototype, "execution_time", void 0);
47890
+ Field(),
47891
+ __metadata("design:type", String)
47892
+ ], UpdateAIAgentLearningCycleInput.prototype, "Status", void 0);
46299
47893
  __decorate([
46300
- Field(() => Boolean),
46301
- __metadata("design:type", Boolean)
46302
- ], Updateflyway_schema_historyInput.prototype, "success", void 0);
47894
+ Field({ nullable: true }),
47895
+ __metadata("design:type", String)
47896
+ ], UpdateAIAgentLearningCycleInput.prototype, "AgentSummary", void 0);
46303
47897
  __decorate([
46304
47898
  Field(() => [KeyValuePairInput], { nullable: true }),
46305
47899
  __metadata("design:type", Array)
46306
- ], Updateflyway_schema_historyInput.prototype, "OldValues___", void 0);
46307
- Updateflyway_schema_historyInput = __decorate([
47900
+ ], UpdateAIAgentLearningCycleInput.prototype, "OldValues___", void 0);
47901
+ UpdateAIAgentLearningCycleInput = __decorate([
46308
47902
  InputType()
46309
- ], Updateflyway_schema_historyInput);
46310
- export { Updateflyway_schema_historyInput };
46311
- let Runflyway_schema_historyViewResult = class Runflyway_schema_historyViewResult {
47903
+ ], UpdateAIAgentLearningCycleInput);
47904
+ export { UpdateAIAgentLearningCycleInput };
47905
+ let RunAIAgentLearningCycleViewResult = class RunAIAgentLearningCycleViewResult {
46312
47906
  Results;
46313
47907
  UserViewRunID;
46314
47908
  RowCount;
@@ -46318,131 +47912,131 @@ let Runflyway_schema_historyViewResult = class Runflyway_schema_historyViewResul
46318
47912
  Success;
46319
47913
  };
46320
47914
  __decorate([
46321
- Field(() => [flyway_schema_history_]),
47915
+ Field(() => [AIAgentLearningCycle_]),
46322
47916
  __metadata("design:type", Array)
46323
- ], Runflyway_schema_historyViewResult.prototype, "Results", void 0);
47917
+ ], RunAIAgentLearningCycleViewResult.prototype, "Results", void 0);
46324
47918
  __decorate([
46325
47919
  Field(() => String, { nullable: true }),
46326
47920
  __metadata("design:type", String)
46327
- ], Runflyway_schema_historyViewResult.prototype, "UserViewRunID", void 0);
47921
+ ], RunAIAgentLearningCycleViewResult.prototype, "UserViewRunID", void 0);
46328
47922
  __decorate([
46329
47923
  Field(() => Int, { nullable: true }),
46330
47924
  __metadata("design:type", Number)
46331
- ], Runflyway_schema_historyViewResult.prototype, "RowCount", void 0);
47925
+ ], RunAIAgentLearningCycleViewResult.prototype, "RowCount", void 0);
46332
47926
  __decorate([
46333
47927
  Field(() => Int, { nullable: true }),
46334
47928
  __metadata("design:type", Number)
46335
- ], Runflyway_schema_historyViewResult.prototype, "TotalRowCount", void 0);
47929
+ ], RunAIAgentLearningCycleViewResult.prototype, "TotalRowCount", void 0);
46336
47930
  __decorate([
46337
47931
  Field(() => Int, { nullable: true }),
46338
47932
  __metadata("design:type", Number)
46339
- ], Runflyway_schema_historyViewResult.prototype, "ExecutionTime", void 0);
47933
+ ], RunAIAgentLearningCycleViewResult.prototype, "ExecutionTime", void 0);
46340
47934
  __decorate([
46341
47935
  Field({ nullable: true }),
46342
47936
  __metadata("design:type", String)
46343
- ], Runflyway_schema_historyViewResult.prototype, "ErrorMessage", void 0);
47937
+ ], RunAIAgentLearningCycleViewResult.prototype, "ErrorMessage", void 0);
46344
47938
  __decorate([
46345
47939
  Field(() => Boolean, { nullable: false }),
46346
47940
  __metadata("design:type", Boolean)
46347
- ], Runflyway_schema_historyViewResult.prototype, "Success", void 0);
46348
- Runflyway_schema_historyViewResult = __decorate([
47941
+ ], RunAIAgentLearningCycleViewResult.prototype, "Success", void 0);
47942
+ RunAIAgentLearningCycleViewResult = __decorate([
46349
47943
  ObjectType()
46350
- ], Runflyway_schema_historyViewResult);
46351
- export { Runflyway_schema_historyViewResult };
46352
- let flyway_schema_historyResolver = class flyway_schema_historyResolver extends ResolverBase {
46353
- async Runflyway_schema_historyViewByID(input, { dataSource, userPayload }, pubSub) {
47944
+ ], RunAIAgentLearningCycleViewResult);
47945
+ export { RunAIAgentLearningCycleViewResult };
47946
+ let AIAgentLearningCycleResolver = class AIAgentLearningCycleResolver extends ResolverBase {
47947
+ async RunAIAgentLearningCycleViewByID(input, { dataSource, userPayload }, pubSub) {
46354
47948
  return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
46355
47949
  }
46356
- async Runflyway_schema_historyViewByName(input, { dataSource, userPayload }, pubSub) {
47950
+ async RunAIAgentLearningCycleViewByName(input, { dataSource, userPayload }, pubSub) {
46357
47951
  return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
46358
47952
  }
46359
- async Runflyway_schema_historyDynamicView(input, { dataSource, userPayload }, pubSub) {
46360
- input.EntityName = 'flyway _schema _histories';
47953
+ async RunAIAgentLearningCycleDynamicView(input, { dataSource, userPayload }, pubSub) {
47954
+ input.EntityName = 'AIAgent Learning Cycles';
46361
47955
  return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
46362
47956
  }
46363
- async flyway_schema_history(installed_rank, { dataSource, userPayload }, pubSub) {
46364
- this.CheckUserReadPermissions('flyway _schema _histories', userPayload);
46365
- const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwflyway_schema_histories] WHERE [installed_rank]=${installed_rank} ` + this.getRowLevelSecurityWhereClause('flyway _schema _histories', userPayload, EntityPermissionType.Read, 'AND');
46366
- const result = this.MapFieldNamesToCodeNames('flyway _schema _histories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
47957
+ async AIAgentLearningCycle(ID, { dataSource, userPayload }, pubSub) {
47958
+ this.CheckUserReadPermissions('AIAgent Learning Cycles', userPayload);
47959
+ const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentLearningCycles] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('AIAgent Learning Cycles', userPayload, EntityPermissionType.Read, 'AND');
47960
+ const result = this.MapFieldNamesToCodeNames('AIAgent Learning Cycles', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
46367
47961
  return result;
46368
47962
  }
46369
- async Createflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
46370
- return this.CreateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
47963
+ async CreateAIAgentLearningCycle(input, { dataSource, userPayload }, pubSub) {
47964
+ return this.CreateRecord('AIAgent Learning Cycles', input, dataSource, userPayload, pubSub);
46371
47965
  }
46372
- async Updateflyway_schema_history(input, { dataSource, userPayload }, pubSub) {
46373
- return this.UpdateRecord('flyway _schema _histories', input, dataSource, userPayload, pubSub);
47966
+ async UpdateAIAgentLearningCycle(input, { dataSource, userPayload }, pubSub) {
47967
+ return this.UpdateRecord('AIAgent Learning Cycles', input, dataSource, userPayload, pubSub);
46374
47968
  }
46375
- async Deleteflyway_schema_history(installed_rank, options, { dataSource, userPayload }, pubSub) {
46376
- const key = new CompositeKey([{ FieldName: 'installed_rank', Value: installed_rank }]);
46377
- return this.DeleteRecord('flyway _schema _histories', key, options, dataSource, userPayload, pubSub);
47969
+ async DeleteAIAgentLearningCycle(ID, options, { dataSource, userPayload }, pubSub) {
47970
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
47971
+ return this.DeleteRecord('AIAgent Learning Cycles', key, options, dataSource, userPayload, pubSub);
46378
47972
  }
46379
47973
  };
46380
47974
  __decorate([
46381
- Query(() => Runflyway_schema_historyViewResult),
47975
+ Query(() => RunAIAgentLearningCycleViewResult),
46382
47976
  __param(0, Arg('input', () => RunViewByIDInput)),
46383
47977
  __param(1, Ctx()),
46384
47978
  __param(2, PubSub()),
46385
47979
  __metadata("design:type", Function),
46386
47980
  __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
46387
47981
  __metadata("design:returntype", Promise)
46388
- ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByID", null);
47982
+ ], AIAgentLearningCycleResolver.prototype, "RunAIAgentLearningCycleViewByID", null);
46389
47983
  __decorate([
46390
- Query(() => Runflyway_schema_historyViewResult),
47984
+ Query(() => RunAIAgentLearningCycleViewResult),
46391
47985
  __param(0, Arg('input', () => RunViewByNameInput)),
46392
47986
  __param(1, Ctx()),
46393
47987
  __param(2, PubSub()),
46394
47988
  __metadata("design:type", Function),
46395
47989
  __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
46396
47990
  __metadata("design:returntype", Promise)
46397
- ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyViewByName", null);
47991
+ ], AIAgentLearningCycleResolver.prototype, "RunAIAgentLearningCycleViewByName", null);
46398
47992
  __decorate([
46399
- Query(() => Runflyway_schema_historyViewResult),
47993
+ Query(() => RunAIAgentLearningCycleViewResult),
46400
47994
  __param(0, Arg('input', () => RunDynamicViewInput)),
46401
47995
  __param(1, Ctx()),
46402
47996
  __param(2, PubSub()),
46403
47997
  __metadata("design:type", Function),
46404
47998
  __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
46405
47999
  __metadata("design:returntype", Promise)
46406
- ], flyway_schema_historyResolver.prototype, "Runflyway_schema_historyDynamicView", null);
48000
+ ], AIAgentLearningCycleResolver.prototype, "RunAIAgentLearningCycleDynamicView", null);
46407
48001
  __decorate([
46408
- Query(() => flyway_schema_history_, { nullable: true }),
46409
- __param(0, Arg('installed_rank', () => Int)),
48002
+ Query(() => AIAgentLearningCycle_, { nullable: true }),
48003
+ __param(0, Arg('ID', () => String)),
46410
48004
  __param(1, Ctx()),
46411
48005
  __param(2, PubSub()),
46412
48006
  __metadata("design:type", Function),
46413
- __metadata("design:paramtypes", [Number, Object, PubSubEngine]),
48007
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
46414
48008
  __metadata("design:returntype", Promise)
46415
- ], flyway_schema_historyResolver.prototype, "flyway_schema_history", null);
48009
+ ], AIAgentLearningCycleResolver.prototype, "AIAgentLearningCycle", null);
46416
48010
  __decorate([
46417
- Mutation(() => flyway_schema_history_),
46418
- __param(0, Arg('input', () => Createflyway_schema_historyInput)),
48011
+ Mutation(() => AIAgentLearningCycle_),
48012
+ __param(0, Arg('input', () => CreateAIAgentLearningCycleInput)),
46419
48013
  __param(1, Ctx()),
46420
48014
  __param(2, PubSub()),
46421
48015
  __metadata("design:type", Function),
46422
- __metadata("design:paramtypes", [Createflyway_schema_historyInput, Object, PubSubEngine]),
48016
+ __metadata("design:paramtypes", [CreateAIAgentLearningCycleInput, Object, PubSubEngine]),
46423
48017
  __metadata("design:returntype", Promise)
46424
- ], flyway_schema_historyResolver.prototype, "Createflyway_schema_history", null);
48018
+ ], AIAgentLearningCycleResolver.prototype, "CreateAIAgentLearningCycle", null);
46425
48019
  __decorate([
46426
- Mutation(() => flyway_schema_history_),
46427
- __param(0, Arg('input', () => Updateflyway_schema_historyInput)),
48020
+ Mutation(() => AIAgentLearningCycle_),
48021
+ __param(0, Arg('input', () => UpdateAIAgentLearningCycleInput)),
46428
48022
  __param(1, Ctx()),
46429
48023
  __param(2, PubSub()),
46430
48024
  __metadata("design:type", Function),
46431
- __metadata("design:paramtypes", [Updateflyway_schema_historyInput, Object, PubSubEngine]),
48025
+ __metadata("design:paramtypes", [UpdateAIAgentLearningCycleInput, Object, PubSubEngine]),
46432
48026
  __metadata("design:returntype", Promise)
46433
- ], flyway_schema_historyResolver.prototype, "Updateflyway_schema_history", null);
48027
+ ], AIAgentLearningCycleResolver.prototype, "UpdateAIAgentLearningCycle", null);
46434
48028
  __decorate([
46435
- Mutation(() => flyway_schema_history_),
46436
- __param(0, Arg('installed_rank', () => Int)),
48029
+ Mutation(() => AIAgentLearningCycle_),
48030
+ __param(0, Arg('ID', () => String)),
46437
48031
  __param(1, Arg('options___', () => DeleteOptionsInput)),
46438
48032
  __param(2, Ctx()),
46439
48033
  __param(3, PubSub()),
46440
48034
  __metadata("design:type", Function),
46441
- __metadata("design:paramtypes", [Number, DeleteOptionsInput, Object, PubSubEngine]),
48035
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
46442
48036
  __metadata("design:returntype", Promise)
46443
- ], flyway_schema_historyResolver.prototype, "Deleteflyway_schema_history", null);
46444
- flyway_schema_historyResolver = __decorate([
46445
- Resolver(flyway_schema_history_)
46446
- ], flyway_schema_historyResolver);
46447
- export { flyway_schema_historyResolver };
48037
+ ], AIAgentLearningCycleResolver.prototype, "DeleteAIAgentLearningCycle", null);
48038
+ AIAgentLearningCycleResolver = __decorate([
48039
+ Resolver(AIAgentLearningCycle_)
48040
+ ], AIAgentLearningCycleResolver);
48041
+ export { AIAgentLearningCycleResolver };
46448
48042
  //# sourceMappingURL=generated.js.map