@memberjunction/server 2.116.0 → 2.118.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.
- package/dist/generated/generated.d.ts +622 -6
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +3969 -166
- package/dist/generated/generated.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +0 -3
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +18 -174
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunTestResolver.d.ts +41 -0
- package/dist/resolvers/RunTestResolver.d.ts.map +1 -0
- package/dist/resolvers/RunTestResolver.js +349 -0
- package/dist/resolvers/RunTestResolver.js.map +1 -0
- package/package.json +41 -40
- package/src/generated/generated.ts +2441 -41
- package/src/resolvers/RunAIAgentResolver.ts +31 -289
- package/src/resolvers/RunTestResolver.ts +369 -0
|
@@ -1073,6 +1073,317 @@ MJExplorerNavigationItemResolver = __decorate([
|
|
|
1073
1073
|
Resolver(MJExplorerNavigationItem_)
|
|
1074
1074
|
], MJExplorerNavigationItemResolver);
|
|
1075
1075
|
export { MJExplorerNavigationItemResolver };
|
|
1076
|
+
let MJTestRunFeedback_ = class MJTestRunFeedback_ {
|
|
1077
|
+
ID;
|
|
1078
|
+
TestRunID;
|
|
1079
|
+
ReviewerUserID;
|
|
1080
|
+
Rating;
|
|
1081
|
+
IsCorrect;
|
|
1082
|
+
CorrectionSummary;
|
|
1083
|
+
Comments;
|
|
1084
|
+
ReviewedAt;
|
|
1085
|
+
_mj__CreatedAt;
|
|
1086
|
+
_mj__UpdatedAt;
|
|
1087
|
+
ReviewerUser;
|
|
1088
|
+
};
|
|
1089
|
+
__decorate([
|
|
1090
|
+
Field(),
|
|
1091
|
+
MaxLength(16),
|
|
1092
|
+
__metadata("design:type", String)
|
|
1093
|
+
], MJTestRunFeedback_.prototype, "ID", void 0);
|
|
1094
|
+
__decorate([
|
|
1095
|
+
Field({ description: `Foreign Key - The test run being reviewed` }),
|
|
1096
|
+
MaxLength(16),
|
|
1097
|
+
__metadata("design:type", String)
|
|
1098
|
+
], MJTestRunFeedback_.prototype, "TestRunID", void 0);
|
|
1099
|
+
__decorate([
|
|
1100
|
+
Field({ description: `Foreign Key - The user providing the feedback` }),
|
|
1101
|
+
MaxLength(16),
|
|
1102
|
+
__metadata("design:type", String)
|
|
1103
|
+
], MJTestRunFeedback_.prototype, "ReviewerUserID", void 0);
|
|
1104
|
+
__decorate([
|
|
1105
|
+
Field(() => Int, { nullable: true, description: `Numeric rating from 1 (poor) to 10 (excellent). Allows quantitative tracking of result quality.` }),
|
|
1106
|
+
__metadata("design:type", Number)
|
|
1107
|
+
], MJTestRunFeedback_.prototype, "Rating", void 0);
|
|
1108
|
+
__decorate([
|
|
1109
|
+
Field(() => Boolean, { nullable: true, description: `Boolean indicating if the automated test result was correct. Can override automated Pass/Fail status.` }),
|
|
1110
|
+
__metadata("design:type", Boolean)
|
|
1111
|
+
], MJTestRunFeedback_.prototype, "IsCorrect", void 0);
|
|
1112
|
+
__decorate([
|
|
1113
|
+
Field({ nullable: true, description: `Summary of corrections or adjustments made by the human reviewer` }),
|
|
1114
|
+
__metadata("design:type", String)
|
|
1115
|
+
], MJTestRunFeedback_.prototype, "CorrectionSummary", void 0);
|
|
1116
|
+
__decorate([
|
|
1117
|
+
Field({ nullable: true, description: `Free-form comments from the reviewer about the test result, quality, or issues found` }),
|
|
1118
|
+
__metadata("design:type", String)
|
|
1119
|
+
], MJTestRunFeedback_.prototype, "Comments", void 0);
|
|
1120
|
+
__decorate([
|
|
1121
|
+
Field({ description: `Timestamp when the feedback was provided` }),
|
|
1122
|
+
MaxLength(8),
|
|
1123
|
+
__metadata("design:type", Date)
|
|
1124
|
+
], MJTestRunFeedback_.prototype, "ReviewedAt", void 0);
|
|
1125
|
+
__decorate([
|
|
1126
|
+
Field(),
|
|
1127
|
+
MaxLength(10),
|
|
1128
|
+
__metadata("design:type", Date)
|
|
1129
|
+
], MJTestRunFeedback_.prototype, "_mj__CreatedAt", void 0);
|
|
1130
|
+
__decorate([
|
|
1131
|
+
Field(),
|
|
1132
|
+
MaxLength(10),
|
|
1133
|
+
__metadata("design:type", Date)
|
|
1134
|
+
], MJTestRunFeedback_.prototype, "_mj__UpdatedAt", void 0);
|
|
1135
|
+
__decorate([
|
|
1136
|
+
Field(),
|
|
1137
|
+
MaxLength(200),
|
|
1138
|
+
__metadata("design:type", String)
|
|
1139
|
+
], MJTestRunFeedback_.prototype, "ReviewerUser", void 0);
|
|
1140
|
+
MJTestRunFeedback_ = __decorate([
|
|
1141
|
+
ObjectType({ description: `Human-in-the-loop feedback on test run results. Allows human reviewers to validate, correct, or override automated test results. Essential for training and improving automated evaluation criteria.` })
|
|
1142
|
+
], MJTestRunFeedback_);
|
|
1143
|
+
export { MJTestRunFeedback_ };
|
|
1144
|
+
let CreateMJTestRunFeedbackInput = class CreateMJTestRunFeedbackInput {
|
|
1145
|
+
ID;
|
|
1146
|
+
TestRunID;
|
|
1147
|
+
ReviewerUserID;
|
|
1148
|
+
Rating;
|
|
1149
|
+
IsCorrect;
|
|
1150
|
+
CorrectionSummary;
|
|
1151
|
+
Comments;
|
|
1152
|
+
ReviewedAt;
|
|
1153
|
+
};
|
|
1154
|
+
__decorate([
|
|
1155
|
+
Field({ nullable: true }),
|
|
1156
|
+
__metadata("design:type", String)
|
|
1157
|
+
], CreateMJTestRunFeedbackInput.prototype, "ID", void 0);
|
|
1158
|
+
__decorate([
|
|
1159
|
+
Field({ nullable: true }),
|
|
1160
|
+
__metadata("design:type", String)
|
|
1161
|
+
], CreateMJTestRunFeedbackInput.prototype, "TestRunID", void 0);
|
|
1162
|
+
__decorate([
|
|
1163
|
+
Field({ nullable: true }),
|
|
1164
|
+
__metadata("design:type", String)
|
|
1165
|
+
], CreateMJTestRunFeedbackInput.prototype, "ReviewerUserID", void 0);
|
|
1166
|
+
__decorate([
|
|
1167
|
+
Field(() => Int, { nullable: true }),
|
|
1168
|
+
__metadata("design:type", Number)
|
|
1169
|
+
], CreateMJTestRunFeedbackInput.prototype, "Rating", void 0);
|
|
1170
|
+
__decorate([
|
|
1171
|
+
Field(() => Boolean, { nullable: true }),
|
|
1172
|
+
__metadata("design:type", Boolean)
|
|
1173
|
+
], CreateMJTestRunFeedbackInput.prototype, "IsCorrect", void 0);
|
|
1174
|
+
__decorate([
|
|
1175
|
+
Field({ nullable: true }),
|
|
1176
|
+
__metadata("design:type", String)
|
|
1177
|
+
], CreateMJTestRunFeedbackInput.prototype, "CorrectionSummary", void 0);
|
|
1178
|
+
__decorate([
|
|
1179
|
+
Field({ nullable: true }),
|
|
1180
|
+
__metadata("design:type", String)
|
|
1181
|
+
], CreateMJTestRunFeedbackInput.prototype, "Comments", void 0);
|
|
1182
|
+
__decorate([
|
|
1183
|
+
Field({ nullable: true }),
|
|
1184
|
+
__metadata("design:type", Date)
|
|
1185
|
+
], CreateMJTestRunFeedbackInput.prototype, "ReviewedAt", void 0);
|
|
1186
|
+
CreateMJTestRunFeedbackInput = __decorate([
|
|
1187
|
+
InputType()
|
|
1188
|
+
], CreateMJTestRunFeedbackInput);
|
|
1189
|
+
export { CreateMJTestRunFeedbackInput };
|
|
1190
|
+
let UpdateMJTestRunFeedbackInput = class UpdateMJTestRunFeedbackInput {
|
|
1191
|
+
ID;
|
|
1192
|
+
TestRunID;
|
|
1193
|
+
ReviewerUserID;
|
|
1194
|
+
Rating;
|
|
1195
|
+
IsCorrect;
|
|
1196
|
+
CorrectionSummary;
|
|
1197
|
+
Comments;
|
|
1198
|
+
ReviewedAt;
|
|
1199
|
+
OldValues___;
|
|
1200
|
+
};
|
|
1201
|
+
__decorate([
|
|
1202
|
+
Field(),
|
|
1203
|
+
__metadata("design:type", String)
|
|
1204
|
+
], UpdateMJTestRunFeedbackInput.prototype, "ID", void 0);
|
|
1205
|
+
__decorate([
|
|
1206
|
+
Field({ nullable: true }),
|
|
1207
|
+
__metadata("design:type", String)
|
|
1208
|
+
], UpdateMJTestRunFeedbackInput.prototype, "TestRunID", void 0);
|
|
1209
|
+
__decorate([
|
|
1210
|
+
Field({ nullable: true }),
|
|
1211
|
+
__metadata("design:type", String)
|
|
1212
|
+
], UpdateMJTestRunFeedbackInput.prototype, "ReviewerUserID", void 0);
|
|
1213
|
+
__decorate([
|
|
1214
|
+
Field(() => Int, { nullable: true }),
|
|
1215
|
+
__metadata("design:type", Number)
|
|
1216
|
+
], UpdateMJTestRunFeedbackInput.prototype, "Rating", void 0);
|
|
1217
|
+
__decorate([
|
|
1218
|
+
Field(() => Boolean, { nullable: true }),
|
|
1219
|
+
__metadata("design:type", Boolean)
|
|
1220
|
+
], UpdateMJTestRunFeedbackInput.prototype, "IsCorrect", void 0);
|
|
1221
|
+
__decorate([
|
|
1222
|
+
Field({ nullable: true }),
|
|
1223
|
+
__metadata("design:type", String)
|
|
1224
|
+
], UpdateMJTestRunFeedbackInput.prototype, "CorrectionSummary", void 0);
|
|
1225
|
+
__decorate([
|
|
1226
|
+
Field({ nullable: true }),
|
|
1227
|
+
__metadata("design:type", String)
|
|
1228
|
+
], UpdateMJTestRunFeedbackInput.prototype, "Comments", void 0);
|
|
1229
|
+
__decorate([
|
|
1230
|
+
Field({ nullable: true }),
|
|
1231
|
+
__metadata("design:type", Date)
|
|
1232
|
+
], UpdateMJTestRunFeedbackInput.prototype, "ReviewedAt", void 0);
|
|
1233
|
+
__decorate([
|
|
1234
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1235
|
+
__metadata("design:type", Array)
|
|
1236
|
+
], UpdateMJTestRunFeedbackInput.prototype, "OldValues___", void 0);
|
|
1237
|
+
UpdateMJTestRunFeedbackInput = __decorate([
|
|
1238
|
+
InputType()
|
|
1239
|
+
], UpdateMJTestRunFeedbackInput);
|
|
1240
|
+
export { UpdateMJTestRunFeedbackInput };
|
|
1241
|
+
let RunMJTestRunFeedbackViewResult = class RunMJTestRunFeedbackViewResult {
|
|
1242
|
+
Results;
|
|
1243
|
+
UserViewRunID;
|
|
1244
|
+
RowCount;
|
|
1245
|
+
TotalRowCount;
|
|
1246
|
+
ExecutionTime;
|
|
1247
|
+
ErrorMessage;
|
|
1248
|
+
Success;
|
|
1249
|
+
};
|
|
1250
|
+
__decorate([
|
|
1251
|
+
Field(() => [MJTestRunFeedback_]),
|
|
1252
|
+
__metadata("design:type", Array)
|
|
1253
|
+
], RunMJTestRunFeedbackViewResult.prototype, "Results", void 0);
|
|
1254
|
+
__decorate([
|
|
1255
|
+
Field(() => String, { nullable: true }),
|
|
1256
|
+
__metadata("design:type", String)
|
|
1257
|
+
], RunMJTestRunFeedbackViewResult.prototype, "UserViewRunID", void 0);
|
|
1258
|
+
__decorate([
|
|
1259
|
+
Field(() => Int, { nullable: true }),
|
|
1260
|
+
__metadata("design:type", Number)
|
|
1261
|
+
], RunMJTestRunFeedbackViewResult.prototype, "RowCount", void 0);
|
|
1262
|
+
__decorate([
|
|
1263
|
+
Field(() => Int, { nullable: true }),
|
|
1264
|
+
__metadata("design:type", Number)
|
|
1265
|
+
], RunMJTestRunFeedbackViewResult.prototype, "TotalRowCount", void 0);
|
|
1266
|
+
__decorate([
|
|
1267
|
+
Field(() => Int, { nullable: true }),
|
|
1268
|
+
__metadata("design:type", Number)
|
|
1269
|
+
], RunMJTestRunFeedbackViewResult.prototype, "ExecutionTime", void 0);
|
|
1270
|
+
__decorate([
|
|
1271
|
+
Field({ nullable: true }),
|
|
1272
|
+
__metadata("design:type", String)
|
|
1273
|
+
], RunMJTestRunFeedbackViewResult.prototype, "ErrorMessage", void 0);
|
|
1274
|
+
__decorate([
|
|
1275
|
+
Field(() => Boolean, { nullable: false }),
|
|
1276
|
+
__metadata("design:type", Boolean)
|
|
1277
|
+
], RunMJTestRunFeedbackViewResult.prototype, "Success", void 0);
|
|
1278
|
+
RunMJTestRunFeedbackViewResult = __decorate([
|
|
1279
|
+
ObjectType()
|
|
1280
|
+
], RunMJTestRunFeedbackViewResult);
|
|
1281
|
+
export { RunMJTestRunFeedbackViewResult };
|
|
1282
|
+
let MJTestRunFeedbackResolver = class MJTestRunFeedbackResolver extends ResolverBase {
|
|
1283
|
+
async RunMJTestRunFeedbackViewByID(input, { providers, userPayload }, pubSub) {
|
|
1284
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1285
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
1286
|
+
}
|
|
1287
|
+
async RunMJTestRunFeedbackViewByName(input, { providers, userPayload }, pubSub) {
|
|
1288
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1289
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
1290
|
+
}
|
|
1291
|
+
async RunMJTestRunFeedbackDynamicView(input, { providers, userPayload }, pubSub) {
|
|
1292
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1293
|
+
input.EntityName = 'MJ: Test Run Feedbacks';
|
|
1294
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
1295
|
+
}
|
|
1296
|
+
async MJTestRunFeedback(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
1297
|
+
this.CheckUserReadPermissions('MJ: Test Run Feedbacks', userPayload);
|
|
1298
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
1299
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1300
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRunFeedbacks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
|
|
1301
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
1302
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows && rows.length > 0 ? rows[0] : {});
|
|
1303
|
+
return result;
|
|
1304
|
+
}
|
|
1305
|
+
async CreateMJTestRunFeedback(input, { providers, userPayload }, pubSub) {
|
|
1306
|
+
const provider = GetReadWriteProvider(providers);
|
|
1307
|
+
return this.CreateRecord('MJ: Test Run Feedbacks', input, provider, userPayload, pubSub);
|
|
1308
|
+
}
|
|
1309
|
+
async UpdateMJTestRunFeedback(input, { providers, userPayload }, pubSub) {
|
|
1310
|
+
const provider = GetReadWriteProvider(providers);
|
|
1311
|
+
return this.UpdateRecord('MJ: Test Run Feedbacks', input, provider, userPayload, pubSub);
|
|
1312
|
+
}
|
|
1313
|
+
async DeleteMJTestRunFeedback(ID, options, { providers, userPayload }, pubSub) {
|
|
1314
|
+
const provider = GetReadWriteProvider(providers);
|
|
1315
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1316
|
+
return this.DeleteRecord('MJ: Test Run Feedbacks', key, options, provider, userPayload, pubSub);
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
__decorate([
|
|
1320
|
+
Query(() => RunMJTestRunFeedbackViewResult),
|
|
1321
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1322
|
+
__param(1, Ctx()),
|
|
1323
|
+
__param(2, PubSub()),
|
|
1324
|
+
__metadata("design:type", Function),
|
|
1325
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1326
|
+
__metadata("design:returntype", Promise)
|
|
1327
|
+
], MJTestRunFeedbackResolver.prototype, "RunMJTestRunFeedbackViewByID", null);
|
|
1328
|
+
__decorate([
|
|
1329
|
+
Query(() => RunMJTestRunFeedbackViewResult),
|
|
1330
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1331
|
+
__param(1, Ctx()),
|
|
1332
|
+
__param(2, PubSub()),
|
|
1333
|
+
__metadata("design:type", Function),
|
|
1334
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1335
|
+
__metadata("design:returntype", Promise)
|
|
1336
|
+
], MJTestRunFeedbackResolver.prototype, "RunMJTestRunFeedbackViewByName", null);
|
|
1337
|
+
__decorate([
|
|
1338
|
+
Query(() => RunMJTestRunFeedbackViewResult),
|
|
1339
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1340
|
+
__param(1, Ctx()),
|
|
1341
|
+
__param(2, PubSub()),
|
|
1342
|
+
__metadata("design:type", Function),
|
|
1343
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1344
|
+
__metadata("design:returntype", Promise)
|
|
1345
|
+
], MJTestRunFeedbackResolver.prototype, "RunMJTestRunFeedbackDynamicView", null);
|
|
1346
|
+
__decorate([
|
|
1347
|
+
Query(() => MJTestRunFeedback_, { nullable: true }),
|
|
1348
|
+
__param(0, Arg('ID', () => String)),
|
|
1349
|
+
__param(1, Ctx()),
|
|
1350
|
+
__param(2, PubSub()),
|
|
1351
|
+
__metadata("design:type", Function),
|
|
1352
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1353
|
+
__metadata("design:returntype", Promise)
|
|
1354
|
+
], MJTestRunFeedbackResolver.prototype, "MJTestRunFeedback", null);
|
|
1355
|
+
__decorate([
|
|
1356
|
+
Mutation(() => MJTestRunFeedback_),
|
|
1357
|
+
__param(0, Arg('input', () => CreateMJTestRunFeedbackInput)),
|
|
1358
|
+
__param(1, Ctx()),
|
|
1359
|
+
__param(2, PubSub()),
|
|
1360
|
+
__metadata("design:type", Function),
|
|
1361
|
+
__metadata("design:paramtypes", [CreateMJTestRunFeedbackInput, Object, PubSubEngine]),
|
|
1362
|
+
__metadata("design:returntype", Promise)
|
|
1363
|
+
], MJTestRunFeedbackResolver.prototype, "CreateMJTestRunFeedback", null);
|
|
1364
|
+
__decorate([
|
|
1365
|
+
Mutation(() => MJTestRunFeedback_),
|
|
1366
|
+
__param(0, Arg('input', () => UpdateMJTestRunFeedbackInput)),
|
|
1367
|
+
__param(1, Ctx()),
|
|
1368
|
+
__param(2, PubSub()),
|
|
1369
|
+
__metadata("design:type", Function),
|
|
1370
|
+
__metadata("design:paramtypes", [UpdateMJTestRunFeedbackInput, Object, PubSubEngine]),
|
|
1371
|
+
__metadata("design:returntype", Promise)
|
|
1372
|
+
], MJTestRunFeedbackResolver.prototype, "UpdateMJTestRunFeedback", null);
|
|
1373
|
+
__decorate([
|
|
1374
|
+
Mutation(() => MJTestRunFeedback_),
|
|
1375
|
+
__param(0, Arg('ID', () => String)),
|
|
1376
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1377
|
+
__param(2, Ctx()),
|
|
1378
|
+
__param(3, PubSub()),
|
|
1379
|
+
__metadata("design:type", Function),
|
|
1380
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1381
|
+
__metadata("design:returntype", Promise)
|
|
1382
|
+
], MJTestRunFeedbackResolver.prototype, "DeleteMJTestRunFeedback", null);
|
|
1383
|
+
MJTestRunFeedbackResolver = __decorate([
|
|
1384
|
+
Resolver(MJTestRunFeedback_)
|
|
1385
|
+
], MJTestRunFeedbackResolver);
|
|
1386
|
+
export { MJTestRunFeedbackResolver };
|
|
1076
1387
|
let MJGeneratedCodeCategory_ = class MJGeneratedCodeCategory_ {
|
|
1077
1388
|
ID;
|
|
1078
1389
|
Name;
|
|
@@ -2525,12 +2836,17 @@ let MJAIAgentRun_ = class MJAIAgentRun_ {
|
|
|
2525
2836
|
RunName;
|
|
2526
2837
|
Comments;
|
|
2527
2838
|
ScheduledJobRunID;
|
|
2839
|
+
TestRunID;
|
|
2528
2840
|
Agent;
|
|
2841
|
+
ParentRun;
|
|
2529
2842
|
Conversation;
|
|
2530
2843
|
User;
|
|
2844
|
+
ConversationDetail;
|
|
2845
|
+
LastRun;
|
|
2531
2846
|
Configuration;
|
|
2532
2847
|
OverrideModel;
|
|
2533
2848
|
OverrideVendor;
|
|
2849
|
+
ScheduledJobRun;
|
|
2534
2850
|
RootParentRunID;
|
|
2535
2851
|
RootLastRunID;
|
|
2536
2852
|
MJ_AIAgentRunSteps_AgentRunIDArray;
|
|
@@ -2719,11 +3035,21 @@ __decorate([
|
|
|
2719
3035
|
MaxLength(16),
|
|
2720
3036
|
__metadata("design:type", String)
|
|
2721
3037
|
], MJAIAgentRun_.prototype, "ScheduledJobRunID", void 0);
|
|
3038
|
+
__decorate([
|
|
3039
|
+
Field({ nullable: true, description: `Optional Foreign Key - Links this agent run to a test run if this execution was part of a test. Allows navigation from agent execution to test context.` }),
|
|
3040
|
+
MaxLength(16),
|
|
3041
|
+
__metadata("design:type", String)
|
|
3042
|
+
], MJAIAgentRun_.prototype, "TestRunID", void 0);
|
|
2722
3043
|
__decorate([
|
|
2723
3044
|
Field({ nullable: true }),
|
|
2724
3045
|
MaxLength(510),
|
|
2725
3046
|
__metadata("design:type", String)
|
|
2726
3047
|
], MJAIAgentRun_.prototype, "Agent", void 0);
|
|
3048
|
+
__decorate([
|
|
3049
|
+
Field({ nullable: true }),
|
|
3050
|
+
MaxLength(510),
|
|
3051
|
+
__metadata("design:type", String)
|
|
3052
|
+
], MJAIAgentRun_.prototype, "ParentRun", void 0);
|
|
2727
3053
|
__decorate([
|
|
2728
3054
|
Field({ nullable: true }),
|
|
2729
3055
|
MaxLength(510),
|
|
@@ -2734,6 +3060,15 @@ __decorate([
|
|
|
2734
3060
|
MaxLength(200),
|
|
2735
3061
|
__metadata("design:type", String)
|
|
2736
3062
|
], MJAIAgentRun_.prototype, "User", void 0);
|
|
3063
|
+
__decorate([
|
|
3064
|
+
Field({ nullable: true }),
|
|
3065
|
+
__metadata("design:type", String)
|
|
3066
|
+
], MJAIAgentRun_.prototype, "ConversationDetail", void 0);
|
|
3067
|
+
__decorate([
|
|
3068
|
+
Field({ nullable: true }),
|
|
3069
|
+
MaxLength(510),
|
|
3070
|
+
__metadata("design:type", String)
|
|
3071
|
+
], MJAIAgentRun_.prototype, "LastRun", void 0);
|
|
2737
3072
|
__decorate([
|
|
2738
3073
|
Field({ nullable: true }),
|
|
2739
3074
|
MaxLength(200),
|
|
@@ -2749,6 +3084,11 @@ __decorate([
|
|
|
2749
3084
|
MaxLength(100),
|
|
2750
3085
|
__metadata("design:type", String)
|
|
2751
3086
|
], MJAIAgentRun_.prototype, "OverrideVendor", void 0);
|
|
3087
|
+
__decorate([
|
|
3088
|
+
Field({ nullable: true }),
|
|
3089
|
+
MaxLength(400),
|
|
3090
|
+
__metadata("design:type", String)
|
|
3091
|
+
], MJAIAgentRun_.prototype, "ScheduledJobRun", void 0);
|
|
2752
3092
|
__decorate([
|
|
2753
3093
|
Field({ nullable: true }),
|
|
2754
3094
|
MaxLength(16),
|
|
@@ -2822,6 +3162,7 @@ let CreateMJAIAgentRunInput = class CreateMJAIAgentRunInput {
|
|
|
2822
3162
|
RunName;
|
|
2823
3163
|
Comments;
|
|
2824
3164
|
ScheduledJobRunID;
|
|
3165
|
+
TestRunID;
|
|
2825
3166
|
};
|
|
2826
3167
|
__decorate([
|
|
2827
3168
|
Field({ nullable: true }),
|
|
@@ -2975,6 +3316,10 @@ __decorate([
|
|
|
2975
3316
|
Field({ nullable: true }),
|
|
2976
3317
|
__metadata("design:type", String)
|
|
2977
3318
|
], CreateMJAIAgentRunInput.prototype, "ScheduledJobRunID", void 0);
|
|
3319
|
+
__decorate([
|
|
3320
|
+
Field({ nullable: true }),
|
|
3321
|
+
__metadata("design:type", String)
|
|
3322
|
+
], CreateMJAIAgentRunInput.prototype, "TestRunID", void 0);
|
|
2978
3323
|
CreateMJAIAgentRunInput = __decorate([
|
|
2979
3324
|
InputType()
|
|
2980
3325
|
], CreateMJAIAgentRunInput);
|
|
@@ -3018,6 +3363,7 @@ let UpdateMJAIAgentRunInput = class UpdateMJAIAgentRunInput {
|
|
|
3018
3363
|
RunName;
|
|
3019
3364
|
Comments;
|
|
3020
3365
|
ScheduledJobRunID;
|
|
3366
|
+
TestRunID;
|
|
3021
3367
|
OldValues___;
|
|
3022
3368
|
};
|
|
3023
3369
|
__decorate([
|
|
@@ -3172,6 +3518,10 @@ __decorate([
|
|
|
3172
3518
|
Field({ nullable: true }),
|
|
3173
3519
|
__metadata("design:type", String)
|
|
3174
3520
|
], UpdateMJAIAgentRunInput.prototype, "ScheduledJobRunID", void 0);
|
|
3521
|
+
__decorate([
|
|
3522
|
+
Field({ nullable: true }),
|
|
3523
|
+
__metadata("design:type", String)
|
|
3524
|
+
], UpdateMJAIAgentRunInput.prototype, "TestRunID", void 0);
|
|
3175
3525
|
__decorate([
|
|
3176
3526
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
3177
3527
|
__metadata("design:type", Array)
|
|
@@ -3416,6 +3766,744 @@ MJAIAgentRunResolver = __decorate([
|
|
|
3416
3766
|
Resolver(MJAIAgentRun_)
|
|
3417
3767
|
], MJAIAgentRunResolver);
|
|
3418
3768
|
export { MJAIAgentRunResolver };
|
|
3769
|
+
let MJTest_ = class MJTest_ {
|
|
3770
|
+
ID;
|
|
3771
|
+
TypeID;
|
|
3772
|
+
Name;
|
|
3773
|
+
Description;
|
|
3774
|
+
Status;
|
|
3775
|
+
InputDefinition;
|
|
3776
|
+
ExpectedOutcomes;
|
|
3777
|
+
Configuration;
|
|
3778
|
+
Tags;
|
|
3779
|
+
Priority;
|
|
3780
|
+
EstimatedDurationSeconds;
|
|
3781
|
+
EstimatedCostUSD;
|
|
3782
|
+
_mj__CreatedAt;
|
|
3783
|
+
_mj__UpdatedAt;
|
|
3784
|
+
RepeatCount;
|
|
3785
|
+
Type;
|
|
3786
|
+
MJ_TestRuns_TestIDArray;
|
|
3787
|
+
MJ_TestSuiteTests_TestIDArray;
|
|
3788
|
+
};
|
|
3789
|
+
__decorate([
|
|
3790
|
+
Field(),
|
|
3791
|
+
MaxLength(16),
|
|
3792
|
+
__metadata("design:type", String)
|
|
3793
|
+
], MJTest_.prototype, "ID", void 0);
|
|
3794
|
+
__decorate([
|
|
3795
|
+
Field({ description: `Foreign Key - The type of test (e.g., Agent Eval, Workflow Test). Determines which driver class handles execution.` }),
|
|
3796
|
+
MaxLength(16),
|
|
3797
|
+
__metadata("design:type", String)
|
|
3798
|
+
], MJTest_.prototype, "TypeID", void 0);
|
|
3799
|
+
__decorate([
|
|
3800
|
+
Field({ description: `Name of the test (e.g., "Pie Chart with Drilldown", "Memory Recall Accuracy")` }),
|
|
3801
|
+
MaxLength(510),
|
|
3802
|
+
__metadata("design:type", String)
|
|
3803
|
+
], MJTest_.prototype, "Name", void 0);
|
|
3804
|
+
__decorate([
|
|
3805
|
+
Field({ nullable: true, description: `Detailed description of what this test validates and why it matters` }),
|
|
3806
|
+
__metadata("design:type", String)
|
|
3807
|
+
], MJTest_.prototype, "Description", void 0);
|
|
3808
|
+
__decorate([
|
|
3809
|
+
Field({ description: `Status of the test: Pending (being configured), Active (ready to run), Disabled (archived/not in use)` }),
|
|
3810
|
+
MaxLength(40),
|
|
3811
|
+
__metadata("design:type", String)
|
|
3812
|
+
], MJTest_.prototype, "Status", void 0);
|
|
3813
|
+
__decorate([
|
|
3814
|
+
Field({ nullable: true, description: `JSON object defining the inputs/parameters for the test. Structure varies by test type (e.g., for Agent Eval: {prompt, context, conversationHistory})` }),
|
|
3815
|
+
__metadata("design:type", String)
|
|
3816
|
+
], MJTest_.prototype, "InputDefinition", void 0);
|
|
3817
|
+
__decorate([
|
|
3818
|
+
Field({ nullable: true, description: `JSON object defining what success looks like. Structure varies by test type (e.g., for Agent Eval: {toolCalls, outputFormat, semanticGoals, dataAssertions})` }),
|
|
3819
|
+
__metadata("design:type", String)
|
|
3820
|
+
], MJTest_.prototype, "ExpectedOutcomes", void 0);
|
|
3821
|
+
__decorate([
|
|
3822
|
+
Field({ nullable: true, description: `JSON object for test-specific configuration (e.g., oracles to use, rubrics, retry policies, timeout settings)` }),
|
|
3823
|
+
__metadata("design:type", String)
|
|
3824
|
+
], MJTest_.prototype, "Configuration", void 0);
|
|
3825
|
+
__decorate([
|
|
3826
|
+
Field({ nullable: true, description: `JSON array of tags for categorization and filtering (e.g., ["smoke", "agent-quality", "performance"])` }),
|
|
3827
|
+
__metadata("design:type", String)
|
|
3828
|
+
], MJTest_.prototype, "Tags", void 0);
|
|
3829
|
+
__decorate([
|
|
3830
|
+
Field(() => Int, { nullable: true, description: `Priority for execution ordering. Lower numbers run first. Useful for dependencies or critical path tests.` }),
|
|
3831
|
+
__metadata("design:type", Number)
|
|
3832
|
+
], MJTest_.prototype, "Priority", void 0);
|
|
3833
|
+
__decorate([
|
|
3834
|
+
Field(() => Int, { nullable: true, description: `Estimated execution time in seconds. Used for scheduling and timeout calculations.` }),
|
|
3835
|
+
__metadata("design:type", Number)
|
|
3836
|
+
], MJTest_.prototype, "EstimatedDurationSeconds", void 0);
|
|
3837
|
+
__decorate([
|
|
3838
|
+
Field(() => Float, { nullable: true, description: `Estimated cost in USD for running this test (e.g., LLM token costs, compute resources). Used for budgeting and optimization.` }),
|
|
3839
|
+
__metadata("design:type", Number)
|
|
3840
|
+
], MJTest_.prototype, "EstimatedCostUSD", void 0);
|
|
3841
|
+
__decorate([
|
|
3842
|
+
Field(),
|
|
3843
|
+
MaxLength(10),
|
|
3844
|
+
__metadata("design:type", Date)
|
|
3845
|
+
], MJTest_.prototype, "_mj__CreatedAt", void 0);
|
|
3846
|
+
__decorate([
|
|
3847
|
+
Field(),
|
|
3848
|
+
MaxLength(10),
|
|
3849
|
+
__metadata("design:type", Date)
|
|
3850
|
+
], MJTest_.prototype, "_mj__UpdatedAt", void 0);
|
|
3851
|
+
__decorate([
|
|
3852
|
+
Field(() => Int, { nullable: true, description: `Number of times to repeat this test execution. NULL or 1 = single execution. Values > 1 will create multiple test runs for statistical analysis.` }),
|
|
3853
|
+
__metadata("design:type", Number)
|
|
3854
|
+
], MJTest_.prototype, "RepeatCount", void 0);
|
|
3855
|
+
__decorate([
|
|
3856
|
+
Field(),
|
|
3857
|
+
MaxLength(200),
|
|
3858
|
+
__metadata("design:type", String)
|
|
3859
|
+
], MJTest_.prototype, "Type", void 0);
|
|
3860
|
+
__decorate([
|
|
3861
|
+
Field(() => [MJTestRun_]),
|
|
3862
|
+
__metadata("design:type", Array)
|
|
3863
|
+
], MJTest_.prototype, "MJ_TestRuns_TestIDArray", void 0);
|
|
3864
|
+
__decorate([
|
|
3865
|
+
Field(() => [MJTestSuiteTest_]),
|
|
3866
|
+
__metadata("design:type", Array)
|
|
3867
|
+
], MJTest_.prototype, "MJ_TestSuiteTests_TestIDArray", void 0);
|
|
3868
|
+
MJTest_ = __decorate([
|
|
3869
|
+
ObjectType({ description: `Individual test definitions. Each test has a specific type (via TypeID) which determines how it executes. Tests store their inputs, expected outcomes, and configuration as JSON, allowing flexibility for different test types while maintaining a common schema.` })
|
|
3870
|
+
], MJTest_);
|
|
3871
|
+
export { MJTest_ };
|
|
3872
|
+
let CreateMJTestInput = class CreateMJTestInput {
|
|
3873
|
+
ID;
|
|
3874
|
+
TypeID;
|
|
3875
|
+
Name;
|
|
3876
|
+
Description;
|
|
3877
|
+
Status;
|
|
3878
|
+
InputDefinition;
|
|
3879
|
+
ExpectedOutcomes;
|
|
3880
|
+
Configuration;
|
|
3881
|
+
Tags;
|
|
3882
|
+
Priority;
|
|
3883
|
+
EstimatedDurationSeconds;
|
|
3884
|
+
EstimatedCostUSD;
|
|
3885
|
+
RepeatCount;
|
|
3886
|
+
};
|
|
3887
|
+
__decorate([
|
|
3888
|
+
Field({ nullable: true }),
|
|
3889
|
+
__metadata("design:type", String)
|
|
3890
|
+
], CreateMJTestInput.prototype, "ID", void 0);
|
|
3891
|
+
__decorate([
|
|
3892
|
+
Field({ nullable: true }),
|
|
3893
|
+
__metadata("design:type", String)
|
|
3894
|
+
], CreateMJTestInput.prototype, "TypeID", void 0);
|
|
3895
|
+
__decorate([
|
|
3896
|
+
Field({ nullable: true }),
|
|
3897
|
+
__metadata("design:type", String)
|
|
3898
|
+
], CreateMJTestInput.prototype, "Name", void 0);
|
|
3899
|
+
__decorate([
|
|
3900
|
+
Field({ nullable: true }),
|
|
3901
|
+
__metadata("design:type", String)
|
|
3902
|
+
], CreateMJTestInput.prototype, "Description", void 0);
|
|
3903
|
+
__decorate([
|
|
3904
|
+
Field({ nullable: true }),
|
|
3905
|
+
__metadata("design:type", String)
|
|
3906
|
+
], CreateMJTestInput.prototype, "Status", void 0);
|
|
3907
|
+
__decorate([
|
|
3908
|
+
Field({ nullable: true }),
|
|
3909
|
+
__metadata("design:type", String)
|
|
3910
|
+
], CreateMJTestInput.prototype, "InputDefinition", void 0);
|
|
3911
|
+
__decorate([
|
|
3912
|
+
Field({ nullable: true }),
|
|
3913
|
+
__metadata("design:type", String)
|
|
3914
|
+
], CreateMJTestInput.prototype, "ExpectedOutcomes", void 0);
|
|
3915
|
+
__decorate([
|
|
3916
|
+
Field({ nullable: true }),
|
|
3917
|
+
__metadata("design:type", String)
|
|
3918
|
+
], CreateMJTestInput.prototype, "Configuration", void 0);
|
|
3919
|
+
__decorate([
|
|
3920
|
+
Field({ nullable: true }),
|
|
3921
|
+
__metadata("design:type", String)
|
|
3922
|
+
], CreateMJTestInput.prototype, "Tags", void 0);
|
|
3923
|
+
__decorate([
|
|
3924
|
+
Field(() => Int, { nullable: true }),
|
|
3925
|
+
__metadata("design:type", Number)
|
|
3926
|
+
], CreateMJTestInput.prototype, "Priority", void 0);
|
|
3927
|
+
__decorate([
|
|
3928
|
+
Field(() => Int, { nullable: true }),
|
|
3929
|
+
__metadata("design:type", Number)
|
|
3930
|
+
], CreateMJTestInput.prototype, "EstimatedDurationSeconds", void 0);
|
|
3931
|
+
__decorate([
|
|
3932
|
+
Field(() => Float, { nullable: true }),
|
|
3933
|
+
__metadata("design:type", Number)
|
|
3934
|
+
], CreateMJTestInput.prototype, "EstimatedCostUSD", void 0);
|
|
3935
|
+
__decorate([
|
|
3936
|
+
Field(() => Int, { nullable: true }),
|
|
3937
|
+
__metadata("design:type", Number)
|
|
3938
|
+
], CreateMJTestInput.prototype, "RepeatCount", void 0);
|
|
3939
|
+
CreateMJTestInput = __decorate([
|
|
3940
|
+
InputType()
|
|
3941
|
+
], CreateMJTestInput);
|
|
3942
|
+
export { CreateMJTestInput };
|
|
3943
|
+
let UpdateMJTestInput = class UpdateMJTestInput {
|
|
3944
|
+
ID;
|
|
3945
|
+
TypeID;
|
|
3946
|
+
Name;
|
|
3947
|
+
Description;
|
|
3948
|
+
Status;
|
|
3949
|
+
InputDefinition;
|
|
3950
|
+
ExpectedOutcomes;
|
|
3951
|
+
Configuration;
|
|
3952
|
+
Tags;
|
|
3953
|
+
Priority;
|
|
3954
|
+
EstimatedDurationSeconds;
|
|
3955
|
+
EstimatedCostUSD;
|
|
3956
|
+
RepeatCount;
|
|
3957
|
+
OldValues___;
|
|
3958
|
+
};
|
|
3959
|
+
__decorate([
|
|
3960
|
+
Field(),
|
|
3961
|
+
__metadata("design:type", String)
|
|
3962
|
+
], UpdateMJTestInput.prototype, "ID", void 0);
|
|
3963
|
+
__decorate([
|
|
3964
|
+
Field({ nullable: true }),
|
|
3965
|
+
__metadata("design:type", String)
|
|
3966
|
+
], UpdateMJTestInput.prototype, "TypeID", void 0);
|
|
3967
|
+
__decorate([
|
|
3968
|
+
Field({ nullable: true }),
|
|
3969
|
+
__metadata("design:type", String)
|
|
3970
|
+
], UpdateMJTestInput.prototype, "Name", void 0);
|
|
3971
|
+
__decorate([
|
|
3972
|
+
Field({ nullable: true }),
|
|
3973
|
+
__metadata("design:type", String)
|
|
3974
|
+
], UpdateMJTestInput.prototype, "Description", void 0);
|
|
3975
|
+
__decorate([
|
|
3976
|
+
Field({ nullable: true }),
|
|
3977
|
+
__metadata("design:type", String)
|
|
3978
|
+
], UpdateMJTestInput.prototype, "Status", void 0);
|
|
3979
|
+
__decorate([
|
|
3980
|
+
Field({ nullable: true }),
|
|
3981
|
+
__metadata("design:type", String)
|
|
3982
|
+
], UpdateMJTestInput.prototype, "InputDefinition", void 0);
|
|
3983
|
+
__decorate([
|
|
3984
|
+
Field({ nullable: true }),
|
|
3985
|
+
__metadata("design:type", String)
|
|
3986
|
+
], UpdateMJTestInput.prototype, "ExpectedOutcomes", void 0);
|
|
3987
|
+
__decorate([
|
|
3988
|
+
Field({ nullable: true }),
|
|
3989
|
+
__metadata("design:type", String)
|
|
3990
|
+
], UpdateMJTestInput.prototype, "Configuration", void 0);
|
|
3991
|
+
__decorate([
|
|
3992
|
+
Field({ nullable: true }),
|
|
3993
|
+
__metadata("design:type", String)
|
|
3994
|
+
], UpdateMJTestInput.prototype, "Tags", void 0);
|
|
3995
|
+
__decorate([
|
|
3996
|
+
Field(() => Int, { nullable: true }),
|
|
3997
|
+
__metadata("design:type", Number)
|
|
3998
|
+
], UpdateMJTestInput.prototype, "Priority", void 0);
|
|
3999
|
+
__decorate([
|
|
4000
|
+
Field(() => Int, { nullable: true }),
|
|
4001
|
+
__metadata("design:type", Number)
|
|
4002
|
+
], UpdateMJTestInput.prototype, "EstimatedDurationSeconds", void 0);
|
|
4003
|
+
__decorate([
|
|
4004
|
+
Field(() => Float, { nullable: true }),
|
|
4005
|
+
__metadata("design:type", Number)
|
|
4006
|
+
], UpdateMJTestInput.prototype, "EstimatedCostUSD", void 0);
|
|
4007
|
+
__decorate([
|
|
4008
|
+
Field(() => Int, { nullable: true }),
|
|
4009
|
+
__metadata("design:type", Number)
|
|
4010
|
+
], UpdateMJTestInput.prototype, "RepeatCount", void 0);
|
|
4011
|
+
__decorate([
|
|
4012
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
4013
|
+
__metadata("design:type", Array)
|
|
4014
|
+
], UpdateMJTestInput.prototype, "OldValues___", void 0);
|
|
4015
|
+
UpdateMJTestInput = __decorate([
|
|
4016
|
+
InputType()
|
|
4017
|
+
], UpdateMJTestInput);
|
|
4018
|
+
export { UpdateMJTestInput };
|
|
4019
|
+
let RunMJTestViewResult = class RunMJTestViewResult {
|
|
4020
|
+
Results;
|
|
4021
|
+
UserViewRunID;
|
|
4022
|
+
RowCount;
|
|
4023
|
+
TotalRowCount;
|
|
4024
|
+
ExecutionTime;
|
|
4025
|
+
ErrorMessage;
|
|
4026
|
+
Success;
|
|
4027
|
+
};
|
|
4028
|
+
__decorate([
|
|
4029
|
+
Field(() => [MJTest_]),
|
|
4030
|
+
__metadata("design:type", Array)
|
|
4031
|
+
], RunMJTestViewResult.prototype, "Results", void 0);
|
|
4032
|
+
__decorate([
|
|
4033
|
+
Field(() => String, { nullable: true }),
|
|
4034
|
+
__metadata("design:type", String)
|
|
4035
|
+
], RunMJTestViewResult.prototype, "UserViewRunID", void 0);
|
|
4036
|
+
__decorate([
|
|
4037
|
+
Field(() => Int, { nullable: true }),
|
|
4038
|
+
__metadata("design:type", Number)
|
|
4039
|
+
], RunMJTestViewResult.prototype, "RowCount", void 0);
|
|
4040
|
+
__decorate([
|
|
4041
|
+
Field(() => Int, { nullable: true }),
|
|
4042
|
+
__metadata("design:type", Number)
|
|
4043
|
+
], RunMJTestViewResult.prototype, "TotalRowCount", void 0);
|
|
4044
|
+
__decorate([
|
|
4045
|
+
Field(() => Int, { nullable: true }),
|
|
4046
|
+
__metadata("design:type", Number)
|
|
4047
|
+
], RunMJTestViewResult.prototype, "ExecutionTime", void 0);
|
|
4048
|
+
__decorate([
|
|
4049
|
+
Field({ nullable: true }),
|
|
4050
|
+
__metadata("design:type", String)
|
|
4051
|
+
], RunMJTestViewResult.prototype, "ErrorMessage", void 0);
|
|
4052
|
+
__decorate([
|
|
4053
|
+
Field(() => Boolean, { nullable: false }),
|
|
4054
|
+
__metadata("design:type", Boolean)
|
|
4055
|
+
], RunMJTestViewResult.prototype, "Success", void 0);
|
|
4056
|
+
RunMJTestViewResult = __decorate([
|
|
4057
|
+
ObjectType()
|
|
4058
|
+
], RunMJTestViewResult);
|
|
4059
|
+
export { RunMJTestViewResult };
|
|
4060
|
+
let MJTestResolver = class MJTestResolver extends ResolverBase {
|
|
4061
|
+
async RunMJTestViewByID(input, { providers, userPayload }, pubSub) {
|
|
4062
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4063
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
4064
|
+
}
|
|
4065
|
+
async RunMJTestViewByName(input, { providers, userPayload }, pubSub) {
|
|
4066
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4067
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
4068
|
+
}
|
|
4069
|
+
async RunMJTestDynamicView(input, { providers, userPayload }, pubSub) {
|
|
4070
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4071
|
+
input.EntityName = 'MJ: Tests';
|
|
4072
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
4073
|
+
}
|
|
4074
|
+
async MJTest(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
4075
|
+
this.CheckUserReadPermissions('MJ: Tests', userPayload);
|
|
4076
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4077
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4078
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTests] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
4079
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4080
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Tests', rows && rows.length > 0 ? rows[0] : {});
|
|
4081
|
+
return result;
|
|
4082
|
+
}
|
|
4083
|
+
async MJ_TestRuns_TestIDArray(mjtest_, { dataSources, userPayload, providers }, pubSub) {
|
|
4084
|
+
this.CheckUserReadPermissions('MJ: Test Runs', userPayload);
|
|
4085
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4086
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4087
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRuns] WHERE [TestID]='${mjtest_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
4088
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4089
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Runs', rows);
|
|
4090
|
+
return result;
|
|
4091
|
+
}
|
|
4092
|
+
async MJ_TestSuiteTests_TestIDArray(mjtest_, { dataSources, userPayload, providers }, pubSub) {
|
|
4093
|
+
this.CheckUserReadPermissions('MJ: Test Suite Tests', userPayload);
|
|
4094
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4095
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4096
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteTests] WHERE [TestID]='${mjtest_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
4097
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4098
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Tests', rows);
|
|
4099
|
+
return result;
|
|
4100
|
+
}
|
|
4101
|
+
async CreateMJTest(input, { providers, userPayload }, pubSub) {
|
|
4102
|
+
const provider = GetReadWriteProvider(providers);
|
|
4103
|
+
return this.CreateRecord('MJ: Tests', input, provider, userPayload, pubSub);
|
|
4104
|
+
}
|
|
4105
|
+
async UpdateMJTest(input, { providers, userPayload }, pubSub) {
|
|
4106
|
+
const provider = GetReadWriteProvider(providers);
|
|
4107
|
+
return this.UpdateRecord('MJ: Tests', input, provider, userPayload, pubSub);
|
|
4108
|
+
}
|
|
4109
|
+
async DeleteMJTest(ID, options, { providers, userPayload }, pubSub) {
|
|
4110
|
+
const provider = GetReadWriteProvider(providers);
|
|
4111
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
4112
|
+
return this.DeleteRecord('MJ: Tests', key, options, provider, userPayload, pubSub);
|
|
4113
|
+
}
|
|
4114
|
+
};
|
|
4115
|
+
__decorate([
|
|
4116
|
+
Query(() => RunMJTestViewResult),
|
|
4117
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
4118
|
+
__param(1, Ctx()),
|
|
4119
|
+
__param(2, PubSub()),
|
|
4120
|
+
__metadata("design:type", Function),
|
|
4121
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
4122
|
+
__metadata("design:returntype", Promise)
|
|
4123
|
+
], MJTestResolver.prototype, "RunMJTestViewByID", null);
|
|
4124
|
+
__decorate([
|
|
4125
|
+
Query(() => RunMJTestViewResult),
|
|
4126
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
4127
|
+
__param(1, Ctx()),
|
|
4128
|
+
__param(2, PubSub()),
|
|
4129
|
+
__metadata("design:type", Function),
|
|
4130
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
4131
|
+
__metadata("design:returntype", Promise)
|
|
4132
|
+
], MJTestResolver.prototype, "RunMJTestViewByName", null);
|
|
4133
|
+
__decorate([
|
|
4134
|
+
Query(() => RunMJTestViewResult),
|
|
4135
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
4136
|
+
__param(1, Ctx()),
|
|
4137
|
+
__param(2, PubSub()),
|
|
4138
|
+
__metadata("design:type", Function),
|
|
4139
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
4140
|
+
__metadata("design:returntype", Promise)
|
|
4141
|
+
], MJTestResolver.prototype, "RunMJTestDynamicView", null);
|
|
4142
|
+
__decorate([
|
|
4143
|
+
Query(() => MJTest_, { nullable: true }),
|
|
4144
|
+
__param(0, Arg('ID', () => String)),
|
|
4145
|
+
__param(1, Ctx()),
|
|
4146
|
+
__param(2, PubSub()),
|
|
4147
|
+
__metadata("design:type", Function),
|
|
4148
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
4149
|
+
__metadata("design:returntype", Promise)
|
|
4150
|
+
], MJTestResolver.prototype, "MJTest", null);
|
|
4151
|
+
__decorate([
|
|
4152
|
+
FieldResolver(() => [MJTestRun_]),
|
|
4153
|
+
__param(0, Root()),
|
|
4154
|
+
__param(1, Ctx()),
|
|
4155
|
+
__param(2, PubSub()),
|
|
4156
|
+
__metadata("design:type", Function),
|
|
4157
|
+
__metadata("design:paramtypes", [MJTest_, Object, PubSubEngine]),
|
|
4158
|
+
__metadata("design:returntype", Promise)
|
|
4159
|
+
], MJTestResolver.prototype, "MJ_TestRuns_TestIDArray", null);
|
|
4160
|
+
__decorate([
|
|
4161
|
+
FieldResolver(() => [MJTestSuiteTest_]),
|
|
4162
|
+
__param(0, Root()),
|
|
4163
|
+
__param(1, Ctx()),
|
|
4164
|
+
__param(2, PubSub()),
|
|
4165
|
+
__metadata("design:type", Function),
|
|
4166
|
+
__metadata("design:paramtypes", [MJTest_, Object, PubSubEngine]),
|
|
4167
|
+
__metadata("design:returntype", Promise)
|
|
4168
|
+
], MJTestResolver.prototype, "MJ_TestSuiteTests_TestIDArray", null);
|
|
4169
|
+
__decorate([
|
|
4170
|
+
Mutation(() => MJTest_),
|
|
4171
|
+
__param(0, Arg('input', () => CreateMJTestInput)),
|
|
4172
|
+
__param(1, Ctx()),
|
|
4173
|
+
__param(2, PubSub()),
|
|
4174
|
+
__metadata("design:type", Function),
|
|
4175
|
+
__metadata("design:paramtypes", [CreateMJTestInput, Object, PubSubEngine]),
|
|
4176
|
+
__metadata("design:returntype", Promise)
|
|
4177
|
+
], MJTestResolver.prototype, "CreateMJTest", null);
|
|
4178
|
+
__decorate([
|
|
4179
|
+
Mutation(() => MJTest_),
|
|
4180
|
+
__param(0, Arg('input', () => UpdateMJTestInput)),
|
|
4181
|
+
__param(1, Ctx()),
|
|
4182
|
+
__param(2, PubSub()),
|
|
4183
|
+
__metadata("design:type", Function),
|
|
4184
|
+
__metadata("design:paramtypes", [UpdateMJTestInput, Object, PubSubEngine]),
|
|
4185
|
+
__metadata("design:returntype", Promise)
|
|
4186
|
+
], MJTestResolver.prototype, "UpdateMJTest", null);
|
|
4187
|
+
__decorate([
|
|
4188
|
+
Mutation(() => MJTest_),
|
|
4189
|
+
__param(0, Arg('ID', () => String)),
|
|
4190
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
4191
|
+
__param(2, Ctx()),
|
|
4192
|
+
__param(3, PubSub()),
|
|
4193
|
+
__metadata("design:type", Function),
|
|
4194
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
4195
|
+
__metadata("design:returntype", Promise)
|
|
4196
|
+
], MJTestResolver.prototype, "DeleteMJTest", null);
|
|
4197
|
+
MJTestResolver = __decorate([
|
|
4198
|
+
Resolver(MJTest_)
|
|
4199
|
+
], MJTestResolver);
|
|
4200
|
+
export { MJTestResolver };
|
|
4201
|
+
let MJTestType_ = class MJTestType_ {
|
|
4202
|
+
ID;
|
|
4203
|
+
Name;
|
|
4204
|
+
Description;
|
|
4205
|
+
DriverClass;
|
|
4206
|
+
Status;
|
|
4207
|
+
_mj__CreatedAt;
|
|
4208
|
+
_mj__UpdatedAt;
|
|
4209
|
+
MJ_TestRubrics_TypeIDArray;
|
|
4210
|
+
MJ_Tests_TypeIDArray;
|
|
4211
|
+
};
|
|
4212
|
+
__decorate([
|
|
4213
|
+
Field(),
|
|
4214
|
+
MaxLength(16),
|
|
4215
|
+
__metadata("design:type", String)
|
|
4216
|
+
], MJTestType_.prototype, "ID", void 0);
|
|
4217
|
+
__decorate([
|
|
4218
|
+
Field({ description: `Unique name for the test type (e.g., "Agent Eval", "Workflow Test", "Code Generation Test")` }),
|
|
4219
|
+
MaxLength(200),
|
|
4220
|
+
__metadata("design:type", String)
|
|
4221
|
+
], MJTestType_.prototype, "Name", void 0);
|
|
4222
|
+
__decorate([
|
|
4223
|
+
Field({ nullable: true, description: `Detailed description of what this test type validates and how it works` }),
|
|
4224
|
+
__metadata("design:type", String)
|
|
4225
|
+
], MJTestType_.prototype, "Description", void 0);
|
|
4226
|
+
__decorate([
|
|
4227
|
+
Field({ description: `Class name for the driver implementation (e.g., "AgentEvalDriver"). Used with ClassFactory to instantiate the appropriate BaseTestDriver subclass.` }),
|
|
4228
|
+
MaxLength(510),
|
|
4229
|
+
__metadata("design:type", String)
|
|
4230
|
+
], MJTestType_.prototype, "DriverClass", void 0);
|
|
4231
|
+
__decorate([
|
|
4232
|
+
Field({ description: `Status of the test type: Pending (under development), Active (available for use), Disabled (no longer available)` }),
|
|
4233
|
+
MaxLength(40),
|
|
4234
|
+
__metadata("design:type", String)
|
|
4235
|
+
], MJTestType_.prototype, "Status", void 0);
|
|
4236
|
+
__decorate([
|
|
4237
|
+
Field(),
|
|
4238
|
+
MaxLength(10),
|
|
4239
|
+
__metadata("design:type", Date)
|
|
4240
|
+
], MJTestType_.prototype, "_mj__CreatedAt", void 0);
|
|
4241
|
+
__decorate([
|
|
4242
|
+
Field(),
|
|
4243
|
+
MaxLength(10),
|
|
4244
|
+
__metadata("design:type", Date)
|
|
4245
|
+
], MJTestType_.prototype, "_mj__UpdatedAt", void 0);
|
|
4246
|
+
__decorate([
|
|
4247
|
+
Field(() => [MJTestRubric_]),
|
|
4248
|
+
__metadata("design:type", Array)
|
|
4249
|
+
], MJTestType_.prototype, "MJ_TestRubrics_TypeIDArray", void 0);
|
|
4250
|
+
__decorate([
|
|
4251
|
+
Field(() => [MJTest_]),
|
|
4252
|
+
__metadata("design:type", Array)
|
|
4253
|
+
], MJTestType_.prototype, "MJ_Tests_TypeIDArray", void 0);
|
|
4254
|
+
MJTestType_ = __decorate([
|
|
4255
|
+
ObjectType({ description: `Defines test type drivers that can be dynamically instantiated via MJGlobal.Instance.ClassFactory.CreateInstance(BaseTestDriver, DriverClass). Each test type represents a different category of testing (e.g., Agent Evals, Workflow Tests, Code Generation Tests).` })
|
|
4256
|
+
], MJTestType_);
|
|
4257
|
+
export { MJTestType_ };
|
|
4258
|
+
let CreateMJTestTypeInput = class CreateMJTestTypeInput {
|
|
4259
|
+
ID;
|
|
4260
|
+
Name;
|
|
4261
|
+
Description;
|
|
4262
|
+
DriverClass;
|
|
4263
|
+
Status;
|
|
4264
|
+
};
|
|
4265
|
+
__decorate([
|
|
4266
|
+
Field({ nullable: true }),
|
|
4267
|
+
__metadata("design:type", String)
|
|
4268
|
+
], CreateMJTestTypeInput.prototype, "ID", void 0);
|
|
4269
|
+
__decorate([
|
|
4270
|
+
Field({ nullable: true }),
|
|
4271
|
+
__metadata("design:type", String)
|
|
4272
|
+
], CreateMJTestTypeInput.prototype, "Name", void 0);
|
|
4273
|
+
__decorate([
|
|
4274
|
+
Field({ nullable: true }),
|
|
4275
|
+
__metadata("design:type", String)
|
|
4276
|
+
], CreateMJTestTypeInput.prototype, "Description", void 0);
|
|
4277
|
+
__decorate([
|
|
4278
|
+
Field({ nullable: true }),
|
|
4279
|
+
__metadata("design:type", String)
|
|
4280
|
+
], CreateMJTestTypeInput.prototype, "DriverClass", void 0);
|
|
4281
|
+
__decorate([
|
|
4282
|
+
Field({ nullable: true }),
|
|
4283
|
+
__metadata("design:type", String)
|
|
4284
|
+
], CreateMJTestTypeInput.prototype, "Status", void 0);
|
|
4285
|
+
CreateMJTestTypeInput = __decorate([
|
|
4286
|
+
InputType()
|
|
4287
|
+
], CreateMJTestTypeInput);
|
|
4288
|
+
export { CreateMJTestTypeInput };
|
|
4289
|
+
let UpdateMJTestTypeInput = class UpdateMJTestTypeInput {
|
|
4290
|
+
ID;
|
|
4291
|
+
Name;
|
|
4292
|
+
Description;
|
|
4293
|
+
DriverClass;
|
|
4294
|
+
Status;
|
|
4295
|
+
OldValues___;
|
|
4296
|
+
};
|
|
4297
|
+
__decorate([
|
|
4298
|
+
Field(),
|
|
4299
|
+
__metadata("design:type", String)
|
|
4300
|
+
], UpdateMJTestTypeInput.prototype, "ID", void 0);
|
|
4301
|
+
__decorate([
|
|
4302
|
+
Field({ nullable: true }),
|
|
4303
|
+
__metadata("design:type", String)
|
|
4304
|
+
], UpdateMJTestTypeInput.prototype, "Name", void 0);
|
|
4305
|
+
__decorate([
|
|
4306
|
+
Field({ nullable: true }),
|
|
4307
|
+
__metadata("design:type", String)
|
|
4308
|
+
], UpdateMJTestTypeInput.prototype, "Description", void 0);
|
|
4309
|
+
__decorate([
|
|
4310
|
+
Field({ nullable: true }),
|
|
4311
|
+
__metadata("design:type", String)
|
|
4312
|
+
], UpdateMJTestTypeInput.prototype, "DriverClass", void 0);
|
|
4313
|
+
__decorate([
|
|
4314
|
+
Field({ nullable: true }),
|
|
4315
|
+
__metadata("design:type", String)
|
|
4316
|
+
], UpdateMJTestTypeInput.prototype, "Status", void 0);
|
|
4317
|
+
__decorate([
|
|
4318
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
4319
|
+
__metadata("design:type", Array)
|
|
4320
|
+
], UpdateMJTestTypeInput.prototype, "OldValues___", void 0);
|
|
4321
|
+
UpdateMJTestTypeInput = __decorate([
|
|
4322
|
+
InputType()
|
|
4323
|
+
], UpdateMJTestTypeInput);
|
|
4324
|
+
export { UpdateMJTestTypeInput };
|
|
4325
|
+
let RunMJTestTypeViewResult = class RunMJTestTypeViewResult {
|
|
4326
|
+
Results;
|
|
4327
|
+
UserViewRunID;
|
|
4328
|
+
RowCount;
|
|
4329
|
+
TotalRowCount;
|
|
4330
|
+
ExecutionTime;
|
|
4331
|
+
ErrorMessage;
|
|
4332
|
+
Success;
|
|
4333
|
+
};
|
|
4334
|
+
__decorate([
|
|
4335
|
+
Field(() => [MJTestType_]),
|
|
4336
|
+
__metadata("design:type", Array)
|
|
4337
|
+
], RunMJTestTypeViewResult.prototype, "Results", void 0);
|
|
4338
|
+
__decorate([
|
|
4339
|
+
Field(() => String, { nullable: true }),
|
|
4340
|
+
__metadata("design:type", String)
|
|
4341
|
+
], RunMJTestTypeViewResult.prototype, "UserViewRunID", void 0);
|
|
4342
|
+
__decorate([
|
|
4343
|
+
Field(() => Int, { nullable: true }),
|
|
4344
|
+
__metadata("design:type", Number)
|
|
4345
|
+
], RunMJTestTypeViewResult.prototype, "RowCount", void 0);
|
|
4346
|
+
__decorate([
|
|
4347
|
+
Field(() => Int, { nullable: true }),
|
|
4348
|
+
__metadata("design:type", Number)
|
|
4349
|
+
], RunMJTestTypeViewResult.prototype, "TotalRowCount", void 0);
|
|
4350
|
+
__decorate([
|
|
4351
|
+
Field(() => Int, { nullable: true }),
|
|
4352
|
+
__metadata("design:type", Number)
|
|
4353
|
+
], RunMJTestTypeViewResult.prototype, "ExecutionTime", void 0);
|
|
4354
|
+
__decorate([
|
|
4355
|
+
Field({ nullable: true }),
|
|
4356
|
+
__metadata("design:type", String)
|
|
4357
|
+
], RunMJTestTypeViewResult.prototype, "ErrorMessage", void 0);
|
|
4358
|
+
__decorate([
|
|
4359
|
+
Field(() => Boolean, { nullable: false }),
|
|
4360
|
+
__metadata("design:type", Boolean)
|
|
4361
|
+
], RunMJTestTypeViewResult.prototype, "Success", void 0);
|
|
4362
|
+
RunMJTestTypeViewResult = __decorate([
|
|
4363
|
+
ObjectType()
|
|
4364
|
+
], RunMJTestTypeViewResult);
|
|
4365
|
+
export { RunMJTestTypeViewResult };
|
|
4366
|
+
let MJTestTypeResolver = class MJTestTypeResolver extends ResolverBase {
|
|
4367
|
+
async RunMJTestTypeViewByID(input, { providers, userPayload }, pubSub) {
|
|
4368
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4369
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
4370
|
+
}
|
|
4371
|
+
async RunMJTestTypeViewByName(input, { providers, userPayload }, pubSub) {
|
|
4372
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4373
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
4374
|
+
}
|
|
4375
|
+
async RunMJTestTypeDynamicView(input, { providers, userPayload }, pubSub) {
|
|
4376
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4377
|
+
input.EntityName = 'MJ: Test Types';
|
|
4378
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
4379
|
+
}
|
|
4380
|
+
async MJTestType(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
4381
|
+
this.CheckUserReadPermissions('MJ: Test Types', userPayload);
|
|
4382
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4383
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4384
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestTypes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Types', userPayload, EntityPermissionType.Read, 'AND');
|
|
4385
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4386
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Types', rows && rows.length > 0 ? rows[0] : {});
|
|
4387
|
+
return result;
|
|
4388
|
+
}
|
|
4389
|
+
async MJ_TestRubrics_TypeIDArray(mjtesttype_, { dataSources, userPayload, providers }, pubSub) {
|
|
4390
|
+
this.CheckUserReadPermissions('MJ: Test Rubrics', userPayload);
|
|
4391
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4392
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4393
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRubrics] WHERE [TypeID]='${mjtesttype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Rubrics', userPayload, EntityPermissionType.Read, 'AND');
|
|
4394
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4395
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Rubrics', rows);
|
|
4396
|
+
return result;
|
|
4397
|
+
}
|
|
4398
|
+
async MJ_Tests_TypeIDArray(mjtesttype_, { dataSources, userPayload, providers }, pubSub) {
|
|
4399
|
+
this.CheckUserReadPermissions('MJ: Tests', userPayload);
|
|
4400
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
4401
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
4402
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTests] WHERE [TypeID]='${mjtesttype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
4403
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
4404
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Tests', rows);
|
|
4405
|
+
return result;
|
|
4406
|
+
}
|
|
4407
|
+
async CreateMJTestType(input, { providers, userPayload }, pubSub) {
|
|
4408
|
+
const provider = GetReadWriteProvider(providers);
|
|
4409
|
+
return this.CreateRecord('MJ: Test Types', input, provider, userPayload, pubSub);
|
|
4410
|
+
}
|
|
4411
|
+
async UpdateMJTestType(input, { providers, userPayload }, pubSub) {
|
|
4412
|
+
const provider = GetReadWriteProvider(providers);
|
|
4413
|
+
return this.UpdateRecord('MJ: Test Types', input, provider, userPayload, pubSub);
|
|
4414
|
+
}
|
|
4415
|
+
async DeleteMJTestType(ID, options, { providers, userPayload }, pubSub) {
|
|
4416
|
+
const provider = GetReadWriteProvider(providers);
|
|
4417
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
4418
|
+
return this.DeleteRecord('MJ: Test Types', key, options, provider, userPayload, pubSub);
|
|
4419
|
+
}
|
|
4420
|
+
};
|
|
4421
|
+
__decorate([
|
|
4422
|
+
Query(() => RunMJTestTypeViewResult),
|
|
4423
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
4424
|
+
__param(1, Ctx()),
|
|
4425
|
+
__param(2, PubSub()),
|
|
4426
|
+
__metadata("design:type", Function),
|
|
4427
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
4428
|
+
__metadata("design:returntype", Promise)
|
|
4429
|
+
], MJTestTypeResolver.prototype, "RunMJTestTypeViewByID", null);
|
|
4430
|
+
__decorate([
|
|
4431
|
+
Query(() => RunMJTestTypeViewResult),
|
|
4432
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
4433
|
+
__param(1, Ctx()),
|
|
4434
|
+
__param(2, PubSub()),
|
|
4435
|
+
__metadata("design:type", Function),
|
|
4436
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
4437
|
+
__metadata("design:returntype", Promise)
|
|
4438
|
+
], MJTestTypeResolver.prototype, "RunMJTestTypeViewByName", null);
|
|
4439
|
+
__decorate([
|
|
4440
|
+
Query(() => RunMJTestTypeViewResult),
|
|
4441
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
4442
|
+
__param(1, Ctx()),
|
|
4443
|
+
__param(2, PubSub()),
|
|
4444
|
+
__metadata("design:type", Function),
|
|
4445
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
4446
|
+
__metadata("design:returntype", Promise)
|
|
4447
|
+
], MJTestTypeResolver.prototype, "RunMJTestTypeDynamicView", null);
|
|
4448
|
+
__decorate([
|
|
4449
|
+
Query(() => MJTestType_, { nullable: true }),
|
|
4450
|
+
__param(0, Arg('ID', () => String)),
|
|
4451
|
+
__param(1, Ctx()),
|
|
4452
|
+
__param(2, PubSub()),
|
|
4453
|
+
__metadata("design:type", Function),
|
|
4454
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
4455
|
+
__metadata("design:returntype", Promise)
|
|
4456
|
+
], MJTestTypeResolver.prototype, "MJTestType", null);
|
|
4457
|
+
__decorate([
|
|
4458
|
+
FieldResolver(() => [MJTestRubric_]),
|
|
4459
|
+
__param(0, Root()),
|
|
4460
|
+
__param(1, Ctx()),
|
|
4461
|
+
__param(2, PubSub()),
|
|
4462
|
+
__metadata("design:type", Function),
|
|
4463
|
+
__metadata("design:paramtypes", [MJTestType_, Object, PubSubEngine]),
|
|
4464
|
+
__metadata("design:returntype", Promise)
|
|
4465
|
+
], MJTestTypeResolver.prototype, "MJ_TestRubrics_TypeIDArray", null);
|
|
4466
|
+
__decorate([
|
|
4467
|
+
FieldResolver(() => [MJTest_]),
|
|
4468
|
+
__param(0, Root()),
|
|
4469
|
+
__param(1, Ctx()),
|
|
4470
|
+
__param(2, PubSub()),
|
|
4471
|
+
__metadata("design:type", Function),
|
|
4472
|
+
__metadata("design:paramtypes", [MJTestType_, Object, PubSubEngine]),
|
|
4473
|
+
__metadata("design:returntype", Promise)
|
|
4474
|
+
], MJTestTypeResolver.prototype, "MJ_Tests_TypeIDArray", null);
|
|
4475
|
+
__decorate([
|
|
4476
|
+
Mutation(() => MJTestType_),
|
|
4477
|
+
__param(0, Arg('input', () => CreateMJTestTypeInput)),
|
|
4478
|
+
__param(1, Ctx()),
|
|
4479
|
+
__param(2, PubSub()),
|
|
4480
|
+
__metadata("design:type", Function),
|
|
4481
|
+
__metadata("design:paramtypes", [CreateMJTestTypeInput, Object, PubSubEngine]),
|
|
4482
|
+
__metadata("design:returntype", Promise)
|
|
4483
|
+
], MJTestTypeResolver.prototype, "CreateMJTestType", null);
|
|
4484
|
+
__decorate([
|
|
4485
|
+
Mutation(() => MJTestType_),
|
|
4486
|
+
__param(0, Arg('input', () => UpdateMJTestTypeInput)),
|
|
4487
|
+
__param(1, Ctx()),
|
|
4488
|
+
__param(2, PubSub()),
|
|
4489
|
+
__metadata("design:type", Function),
|
|
4490
|
+
__metadata("design:paramtypes", [UpdateMJTestTypeInput, Object, PubSubEngine]),
|
|
4491
|
+
__metadata("design:returntype", Promise)
|
|
4492
|
+
], MJTestTypeResolver.prototype, "UpdateMJTestType", null);
|
|
4493
|
+
__decorate([
|
|
4494
|
+
Mutation(() => MJTestType_),
|
|
4495
|
+
__param(0, Arg('ID', () => String)),
|
|
4496
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
4497
|
+
__param(2, Ctx()),
|
|
4498
|
+
__param(3, PubSub()),
|
|
4499
|
+
__metadata("design:type", Function),
|
|
4500
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
4501
|
+
__metadata("design:returntype", Promise)
|
|
4502
|
+
], MJTestTypeResolver.prototype, "DeleteMJTestType", null);
|
|
4503
|
+
MJTestTypeResolver = __decorate([
|
|
4504
|
+
Resolver(MJTestType_)
|
|
4505
|
+
], MJTestTypeResolver);
|
|
4506
|
+
export { MJTestTypeResolver };
|
|
3419
4507
|
let MJAIVendor_ = class MJAIVendor_ {
|
|
3420
4508
|
ID;
|
|
3421
4509
|
Name;
|
|
@@ -4070,6 +5158,7 @@ let MJAIConfiguration_ = class MJAIConfiguration_ {
|
|
|
4070
5158
|
DefaultPromptForContextSummarization;
|
|
4071
5159
|
MJ_AIConfigurationParams_ConfigurationIDArray;
|
|
4072
5160
|
MJ_AIAgentPrompts_ConfigurationIDArray;
|
|
5161
|
+
MJ_AIAgentConfigurations_AIConfigurationIDArray;
|
|
4073
5162
|
MJ_AIPromptModels_ConfigurationIDArray;
|
|
4074
5163
|
AIResultCache_ConfigurationIDArray;
|
|
4075
5164
|
MJ_AIPromptRuns_ConfigurationIDArray;
|
|
@@ -4136,6 +5225,10 @@ __decorate([
|
|
|
4136
5225
|
Field(() => [MJAIAgentPrompt_]),
|
|
4137
5226
|
__metadata("design:type", Array)
|
|
4138
5227
|
], MJAIConfiguration_.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", void 0);
|
|
5228
|
+
__decorate([
|
|
5229
|
+
Field(() => [MJAIAgentConfiguration_]),
|
|
5230
|
+
__metadata("design:type", Array)
|
|
5231
|
+
], MJAIConfiguration_.prototype, "MJ_AIAgentConfigurations_AIConfigurationIDArray", void 0);
|
|
4139
5232
|
__decorate([
|
|
4140
5233
|
Field(() => [MJAIPromptModel_]),
|
|
4141
5234
|
__metadata("design:type", Array)
|
|
@@ -4325,6 +5418,15 @@ let MJAIConfigurationResolver = class MJAIConfigurationResolver extends Resolver
|
|
|
4325
5418
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Prompts', rows);
|
|
4326
5419
|
return result;
|
|
4327
5420
|
}
|
|
5421
|
+
async MJ_AIAgentConfigurations_AIConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
5422
|
+
this.CheckUserReadPermissions('MJ: AI Agent Configurations', userPayload);
|
|
5423
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
5424
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
5425
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentConfigurations] WHERE [AIConfigurationID]='${mjaiconfiguration_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
5426
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
5427
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows);
|
|
5428
|
+
return result;
|
|
5429
|
+
}
|
|
4328
5430
|
async MJ_AIPromptModels_ConfigurationIDArray(mjaiconfiguration_, { dataSources, userPayload, providers }, pubSub) {
|
|
4329
5431
|
this.CheckUserReadPermissions('MJ: AI Prompt Models', userPayload);
|
|
4330
5432
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -4429,6 +5531,15 @@ __decorate([
|
|
|
4429
5531
|
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
4430
5532
|
__metadata("design:returntype", Promise)
|
|
4431
5533
|
], MJAIConfigurationResolver.prototype, "MJ_AIAgentPrompts_ConfigurationIDArray", null);
|
|
5534
|
+
__decorate([
|
|
5535
|
+
FieldResolver(() => [MJAIAgentConfiguration_]),
|
|
5536
|
+
__param(0, Root()),
|
|
5537
|
+
__param(1, Ctx()),
|
|
5538
|
+
__param(2, PubSub()),
|
|
5539
|
+
__metadata("design:type", Function),
|
|
5540
|
+
__metadata("design:paramtypes", [MJAIConfiguration_, Object, PubSubEngine]),
|
|
5541
|
+
__metadata("design:returntype", Promise)
|
|
5542
|
+
], MJAIConfigurationResolver.prototype, "MJ_AIAgentConfigurations_AIConfigurationIDArray", null);
|
|
4432
5543
|
__decorate([
|
|
4433
5544
|
FieldResolver(() => [MJAIPromptModel_]),
|
|
4434
5545
|
__param(0, Root()),
|
|
@@ -4572,6 +5683,7 @@ let MJAIAgent_ = class MJAIAgent_ {
|
|
|
4572
5683
|
MJ_AIAgentRelationships_SubAgentIDArray;
|
|
4573
5684
|
MJ_Tasks_AgentIDArray;
|
|
4574
5685
|
MJ_AIAgentExamples_AgentIDArray;
|
|
5686
|
+
MJ_AIAgentConfigurations_AgentIDArray;
|
|
4575
5687
|
AIResultCache_AgentIDArray;
|
|
4576
5688
|
MJ_AIPromptRuns_AgentIDArray;
|
|
4577
5689
|
ConversationDetails_AgentIDArray;
|
|
@@ -4909,6 +6021,10 @@ __decorate([
|
|
|
4909
6021
|
Field(() => [MJAIAgentExample_]),
|
|
4910
6022
|
__metadata("design:type", Array)
|
|
4911
6023
|
], MJAIAgent_.prototype, "MJ_AIAgentExamples_AgentIDArray", void 0);
|
|
6024
|
+
__decorate([
|
|
6025
|
+
Field(() => [MJAIAgentConfiguration_]),
|
|
6026
|
+
__metadata("design:type", Array)
|
|
6027
|
+
], MJAIAgent_.prototype, "MJ_AIAgentConfigurations_AgentIDArray", void 0);
|
|
4912
6028
|
__decorate([
|
|
4913
6029
|
Field(() => [MJAIResultCache_]),
|
|
4914
6030
|
__metadata("design:type", Array)
|
|
@@ -5654,6 +6770,15 @@ let MJAIAgentResolver = class MJAIAgentResolver extends ResolverBase {
|
|
|
5654
6770
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Examples', rows);
|
|
5655
6771
|
return result;
|
|
5656
6772
|
}
|
|
6773
|
+
async MJ_AIAgentConfigurations_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
6774
|
+
this.CheckUserReadPermissions('MJ: AI Agent Configurations', userPayload);
|
|
6775
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
6776
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
6777
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentConfigurations] WHERE [AgentID]='${mjaiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
6778
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
6779
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows);
|
|
6780
|
+
return result;
|
|
6781
|
+
}
|
|
5657
6782
|
async AIResultCache_AgentIDArray(mjaiagent_, { dataSources, userPayload, providers }, pubSub) {
|
|
5658
6783
|
this.CheckUserReadPermissions('AI Result Cache', userPayload);
|
|
5659
6784
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -5884,6 +7009,15 @@ __decorate([
|
|
|
5884
7009
|
__metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
|
|
5885
7010
|
__metadata("design:returntype", Promise)
|
|
5886
7011
|
], MJAIAgentResolver.prototype, "MJ_AIAgentExamples_AgentIDArray", null);
|
|
7012
|
+
__decorate([
|
|
7013
|
+
FieldResolver(() => [MJAIAgentConfiguration_]),
|
|
7014
|
+
__param(0, Root()),
|
|
7015
|
+
__param(1, Ctx()),
|
|
7016
|
+
__param(2, PubSub()),
|
|
7017
|
+
__metadata("design:type", Function),
|
|
7018
|
+
__metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
|
|
7019
|
+
__metadata("design:returntype", Promise)
|
|
7020
|
+
], MJAIAgentResolver.prototype, "MJ_AIAgentConfigurations_AgentIDArray", null);
|
|
5887
7021
|
__decorate([
|
|
5888
7022
|
FieldResolver(() => [MJAIResultCache_]),
|
|
5889
7023
|
__param(0, Root()),
|
|
@@ -7698,6 +8832,627 @@ MJAIAgentTypeResolver = __decorate([
|
|
|
7698
8832
|
Resolver(MJAIAgentType_)
|
|
7699
8833
|
], MJAIAgentTypeResolver);
|
|
7700
8834
|
export { MJAIAgentTypeResolver };
|
|
8835
|
+
let MJAIAgentConfiguration_ = class MJAIAgentConfiguration_ {
|
|
8836
|
+
ID;
|
|
8837
|
+
AgentID;
|
|
8838
|
+
Name;
|
|
8839
|
+
DisplayName;
|
|
8840
|
+
Description;
|
|
8841
|
+
AIConfigurationID;
|
|
8842
|
+
IsDefault;
|
|
8843
|
+
Priority;
|
|
8844
|
+
Status;
|
|
8845
|
+
_mj__CreatedAt;
|
|
8846
|
+
_mj__UpdatedAt;
|
|
8847
|
+
Agent;
|
|
8848
|
+
AIConfiguration;
|
|
8849
|
+
};
|
|
8850
|
+
__decorate([
|
|
8851
|
+
Field({ description: `Primary Key - Unique identifier for the agent configuration preset` }),
|
|
8852
|
+
MaxLength(16),
|
|
8853
|
+
__metadata("design:type", String)
|
|
8854
|
+
], MJAIAgentConfiguration_.prototype, "ID", void 0);
|
|
8855
|
+
__decorate([
|
|
8856
|
+
Field({ description: `Foreign Key - The agent this configuration preset belongs to` }),
|
|
8857
|
+
MaxLength(16),
|
|
8858
|
+
__metadata("design:type", String)
|
|
8859
|
+
], MJAIAgentConfiguration_.prototype, "AgentID", void 0);
|
|
8860
|
+
__decorate([
|
|
8861
|
+
Field({ description: `Code-friendly name for the preset (e.g., HighPower, Fast, Balanced). Used in API calls and metadata references.` }),
|
|
8862
|
+
MaxLength(200),
|
|
8863
|
+
__metadata("design:type", String)
|
|
8864
|
+
], MJAIAgentConfiguration_.prototype, "Name", void 0);
|
|
8865
|
+
__decorate([
|
|
8866
|
+
Field({ description: `User-friendly display name shown in UI (e.g., "High Quality", "Quick Draft", "Maximum Detail")` }),
|
|
8867
|
+
MaxLength(400),
|
|
8868
|
+
__metadata("design:type", String)
|
|
8869
|
+
], MJAIAgentConfiguration_.prototype, "DisplayName", void 0);
|
|
8870
|
+
__decorate([
|
|
8871
|
+
Field({ nullable: true, description: `Description shown to users explaining what this configuration does (e.g., "Uses Claude Opus for highest quality results")` }),
|
|
8872
|
+
__metadata("design:type", String)
|
|
8873
|
+
], MJAIAgentConfiguration_.prototype, "Description", void 0);
|
|
8874
|
+
__decorate([
|
|
8875
|
+
Field({ nullable: true, description: `Foreign Key - Optional AI Configuration to use for this preset. If NULL, uses default configuration (prompts with ConfigurationID IS NULL)` }),
|
|
8876
|
+
MaxLength(16),
|
|
8877
|
+
__metadata("design:type", String)
|
|
8878
|
+
], MJAIAgentConfiguration_.prototype, "AIConfigurationID", void 0);
|
|
8879
|
+
__decorate([
|
|
8880
|
+
Field(() => Boolean, { description: `Whether this is the default preset for the agent. Should have exactly one default per agent.` }),
|
|
8881
|
+
__metadata("design:type", Boolean)
|
|
8882
|
+
], MJAIAgentConfiguration_.prototype, "IsDefault", void 0);
|
|
8883
|
+
__decorate([
|
|
8884
|
+
Field(() => Int, { description: `Display order for UI. Lower numbers appear first. Typical values: 100 (Default), 200 (Fast), 300 (Balanced), 400 (High Quality)` }),
|
|
8885
|
+
__metadata("design:type", Number)
|
|
8886
|
+
], MJAIAgentConfiguration_.prototype, "Priority", void 0);
|
|
8887
|
+
__decorate([
|
|
8888
|
+
Field({ description: `Status of the preset: Pending (being configured), Active (available for use), Revoked (no longer available)` }),
|
|
8889
|
+
MaxLength(40),
|
|
8890
|
+
__metadata("design:type", String)
|
|
8891
|
+
], MJAIAgentConfiguration_.prototype, "Status", void 0);
|
|
8892
|
+
__decorate([
|
|
8893
|
+
Field(),
|
|
8894
|
+
MaxLength(10),
|
|
8895
|
+
__metadata("design:type", Date)
|
|
8896
|
+
], MJAIAgentConfiguration_.prototype, "_mj__CreatedAt", void 0);
|
|
8897
|
+
__decorate([
|
|
8898
|
+
Field(),
|
|
8899
|
+
MaxLength(10),
|
|
8900
|
+
__metadata("design:type", Date)
|
|
8901
|
+
], MJAIAgentConfiguration_.prototype, "_mj__UpdatedAt", void 0);
|
|
8902
|
+
__decorate([
|
|
8903
|
+
Field({ nullable: true }),
|
|
8904
|
+
MaxLength(510),
|
|
8905
|
+
__metadata("design:type", String)
|
|
8906
|
+
], MJAIAgentConfiguration_.prototype, "Agent", void 0);
|
|
8907
|
+
__decorate([
|
|
8908
|
+
Field({ nullable: true }),
|
|
8909
|
+
MaxLength(200),
|
|
8910
|
+
__metadata("design:type", String)
|
|
8911
|
+
], MJAIAgentConfiguration_.prototype, "AIConfiguration", void 0);
|
|
8912
|
+
MJAIAgentConfiguration_ = __decorate([
|
|
8913
|
+
ObjectType({ description: `Defines semantic configuration presets for agents, allowing users to select between different AI model configurations (e.g., Fast, Balanced, High Quality) when executing an agent. Each preset maps to an AI Configuration which controls model selection across all prompts.` })
|
|
8914
|
+
], MJAIAgentConfiguration_);
|
|
8915
|
+
export { MJAIAgentConfiguration_ };
|
|
8916
|
+
let CreateMJAIAgentConfigurationInput = class CreateMJAIAgentConfigurationInput {
|
|
8917
|
+
ID;
|
|
8918
|
+
AgentID;
|
|
8919
|
+
Name;
|
|
8920
|
+
DisplayName;
|
|
8921
|
+
Description;
|
|
8922
|
+
AIConfigurationID;
|
|
8923
|
+
IsDefault;
|
|
8924
|
+
Priority;
|
|
8925
|
+
Status;
|
|
8926
|
+
};
|
|
8927
|
+
__decorate([
|
|
8928
|
+
Field({ nullable: true }),
|
|
8929
|
+
__metadata("design:type", String)
|
|
8930
|
+
], CreateMJAIAgentConfigurationInput.prototype, "ID", void 0);
|
|
8931
|
+
__decorate([
|
|
8932
|
+
Field({ nullable: true }),
|
|
8933
|
+
__metadata("design:type", String)
|
|
8934
|
+
], CreateMJAIAgentConfigurationInput.prototype, "AgentID", void 0);
|
|
8935
|
+
__decorate([
|
|
8936
|
+
Field({ nullable: true }),
|
|
8937
|
+
__metadata("design:type", String)
|
|
8938
|
+
], CreateMJAIAgentConfigurationInput.prototype, "Name", void 0);
|
|
8939
|
+
__decorate([
|
|
8940
|
+
Field({ nullable: true }),
|
|
8941
|
+
__metadata("design:type", String)
|
|
8942
|
+
], CreateMJAIAgentConfigurationInput.prototype, "DisplayName", void 0);
|
|
8943
|
+
__decorate([
|
|
8944
|
+
Field({ nullable: true }),
|
|
8945
|
+
__metadata("design:type", String)
|
|
8946
|
+
], CreateMJAIAgentConfigurationInput.prototype, "Description", void 0);
|
|
8947
|
+
__decorate([
|
|
8948
|
+
Field({ nullable: true }),
|
|
8949
|
+
__metadata("design:type", String)
|
|
8950
|
+
], CreateMJAIAgentConfigurationInput.prototype, "AIConfigurationID", void 0);
|
|
8951
|
+
__decorate([
|
|
8952
|
+
Field(() => Boolean, { nullable: true }),
|
|
8953
|
+
__metadata("design:type", Boolean)
|
|
8954
|
+
], CreateMJAIAgentConfigurationInput.prototype, "IsDefault", void 0);
|
|
8955
|
+
__decorate([
|
|
8956
|
+
Field(() => Int, { nullable: true }),
|
|
8957
|
+
__metadata("design:type", Number)
|
|
8958
|
+
], CreateMJAIAgentConfigurationInput.prototype, "Priority", void 0);
|
|
8959
|
+
__decorate([
|
|
8960
|
+
Field({ nullable: true }),
|
|
8961
|
+
__metadata("design:type", String)
|
|
8962
|
+
], CreateMJAIAgentConfigurationInput.prototype, "Status", void 0);
|
|
8963
|
+
CreateMJAIAgentConfigurationInput = __decorate([
|
|
8964
|
+
InputType()
|
|
8965
|
+
], CreateMJAIAgentConfigurationInput);
|
|
8966
|
+
export { CreateMJAIAgentConfigurationInput };
|
|
8967
|
+
let UpdateMJAIAgentConfigurationInput = class UpdateMJAIAgentConfigurationInput {
|
|
8968
|
+
ID;
|
|
8969
|
+
AgentID;
|
|
8970
|
+
Name;
|
|
8971
|
+
DisplayName;
|
|
8972
|
+
Description;
|
|
8973
|
+
AIConfigurationID;
|
|
8974
|
+
IsDefault;
|
|
8975
|
+
Priority;
|
|
8976
|
+
Status;
|
|
8977
|
+
OldValues___;
|
|
8978
|
+
};
|
|
8979
|
+
__decorate([
|
|
8980
|
+
Field(),
|
|
8981
|
+
__metadata("design:type", String)
|
|
8982
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "ID", void 0);
|
|
8983
|
+
__decorate([
|
|
8984
|
+
Field({ nullable: true }),
|
|
8985
|
+
__metadata("design:type", String)
|
|
8986
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "AgentID", void 0);
|
|
8987
|
+
__decorate([
|
|
8988
|
+
Field({ nullable: true }),
|
|
8989
|
+
__metadata("design:type", String)
|
|
8990
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "Name", void 0);
|
|
8991
|
+
__decorate([
|
|
8992
|
+
Field({ nullable: true }),
|
|
8993
|
+
__metadata("design:type", String)
|
|
8994
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "DisplayName", void 0);
|
|
8995
|
+
__decorate([
|
|
8996
|
+
Field({ nullable: true }),
|
|
8997
|
+
__metadata("design:type", String)
|
|
8998
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "Description", void 0);
|
|
8999
|
+
__decorate([
|
|
9000
|
+
Field({ nullable: true }),
|
|
9001
|
+
__metadata("design:type", String)
|
|
9002
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "AIConfigurationID", void 0);
|
|
9003
|
+
__decorate([
|
|
9004
|
+
Field(() => Boolean, { nullable: true }),
|
|
9005
|
+
__metadata("design:type", Boolean)
|
|
9006
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "IsDefault", void 0);
|
|
9007
|
+
__decorate([
|
|
9008
|
+
Field(() => Int, { nullable: true }),
|
|
9009
|
+
__metadata("design:type", Number)
|
|
9010
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "Priority", void 0);
|
|
9011
|
+
__decorate([
|
|
9012
|
+
Field({ nullable: true }),
|
|
9013
|
+
__metadata("design:type", String)
|
|
9014
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "Status", void 0);
|
|
9015
|
+
__decorate([
|
|
9016
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9017
|
+
__metadata("design:type", Array)
|
|
9018
|
+
], UpdateMJAIAgentConfigurationInput.prototype, "OldValues___", void 0);
|
|
9019
|
+
UpdateMJAIAgentConfigurationInput = __decorate([
|
|
9020
|
+
InputType()
|
|
9021
|
+
], UpdateMJAIAgentConfigurationInput);
|
|
9022
|
+
export { UpdateMJAIAgentConfigurationInput };
|
|
9023
|
+
let RunMJAIAgentConfigurationViewResult = class RunMJAIAgentConfigurationViewResult {
|
|
9024
|
+
Results;
|
|
9025
|
+
UserViewRunID;
|
|
9026
|
+
RowCount;
|
|
9027
|
+
TotalRowCount;
|
|
9028
|
+
ExecutionTime;
|
|
9029
|
+
ErrorMessage;
|
|
9030
|
+
Success;
|
|
9031
|
+
};
|
|
9032
|
+
__decorate([
|
|
9033
|
+
Field(() => [MJAIAgentConfiguration_]),
|
|
9034
|
+
__metadata("design:type", Array)
|
|
9035
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "Results", void 0);
|
|
9036
|
+
__decorate([
|
|
9037
|
+
Field(() => String, { nullable: true }),
|
|
9038
|
+
__metadata("design:type", String)
|
|
9039
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "UserViewRunID", void 0);
|
|
9040
|
+
__decorate([
|
|
9041
|
+
Field(() => Int, { nullable: true }),
|
|
9042
|
+
__metadata("design:type", Number)
|
|
9043
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "RowCount", void 0);
|
|
9044
|
+
__decorate([
|
|
9045
|
+
Field(() => Int, { nullable: true }),
|
|
9046
|
+
__metadata("design:type", Number)
|
|
9047
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "TotalRowCount", void 0);
|
|
9048
|
+
__decorate([
|
|
9049
|
+
Field(() => Int, { nullable: true }),
|
|
9050
|
+
__metadata("design:type", Number)
|
|
9051
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "ExecutionTime", void 0);
|
|
9052
|
+
__decorate([
|
|
9053
|
+
Field({ nullable: true }),
|
|
9054
|
+
__metadata("design:type", String)
|
|
9055
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "ErrorMessage", void 0);
|
|
9056
|
+
__decorate([
|
|
9057
|
+
Field(() => Boolean, { nullable: false }),
|
|
9058
|
+
__metadata("design:type", Boolean)
|
|
9059
|
+
], RunMJAIAgentConfigurationViewResult.prototype, "Success", void 0);
|
|
9060
|
+
RunMJAIAgentConfigurationViewResult = __decorate([
|
|
9061
|
+
ObjectType()
|
|
9062
|
+
], RunMJAIAgentConfigurationViewResult);
|
|
9063
|
+
export { RunMJAIAgentConfigurationViewResult };
|
|
9064
|
+
let MJAIAgentConfigurationResolver = class MJAIAgentConfigurationResolver extends ResolverBase {
|
|
9065
|
+
async RunMJAIAgentConfigurationViewByID(input, { providers, userPayload }, pubSub) {
|
|
9066
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9067
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
9068
|
+
}
|
|
9069
|
+
async RunMJAIAgentConfigurationViewByName(input, { providers, userPayload }, pubSub) {
|
|
9070
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9071
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
9072
|
+
}
|
|
9073
|
+
async RunMJAIAgentConfigurationDynamicView(input, { providers, userPayload }, pubSub) {
|
|
9074
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9075
|
+
input.EntityName = 'MJ: AI Agent Configurations';
|
|
9076
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
9077
|
+
}
|
|
9078
|
+
async MJAIAgentConfiguration(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
9079
|
+
this.CheckUserReadPermissions('MJ: AI Agent Configurations', userPayload);
|
|
9080
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9081
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
9082
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentConfigurations] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Configurations', userPayload, EntityPermissionType.Read, 'AND');
|
|
9083
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
9084
|
+
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Configurations', rows && rows.length > 0 ? rows[0] : {});
|
|
9085
|
+
return result;
|
|
9086
|
+
}
|
|
9087
|
+
async CreateMJAIAgentConfiguration(input, { providers, userPayload }, pubSub) {
|
|
9088
|
+
const provider = GetReadWriteProvider(providers);
|
|
9089
|
+
return this.CreateRecord('MJ: AI Agent Configurations', input, provider, userPayload, pubSub);
|
|
9090
|
+
}
|
|
9091
|
+
async UpdateMJAIAgentConfiguration(input, { providers, userPayload }, pubSub) {
|
|
9092
|
+
const provider = GetReadWriteProvider(providers);
|
|
9093
|
+
return this.UpdateRecord('MJ: AI Agent Configurations', input, provider, userPayload, pubSub);
|
|
9094
|
+
}
|
|
9095
|
+
async DeleteMJAIAgentConfiguration(ID, options, { providers, userPayload }, pubSub) {
|
|
9096
|
+
const provider = GetReadWriteProvider(providers);
|
|
9097
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
9098
|
+
return this.DeleteRecord('MJ: AI Agent Configurations', key, options, provider, userPayload, pubSub);
|
|
9099
|
+
}
|
|
9100
|
+
};
|
|
9101
|
+
__decorate([
|
|
9102
|
+
Query(() => RunMJAIAgentConfigurationViewResult),
|
|
9103
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
9104
|
+
__param(1, Ctx()),
|
|
9105
|
+
__param(2, PubSub()),
|
|
9106
|
+
__metadata("design:type", Function),
|
|
9107
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
9108
|
+
__metadata("design:returntype", Promise)
|
|
9109
|
+
], MJAIAgentConfigurationResolver.prototype, "RunMJAIAgentConfigurationViewByID", null);
|
|
9110
|
+
__decorate([
|
|
9111
|
+
Query(() => RunMJAIAgentConfigurationViewResult),
|
|
9112
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
9113
|
+
__param(1, Ctx()),
|
|
9114
|
+
__param(2, PubSub()),
|
|
9115
|
+
__metadata("design:type", Function),
|
|
9116
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
9117
|
+
__metadata("design:returntype", Promise)
|
|
9118
|
+
], MJAIAgentConfigurationResolver.prototype, "RunMJAIAgentConfigurationViewByName", null);
|
|
9119
|
+
__decorate([
|
|
9120
|
+
Query(() => RunMJAIAgentConfigurationViewResult),
|
|
9121
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
9122
|
+
__param(1, Ctx()),
|
|
9123
|
+
__param(2, PubSub()),
|
|
9124
|
+
__metadata("design:type", Function),
|
|
9125
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
9126
|
+
__metadata("design:returntype", Promise)
|
|
9127
|
+
], MJAIAgentConfigurationResolver.prototype, "RunMJAIAgentConfigurationDynamicView", null);
|
|
9128
|
+
__decorate([
|
|
9129
|
+
Query(() => MJAIAgentConfiguration_, { nullable: true }),
|
|
9130
|
+
__param(0, Arg('ID', () => String)),
|
|
9131
|
+
__param(1, Ctx()),
|
|
9132
|
+
__param(2, PubSub()),
|
|
9133
|
+
__metadata("design:type", Function),
|
|
9134
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
9135
|
+
__metadata("design:returntype", Promise)
|
|
9136
|
+
], MJAIAgentConfigurationResolver.prototype, "MJAIAgentConfiguration", null);
|
|
9137
|
+
__decorate([
|
|
9138
|
+
Mutation(() => MJAIAgentConfiguration_),
|
|
9139
|
+
__param(0, Arg('input', () => CreateMJAIAgentConfigurationInput)),
|
|
9140
|
+
__param(1, Ctx()),
|
|
9141
|
+
__param(2, PubSub()),
|
|
9142
|
+
__metadata("design:type", Function),
|
|
9143
|
+
__metadata("design:paramtypes", [CreateMJAIAgentConfigurationInput, Object, PubSubEngine]),
|
|
9144
|
+
__metadata("design:returntype", Promise)
|
|
9145
|
+
], MJAIAgentConfigurationResolver.prototype, "CreateMJAIAgentConfiguration", null);
|
|
9146
|
+
__decorate([
|
|
9147
|
+
Mutation(() => MJAIAgentConfiguration_),
|
|
9148
|
+
__param(0, Arg('input', () => UpdateMJAIAgentConfigurationInput)),
|
|
9149
|
+
__param(1, Ctx()),
|
|
9150
|
+
__param(2, PubSub()),
|
|
9151
|
+
__metadata("design:type", Function),
|
|
9152
|
+
__metadata("design:paramtypes", [UpdateMJAIAgentConfigurationInput, Object, PubSubEngine]),
|
|
9153
|
+
__metadata("design:returntype", Promise)
|
|
9154
|
+
], MJAIAgentConfigurationResolver.prototype, "UpdateMJAIAgentConfiguration", null);
|
|
9155
|
+
__decorate([
|
|
9156
|
+
Mutation(() => MJAIAgentConfiguration_),
|
|
9157
|
+
__param(0, Arg('ID', () => String)),
|
|
9158
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
9159
|
+
__param(2, Ctx()),
|
|
9160
|
+
__param(3, PubSub()),
|
|
9161
|
+
__metadata("design:type", Function),
|
|
9162
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
9163
|
+
__metadata("design:returntype", Promise)
|
|
9164
|
+
], MJAIAgentConfigurationResolver.prototype, "DeleteMJAIAgentConfiguration", null);
|
|
9165
|
+
MJAIAgentConfigurationResolver = __decorate([
|
|
9166
|
+
Resolver(MJAIAgentConfiguration_)
|
|
9167
|
+
], MJAIAgentConfigurationResolver);
|
|
9168
|
+
export { MJAIAgentConfigurationResolver };
|
|
9169
|
+
let MJTestSuiteTest_ = class MJTestSuiteTest_ {
|
|
9170
|
+
ID;
|
|
9171
|
+
SuiteID;
|
|
9172
|
+
TestID;
|
|
9173
|
+
Sequence;
|
|
9174
|
+
Status;
|
|
9175
|
+
Configuration;
|
|
9176
|
+
_mj__CreatedAt;
|
|
9177
|
+
_mj__UpdatedAt;
|
|
9178
|
+
Suite;
|
|
9179
|
+
Test;
|
|
9180
|
+
};
|
|
9181
|
+
__decorate([
|
|
9182
|
+
Field(),
|
|
9183
|
+
MaxLength(16),
|
|
9184
|
+
__metadata("design:type", String)
|
|
9185
|
+
], MJTestSuiteTest_.prototype, "ID", void 0);
|
|
9186
|
+
__decorate([
|
|
9187
|
+
Field({ description: `Foreign Key - The test suite this relationship belongs to` }),
|
|
9188
|
+
MaxLength(16),
|
|
9189
|
+
__metadata("design:type", String)
|
|
9190
|
+
], MJTestSuiteTest_.prototype, "SuiteID", void 0);
|
|
9191
|
+
__decorate([
|
|
9192
|
+
Field({ description: `Foreign Key - The test included in this suite` }),
|
|
9193
|
+
MaxLength(16),
|
|
9194
|
+
__metadata("design:type", String)
|
|
9195
|
+
], MJTestSuiteTest_.prototype, "TestID", void 0);
|
|
9196
|
+
__decorate([
|
|
9197
|
+
Field(() => Int, { description: `Execution sequence within the suite. Lower numbers run first. Tests with same sequence may run in parallel.` }),
|
|
9198
|
+
__metadata("design:type", Number)
|
|
9199
|
+
], MJTestSuiteTest_.prototype, "Sequence", void 0);
|
|
9200
|
+
__decorate([
|
|
9201
|
+
Field({ description: `Status of this test within this suite: Active (will run), Disabled (temporarily excluded), Skip (documented exclusion)` }),
|
|
9202
|
+
MaxLength(40),
|
|
9203
|
+
__metadata("design:type", String)
|
|
9204
|
+
], MJTestSuiteTest_.prototype, "Status", void 0);
|
|
9205
|
+
__decorate([
|
|
9206
|
+
Field({ nullable: true, description: `JSON object to override test configuration for this specific suite. Allows same test to run with different parameters in different suites.` }),
|
|
9207
|
+
__metadata("design:type", String)
|
|
9208
|
+
], MJTestSuiteTest_.prototype, "Configuration", void 0);
|
|
9209
|
+
__decorate([
|
|
9210
|
+
Field(),
|
|
9211
|
+
MaxLength(10),
|
|
9212
|
+
__metadata("design:type", Date)
|
|
9213
|
+
], MJTestSuiteTest_.prototype, "_mj__CreatedAt", void 0);
|
|
9214
|
+
__decorate([
|
|
9215
|
+
Field(),
|
|
9216
|
+
MaxLength(10),
|
|
9217
|
+
__metadata("design:type", Date)
|
|
9218
|
+
], MJTestSuiteTest_.prototype, "_mj__UpdatedAt", void 0);
|
|
9219
|
+
__decorate([
|
|
9220
|
+
Field(),
|
|
9221
|
+
MaxLength(510),
|
|
9222
|
+
__metadata("design:type", String)
|
|
9223
|
+
], MJTestSuiteTest_.prototype, "Suite", void 0);
|
|
9224
|
+
__decorate([
|
|
9225
|
+
Field(),
|
|
9226
|
+
MaxLength(510),
|
|
9227
|
+
__metadata("design:type", String)
|
|
9228
|
+
], MJTestSuiteTest_.prototype, "Test", void 0);
|
|
9229
|
+
MJTestSuiteTest_ = __decorate([
|
|
9230
|
+
ObjectType({ description: `Junction table linking tests to test suites. Allows many-to-many relationship where a test can belong to multiple suites and a suite can contain multiple tests. Includes sequence for execution order and configuration overrides specific to this suite-test pairing.` })
|
|
9231
|
+
], MJTestSuiteTest_);
|
|
9232
|
+
export { MJTestSuiteTest_ };
|
|
9233
|
+
let CreateMJTestSuiteTestInput = class CreateMJTestSuiteTestInput {
|
|
9234
|
+
ID;
|
|
9235
|
+
SuiteID;
|
|
9236
|
+
TestID;
|
|
9237
|
+
Sequence;
|
|
9238
|
+
Status;
|
|
9239
|
+
Configuration;
|
|
9240
|
+
};
|
|
9241
|
+
__decorate([
|
|
9242
|
+
Field({ nullable: true }),
|
|
9243
|
+
__metadata("design:type", String)
|
|
9244
|
+
], CreateMJTestSuiteTestInput.prototype, "ID", void 0);
|
|
9245
|
+
__decorate([
|
|
9246
|
+
Field({ nullable: true }),
|
|
9247
|
+
__metadata("design:type", String)
|
|
9248
|
+
], CreateMJTestSuiteTestInput.prototype, "SuiteID", void 0);
|
|
9249
|
+
__decorate([
|
|
9250
|
+
Field({ nullable: true }),
|
|
9251
|
+
__metadata("design:type", String)
|
|
9252
|
+
], CreateMJTestSuiteTestInput.prototype, "TestID", void 0);
|
|
9253
|
+
__decorate([
|
|
9254
|
+
Field(() => Int, { nullable: true }),
|
|
9255
|
+
__metadata("design:type", Number)
|
|
9256
|
+
], CreateMJTestSuiteTestInput.prototype, "Sequence", void 0);
|
|
9257
|
+
__decorate([
|
|
9258
|
+
Field({ nullable: true }),
|
|
9259
|
+
__metadata("design:type", String)
|
|
9260
|
+
], CreateMJTestSuiteTestInput.prototype, "Status", void 0);
|
|
9261
|
+
__decorate([
|
|
9262
|
+
Field({ nullable: true }),
|
|
9263
|
+
__metadata("design:type", String)
|
|
9264
|
+
], CreateMJTestSuiteTestInput.prototype, "Configuration", void 0);
|
|
9265
|
+
CreateMJTestSuiteTestInput = __decorate([
|
|
9266
|
+
InputType()
|
|
9267
|
+
], CreateMJTestSuiteTestInput);
|
|
9268
|
+
export { CreateMJTestSuiteTestInput };
|
|
9269
|
+
let UpdateMJTestSuiteTestInput = class UpdateMJTestSuiteTestInput {
|
|
9270
|
+
ID;
|
|
9271
|
+
SuiteID;
|
|
9272
|
+
TestID;
|
|
9273
|
+
Sequence;
|
|
9274
|
+
Status;
|
|
9275
|
+
Configuration;
|
|
9276
|
+
OldValues___;
|
|
9277
|
+
};
|
|
9278
|
+
__decorate([
|
|
9279
|
+
Field(),
|
|
9280
|
+
__metadata("design:type", String)
|
|
9281
|
+
], UpdateMJTestSuiteTestInput.prototype, "ID", void 0);
|
|
9282
|
+
__decorate([
|
|
9283
|
+
Field({ nullable: true }),
|
|
9284
|
+
__metadata("design:type", String)
|
|
9285
|
+
], UpdateMJTestSuiteTestInput.prototype, "SuiteID", void 0);
|
|
9286
|
+
__decorate([
|
|
9287
|
+
Field({ nullable: true }),
|
|
9288
|
+
__metadata("design:type", String)
|
|
9289
|
+
], UpdateMJTestSuiteTestInput.prototype, "TestID", void 0);
|
|
9290
|
+
__decorate([
|
|
9291
|
+
Field(() => Int, { nullable: true }),
|
|
9292
|
+
__metadata("design:type", Number)
|
|
9293
|
+
], UpdateMJTestSuiteTestInput.prototype, "Sequence", void 0);
|
|
9294
|
+
__decorate([
|
|
9295
|
+
Field({ nullable: true }),
|
|
9296
|
+
__metadata("design:type", String)
|
|
9297
|
+
], UpdateMJTestSuiteTestInput.prototype, "Status", void 0);
|
|
9298
|
+
__decorate([
|
|
9299
|
+
Field({ nullable: true }),
|
|
9300
|
+
__metadata("design:type", String)
|
|
9301
|
+
], UpdateMJTestSuiteTestInput.prototype, "Configuration", void 0);
|
|
9302
|
+
__decorate([
|
|
9303
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
9304
|
+
__metadata("design:type", Array)
|
|
9305
|
+
], UpdateMJTestSuiteTestInput.prototype, "OldValues___", void 0);
|
|
9306
|
+
UpdateMJTestSuiteTestInput = __decorate([
|
|
9307
|
+
InputType()
|
|
9308
|
+
], UpdateMJTestSuiteTestInput);
|
|
9309
|
+
export { UpdateMJTestSuiteTestInput };
|
|
9310
|
+
let RunMJTestSuiteTestViewResult = class RunMJTestSuiteTestViewResult {
|
|
9311
|
+
Results;
|
|
9312
|
+
UserViewRunID;
|
|
9313
|
+
RowCount;
|
|
9314
|
+
TotalRowCount;
|
|
9315
|
+
ExecutionTime;
|
|
9316
|
+
ErrorMessage;
|
|
9317
|
+
Success;
|
|
9318
|
+
};
|
|
9319
|
+
__decorate([
|
|
9320
|
+
Field(() => [MJTestSuiteTest_]),
|
|
9321
|
+
__metadata("design:type", Array)
|
|
9322
|
+
], RunMJTestSuiteTestViewResult.prototype, "Results", void 0);
|
|
9323
|
+
__decorate([
|
|
9324
|
+
Field(() => String, { nullable: true }),
|
|
9325
|
+
__metadata("design:type", String)
|
|
9326
|
+
], RunMJTestSuiteTestViewResult.prototype, "UserViewRunID", void 0);
|
|
9327
|
+
__decorate([
|
|
9328
|
+
Field(() => Int, { nullable: true }),
|
|
9329
|
+
__metadata("design:type", Number)
|
|
9330
|
+
], RunMJTestSuiteTestViewResult.prototype, "RowCount", void 0);
|
|
9331
|
+
__decorate([
|
|
9332
|
+
Field(() => Int, { nullable: true }),
|
|
9333
|
+
__metadata("design:type", Number)
|
|
9334
|
+
], RunMJTestSuiteTestViewResult.prototype, "TotalRowCount", void 0);
|
|
9335
|
+
__decorate([
|
|
9336
|
+
Field(() => Int, { nullable: true }),
|
|
9337
|
+
__metadata("design:type", Number)
|
|
9338
|
+
], RunMJTestSuiteTestViewResult.prototype, "ExecutionTime", void 0);
|
|
9339
|
+
__decorate([
|
|
9340
|
+
Field({ nullable: true }),
|
|
9341
|
+
__metadata("design:type", String)
|
|
9342
|
+
], RunMJTestSuiteTestViewResult.prototype, "ErrorMessage", void 0);
|
|
9343
|
+
__decorate([
|
|
9344
|
+
Field(() => Boolean, { nullable: false }),
|
|
9345
|
+
__metadata("design:type", Boolean)
|
|
9346
|
+
], RunMJTestSuiteTestViewResult.prototype, "Success", void 0);
|
|
9347
|
+
RunMJTestSuiteTestViewResult = __decorate([
|
|
9348
|
+
ObjectType()
|
|
9349
|
+
], RunMJTestSuiteTestViewResult);
|
|
9350
|
+
export { RunMJTestSuiteTestViewResult };
|
|
9351
|
+
let MJTestSuiteTestResolver = class MJTestSuiteTestResolver extends ResolverBase {
|
|
9352
|
+
async RunMJTestSuiteTestViewByID(input, { providers, userPayload }, pubSub) {
|
|
9353
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9354
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
9355
|
+
}
|
|
9356
|
+
async RunMJTestSuiteTestViewByName(input, { providers, userPayload }, pubSub) {
|
|
9357
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9358
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
9359
|
+
}
|
|
9360
|
+
async RunMJTestSuiteTestDynamicView(input, { providers, userPayload }, pubSub) {
|
|
9361
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9362
|
+
input.EntityName = 'MJ: Test Suite Tests';
|
|
9363
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
9364
|
+
}
|
|
9365
|
+
async MJTestSuiteTest(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
9366
|
+
this.CheckUserReadPermissions('MJ: Test Suite Tests', userPayload);
|
|
9367
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
9368
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
9369
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteTests] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
9370
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
9371
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Suite Tests', rows && rows.length > 0 ? rows[0] : {});
|
|
9372
|
+
return result;
|
|
9373
|
+
}
|
|
9374
|
+
async CreateMJTestSuiteTest(input, { providers, userPayload }, pubSub) {
|
|
9375
|
+
const provider = GetReadWriteProvider(providers);
|
|
9376
|
+
return this.CreateRecord('MJ: Test Suite Tests', input, provider, userPayload, pubSub);
|
|
9377
|
+
}
|
|
9378
|
+
async UpdateMJTestSuiteTest(input, { providers, userPayload }, pubSub) {
|
|
9379
|
+
const provider = GetReadWriteProvider(providers);
|
|
9380
|
+
return this.UpdateRecord('MJ: Test Suite Tests', input, provider, userPayload, pubSub);
|
|
9381
|
+
}
|
|
9382
|
+
async DeleteMJTestSuiteTest(ID, options, { providers, userPayload }, pubSub) {
|
|
9383
|
+
const provider = GetReadWriteProvider(providers);
|
|
9384
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
9385
|
+
return this.DeleteRecord('MJ: Test Suite Tests', key, options, provider, userPayload, pubSub);
|
|
9386
|
+
}
|
|
9387
|
+
};
|
|
9388
|
+
__decorate([
|
|
9389
|
+
Query(() => RunMJTestSuiteTestViewResult),
|
|
9390
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
9391
|
+
__param(1, Ctx()),
|
|
9392
|
+
__param(2, PubSub()),
|
|
9393
|
+
__metadata("design:type", Function),
|
|
9394
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
9395
|
+
__metadata("design:returntype", Promise)
|
|
9396
|
+
], MJTestSuiteTestResolver.prototype, "RunMJTestSuiteTestViewByID", null);
|
|
9397
|
+
__decorate([
|
|
9398
|
+
Query(() => RunMJTestSuiteTestViewResult),
|
|
9399
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
9400
|
+
__param(1, Ctx()),
|
|
9401
|
+
__param(2, PubSub()),
|
|
9402
|
+
__metadata("design:type", Function),
|
|
9403
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
9404
|
+
__metadata("design:returntype", Promise)
|
|
9405
|
+
], MJTestSuiteTestResolver.prototype, "RunMJTestSuiteTestViewByName", null);
|
|
9406
|
+
__decorate([
|
|
9407
|
+
Query(() => RunMJTestSuiteTestViewResult),
|
|
9408
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
9409
|
+
__param(1, Ctx()),
|
|
9410
|
+
__param(2, PubSub()),
|
|
9411
|
+
__metadata("design:type", Function),
|
|
9412
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
9413
|
+
__metadata("design:returntype", Promise)
|
|
9414
|
+
], MJTestSuiteTestResolver.prototype, "RunMJTestSuiteTestDynamicView", null);
|
|
9415
|
+
__decorate([
|
|
9416
|
+
Query(() => MJTestSuiteTest_, { nullable: true }),
|
|
9417
|
+
__param(0, Arg('ID', () => String)),
|
|
9418
|
+
__param(1, Ctx()),
|
|
9419
|
+
__param(2, PubSub()),
|
|
9420
|
+
__metadata("design:type", Function),
|
|
9421
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
9422
|
+
__metadata("design:returntype", Promise)
|
|
9423
|
+
], MJTestSuiteTestResolver.prototype, "MJTestSuiteTest", null);
|
|
9424
|
+
__decorate([
|
|
9425
|
+
Mutation(() => MJTestSuiteTest_),
|
|
9426
|
+
__param(0, Arg('input', () => CreateMJTestSuiteTestInput)),
|
|
9427
|
+
__param(1, Ctx()),
|
|
9428
|
+
__param(2, PubSub()),
|
|
9429
|
+
__metadata("design:type", Function),
|
|
9430
|
+
__metadata("design:paramtypes", [CreateMJTestSuiteTestInput, Object, PubSubEngine]),
|
|
9431
|
+
__metadata("design:returntype", Promise)
|
|
9432
|
+
], MJTestSuiteTestResolver.prototype, "CreateMJTestSuiteTest", null);
|
|
9433
|
+
__decorate([
|
|
9434
|
+
Mutation(() => MJTestSuiteTest_),
|
|
9435
|
+
__param(0, Arg('input', () => UpdateMJTestSuiteTestInput)),
|
|
9436
|
+
__param(1, Ctx()),
|
|
9437
|
+
__param(2, PubSub()),
|
|
9438
|
+
__metadata("design:type", Function),
|
|
9439
|
+
__metadata("design:paramtypes", [UpdateMJTestSuiteTestInput, Object, PubSubEngine]),
|
|
9440
|
+
__metadata("design:returntype", Promise)
|
|
9441
|
+
], MJTestSuiteTestResolver.prototype, "UpdateMJTestSuiteTest", null);
|
|
9442
|
+
__decorate([
|
|
9443
|
+
Mutation(() => MJTestSuiteTest_),
|
|
9444
|
+
__param(0, Arg('ID', () => String)),
|
|
9445
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
9446
|
+
__param(2, Ctx()),
|
|
9447
|
+
__param(3, PubSub()),
|
|
9448
|
+
__metadata("design:type", Function),
|
|
9449
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
9450
|
+
__metadata("design:returntype", Promise)
|
|
9451
|
+
], MJTestSuiteTestResolver.prototype, "DeleteMJTestSuiteTest", null);
|
|
9452
|
+
MJTestSuiteTestResolver = __decorate([
|
|
9453
|
+
Resolver(MJTestSuiteTest_)
|
|
9454
|
+
], MJTestSuiteTestResolver);
|
|
9455
|
+
export { MJTestSuiteTestResolver };
|
|
7701
9456
|
let MJAIAgentNote_ = class MJAIAgentNote_ {
|
|
7702
9457
|
ID;
|
|
7703
9458
|
AgentID;
|
|
@@ -8159,11 +9914,11 @@ let MJEnvironment_ = class MJEnvironment_ {
|
|
|
8159
9914
|
Settings;
|
|
8160
9915
|
_mj__CreatedAt;
|
|
8161
9916
|
_mj__UpdatedAt;
|
|
8162
|
-
MJ_Collections_EnvironmentIDArray;
|
|
8163
9917
|
MJ_Projects_EnvironmentIDArray;
|
|
9918
|
+
MJ_Collections_EnvironmentIDArray;
|
|
8164
9919
|
MJ_Artifacts_EnvironmentIDArray;
|
|
8165
|
-
Dashboards_EnvironmentIDArray;
|
|
8166
9920
|
MJ_Tasks_EnvironmentIDArray;
|
|
9921
|
+
Dashboards_EnvironmentIDArray;
|
|
8167
9922
|
Reports_EnvironmentIDArray;
|
|
8168
9923
|
Conversations_EnvironmentIDArray;
|
|
8169
9924
|
};
|
|
@@ -8199,26 +9954,26 @@ __decorate([
|
|
|
8199
9954
|
MaxLength(10),
|
|
8200
9955
|
__metadata("design:type", Date)
|
|
8201
9956
|
], MJEnvironment_.prototype, "_mj__UpdatedAt", void 0);
|
|
8202
|
-
__decorate([
|
|
8203
|
-
Field(() => [MJCollection_]),
|
|
8204
|
-
__metadata("design:type", Array)
|
|
8205
|
-
], MJEnvironment_.prototype, "MJ_Collections_EnvironmentIDArray", void 0);
|
|
8206
9957
|
__decorate([
|
|
8207
9958
|
Field(() => [MJProject_]),
|
|
8208
9959
|
__metadata("design:type", Array)
|
|
8209
9960
|
], MJEnvironment_.prototype, "MJ_Projects_EnvironmentIDArray", void 0);
|
|
8210
9961
|
__decorate([
|
|
8211
|
-
Field(() => [
|
|
9962
|
+
Field(() => [MJCollection_]),
|
|
8212
9963
|
__metadata("design:type", Array)
|
|
8213
|
-
], MJEnvironment_.prototype, "
|
|
9964
|
+
], MJEnvironment_.prototype, "MJ_Collections_EnvironmentIDArray", void 0);
|
|
8214
9965
|
__decorate([
|
|
8215
|
-
Field(() => [
|
|
9966
|
+
Field(() => [MJArtifact_]),
|
|
8216
9967
|
__metadata("design:type", Array)
|
|
8217
|
-
], MJEnvironment_.prototype, "
|
|
9968
|
+
], MJEnvironment_.prototype, "MJ_Artifacts_EnvironmentIDArray", void 0);
|
|
8218
9969
|
__decorate([
|
|
8219
9970
|
Field(() => [MJTask_]),
|
|
8220
9971
|
__metadata("design:type", Array)
|
|
8221
9972
|
], MJEnvironment_.prototype, "MJ_Tasks_EnvironmentIDArray", void 0);
|
|
9973
|
+
__decorate([
|
|
9974
|
+
Field(() => [MJDashboard_]),
|
|
9975
|
+
__metadata("design:type", Array)
|
|
9976
|
+
], MJEnvironment_.prototype, "Dashboards_EnvironmentIDArray", void 0);
|
|
8222
9977
|
__decorate([
|
|
8223
9978
|
Field(() => [MJReport_]),
|
|
8224
9979
|
__metadata("design:type", Array)
|
|
@@ -8362,22 +10117,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
8362
10117
|
const result = this.MapFieldNamesToCodeNames('MJ: Environments', rows && rows.length > 0 ? rows[0] : {});
|
|
8363
10118
|
return result;
|
|
8364
10119
|
}
|
|
8365
|
-
async
|
|
8366
|
-
this.CheckUserReadPermissions('MJ:
|
|
10120
|
+
async MJ_Projects_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10121
|
+
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
8367
10122
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8368
10123
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8369
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10124
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
8370
10125
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8371
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
10126
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Projects', rows);
|
|
8372
10127
|
return result;
|
|
8373
10128
|
}
|
|
8374
|
-
async
|
|
8375
|
-
this.CheckUserReadPermissions('MJ:
|
|
10129
|
+
async MJ_Collections_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10130
|
+
this.CheckUserReadPermissions('MJ: Collections', userPayload);
|
|
8376
10131
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8377
10132
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8378
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10133
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwCollections] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Collections', userPayload, EntityPermissionType.Read, 'AND');
|
|
8379
10134
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8380
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ:
|
|
10135
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Collections', rows);
|
|
8381
10136
|
return result;
|
|
8382
10137
|
}
|
|
8383
10138
|
async MJ_Artifacts_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -8389,22 +10144,22 @@ let MJEnvironmentResolver = class MJEnvironmentResolver extends ResolverBase {
|
|
|
8389
10144
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Artifacts', rows);
|
|
8390
10145
|
return result;
|
|
8391
10146
|
}
|
|
8392
|
-
async
|
|
8393
|
-
this.CheckUserReadPermissions('
|
|
10147
|
+
async MJ_Tasks_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10148
|
+
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
8394
10149
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8395
10150
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8396
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10151
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
8397
10152
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8398
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
10153
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows);
|
|
8399
10154
|
return result;
|
|
8400
10155
|
}
|
|
8401
|
-
async
|
|
8402
|
-
this.CheckUserReadPermissions('
|
|
10156
|
+
async Dashboards_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
10157
|
+
this.CheckUserReadPermissions('Dashboards', userPayload);
|
|
8403
10158
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
8404
10159
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
8405
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
10160
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboards] WHERE [EnvironmentID]='${mjenvironment_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Dashboards', userPayload, EntityPermissionType.Read, 'AND');
|
|
8406
10161
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
8407
|
-
const result = this.ArrayMapFieldNamesToCodeNames('
|
|
10162
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Dashboards', rows);
|
|
8408
10163
|
return result;
|
|
8409
10164
|
}
|
|
8410
10165
|
async Reports_EnvironmentIDArray(mjenvironment_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -8476,23 +10231,23 @@ __decorate([
|
|
|
8476
10231
|
__metadata("design:returntype", Promise)
|
|
8477
10232
|
], MJEnvironmentResolver.prototype, "MJEnvironment", null);
|
|
8478
10233
|
__decorate([
|
|
8479
|
-
FieldResolver(() => [
|
|
10234
|
+
FieldResolver(() => [MJProject_]),
|
|
8480
10235
|
__param(0, Root()),
|
|
8481
10236
|
__param(1, Ctx()),
|
|
8482
10237
|
__param(2, PubSub()),
|
|
8483
10238
|
__metadata("design:type", Function),
|
|
8484
10239
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8485
10240
|
__metadata("design:returntype", Promise)
|
|
8486
|
-
], MJEnvironmentResolver.prototype, "
|
|
10241
|
+
], MJEnvironmentResolver.prototype, "MJ_Projects_EnvironmentIDArray", null);
|
|
8487
10242
|
__decorate([
|
|
8488
|
-
FieldResolver(() => [
|
|
10243
|
+
FieldResolver(() => [MJCollection_]),
|
|
8489
10244
|
__param(0, Root()),
|
|
8490
10245
|
__param(1, Ctx()),
|
|
8491
10246
|
__param(2, PubSub()),
|
|
8492
10247
|
__metadata("design:type", Function),
|
|
8493
10248
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8494
10249
|
__metadata("design:returntype", Promise)
|
|
8495
|
-
], MJEnvironmentResolver.prototype, "
|
|
10250
|
+
], MJEnvironmentResolver.prototype, "MJ_Collections_EnvironmentIDArray", null);
|
|
8496
10251
|
__decorate([
|
|
8497
10252
|
FieldResolver(() => [MJArtifact_]),
|
|
8498
10253
|
__param(0, Root()),
|
|
@@ -8503,23 +10258,23 @@ __decorate([
|
|
|
8503
10258
|
__metadata("design:returntype", Promise)
|
|
8504
10259
|
], MJEnvironmentResolver.prototype, "MJ_Artifacts_EnvironmentIDArray", null);
|
|
8505
10260
|
__decorate([
|
|
8506
|
-
FieldResolver(() => [
|
|
10261
|
+
FieldResolver(() => [MJTask_]),
|
|
8507
10262
|
__param(0, Root()),
|
|
8508
10263
|
__param(1, Ctx()),
|
|
8509
10264
|
__param(2, PubSub()),
|
|
8510
10265
|
__metadata("design:type", Function),
|
|
8511
10266
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8512
10267
|
__metadata("design:returntype", Promise)
|
|
8513
|
-
], MJEnvironmentResolver.prototype, "
|
|
10268
|
+
], MJEnvironmentResolver.prototype, "MJ_Tasks_EnvironmentIDArray", null);
|
|
8514
10269
|
__decorate([
|
|
8515
|
-
FieldResolver(() => [
|
|
10270
|
+
FieldResolver(() => [MJDashboard_]),
|
|
8516
10271
|
__param(0, Root()),
|
|
8517
10272
|
__param(1, Ctx()),
|
|
8518
10273
|
__param(2, PubSub()),
|
|
8519
10274
|
__metadata("design:type", Function),
|
|
8520
10275
|
__metadata("design:paramtypes", [MJEnvironment_, Object, PubSubEngine]),
|
|
8521
10276
|
__metadata("design:returntype", Promise)
|
|
8522
|
-
], MJEnvironmentResolver.prototype, "
|
|
10277
|
+
], MJEnvironmentResolver.prototype, "Dashboards_EnvironmentIDArray", null);
|
|
8523
10278
|
__decorate([
|
|
8524
10279
|
FieldResolver(() => [MJReport_]),
|
|
8525
10280
|
__param(0, Root()),
|
|
@@ -9264,6 +11019,318 @@ MJAIAgentActionResolver = __decorate([
|
|
|
9264
11019
|
Resolver(MJAIAgentAction_)
|
|
9265
11020
|
], MJAIAgentActionResolver);
|
|
9266
11021
|
export { MJAIAgentActionResolver };
|
|
11022
|
+
let MJTestRubric_ = class MJTestRubric_ {
|
|
11023
|
+
ID;
|
|
11024
|
+
TypeID;
|
|
11025
|
+
Name;
|
|
11026
|
+
Description;
|
|
11027
|
+
PromptTemplate;
|
|
11028
|
+
Criteria;
|
|
11029
|
+
Version;
|
|
11030
|
+
Status;
|
|
11031
|
+
_mj__CreatedAt;
|
|
11032
|
+
_mj__UpdatedAt;
|
|
11033
|
+
Type;
|
|
11034
|
+
};
|
|
11035
|
+
__decorate([
|
|
11036
|
+
Field(),
|
|
11037
|
+
MaxLength(16),
|
|
11038
|
+
__metadata("design:type", String)
|
|
11039
|
+
], MJTestRubric_.prototype, "ID", void 0);
|
|
11040
|
+
__decorate([
|
|
11041
|
+
Field({ description: `Foreign Key - The test type this rubric applies to (e.g., Agent Eval, Code Generation)` }),
|
|
11042
|
+
MaxLength(16),
|
|
11043
|
+
__metadata("design:type", String)
|
|
11044
|
+
], MJTestRubric_.prototype, "TypeID", void 0);
|
|
11045
|
+
__decorate([
|
|
11046
|
+
Field({ description: `Unique name for the rubric (e.g., "Component Quality Rubric v1", "Agent Response Quality")` }),
|
|
11047
|
+
MaxLength(510),
|
|
11048
|
+
__metadata("design:type", String)
|
|
11049
|
+
], MJTestRubric_.prototype, "Name", void 0);
|
|
11050
|
+
__decorate([
|
|
11051
|
+
Field({ nullable: true, description: `Description of what this rubric evaluates and when to use it` }),
|
|
11052
|
+
__metadata("design:type", String)
|
|
11053
|
+
], MJTestRubric_.prototype, "Description", void 0);
|
|
11054
|
+
__decorate([
|
|
11055
|
+
Field({ nullable: true, description: `LLM prompt template for automated judgment. Can include placeholders for test inputs/outputs (e.g., "Evaluate the following React component for correctness, UX, and maintainability...")` }),
|
|
11056
|
+
__metadata("design:type", String)
|
|
11057
|
+
], MJTestRubric_.prototype, "PromptTemplate", void 0);
|
|
11058
|
+
__decorate([
|
|
11059
|
+
Field({ nullable: true, description: `JSON object defining structured evaluation criteria with dimensions, weights, and scoring guidance (e.g., {correctness: {weight: 0.4, description: "..."}, ux: {weight: 0.3, description: "..."}})` }),
|
|
11060
|
+
__metadata("design:type", String)
|
|
11061
|
+
], MJTestRubric_.prototype, "Criteria", void 0);
|
|
11062
|
+
__decorate([
|
|
11063
|
+
Field({ nullable: true, description: `Version identifier for the rubric. Allows tracking changes and comparing results across rubric versions.` }),
|
|
11064
|
+
MaxLength(100),
|
|
11065
|
+
__metadata("design:type", String)
|
|
11066
|
+
], MJTestRubric_.prototype, "Version", void 0);
|
|
11067
|
+
__decorate([
|
|
11068
|
+
Field({ description: `Status of the rubric: Pending (under development), Active (available for use), Disabled (deprecated)` }),
|
|
11069
|
+
MaxLength(40),
|
|
11070
|
+
__metadata("design:type", String)
|
|
11071
|
+
], MJTestRubric_.prototype, "Status", void 0);
|
|
11072
|
+
__decorate([
|
|
11073
|
+
Field(),
|
|
11074
|
+
MaxLength(10),
|
|
11075
|
+
__metadata("design:type", Date)
|
|
11076
|
+
], MJTestRubric_.prototype, "_mj__CreatedAt", void 0);
|
|
11077
|
+
__decorate([
|
|
11078
|
+
Field(),
|
|
11079
|
+
MaxLength(10),
|
|
11080
|
+
__metadata("design:type", Date)
|
|
11081
|
+
], MJTestRubric_.prototype, "_mj__UpdatedAt", void 0);
|
|
11082
|
+
__decorate([
|
|
11083
|
+
Field(),
|
|
11084
|
+
MaxLength(200),
|
|
11085
|
+
__metadata("design:type", String)
|
|
11086
|
+
], MJTestRubric_.prototype, "Type", void 0);
|
|
11087
|
+
MJTestRubric_ = __decorate([
|
|
11088
|
+
ObjectType({ description: `Reusable evaluation criteria (rubrics) for consistent scoring across tests. Rubrics define structured evaluation dimensions and can include LLM prompts for automated judgment. Particularly useful for LLM-as-judge patterns where consistent evaluation criteria are critical.` })
|
|
11089
|
+
], MJTestRubric_);
|
|
11090
|
+
export { MJTestRubric_ };
|
|
11091
|
+
let CreateMJTestRubricInput = class CreateMJTestRubricInput {
|
|
11092
|
+
ID;
|
|
11093
|
+
TypeID;
|
|
11094
|
+
Name;
|
|
11095
|
+
Description;
|
|
11096
|
+
PromptTemplate;
|
|
11097
|
+
Criteria;
|
|
11098
|
+
Version;
|
|
11099
|
+
Status;
|
|
11100
|
+
};
|
|
11101
|
+
__decorate([
|
|
11102
|
+
Field({ nullable: true }),
|
|
11103
|
+
__metadata("design:type", String)
|
|
11104
|
+
], CreateMJTestRubricInput.prototype, "ID", void 0);
|
|
11105
|
+
__decorate([
|
|
11106
|
+
Field({ nullable: true }),
|
|
11107
|
+
__metadata("design:type", String)
|
|
11108
|
+
], CreateMJTestRubricInput.prototype, "TypeID", void 0);
|
|
11109
|
+
__decorate([
|
|
11110
|
+
Field({ nullable: true }),
|
|
11111
|
+
__metadata("design:type", String)
|
|
11112
|
+
], CreateMJTestRubricInput.prototype, "Name", void 0);
|
|
11113
|
+
__decorate([
|
|
11114
|
+
Field({ nullable: true }),
|
|
11115
|
+
__metadata("design:type", String)
|
|
11116
|
+
], CreateMJTestRubricInput.prototype, "Description", void 0);
|
|
11117
|
+
__decorate([
|
|
11118
|
+
Field({ nullable: true }),
|
|
11119
|
+
__metadata("design:type", String)
|
|
11120
|
+
], CreateMJTestRubricInput.prototype, "PromptTemplate", void 0);
|
|
11121
|
+
__decorate([
|
|
11122
|
+
Field({ nullable: true }),
|
|
11123
|
+
__metadata("design:type", String)
|
|
11124
|
+
], CreateMJTestRubricInput.prototype, "Criteria", void 0);
|
|
11125
|
+
__decorate([
|
|
11126
|
+
Field({ nullable: true }),
|
|
11127
|
+
__metadata("design:type", String)
|
|
11128
|
+
], CreateMJTestRubricInput.prototype, "Version", void 0);
|
|
11129
|
+
__decorate([
|
|
11130
|
+
Field({ nullable: true }),
|
|
11131
|
+
__metadata("design:type", String)
|
|
11132
|
+
], CreateMJTestRubricInput.prototype, "Status", void 0);
|
|
11133
|
+
CreateMJTestRubricInput = __decorate([
|
|
11134
|
+
InputType()
|
|
11135
|
+
], CreateMJTestRubricInput);
|
|
11136
|
+
export { CreateMJTestRubricInput };
|
|
11137
|
+
let UpdateMJTestRubricInput = class UpdateMJTestRubricInput {
|
|
11138
|
+
ID;
|
|
11139
|
+
TypeID;
|
|
11140
|
+
Name;
|
|
11141
|
+
Description;
|
|
11142
|
+
PromptTemplate;
|
|
11143
|
+
Criteria;
|
|
11144
|
+
Version;
|
|
11145
|
+
Status;
|
|
11146
|
+
OldValues___;
|
|
11147
|
+
};
|
|
11148
|
+
__decorate([
|
|
11149
|
+
Field(),
|
|
11150
|
+
__metadata("design:type", String)
|
|
11151
|
+
], UpdateMJTestRubricInput.prototype, "ID", void 0);
|
|
11152
|
+
__decorate([
|
|
11153
|
+
Field({ nullable: true }),
|
|
11154
|
+
__metadata("design:type", String)
|
|
11155
|
+
], UpdateMJTestRubricInput.prototype, "TypeID", void 0);
|
|
11156
|
+
__decorate([
|
|
11157
|
+
Field({ nullable: true }),
|
|
11158
|
+
__metadata("design:type", String)
|
|
11159
|
+
], UpdateMJTestRubricInput.prototype, "Name", void 0);
|
|
11160
|
+
__decorate([
|
|
11161
|
+
Field({ nullable: true }),
|
|
11162
|
+
__metadata("design:type", String)
|
|
11163
|
+
], UpdateMJTestRubricInput.prototype, "Description", void 0);
|
|
11164
|
+
__decorate([
|
|
11165
|
+
Field({ nullable: true }),
|
|
11166
|
+
__metadata("design:type", String)
|
|
11167
|
+
], UpdateMJTestRubricInput.prototype, "PromptTemplate", void 0);
|
|
11168
|
+
__decorate([
|
|
11169
|
+
Field({ nullable: true }),
|
|
11170
|
+
__metadata("design:type", String)
|
|
11171
|
+
], UpdateMJTestRubricInput.prototype, "Criteria", void 0);
|
|
11172
|
+
__decorate([
|
|
11173
|
+
Field({ nullable: true }),
|
|
11174
|
+
__metadata("design:type", String)
|
|
11175
|
+
], UpdateMJTestRubricInput.prototype, "Version", void 0);
|
|
11176
|
+
__decorate([
|
|
11177
|
+
Field({ nullable: true }),
|
|
11178
|
+
__metadata("design:type", String)
|
|
11179
|
+
], UpdateMJTestRubricInput.prototype, "Status", void 0);
|
|
11180
|
+
__decorate([
|
|
11181
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
11182
|
+
__metadata("design:type", Array)
|
|
11183
|
+
], UpdateMJTestRubricInput.prototype, "OldValues___", void 0);
|
|
11184
|
+
UpdateMJTestRubricInput = __decorate([
|
|
11185
|
+
InputType()
|
|
11186
|
+
], UpdateMJTestRubricInput);
|
|
11187
|
+
export { UpdateMJTestRubricInput };
|
|
11188
|
+
let RunMJTestRubricViewResult = class RunMJTestRubricViewResult {
|
|
11189
|
+
Results;
|
|
11190
|
+
UserViewRunID;
|
|
11191
|
+
RowCount;
|
|
11192
|
+
TotalRowCount;
|
|
11193
|
+
ExecutionTime;
|
|
11194
|
+
ErrorMessage;
|
|
11195
|
+
Success;
|
|
11196
|
+
};
|
|
11197
|
+
__decorate([
|
|
11198
|
+
Field(() => [MJTestRubric_]),
|
|
11199
|
+
__metadata("design:type", Array)
|
|
11200
|
+
], RunMJTestRubricViewResult.prototype, "Results", void 0);
|
|
11201
|
+
__decorate([
|
|
11202
|
+
Field(() => String, { nullable: true }),
|
|
11203
|
+
__metadata("design:type", String)
|
|
11204
|
+
], RunMJTestRubricViewResult.prototype, "UserViewRunID", void 0);
|
|
11205
|
+
__decorate([
|
|
11206
|
+
Field(() => Int, { nullable: true }),
|
|
11207
|
+
__metadata("design:type", Number)
|
|
11208
|
+
], RunMJTestRubricViewResult.prototype, "RowCount", void 0);
|
|
11209
|
+
__decorate([
|
|
11210
|
+
Field(() => Int, { nullable: true }),
|
|
11211
|
+
__metadata("design:type", Number)
|
|
11212
|
+
], RunMJTestRubricViewResult.prototype, "TotalRowCount", void 0);
|
|
11213
|
+
__decorate([
|
|
11214
|
+
Field(() => Int, { nullable: true }),
|
|
11215
|
+
__metadata("design:type", Number)
|
|
11216
|
+
], RunMJTestRubricViewResult.prototype, "ExecutionTime", void 0);
|
|
11217
|
+
__decorate([
|
|
11218
|
+
Field({ nullable: true }),
|
|
11219
|
+
__metadata("design:type", String)
|
|
11220
|
+
], RunMJTestRubricViewResult.prototype, "ErrorMessage", void 0);
|
|
11221
|
+
__decorate([
|
|
11222
|
+
Field(() => Boolean, { nullable: false }),
|
|
11223
|
+
__metadata("design:type", Boolean)
|
|
11224
|
+
], RunMJTestRubricViewResult.prototype, "Success", void 0);
|
|
11225
|
+
RunMJTestRubricViewResult = __decorate([
|
|
11226
|
+
ObjectType()
|
|
11227
|
+
], RunMJTestRubricViewResult);
|
|
11228
|
+
export { RunMJTestRubricViewResult };
|
|
11229
|
+
let MJTestRubricResolver = class MJTestRubricResolver extends ResolverBase {
|
|
11230
|
+
async RunMJTestRubricViewByID(input, { providers, userPayload }, pubSub) {
|
|
11231
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11232
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
11233
|
+
}
|
|
11234
|
+
async RunMJTestRubricViewByName(input, { providers, userPayload }, pubSub) {
|
|
11235
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11236
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
11237
|
+
}
|
|
11238
|
+
async RunMJTestRubricDynamicView(input, { providers, userPayload }, pubSub) {
|
|
11239
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11240
|
+
input.EntityName = 'MJ: Test Rubrics';
|
|
11241
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
11242
|
+
}
|
|
11243
|
+
async MJTestRubric(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
11244
|
+
this.CheckUserReadPermissions('MJ: Test Rubrics', userPayload);
|
|
11245
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
11246
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
11247
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRubrics] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Rubrics', userPayload, EntityPermissionType.Read, 'AND');
|
|
11248
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
11249
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Rubrics', rows && rows.length > 0 ? rows[0] : {});
|
|
11250
|
+
return result;
|
|
11251
|
+
}
|
|
11252
|
+
async CreateMJTestRubric(input, { providers, userPayload }, pubSub) {
|
|
11253
|
+
const provider = GetReadWriteProvider(providers);
|
|
11254
|
+
return this.CreateRecord('MJ: Test Rubrics', input, provider, userPayload, pubSub);
|
|
11255
|
+
}
|
|
11256
|
+
async UpdateMJTestRubric(input, { providers, userPayload }, pubSub) {
|
|
11257
|
+
const provider = GetReadWriteProvider(providers);
|
|
11258
|
+
return this.UpdateRecord('MJ: Test Rubrics', input, provider, userPayload, pubSub);
|
|
11259
|
+
}
|
|
11260
|
+
async DeleteMJTestRubric(ID, options, { providers, userPayload }, pubSub) {
|
|
11261
|
+
const provider = GetReadWriteProvider(providers);
|
|
11262
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
11263
|
+
return this.DeleteRecord('MJ: Test Rubrics', key, options, provider, userPayload, pubSub);
|
|
11264
|
+
}
|
|
11265
|
+
};
|
|
11266
|
+
__decorate([
|
|
11267
|
+
Query(() => RunMJTestRubricViewResult),
|
|
11268
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
11269
|
+
__param(1, Ctx()),
|
|
11270
|
+
__param(2, PubSub()),
|
|
11271
|
+
__metadata("design:type", Function),
|
|
11272
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
11273
|
+
__metadata("design:returntype", Promise)
|
|
11274
|
+
], MJTestRubricResolver.prototype, "RunMJTestRubricViewByID", null);
|
|
11275
|
+
__decorate([
|
|
11276
|
+
Query(() => RunMJTestRubricViewResult),
|
|
11277
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
11278
|
+
__param(1, Ctx()),
|
|
11279
|
+
__param(2, PubSub()),
|
|
11280
|
+
__metadata("design:type", Function),
|
|
11281
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
11282
|
+
__metadata("design:returntype", Promise)
|
|
11283
|
+
], MJTestRubricResolver.prototype, "RunMJTestRubricViewByName", null);
|
|
11284
|
+
__decorate([
|
|
11285
|
+
Query(() => RunMJTestRubricViewResult),
|
|
11286
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
11287
|
+
__param(1, Ctx()),
|
|
11288
|
+
__param(2, PubSub()),
|
|
11289
|
+
__metadata("design:type", Function),
|
|
11290
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
11291
|
+
__metadata("design:returntype", Promise)
|
|
11292
|
+
], MJTestRubricResolver.prototype, "RunMJTestRubricDynamicView", null);
|
|
11293
|
+
__decorate([
|
|
11294
|
+
Query(() => MJTestRubric_, { nullable: true }),
|
|
11295
|
+
__param(0, Arg('ID', () => String)),
|
|
11296
|
+
__param(1, Ctx()),
|
|
11297
|
+
__param(2, PubSub()),
|
|
11298
|
+
__metadata("design:type", Function),
|
|
11299
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
11300
|
+
__metadata("design:returntype", Promise)
|
|
11301
|
+
], MJTestRubricResolver.prototype, "MJTestRubric", null);
|
|
11302
|
+
__decorate([
|
|
11303
|
+
Mutation(() => MJTestRubric_),
|
|
11304
|
+
__param(0, Arg('input', () => CreateMJTestRubricInput)),
|
|
11305
|
+
__param(1, Ctx()),
|
|
11306
|
+
__param(2, PubSub()),
|
|
11307
|
+
__metadata("design:type", Function),
|
|
11308
|
+
__metadata("design:paramtypes", [CreateMJTestRubricInput, Object, PubSubEngine]),
|
|
11309
|
+
__metadata("design:returntype", Promise)
|
|
11310
|
+
], MJTestRubricResolver.prototype, "CreateMJTestRubric", null);
|
|
11311
|
+
__decorate([
|
|
11312
|
+
Mutation(() => MJTestRubric_),
|
|
11313
|
+
__param(0, Arg('input', () => UpdateMJTestRubricInput)),
|
|
11314
|
+
__param(1, Ctx()),
|
|
11315
|
+
__param(2, PubSub()),
|
|
11316
|
+
__metadata("design:type", Function),
|
|
11317
|
+
__metadata("design:paramtypes", [UpdateMJTestRubricInput, Object, PubSubEngine]),
|
|
11318
|
+
__metadata("design:returntype", Promise)
|
|
11319
|
+
], MJTestRubricResolver.prototype, "UpdateMJTestRubric", null);
|
|
11320
|
+
__decorate([
|
|
11321
|
+
Mutation(() => MJTestRubric_),
|
|
11322
|
+
__param(0, Arg('ID', () => String)),
|
|
11323
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
11324
|
+
__param(2, Ctx()),
|
|
11325
|
+
__param(3, PubSub()),
|
|
11326
|
+
__metadata("design:type", Function),
|
|
11327
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
11328
|
+
__metadata("design:returntype", Promise)
|
|
11329
|
+
], MJTestRubricResolver.prototype, "DeleteMJTestRubric", null);
|
|
11330
|
+
MJTestRubricResolver = __decorate([
|
|
11331
|
+
Resolver(MJTestRubric_)
|
|
11332
|
+
], MJTestRubricResolver);
|
|
11333
|
+
export { MJTestRubricResolver };
|
|
9267
11334
|
let MJTaskDependency_ = class MJTaskDependency_ {
|
|
9268
11335
|
ID;
|
|
9269
11336
|
TaskID;
|
|
@@ -19770,8 +21837,8 @@ let MJUser_ = class MJUser_ {
|
|
|
19770
21837
|
AIAgentRequests_ResponseByUserIDArray;
|
|
19771
21838
|
AIAgentNotes_UserIDArray;
|
|
19772
21839
|
MJ_ReportUserStates_UserIDArray;
|
|
19773
|
-
MJ_DashboardUserStates_UserIDArray;
|
|
19774
21840
|
MJ_DashboardUserPreferences_UserIDArray;
|
|
21841
|
+
MJ_DashboardUserStates_UserIDArray;
|
|
19775
21842
|
MJ_ArtifactVersions_UserIDArray;
|
|
19776
21843
|
MJ_PublicLinks_UserIDArray;
|
|
19777
21844
|
MJ_ScheduledJobRuns_ExecutedByUserIDArray;
|
|
@@ -19779,6 +21846,8 @@ let MJUser_ = class MJUser_ {
|
|
|
19779
21846
|
MJ_ArtifactPermissions_UserIDArray;
|
|
19780
21847
|
MJ_ArtifactUses_UserIDArray;
|
|
19781
21848
|
MJ_ConversationDetailRatings_UserIDArray;
|
|
21849
|
+
MJ_TestRunFeedbacks_ReviewerUserIDArray;
|
|
21850
|
+
MJ_TestSuiteRuns_RunByUserIDArray;
|
|
19782
21851
|
ResourcePermissions_UserIDArray;
|
|
19783
21852
|
AIAgentRequests_RequestForUserIDArray;
|
|
19784
21853
|
ConversationDetails_UserIDArray;
|
|
@@ -19787,6 +21856,7 @@ let MJUser_ = class MJUser_ {
|
|
|
19787
21856
|
MJ_ScheduledJobs_OwnerUserIDArray;
|
|
19788
21857
|
MJ_CollectionPermissions_SharedByUserIDArray;
|
|
19789
21858
|
MJ_ArtifactPermissions_SharedByUserIDArray;
|
|
21859
|
+
MJ_TestRuns_RunByUserIDArray;
|
|
19790
21860
|
MJ_AIAgentRuns_UserIDArray;
|
|
19791
21861
|
MJ_AIAgentPermissions_UserIDArray;
|
|
19792
21862
|
MJ_Collections_OwnerIDArray;
|
|
@@ -20047,14 +22117,14 @@ __decorate([
|
|
|
20047
22117
|
Field(() => [MJReportUserState_]),
|
|
20048
22118
|
__metadata("design:type", Array)
|
|
20049
22119
|
], MJUser_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
|
|
20050
|
-
__decorate([
|
|
20051
|
-
Field(() => [MJDashboardUserState_]),
|
|
20052
|
-
__metadata("design:type", Array)
|
|
20053
|
-
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
20054
22120
|
__decorate([
|
|
20055
22121
|
Field(() => [MJDashboardUserPreference_]),
|
|
20056
22122
|
__metadata("design:type", Array)
|
|
20057
22123
|
], MJUser_.prototype, "MJ_DashboardUserPreferences_UserIDArray", void 0);
|
|
22124
|
+
__decorate([
|
|
22125
|
+
Field(() => [MJDashboardUserState_]),
|
|
22126
|
+
__metadata("design:type", Array)
|
|
22127
|
+
], MJUser_.prototype, "MJ_DashboardUserStates_UserIDArray", void 0);
|
|
20058
22128
|
__decorate([
|
|
20059
22129
|
Field(() => [MJArtifactVersion_]),
|
|
20060
22130
|
__metadata("design:type", Array)
|
|
@@ -20083,6 +22153,14 @@ __decorate([
|
|
|
20083
22153
|
Field(() => [MJConversationDetailRating_]),
|
|
20084
22154
|
__metadata("design:type", Array)
|
|
20085
22155
|
], MJUser_.prototype, "MJ_ConversationDetailRatings_UserIDArray", void 0);
|
|
22156
|
+
__decorate([
|
|
22157
|
+
Field(() => [MJTestRunFeedback_]),
|
|
22158
|
+
__metadata("design:type", Array)
|
|
22159
|
+
], MJUser_.prototype, "MJ_TestRunFeedbacks_ReviewerUserIDArray", void 0);
|
|
22160
|
+
__decorate([
|
|
22161
|
+
Field(() => [MJTestSuiteRun_]),
|
|
22162
|
+
__metadata("design:type", Array)
|
|
22163
|
+
], MJUser_.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", void 0);
|
|
20086
22164
|
__decorate([
|
|
20087
22165
|
Field(() => [MJResourcePermission_]),
|
|
20088
22166
|
__metadata("design:type", Array)
|
|
@@ -20115,6 +22193,10 @@ __decorate([
|
|
|
20115
22193
|
Field(() => [MJArtifactPermission_]),
|
|
20116
22194
|
__metadata("design:type", Array)
|
|
20117
22195
|
], MJUser_.prototype, "MJ_ArtifactPermissions_SharedByUserIDArray", void 0);
|
|
22196
|
+
__decorate([
|
|
22197
|
+
Field(() => [MJTestRun_]),
|
|
22198
|
+
__metadata("design:type", Array)
|
|
22199
|
+
], MJUser_.prototype, "MJ_TestRuns_RunByUserIDArray", void 0);
|
|
20118
22200
|
__decorate([
|
|
20119
22201
|
Field(() => [MJAIAgentRun_]),
|
|
20120
22202
|
__metadata("design:type", Array)
|
|
@@ -20701,22 +22783,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
20701
22783
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', rows);
|
|
20702
22784
|
return result;
|
|
20703
22785
|
}
|
|
20704
|
-
async
|
|
20705
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
22786
|
+
async MJ_DashboardUserPreferences_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22787
|
+
this.CheckUserReadPermissions('MJ: Dashboard User Preferences', userPayload);
|
|
20706
22788
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20707
22789
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20708
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
22790
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserPreferences] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User Preferences', userPayload, EntityPermissionType.Read, 'AND');
|
|
20709
22791
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20710
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
22792
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User Preferences', rows);
|
|
20711
22793
|
return result;
|
|
20712
22794
|
}
|
|
20713
|
-
async
|
|
20714
|
-
this.CheckUserReadPermissions('MJ: Dashboard User
|
|
22795
|
+
async MJ_DashboardUserStates_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22796
|
+
this.CheckUserReadPermissions('MJ: Dashboard User States', userPayload);
|
|
20715
22797
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
20716
22798
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
20717
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
22799
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwDashboardUserStates] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Dashboard User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
20718
22800
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
20719
|
-
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User
|
|
22801
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Dashboard User States', rows);
|
|
20720
22802
|
return result;
|
|
20721
22803
|
}
|
|
20722
22804
|
async MJ_ArtifactVersions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -20782,6 +22864,24 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
20782
22864
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Conversation Detail Ratings', rows);
|
|
20783
22865
|
return result;
|
|
20784
22866
|
}
|
|
22867
|
+
async MJ_TestRunFeedbacks_ReviewerUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22868
|
+
this.CheckUserReadPermissions('MJ: Test Run Feedbacks', userPayload);
|
|
22869
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22870
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22871
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRunFeedbacks] WHERE [ReviewerUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
|
|
22872
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22873
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows);
|
|
22874
|
+
return result;
|
|
22875
|
+
}
|
|
22876
|
+
async MJ_TestSuiteRuns_RunByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22877
|
+
this.CheckUserReadPermissions('MJ: Test Suite Runs', userPayload);
|
|
22878
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22879
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22880
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteRuns] WHERE [RunByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
22881
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22882
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Runs', rows);
|
|
22883
|
+
return result;
|
|
22884
|
+
}
|
|
20785
22885
|
async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20786
22886
|
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
20787
22887
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -20854,6 +22954,15 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
20854
22954
|
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Artifact Permissions', rows);
|
|
20855
22955
|
return result;
|
|
20856
22956
|
}
|
|
22957
|
+
async MJ_TestRuns_RunByUserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
22958
|
+
this.CheckUserReadPermissions('MJ: Test Runs', userPayload);
|
|
22959
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
22960
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
22961
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRuns] WHERE [RunByUserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
22962
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
22963
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Runs', rows);
|
|
22964
|
+
return result;
|
|
22965
|
+
}
|
|
20857
22966
|
async MJ_AIAgentRuns_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
20858
22967
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
20859
22968
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -21300,23 +23409,23 @@ __decorate([
|
|
|
21300
23409
|
__metadata("design:returntype", Promise)
|
|
21301
23410
|
], MJUserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
|
|
21302
23411
|
__decorate([
|
|
21303
|
-
FieldResolver(() => [
|
|
23412
|
+
FieldResolver(() => [MJDashboardUserPreference_]),
|
|
21304
23413
|
__param(0, Root()),
|
|
21305
23414
|
__param(1, Ctx()),
|
|
21306
23415
|
__param(2, PubSub()),
|
|
21307
23416
|
__metadata("design:type", Function),
|
|
21308
23417
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
21309
23418
|
__metadata("design:returntype", Promise)
|
|
21310
|
-
], MJUserResolverBase.prototype, "
|
|
23419
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserPreferences_UserIDArray", null);
|
|
21311
23420
|
__decorate([
|
|
21312
|
-
FieldResolver(() => [
|
|
23421
|
+
FieldResolver(() => [MJDashboardUserState_]),
|
|
21313
23422
|
__param(0, Root()),
|
|
21314
23423
|
__param(1, Ctx()),
|
|
21315
23424
|
__param(2, PubSub()),
|
|
21316
23425
|
__metadata("design:type", Function),
|
|
21317
23426
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
21318
23427
|
__metadata("design:returntype", Promise)
|
|
21319
|
-
], MJUserResolverBase.prototype, "
|
|
23428
|
+
], MJUserResolverBase.prototype, "MJ_DashboardUserStates_UserIDArray", null);
|
|
21320
23429
|
__decorate([
|
|
21321
23430
|
FieldResolver(() => [MJArtifactVersion_]),
|
|
21322
23431
|
__param(0, Root()),
|
|
@@ -21380,6 +23489,24 @@ __decorate([
|
|
|
21380
23489
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
21381
23490
|
__metadata("design:returntype", Promise)
|
|
21382
23491
|
], MJUserResolverBase.prototype, "MJ_ConversationDetailRatings_UserIDArray", null);
|
|
23492
|
+
__decorate([
|
|
23493
|
+
FieldResolver(() => [MJTestRunFeedback_]),
|
|
23494
|
+
__param(0, Root()),
|
|
23495
|
+
__param(1, Ctx()),
|
|
23496
|
+
__param(2, PubSub()),
|
|
23497
|
+
__metadata("design:type", Function),
|
|
23498
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
23499
|
+
__metadata("design:returntype", Promise)
|
|
23500
|
+
], MJUserResolverBase.prototype, "MJ_TestRunFeedbacks_ReviewerUserIDArray", null);
|
|
23501
|
+
__decorate([
|
|
23502
|
+
FieldResolver(() => [MJTestSuiteRun_]),
|
|
23503
|
+
__param(0, Root()),
|
|
23504
|
+
__param(1, Ctx()),
|
|
23505
|
+
__param(2, PubSub()),
|
|
23506
|
+
__metadata("design:type", Function),
|
|
23507
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
23508
|
+
__metadata("design:returntype", Promise)
|
|
23509
|
+
], MJUserResolverBase.prototype, "MJ_TestSuiteRuns_RunByUserIDArray", null);
|
|
21383
23510
|
__decorate([
|
|
21384
23511
|
FieldResolver(() => [MJResourcePermission_]),
|
|
21385
23512
|
__param(0, Root()),
|
|
@@ -21452,6 +23579,15 @@ __decorate([
|
|
|
21452
23579
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
21453
23580
|
__metadata("design:returntype", Promise)
|
|
21454
23581
|
], MJUserResolverBase.prototype, "MJ_ArtifactPermissions_SharedByUserIDArray", null);
|
|
23582
|
+
__decorate([
|
|
23583
|
+
FieldResolver(() => [MJTestRun_]),
|
|
23584
|
+
__param(0, Root()),
|
|
23585
|
+
__param(1, Ctx()),
|
|
23586
|
+
__param(2, PubSub()),
|
|
23587
|
+
__metadata("design:type", Function),
|
|
23588
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
23589
|
+
__metadata("design:returntype", Promise)
|
|
23590
|
+
], MJUserResolverBase.prototype, "MJ_TestRuns_RunByUserIDArray", null);
|
|
21455
23591
|
__decorate([
|
|
21456
23592
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
21457
23593
|
__param(0, Root()),
|
|
@@ -38377,9 +40513,15 @@ let MJConversationDetail_ = class MJConversationDetail_ {
|
|
|
38377
40513
|
AgentID;
|
|
38378
40514
|
Status;
|
|
38379
40515
|
SuggestedResponses;
|
|
40516
|
+
TestRunID;
|
|
40517
|
+
ResponseForm;
|
|
40518
|
+
ActionableCommands;
|
|
40519
|
+
AutomaticCommands;
|
|
38380
40520
|
Conversation;
|
|
38381
40521
|
User;
|
|
38382
40522
|
Artifact;
|
|
40523
|
+
ArtifactVersion;
|
|
40524
|
+
Parent;
|
|
38383
40525
|
Agent;
|
|
38384
40526
|
RootParentID;
|
|
38385
40527
|
Reports_ConversationDetailIDArray;
|
|
@@ -38488,9 +40630,26 @@ __decorate([
|
|
|
38488
40630
|
__metadata("design:type", String)
|
|
38489
40631
|
], MJConversationDetail_.prototype, "Status", void 0);
|
|
38490
40632
|
__decorate([
|
|
38491
|
-
Field({ nullable: true, description: `
|
|
40633
|
+
Field({ nullable: true, description: `DEPRECATED: Use ResponseForm, ActionableCommands, and AutomaticCommands instead. Legacy field for simple text-based suggested responses. Replaced in v2.118 by more powerful structured forms and commands system. Retained for historical data only.` }),
|
|
38492
40634
|
__metadata("design:type", String)
|
|
38493
40635
|
], MJConversationDetail_.prototype, "SuggestedResponses", void 0);
|
|
40636
|
+
__decorate([
|
|
40637
|
+
Field({ nullable: true, description: `Optional Foreign Key - Links this conversation detail to a test run if this message was part of a test conversation. Allows filtering and analyzing test-specific conversation turns.` }),
|
|
40638
|
+
MaxLength(16),
|
|
40639
|
+
__metadata("design:type", String)
|
|
40640
|
+
], MJConversationDetail_.prototype, "TestRunID", void 0);
|
|
40641
|
+
__decorate([
|
|
40642
|
+
Field({ nullable: true, description: `JSON object containing agent response form definition with questions and validation rules. Supports 8 question types: text, textarea, email, number, currency, date, datetime, choices (buttongroup/radio/dropdown/checkbox). Used for collecting structured user input with proper validation.` }),
|
|
40643
|
+
__metadata("design:type", String)
|
|
40644
|
+
], MJConversationDetail_.prototype, "ResponseForm", void 0);
|
|
40645
|
+
__decorate([
|
|
40646
|
+
Field({ nullable: true, description: `JSON array of actionable commands that user can trigger (shown as clickable buttons/links). Supports open:resource (navigate to records/dashboards/reports/forms) and open:url (external links). Typically used after completing work to provide easy navigation to created/modified resources.` }),
|
|
40647
|
+
__metadata("design:type", String)
|
|
40648
|
+
], MJConversationDetail_.prototype, "ActionableCommands", void 0);
|
|
40649
|
+
__decorate([
|
|
40650
|
+
Field({ nullable: true, description: `JSON array of automatic commands that execute immediately when received (no user interaction). Supports refresh:data (refresh entity data or caches) and notification (show toast messages). Used for keeping UI in sync after agent makes changes and providing user feedback.` }),
|
|
40651
|
+
__metadata("design:type", String)
|
|
40652
|
+
], MJConversationDetail_.prototype, "AutomaticCommands", void 0);
|
|
38494
40653
|
__decorate([
|
|
38495
40654
|
Field({ nullable: true }),
|
|
38496
40655
|
MaxLength(510),
|
|
@@ -38506,6 +40665,15 @@ __decorate([
|
|
|
38506
40665
|
MaxLength(510),
|
|
38507
40666
|
__metadata("design:type", String)
|
|
38508
40667
|
], MJConversationDetail_.prototype, "Artifact", void 0);
|
|
40668
|
+
__decorate([
|
|
40669
|
+
Field({ nullable: true }),
|
|
40670
|
+
MaxLength(510),
|
|
40671
|
+
__metadata("design:type", String)
|
|
40672
|
+
], MJConversationDetail_.prototype, "ArtifactVersion", void 0);
|
|
40673
|
+
__decorate([
|
|
40674
|
+
Field({ nullable: true }),
|
|
40675
|
+
__metadata("design:type", String)
|
|
40676
|
+
], MJConversationDetail_.prototype, "Parent", void 0);
|
|
38509
40677
|
__decorate([
|
|
38510
40678
|
Field({ nullable: true }),
|
|
38511
40679
|
MaxLength(510),
|
|
@@ -38573,6 +40741,10 @@ let CreateMJConversationDetailInput = class CreateMJConversationDetailInput {
|
|
|
38573
40741
|
AgentID;
|
|
38574
40742
|
Status;
|
|
38575
40743
|
SuggestedResponses;
|
|
40744
|
+
TestRunID;
|
|
40745
|
+
ResponseForm;
|
|
40746
|
+
ActionableCommands;
|
|
40747
|
+
AutomaticCommands;
|
|
38576
40748
|
};
|
|
38577
40749
|
__decorate([
|
|
38578
40750
|
Field({ nullable: true }),
|
|
@@ -38654,6 +40826,22 @@ __decorate([
|
|
|
38654
40826
|
Field({ nullable: true }),
|
|
38655
40827
|
__metadata("design:type", String)
|
|
38656
40828
|
], CreateMJConversationDetailInput.prototype, "SuggestedResponses", void 0);
|
|
40829
|
+
__decorate([
|
|
40830
|
+
Field({ nullable: true }),
|
|
40831
|
+
__metadata("design:type", String)
|
|
40832
|
+
], CreateMJConversationDetailInput.prototype, "TestRunID", void 0);
|
|
40833
|
+
__decorate([
|
|
40834
|
+
Field({ nullable: true }),
|
|
40835
|
+
__metadata("design:type", String)
|
|
40836
|
+
], CreateMJConversationDetailInput.prototype, "ResponseForm", void 0);
|
|
40837
|
+
__decorate([
|
|
40838
|
+
Field({ nullable: true }),
|
|
40839
|
+
__metadata("design:type", String)
|
|
40840
|
+
], CreateMJConversationDetailInput.prototype, "ActionableCommands", void 0);
|
|
40841
|
+
__decorate([
|
|
40842
|
+
Field({ nullable: true }),
|
|
40843
|
+
__metadata("design:type", String)
|
|
40844
|
+
], CreateMJConversationDetailInput.prototype, "AutomaticCommands", void 0);
|
|
38657
40845
|
CreateMJConversationDetailInput = __decorate([
|
|
38658
40846
|
InputType()
|
|
38659
40847
|
], CreateMJConversationDetailInput);
|
|
@@ -38679,6 +40867,10 @@ let UpdateMJConversationDetailInput = class UpdateMJConversationDetailInput {
|
|
|
38679
40867
|
AgentID;
|
|
38680
40868
|
Status;
|
|
38681
40869
|
SuggestedResponses;
|
|
40870
|
+
TestRunID;
|
|
40871
|
+
ResponseForm;
|
|
40872
|
+
ActionableCommands;
|
|
40873
|
+
AutomaticCommands;
|
|
38682
40874
|
OldValues___;
|
|
38683
40875
|
};
|
|
38684
40876
|
__decorate([
|
|
@@ -38761,6 +40953,22 @@ __decorate([
|
|
|
38761
40953
|
Field({ nullable: true }),
|
|
38762
40954
|
__metadata("design:type", String)
|
|
38763
40955
|
], UpdateMJConversationDetailInput.prototype, "SuggestedResponses", void 0);
|
|
40956
|
+
__decorate([
|
|
40957
|
+
Field({ nullable: true }),
|
|
40958
|
+
__metadata("design:type", String)
|
|
40959
|
+
], UpdateMJConversationDetailInput.prototype, "TestRunID", void 0);
|
|
40960
|
+
__decorate([
|
|
40961
|
+
Field({ nullable: true }),
|
|
40962
|
+
__metadata("design:type", String)
|
|
40963
|
+
], UpdateMJConversationDetailInput.prototype, "ResponseForm", void 0);
|
|
40964
|
+
__decorate([
|
|
40965
|
+
Field({ nullable: true }),
|
|
40966
|
+
__metadata("design:type", String)
|
|
40967
|
+
], UpdateMJConversationDetailInput.prototype, "ActionableCommands", void 0);
|
|
40968
|
+
__decorate([
|
|
40969
|
+
Field({ nullable: true }),
|
|
40970
|
+
__metadata("design:type", String)
|
|
40971
|
+
], UpdateMJConversationDetailInput.prototype, "AutomaticCommands", void 0);
|
|
38764
40972
|
__decorate([
|
|
38765
40973
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
38766
40974
|
__metadata("design:type", Array)
|
|
@@ -39076,6 +41284,7 @@ let MJConversation_ = class MJConversation_ {
|
|
|
39076
41284
|
EnvironmentID;
|
|
39077
41285
|
ProjectID;
|
|
39078
41286
|
IsPinned;
|
|
41287
|
+
TestRunID;
|
|
39079
41288
|
User;
|
|
39080
41289
|
LinkedEntity;
|
|
39081
41290
|
DataContext;
|
|
@@ -39165,6 +41374,11 @@ __decorate([
|
|
|
39165
41374
|
Field(() => Boolean, { description: `Indicates if this conversation is pinned to the top of lists` }),
|
|
39166
41375
|
__metadata("design:type", Boolean)
|
|
39167
41376
|
], MJConversation_.prototype, "IsPinned", void 0);
|
|
41377
|
+
__decorate([
|
|
41378
|
+
Field({ nullable: true, description: `Optional Foreign Key - Links this conversation to a test run if this conversation was generated as part of a test. Enables tracking test conversations separately from production conversations.` }),
|
|
41379
|
+
MaxLength(16),
|
|
41380
|
+
__metadata("design:type", String)
|
|
41381
|
+
], MJConversation_.prototype, "TestRunID", void 0);
|
|
39168
41382
|
__decorate([
|
|
39169
41383
|
Field(),
|
|
39170
41384
|
MaxLength(200),
|
|
@@ -39233,6 +41447,7 @@ let CreateMJConversationInput = class CreateMJConversationInput {
|
|
|
39233
41447
|
EnvironmentID;
|
|
39234
41448
|
ProjectID;
|
|
39235
41449
|
IsPinned;
|
|
41450
|
+
TestRunID;
|
|
39236
41451
|
};
|
|
39237
41452
|
__decorate([
|
|
39238
41453
|
Field({ nullable: true }),
|
|
@@ -39290,6 +41505,10 @@ __decorate([
|
|
|
39290
41505
|
Field(() => Boolean, { nullable: true }),
|
|
39291
41506
|
__metadata("design:type", Boolean)
|
|
39292
41507
|
], CreateMJConversationInput.prototype, "IsPinned", void 0);
|
|
41508
|
+
__decorate([
|
|
41509
|
+
Field({ nullable: true }),
|
|
41510
|
+
__metadata("design:type", String)
|
|
41511
|
+
], CreateMJConversationInput.prototype, "TestRunID", void 0);
|
|
39293
41512
|
CreateMJConversationInput = __decorate([
|
|
39294
41513
|
InputType()
|
|
39295
41514
|
], CreateMJConversationInput);
|
|
@@ -39309,6 +41528,7 @@ let UpdateMJConversationInput = class UpdateMJConversationInput {
|
|
|
39309
41528
|
EnvironmentID;
|
|
39310
41529
|
ProjectID;
|
|
39311
41530
|
IsPinned;
|
|
41531
|
+
TestRunID;
|
|
39312
41532
|
OldValues___;
|
|
39313
41533
|
};
|
|
39314
41534
|
__decorate([
|
|
@@ -39367,6 +41587,10 @@ __decorate([
|
|
|
39367
41587
|
Field(() => Boolean, { nullable: true }),
|
|
39368
41588
|
__metadata("design:type", Boolean)
|
|
39369
41589
|
], UpdateMJConversationInput.prototype, "IsPinned", void 0);
|
|
41590
|
+
__decorate([
|
|
41591
|
+
Field({ nullable: true }),
|
|
41592
|
+
__metadata("design:type", String)
|
|
41593
|
+
], UpdateMJConversationInput.prototype, "TestRunID", void 0);
|
|
39370
41594
|
__decorate([
|
|
39371
41595
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
39372
41596
|
__metadata("design:type", Array)
|
|
@@ -61543,122 +63767,664 @@ let MJResourceLink_ = class MJResourceLink_ {
|
|
|
61543
63767
|
ResourceType;
|
|
61544
63768
|
};
|
|
61545
63769
|
__decorate([
|
|
61546
|
-
Field({ description: `Unique identifier for each resource link` }),
|
|
61547
|
-
MaxLength(16),
|
|
63770
|
+
Field({ description: `Unique identifier for each resource link` }),
|
|
63771
|
+
MaxLength(16),
|
|
63772
|
+
__metadata("design:type", String)
|
|
63773
|
+
], MJResourceLink_.prototype, "ID", void 0);
|
|
63774
|
+
__decorate([
|
|
63775
|
+
Field({ description: `Foreign key to the user linking the resource` }),
|
|
63776
|
+
MaxLength(16),
|
|
63777
|
+
__metadata("design:type", String)
|
|
63778
|
+
], MJResourceLink_.prototype, "UserID", void 0);
|
|
63779
|
+
__decorate([
|
|
63780
|
+
Field({ description: `Foreign key to the resource type (view, dashboard, etc.)` }),
|
|
63781
|
+
MaxLength(16),
|
|
63782
|
+
__metadata("design:type", String)
|
|
63783
|
+
], MJResourceLink_.prototype, "ResourceTypeID", void 0);
|
|
63784
|
+
__decorate([
|
|
63785
|
+
Field({ description: `ID of the specific resource being linked` }),
|
|
63786
|
+
MaxLength(510),
|
|
63787
|
+
__metadata("design:type", String)
|
|
63788
|
+
], MJResourceLink_.prototype, "ResourceRecordID", void 0);
|
|
63789
|
+
__decorate([
|
|
63790
|
+
Field({ nullable: true, description: `Optional folder where the user organizes the linked resource` }),
|
|
63791
|
+
MaxLength(510),
|
|
63792
|
+
__metadata("design:type", String)
|
|
63793
|
+
], MJResourceLink_.prototype, "FolderID", void 0);
|
|
63794
|
+
__decorate([
|
|
63795
|
+
Field(),
|
|
63796
|
+
MaxLength(10),
|
|
63797
|
+
__metadata("design:type", Date)
|
|
63798
|
+
], MJResourceLink_.prototype, "_mj__CreatedAt", void 0);
|
|
63799
|
+
__decorate([
|
|
63800
|
+
Field(),
|
|
63801
|
+
MaxLength(10),
|
|
63802
|
+
__metadata("design:type", Date)
|
|
63803
|
+
], MJResourceLink_.prototype, "_mj__UpdatedAt", void 0);
|
|
63804
|
+
__decorate([
|
|
63805
|
+
Field(),
|
|
63806
|
+
MaxLength(200),
|
|
63807
|
+
__metadata("design:type", String)
|
|
63808
|
+
], MJResourceLink_.prototype, "User", void 0);
|
|
63809
|
+
__decorate([
|
|
63810
|
+
Field(),
|
|
63811
|
+
MaxLength(510),
|
|
63812
|
+
__metadata("design:type", String)
|
|
63813
|
+
], MJResourceLink_.prototype, "ResourceType", void 0);
|
|
63814
|
+
MJResourceLink_ = __decorate([
|
|
63815
|
+
ObjectType({ description: `Table to track user links to shared resources such as views, dashboards, etc.` })
|
|
63816
|
+
], MJResourceLink_);
|
|
63817
|
+
export { MJResourceLink_ };
|
|
63818
|
+
let CreateMJResourceLinkInput = class CreateMJResourceLinkInput {
|
|
63819
|
+
ID;
|
|
63820
|
+
UserID;
|
|
63821
|
+
ResourceTypeID;
|
|
63822
|
+
ResourceRecordID;
|
|
63823
|
+
FolderID;
|
|
63824
|
+
};
|
|
63825
|
+
__decorate([
|
|
63826
|
+
Field({ nullable: true }),
|
|
63827
|
+
__metadata("design:type", String)
|
|
63828
|
+
], CreateMJResourceLinkInput.prototype, "ID", void 0);
|
|
63829
|
+
__decorate([
|
|
63830
|
+
Field({ nullable: true }),
|
|
63831
|
+
__metadata("design:type", String)
|
|
63832
|
+
], CreateMJResourceLinkInput.prototype, "UserID", void 0);
|
|
63833
|
+
__decorate([
|
|
63834
|
+
Field({ nullable: true }),
|
|
63835
|
+
__metadata("design:type", String)
|
|
63836
|
+
], CreateMJResourceLinkInput.prototype, "ResourceTypeID", void 0);
|
|
63837
|
+
__decorate([
|
|
63838
|
+
Field({ nullable: true }),
|
|
63839
|
+
__metadata("design:type", String)
|
|
63840
|
+
], CreateMJResourceLinkInput.prototype, "ResourceRecordID", void 0);
|
|
63841
|
+
__decorate([
|
|
63842
|
+
Field({ nullable: true }),
|
|
63843
|
+
__metadata("design:type", String)
|
|
63844
|
+
], CreateMJResourceLinkInput.prototype, "FolderID", void 0);
|
|
63845
|
+
CreateMJResourceLinkInput = __decorate([
|
|
63846
|
+
InputType()
|
|
63847
|
+
], CreateMJResourceLinkInput);
|
|
63848
|
+
export { CreateMJResourceLinkInput };
|
|
63849
|
+
let UpdateMJResourceLinkInput = class UpdateMJResourceLinkInput {
|
|
63850
|
+
ID;
|
|
63851
|
+
UserID;
|
|
63852
|
+
ResourceTypeID;
|
|
63853
|
+
ResourceRecordID;
|
|
63854
|
+
FolderID;
|
|
63855
|
+
OldValues___;
|
|
63856
|
+
};
|
|
63857
|
+
__decorate([
|
|
63858
|
+
Field(),
|
|
63859
|
+
__metadata("design:type", String)
|
|
63860
|
+
], UpdateMJResourceLinkInput.prototype, "ID", void 0);
|
|
63861
|
+
__decorate([
|
|
63862
|
+
Field({ nullable: true }),
|
|
63863
|
+
__metadata("design:type", String)
|
|
63864
|
+
], UpdateMJResourceLinkInput.prototype, "UserID", void 0);
|
|
63865
|
+
__decorate([
|
|
63866
|
+
Field({ nullable: true }),
|
|
63867
|
+
__metadata("design:type", String)
|
|
63868
|
+
], UpdateMJResourceLinkInput.prototype, "ResourceTypeID", void 0);
|
|
63869
|
+
__decorate([
|
|
63870
|
+
Field({ nullable: true }),
|
|
63871
|
+
__metadata("design:type", String)
|
|
63872
|
+
], UpdateMJResourceLinkInput.prototype, "ResourceRecordID", void 0);
|
|
63873
|
+
__decorate([
|
|
63874
|
+
Field({ nullable: true }),
|
|
63875
|
+
__metadata("design:type", String)
|
|
63876
|
+
], UpdateMJResourceLinkInput.prototype, "FolderID", void 0);
|
|
63877
|
+
__decorate([
|
|
63878
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
63879
|
+
__metadata("design:type", Array)
|
|
63880
|
+
], UpdateMJResourceLinkInput.prototype, "OldValues___", void 0);
|
|
63881
|
+
UpdateMJResourceLinkInput = __decorate([
|
|
63882
|
+
InputType()
|
|
63883
|
+
], UpdateMJResourceLinkInput);
|
|
63884
|
+
export { UpdateMJResourceLinkInput };
|
|
63885
|
+
let RunMJResourceLinkViewResult = class RunMJResourceLinkViewResult {
|
|
63886
|
+
Results;
|
|
63887
|
+
UserViewRunID;
|
|
63888
|
+
RowCount;
|
|
63889
|
+
TotalRowCount;
|
|
63890
|
+
ExecutionTime;
|
|
63891
|
+
ErrorMessage;
|
|
63892
|
+
Success;
|
|
63893
|
+
};
|
|
63894
|
+
__decorate([
|
|
63895
|
+
Field(() => [MJResourceLink_]),
|
|
63896
|
+
__metadata("design:type", Array)
|
|
63897
|
+
], RunMJResourceLinkViewResult.prototype, "Results", void 0);
|
|
63898
|
+
__decorate([
|
|
63899
|
+
Field(() => String, { nullable: true }),
|
|
63900
|
+
__metadata("design:type", String)
|
|
63901
|
+
], RunMJResourceLinkViewResult.prototype, "UserViewRunID", void 0);
|
|
63902
|
+
__decorate([
|
|
63903
|
+
Field(() => Int, { nullable: true }),
|
|
63904
|
+
__metadata("design:type", Number)
|
|
63905
|
+
], RunMJResourceLinkViewResult.prototype, "RowCount", void 0);
|
|
63906
|
+
__decorate([
|
|
63907
|
+
Field(() => Int, { nullable: true }),
|
|
63908
|
+
__metadata("design:type", Number)
|
|
63909
|
+
], RunMJResourceLinkViewResult.prototype, "TotalRowCount", void 0);
|
|
63910
|
+
__decorate([
|
|
63911
|
+
Field(() => Int, { nullable: true }),
|
|
63912
|
+
__metadata("design:type", Number)
|
|
63913
|
+
], RunMJResourceLinkViewResult.prototype, "ExecutionTime", void 0);
|
|
63914
|
+
__decorate([
|
|
63915
|
+
Field({ nullable: true }),
|
|
63916
|
+
__metadata("design:type", String)
|
|
63917
|
+
], RunMJResourceLinkViewResult.prototype, "ErrorMessage", void 0);
|
|
63918
|
+
__decorate([
|
|
63919
|
+
Field(() => Boolean, { nullable: false }),
|
|
63920
|
+
__metadata("design:type", Boolean)
|
|
63921
|
+
], RunMJResourceLinkViewResult.prototype, "Success", void 0);
|
|
63922
|
+
RunMJResourceLinkViewResult = __decorate([
|
|
63923
|
+
ObjectType()
|
|
63924
|
+
], RunMJResourceLinkViewResult);
|
|
63925
|
+
export { RunMJResourceLinkViewResult };
|
|
63926
|
+
let MJResourceLinkResolver = class MJResourceLinkResolver extends ResolverBase {
|
|
63927
|
+
async RunMJResourceLinkViewByID(input, { providers, userPayload }, pubSub) {
|
|
63928
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63929
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
63930
|
+
}
|
|
63931
|
+
async RunMJResourceLinkViewByName(input, { providers, userPayload }, pubSub) {
|
|
63932
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63933
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
63934
|
+
}
|
|
63935
|
+
async RunMJResourceLinkDynamicView(input, { providers, userPayload }, pubSub) {
|
|
63936
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63937
|
+
input.EntityName = 'Resource Links';
|
|
63938
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
63939
|
+
}
|
|
63940
|
+
async MJResourceLink(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
63941
|
+
this.CheckUserReadPermissions('Resource Links', userPayload);
|
|
63942
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
63943
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
63944
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwResourceLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Resource Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
63945
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
63946
|
+
const result = this.MapFieldNamesToCodeNames('Resource Links', rows && rows.length > 0 ? rows[0] : {});
|
|
63947
|
+
return result;
|
|
63948
|
+
}
|
|
63949
|
+
async CreateMJResourceLink(input, { providers, userPayload }, pubSub) {
|
|
63950
|
+
const provider = GetReadWriteProvider(providers);
|
|
63951
|
+
return this.CreateRecord('Resource Links', input, provider, userPayload, pubSub);
|
|
63952
|
+
}
|
|
63953
|
+
async UpdateMJResourceLink(input, { providers, userPayload }, pubSub) {
|
|
63954
|
+
const provider = GetReadWriteProvider(providers);
|
|
63955
|
+
return this.UpdateRecord('Resource Links', input, provider, userPayload, pubSub);
|
|
63956
|
+
}
|
|
63957
|
+
async DeleteMJResourceLink(ID, options, { providers, userPayload }, pubSub) {
|
|
63958
|
+
const provider = GetReadWriteProvider(providers);
|
|
63959
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
63960
|
+
return this.DeleteRecord('Resource Links', key, options, provider, userPayload, pubSub);
|
|
63961
|
+
}
|
|
63962
|
+
};
|
|
63963
|
+
__decorate([
|
|
63964
|
+
Query(() => RunMJResourceLinkViewResult),
|
|
63965
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
63966
|
+
__param(1, Ctx()),
|
|
63967
|
+
__param(2, PubSub()),
|
|
63968
|
+
__metadata("design:type", Function),
|
|
63969
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
63970
|
+
__metadata("design:returntype", Promise)
|
|
63971
|
+
], MJResourceLinkResolver.prototype, "RunMJResourceLinkViewByID", null);
|
|
63972
|
+
__decorate([
|
|
63973
|
+
Query(() => RunMJResourceLinkViewResult),
|
|
63974
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
63975
|
+
__param(1, Ctx()),
|
|
63976
|
+
__param(2, PubSub()),
|
|
63977
|
+
__metadata("design:type", Function),
|
|
63978
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
63979
|
+
__metadata("design:returntype", Promise)
|
|
63980
|
+
], MJResourceLinkResolver.prototype, "RunMJResourceLinkViewByName", null);
|
|
63981
|
+
__decorate([
|
|
63982
|
+
Query(() => RunMJResourceLinkViewResult),
|
|
63983
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
63984
|
+
__param(1, Ctx()),
|
|
63985
|
+
__param(2, PubSub()),
|
|
63986
|
+
__metadata("design:type", Function),
|
|
63987
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
63988
|
+
__metadata("design:returntype", Promise)
|
|
63989
|
+
], MJResourceLinkResolver.prototype, "RunMJResourceLinkDynamicView", null);
|
|
63990
|
+
__decorate([
|
|
63991
|
+
Query(() => MJResourceLink_, { nullable: true }),
|
|
63992
|
+
__param(0, Arg('ID', () => String)),
|
|
63993
|
+
__param(1, Ctx()),
|
|
63994
|
+
__param(2, PubSub()),
|
|
63995
|
+
__metadata("design:type", Function),
|
|
63996
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
63997
|
+
__metadata("design:returntype", Promise)
|
|
63998
|
+
], MJResourceLinkResolver.prototype, "MJResourceLink", null);
|
|
63999
|
+
__decorate([
|
|
64000
|
+
Mutation(() => MJResourceLink_),
|
|
64001
|
+
__param(0, Arg('input', () => CreateMJResourceLinkInput)),
|
|
64002
|
+
__param(1, Ctx()),
|
|
64003
|
+
__param(2, PubSub()),
|
|
64004
|
+
__metadata("design:type", Function),
|
|
64005
|
+
__metadata("design:paramtypes", [CreateMJResourceLinkInput, Object, PubSubEngine]),
|
|
64006
|
+
__metadata("design:returntype", Promise)
|
|
64007
|
+
], MJResourceLinkResolver.prototype, "CreateMJResourceLink", null);
|
|
64008
|
+
__decorate([
|
|
64009
|
+
Mutation(() => MJResourceLink_),
|
|
64010
|
+
__param(0, Arg('input', () => UpdateMJResourceLinkInput)),
|
|
64011
|
+
__param(1, Ctx()),
|
|
64012
|
+
__param(2, PubSub()),
|
|
64013
|
+
__metadata("design:type", Function),
|
|
64014
|
+
__metadata("design:paramtypes", [UpdateMJResourceLinkInput, Object, PubSubEngine]),
|
|
64015
|
+
__metadata("design:returntype", Promise)
|
|
64016
|
+
], MJResourceLinkResolver.prototype, "UpdateMJResourceLink", null);
|
|
64017
|
+
__decorate([
|
|
64018
|
+
Mutation(() => MJResourceLink_),
|
|
64019
|
+
__param(0, Arg('ID', () => String)),
|
|
64020
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
64021
|
+
__param(2, Ctx()),
|
|
64022
|
+
__param(3, PubSub()),
|
|
64023
|
+
__metadata("design:type", Function),
|
|
64024
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
64025
|
+
__metadata("design:returntype", Promise)
|
|
64026
|
+
], MJResourceLinkResolver.prototype, "DeleteMJResourceLink", null);
|
|
64027
|
+
MJResourceLinkResolver = __decorate([
|
|
64028
|
+
Resolver(MJResourceLink_)
|
|
64029
|
+
], MJResourceLinkResolver);
|
|
64030
|
+
export { MJResourceLinkResolver };
|
|
64031
|
+
let MJTestRun_ = class MJTestRun_ {
|
|
64032
|
+
ID;
|
|
64033
|
+
TestID;
|
|
64034
|
+
TestSuiteRunID;
|
|
64035
|
+
RunByUserID;
|
|
64036
|
+
Sequence;
|
|
64037
|
+
TargetType;
|
|
64038
|
+
TargetLogID;
|
|
64039
|
+
Status;
|
|
64040
|
+
StartedAt;
|
|
64041
|
+
CompletedAt;
|
|
64042
|
+
DurationSeconds;
|
|
64043
|
+
InputData;
|
|
64044
|
+
ExpectedOutputData;
|
|
64045
|
+
ActualOutputData;
|
|
64046
|
+
PassedChecks;
|
|
64047
|
+
FailedChecks;
|
|
64048
|
+
TotalChecks;
|
|
64049
|
+
Score;
|
|
64050
|
+
CostUSD;
|
|
64051
|
+
ErrorMessage;
|
|
64052
|
+
ResultDetails;
|
|
64053
|
+
_mj__CreatedAt;
|
|
64054
|
+
_mj__UpdatedAt;
|
|
64055
|
+
Test;
|
|
64056
|
+
RunByUser;
|
|
64057
|
+
MJ_TestRunFeedbacks_TestRunIDArray;
|
|
64058
|
+
MJ_AIPromptRuns_TestRunIDArray;
|
|
64059
|
+
MJ_AIAgentRuns_TestRunIDArray;
|
|
64060
|
+
Conversations_TestRunIDArray;
|
|
64061
|
+
ConversationDetails_TestRunIDArray;
|
|
64062
|
+
};
|
|
64063
|
+
__decorate([
|
|
64064
|
+
Field(),
|
|
64065
|
+
MaxLength(16),
|
|
64066
|
+
__metadata("design:type", String)
|
|
64067
|
+
], MJTestRun_.prototype, "ID", void 0);
|
|
64068
|
+
__decorate([
|
|
64069
|
+
Field({ description: `Foreign Key - The test definition that was executed` }),
|
|
64070
|
+
MaxLength(16),
|
|
64071
|
+
__metadata("design:type", String)
|
|
64072
|
+
], MJTestRun_.prototype, "TestID", void 0);
|
|
64073
|
+
__decorate([
|
|
64074
|
+
Field({ nullable: true, description: `Foreign Key - Optional parent suite run if this test was part of a suite execution. NULL for standalone test runs.` }),
|
|
64075
|
+
MaxLength(16),
|
|
64076
|
+
__metadata("design:type", String)
|
|
64077
|
+
], MJTestRun_.prototype, "TestSuiteRunID", void 0);
|
|
64078
|
+
__decorate([
|
|
64079
|
+
Field({ description: `Foreign Key - The user who triggered the test run (could be system user for automated runs)` }),
|
|
64080
|
+
MaxLength(16),
|
|
64081
|
+
__metadata("design:type", String)
|
|
64082
|
+
], MJTestRun_.prototype, "RunByUserID", void 0);
|
|
64083
|
+
__decorate([
|
|
64084
|
+
Field(() => Int, { nullable: true, description: `Execution sequence within the suite run. Indicates order of execution for tests in the same suite.` }),
|
|
64085
|
+
__metadata("design:type", Number)
|
|
64086
|
+
], MJTestRun_.prototype, "Sequence", void 0);
|
|
64087
|
+
__decorate([
|
|
64088
|
+
Field({ nullable: true, description: `Type of the target being tested (e.g., "Agent Run", "Workflow Run", "Code Generation"). Polymorphic discriminator for TargetLogID.` }),
|
|
64089
|
+
MaxLength(200),
|
|
64090
|
+
__metadata("design:type", String)
|
|
64091
|
+
], MJTestRun_.prototype, "TargetType", void 0);
|
|
64092
|
+
__decorate([
|
|
64093
|
+
Field({ nullable: true, description: `ID of the target execution log (e.g., AIAgentRun.ID, WorkflowRun.ID). This is a soft FK - the actual entity depends on TargetType. The target entity should have a reverse FK back to TestRun for bidirectional navigation.` }),
|
|
64094
|
+
MaxLength(16),
|
|
64095
|
+
__metadata("design:type", String)
|
|
64096
|
+
], MJTestRun_.prototype, "TargetLogID", void 0);
|
|
64097
|
+
__decorate([
|
|
64098
|
+
Field({ description: `Current status of the test run: Pending (queued), Running (in progress), Passed (all checks passed), Failed (at least one check failed), Skipped (not executed), Error (execution error before validation)` }),
|
|
64099
|
+
MaxLength(40),
|
|
64100
|
+
__metadata("design:type", String)
|
|
64101
|
+
], MJTestRun_.prototype, "Status", void 0);
|
|
64102
|
+
__decorate([
|
|
64103
|
+
Field({ nullable: true, description: `Timestamp when the test run started execution` }),
|
|
64104
|
+
MaxLength(8),
|
|
64105
|
+
__metadata("design:type", Date)
|
|
64106
|
+
], MJTestRun_.prototype, "StartedAt", void 0);
|
|
64107
|
+
__decorate([
|
|
64108
|
+
Field({ nullable: true, description: `Timestamp when the test run completed` }),
|
|
64109
|
+
MaxLength(8),
|
|
64110
|
+
__metadata("design:type", Date)
|
|
64111
|
+
], MJTestRun_.prototype, "CompletedAt", void 0);
|
|
64112
|
+
__decorate([
|
|
64113
|
+
Field(() => Float, { nullable: true, description: `Execution time in seconds for this test` }),
|
|
64114
|
+
__metadata("design:type", Number)
|
|
64115
|
+
], MJTestRun_.prototype, "DurationSeconds", void 0);
|
|
64116
|
+
__decorate([
|
|
64117
|
+
Field({ nullable: true, description: `JSON object with the actual inputs used for this test run (may differ from test definition if parameterized)` }),
|
|
64118
|
+
__metadata("design:type", String)
|
|
64119
|
+
], MJTestRun_.prototype, "InputData", void 0);
|
|
64120
|
+
__decorate([
|
|
64121
|
+
Field({ nullable: true, description: `JSON object with the expected outputs/outcomes for this test run` }),
|
|
64122
|
+
__metadata("design:type", String)
|
|
64123
|
+
], MJTestRun_.prototype, "ExpectedOutputData", void 0);
|
|
64124
|
+
__decorate([
|
|
64125
|
+
Field({ nullable: true, description: `JSON object with the actual outputs produced by the test execution` }),
|
|
64126
|
+
__metadata("design:type", String)
|
|
64127
|
+
], MJTestRun_.prototype, "ActualOutputData", void 0);
|
|
64128
|
+
__decorate([
|
|
64129
|
+
Field(() => Int, { nullable: true, description: `Number of validation checks that passed` }),
|
|
64130
|
+
__metadata("design:type", Number)
|
|
64131
|
+
], MJTestRun_.prototype, "PassedChecks", void 0);
|
|
64132
|
+
__decorate([
|
|
64133
|
+
Field(() => Int, { nullable: true, description: `Number of validation checks that failed` }),
|
|
64134
|
+
__metadata("design:type", Number)
|
|
64135
|
+
], MJTestRun_.prototype, "FailedChecks", void 0);
|
|
64136
|
+
__decorate([
|
|
64137
|
+
Field(() => Int, { nullable: true, description: `Total number of validation checks performed` }),
|
|
64138
|
+
__metadata("design:type", Number)
|
|
64139
|
+
], MJTestRun_.prototype, "TotalChecks", void 0);
|
|
64140
|
+
__decorate([
|
|
64141
|
+
Field(() => Float, { nullable: true, description: `Overall test score from 0.0000 to 1.0000 (0-100%). Calculated by test driver based on passed/failed checks and weights.` }),
|
|
64142
|
+
__metadata("design:type", Number)
|
|
64143
|
+
], MJTestRun_.prototype, "Score", void 0);
|
|
64144
|
+
__decorate([
|
|
64145
|
+
Field(() => Float, { nullable: true, description: `Cost in USD for running this test (e.g., LLM token costs, compute resources)` }),
|
|
64146
|
+
__metadata("design:type", Number)
|
|
64147
|
+
], MJTestRun_.prototype, "CostUSD", void 0);
|
|
64148
|
+
__decorate([
|
|
64149
|
+
Field({ nullable: true, description: `Error message if the test encountered an execution error` }),
|
|
64150
|
+
__metadata("design:type", String)
|
|
64151
|
+
], MJTestRun_.prototype, "ErrorMessage", void 0);
|
|
64152
|
+
__decorate([
|
|
64153
|
+
Field({ nullable: true, description: `JSON object with detailed results including individual check results, metrics, oracle outputs, and diagnostic information` }),
|
|
64154
|
+
__metadata("design:type", String)
|
|
64155
|
+
], MJTestRun_.prototype, "ResultDetails", void 0);
|
|
64156
|
+
__decorate([
|
|
64157
|
+
Field(),
|
|
64158
|
+
MaxLength(10),
|
|
64159
|
+
__metadata("design:type", Date)
|
|
64160
|
+
], MJTestRun_.prototype, "_mj__CreatedAt", void 0);
|
|
64161
|
+
__decorate([
|
|
64162
|
+
Field(),
|
|
64163
|
+
MaxLength(10),
|
|
64164
|
+
__metadata("design:type", Date)
|
|
64165
|
+
], MJTestRun_.prototype, "_mj__UpdatedAt", void 0);
|
|
64166
|
+
__decorate([
|
|
64167
|
+
Field(),
|
|
64168
|
+
MaxLength(510),
|
|
64169
|
+
__metadata("design:type", String)
|
|
64170
|
+
], MJTestRun_.prototype, "Test", void 0);
|
|
64171
|
+
__decorate([
|
|
64172
|
+
Field(),
|
|
64173
|
+
MaxLength(200),
|
|
64174
|
+
__metadata("design:type", String)
|
|
64175
|
+
], MJTestRun_.prototype, "RunByUser", void 0);
|
|
64176
|
+
__decorate([
|
|
64177
|
+
Field(() => [MJTestRunFeedback_]),
|
|
64178
|
+
__metadata("design:type", Array)
|
|
64179
|
+
], MJTestRun_.prototype, "MJ_TestRunFeedbacks_TestRunIDArray", void 0);
|
|
64180
|
+
__decorate([
|
|
64181
|
+
Field(() => [MJAIPromptRun_]),
|
|
64182
|
+
__metadata("design:type", Array)
|
|
64183
|
+
], MJTestRun_.prototype, "MJ_AIPromptRuns_TestRunIDArray", void 0);
|
|
64184
|
+
__decorate([
|
|
64185
|
+
Field(() => [MJAIAgentRun_]),
|
|
64186
|
+
__metadata("design:type", Array)
|
|
64187
|
+
], MJTestRun_.prototype, "MJ_AIAgentRuns_TestRunIDArray", void 0);
|
|
64188
|
+
__decorate([
|
|
64189
|
+
Field(() => [MJConversation_]),
|
|
64190
|
+
__metadata("design:type", Array)
|
|
64191
|
+
], MJTestRun_.prototype, "Conversations_TestRunIDArray", void 0);
|
|
64192
|
+
__decorate([
|
|
64193
|
+
Field(() => [MJConversationDetail_]),
|
|
64194
|
+
__metadata("design:type", Array)
|
|
64195
|
+
], MJTestRun_.prototype, "ConversationDetails_TestRunIDArray", void 0);
|
|
64196
|
+
MJTestRun_ = __decorate([
|
|
64197
|
+
ObjectType({ description: `Execution instance of a single test. Captures inputs, outputs, results, and links to the target being tested (e.g., Agent Run). Can be part of a suite run or standalone. The TargetLogID links to type-specific execution logs (AgentRun, WorkflowRun, etc.) which contain the detailed trace information.` })
|
|
64198
|
+
], MJTestRun_);
|
|
64199
|
+
export { MJTestRun_ };
|
|
64200
|
+
let CreateMJTestRunInput = class CreateMJTestRunInput {
|
|
64201
|
+
ID;
|
|
64202
|
+
TestID;
|
|
64203
|
+
TestSuiteRunID;
|
|
64204
|
+
RunByUserID;
|
|
64205
|
+
Sequence;
|
|
64206
|
+
TargetType;
|
|
64207
|
+
TargetLogID;
|
|
64208
|
+
Status;
|
|
64209
|
+
StartedAt;
|
|
64210
|
+
CompletedAt;
|
|
64211
|
+
DurationSeconds;
|
|
64212
|
+
InputData;
|
|
64213
|
+
ExpectedOutputData;
|
|
64214
|
+
ActualOutputData;
|
|
64215
|
+
PassedChecks;
|
|
64216
|
+
FailedChecks;
|
|
64217
|
+
TotalChecks;
|
|
64218
|
+
Score;
|
|
64219
|
+
CostUSD;
|
|
64220
|
+
ErrorMessage;
|
|
64221
|
+
ResultDetails;
|
|
64222
|
+
};
|
|
64223
|
+
__decorate([
|
|
64224
|
+
Field({ nullable: true }),
|
|
64225
|
+
__metadata("design:type", String)
|
|
64226
|
+
], CreateMJTestRunInput.prototype, "ID", void 0);
|
|
64227
|
+
__decorate([
|
|
64228
|
+
Field({ nullable: true }),
|
|
64229
|
+
__metadata("design:type", String)
|
|
64230
|
+
], CreateMJTestRunInput.prototype, "TestID", void 0);
|
|
64231
|
+
__decorate([
|
|
64232
|
+
Field({ nullable: true }),
|
|
64233
|
+
__metadata("design:type", String)
|
|
64234
|
+
], CreateMJTestRunInput.prototype, "TestSuiteRunID", void 0);
|
|
64235
|
+
__decorate([
|
|
64236
|
+
Field({ nullable: true }),
|
|
64237
|
+
__metadata("design:type", String)
|
|
64238
|
+
], CreateMJTestRunInput.prototype, "RunByUserID", void 0);
|
|
64239
|
+
__decorate([
|
|
64240
|
+
Field(() => Int, { nullable: true }),
|
|
64241
|
+
__metadata("design:type", Number)
|
|
64242
|
+
], CreateMJTestRunInput.prototype, "Sequence", void 0);
|
|
64243
|
+
__decorate([
|
|
64244
|
+
Field({ nullable: true }),
|
|
64245
|
+
__metadata("design:type", String)
|
|
64246
|
+
], CreateMJTestRunInput.prototype, "TargetType", void 0);
|
|
64247
|
+
__decorate([
|
|
64248
|
+
Field({ nullable: true }),
|
|
61548
64249
|
__metadata("design:type", String)
|
|
61549
|
-
],
|
|
64250
|
+
], CreateMJTestRunInput.prototype, "TargetLogID", void 0);
|
|
61550
64251
|
__decorate([
|
|
61551
|
-
Field({
|
|
61552
|
-
MaxLength(16),
|
|
64252
|
+
Field({ nullable: true }),
|
|
61553
64253
|
__metadata("design:type", String)
|
|
61554
|
-
],
|
|
64254
|
+
], CreateMJTestRunInput.prototype, "Status", void 0);
|
|
61555
64255
|
__decorate([
|
|
61556
|
-
Field({
|
|
61557
|
-
|
|
64256
|
+
Field({ nullable: true }),
|
|
64257
|
+
__metadata("design:type", Date)
|
|
64258
|
+
], CreateMJTestRunInput.prototype, "StartedAt", void 0);
|
|
64259
|
+
__decorate([
|
|
64260
|
+
Field({ nullable: true }),
|
|
64261
|
+
__metadata("design:type", Date)
|
|
64262
|
+
], CreateMJTestRunInput.prototype, "CompletedAt", void 0);
|
|
64263
|
+
__decorate([
|
|
64264
|
+
Field(() => Float, { nullable: true }),
|
|
64265
|
+
__metadata("design:type", Number)
|
|
64266
|
+
], CreateMJTestRunInput.prototype, "DurationSeconds", void 0);
|
|
64267
|
+
__decorate([
|
|
64268
|
+
Field({ nullable: true }),
|
|
61558
64269
|
__metadata("design:type", String)
|
|
61559
|
-
],
|
|
64270
|
+
], CreateMJTestRunInput.prototype, "InputData", void 0);
|
|
61560
64271
|
__decorate([
|
|
61561
|
-
Field({
|
|
61562
|
-
MaxLength(510),
|
|
64272
|
+
Field({ nullable: true }),
|
|
61563
64273
|
__metadata("design:type", String)
|
|
61564
|
-
],
|
|
64274
|
+
], CreateMJTestRunInput.prototype, "ExpectedOutputData", void 0);
|
|
61565
64275
|
__decorate([
|
|
61566
|
-
Field({ nullable: true
|
|
61567
|
-
MaxLength(510),
|
|
64276
|
+
Field({ nullable: true }),
|
|
61568
64277
|
__metadata("design:type", String)
|
|
61569
|
-
],
|
|
64278
|
+
], CreateMJTestRunInput.prototype, "ActualOutputData", void 0);
|
|
61570
64279
|
__decorate([
|
|
61571
|
-
Field(),
|
|
61572
|
-
|
|
61573
|
-
|
|
61574
|
-
], MJResourceLink_.prototype, "_mj__CreatedAt", void 0);
|
|
64280
|
+
Field(() => Int, { nullable: true }),
|
|
64281
|
+
__metadata("design:type", Number)
|
|
64282
|
+
], CreateMJTestRunInput.prototype, "PassedChecks", void 0);
|
|
61575
64283
|
__decorate([
|
|
61576
|
-
Field(),
|
|
61577
|
-
|
|
61578
|
-
|
|
61579
|
-
], MJResourceLink_.prototype, "_mj__UpdatedAt", void 0);
|
|
64284
|
+
Field(() => Int, { nullable: true }),
|
|
64285
|
+
__metadata("design:type", Number)
|
|
64286
|
+
], CreateMJTestRunInput.prototype, "FailedChecks", void 0);
|
|
61580
64287
|
__decorate([
|
|
61581
|
-
Field(),
|
|
61582
|
-
|
|
64288
|
+
Field(() => Int, { nullable: true }),
|
|
64289
|
+
__metadata("design:type", Number)
|
|
64290
|
+
], CreateMJTestRunInput.prototype, "TotalChecks", void 0);
|
|
64291
|
+
__decorate([
|
|
64292
|
+
Field(() => Float, { nullable: true }),
|
|
64293
|
+
__metadata("design:type", Number)
|
|
64294
|
+
], CreateMJTestRunInput.prototype, "Score", void 0);
|
|
64295
|
+
__decorate([
|
|
64296
|
+
Field(() => Float, { nullable: true }),
|
|
64297
|
+
__metadata("design:type", Number)
|
|
64298
|
+
], CreateMJTestRunInput.prototype, "CostUSD", void 0);
|
|
64299
|
+
__decorate([
|
|
64300
|
+
Field({ nullable: true }),
|
|
61583
64301
|
__metadata("design:type", String)
|
|
61584
|
-
],
|
|
64302
|
+
], CreateMJTestRunInput.prototype, "ErrorMessage", void 0);
|
|
61585
64303
|
__decorate([
|
|
61586
|
-
Field(),
|
|
61587
|
-
MaxLength(510),
|
|
64304
|
+
Field({ nullable: true }),
|
|
61588
64305
|
__metadata("design:type", String)
|
|
61589
|
-
],
|
|
61590
|
-
|
|
61591
|
-
|
|
61592
|
-
],
|
|
61593
|
-
export {
|
|
61594
|
-
let
|
|
64306
|
+
], CreateMJTestRunInput.prototype, "ResultDetails", void 0);
|
|
64307
|
+
CreateMJTestRunInput = __decorate([
|
|
64308
|
+
InputType()
|
|
64309
|
+
], CreateMJTestRunInput);
|
|
64310
|
+
export { CreateMJTestRunInput };
|
|
64311
|
+
let UpdateMJTestRunInput = class UpdateMJTestRunInput {
|
|
61595
64312
|
ID;
|
|
61596
|
-
|
|
61597
|
-
|
|
61598
|
-
|
|
61599
|
-
|
|
64313
|
+
TestID;
|
|
64314
|
+
TestSuiteRunID;
|
|
64315
|
+
RunByUserID;
|
|
64316
|
+
Sequence;
|
|
64317
|
+
TargetType;
|
|
64318
|
+
TargetLogID;
|
|
64319
|
+
Status;
|
|
64320
|
+
StartedAt;
|
|
64321
|
+
CompletedAt;
|
|
64322
|
+
DurationSeconds;
|
|
64323
|
+
InputData;
|
|
64324
|
+
ExpectedOutputData;
|
|
64325
|
+
ActualOutputData;
|
|
64326
|
+
PassedChecks;
|
|
64327
|
+
FailedChecks;
|
|
64328
|
+
TotalChecks;
|
|
64329
|
+
Score;
|
|
64330
|
+
CostUSD;
|
|
64331
|
+
ErrorMessage;
|
|
64332
|
+
ResultDetails;
|
|
64333
|
+
OldValues___;
|
|
61600
64334
|
};
|
|
64335
|
+
__decorate([
|
|
64336
|
+
Field(),
|
|
64337
|
+
__metadata("design:type", String)
|
|
64338
|
+
], UpdateMJTestRunInput.prototype, "ID", void 0);
|
|
61601
64339
|
__decorate([
|
|
61602
64340
|
Field({ nullable: true }),
|
|
61603
64341
|
__metadata("design:type", String)
|
|
61604
|
-
],
|
|
64342
|
+
], UpdateMJTestRunInput.prototype, "TestID", void 0);
|
|
61605
64343
|
__decorate([
|
|
61606
64344
|
Field({ nullable: true }),
|
|
61607
64345
|
__metadata("design:type", String)
|
|
61608
|
-
],
|
|
64346
|
+
], UpdateMJTestRunInput.prototype, "TestSuiteRunID", void 0);
|
|
61609
64347
|
__decorate([
|
|
61610
64348
|
Field({ nullable: true }),
|
|
61611
64349
|
__metadata("design:type", String)
|
|
61612
|
-
],
|
|
64350
|
+
], UpdateMJTestRunInput.prototype, "RunByUserID", void 0);
|
|
64351
|
+
__decorate([
|
|
64352
|
+
Field(() => Int, { nullable: true }),
|
|
64353
|
+
__metadata("design:type", Number)
|
|
64354
|
+
], UpdateMJTestRunInput.prototype, "Sequence", void 0);
|
|
61613
64355
|
__decorate([
|
|
61614
64356
|
Field({ nullable: true }),
|
|
61615
64357
|
__metadata("design:type", String)
|
|
61616
|
-
],
|
|
64358
|
+
], UpdateMJTestRunInput.prototype, "TargetType", void 0);
|
|
61617
64359
|
__decorate([
|
|
61618
64360
|
Field({ nullable: true }),
|
|
61619
64361
|
__metadata("design:type", String)
|
|
61620
|
-
],
|
|
61621
|
-
CreateMJResourceLinkInput = __decorate([
|
|
61622
|
-
InputType()
|
|
61623
|
-
], CreateMJResourceLinkInput);
|
|
61624
|
-
export { CreateMJResourceLinkInput };
|
|
61625
|
-
let UpdateMJResourceLinkInput = class UpdateMJResourceLinkInput {
|
|
61626
|
-
ID;
|
|
61627
|
-
UserID;
|
|
61628
|
-
ResourceTypeID;
|
|
61629
|
-
ResourceRecordID;
|
|
61630
|
-
FolderID;
|
|
61631
|
-
OldValues___;
|
|
61632
|
-
};
|
|
64362
|
+
], UpdateMJTestRunInput.prototype, "TargetLogID", void 0);
|
|
61633
64363
|
__decorate([
|
|
61634
|
-
Field(),
|
|
64364
|
+
Field({ nullable: true }),
|
|
61635
64365
|
__metadata("design:type", String)
|
|
61636
|
-
],
|
|
64366
|
+
], UpdateMJTestRunInput.prototype, "Status", void 0);
|
|
64367
|
+
__decorate([
|
|
64368
|
+
Field({ nullable: true }),
|
|
64369
|
+
__metadata("design:type", Date)
|
|
64370
|
+
], UpdateMJTestRunInput.prototype, "StartedAt", void 0);
|
|
64371
|
+
__decorate([
|
|
64372
|
+
Field({ nullable: true }),
|
|
64373
|
+
__metadata("design:type", Date)
|
|
64374
|
+
], UpdateMJTestRunInput.prototype, "CompletedAt", void 0);
|
|
64375
|
+
__decorate([
|
|
64376
|
+
Field(() => Float, { nullable: true }),
|
|
64377
|
+
__metadata("design:type", Number)
|
|
64378
|
+
], UpdateMJTestRunInput.prototype, "DurationSeconds", void 0);
|
|
61637
64379
|
__decorate([
|
|
61638
64380
|
Field({ nullable: true }),
|
|
61639
64381
|
__metadata("design:type", String)
|
|
61640
|
-
],
|
|
64382
|
+
], UpdateMJTestRunInput.prototype, "InputData", void 0);
|
|
61641
64383
|
__decorate([
|
|
61642
64384
|
Field({ nullable: true }),
|
|
61643
64385
|
__metadata("design:type", String)
|
|
61644
|
-
],
|
|
64386
|
+
], UpdateMJTestRunInput.prototype, "ExpectedOutputData", void 0);
|
|
61645
64387
|
__decorate([
|
|
61646
64388
|
Field({ nullable: true }),
|
|
61647
64389
|
__metadata("design:type", String)
|
|
61648
|
-
],
|
|
64390
|
+
], UpdateMJTestRunInput.prototype, "ActualOutputData", void 0);
|
|
64391
|
+
__decorate([
|
|
64392
|
+
Field(() => Int, { nullable: true }),
|
|
64393
|
+
__metadata("design:type", Number)
|
|
64394
|
+
], UpdateMJTestRunInput.prototype, "PassedChecks", void 0);
|
|
64395
|
+
__decorate([
|
|
64396
|
+
Field(() => Int, { nullable: true }),
|
|
64397
|
+
__metadata("design:type", Number)
|
|
64398
|
+
], UpdateMJTestRunInput.prototype, "FailedChecks", void 0);
|
|
64399
|
+
__decorate([
|
|
64400
|
+
Field(() => Int, { nullable: true }),
|
|
64401
|
+
__metadata("design:type", Number)
|
|
64402
|
+
], UpdateMJTestRunInput.prototype, "TotalChecks", void 0);
|
|
64403
|
+
__decorate([
|
|
64404
|
+
Field(() => Float, { nullable: true }),
|
|
64405
|
+
__metadata("design:type", Number)
|
|
64406
|
+
], UpdateMJTestRunInput.prototype, "Score", void 0);
|
|
64407
|
+
__decorate([
|
|
64408
|
+
Field(() => Float, { nullable: true }),
|
|
64409
|
+
__metadata("design:type", Number)
|
|
64410
|
+
], UpdateMJTestRunInput.prototype, "CostUSD", void 0);
|
|
61649
64411
|
__decorate([
|
|
61650
64412
|
Field({ nullable: true }),
|
|
61651
64413
|
__metadata("design:type", String)
|
|
61652
|
-
],
|
|
64414
|
+
], UpdateMJTestRunInput.prototype, "ErrorMessage", void 0);
|
|
64415
|
+
__decorate([
|
|
64416
|
+
Field({ nullable: true }),
|
|
64417
|
+
__metadata("design:type", String)
|
|
64418
|
+
], UpdateMJTestRunInput.prototype, "ResultDetails", void 0);
|
|
61653
64419
|
__decorate([
|
|
61654
64420
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
61655
64421
|
__metadata("design:type", Array)
|
|
61656
|
-
],
|
|
61657
|
-
|
|
64422
|
+
], UpdateMJTestRunInput.prototype, "OldValues___", void 0);
|
|
64423
|
+
UpdateMJTestRunInput = __decorate([
|
|
61658
64424
|
InputType()
|
|
61659
|
-
],
|
|
61660
|
-
export {
|
|
61661
|
-
let
|
|
64425
|
+
], UpdateMJTestRunInput);
|
|
64426
|
+
export { UpdateMJTestRunInput };
|
|
64427
|
+
let RunMJTestRunViewResult = class RunMJTestRunViewResult {
|
|
61662
64428
|
Results;
|
|
61663
64429
|
UserViewRunID;
|
|
61664
64430
|
RowCount;
|
|
@@ -61668,130 +64434,220 @@ let RunMJResourceLinkViewResult = class RunMJResourceLinkViewResult {
|
|
|
61668
64434
|
Success;
|
|
61669
64435
|
};
|
|
61670
64436
|
__decorate([
|
|
61671
|
-
Field(() => [
|
|
64437
|
+
Field(() => [MJTestRun_]),
|
|
61672
64438
|
__metadata("design:type", Array)
|
|
61673
|
-
],
|
|
64439
|
+
], RunMJTestRunViewResult.prototype, "Results", void 0);
|
|
61674
64440
|
__decorate([
|
|
61675
64441
|
Field(() => String, { nullable: true }),
|
|
61676
64442
|
__metadata("design:type", String)
|
|
61677
|
-
],
|
|
64443
|
+
], RunMJTestRunViewResult.prototype, "UserViewRunID", void 0);
|
|
61678
64444
|
__decorate([
|
|
61679
64445
|
Field(() => Int, { nullable: true }),
|
|
61680
64446
|
__metadata("design:type", Number)
|
|
61681
|
-
],
|
|
64447
|
+
], RunMJTestRunViewResult.prototype, "RowCount", void 0);
|
|
61682
64448
|
__decorate([
|
|
61683
64449
|
Field(() => Int, { nullable: true }),
|
|
61684
64450
|
__metadata("design:type", Number)
|
|
61685
|
-
],
|
|
64451
|
+
], RunMJTestRunViewResult.prototype, "TotalRowCount", void 0);
|
|
61686
64452
|
__decorate([
|
|
61687
64453
|
Field(() => Int, { nullable: true }),
|
|
61688
64454
|
__metadata("design:type", Number)
|
|
61689
|
-
],
|
|
64455
|
+
], RunMJTestRunViewResult.prototype, "ExecutionTime", void 0);
|
|
61690
64456
|
__decorate([
|
|
61691
64457
|
Field({ nullable: true }),
|
|
61692
64458
|
__metadata("design:type", String)
|
|
61693
|
-
],
|
|
64459
|
+
], RunMJTestRunViewResult.prototype, "ErrorMessage", void 0);
|
|
61694
64460
|
__decorate([
|
|
61695
64461
|
Field(() => Boolean, { nullable: false }),
|
|
61696
64462
|
__metadata("design:type", Boolean)
|
|
61697
|
-
],
|
|
61698
|
-
|
|
64463
|
+
], RunMJTestRunViewResult.prototype, "Success", void 0);
|
|
64464
|
+
RunMJTestRunViewResult = __decorate([
|
|
61699
64465
|
ObjectType()
|
|
61700
|
-
],
|
|
61701
|
-
export {
|
|
61702
|
-
let
|
|
61703
|
-
async
|
|
64466
|
+
], RunMJTestRunViewResult);
|
|
64467
|
+
export { RunMJTestRunViewResult };
|
|
64468
|
+
let MJTestRunResolver = class MJTestRunResolver extends ResolverBase {
|
|
64469
|
+
async RunMJTestRunViewByID(input, { providers, userPayload }, pubSub) {
|
|
61704
64470
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61705
64471
|
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
61706
64472
|
}
|
|
61707
|
-
async
|
|
64473
|
+
async RunMJTestRunViewByName(input, { providers, userPayload }, pubSub) {
|
|
61708
64474
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61709
64475
|
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
61710
64476
|
}
|
|
61711
|
-
async
|
|
64477
|
+
async RunMJTestRunDynamicView(input, { providers, userPayload }, pubSub) {
|
|
61712
64478
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61713
|
-
input.EntityName = '
|
|
64479
|
+
input.EntityName = 'MJ: Test Runs';
|
|
61714
64480
|
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
61715
64481
|
}
|
|
61716
|
-
async
|
|
61717
|
-
this.CheckUserReadPermissions('
|
|
64482
|
+
async MJTestRun(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
64483
|
+
this.CheckUserReadPermissions('MJ: Test Runs', userPayload);
|
|
61718
64484
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
61719
64485
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
61720
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
64486
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRuns] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
61721
64487
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
61722
|
-
const result = this.MapFieldNamesToCodeNames('
|
|
64488
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Runs', rows && rows.length > 0 ? rows[0] : {});
|
|
61723
64489
|
return result;
|
|
61724
64490
|
}
|
|
61725
|
-
async
|
|
64491
|
+
async MJ_TestRunFeedbacks_TestRunIDArray(mjtestrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
64492
|
+
this.CheckUserReadPermissions('MJ: Test Run Feedbacks', userPayload);
|
|
64493
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64494
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64495
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRunFeedbacks] WHERE [TestRunID]='${mjtestrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Run Feedbacks', userPayload, EntityPermissionType.Read, 'AND');
|
|
64496
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64497
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Run Feedbacks', rows);
|
|
64498
|
+
return result;
|
|
64499
|
+
}
|
|
64500
|
+
async MJ_AIPromptRuns_TestRunIDArray(mjtestrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
64501
|
+
this.CheckUserReadPermissions('MJ: AI Prompt Runs', userPayload);
|
|
64502
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64503
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64504
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIPromptRuns] WHERE [TestRunID]='${mjtestrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Prompt Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
64505
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64506
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Prompt Runs', rows);
|
|
64507
|
+
return result;
|
|
64508
|
+
}
|
|
64509
|
+
async MJ_AIAgentRuns_TestRunIDArray(mjtestrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
64510
|
+
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
64511
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64512
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64513
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRuns] WHERE [TestRunID]='${mjtestrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
64514
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64515
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Runs', rows);
|
|
64516
|
+
return result;
|
|
64517
|
+
}
|
|
64518
|
+
async Conversations_TestRunIDArray(mjtestrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
64519
|
+
this.CheckUserReadPermissions('Conversations', userPayload);
|
|
64520
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64521
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64522
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversations] WHERE [TestRunID]='${mjtestrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
64523
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64524
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Conversations', rows);
|
|
64525
|
+
return result;
|
|
64526
|
+
}
|
|
64527
|
+
async ConversationDetails_TestRunIDArray(mjtestrun_, { dataSources, userPayload, providers }, pubSub) {
|
|
64528
|
+
this.CheckUserReadPermissions('Conversation Details', userPayload);
|
|
64529
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64530
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64531
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversationDetails] WHERE [TestRunID]='${mjtestrun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Conversation Details', userPayload, EntityPermissionType.Read, 'AND');
|
|
64532
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64533
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Conversation Details', rows);
|
|
64534
|
+
return result;
|
|
64535
|
+
}
|
|
64536
|
+
async CreateMJTestRun(input, { providers, userPayload }, pubSub) {
|
|
61726
64537
|
const provider = GetReadWriteProvider(providers);
|
|
61727
|
-
return this.CreateRecord('
|
|
64538
|
+
return this.CreateRecord('MJ: Test Runs', input, provider, userPayload, pubSub);
|
|
61728
64539
|
}
|
|
61729
|
-
async
|
|
64540
|
+
async UpdateMJTestRun(input, { providers, userPayload }, pubSub) {
|
|
61730
64541
|
const provider = GetReadWriteProvider(providers);
|
|
61731
|
-
return this.UpdateRecord('
|
|
64542
|
+
return this.UpdateRecord('MJ: Test Runs', input, provider, userPayload, pubSub);
|
|
61732
64543
|
}
|
|
61733
|
-
async
|
|
64544
|
+
async DeleteMJTestRun(ID, options, { providers, userPayload }, pubSub) {
|
|
61734
64545
|
const provider = GetReadWriteProvider(providers);
|
|
61735
64546
|
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
61736
|
-
return this.DeleteRecord('
|
|
64547
|
+
return this.DeleteRecord('MJ: Test Runs', key, options, provider, userPayload, pubSub);
|
|
61737
64548
|
}
|
|
61738
64549
|
};
|
|
61739
64550
|
__decorate([
|
|
61740
|
-
Query(() =>
|
|
64551
|
+
Query(() => RunMJTestRunViewResult),
|
|
61741
64552
|
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
61742
64553
|
__param(1, Ctx()),
|
|
61743
64554
|
__param(2, PubSub()),
|
|
61744
64555
|
__metadata("design:type", Function),
|
|
61745
64556
|
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
61746
64557
|
__metadata("design:returntype", Promise)
|
|
61747
|
-
],
|
|
64558
|
+
], MJTestRunResolver.prototype, "RunMJTestRunViewByID", null);
|
|
61748
64559
|
__decorate([
|
|
61749
|
-
Query(() =>
|
|
64560
|
+
Query(() => RunMJTestRunViewResult),
|
|
61750
64561
|
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
61751
64562
|
__param(1, Ctx()),
|
|
61752
64563
|
__param(2, PubSub()),
|
|
61753
64564
|
__metadata("design:type", Function),
|
|
61754
64565
|
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
61755
64566
|
__metadata("design:returntype", Promise)
|
|
61756
|
-
],
|
|
64567
|
+
], MJTestRunResolver.prototype, "RunMJTestRunViewByName", null);
|
|
61757
64568
|
__decorate([
|
|
61758
|
-
Query(() =>
|
|
64569
|
+
Query(() => RunMJTestRunViewResult),
|
|
61759
64570
|
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
61760
64571
|
__param(1, Ctx()),
|
|
61761
64572
|
__param(2, PubSub()),
|
|
61762
64573
|
__metadata("design:type", Function),
|
|
61763
64574
|
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
61764
64575
|
__metadata("design:returntype", Promise)
|
|
61765
|
-
],
|
|
64576
|
+
], MJTestRunResolver.prototype, "RunMJTestRunDynamicView", null);
|
|
61766
64577
|
__decorate([
|
|
61767
|
-
Query(() =>
|
|
64578
|
+
Query(() => MJTestRun_, { nullable: true }),
|
|
61768
64579
|
__param(0, Arg('ID', () => String)),
|
|
61769
64580
|
__param(1, Ctx()),
|
|
61770
64581
|
__param(2, PubSub()),
|
|
61771
64582
|
__metadata("design:type", Function),
|
|
61772
64583
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
61773
64584
|
__metadata("design:returntype", Promise)
|
|
61774
|
-
],
|
|
64585
|
+
], MJTestRunResolver.prototype, "MJTestRun", null);
|
|
61775
64586
|
__decorate([
|
|
61776
|
-
|
|
61777
|
-
__param(0,
|
|
64587
|
+
FieldResolver(() => [MJTestRunFeedback_]),
|
|
64588
|
+
__param(0, Root()),
|
|
61778
64589
|
__param(1, Ctx()),
|
|
61779
64590
|
__param(2, PubSub()),
|
|
61780
64591
|
__metadata("design:type", Function),
|
|
61781
|
-
__metadata("design:paramtypes", [
|
|
64592
|
+
__metadata("design:paramtypes", [MJTestRun_, Object, PubSubEngine]),
|
|
61782
64593
|
__metadata("design:returntype", Promise)
|
|
61783
|
-
],
|
|
64594
|
+
], MJTestRunResolver.prototype, "MJ_TestRunFeedbacks_TestRunIDArray", null);
|
|
61784
64595
|
__decorate([
|
|
61785
|
-
|
|
61786
|
-
__param(0,
|
|
64596
|
+
FieldResolver(() => [MJAIPromptRun_]),
|
|
64597
|
+
__param(0, Root()),
|
|
61787
64598
|
__param(1, Ctx()),
|
|
61788
64599
|
__param(2, PubSub()),
|
|
61789
64600
|
__metadata("design:type", Function),
|
|
61790
|
-
__metadata("design:paramtypes", [
|
|
64601
|
+
__metadata("design:paramtypes", [MJTestRun_, Object, PubSubEngine]),
|
|
61791
64602
|
__metadata("design:returntype", Promise)
|
|
61792
|
-
],
|
|
64603
|
+
], MJTestRunResolver.prototype, "MJ_AIPromptRuns_TestRunIDArray", null);
|
|
61793
64604
|
__decorate([
|
|
61794
|
-
|
|
64605
|
+
FieldResolver(() => [MJAIAgentRun_]),
|
|
64606
|
+
__param(0, Root()),
|
|
64607
|
+
__param(1, Ctx()),
|
|
64608
|
+
__param(2, PubSub()),
|
|
64609
|
+
__metadata("design:type", Function),
|
|
64610
|
+
__metadata("design:paramtypes", [MJTestRun_, Object, PubSubEngine]),
|
|
64611
|
+
__metadata("design:returntype", Promise)
|
|
64612
|
+
], MJTestRunResolver.prototype, "MJ_AIAgentRuns_TestRunIDArray", null);
|
|
64613
|
+
__decorate([
|
|
64614
|
+
FieldResolver(() => [MJConversation_]),
|
|
64615
|
+
__param(0, Root()),
|
|
64616
|
+
__param(1, Ctx()),
|
|
64617
|
+
__param(2, PubSub()),
|
|
64618
|
+
__metadata("design:type", Function),
|
|
64619
|
+
__metadata("design:paramtypes", [MJTestRun_, Object, PubSubEngine]),
|
|
64620
|
+
__metadata("design:returntype", Promise)
|
|
64621
|
+
], MJTestRunResolver.prototype, "Conversations_TestRunIDArray", null);
|
|
64622
|
+
__decorate([
|
|
64623
|
+
FieldResolver(() => [MJConversationDetail_]),
|
|
64624
|
+
__param(0, Root()),
|
|
64625
|
+
__param(1, Ctx()),
|
|
64626
|
+
__param(2, PubSub()),
|
|
64627
|
+
__metadata("design:type", Function),
|
|
64628
|
+
__metadata("design:paramtypes", [MJTestRun_, Object, PubSubEngine]),
|
|
64629
|
+
__metadata("design:returntype", Promise)
|
|
64630
|
+
], MJTestRunResolver.prototype, "ConversationDetails_TestRunIDArray", null);
|
|
64631
|
+
__decorate([
|
|
64632
|
+
Mutation(() => MJTestRun_),
|
|
64633
|
+
__param(0, Arg('input', () => CreateMJTestRunInput)),
|
|
64634
|
+
__param(1, Ctx()),
|
|
64635
|
+
__param(2, PubSub()),
|
|
64636
|
+
__metadata("design:type", Function),
|
|
64637
|
+
__metadata("design:paramtypes", [CreateMJTestRunInput, Object, PubSubEngine]),
|
|
64638
|
+
__metadata("design:returntype", Promise)
|
|
64639
|
+
], MJTestRunResolver.prototype, "CreateMJTestRun", null);
|
|
64640
|
+
__decorate([
|
|
64641
|
+
Mutation(() => MJTestRun_),
|
|
64642
|
+
__param(0, Arg('input', () => UpdateMJTestRunInput)),
|
|
64643
|
+
__param(1, Ctx()),
|
|
64644
|
+
__param(2, PubSub()),
|
|
64645
|
+
__metadata("design:type", Function),
|
|
64646
|
+
__metadata("design:paramtypes", [UpdateMJTestRunInput, Object, PubSubEngine]),
|
|
64647
|
+
__metadata("design:returntype", Promise)
|
|
64648
|
+
], MJTestRunResolver.prototype, "UpdateMJTestRun", null);
|
|
64649
|
+
__decorate([
|
|
64650
|
+
Mutation(() => MJTestRun_),
|
|
61795
64651
|
__param(0, Arg('ID', () => String)),
|
|
61796
64652
|
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
61797
64653
|
__param(2, Ctx()),
|
|
@@ -61799,11 +64655,11 @@ __decorate([
|
|
|
61799
64655
|
__metadata("design:type", Function),
|
|
61800
64656
|
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
61801
64657
|
__metadata("design:returntype", Promise)
|
|
61802
|
-
],
|
|
61803
|
-
|
|
61804
|
-
Resolver(
|
|
61805
|
-
],
|
|
61806
|
-
export {
|
|
64658
|
+
], MJTestRunResolver.prototype, "DeleteMJTestRun", null);
|
|
64659
|
+
MJTestRunResolver = __decorate([
|
|
64660
|
+
Resolver(MJTestRun_)
|
|
64661
|
+
], MJTestRunResolver);
|
|
64662
|
+
export { MJTestRunResolver };
|
|
61807
64663
|
let MJAIAgentArtifactType_ = class MJAIAgentArtifactType_ {
|
|
61808
64664
|
ID;
|
|
61809
64665
|
AgentID;
|
|
@@ -66247,6 +69103,7 @@ let MJArtifactType_ = class MJArtifactType_ {
|
|
|
66247
69103
|
ParentID;
|
|
66248
69104
|
ExtractRules;
|
|
66249
69105
|
DriverClass;
|
|
69106
|
+
Icon;
|
|
66250
69107
|
Parent;
|
|
66251
69108
|
RootParentID;
|
|
66252
69109
|
MJ_ConversationArtifacts_ArtifactTypeIDArray;
|
|
@@ -66302,6 +69159,11 @@ __decorate([
|
|
|
66302
69159
|
MaxLength(510),
|
|
66303
69160
|
__metadata("design:type", String)
|
|
66304
69161
|
], MJArtifactType_.prototype, "DriverClass", void 0);
|
|
69162
|
+
__decorate([
|
|
69163
|
+
Field({ nullable: true, description: `Font Awesome icon class name for displaying this artifact type in the UI (e.g., fa-file-code, fa-chart-line)` }),
|
|
69164
|
+
MaxLength(510),
|
|
69165
|
+
__metadata("design:type", String)
|
|
69166
|
+
], MJArtifactType_.prototype, "Icon", void 0);
|
|
66305
69167
|
__decorate([
|
|
66306
69168
|
Field({ nullable: true }),
|
|
66307
69169
|
MaxLength(200),
|
|
@@ -66345,6 +69207,7 @@ let CreateMJArtifactTypeInput = class CreateMJArtifactTypeInput {
|
|
|
66345
69207
|
ParentID;
|
|
66346
69208
|
ExtractRules;
|
|
66347
69209
|
DriverClass;
|
|
69210
|
+
Icon;
|
|
66348
69211
|
};
|
|
66349
69212
|
__decorate([
|
|
66350
69213
|
Field({ nullable: true }),
|
|
@@ -66378,6 +69241,10 @@ __decorate([
|
|
|
66378
69241
|
Field({ nullable: true }),
|
|
66379
69242
|
__metadata("design:type", String)
|
|
66380
69243
|
], CreateMJArtifactTypeInput.prototype, "DriverClass", void 0);
|
|
69244
|
+
__decorate([
|
|
69245
|
+
Field({ nullable: true }),
|
|
69246
|
+
__metadata("design:type", String)
|
|
69247
|
+
], CreateMJArtifactTypeInput.prototype, "Icon", void 0);
|
|
66381
69248
|
CreateMJArtifactTypeInput = __decorate([
|
|
66382
69249
|
InputType()
|
|
66383
69250
|
], CreateMJArtifactTypeInput);
|
|
@@ -66391,6 +69258,7 @@ let UpdateMJArtifactTypeInput = class UpdateMJArtifactTypeInput {
|
|
|
66391
69258
|
ParentID;
|
|
66392
69259
|
ExtractRules;
|
|
66393
69260
|
DriverClass;
|
|
69261
|
+
Icon;
|
|
66394
69262
|
OldValues___;
|
|
66395
69263
|
};
|
|
66396
69264
|
__decorate([
|
|
@@ -66425,6 +69293,10 @@ __decorate([
|
|
|
66425
69293
|
Field({ nullable: true }),
|
|
66426
69294
|
__metadata("design:type", String)
|
|
66427
69295
|
], UpdateMJArtifactTypeInput.prototype, "DriverClass", void 0);
|
|
69296
|
+
__decorate([
|
|
69297
|
+
Field({ nullable: true }),
|
|
69298
|
+
__metadata("design:type", String)
|
|
69299
|
+
], UpdateMJArtifactTypeInput.prototype, "Icon", void 0);
|
|
66428
69300
|
__decorate([
|
|
66429
69301
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
66430
69302
|
__metadata("design:type", Array)
|
|
@@ -67796,6 +70668,377 @@ MJAIAgentExampleResolver = __decorate([
|
|
|
67796
70668
|
Resolver(MJAIAgentExample_)
|
|
67797
70669
|
], MJAIAgentExampleResolver);
|
|
67798
70670
|
export { MJAIAgentExampleResolver };
|
|
70671
|
+
let MJTestSuite_ = class MJTestSuite_ {
|
|
70672
|
+
ID;
|
|
70673
|
+
ParentID;
|
|
70674
|
+
Name;
|
|
70675
|
+
Description;
|
|
70676
|
+
Status;
|
|
70677
|
+
Tags;
|
|
70678
|
+
Configuration;
|
|
70679
|
+
_mj__CreatedAt;
|
|
70680
|
+
_mj__UpdatedAt;
|
|
70681
|
+
Parent;
|
|
70682
|
+
RootParentID;
|
|
70683
|
+
MJ_TestSuites_ParentIDArray;
|
|
70684
|
+
MJ_TestSuiteRuns_SuiteIDArray;
|
|
70685
|
+
MJ_TestSuiteTests_SuiteIDArray;
|
|
70686
|
+
};
|
|
70687
|
+
__decorate([
|
|
70688
|
+
Field(),
|
|
70689
|
+
MaxLength(16),
|
|
70690
|
+
__metadata("design:type", String)
|
|
70691
|
+
], MJTestSuite_.prototype, "ID", void 0);
|
|
70692
|
+
__decorate([
|
|
70693
|
+
Field({ nullable: true, description: `Optional parent suite ID for hierarchical organization. NULL for root-level suites.` }),
|
|
70694
|
+
MaxLength(16),
|
|
70695
|
+
__metadata("design:type", String)
|
|
70696
|
+
], MJTestSuite_.prototype, "ParentID", void 0);
|
|
70697
|
+
__decorate([
|
|
70698
|
+
Field({ description: `Name of the test suite (e.g., "Skip Component Generation Suite", "Agent Memory Tests")` }),
|
|
70699
|
+
MaxLength(510),
|
|
70700
|
+
__metadata("design:type", String)
|
|
70701
|
+
], MJTestSuite_.prototype, "Name", void 0);
|
|
70702
|
+
__decorate([
|
|
70703
|
+
Field({ nullable: true, description: `Detailed description of what this suite tests and its purpose` }),
|
|
70704
|
+
__metadata("design:type", String)
|
|
70705
|
+
], MJTestSuite_.prototype, "Description", void 0);
|
|
70706
|
+
__decorate([
|
|
70707
|
+
Field({ description: `Status of the suite: Pending (being configured), Active (available for use), Disabled (archived/not in use)` }),
|
|
70708
|
+
MaxLength(40),
|
|
70709
|
+
__metadata("design:type", String)
|
|
70710
|
+
], MJTestSuite_.prototype, "Status", void 0);
|
|
70711
|
+
__decorate([
|
|
70712
|
+
Field({ nullable: true, description: `JSON array of tags for categorization and filtering (e.g., ["smoke", "regression", "nightly"])` }),
|
|
70713
|
+
__metadata("design:type", String)
|
|
70714
|
+
], MJTestSuite_.prototype, "Tags", void 0);
|
|
70715
|
+
__decorate([
|
|
70716
|
+
Field({ nullable: true, description: `JSON configuration object for suite-level settings (e.g., environment defaults, retry policies, notification settings)` }),
|
|
70717
|
+
__metadata("design:type", String)
|
|
70718
|
+
], MJTestSuite_.prototype, "Configuration", void 0);
|
|
70719
|
+
__decorate([
|
|
70720
|
+
Field(),
|
|
70721
|
+
MaxLength(10),
|
|
70722
|
+
__metadata("design:type", Date)
|
|
70723
|
+
], MJTestSuite_.prototype, "_mj__CreatedAt", void 0);
|
|
70724
|
+
__decorate([
|
|
70725
|
+
Field(),
|
|
70726
|
+
MaxLength(10),
|
|
70727
|
+
__metadata("design:type", Date)
|
|
70728
|
+
], MJTestSuite_.prototype, "_mj__UpdatedAt", void 0);
|
|
70729
|
+
__decorate([
|
|
70730
|
+
Field({ nullable: true }),
|
|
70731
|
+
MaxLength(510),
|
|
70732
|
+
__metadata("design:type", String)
|
|
70733
|
+
], MJTestSuite_.prototype, "Parent", void 0);
|
|
70734
|
+
__decorate([
|
|
70735
|
+
Field({ nullable: true }),
|
|
70736
|
+
MaxLength(16),
|
|
70737
|
+
__metadata("design:type", String)
|
|
70738
|
+
], MJTestSuite_.prototype, "RootParentID", void 0);
|
|
70739
|
+
__decorate([
|
|
70740
|
+
Field(() => [MJTestSuite_]),
|
|
70741
|
+
__metadata("design:type", Array)
|
|
70742
|
+
], MJTestSuite_.prototype, "MJ_TestSuites_ParentIDArray", void 0);
|
|
70743
|
+
__decorate([
|
|
70744
|
+
Field(() => [MJTestSuiteRun_]),
|
|
70745
|
+
__metadata("design:type", Array)
|
|
70746
|
+
], MJTestSuite_.prototype, "MJ_TestSuiteRuns_SuiteIDArray", void 0);
|
|
70747
|
+
__decorate([
|
|
70748
|
+
Field(() => [MJTestSuiteTest_]),
|
|
70749
|
+
__metadata("design:type", Array)
|
|
70750
|
+
], MJTestSuite_.prototype, "MJ_TestSuiteTests_SuiteIDArray", void 0);
|
|
70751
|
+
MJTestSuite_ = __decorate([
|
|
70752
|
+
ObjectType({ description: `Hierarchical organization of tests into suites. Test suites can contain other suites (via ParentID) and tests (via TestSuiteTest junction table). Suites provide logical grouping for running batches of related tests.` })
|
|
70753
|
+
], MJTestSuite_);
|
|
70754
|
+
export { MJTestSuite_ };
|
|
70755
|
+
let CreateMJTestSuiteInput = class CreateMJTestSuiteInput {
|
|
70756
|
+
ID;
|
|
70757
|
+
ParentID;
|
|
70758
|
+
Name;
|
|
70759
|
+
Description;
|
|
70760
|
+
Status;
|
|
70761
|
+
Tags;
|
|
70762
|
+
Configuration;
|
|
70763
|
+
};
|
|
70764
|
+
__decorate([
|
|
70765
|
+
Field({ nullable: true }),
|
|
70766
|
+
__metadata("design:type", String)
|
|
70767
|
+
], CreateMJTestSuiteInput.prototype, "ID", void 0);
|
|
70768
|
+
__decorate([
|
|
70769
|
+
Field({ nullable: true }),
|
|
70770
|
+
__metadata("design:type", String)
|
|
70771
|
+
], CreateMJTestSuiteInput.prototype, "ParentID", void 0);
|
|
70772
|
+
__decorate([
|
|
70773
|
+
Field({ nullable: true }),
|
|
70774
|
+
__metadata("design:type", String)
|
|
70775
|
+
], CreateMJTestSuiteInput.prototype, "Name", void 0);
|
|
70776
|
+
__decorate([
|
|
70777
|
+
Field({ nullable: true }),
|
|
70778
|
+
__metadata("design:type", String)
|
|
70779
|
+
], CreateMJTestSuiteInput.prototype, "Description", void 0);
|
|
70780
|
+
__decorate([
|
|
70781
|
+
Field({ nullable: true }),
|
|
70782
|
+
__metadata("design:type", String)
|
|
70783
|
+
], CreateMJTestSuiteInput.prototype, "Status", void 0);
|
|
70784
|
+
__decorate([
|
|
70785
|
+
Field({ nullable: true }),
|
|
70786
|
+
__metadata("design:type", String)
|
|
70787
|
+
], CreateMJTestSuiteInput.prototype, "Tags", void 0);
|
|
70788
|
+
__decorate([
|
|
70789
|
+
Field({ nullable: true }),
|
|
70790
|
+
__metadata("design:type", String)
|
|
70791
|
+
], CreateMJTestSuiteInput.prototype, "Configuration", void 0);
|
|
70792
|
+
CreateMJTestSuiteInput = __decorate([
|
|
70793
|
+
InputType()
|
|
70794
|
+
], CreateMJTestSuiteInput);
|
|
70795
|
+
export { CreateMJTestSuiteInput };
|
|
70796
|
+
let UpdateMJTestSuiteInput = class UpdateMJTestSuiteInput {
|
|
70797
|
+
ID;
|
|
70798
|
+
ParentID;
|
|
70799
|
+
Name;
|
|
70800
|
+
Description;
|
|
70801
|
+
Status;
|
|
70802
|
+
Tags;
|
|
70803
|
+
Configuration;
|
|
70804
|
+
OldValues___;
|
|
70805
|
+
};
|
|
70806
|
+
__decorate([
|
|
70807
|
+
Field(),
|
|
70808
|
+
__metadata("design:type", String)
|
|
70809
|
+
], UpdateMJTestSuiteInput.prototype, "ID", void 0);
|
|
70810
|
+
__decorate([
|
|
70811
|
+
Field({ nullable: true }),
|
|
70812
|
+
__metadata("design:type", String)
|
|
70813
|
+
], UpdateMJTestSuiteInput.prototype, "ParentID", void 0);
|
|
70814
|
+
__decorate([
|
|
70815
|
+
Field({ nullable: true }),
|
|
70816
|
+
__metadata("design:type", String)
|
|
70817
|
+
], UpdateMJTestSuiteInput.prototype, "Name", void 0);
|
|
70818
|
+
__decorate([
|
|
70819
|
+
Field({ nullable: true }),
|
|
70820
|
+
__metadata("design:type", String)
|
|
70821
|
+
], UpdateMJTestSuiteInput.prototype, "Description", void 0);
|
|
70822
|
+
__decorate([
|
|
70823
|
+
Field({ nullable: true }),
|
|
70824
|
+
__metadata("design:type", String)
|
|
70825
|
+
], UpdateMJTestSuiteInput.prototype, "Status", void 0);
|
|
70826
|
+
__decorate([
|
|
70827
|
+
Field({ nullable: true }),
|
|
70828
|
+
__metadata("design:type", String)
|
|
70829
|
+
], UpdateMJTestSuiteInput.prototype, "Tags", void 0);
|
|
70830
|
+
__decorate([
|
|
70831
|
+
Field({ nullable: true }),
|
|
70832
|
+
__metadata("design:type", String)
|
|
70833
|
+
], UpdateMJTestSuiteInput.prototype, "Configuration", void 0);
|
|
70834
|
+
__decorate([
|
|
70835
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
70836
|
+
__metadata("design:type", Array)
|
|
70837
|
+
], UpdateMJTestSuiteInput.prototype, "OldValues___", void 0);
|
|
70838
|
+
UpdateMJTestSuiteInput = __decorate([
|
|
70839
|
+
InputType()
|
|
70840
|
+
], UpdateMJTestSuiteInput);
|
|
70841
|
+
export { UpdateMJTestSuiteInput };
|
|
70842
|
+
let RunMJTestSuiteViewResult = class RunMJTestSuiteViewResult {
|
|
70843
|
+
Results;
|
|
70844
|
+
UserViewRunID;
|
|
70845
|
+
RowCount;
|
|
70846
|
+
TotalRowCount;
|
|
70847
|
+
ExecutionTime;
|
|
70848
|
+
ErrorMessage;
|
|
70849
|
+
Success;
|
|
70850
|
+
};
|
|
70851
|
+
__decorate([
|
|
70852
|
+
Field(() => [MJTestSuite_]),
|
|
70853
|
+
__metadata("design:type", Array)
|
|
70854
|
+
], RunMJTestSuiteViewResult.prototype, "Results", void 0);
|
|
70855
|
+
__decorate([
|
|
70856
|
+
Field(() => String, { nullable: true }),
|
|
70857
|
+
__metadata("design:type", String)
|
|
70858
|
+
], RunMJTestSuiteViewResult.prototype, "UserViewRunID", void 0);
|
|
70859
|
+
__decorate([
|
|
70860
|
+
Field(() => Int, { nullable: true }),
|
|
70861
|
+
__metadata("design:type", Number)
|
|
70862
|
+
], RunMJTestSuiteViewResult.prototype, "RowCount", void 0);
|
|
70863
|
+
__decorate([
|
|
70864
|
+
Field(() => Int, { nullable: true }),
|
|
70865
|
+
__metadata("design:type", Number)
|
|
70866
|
+
], RunMJTestSuiteViewResult.prototype, "TotalRowCount", void 0);
|
|
70867
|
+
__decorate([
|
|
70868
|
+
Field(() => Int, { nullable: true }),
|
|
70869
|
+
__metadata("design:type", Number)
|
|
70870
|
+
], RunMJTestSuiteViewResult.prototype, "ExecutionTime", void 0);
|
|
70871
|
+
__decorate([
|
|
70872
|
+
Field({ nullable: true }),
|
|
70873
|
+
__metadata("design:type", String)
|
|
70874
|
+
], RunMJTestSuiteViewResult.prototype, "ErrorMessage", void 0);
|
|
70875
|
+
__decorate([
|
|
70876
|
+
Field(() => Boolean, { nullable: false }),
|
|
70877
|
+
__metadata("design:type", Boolean)
|
|
70878
|
+
], RunMJTestSuiteViewResult.prototype, "Success", void 0);
|
|
70879
|
+
RunMJTestSuiteViewResult = __decorate([
|
|
70880
|
+
ObjectType()
|
|
70881
|
+
], RunMJTestSuiteViewResult);
|
|
70882
|
+
export { RunMJTestSuiteViewResult };
|
|
70883
|
+
let MJTestSuiteResolver = class MJTestSuiteResolver extends ResolverBase {
|
|
70884
|
+
async RunMJTestSuiteViewByID(input, { providers, userPayload }, pubSub) {
|
|
70885
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70886
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
70887
|
+
}
|
|
70888
|
+
async RunMJTestSuiteViewByName(input, { providers, userPayload }, pubSub) {
|
|
70889
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70890
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
70891
|
+
}
|
|
70892
|
+
async RunMJTestSuiteDynamicView(input, { providers, userPayload }, pubSub) {
|
|
70893
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70894
|
+
input.EntityName = 'MJ: Test Suites';
|
|
70895
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
70896
|
+
}
|
|
70897
|
+
async MJTestSuite(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
70898
|
+
this.CheckUserReadPermissions('MJ: Test Suites', userPayload);
|
|
70899
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70900
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70901
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuites] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suites', userPayload, EntityPermissionType.Read, 'AND');
|
|
70902
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70903
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Suites', rows && rows.length > 0 ? rows[0] : {});
|
|
70904
|
+
return result;
|
|
70905
|
+
}
|
|
70906
|
+
async MJ_TestSuites_ParentIDArray(mjtestsuite_, { dataSources, userPayload, providers }, pubSub) {
|
|
70907
|
+
this.CheckUserReadPermissions('MJ: Test Suites', userPayload);
|
|
70908
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70909
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70910
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuites] WHERE [ParentID]='${mjtestsuite_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suites', userPayload, EntityPermissionType.Read, 'AND');
|
|
70911
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70912
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Suites', rows);
|
|
70913
|
+
return result;
|
|
70914
|
+
}
|
|
70915
|
+
async MJ_TestSuiteRuns_SuiteIDArray(mjtestsuite_, { dataSources, userPayload, providers }, pubSub) {
|
|
70916
|
+
this.CheckUserReadPermissions('MJ: Test Suite Runs', userPayload);
|
|
70917
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70918
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70919
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteRuns] WHERE [SuiteID]='${mjtestsuite_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
70920
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70921
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Runs', rows);
|
|
70922
|
+
return result;
|
|
70923
|
+
}
|
|
70924
|
+
async MJ_TestSuiteTests_SuiteIDArray(mjtestsuite_, { dataSources, userPayload, providers }, pubSub) {
|
|
70925
|
+
this.CheckUserReadPermissions('MJ: Test Suite Tests', userPayload);
|
|
70926
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70927
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70928
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteTests] WHERE [SuiteID]='${mjtestsuite_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Tests', userPayload, EntityPermissionType.Read, 'AND');
|
|
70929
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70930
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Suite Tests', rows);
|
|
70931
|
+
return result;
|
|
70932
|
+
}
|
|
70933
|
+
async CreateMJTestSuite(input, { providers, userPayload }, pubSub) {
|
|
70934
|
+
const provider = GetReadWriteProvider(providers);
|
|
70935
|
+
return this.CreateRecord('MJ: Test Suites', input, provider, userPayload, pubSub);
|
|
70936
|
+
}
|
|
70937
|
+
async UpdateMJTestSuite(input, { providers, userPayload }, pubSub) {
|
|
70938
|
+
const provider = GetReadWriteProvider(providers);
|
|
70939
|
+
return this.UpdateRecord('MJ: Test Suites', input, provider, userPayload, pubSub);
|
|
70940
|
+
}
|
|
70941
|
+
async DeleteMJTestSuite(ID, options, { providers, userPayload }, pubSub) {
|
|
70942
|
+
const provider = GetReadWriteProvider(providers);
|
|
70943
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
70944
|
+
return this.DeleteRecord('MJ: Test Suites', key, options, provider, userPayload, pubSub);
|
|
70945
|
+
}
|
|
70946
|
+
};
|
|
70947
|
+
__decorate([
|
|
70948
|
+
Query(() => RunMJTestSuiteViewResult),
|
|
70949
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
70950
|
+
__param(1, Ctx()),
|
|
70951
|
+
__param(2, PubSub()),
|
|
70952
|
+
__metadata("design:type", Function),
|
|
70953
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
70954
|
+
__metadata("design:returntype", Promise)
|
|
70955
|
+
], MJTestSuiteResolver.prototype, "RunMJTestSuiteViewByID", null);
|
|
70956
|
+
__decorate([
|
|
70957
|
+
Query(() => RunMJTestSuiteViewResult),
|
|
70958
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
70959
|
+
__param(1, Ctx()),
|
|
70960
|
+
__param(2, PubSub()),
|
|
70961
|
+
__metadata("design:type", Function),
|
|
70962
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
70963
|
+
__metadata("design:returntype", Promise)
|
|
70964
|
+
], MJTestSuiteResolver.prototype, "RunMJTestSuiteViewByName", null);
|
|
70965
|
+
__decorate([
|
|
70966
|
+
Query(() => RunMJTestSuiteViewResult),
|
|
70967
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
70968
|
+
__param(1, Ctx()),
|
|
70969
|
+
__param(2, PubSub()),
|
|
70970
|
+
__metadata("design:type", Function),
|
|
70971
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
70972
|
+
__metadata("design:returntype", Promise)
|
|
70973
|
+
], MJTestSuiteResolver.prototype, "RunMJTestSuiteDynamicView", null);
|
|
70974
|
+
__decorate([
|
|
70975
|
+
Query(() => MJTestSuite_, { nullable: true }),
|
|
70976
|
+
__param(0, Arg('ID', () => String)),
|
|
70977
|
+
__param(1, Ctx()),
|
|
70978
|
+
__param(2, PubSub()),
|
|
70979
|
+
__metadata("design:type", Function),
|
|
70980
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
70981
|
+
__metadata("design:returntype", Promise)
|
|
70982
|
+
], MJTestSuiteResolver.prototype, "MJTestSuite", null);
|
|
70983
|
+
__decorate([
|
|
70984
|
+
FieldResolver(() => [MJTestSuite_]),
|
|
70985
|
+
__param(0, Root()),
|
|
70986
|
+
__param(1, Ctx()),
|
|
70987
|
+
__param(2, PubSub()),
|
|
70988
|
+
__metadata("design:type", Function),
|
|
70989
|
+
__metadata("design:paramtypes", [MJTestSuite_, Object, PubSubEngine]),
|
|
70990
|
+
__metadata("design:returntype", Promise)
|
|
70991
|
+
], MJTestSuiteResolver.prototype, "MJ_TestSuites_ParentIDArray", null);
|
|
70992
|
+
__decorate([
|
|
70993
|
+
FieldResolver(() => [MJTestSuiteRun_]),
|
|
70994
|
+
__param(0, Root()),
|
|
70995
|
+
__param(1, Ctx()),
|
|
70996
|
+
__param(2, PubSub()),
|
|
70997
|
+
__metadata("design:type", Function),
|
|
70998
|
+
__metadata("design:paramtypes", [MJTestSuite_, Object, PubSubEngine]),
|
|
70999
|
+
__metadata("design:returntype", Promise)
|
|
71000
|
+
], MJTestSuiteResolver.prototype, "MJ_TestSuiteRuns_SuiteIDArray", null);
|
|
71001
|
+
__decorate([
|
|
71002
|
+
FieldResolver(() => [MJTestSuiteTest_]),
|
|
71003
|
+
__param(0, Root()),
|
|
71004
|
+
__param(1, Ctx()),
|
|
71005
|
+
__param(2, PubSub()),
|
|
71006
|
+
__metadata("design:type", Function),
|
|
71007
|
+
__metadata("design:paramtypes", [MJTestSuite_, Object, PubSubEngine]),
|
|
71008
|
+
__metadata("design:returntype", Promise)
|
|
71009
|
+
], MJTestSuiteResolver.prototype, "MJ_TestSuiteTests_SuiteIDArray", null);
|
|
71010
|
+
__decorate([
|
|
71011
|
+
Mutation(() => MJTestSuite_),
|
|
71012
|
+
__param(0, Arg('input', () => CreateMJTestSuiteInput)),
|
|
71013
|
+
__param(1, Ctx()),
|
|
71014
|
+
__param(2, PubSub()),
|
|
71015
|
+
__metadata("design:type", Function),
|
|
71016
|
+
__metadata("design:paramtypes", [CreateMJTestSuiteInput, Object, PubSubEngine]),
|
|
71017
|
+
__metadata("design:returntype", Promise)
|
|
71018
|
+
], MJTestSuiteResolver.prototype, "CreateMJTestSuite", null);
|
|
71019
|
+
__decorate([
|
|
71020
|
+
Mutation(() => MJTestSuite_),
|
|
71021
|
+
__param(0, Arg('input', () => UpdateMJTestSuiteInput)),
|
|
71022
|
+
__param(1, Ctx()),
|
|
71023
|
+
__param(2, PubSub()),
|
|
71024
|
+
__metadata("design:type", Function),
|
|
71025
|
+
__metadata("design:paramtypes", [UpdateMJTestSuiteInput, Object, PubSubEngine]),
|
|
71026
|
+
__metadata("design:returntype", Promise)
|
|
71027
|
+
], MJTestSuiteResolver.prototype, "UpdateMJTestSuite", null);
|
|
71028
|
+
__decorate([
|
|
71029
|
+
Mutation(() => MJTestSuite_),
|
|
71030
|
+
__param(0, Arg('ID', () => String)),
|
|
71031
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
71032
|
+
__param(2, Ctx()),
|
|
71033
|
+
__param(3, PubSub()),
|
|
71034
|
+
__metadata("design:type", Function),
|
|
71035
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
71036
|
+
__metadata("design:returntype", Promise)
|
|
71037
|
+
], MJTestSuiteResolver.prototype, "DeleteMJTestSuite", null);
|
|
71038
|
+
MJTestSuiteResolver = __decorate([
|
|
71039
|
+
Resolver(MJTestSuite_)
|
|
71040
|
+
], MJTestSuiteResolver);
|
|
71041
|
+
export { MJTestSuiteResolver };
|
|
67799
71042
|
let MJConversationArtifact_ = class MJConversationArtifact_ {
|
|
67800
71043
|
ID;
|
|
67801
71044
|
Name;
|
|
@@ -71398,6 +74641,532 @@ MJComponentLibraryLinkResolver = __decorate([
|
|
|
71398
74641
|
Resolver(MJComponentLibraryLink_)
|
|
71399
74642
|
], MJComponentLibraryLinkResolver);
|
|
71400
74643
|
export { MJComponentLibraryLinkResolver };
|
|
74644
|
+
let MJTestSuiteRun_ = class MJTestSuiteRun_ {
|
|
74645
|
+
ID;
|
|
74646
|
+
SuiteID;
|
|
74647
|
+
RunByUserID;
|
|
74648
|
+
Environment;
|
|
74649
|
+
TriggerType;
|
|
74650
|
+
GitCommit;
|
|
74651
|
+
AgentVersion;
|
|
74652
|
+
Status;
|
|
74653
|
+
StartedAt;
|
|
74654
|
+
CompletedAt;
|
|
74655
|
+
TotalTests;
|
|
74656
|
+
PassedTests;
|
|
74657
|
+
FailedTests;
|
|
74658
|
+
SkippedTests;
|
|
74659
|
+
ErrorTests;
|
|
74660
|
+
TotalDurationSeconds;
|
|
74661
|
+
TotalCostUSD;
|
|
74662
|
+
Configuration;
|
|
74663
|
+
ResultSummary;
|
|
74664
|
+
ErrorMessage;
|
|
74665
|
+
_mj__CreatedAt;
|
|
74666
|
+
_mj__UpdatedAt;
|
|
74667
|
+
Suite;
|
|
74668
|
+
RunByUser;
|
|
74669
|
+
MJ_TestRuns_TestSuiteRunIDArray;
|
|
74670
|
+
};
|
|
74671
|
+
__decorate([
|
|
74672
|
+
Field(),
|
|
74673
|
+
MaxLength(16),
|
|
74674
|
+
__metadata("design:type", String)
|
|
74675
|
+
], MJTestSuiteRun_.prototype, "ID", void 0);
|
|
74676
|
+
__decorate([
|
|
74677
|
+
Field({ description: `Foreign Key - The test suite that was executed` }),
|
|
74678
|
+
MaxLength(16),
|
|
74679
|
+
__metadata("design:type", String)
|
|
74680
|
+
], MJTestSuiteRun_.prototype, "SuiteID", void 0);
|
|
74681
|
+
__decorate([
|
|
74682
|
+
Field({ description: `Foreign Key - The user who triggered the suite run (could be system user for automated runs)` }),
|
|
74683
|
+
MaxLength(16),
|
|
74684
|
+
__metadata("design:type", String)
|
|
74685
|
+
], MJTestSuiteRun_.prototype, "RunByUserID", void 0);
|
|
74686
|
+
__decorate([
|
|
74687
|
+
Field({ nullable: true, description: `Environment where tests were executed (e.g., "dev", "staging", "prod", "ci")` }),
|
|
74688
|
+
MaxLength(100),
|
|
74689
|
+
__metadata("design:type", String)
|
|
74690
|
+
], MJTestSuiteRun_.prototype, "Environment", void 0);
|
|
74691
|
+
__decorate([
|
|
74692
|
+
Field({ nullable: true, description: `How the run was triggered (e.g., "manual", "ci", "scheduled", "shadow", "release")` }),
|
|
74693
|
+
MaxLength(100),
|
|
74694
|
+
__metadata("design:type", String)
|
|
74695
|
+
], MJTestSuiteRun_.prototype, "TriggerType", void 0);
|
|
74696
|
+
__decorate([
|
|
74697
|
+
Field({ nullable: true, description: `Git commit SHA of the code version being tested. Enables correlation between test results and code changes.` }),
|
|
74698
|
+
MaxLength(200),
|
|
74699
|
+
__metadata("design:type", String)
|
|
74700
|
+
], MJTestSuiteRun_.prototype, "GitCommit", void 0);
|
|
74701
|
+
__decorate([
|
|
74702
|
+
Field({ nullable: true, description: `Version of the agent or system being tested (e.g., "skip-agent-2.1.0", "workflow-engine-3.4.2"). Enables version comparison and regression detection.` }),
|
|
74703
|
+
MaxLength(200),
|
|
74704
|
+
__metadata("design:type", String)
|
|
74705
|
+
], MJTestSuiteRun_.prototype, "AgentVersion", void 0);
|
|
74706
|
+
__decorate([
|
|
74707
|
+
Field({ description: `Current status of the suite run: Pending (queued), Running (in progress), Completed (finished successfully), Failed (suite-level failure), Cancelled (stopped by user)` }),
|
|
74708
|
+
MaxLength(40),
|
|
74709
|
+
__metadata("design:type", String)
|
|
74710
|
+
], MJTestSuiteRun_.prototype, "Status", void 0);
|
|
74711
|
+
__decorate([
|
|
74712
|
+
Field({ nullable: true, description: `Timestamp when the suite run started execution` }),
|
|
74713
|
+
MaxLength(8),
|
|
74714
|
+
__metadata("design:type", Date)
|
|
74715
|
+
], MJTestSuiteRun_.prototype, "StartedAt", void 0);
|
|
74716
|
+
__decorate([
|
|
74717
|
+
Field({ nullable: true, description: `Timestamp when the suite run completed (successfully or with failures)` }),
|
|
74718
|
+
MaxLength(8),
|
|
74719
|
+
__metadata("design:type", Date)
|
|
74720
|
+
], MJTestSuiteRun_.prototype, "CompletedAt", void 0);
|
|
74721
|
+
__decorate([
|
|
74722
|
+
Field(() => Int, { nullable: true, description: `Total number of tests executed in this suite run` }),
|
|
74723
|
+
__metadata("design:type", Number)
|
|
74724
|
+
], MJTestSuiteRun_.prototype, "TotalTests", void 0);
|
|
74725
|
+
__decorate([
|
|
74726
|
+
Field(() => Int, { nullable: true, description: `Number of tests that passed all checks` }),
|
|
74727
|
+
__metadata("design:type", Number)
|
|
74728
|
+
], MJTestSuiteRun_.prototype, "PassedTests", void 0);
|
|
74729
|
+
__decorate([
|
|
74730
|
+
Field(() => Int, { nullable: true, description: `Number of tests that failed at least one check` }),
|
|
74731
|
+
__metadata("design:type", Number)
|
|
74732
|
+
], MJTestSuiteRun_.prototype, "FailedTests", void 0);
|
|
74733
|
+
__decorate([
|
|
74734
|
+
Field(() => Int, { nullable: true, description: `Number of tests that were skipped (not executed)` }),
|
|
74735
|
+
__metadata("design:type", Number)
|
|
74736
|
+
], MJTestSuiteRun_.prototype, "SkippedTests", void 0);
|
|
74737
|
+
__decorate([
|
|
74738
|
+
Field(() => Int, { nullable: true, description: `Number of tests that encountered execution errors (different from failing validation)` }),
|
|
74739
|
+
__metadata("design:type", Number)
|
|
74740
|
+
], MJTestSuiteRun_.prototype, "ErrorTests", void 0);
|
|
74741
|
+
__decorate([
|
|
74742
|
+
Field(() => Float, { nullable: true, description: `Total execution time in seconds for the entire suite` }),
|
|
74743
|
+
__metadata("design:type", Number)
|
|
74744
|
+
], MJTestSuiteRun_.prototype, "TotalDurationSeconds", void 0);
|
|
74745
|
+
__decorate([
|
|
74746
|
+
Field(() => Float, { nullable: true, description: `Total cost in USD for running the entire suite (sum of all test costs)` }),
|
|
74747
|
+
__metadata("design:type", Number)
|
|
74748
|
+
], MJTestSuiteRun_.prototype, "TotalCostUSD", void 0);
|
|
74749
|
+
__decorate([
|
|
74750
|
+
Field({ nullable: true, description: `JSON snapshot of the runtime configuration used for this suite run` }),
|
|
74751
|
+
__metadata("design:type", String)
|
|
74752
|
+
], MJTestSuiteRun_.prototype, "Configuration", void 0);
|
|
74753
|
+
__decorate([
|
|
74754
|
+
Field({ nullable: true, description: `JSON object with aggregated results and statistics from the suite run` }),
|
|
74755
|
+
__metadata("design:type", String)
|
|
74756
|
+
], MJTestSuiteRun_.prototype, "ResultSummary", void 0);
|
|
74757
|
+
__decorate([
|
|
74758
|
+
Field({ nullable: true, description: `Error message if the suite-level execution failed (before individual tests could run)` }),
|
|
74759
|
+
__metadata("design:type", String)
|
|
74760
|
+
], MJTestSuiteRun_.prototype, "ErrorMessage", void 0);
|
|
74761
|
+
__decorate([
|
|
74762
|
+
Field(),
|
|
74763
|
+
MaxLength(10),
|
|
74764
|
+
__metadata("design:type", Date)
|
|
74765
|
+
], MJTestSuiteRun_.prototype, "_mj__CreatedAt", void 0);
|
|
74766
|
+
__decorate([
|
|
74767
|
+
Field(),
|
|
74768
|
+
MaxLength(10),
|
|
74769
|
+
__metadata("design:type", Date)
|
|
74770
|
+
], MJTestSuiteRun_.prototype, "_mj__UpdatedAt", void 0);
|
|
74771
|
+
__decorate([
|
|
74772
|
+
Field(),
|
|
74773
|
+
MaxLength(510),
|
|
74774
|
+
__metadata("design:type", String)
|
|
74775
|
+
], MJTestSuiteRun_.prototype, "Suite", void 0);
|
|
74776
|
+
__decorate([
|
|
74777
|
+
Field(),
|
|
74778
|
+
MaxLength(200),
|
|
74779
|
+
__metadata("design:type", String)
|
|
74780
|
+
], MJTestSuiteRun_.prototype, "RunByUser", void 0);
|
|
74781
|
+
__decorate([
|
|
74782
|
+
Field(() => [MJTestRun_]),
|
|
74783
|
+
__metadata("design:type", Array)
|
|
74784
|
+
], MJTestSuiteRun_.prototype, "MJ_TestRuns_TestSuiteRunIDArray", void 0);
|
|
74785
|
+
MJTestSuiteRun_ = __decorate([
|
|
74786
|
+
ObjectType({ description: `Execution instance of a test suite. Captures who ran it, when, in what environment, and aggregates results from all tests in the suite. Supports versioning via GitCommit and AgentVersion fields to track system state during execution.` })
|
|
74787
|
+
], MJTestSuiteRun_);
|
|
74788
|
+
export { MJTestSuiteRun_ };
|
|
74789
|
+
let CreateMJTestSuiteRunInput = class CreateMJTestSuiteRunInput {
|
|
74790
|
+
ID;
|
|
74791
|
+
SuiteID;
|
|
74792
|
+
RunByUserID;
|
|
74793
|
+
Environment;
|
|
74794
|
+
TriggerType;
|
|
74795
|
+
GitCommit;
|
|
74796
|
+
AgentVersion;
|
|
74797
|
+
Status;
|
|
74798
|
+
StartedAt;
|
|
74799
|
+
CompletedAt;
|
|
74800
|
+
TotalTests;
|
|
74801
|
+
PassedTests;
|
|
74802
|
+
FailedTests;
|
|
74803
|
+
SkippedTests;
|
|
74804
|
+
ErrorTests;
|
|
74805
|
+
TotalDurationSeconds;
|
|
74806
|
+
TotalCostUSD;
|
|
74807
|
+
Configuration;
|
|
74808
|
+
ResultSummary;
|
|
74809
|
+
ErrorMessage;
|
|
74810
|
+
};
|
|
74811
|
+
__decorate([
|
|
74812
|
+
Field({ nullable: true }),
|
|
74813
|
+
__metadata("design:type", String)
|
|
74814
|
+
], CreateMJTestSuiteRunInput.prototype, "ID", void 0);
|
|
74815
|
+
__decorate([
|
|
74816
|
+
Field({ nullable: true }),
|
|
74817
|
+
__metadata("design:type", String)
|
|
74818
|
+
], CreateMJTestSuiteRunInput.prototype, "SuiteID", void 0);
|
|
74819
|
+
__decorate([
|
|
74820
|
+
Field({ nullable: true }),
|
|
74821
|
+
__metadata("design:type", String)
|
|
74822
|
+
], CreateMJTestSuiteRunInput.prototype, "RunByUserID", void 0);
|
|
74823
|
+
__decorate([
|
|
74824
|
+
Field({ nullable: true }),
|
|
74825
|
+
__metadata("design:type", String)
|
|
74826
|
+
], CreateMJTestSuiteRunInput.prototype, "Environment", void 0);
|
|
74827
|
+
__decorate([
|
|
74828
|
+
Field({ nullable: true }),
|
|
74829
|
+
__metadata("design:type", String)
|
|
74830
|
+
], CreateMJTestSuiteRunInput.prototype, "TriggerType", void 0);
|
|
74831
|
+
__decorate([
|
|
74832
|
+
Field({ nullable: true }),
|
|
74833
|
+
__metadata("design:type", String)
|
|
74834
|
+
], CreateMJTestSuiteRunInput.prototype, "GitCommit", void 0);
|
|
74835
|
+
__decorate([
|
|
74836
|
+
Field({ nullable: true }),
|
|
74837
|
+
__metadata("design:type", String)
|
|
74838
|
+
], CreateMJTestSuiteRunInput.prototype, "AgentVersion", void 0);
|
|
74839
|
+
__decorate([
|
|
74840
|
+
Field({ nullable: true }),
|
|
74841
|
+
__metadata("design:type", String)
|
|
74842
|
+
], CreateMJTestSuiteRunInput.prototype, "Status", void 0);
|
|
74843
|
+
__decorate([
|
|
74844
|
+
Field({ nullable: true }),
|
|
74845
|
+
__metadata("design:type", Date)
|
|
74846
|
+
], CreateMJTestSuiteRunInput.prototype, "StartedAt", void 0);
|
|
74847
|
+
__decorate([
|
|
74848
|
+
Field({ nullable: true }),
|
|
74849
|
+
__metadata("design:type", Date)
|
|
74850
|
+
], CreateMJTestSuiteRunInput.prototype, "CompletedAt", void 0);
|
|
74851
|
+
__decorate([
|
|
74852
|
+
Field(() => Int, { nullable: true }),
|
|
74853
|
+
__metadata("design:type", Number)
|
|
74854
|
+
], CreateMJTestSuiteRunInput.prototype, "TotalTests", void 0);
|
|
74855
|
+
__decorate([
|
|
74856
|
+
Field(() => Int, { nullable: true }),
|
|
74857
|
+
__metadata("design:type", Number)
|
|
74858
|
+
], CreateMJTestSuiteRunInput.prototype, "PassedTests", void 0);
|
|
74859
|
+
__decorate([
|
|
74860
|
+
Field(() => Int, { nullable: true }),
|
|
74861
|
+
__metadata("design:type", Number)
|
|
74862
|
+
], CreateMJTestSuiteRunInput.prototype, "FailedTests", void 0);
|
|
74863
|
+
__decorate([
|
|
74864
|
+
Field(() => Int, { nullable: true }),
|
|
74865
|
+
__metadata("design:type", Number)
|
|
74866
|
+
], CreateMJTestSuiteRunInput.prototype, "SkippedTests", void 0);
|
|
74867
|
+
__decorate([
|
|
74868
|
+
Field(() => Int, { nullable: true }),
|
|
74869
|
+
__metadata("design:type", Number)
|
|
74870
|
+
], CreateMJTestSuiteRunInput.prototype, "ErrorTests", void 0);
|
|
74871
|
+
__decorate([
|
|
74872
|
+
Field(() => Float, { nullable: true }),
|
|
74873
|
+
__metadata("design:type", Number)
|
|
74874
|
+
], CreateMJTestSuiteRunInput.prototype, "TotalDurationSeconds", void 0);
|
|
74875
|
+
__decorate([
|
|
74876
|
+
Field(() => Float, { nullable: true }),
|
|
74877
|
+
__metadata("design:type", Number)
|
|
74878
|
+
], CreateMJTestSuiteRunInput.prototype, "TotalCostUSD", void 0);
|
|
74879
|
+
__decorate([
|
|
74880
|
+
Field({ nullable: true }),
|
|
74881
|
+
__metadata("design:type", String)
|
|
74882
|
+
], CreateMJTestSuiteRunInput.prototype, "Configuration", void 0);
|
|
74883
|
+
__decorate([
|
|
74884
|
+
Field({ nullable: true }),
|
|
74885
|
+
__metadata("design:type", String)
|
|
74886
|
+
], CreateMJTestSuiteRunInput.prototype, "ResultSummary", void 0);
|
|
74887
|
+
__decorate([
|
|
74888
|
+
Field({ nullable: true }),
|
|
74889
|
+
__metadata("design:type", String)
|
|
74890
|
+
], CreateMJTestSuiteRunInput.prototype, "ErrorMessage", void 0);
|
|
74891
|
+
CreateMJTestSuiteRunInput = __decorate([
|
|
74892
|
+
InputType()
|
|
74893
|
+
], CreateMJTestSuiteRunInput);
|
|
74894
|
+
export { CreateMJTestSuiteRunInput };
|
|
74895
|
+
let UpdateMJTestSuiteRunInput = class UpdateMJTestSuiteRunInput {
|
|
74896
|
+
ID;
|
|
74897
|
+
SuiteID;
|
|
74898
|
+
RunByUserID;
|
|
74899
|
+
Environment;
|
|
74900
|
+
TriggerType;
|
|
74901
|
+
GitCommit;
|
|
74902
|
+
AgentVersion;
|
|
74903
|
+
Status;
|
|
74904
|
+
StartedAt;
|
|
74905
|
+
CompletedAt;
|
|
74906
|
+
TotalTests;
|
|
74907
|
+
PassedTests;
|
|
74908
|
+
FailedTests;
|
|
74909
|
+
SkippedTests;
|
|
74910
|
+
ErrorTests;
|
|
74911
|
+
TotalDurationSeconds;
|
|
74912
|
+
TotalCostUSD;
|
|
74913
|
+
Configuration;
|
|
74914
|
+
ResultSummary;
|
|
74915
|
+
ErrorMessage;
|
|
74916
|
+
OldValues___;
|
|
74917
|
+
};
|
|
74918
|
+
__decorate([
|
|
74919
|
+
Field(),
|
|
74920
|
+
__metadata("design:type", String)
|
|
74921
|
+
], UpdateMJTestSuiteRunInput.prototype, "ID", void 0);
|
|
74922
|
+
__decorate([
|
|
74923
|
+
Field({ nullable: true }),
|
|
74924
|
+
__metadata("design:type", String)
|
|
74925
|
+
], UpdateMJTestSuiteRunInput.prototype, "SuiteID", void 0);
|
|
74926
|
+
__decorate([
|
|
74927
|
+
Field({ nullable: true }),
|
|
74928
|
+
__metadata("design:type", String)
|
|
74929
|
+
], UpdateMJTestSuiteRunInput.prototype, "RunByUserID", void 0);
|
|
74930
|
+
__decorate([
|
|
74931
|
+
Field({ nullable: true }),
|
|
74932
|
+
__metadata("design:type", String)
|
|
74933
|
+
], UpdateMJTestSuiteRunInput.prototype, "Environment", void 0);
|
|
74934
|
+
__decorate([
|
|
74935
|
+
Field({ nullable: true }),
|
|
74936
|
+
__metadata("design:type", String)
|
|
74937
|
+
], UpdateMJTestSuiteRunInput.prototype, "TriggerType", void 0);
|
|
74938
|
+
__decorate([
|
|
74939
|
+
Field({ nullable: true }),
|
|
74940
|
+
__metadata("design:type", String)
|
|
74941
|
+
], UpdateMJTestSuiteRunInput.prototype, "GitCommit", void 0);
|
|
74942
|
+
__decorate([
|
|
74943
|
+
Field({ nullable: true }),
|
|
74944
|
+
__metadata("design:type", String)
|
|
74945
|
+
], UpdateMJTestSuiteRunInput.prototype, "AgentVersion", void 0);
|
|
74946
|
+
__decorate([
|
|
74947
|
+
Field({ nullable: true }),
|
|
74948
|
+
__metadata("design:type", String)
|
|
74949
|
+
], UpdateMJTestSuiteRunInput.prototype, "Status", void 0);
|
|
74950
|
+
__decorate([
|
|
74951
|
+
Field({ nullable: true }),
|
|
74952
|
+
__metadata("design:type", Date)
|
|
74953
|
+
], UpdateMJTestSuiteRunInput.prototype, "StartedAt", void 0);
|
|
74954
|
+
__decorate([
|
|
74955
|
+
Field({ nullable: true }),
|
|
74956
|
+
__metadata("design:type", Date)
|
|
74957
|
+
], UpdateMJTestSuiteRunInput.prototype, "CompletedAt", void 0);
|
|
74958
|
+
__decorate([
|
|
74959
|
+
Field(() => Int, { nullable: true }),
|
|
74960
|
+
__metadata("design:type", Number)
|
|
74961
|
+
], UpdateMJTestSuiteRunInput.prototype, "TotalTests", void 0);
|
|
74962
|
+
__decorate([
|
|
74963
|
+
Field(() => Int, { nullable: true }),
|
|
74964
|
+
__metadata("design:type", Number)
|
|
74965
|
+
], UpdateMJTestSuiteRunInput.prototype, "PassedTests", void 0);
|
|
74966
|
+
__decorate([
|
|
74967
|
+
Field(() => Int, { nullable: true }),
|
|
74968
|
+
__metadata("design:type", Number)
|
|
74969
|
+
], UpdateMJTestSuiteRunInput.prototype, "FailedTests", void 0);
|
|
74970
|
+
__decorate([
|
|
74971
|
+
Field(() => Int, { nullable: true }),
|
|
74972
|
+
__metadata("design:type", Number)
|
|
74973
|
+
], UpdateMJTestSuiteRunInput.prototype, "SkippedTests", void 0);
|
|
74974
|
+
__decorate([
|
|
74975
|
+
Field(() => Int, { nullable: true }),
|
|
74976
|
+
__metadata("design:type", Number)
|
|
74977
|
+
], UpdateMJTestSuiteRunInput.prototype, "ErrorTests", void 0);
|
|
74978
|
+
__decorate([
|
|
74979
|
+
Field(() => Float, { nullable: true }),
|
|
74980
|
+
__metadata("design:type", Number)
|
|
74981
|
+
], UpdateMJTestSuiteRunInput.prototype, "TotalDurationSeconds", void 0);
|
|
74982
|
+
__decorate([
|
|
74983
|
+
Field(() => Float, { nullable: true }),
|
|
74984
|
+
__metadata("design:type", Number)
|
|
74985
|
+
], UpdateMJTestSuiteRunInput.prototype, "TotalCostUSD", void 0);
|
|
74986
|
+
__decorate([
|
|
74987
|
+
Field({ nullable: true }),
|
|
74988
|
+
__metadata("design:type", String)
|
|
74989
|
+
], UpdateMJTestSuiteRunInput.prototype, "Configuration", void 0);
|
|
74990
|
+
__decorate([
|
|
74991
|
+
Field({ nullable: true }),
|
|
74992
|
+
__metadata("design:type", String)
|
|
74993
|
+
], UpdateMJTestSuiteRunInput.prototype, "ResultSummary", void 0);
|
|
74994
|
+
__decorate([
|
|
74995
|
+
Field({ nullable: true }),
|
|
74996
|
+
__metadata("design:type", String)
|
|
74997
|
+
], UpdateMJTestSuiteRunInput.prototype, "ErrorMessage", void 0);
|
|
74998
|
+
__decorate([
|
|
74999
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
75000
|
+
__metadata("design:type", Array)
|
|
75001
|
+
], UpdateMJTestSuiteRunInput.prototype, "OldValues___", void 0);
|
|
75002
|
+
UpdateMJTestSuiteRunInput = __decorate([
|
|
75003
|
+
InputType()
|
|
75004
|
+
], UpdateMJTestSuiteRunInput);
|
|
75005
|
+
export { UpdateMJTestSuiteRunInput };
|
|
75006
|
+
let RunMJTestSuiteRunViewResult = class RunMJTestSuiteRunViewResult {
|
|
75007
|
+
Results;
|
|
75008
|
+
UserViewRunID;
|
|
75009
|
+
RowCount;
|
|
75010
|
+
TotalRowCount;
|
|
75011
|
+
ExecutionTime;
|
|
75012
|
+
ErrorMessage;
|
|
75013
|
+
Success;
|
|
75014
|
+
};
|
|
75015
|
+
__decorate([
|
|
75016
|
+
Field(() => [MJTestSuiteRun_]),
|
|
75017
|
+
__metadata("design:type", Array)
|
|
75018
|
+
], RunMJTestSuiteRunViewResult.prototype, "Results", void 0);
|
|
75019
|
+
__decorate([
|
|
75020
|
+
Field(() => String, { nullable: true }),
|
|
75021
|
+
__metadata("design:type", String)
|
|
75022
|
+
], RunMJTestSuiteRunViewResult.prototype, "UserViewRunID", void 0);
|
|
75023
|
+
__decorate([
|
|
75024
|
+
Field(() => Int, { nullable: true }),
|
|
75025
|
+
__metadata("design:type", Number)
|
|
75026
|
+
], RunMJTestSuiteRunViewResult.prototype, "RowCount", void 0);
|
|
75027
|
+
__decorate([
|
|
75028
|
+
Field(() => Int, { nullable: true }),
|
|
75029
|
+
__metadata("design:type", Number)
|
|
75030
|
+
], RunMJTestSuiteRunViewResult.prototype, "TotalRowCount", void 0);
|
|
75031
|
+
__decorate([
|
|
75032
|
+
Field(() => Int, { nullable: true }),
|
|
75033
|
+
__metadata("design:type", Number)
|
|
75034
|
+
], RunMJTestSuiteRunViewResult.prototype, "ExecutionTime", void 0);
|
|
75035
|
+
__decorate([
|
|
75036
|
+
Field({ nullable: true }),
|
|
75037
|
+
__metadata("design:type", String)
|
|
75038
|
+
], RunMJTestSuiteRunViewResult.prototype, "ErrorMessage", void 0);
|
|
75039
|
+
__decorate([
|
|
75040
|
+
Field(() => Boolean, { nullable: false }),
|
|
75041
|
+
__metadata("design:type", Boolean)
|
|
75042
|
+
], RunMJTestSuiteRunViewResult.prototype, "Success", void 0);
|
|
75043
|
+
RunMJTestSuiteRunViewResult = __decorate([
|
|
75044
|
+
ObjectType()
|
|
75045
|
+
], RunMJTestSuiteRunViewResult);
|
|
75046
|
+
export { RunMJTestSuiteRunViewResult };
|
|
75047
|
+
let MJTestSuiteRunResolver = class MJTestSuiteRunResolver extends ResolverBase {
|
|
75048
|
+
async RunMJTestSuiteRunViewByID(input, { providers, userPayload }, pubSub) {
|
|
75049
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75050
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
75051
|
+
}
|
|
75052
|
+
async RunMJTestSuiteRunViewByName(input, { providers, userPayload }, pubSub) {
|
|
75053
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75054
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
75055
|
+
}
|
|
75056
|
+
async RunMJTestSuiteRunDynamicView(input, { providers, userPayload }, pubSub) {
|
|
75057
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75058
|
+
input.EntityName = 'MJ: Test Suite Runs';
|
|
75059
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
75060
|
+
}
|
|
75061
|
+
async MJTestSuiteRun(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
75062
|
+
this.CheckUserReadPermissions('MJ: Test Suite Runs', userPayload);
|
|
75063
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75064
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
75065
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestSuiteRuns] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Suite Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
75066
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
75067
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Test Suite Runs', rows && rows.length > 0 ? rows[0] : {});
|
|
75068
|
+
return result;
|
|
75069
|
+
}
|
|
75070
|
+
async MJ_TestRuns_TestSuiteRunIDArray(mjtestsuiterun_, { dataSources, userPayload, providers }, pubSub) {
|
|
75071
|
+
this.CheckUserReadPermissions('MJ: Test Runs', userPayload);
|
|
75072
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
75073
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
75074
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTestRuns] WHERE [TestSuiteRunID]='${mjtestsuiterun_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Test Runs', userPayload, EntityPermissionType.Read, 'AND');
|
|
75075
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
75076
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Test Runs', rows);
|
|
75077
|
+
return result;
|
|
75078
|
+
}
|
|
75079
|
+
async CreateMJTestSuiteRun(input, { providers, userPayload }, pubSub) {
|
|
75080
|
+
const provider = GetReadWriteProvider(providers);
|
|
75081
|
+
return this.CreateRecord('MJ: Test Suite Runs', input, provider, userPayload, pubSub);
|
|
75082
|
+
}
|
|
75083
|
+
async UpdateMJTestSuiteRun(input, { providers, userPayload }, pubSub) {
|
|
75084
|
+
const provider = GetReadWriteProvider(providers);
|
|
75085
|
+
return this.UpdateRecord('MJ: Test Suite Runs', input, provider, userPayload, pubSub);
|
|
75086
|
+
}
|
|
75087
|
+
async DeleteMJTestSuiteRun(ID, options, { providers, userPayload }, pubSub) {
|
|
75088
|
+
const provider = GetReadWriteProvider(providers);
|
|
75089
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
75090
|
+
return this.DeleteRecord('MJ: Test Suite Runs', key, options, provider, userPayload, pubSub);
|
|
75091
|
+
}
|
|
75092
|
+
};
|
|
75093
|
+
__decorate([
|
|
75094
|
+
Query(() => RunMJTestSuiteRunViewResult),
|
|
75095
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
75096
|
+
__param(1, Ctx()),
|
|
75097
|
+
__param(2, PubSub()),
|
|
75098
|
+
__metadata("design:type", Function),
|
|
75099
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
75100
|
+
__metadata("design:returntype", Promise)
|
|
75101
|
+
], MJTestSuiteRunResolver.prototype, "RunMJTestSuiteRunViewByID", null);
|
|
75102
|
+
__decorate([
|
|
75103
|
+
Query(() => RunMJTestSuiteRunViewResult),
|
|
75104
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
75105
|
+
__param(1, Ctx()),
|
|
75106
|
+
__param(2, PubSub()),
|
|
75107
|
+
__metadata("design:type", Function),
|
|
75108
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
75109
|
+
__metadata("design:returntype", Promise)
|
|
75110
|
+
], MJTestSuiteRunResolver.prototype, "RunMJTestSuiteRunViewByName", null);
|
|
75111
|
+
__decorate([
|
|
75112
|
+
Query(() => RunMJTestSuiteRunViewResult),
|
|
75113
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
75114
|
+
__param(1, Ctx()),
|
|
75115
|
+
__param(2, PubSub()),
|
|
75116
|
+
__metadata("design:type", Function),
|
|
75117
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
75118
|
+
__metadata("design:returntype", Promise)
|
|
75119
|
+
], MJTestSuiteRunResolver.prototype, "RunMJTestSuiteRunDynamicView", null);
|
|
75120
|
+
__decorate([
|
|
75121
|
+
Query(() => MJTestSuiteRun_, { nullable: true }),
|
|
75122
|
+
__param(0, Arg('ID', () => String)),
|
|
75123
|
+
__param(1, Ctx()),
|
|
75124
|
+
__param(2, PubSub()),
|
|
75125
|
+
__metadata("design:type", Function),
|
|
75126
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
75127
|
+
__metadata("design:returntype", Promise)
|
|
75128
|
+
], MJTestSuiteRunResolver.prototype, "MJTestSuiteRun", null);
|
|
75129
|
+
__decorate([
|
|
75130
|
+
FieldResolver(() => [MJTestRun_]),
|
|
75131
|
+
__param(0, Root()),
|
|
75132
|
+
__param(1, Ctx()),
|
|
75133
|
+
__param(2, PubSub()),
|
|
75134
|
+
__metadata("design:type", Function),
|
|
75135
|
+
__metadata("design:paramtypes", [MJTestSuiteRun_, Object, PubSubEngine]),
|
|
75136
|
+
__metadata("design:returntype", Promise)
|
|
75137
|
+
], MJTestSuiteRunResolver.prototype, "MJ_TestRuns_TestSuiteRunIDArray", null);
|
|
75138
|
+
__decorate([
|
|
75139
|
+
Mutation(() => MJTestSuiteRun_),
|
|
75140
|
+
__param(0, Arg('input', () => CreateMJTestSuiteRunInput)),
|
|
75141
|
+
__param(1, Ctx()),
|
|
75142
|
+
__param(2, PubSub()),
|
|
75143
|
+
__metadata("design:type", Function),
|
|
75144
|
+
__metadata("design:paramtypes", [CreateMJTestSuiteRunInput, Object, PubSubEngine]),
|
|
75145
|
+
__metadata("design:returntype", Promise)
|
|
75146
|
+
], MJTestSuiteRunResolver.prototype, "CreateMJTestSuiteRun", null);
|
|
75147
|
+
__decorate([
|
|
75148
|
+
Mutation(() => MJTestSuiteRun_),
|
|
75149
|
+
__param(0, Arg('input', () => UpdateMJTestSuiteRunInput)),
|
|
75150
|
+
__param(1, Ctx()),
|
|
75151
|
+
__param(2, PubSub()),
|
|
75152
|
+
__metadata("design:type", Function),
|
|
75153
|
+
__metadata("design:paramtypes", [UpdateMJTestSuiteRunInput, Object, PubSubEngine]),
|
|
75154
|
+
__metadata("design:returntype", Promise)
|
|
75155
|
+
], MJTestSuiteRunResolver.prototype, "UpdateMJTestSuiteRun", null);
|
|
75156
|
+
__decorate([
|
|
75157
|
+
Mutation(() => MJTestSuiteRun_),
|
|
75158
|
+
__param(0, Arg('ID', () => String)),
|
|
75159
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
75160
|
+
__param(2, Ctx()),
|
|
75161
|
+
__param(3, PubSub()),
|
|
75162
|
+
__metadata("design:type", Function),
|
|
75163
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
75164
|
+
__metadata("design:returntype", Promise)
|
|
75165
|
+
], MJTestSuiteRunResolver.prototype, "DeleteMJTestSuiteRun", null);
|
|
75166
|
+
MJTestSuiteRunResolver = __decorate([
|
|
75167
|
+
Resolver(MJTestSuiteRun_)
|
|
75168
|
+
], MJTestSuiteRunResolver);
|
|
75169
|
+
export { MJTestSuiteRunResolver };
|
|
71401
75170
|
let MJContentProcessRun_ = class MJContentProcessRun_ {
|
|
71402
75171
|
ID;
|
|
71403
75172
|
SourceID;
|
|
@@ -75697,12 +79466,16 @@ let MJAIPromptRun_ = class MJAIPromptRun_ {
|
|
|
75697
79466
|
EffortLevel;
|
|
75698
79467
|
RunName;
|
|
75699
79468
|
Comments;
|
|
79469
|
+
TestRunID;
|
|
75700
79470
|
Prompt;
|
|
75701
79471
|
Model;
|
|
75702
79472
|
Vendor;
|
|
75703
79473
|
Agent;
|
|
75704
79474
|
Configuration;
|
|
79475
|
+
Parent;
|
|
79476
|
+
AgentRun;
|
|
75705
79477
|
OriginalModel;
|
|
79478
|
+
RerunFromPromptRun;
|
|
75706
79479
|
Judge;
|
|
75707
79480
|
ChildPrompt;
|
|
75708
79481
|
RootParentID;
|
|
@@ -76072,6 +79845,11 @@ __decorate([
|
|
|
76072
79845
|
Field({ nullable: true, description: `Human-readable notes and comments about this prompt run` }),
|
|
76073
79846
|
__metadata("design:type", String)
|
|
76074
79847
|
], MJAIPromptRun_.prototype, "Comments", void 0);
|
|
79848
|
+
__decorate([
|
|
79849
|
+
Field({ nullable: true, description: `Optional Foreign Key - Links this prompt run to a test run if this prompt execution was part of a test. Enables testing individual prompts for quality and consistency before agent integration.` }),
|
|
79850
|
+
MaxLength(16),
|
|
79851
|
+
__metadata("design:type", String)
|
|
79852
|
+
], MJAIPromptRun_.prototype, "TestRunID", void 0);
|
|
76075
79853
|
__decorate([
|
|
76076
79854
|
Field(),
|
|
76077
79855
|
MaxLength(510),
|
|
@@ -76097,11 +79875,26 @@ __decorate([
|
|
|
76097
79875
|
MaxLength(200),
|
|
76098
79876
|
__metadata("design:type", String)
|
|
76099
79877
|
], MJAIPromptRun_.prototype, "Configuration", void 0);
|
|
79878
|
+
__decorate([
|
|
79879
|
+
Field({ nullable: true }),
|
|
79880
|
+
MaxLength(510),
|
|
79881
|
+
__metadata("design:type", String)
|
|
79882
|
+
], MJAIPromptRun_.prototype, "Parent", void 0);
|
|
79883
|
+
__decorate([
|
|
79884
|
+
Field({ nullable: true }),
|
|
79885
|
+
MaxLength(510),
|
|
79886
|
+
__metadata("design:type", String)
|
|
79887
|
+
], MJAIPromptRun_.prototype, "AgentRun", void 0);
|
|
76100
79888
|
__decorate([
|
|
76101
79889
|
Field({ nullable: true }),
|
|
76102
79890
|
MaxLength(100),
|
|
76103
79891
|
__metadata("design:type", String)
|
|
76104
79892
|
], MJAIPromptRun_.prototype, "OriginalModel", void 0);
|
|
79893
|
+
__decorate([
|
|
79894
|
+
Field({ nullable: true }),
|
|
79895
|
+
MaxLength(510),
|
|
79896
|
+
__metadata("design:type", String)
|
|
79897
|
+
], MJAIPromptRun_.prototype, "RerunFromPromptRun", void 0);
|
|
76105
79898
|
__decorate([
|
|
76106
79899
|
Field({ nullable: true }),
|
|
76107
79900
|
MaxLength(510),
|
|
@@ -76216,6 +80009,7 @@ let CreateMJAIPromptRunInput = class CreateMJAIPromptRunInput {
|
|
|
76216
80009
|
EffortLevel;
|
|
76217
80010
|
RunName;
|
|
76218
80011
|
Comments;
|
|
80012
|
+
TestRunID;
|
|
76219
80013
|
};
|
|
76220
80014
|
__decorate([
|
|
76221
80015
|
Field({ nullable: true }),
|
|
@@ -76541,6 +80335,10 @@ __decorate([
|
|
|
76541
80335
|
Field({ nullable: true }),
|
|
76542
80336
|
__metadata("design:type", String)
|
|
76543
80337
|
], CreateMJAIPromptRunInput.prototype, "Comments", void 0);
|
|
80338
|
+
__decorate([
|
|
80339
|
+
Field({ nullable: true }),
|
|
80340
|
+
__metadata("design:type", String)
|
|
80341
|
+
], CreateMJAIPromptRunInput.prototype, "TestRunID", void 0);
|
|
76544
80342
|
CreateMJAIPromptRunInput = __decorate([
|
|
76545
80343
|
InputType()
|
|
76546
80344
|
], CreateMJAIPromptRunInput);
|
|
@@ -76627,6 +80425,7 @@ let UpdateMJAIPromptRunInput = class UpdateMJAIPromptRunInput {
|
|
|
76627
80425
|
EffortLevel;
|
|
76628
80426
|
RunName;
|
|
76629
80427
|
Comments;
|
|
80428
|
+
TestRunID;
|
|
76630
80429
|
OldValues___;
|
|
76631
80430
|
};
|
|
76632
80431
|
__decorate([
|
|
@@ -76953,6 +80752,10 @@ __decorate([
|
|
|
76953
80752
|
Field({ nullable: true }),
|
|
76954
80753
|
__metadata("design:type", String)
|
|
76955
80754
|
], UpdateMJAIPromptRunInput.prototype, "Comments", void 0);
|
|
80755
|
+
__decorate([
|
|
80756
|
+
Field({ nullable: true }),
|
|
80757
|
+
__metadata("design:type", String)
|
|
80758
|
+
], UpdateMJAIPromptRunInput.prototype, "TestRunID", void 0);
|
|
76956
80759
|
__decorate([
|
|
76957
80760
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
76958
80761
|
__metadata("design:type", Array)
|