@memberjunction/server 2.29.2 → 2.31.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/entitySubclasses/reportEntity.server.d.ts.map +1 -1
- package/dist/entitySubclasses/reportEntity.server.js +85 -13
- package/dist/entitySubclasses/reportEntity.server.js.map +1 -1
- package/dist/generated/generated.d.ts +206 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +1307 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resolvers/GetDataContextDataResolver.d.ts +28 -0
- package/dist/resolvers/GetDataContextDataResolver.d.ts.map +1 -0
- package/dist/resolvers/GetDataContextDataResolver.js +151 -0
- package/dist/resolvers/GetDataContextDataResolver.js.map +1 -0
- package/dist/resolvers/GetDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +2 -2
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +18 -6
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/package.json +22 -22
- package/src/entitySubclasses/reportEntity.server.ts +117 -17
- package/src/generated/generated.ts +897 -73
- package/src/index.ts +1 -0
- package/src/resolvers/GetDataContextDataResolver.ts +136 -0
- package/src/resolvers/GetDataResolver.ts +3 -1
- package/src/resolvers/QueryResolver.ts +24 -4
|
@@ -1049,6 +1049,291 @@ ExplorerNavigationItemResolver = __decorate([
|
|
|
1049
1049
|
Resolver(ExplorerNavigationItem_)
|
|
1050
1050
|
], ExplorerNavigationItemResolver);
|
|
1051
1051
|
export { ExplorerNavigationItemResolver };
|
|
1052
|
+
let GeneratedCodeCategory_ = class GeneratedCodeCategory_ {
|
|
1053
|
+
ID;
|
|
1054
|
+
Name;
|
|
1055
|
+
Description;
|
|
1056
|
+
ParentID;
|
|
1057
|
+
_mj__CreatedAt;
|
|
1058
|
+
_mj__UpdatedAt;
|
|
1059
|
+
Parent;
|
|
1060
|
+
GeneratedCodeCategories_ParentIDArray;
|
|
1061
|
+
GeneratedCodes_CategoryIDArray;
|
|
1062
|
+
};
|
|
1063
|
+
__decorate([
|
|
1064
|
+
Field(),
|
|
1065
|
+
MaxLength(16),
|
|
1066
|
+
__metadata("design:type", String)
|
|
1067
|
+
], GeneratedCodeCategory_.prototype, "ID", void 0);
|
|
1068
|
+
__decorate([
|
|
1069
|
+
Field(),
|
|
1070
|
+
MaxLength(510),
|
|
1071
|
+
__metadata("design:type", String)
|
|
1072
|
+
], GeneratedCodeCategory_.prototype, "Name", void 0);
|
|
1073
|
+
__decorate([
|
|
1074
|
+
Field({ nullable: true }),
|
|
1075
|
+
__metadata("design:type", String)
|
|
1076
|
+
], GeneratedCodeCategory_.prototype, "Description", void 0);
|
|
1077
|
+
__decorate([
|
|
1078
|
+
Field({ nullable: true, description: `Parent category ID, allowing for hierarchical categorization.` }),
|
|
1079
|
+
MaxLength(16),
|
|
1080
|
+
__metadata("design:type", String)
|
|
1081
|
+
], GeneratedCodeCategory_.prototype, "ParentID", void 0);
|
|
1082
|
+
__decorate([
|
|
1083
|
+
Field(),
|
|
1084
|
+
MaxLength(10),
|
|
1085
|
+
__metadata("design:type", Date)
|
|
1086
|
+
], GeneratedCodeCategory_.prototype, "_mj__CreatedAt", void 0);
|
|
1087
|
+
__decorate([
|
|
1088
|
+
Field(),
|
|
1089
|
+
MaxLength(10),
|
|
1090
|
+
__metadata("design:type", Date)
|
|
1091
|
+
], GeneratedCodeCategory_.prototype, "_mj__UpdatedAt", void 0);
|
|
1092
|
+
__decorate([
|
|
1093
|
+
Field({ nullable: true }),
|
|
1094
|
+
MaxLength(510),
|
|
1095
|
+
__metadata("design:type", String)
|
|
1096
|
+
], GeneratedCodeCategory_.prototype, "Parent", void 0);
|
|
1097
|
+
__decorate([
|
|
1098
|
+
Field(() => [GeneratedCodeCategory_]),
|
|
1099
|
+
__metadata("design:type", Array)
|
|
1100
|
+
], GeneratedCodeCategory_.prototype, "GeneratedCodeCategories_ParentIDArray", void 0);
|
|
1101
|
+
__decorate([
|
|
1102
|
+
Field(() => [GeneratedCode_]),
|
|
1103
|
+
__metadata("design:type", Array)
|
|
1104
|
+
], GeneratedCodeCategory_.prototype, "GeneratedCodes_CategoryIDArray", void 0);
|
|
1105
|
+
GeneratedCodeCategory_ = __decorate([
|
|
1106
|
+
ObjectType()
|
|
1107
|
+
], GeneratedCodeCategory_);
|
|
1108
|
+
export { GeneratedCodeCategory_ };
|
|
1109
|
+
let CreateGeneratedCodeCategoryInput = class CreateGeneratedCodeCategoryInput {
|
|
1110
|
+
Name;
|
|
1111
|
+
Description;
|
|
1112
|
+
ParentID;
|
|
1113
|
+
};
|
|
1114
|
+
__decorate([
|
|
1115
|
+
Field({ nullable: true }),
|
|
1116
|
+
__metadata("design:type", String)
|
|
1117
|
+
], CreateGeneratedCodeCategoryInput.prototype, "Name", void 0);
|
|
1118
|
+
__decorate([
|
|
1119
|
+
Field({ nullable: true }),
|
|
1120
|
+
__metadata("design:type", String)
|
|
1121
|
+
], CreateGeneratedCodeCategoryInput.prototype, "Description", void 0);
|
|
1122
|
+
__decorate([
|
|
1123
|
+
Field({ nullable: true }),
|
|
1124
|
+
__metadata("design:type", String)
|
|
1125
|
+
], CreateGeneratedCodeCategoryInput.prototype, "ParentID", void 0);
|
|
1126
|
+
CreateGeneratedCodeCategoryInput = __decorate([
|
|
1127
|
+
InputType()
|
|
1128
|
+
], CreateGeneratedCodeCategoryInput);
|
|
1129
|
+
export { CreateGeneratedCodeCategoryInput };
|
|
1130
|
+
let UpdateGeneratedCodeCategoryInput = class UpdateGeneratedCodeCategoryInput {
|
|
1131
|
+
ID;
|
|
1132
|
+
Name;
|
|
1133
|
+
Description;
|
|
1134
|
+
ParentID;
|
|
1135
|
+
OldValues___;
|
|
1136
|
+
};
|
|
1137
|
+
__decorate([
|
|
1138
|
+
Field(),
|
|
1139
|
+
__metadata("design:type", String)
|
|
1140
|
+
], UpdateGeneratedCodeCategoryInput.prototype, "ID", void 0);
|
|
1141
|
+
__decorate([
|
|
1142
|
+
Field({ nullable: true }),
|
|
1143
|
+
__metadata("design:type", String)
|
|
1144
|
+
], UpdateGeneratedCodeCategoryInput.prototype, "Name", void 0);
|
|
1145
|
+
__decorate([
|
|
1146
|
+
Field({ nullable: true }),
|
|
1147
|
+
__metadata("design:type", String)
|
|
1148
|
+
], UpdateGeneratedCodeCategoryInput.prototype, "Description", void 0);
|
|
1149
|
+
__decorate([
|
|
1150
|
+
Field({ nullable: true }),
|
|
1151
|
+
__metadata("design:type", String)
|
|
1152
|
+
], UpdateGeneratedCodeCategoryInput.prototype, "ParentID", void 0);
|
|
1153
|
+
__decorate([
|
|
1154
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
1155
|
+
__metadata("design:type", Array)
|
|
1156
|
+
], UpdateGeneratedCodeCategoryInput.prototype, "OldValues___", void 0);
|
|
1157
|
+
UpdateGeneratedCodeCategoryInput = __decorate([
|
|
1158
|
+
InputType()
|
|
1159
|
+
], UpdateGeneratedCodeCategoryInput);
|
|
1160
|
+
export { UpdateGeneratedCodeCategoryInput };
|
|
1161
|
+
let RunGeneratedCodeCategoryViewResult = class RunGeneratedCodeCategoryViewResult {
|
|
1162
|
+
Results;
|
|
1163
|
+
UserViewRunID;
|
|
1164
|
+
RowCount;
|
|
1165
|
+
TotalRowCount;
|
|
1166
|
+
ExecutionTime;
|
|
1167
|
+
ErrorMessage;
|
|
1168
|
+
Success;
|
|
1169
|
+
};
|
|
1170
|
+
__decorate([
|
|
1171
|
+
Field(() => [GeneratedCodeCategory_]),
|
|
1172
|
+
__metadata("design:type", Array)
|
|
1173
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "Results", void 0);
|
|
1174
|
+
__decorate([
|
|
1175
|
+
Field(() => String, { nullable: true }),
|
|
1176
|
+
__metadata("design:type", String)
|
|
1177
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "UserViewRunID", void 0);
|
|
1178
|
+
__decorate([
|
|
1179
|
+
Field(() => Int, { nullable: true }),
|
|
1180
|
+
__metadata("design:type", Number)
|
|
1181
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "RowCount", void 0);
|
|
1182
|
+
__decorate([
|
|
1183
|
+
Field(() => Int, { nullable: true }),
|
|
1184
|
+
__metadata("design:type", Number)
|
|
1185
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "TotalRowCount", void 0);
|
|
1186
|
+
__decorate([
|
|
1187
|
+
Field(() => Int, { nullable: true }),
|
|
1188
|
+
__metadata("design:type", Number)
|
|
1189
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "ExecutionTime", void 0);
|
|
1190
|
+
__decorate([
|
|
1191
|
+
Field({ nullable: true }),
|
|
1192
|
+
__metadata("design:type", String)
|
|
1193
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "ErrorMessage", void 0);
|
|
1194
|
+
__decorate([
|
|
1195
|
+
Field(() => Boolean, { nullable: false }),
|
|
1196
|
+
__metadata("design:type", Boolean)
|
|
1197
|
+
], RunGeneratedCodeCategoryViewResult.prototype, "Success", void 0);
|
|
1198
|
+
RunGeneratedCodeCategoryViewResult = __decorate([
|
|
1199
|
+
ObjectType()
|
|
1200
|
+
], RunGeneratedCodeCategoryViewResult);
|
|
1201
|
+
export { RunGeneratedCodeCategoryViewResult };
|
|
1202
|
+
let GeneratedCodeCategoryResolver = class GeneratedCodeCategoryResolver extends ResolverBase {
|
|
1203
|
+
async RunGeneratedCodeCategoryViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
1204
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1205
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
1206
|
+
}
|
|
1207
|
+
async RunGeneratedCodeCategoryViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
1208
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1209
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
1210
|
+
}
|
|
1211
|
+
async RunGeneratedCodeCategoryDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
1212
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1213
|
+
input.EntityName = 'Generated Code Categories';
|
|
1214
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
1215
|
+
}
|
|
1216
|
+
async GeneratedCodeCategory(ID, { dataSources, userPayload }, pubSub) {
|
|
1217
|
+
this.CheckUserReadPermissions('Generated Code Categories', userPayload);
|
|
1218
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1219
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwGeneratedCodeCategories] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Generated Code Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
1220
|
+
const result = this.MapFieldNamesToCodeNames('Generated Code Categories', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
1221
|
+
return result;
|
|
1222
|
+
}
|
|
1223
|
+
async GeneratedCodeCategories_ParentIDArray(generatedcodecategory_, { dataSources, userPayload }, pubSub) {
|
|
1224
|
+
this.CheckUserReadPermissions('Generated Code Categories', userPayload);
|
|
1225
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1226
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwGeneratedCodeCategories] WHERE [ParentID]='${generatedcodecategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Generated Code Categories', userPayload, EntityPermissionType.Read, 'AND');
|
|
1227
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Generated Code Categories', await dataSource.query(sSQL));
|
|
1228
|
+
return result;
|
|
1229
|
+
}
|
|
1230
|
+
async GeneratedCodes_CategoryIDArray(generatedcodecategory_, { dataSources, userPayload }, pubSub) {
|
|
1231
|
+
this.CheckUserReadPermissions('Generated Codes', userPayload);
|
|
1232
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
1233
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwGeneratedCodes] WHERE [CategoryID]='${generatedcodecategory_.ID}' ` + this.getRowLevelSecurityWhereClause('Generated Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
1234
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Generated Codes', await dataSource.query(sSQL));
|
|
1235
|
+
return result;
|
|
1236
|
+
}
|
|
1237
|
+
async CreateGeneratedCodeCategory(input, { dataSources, userPayload }, pubSub) {
|
|
1238
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
1239
|
+
return this.CreateRecord('Generated Code Categories', input, dataSource, userPayload, pubSub);
|
|
1240
|
+
}
|
|
1241
|
+
async UpdateGeneratedCodeCategory(input, { dataSources, userPayload }, pubSub) {
|
|
1242
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
1243
|
+
return this.UpdateRecord('Generated Code Categories', input, dataSource, userPayload, pubSub);
|
|
1244
|
+
}
|
|
1245
|
+
async DeleteGeneratedCodeCategory(ID, options, { dataSources, userPayload }, pubSub) {
|
|
1246
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
1247
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
1248
|
+
return this.DeleteRecord('Generated Code Categories', key, options, dataSource, userPayload, pubSub);
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
__decorate([
|
|
1252
|
+
Query(() => RunGeneratedCodeCategoryViewResult),
|
|
1253
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
1254
|
+
__param(1, Ctx()),
|
|
1255
|
+
__param(2, PubSub()),
|
|
1256
|
+
__metadata("design:type", Function),
|
|
1257
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
1258
|
+
__metadata("design:returntype", Promise)
|
|
1259
|
+
], GeneratedCodeCategoryResolver.prototype, "RunGeneratedCodeCategoryViewByID", null);
|
|
1260
|
+
__decorate([
|
|
1261
|
+
Query(() => RunGeneratedCodeCategoryViewResult),
|
|
1262
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
1263
|
+
__param(1, Ctx()),
|
|
1264
|
+
__param(2, PubSub()),
|
|
1265
|
+
__metadata("design:type", Function),
|
|
1266
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
1267
|
+
__metadata("design:returntype", Promise)
|
|
1268
|
+
], GeneratedCodeCategoryResolver.prototype, "RunGeneratedCodeCategoryViewByName", null);
|
|
1269
|
+
__decorate([
|
|
1270
|
+
Query(() => RunGeneratedCodeCategoryViewResult),
|
|
1271
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
1272
|
+
__param(1, Ctx()),
|
|
1273
|
+
__param(2, PubSub()),
|
|
1274
|
+
__metadata("design:type", Function),
|
|
1275
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
1276
|
+
__metadata("design:returntype", Promise)
|
|
1277
|
+
], GeneratedCodeCategoryResolver.prototype, "RunGeneratedCodeCategoryDynamicView", null);
|
|
1278
|
+
__decorate([
|
|
1279
|
+
Query(() => GeneratedCodeCategory_, { nullable: true }),
|
|
1280
|
+
__param(0, Arg('ID', () => String)),
|
|
1281
|
+
__param(1, Ctx()),
|
|
1282
|
+
__param(2, PubSub()),
|
|
1283
|
+
__metadata("design:type", Function),
|
|
1284
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
1285
|
+
__metadata("design:returntype", Promise)
|
|
1286
|
+
], GeneratedCodeCategoryResolver.prototype, "GeneratedCodeCategory", null);
|
|
1287
|
+
__decorate([
|
|
1288
|
+
FieldResolver(() => [GeneratedCodeCategory_]),
|
|
1289
|
+
__param(0, Root()),
|
|
1290
|
+
__param(1, Ctx()),
|
|
1291
|
+
__param(2, PubSub()),
|
|
1292
|
+
__metadata("design:type", Function),
|
|
1293
|
+
__metadata("design:paramtypes", [GeneratedCodeCategory_, Object, PubSubEngine]),
|
|
1294
|
+
__metadata("design:returntype", Promise)
|
|
1295
|
+
], GeneratedCodeCategoryResolver.prototype, "GeneratedCodeCategories_ParentIDArray", null);
|
|
1296
|
+
__decorate([
|
|
1297
|
+
FieldResolver(() => [GeneratedCode_]),
|
|
1298
|
+
__param(0, Root()),
|
|
1299
|
+
__param(1, Ctx()),
|
|
1300
|
+
__param(2, PubSub()),
|
|
1301
|
+
__metadata("design:type", Function),
|
|
1302
|
+
__metadata("design:paramtypes", [GeneratedCodeCategory_, Object, PubSubEngine]),
|
|
1303
|
+
__metadata("design:returntype", Promise)
|
|
1304
|
+
], GeneratedCodeCategoryResolver.prototype, "GeneratedCodes_CategoryIDArray", null);
|
|
1305
|
+
__decorate([
|
|
1306
|
+
Mutation(() => GeneratedCodeCategory_),
|
|
1307
|
+
__param(0, Arg('input', () => CreateGeneratedCodeCategoryInput)),
|
|
1308
|
+
__param(1, Ctx()),
|
|
1309
|
+
__param(2, PubSub()),
|
|
1310
|
+
__metadata("design:type", Function),
|
|
1311
|
+
__metadata("design:paramtypes", [CreateGeneratedCodeCategoryInput, Object, PubSubEngine]),
|
|
1312
|
+
__metadata("design:returntype", Promise)
|
|
1313
|
+
], GeneratedCodeCategoryResolver.prototype, "CreateGeneratedCodeCategory", null);
|
|
1314
|
+
__decorate([
|
|
1315
|
+
Mutation(() => GeneratedCodeCategory_),
|
|
1316
|
+
__param(0, Arg('input', () => UpdateGeneratedCodeCategoryInput)),
|
|
1317
|
+
__param(1, Ctx()),
|
|
1318
|
+
__param(2, PubSub()),
|
|
1319
|
+
__metadata("design:type", Function),
|
|
1320
|
+
__metadata("design:paramtypes", [UpdateGeneratedCodeCategoryInput, Object, PubSubEngine]),
|
|
1321
|
+
__metadata("design:returntype", Promise)
|
|
1322
|
+
], GeneratedCodeCategoryResolver.prototype, "UpdateGeneratedCodeCategory", null);
|
|
1323
|
+
__decorate([
|
|
1324
|
+
Mutation(() => GeneratedCodeCategory_),
|
|
1325
|
+
__param(0, Arg('ID', () => String)),
|
|
1326
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
1327
|
+
__param(2, Ctx()),
|
|
1328
|
+
__param(3, PubSub()),
|
|
1329
|
+
__metadata("design:type", Function),
|
|
1330
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
1331
|
+
__metadata("design:returntype", Promise)
|
|
1332
|
+
], GeneratedCodeCategoryResolver.prototype, "DeleteGeneratedCodeCategory", null);
|
|
1333
|
+
GeneratedCodeCategoryResolver = __decorate([
|
|
1334
|
+
Resolver(GeneratedCodeCategory_)
|
|
1335
|
+
], GeneratedCodeCategoryResolver);
|
|
1336
|
+
export { GeneratedCodeCategoryResolver };
|
|
1052
1337
|
let AIAgentModel_ = class AIAgentModel_ {
|
|
1053
1338
|
ID;
|
|
1054
1339
|
AgentID;
|
|
@@ -7889,6 +8174,7 @@ let Entity_ = class Entity_ {
|
|
|
7889
8174
|
ApplicationEntities_EntityIDArray;
|
|
7890
8175
|
ResourceTypes_EntityIDArray;
|
|
7891
8176
|
QueryEntities_EntityIDArray;
|
|
8177
|
+
GeneratedCodes_LinkedEntityIDArray;
|
|
7892
8178
|
};
|
|
7893
8179
|
__decorate([
|
|
7894
8180
|
Field(),
|
|
@@ -8294,6 +8580,10 @@ __decorate([
|
|
|
8294
8580
|
Field(() => [QueryEntity_]),
|
|
8295
8581
|
__metadata("design:type", Array)
|
|
8296
8582
|
], Entity_.prototype, "QueryEntities_EntityIDArray", void 0);
|
|
8583
|
+
__decorate([
|
|
8584
|
+
Field(() => [GeneratedCode_]),
|
|
8585
|
+
__metadata("design:type", Array)
|
|
8586
|
+
], Entity_.prototype, "GeneratedCodes_LinkedEntityIDArray", void 0);
|
|
8297
8587
|
Entity_ = __decorate([
|
|
8298
8588
|
ObjectType({ description: `Catalog of all entities across all schemas` })
|
|
8299
8589
|
], Entity_);
|
|
@@ -9111,6 +9401,13 @@ let EntityResolverBase = class EntityResolverBase extends ResolverBase {
|
|
|
9111
9401
|
const result = this.ArrayMapFieldNamesToCodeNames('Query Entities', await dataSource.query(sSQL));
|
|
9112
9402
|
return result;
|
|
9113
9403
|
}
|
|
9404
|
+
async GeneratedCodes_LinkedEntityIDArray(entity_, { dataSources, userPayload }, pubSub) {
|
|
9405
|
+
this.CheckUserReadPermissions('Generated Codes', userPayload);
|
|
9406
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
9407
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwGeneratedCodes] WHERE [LinkedEntityID]='${entity_.ID}' ` + this.getRowLevelSecurityWhereClause('Generated Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
9408
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Generated Codes', await dataSource.query(sSQL));
|
|
9409
|
+
return result;
|
|
9410
|
+
}
|
|
9114
9411
|
async CreateEntity(input, { dataSources, userPayload }, pubSub) {
|
|
9115
9412
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
9116
9413
|
return this.CreateRecord('Entities', input, dataSource, userPayload, pubSub);
|
|
@@ -9493,6 +9790,15 @@ __decorate([
|
|
|
9493
9790
|
__metadata("design:paramtypes", [Entity_, Object, PubSubEngine]),
|
|
9494
9791
|
__metadata("design:returntype", Promise)
|
|
9495
9792
|
], EntityResolverBase.prototype, "QueryEntities_EntityIDArray", null);
|
|
9793
|
+
__decorate([
|
|
9794
|
+
FieldResolver(() => [GeneratedCode_]),
|
|
9795
|
+
__param(0, Root()),
|
|
9796
|
+
__param(1, Ctx()),
|
|
9797
|
+
__param(2, PubSub()),
|
|
9798
|
+
__metadata("design:type", Function),
|
|
9799
|
+
__metadata("design:paramtypes", [Entity_, Object, PubSubEngine]),
|
|
9800
|
+
__metadata("design:returntype", Promise)
|
|
9801
|
+
], EntityResolverBase.prototype, "GeneratedCodes_LinkedEntityIDArray", null);
|
|
9496
9802
|
__decorate([
|
|
9497
9803
|
Mutation(() => Entity_),
|
|
9498
9804
|
__param(0, Arg('input', () => CreateEntityInput)),
|
|
@@ -9580,6 +9886,7 @@ let User_ = class User_ {
|
|
|
9580
9886
|
ListCategories_UserIDArray;
|
|
9581
9887
|
ScheduledActions_CreatedByUserIDArray;
|
|
9582
9888
|
AIAgentRequests_ResponseByUserIDArray;
|
|
9889
|
+
MJ_ReportUserStates_UserIDArray;
|
|
9583
9890
|
AIAgentNotes_UserIDArray;
|
|
9584
9891
|
ResourcePermissions_UserIDArray;
|
|
9585
9892
|
AIAgentRequests_RequestForUserIDArray;
|
|
@@ -9820,6 +10127,10 @@ __decorate([
|
|
|
9820
10127
|
Field(() => [AIAgentRequest_]),
|
|
9821
10128
|
__metadata("design:type", Array)
|
|
9822
10129
|
], User_.prototype, "AIAgentRequests_ResponseByUserIDArray", void 0);
|
|
10130
|
+
__decorate([
|
|
10131
|
+
Field(() => [ReportUserState_]),
|
|
10132
|
+
__metadata("design:type", Array)
|
|
10133
|
+
], User_.prototype, "MJ_ReportUserStates_UserIDArray", void 0);
|
|
9823
10134
|
__decorate([
|
|
9824
10135
|
Field(() => [AIAgentNote_]),
|
|
9825
10136
|
__metadata("design:type", Array)
|
|
@@ -10279,6 +10590,13 @@ let UserResolverBase = class UserResolverBase extends ResolverBase {
|
|
|
10279
10590
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Requests', await dataSource.query(sSQL));
|
|
10280
10591
|
return result;
|
|
10281
10592
|
}
|
|
10593
|
+
async MJ_ReportUserStates_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10594
|
+
this.CheckUserReadPermissions('MJ: Report User States', userPayload);
|
|
10595
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
10596
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportUserStates] WHERE [UserID]='${user_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Report User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
10597
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', await dataSource.query(sSQL));
|
|
10598
|
+
return result;
|
|
10599
|
+
}
|
|
10282
10600
|
async AIAgentNotes_UserIDArray(user_, { dataSources, userPayload }, pubSub) {
|
|
10283
10601
|
this.CheckUserReadPermissions('AI Agent Notes', userPayload);
|
|
10284
10602
|
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
@@ -10671,6 +10989,15 @@ __decorate([
|
|
|
10671
10989
|
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10672
10990
|
__metadata("design:returntype", Promise)
|
|
10673
10991
|
], UserResolverBase.prototype, "AIAgentRequests_ResponseByUserIDArray", null);
|
|
10992
|
+
__decorate([
|
|
10993
|
+
FieldResolver(() => [ReportUserState_]),
|
|
10994
|
+
__param(0, Root()),
|
|
10995
|
+
__param(1, Ctx()),
|
|
10996
|
+
__param(2, PubSub()),
|
|
10997
|
+
__metadata("design:type", Function),
|
|
10998
|
+
__metadata("design:paramtypes", [User_, Object, PubSubEngine]),
|
|
10999
|
+
__metadata("design:returntype", Promise)
|
|
11000
|
+
], UserResolverBase.prototype, "MJ_ReportUserStates_UserIDArray", null);
|
|
10674
11001
|
__decorate([
|
|
10675
11002
|
FieldResolver(() => [AIAgentNote_]),
|
|
10676
11003
|
__param(0, Root()),
|
|
@@ -18889,6 +19216,7 @@ let AIModel_ = class AIModel_ {
|
|
|
18889
19216
|
AIResultCache_AIModelIDArray;
|
|
18890
19217
|
EntityAIActions_AIModelIDArray;
|
|
18891
19218
|
AIAgentModels_ModelIDArray;
|
|
19219
|
+
GeneratedCodes_GeneratedByModelIDArray;
|
|
18892
19220
|
};
|
|
18893
19221
|
__decorate([
|
|
18894
19222
|
Field(),
|
|
@@ -19005,6 +19333,10 @@ __decorate([
|
|
|
19005
19333
|
Field(() => [AIAgentModel_]),
|
|
19006
19334
|
__metadata("design:type", Array)
|
|
19007
19335
|
], AIModel_.prototype, "AIAgentModels_ModelIDArray", void 0);
|
|
19336
|
+
__decorate([
|
|
19337
|
+
Field(() => [GeneratedCode_]),
|
|
19338
|
+
__metadata("design:type", Array)
|
|
19339
|
+
], AIModel_.prototype, "GeneratedCodes_GeneratedByModelIDArray", void 0);
|
|
19008
19340
|
AIModel_ = __decorate([
|
|
19009
19341
|
ObjectType({ description: `Catalog of all AI Models configured in the system` })
|
|
19010
19342
|
], AIModel_);
|
|
@@ -19296,6 +19628,13 @@ let AIModelResolver = class AIModelResolver extends ResolverBase {
|
|
|
19296
19628
|
const result = this.ArrayMapFieldNamesToCodeNames('AI Agent Models', await dataSource.query(sSQL));
|
|
19297
19629
|
return result;
|
|
19298
19630
|
}
|
|
19631
|
+
async GeneratedCodes_GeneratedByModelIDArray(aimodel_, { dataSources, userPayload }, pubSub) {
|
|
19632
|
+
this.CheckUserReadPermissions('Generated Codes', userPayload);
|
|
19633
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
19634
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwGeneratedCodes] WHERE [GeneratedByModelID]='${aimodel_.ID}' ` + this.getRowLevelSecurityWhereClause('Generated Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
19635
|
+
const result = this.ArrayMapFieldNamesToCodeNames('Generated Codes', await dataSource.query(sSQL));
|
|
19636
|
+
return result;
|
|
19637
|
+
}
|
|
19299
19638
|
async CreateAIModel(input, { dataSources, userPayload }, pubSub) {
|
|
19300
19639
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
19301
19640
|
return this.CreateRecord('AI Models', input, dataSource, userPayload, pubSub);
|
|
@@ -19426,6 +19765,15 @@ __decorate([
|
|
|
19426
19765
|
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19427
19766
|
__metadata("design:returntype", Promise)
|
|
19428
19767
|
], AIModelResolver.prototype, "AIAgentModels_ModelIDArray", null);
|
|
19768
|
+
__decorate([
|
|
19769
|
+
FieldResolver(() => [GeneratedCode_]),
|
|
19770
|
+
__param(0, Root()),
|
|
19771
|
+
__param(1, Ctx()),
|
|
19772
|
+
__param(2, PubSub()),
|
|
19773
|
+
__metadata("design:type", Function),
|
|
19774
|
+
__metadata("design:paramtypes", [AIModel_, Object, PubSubEngine]),
|
|
19775
|
+
__metadata("design:returntype", Promise)
|
|
19776
|
+
], AIModelResolver.prototype, "GeneratedCodes_GeneratedByModelIDArray", null);
|
|
19429
19777
|
__decorate([
|
|
19430
19778
|
Mutation(() => AIModel_),
|
|
19431
19779
|
__param(0, Arg('input', () => CreateAIModelInput)),
|
|
@@ -22467,6 +22815,8 @@ let Report_ = class Report_ {
|
|
|
22467
22815
|
OutputDeliveryType;
|
|
22468
22816
|
OutputWorkflow;
|
|
22469
22817
|
ReportSnapshots_ReportIDArray;
|
|
22818
|
+
MJ_ReportVersions_ReportIDArray;
|
|
22819
|
+
MJ_ReportUserStates_ReportIDArray;
|
|
22470
22820
|
};
|
|
22471
22821
|
__decorate([
|
|
22472
22822
|
Field(),
|
|
@@ -22600,6 +22950,14 @@ __decorate([
|
|
|
22600
22950
|
Field(() => [ReportSnapshot_]),
|
|
22601
22951
|
__metadata("design:type", Array)
|
|
22602
22952
|
], Report_.prototype, "ReportSnapshots_ReportIDArray", void 0);
|
|
22953
|
+
__decorate([
|
|
22954
|
+
Field(() => [ReportVersion_]),
|
|
22955
|
+
__metadata("design:type", Array)
|
|
22956
|
+
], Report_.prototype, "MJ_ReportVersions_ReportIDArray", void 0);
|
|
22957
|
+
__decorate([
|
|
22958
|
+
Field(() => [ReportUserState_]),
|
|
22959
|
+
__metadata("design:type", Array)
|
|
22960
|
+
], Report_.prototype, "MJ_ReportUserStates_ReportIDArray", void 0);
|
|
22603
22961
|
Report_ = __decorate([
|
|
22604
22962
|
ObjectType()
|
|
22605
22963
|
], Report_);
|
|
@@ -22845,6 +23203,20 @@ let ReportResolver = class ReportResolver extends ResolverBase {
|
|
|
22845
23203
|
const result = this.ArrayMapFieldNamesToCodeNames('Report Snapshots', await dataSource.query(sSQL));
|
|
22846
23204
|
return result;
|
|
22847
23205
|
}
|
|
23206
|
+
async MJ_ReportVersions_ReportIDArray(report_, { dataSources, userPayload }, pubSub) {
|
|
23207
|
+
this.CheckUserReadPermissions('MJ: Report Versions', userPayload);
|
|
23208
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
23209
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportVersions] WHERE [ReportID]='${report_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Report Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
23210
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report Versions', await dataSource.query(sSQL));
|
|
23211
|
+
return result;
|
|
23212
|
+
}
|
|
23213
|
+
async MJ_ReportUserStates_ReportIDArray(report_, { dataSources, userPayload }, pubSub) {
|
|
23214
|
+
this.CheckUserReadPermissions('MJ: Report User States', userPayload);
|
|
23215
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
23216
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportUserStates] WHERE [ReportID]='${report_.ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Report User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
23217
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: Report User States', await dataSource.query(sSQL));
|
|
23218
|
+
return result;
|
|
23219
|
+
}
|
|
22848
23220
|
async CreateReport(input, { dataSources, userPayload }, pubSub) {
|
|
22849
23221
|
const dataSource = GetReadWriteDataSource(dataSources);
|
|
22850
23222
|
return this.CreateRecord('Reports', input, dataSource, userPayload, pubSub);
|
|
@@ -22904,6 +23276,24 @@ __decorate([
|
|
|
22904
23276
|
__metadata("design:paramtypes", [Report_, Object, PubSubEngine]),
|
|
22905
23277
|
__metadata("design:returntype", Promise)
|
|
22906
23278
|
], ReportResolver.prototype, "ReportSnapshots_ReportIDArray", null);
|
|
23279
|
+
__decorate([
|
|
23280
|
+
FieldResolver(() => [ReportVersion_]),
|
|
23281
|
+
__param(0, Root()),
|
|
23282
|
+
__param(1, Ctx()),
|
|
23283
|
+
__param(2, PubSub()),
|
|
23284
|
+
__metadata("design:type", Function),
|
|
23285
|
+
__metadata("design:paramtypes", [Report_, Object, PubSubEngine]),
|
|
23286
|
+
__metadata("design:returntype", Promise)
|
|
23287
|
+
], ReportResolver.prototype, "MJ_ReportVersions_ReportIDArray", null);
|
|
23288
|
+
__decorate([
|
|
23289
|
+
FieldResolver(() => [ReportUserState_]),
|
|
23290
|
+
__param(0, Root()),
|
|
23291
|
+
__param(1, Ctx()),
|
|
23292
|
+
__param(2, PubSub()),
|
|
23293
|
+
__metadata("design:type", Function),
|
|
23294
|
+
__metadata("design:paramtypes", [Report_, Object, PubSubEngine]),
|
|
23295
|
+
__metadata("design:returntype", Promise)
|
|
23296
|
+
], ReportResolver.prototype, "MJ_ReportUserStates_ReportIDArray", null);
|
|
22907
23297
|
__decorate([
|
|
22908
23298
|
Mutation(() => Report_),
|
|
22909
23299
|
__param(0, Arg('input', () => CreateReportInput)),
|
|
@@ -46603,6 +46993,255 @@ AIAgentRequestResolver = __decorate([
|
|
|
46603
46993
|
Resolver(AIAgentRequest_)
|
|
46604
46994
|
], AIAgentRequestResolver);
|
|
46605
46995
|
export { AIAgentRequestResolver };
|
|
46996
|
+
let ReportUserState_ = class ReportUserState_ {
|
|
46997
|
+
ID;
|
|
46998
|
+
ReportID;
|
|
46999
|
+
UserID;
|
|
47000
|
+
ReportState;
|
|
47001
|
+
_mj__CreatedAt;
|
|
47002
|
+
_mj__UpdatedAt;
|
|
47003
|
+
Report;
|
|
47004
|
+
User;
|
|
47005
|
+
};
|
|
47006
|
+
__decorate([
|
|
47007
|
+
Field(),
|
|
47008
|
+
MaxLength(16),
|
|
47009
|
+
__metadata("design:type", String)
|
|
47010
|
+
], ReportUserState_.prototype, "ID", void 0);
|
|
47011
|
+
__decorate([
|
|
47012
|
+
Field(),
|
|
47013
|
+
MaxLength(16),
|
|
47014
|
+
__metadata("design:type", String)
|
|
47015
|
+
], ReportUserState_.prototype, "ReportID", void 0);
|
|
47016
|
+
__decorate([
|
|
47017
|
+
Field(),
|
|
47018
|
+
MaxLength(16),
|
|
47019
|
+
__metadata("design:type", String)
|
|
47020
|
+
], ReportUserState_.prototype, "UserID", void 0);
|
|
47021
|
+
__decorate([
|
|
47022
|
+
Field({ nullable: true, description: `JSON serialized state of user interaction with the report` }),
|
|
47023
|
+
__metadata("design:type", String)
|
|
47024
|
+
], ReportUserState_.prototype, "ReportState", void 0);
|
|
47025
|
+
__decorate([
|
|
47026
|
+
Field(),
|
|
47027
|
+
MaxLength(10),
|
|
47028
|
+
__metadata("design:type", Date)
|
|
47029
|
+
], ReportUserState_.prototype, "_mj__CreatedAt", void 0);
|
|
47030
|
+
__decorate([
|
|
47031
|
+
Field(),
|
|
47032
|
+
MaxLength(10),
|
|
47033
|
+
__metadata("design:type", Date)
|
|
47034
|
+
], ReportUserState_.prototype, "_mj__UpdatedAt", void 0);
|
|
47035
|
+
__decorate([
|
|
47036
|
+
Field(),
|
|
47037
|
+
MaxLength(510),
|
|
47038
|
+
__metadata("design:type", String)
|
|
47039
|
+
], ReportUserState_.prototype, "Report", void 0);
|
|
47040
|
+
__decorate([
|
|
47041
|
+
Field(),
|
|
47042
|
+
MaxLength(200),
|
|
47043
|
+
__metadata("design:type", String)
|
|
47044
|
+
], ReportUserState_.prototype, "User", void 0);
|
|
47045
|
+
ReportUserState_ = __decorate([
|
|
47046
|
+
ObjectType()
|
|
47047
|
+
], ReportUserState_);
|
|
47048
|
+
export { ReportUserState_ };
|
|
47049
|
+
let CreateReportUserStateInput = class CreateReportUserStateInput {
|
|
47050
|
+
ReportID;
|
|
47051
|
+
UserID;
|
|
47052
|
+
ReportState;
|
|
47053
|
+
};
|
|
47054
|
+
__decorate([
|
|
47055
|
+
Field({ nullable: true }),
|
|
47056
|
+
__metadata("design:type", String)
|
|
47057
|
+
], CreateReportUserStateInput.prototype, "ReportID", void 0);
|
|
47058
|
+
__decorate([
|
|
47059
|
+
Field({ nullable: true }),
|
|
47060
|
+
__metadata("design:type", String)
|
|
47061
|
+
], CreateReportUserStateInput.prototype, "UserID", void 0);
|
|
47062
|
+
__decorate([
|
|
47063
|
+
Field({ nullable: true }),
|
|
47064
|
+
__metadata("design:type", String)
|
|
47065
|
+
], CreateReportUserStateInput.prototype, "ReportState", void 0);
|
|
47066
|
+
CreateReportUserStateInput = __decorate([
|
|
47067
|
+
InputType()
|
|
47068
|
+
], CreateReportUserStateInput);
|
|
47069
|
+
export { CreateReportUserStateInput };
|
|
47070
|
+
let UpdateReportUserStateInput = class UpdateReportUserStateInput {
|
|
47071
|
+
ID;
|
|
47072
|
+
ReportID;
|
|
47073
|
+
UserID;
|
|
47074
|
+
ReportState;
|
|
47075
|
+
OldValues___;
|
|
47076
|
+
};
|
|
47077
|
+
__decorate([
|
|
47078
|
+
Field(),
|
|
47079
|
+
__metadata("design:type", String)
|
|
47080
|
+
], UpdateReportUserStateInput.prototype, "ID", void 0);
|
|
47081
|
+
__decorate([
|
|
47082
|
+
Field({ nullable: true }),
|
|
47083
|
+
__metadata("design:type", String)
|
|
47084
|
+
], UpdateReportUserStateInput.prototype, "ReportID", void 0);
|
|
47085
|
+
__decorate([
|
|
47086
|
+
Field({ nullable: true }),
|
|
47087
|
+
__metadata("design:type", String)
|
|
47088
|
+
], UpdateReportUserStateInput.prototype, "UserID", void 0);
|
|
47089
|
+
__decorate([
|
|
47090
|
+
Field({ nullable: true }),
|
|
47091
|
+
__metadata("design:type", String)
|
|
47092
|
+
], UpdateReportUserStateInput.prototype, "ReportState", void 0);
|
|
47093
|
+
__decorate([
|
|
47094
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
47095
|
+
__metadata("design:type", Array)
|
|
47096
|
+
], UpdateReportUserStateInput.prototype, "OldValues___", void 0);
|
|
47097
|
+
UpdateReportUserStateInput = __decorate([
|
|
47098
|
+
InputType()
|
|
47099
|
+
], UpdateReportUserStateInput);
|
|
47100
|
+
export { UpdateReportUserStateInput };
|
|
47101
|
+
let RunReportUserStateViewResult = class RunReportUserStateViewResult {
|
|
47102
|
+
Results;
|
|
47103
|
+
UserViewRunID;
|
|
47104
|
+
RowCount;
|
|
47105
|
+
TotalRowCount;
|
|
47106
|
+
ExecutionTime;
|
|
47107
|
+
ErrorMessage;
|
|
47108
|
+
Success;
|
|
47109
|
+
};
|
|
47110
|
+
__decorate([
|
|
47111
|
+
Field(() => [ReportUserState_]),
|
|
47112
|
+
__metadata("design:type", Array)
|
|
47113
|
+
], RunReportUserStateViewResult.prototype, "Results", void 0);
|
|
47114
|
+
__decorate([
|
|
47115
|
+
Field(() => String, { nullable: true }),
|
|
47116
|
+
__metadata("design:type", String)
|
|
47117
|
+
], RunReportUserStateViewResult.prototype, "UserViewRunID", void 0);
|
|
47118
|
+
__decorate([
|
|
47119
|
+
Field(() => Int, { nullable: true }),
|
|
47120
|
+
__metadata("design:type", Number)
|
|
47121
|
+
], RunReportUserStateViewResult.prototype, "RowCount", void 0);
|
|
47122
|
+
__decorate([
|
|
47123
|
+
Field(() => Int, { nullable: true }),
|
|
47124
|
+
__metadata("design:type", Number)
|
|
47125
|
+
], RunReportUserStateViewResult.prototype, "TotalRowCount", void 0);
|
|
47126
|
+
__decorate([
|
|
47127
|
+
Field(() => Int, { nullable: true }),
|
|
47128
|
+
__metadata("design:type", Number)
|
|
47129
|
+
], RunReportUserStateViewResult.prototype, "ExecutionTime", void 0);
|
|
47130
|
+
__decorate([
|
|
47131
|
+
Field({ nullable: true }),
|
|
47132
|
+
__metadata("design:type", String)
|
|
47133
|
+
], RunReportUserStateViewResult.prototype, "ErrorMessage", void 0);
|
|
47134
|
+
__decorate([
|
|
47135
|
+
Field(() => Boolean, { nullable: false }),
|
|
47136
|
+
__metadata("design:type", Boolean)
|
|
47137
|
+
], RunReportUserStateViewResult.prototype, "Success", void 0);
|
|
47138
|
+
RunReportUserStateViewResult = __decorate([
|
|
47139
|
+
ObjectType()
|
|
47140
|
+
], RunReportUserStateViewResult);
|
|
47141
|
+
export { RunReportUserStateViewResult };
|
|
47142
|
+
let ReportUserStateResolver = class ReportUserStateResolver extends ResolverBase {
|
|
47143
|
+
async RunReportUserStateViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
47144
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47145
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
47146
|
+
}
|
|
47147
|
+
async RunReportUserStateViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
47148
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47149
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
47150
|
+
}
|
|
47151
|
+
async RunReportUserStateDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
47152
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47153
|
+
input.EntityName = 'MJ: Report User States';
|
|
47154
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
47155
|
+
}
|
|
47156
|
+
async ReportUserState(ID, { dataSources, userPayload }, pubSub) {
|
|
47157
|
+
this.CheckUserReadPermissions('MJ: Report User States', userPayload);
|
|
47158
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
47159
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportUserStates] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Report User States', userPayload, EntityPermissionType.Read, 'AND');
|
|
47160
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Report User States', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
47161
|
+
return result;
|
|
47162
|
+
}
|
|
47163
|
+
async CreateReportUserState(input, { dataSources, userPayload }, pubSub) {
|
|
47164
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
47165
|
+
return this.CreateRecord('MJ: Report User States', input, dataSource, userPayload, pubSub);
|
|
47166
|
+
}
|
|
47167
|
+
async UpdateReportUserState(input, { dataSources, userPayload }, pubSub) {
|
|
47168
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
47169
|
+
return this.UpdateRecord('MJ: Report User States', input, dataSource, userPayload, pubSub);
|
|
47170
|
+
}
|
|
47171
|
+
async DeleteReportUserState(ID, options, { dataSources, userPayload }, pubSub) {
|
|
47172
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
47173
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
47174
|
+
return this.DeleteRecord('MJ: Report User States', key, options, dataSource, userPayload, pubSub);
|
|
47175
|
+
}
|
|
47176
|
+
};
|
|
47177
|
+
__decorate([
|
|
47178
|
+
Query(() => RunReportUserStateViewResult),
|
|
47179
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
47180
|
+
__param(1, Ctx()),
|
|
47181
|
+
__param(2, PubSub()),
|
|
47182
|
+
__metadata("design:type", Function),
|
|
47183
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
47184
|
+
__metadata("design:returntype", Promise)
|
|
47185
|
+
], ReportUserStateResolver.prototype, "RunReportUserStateViewByID", null);
|
|
47186
|
+
__decorate([
|
|
47187
|
+
Query(() => RunReportUserStateViewResult),
|
|
47188
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
47189
|
+
__param(1, Ctx()),
|
|
47190
|
+
__param(2, PubSub()),
|
|
47191
|
+
__metadata("design:type", Function),
|
|
47192
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
47193
|
+
__metadata("design:returntype", Promise)
|
|
47194
|
+
], ReportUserStateResolver.prototype, "RunReportUserStateViewByName", null);
|
|
47195
|
+
__decorate([
|
|
47196
|
+
Query(() => RunReportUserStateViewResult),
|
|
47197
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
47198
|
+
__param(1, Ctx()),
|
|
47199
|
+
__param(2, PubSub()),
|
|
47200
|
+
__metadata("design:type", Function),
|
|
47201
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
47202
|
+
__metadata("design:returntype", Promise)
|
|
47203
|
+
], ReportUserStateResolver.prototype, "RunReportUserStateDynamicView", null);
|
|
47204
|
+
__decorate([
|
|
47205
|
+
Query(() => ReportUserState_, { nullable: true }),
|
|
47206
|
+
__param(0, Arg('ID', () => String)),
|
|
47207
|
+
__param(1, Ctx()),
|
|
47208
|
+
__param(2, PubSub()),
|
|
47209
|
+
__metadata("design:type", Function),
|
|
47210
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
47211
|
+
__metadata("design:returntype", Promise)
|
|
47212
|
+
], ReportUserStateResolver.prototype, "ReportUserState", null);
|
|
47213
|
+
__decorate([
|
|
47214
|
+
Mutation(() => ReportUserState_),
|
|
47215
|
+
__param(0, Arg('input', () => CreateReportUserStateInput)),
|
|
47216
|
+
__param(1, Ctx()),
|
|
47217
|
+
__param(2, PubSub()),
|
|
47218
|
+
__metadata("design:type", Function),
|
|
47219
|
+
__metadata("design:paramtypes", [CreateReportUserStateInput, Object, PubSubEngine]),
|
|
47220
|
+
__metadata("design:returntype", Promise)
|
|
47221
|
+
], ReportUserStateResolver.prototype, "CreateReportUserState", null);
|
|
47222
|
+
__decorate([
|
|
47223
|
+
Mutation(() => ReportUserState_),
|
|
47224
|
+
__param(0, Arg('input', () => UpdateReportUserStateInput)),
|
|
47225
|
+
__param(1, Ctx()),
|
|
47226
|
+
__param(2, PubSub()),
|
|
47227
|
+
__metadata("design:type", Function),
|
|
47228
|
+
__metadata("design:paramtypes", [UpdateReportUserStateInput, Object, PubSubEngine]),
|
|
47229
|
+
__metadata("design:returntype", Promise)
|
|
47230
|
+
], ReportUserStateResolver.prototype, "UpdateReportUserState", null);
|
|
47231
|
+
__decorate([
|
|
47232
|
+
Mutation(() => ReportUserState_),
|
|
47233
|
+
__param(0, Arg('ID', () => String)),
|
|
47234
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
47235
|
+
__param(2, Ctx()),
|
|
47236
|
+
__param(3, PubSub()),
|
|
47237
|
+
__metadata("design:type", Function),
|
|
47238
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
47239
|
+
__metadata("design:returntype", Promise)
|
|
47240
|
+
], ReportUserStateResolver.prototype, "DeleteReportUserState", null);
|
|
47241
|
+
ReportUserStateResolver = __decorate([
|
|
47242
|
+
Resolver(ReportUserState_)
|
|
47243
|
+
], ReportUserStateResolver);
|
|
47244
|
+
export { ReportUserStateResolver };
|
|
46606
47245
|
let QueryEntity_ = class QueryEntity_ {
|
|
46607
47246
|
ID;
|
|
46608
47247
|
QueryID;
|
|
@@ -49937,6 +50576,386 @@ ContentItemTagResolver = __decorate([
|
|
|
49937
50576
|
Resolver(ContentItemTag_)
|
|
49938
50577
|
], ContentItemTagResolver);
|
|
49939
50578
|
export { ContentItemTagResolver };
|
|
50579
|
+
let GeneratedCode_ = class GeneratedCode_ {
|
|
50580
|
+
ID;
|
|
50581
|
+
GeneratedAt;
|
|
50582
|
+
CategoryID;
|
|
50583
|
+
GeneratedByModelID;
|
|
50584
|
+
Name;
|
|
50585
|
+
Description;
|
|
50586
|
+
Code;
|
|
50587
|
+
Source;
|
|
50588
|
+
LinkedEntityID;
|
|
50589
|
+
LinkedRecordPrimaryKey;
|
|
50590
|
+
Status;
|
|
50591
|
+
Language;
|
|
50592
|
+
_mj__CreatedAt;
|
|
50593
|
+
_mj__UpdatedAt;
|
|
50594
|
+
Category;
|
|
50595
|
+
GeneratedByModel;
|
|
50596
|
+
LinkedEntity;
|
|
50597
|
+
};
|
|
50598
|
+
__decorate([
|
|
50599
|
+
Field(),
|
|
50600
|
+
MaxLength(16),
|
|
50601
|
+
__metadata("design:type", String)
|
|
50602
|
+
], GeneratedCode_.prototype, "ID", void 0);
|
|
50603
|
+
__decorate([
|
|
50604
|
+
Field({ description: `When the code was generated.` }),
|
|
50605
|
+
MaxLength(10),
|
|
50606
|
+
__metadata("design:type", Date)
|
|
50607
|
+
], GeneratedCode_.prototype, "GeneratedAt", void 0);
|
|
50608
|
+
__decorate([
|
|
50609
|
+
Field({ description: `Reference to the category of generated code.` }),
|
|
50610
|
+
MaxLength(16),
|
|
50611
|
+
__metadata("design:type", String)
|
|
50612
|
+
], GeneratedCode_.prototype, "CategoryID", void 0);
|
|
50613
|
+
__decorate([
|
|
50614
|
+
Field({ description: `AI model responsible for generating this code.` }),
|
|
50615
|
+
MaxLength(16),
|
|
50616
|
+
__metadata("design:type", String)
|
|
50617
|
+
], GeneratedCode_.prototype, "GeneratedByModelID", void 0);
|
|
50618
|
+
__decorate([
|
|
50619
|
+
Field({ description: `Descriptive name of the generated code.` }),
|
|
50620
|
+
MaxLength(510),
|
|
50621
|
+
__metadata("design:type", String)
|
|
50622
|
+
], GeneratedCode_.prototype, "Name", void 0);
|
|
50623
|
+
__decorate([
|
|
50624
|
+
Field({ nullable: true, description: `Optional description of the generated code.` }),
|
|
50625
|
+
__metadata("design:type", String)
|
|
50626
|
+
], GeneratedCode_.prototype, "Description", void 0);
|
|
50627
|
+
__decorate([
|
|
50628
|
+
Field({ description: `The actual generated code.` }),
|
|
50629
|
+
__metadata("design:type", String)
|
|
50630
|
+
], GeneratedCode_.prototype, "Code", void 0);
|
|
50631
|
+
__decorate([
|
|
50632
|
+
Field({ description: `Source material used to generate the code, e.g., a SQL CHECK constraint.` }),
|
|
50633
|
+
__metadata("design:type", String)
|
|
50634
|
+
], GeneratedCode_.prototype, "Source", void 0);
|
|
50635
|
+
__decorate([
|
|
50636
|
+
Field({ nullable: true }),
|
|
50637
|
+
MaxLength(16),
|
|
50638
|
+
__metadata("design:type", String)
|
|
50639
|
+
], GeneratedCode_.prototype, "LinkedEntityID", void 0);
|
|
50640
|
+
__decorate([
|
|
50641
|
+
Field({ nullable: true }),
|
|
50642
|
+
__metadata("design:type", String)
|
|
50643
|
+
], GeneratedCode_.prototype, "LinkedRecordPrimaryKey", void 0);
|
|
50644
|
+
__decorate([
|
|
50645
|
+
Field({ description: `Status of the generated code, e.g., Pending, Approved, or Rejected.` }),
|
|
50646
|
+
MaxLength(40),
|
|
50647
|
+
__metadata("design:type", String)
|
|
50648
|
+
], GeneratedCode_.prototype, "Status", void 0);
|
|
50649
|
+
__decorate([
|
|
50650
|
+
Field({ description: `Programming language of the generated code (TypeScript, SQL, HTML, CSS, JavaScript, Python, or Other).` }),
|
|
50651
|
+
MaxLength(100),
|
|
50652
|
+
__metadata("design:type", String)
|
|
50653
|
+
], GeneratedCode_.prototype, "Language", void 0);
|
|
50654
|
+
__decorate([
|
|
50655
|
+
Field(),
|
|
50656
|
+
MaxLength(10),
|
|
50657
|
+
__metadata("design:type", Date)
|
|
50658
|
+
], GeneratedCode_.prototype, "_mj__CreatedAt", void 0);
|
|
50659
|
+
__decorate([
|
|
50660
|
+
Field(),
|
|
50661
|
+
MaxLength(10),
|
|
50662
|
+
__metadata("design:type", Date)
|
|
50663
|
+
], GeneratedCode_.prototype, "_mj__UpdatedAt", void 0);
|
|
50664
|
+
__decorate([
|
|
50665
|
+
Field(),
|
|
50666
|
+
MaxLength(510),
|
|
50667
|
+
__metadata("design:type", String)
|
|
50668
|
+
], GeneratedCode_.prototype, "Category", void 0);
|
|
50669
|
+
__decorate([
|
|
50670
|
+
Field(),
|
|
50671
|
+
MaxLength(100),
|
|
50672
|
+
__metadata("design:type", String)
|
|
50673
|
+
], GeneratedCode_.prototype, "GeneratedByModel", void 0);
|
|
50674
|
+
__decorate([
|
|
50675
|
+
Field({ nullable: true }),
|
|
50676
|
+
MaxLength(510),
|
|
50677
|
+
__metadata("design:type", String)
|
|
50678
|
+
], GeneratedCode_.prototype, "LinkedEntity", void 0);
|
|
50679
|
+
GeneratedCode_ = __decorate([
|
|
50680
|
+
ObjectType()
|
|
50681
|
+
], GeneratedCode_);
|
|
50682
|
+
export { GeneratedCode_ };
|
|
50683
|
+
let CreateGeneratedCodeInput = class CreateGeneratedCodeInput {
|
|
50684
|
+
GeneratedAt;
|
|
50685
|
+
CategoryID;
|
|
50686
|
+
GeneratedByModelID;
|
|
50687
|
+
Name;
|
|
50688
|
+
Description;
|
|
50689
|
+
Code;
|
|
50690
|
+
Source;
|
|
50691
|
+
LinkedEntityID;
|
|
50692
|
+
LinkedRecordPrimaryKey;
|
|
50693
|
+
Status;
|
|
50694
|
+
Language;
|
|
50695
|
+
};
|
|
50696
|
+
__decorate([
|
|
50697
|
+
Field({ nullable: true }),
|
|
50698
|
+
__metadata("design:type", Date)
|
|
50699
|
+
], CreateGeneratedCodeInput.prototype, "GeneratedAt", void 0);
|
|
50700
|
+
__decorate([
|
|
50701
|
+
Field({ nullable: true }),
|
|
50702
|
+
__metadata("design:type", String)
|
|
50703
|
+
], CreateGeneratedCodeInput.prototype, "CategoryID", void 0);
|
|
50704
|
+
__decorate([
|
|
50705
|
+
Field({ nullable: true }),
|
|
50706
|
+
__metadata("design:type", String)
|
|
50707
|
+
], CreateGeneratedCodeInput.prototype, "GeneratedByModelID", void 0);
|
|
50708
|
+
__decorate([
|
|
50709
|
+
Field({ nullable: true }),
|
|
50710
|
+
__metadata("design:type", String)
|
|
50711
|
+
], CreateGeneratedCodeInput.prototype, "Name", void 0);
|
|
50712
|
+
__decorate([
|
|
50713
|
+
Field({ nullable: true }),
|
|
50714
|
+
__metadata("design:type", String)
|
|
50715
|
+
], CreateGeneratedCodeInput.prototype, "Description", void 0);
|
|
50716
|
+
__decorate([
|
|
50717
|
+
Field({ nullable: true }),
|
|
50718
|
+
__metadata("design:type", String)
|
|
50719
|
+
], CreateGeneratedCodeInput.prototype, "Code", void 0);
|
|
50720
|
+
__decorate([
|
|
50721
|
+
Field({ nullable: true }),
|
|
50722
|
+
__metadata("design:type", String)
|
|
50723
|
+
], CreateGeneratedCodeInput.prototype, "Source", void 0);
|
|
50724
|
+
__decorate([
|
|
50725
|
+
Field({ nullable: true }),
|
|
50726
|
+
__metadata("design:type", String)
|
|
50727
|
+
], CreateGeneratedCodeInput.prototype, "LinkedEntityID", void 0);
|
|
50728
|
+
__decorate([
|
|
50729
|
+
Field({ nullable: true }),
|
|
50730
|
+
__metadata("design:type", String)
|
|
50731
|
+
], CreateGeneratedCodeInput.prototype, "LinkedRecordPrimaryKey", void 0);
|
|
50732
|
+
__decorate([
|
|
50733
|
+
Field({ nullable: true }),
|
|
50734
|
+
__metadata("design:type", String)
|
|
50735
|
+
], CreateGeneratedCodeInput.prototype, "Status", void 0);
|
|
50736
|
+
__decorate([
|
|
50737
|
+
Field({ nullable: true }),
|
|
50738
|
+
__metadata("design:type", String)
|
|
50739
|
+
], CreateGeneratedCodeInput.prototype, "Language", void 0);
|
|
50740
|
+
CreateGeneratedCodeInput = __decorate([
|
|
50741
|
+
InputType()
|
|
50742
|
+
], CreateGeneratedCodeInput);
|
|
50743
|
+
export { CreateGeneratedCodeInput };
|
|
50744
|
+
let UpdateGeneratedCodeInput = class UpdateGeneratedCodeInput {
|
|
50745
|
+
ID;
|
|
50746
|
+
GeneratedAt;
|
|
50747
|
+
CategoryID;
|
|
50748
|
+
GeneratedByModelID;
|
|
50749
|
+
Name;
|
|
50750
|
+
Description;
|
|
50751
|
+
Code;
|
|
50752
|
+
Source;
|
|
50753
|
+
LinkedEntityID;
|
|
50754
|
+
LinkedRecordPrimaryKey;
|
|
50755
|
+
Status;
|
|
50756
|
+
Language;
|
|
50757
|
+
OldValues___;
|
|
50758
|
+
};
|
|
50759
|
+
__decorate([
|
|
50760
|
+
Field(),
|
|
50761
|
+
__metadata("design:type", String)
|
|
50762
|
+
], UpdateGeneratedCodeInput.prototype, "ID", void 0);
|
|
50763
|
+
__decorate([
|
|
50764
|
+
Field({ nullable: true }),
|
|
50765
|
+
__metadata("design:type", Date)
|
|
50766
|
+
], UpdateGeneratedCodeInput.prototype, "GeneratedAt", void 0);
|
|
50767
|
+
__decorate([
|
|
50768
|
+
Field({ nullable: true }),
|
|
50769
|
+
__metadata("design:type", String)
|
|
50770
|
+
], UpdateGeneratedCodeInput.prototype, "CategoryID", void 0);
|
|
50771
|
+
__decorate([
|
|
50772
|
+
Field({ nullable: true }),
|
|
50773
|
+
__metadata("design:type", String)
|
|
50774
|
+
], UpdateGeneratedCodeInput.prototype, "GeneratedByModelID", void 0);
|
|
50775
|
+
__decorate([
|
|
50776
|
+
Field({ nullable: true }),
|
|
50777
|
+
__metadata("design:type", String)
|
|
50778
|
+
], UpdateGeneratedCodeInput.prototype, "Name", void 0);
|
|
50779
|
+
__decorate([
|
|
50780
|
+
Field({ nullable: true }),
|
|
50781
|
+
__metadata("design:type", String)
|
|
50782
|
+
], UpdateGeneratedCodeInput.prototype, "Description", void 0);
|
|
50783
|
+
__decorate([
|
|
50784
|
+
Field({ nullable: true }),
|
|
50785
|
+
__metadata("design:type", String)
|
|
50786
|
+
], UpdateGeneratedCodeInput.prototype, "Code", void 0);
|
|
50787
|
+
__decorate([
|
|
50788
|
+
Field({ nullable: true }),
|
|
50789
|
+
__metadata("design:type", String)
|
|
50790
|
+
], UpdateGeneratedCodeInput.prototype, "Source", void 0);
|
|
50791
|
+
__decorate([
|
|
50792
|
+
Field({ nullable: true }),
|
|
50793
|
+
__metadata("design:type", String)
|
|
50794
|
+
], UpdateGeneratedCodeInput.prototype, "LinkedEntityID", void 0);
|
|
50795
|
+
__decorate([
|
|
50796
|
+
Field({ nullable: true }),
|
|
50797
|
+
__metadata("design:type", String)
|
|
50798
|
+
], UpdateGeneratedCodeInput.prototype, "LinkedRecordPrimaryKey", void 0);
|
|
50799
|
+
__decorate([
|
|
50800
|
+
Field({ nullable: true }),
|
|
50801
|
+
__metadata("design:type", String)
|
|
50802
|
+
], UpdateGeneratedCodeInput.prototype, "Status", void 0);
|
|
50803
|
+
__decorate([
|
|
50804
|
+
Field({ nullable: true }),
|
|
50805
|
+
__metadata("design:type", String)
|
|
50806
|
+
], UpdateGeneratedCodeInput.prototype, "Language", void 0);
|
|
50807
|
+
__decorate([
|
|
50808
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
50809
|
+
__metadata("design:type", Array)
|
|
50810
|
+
], UpdateGeneratedCodeInput.prototype, "OldValues___", void 0);
|
|
50811
|
+
UpdateGeneratedCodeInput = __decorate([
|
|
50812
|
+
InputType()
|
|
50813
|
+
], UpdateGeneratedCodeInput);
|
|
50814
|
+
export { UpdateGeneratedCodeInput };
|
|
50815
|
+
let RunGeneratedCodeViewResult = class RunGeneratedCodeViewResult {
|
|
50816
|
+
Results;
|
|
50817
|
+
UserViewRunID;
|
|
50818
|
+
RowCount;
|
|
50819
|
+
TotalRowCount;
|
|
50820
|
+
ExecutionTime;
|
|
50821
|
+
ErrorMessage;
|
|
50822
|
+
Success;
|
|
50823
|
+
};
|
|
50824
|
+
__decorate([
|
|
50825
|
+
Field(() => [GeneratedCode_]),
|
|
50826
|
+
__metadata("design:type", Array)
|
|
50827
|
+
], RunGeneratedCodeViewResult.prototype, "Results", void 0);
|
|
50828
|
+
__decorate([
|
|
50829
|
+
Field(() => String, { nullable: true }),
|
|
50830
|
+
__metadata("design:type", String)
|
|
50831
|
+
], RunGeneratedCodeViewResult.prototype, "UserViewRunID", void 0);
|
|
50832
|
+
__decorate([
|
|
50833
|
+
Field(() => Int, { nullable: true }),
|
|
50834
|
+
__metadata("design:type", Number)
|
|
50835
|
+
], RunGeneratedCodeViewResult.prototype, "RowCount", void 0);
|
|
50836
|
+
__decorate([
|
|
50837
|
+
Field(() => Int, { nullable: true }),
|
|
50838
|
+
__metadata("design:type", Number)
|
|
50839
|
+
], RunGeneratedCodeViewResult.prototype, "TotalRowCount", void 0);
|
|
50840
|
+
__decorate([
|
|
50841
|
+
Field(() => Int, { nullable: true }),
|
|
50842
|
+
__metadata("design:type", Number)
|
|
50843
|
+
], RunGeneratedCodeViewResult.prototype, "ExecutionTime", void 0);
|
|
50844
|
+
__decorate([
|
|
50845
|
+
Field({ nullable: true }),
|
|
50846
|
+
__metadata("design:type", String)
|
|
50847
|
+
], RunGeneratedCodeViewResult.prototype, "ErrorMessage", void 0);
|
|
50848
|
+
__decorate([
|
|
50849
|
+
Field(() => Boolean, { nullable: false }),
|
|
50850
|
+
__metadata("design:type", Boolean)
|
|
50851
|
+
], RunGeneratedCodeViewResult.prototype, "Success", void 0);
|
|
50852
|
+
RunGeneratedCodeViewResult = __decorate([
|
|
50853
|
+
ObjectType()
|
|
50854
|
+
], RunGeneratedCodeViewResult);
|
|
50855
|
+
export { RunGeneratedCodeViewResult };
|
|
50856
|
+
let GeneratedCodeResolver = class GeneratedCodeResolver extends ResolverBase {
|
|
50857
|
+
async RunGeneratedCodeViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
50858
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
50859
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
50860
|
+
}
|
|
50861
|
+
async RunGeneratedCodeViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
50862
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
50863
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
50864
|
+
}
|
|
50865
|
+
async RunGeneratedCodeDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
50866
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
50867
|
+
input.EntityName = 'Generated Codes';
|
|
50868
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
50869
|
+
}
|
|
50870
|
+
async GeneratedCode(ID, { dataSources, userPayload }, pubSub) {
|
|
50871
|
+
this.CheckUserReadPermissions('Generated Codes', userPayload);
|
|
50872
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
50873
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwGeneratedCodes] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('Generated Codes', userPayload, EntityPermissionType.Read, 'AND');
|
|
50874
|
+
const result = this.MapFieldNamesToCodeNames('Generated Codes', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
50875
|
+
return result;
|
|
50876
|
+
}
|
|
50877
|
+
async CreateGeneratedCode(input, { dataSources, userPayload }, pubSub) {
|
|
50878
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
50879
|
+
return this.CreateRecord('Generated Codes', input, dataSource, userPayload, pubSub);
|
|
50880
|
+
}
|
|
50881
|
+
async UpdateGeneratedCode(input, { dataSources, userPayload }, pubSub) {
|
|
50882
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
50883
|
+
return this.UpdateRecord('Generated Codes', input, dataSource, userPayload, pubSub);
|
|
50884
|
+
}
|
|
50885
|
+
async DeleteGeneratedCode(ID, options, { dataSources, userPayload }, pubSub) {
|
|
50886
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
50887
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
50888
|
+
return this.DeleteRecord('Generated Codes', key, options, dataSource, userPayload, pubSub);
|
|
50889
|
+
}
|
|
50890
|
+
};
|
|
50891
|
+
__decorate([
|
|
50892
|
+
Query(() => RunGeneratedCodeViewResult),
|
|
50893
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
50894
|
+
__param(1, Ctx()),
|
|
50895
|
+
__param(2, PubSub()),
|
|
50896
|
+
__metadata("design:type", Function),
|
|
50897
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
50898
|
+
__metadata("design:returntype", Promise)
|
|
50899
|
+
], GeneratedCodeResolver.prototype, "RunGeneratedCodeViewByID", null);
|
|
50900
|
+
__decorate([
|
|
50901
|
+
Query(() => RunGeneratedCodeViewResult),
|
|
50902
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
50903
|
+
__param(1, Ctx()),
|
|
50904
|
+
__param(2, PubSub()),
|
|
50905
|
+
__metadata("design:type", Function),
|
|
50906
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
50907
|
+
__metadata("design:returntype", Promise)
|
|
50908
|
+
], GeneratedCodeResolver.prototype, "RunGeneratedCodeViewByName", null);
|
|
50909
|
+
__decorate([
|
|
50910
|
+
Query(() => RunGeneratedCodeViewResult),
|
|
50911
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
50912
|
+
__param(1, Ctx()),
|
|
50913
|
+
__param(2, PubSub()),
|
|
50914
|
+
__metadata("design:type", Function),
|
|
50915
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
50916
|
+
__metadata("design:returntype", Promise)
|
|
50917
|
+
], GeneratedCodeResolver.prototype, "RunGeneratedCodeDynamicView", null);
|
|
50918
|
+
__decorate([
|
|
50919
|
+
Query(() => GeneratedCode_, { nullable: true }),
|
|
50920
|
+
__param(0, Arg('ID', () => String)),
|
|
50921
|
+
__param(1, Ctx()),
|
|
50922
|
+
__param(2, PubSub()),
|
|
50923
|
+
__metadata("design:type", Function),
|
|
50924
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
50925
|
+
__metadata("design:returntype", Promise)
|
|
50926
|
+
], GeneratedCodeResolver.prototype, "GeneratedCode", null);
|
|
50927
|
+
__decorate([
|
|
50928
|
+
Mutation(() => GeneratedCode_),
|
|
50929
|
+
__param(0, Arg('input', () => CreateGeneratedCodeInput)),
|
|
50930
|
+
__param(1, Ctx()),
|
|
50931
|
+
__param(2, PubSub()),
|
|
50932
|
+
__metadata("design:type", Function),
|
|
50933
|
+
__metadata("design:paramtypes", [CreateGeneratedCodeInput, Object, PubSubEngine]),
|
|
50934
|
+
__metadata("design:returntype", Promise)
|
|
50935
|
+
], GeneratedCodeResolver.prototype, "CreateGeneratedCode", null);
|
|
50936
|
+
__decorate([
|
|
50937
|
+
Mutation(() => GeneratedCode_),
|
|
50938
|
+
__param(0, Arg('input', () => UpdateGeneratedCodeInput)),
|
|
50939
|
+
__param(1, Ctx()),
|
|
50940
|
+
__param(2, PubSub()),
|
|
50941
|
+
__metadata("design:type", Function),
|
|
50942
|
+
__metadata("design:paramtypes", [UpdateGeneratedCodeInput, Object, PubSubEngine]),
|
|
50943
|
+
__metadata("design:returntype", Promise)
|
|
50944
|
+
], GeneratedCodeResolver.prototype, "UpdateGeneratedCode", null);
|
|
50945
|
+
__decorate([
|
|
50946
|
+
Mutation(() => GeneratedCode_),
|
|
50947
|
+
__param(0, Arg('ID', () => String)),
|
|
50948
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
50949
|
+
__param(2, Ctx()),
|
|
50950
|
+
__param(3, PubSub()),
|
|
50951
|
+
__metadata("design:type", Function),
|
|
50952
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
50953
|
+
__metadata("design:returntype", Promise)
|
|
50954
|
+
], GeneratedCodeResolver.prototype, "DeleteGeneratedCode", null);
|
|
50955
|
+
GeneratedCodeResolver = __decorate([
|
|
50956
|
+
Resolver(GeneratedCode_)
|
|
50957
|
+
], GeneratedCodeResolver);
|
|
50958
|
+
export { GeneratedCodeResolver };
|
|
49940
50959
|
let AIAgentLearningCycle_ = class AIAgentLearningCycle_ {
|
|
49941
50960
|
ID;
|
|
49942
50961
|
AgentID;
|
|
@@ -50212,4 +51231,292 @@ AIAgentLearningCycleResolver = __decorate([
|
|
|
50212
51231
|
Resolver(AIAgentLearningCycle_)
|
|
50213
51232
|
], AIAgentLearningCycleResolver);
|
|
50214
51233
|
export { AIAgentLearningCycleResolver };
|
|
51234
|
+
let ReportVersion_ = class ReportVersion_ {
|
|
51235
|
+
ID;
|
|
51236
|
+
ReportID;
|
|
51237
|
+
VersionNumber;
|
|
51238
|
+
Name;
|
|
51239
|
+
Description;
|
|
51240
|
+
Configuration;
|
|
51241
|
+
DataContextUpdated;
|
|
51242
|
+
_mj__CreatedAt;
|
|
51243
|
+
_mj__UpdatedAt;
|
|
51244
|
+
Report;
|
|
51245
|
+
};
|
|
51246
|
+
__decorate([
|
|
51247
|
+
Field(),
|
|
51248
|
+
MaxLength(16),
|
|
51249
|
+
__metadata("design:type", String)
|
|
51250
|
+
], ReportVersion_.prototype, "ID", void 0);
|
|
51251
|
+
__decorate([
|
|
51252
|
+
Field(),
|
|
51253
|
+
MaxLength(16),
|
|
51254
|
+
__metadata("design:type", String)
|
|
51255
|
+
], ReportVersion_.prototype, "ReportID", void 0);
|
|
51256
|
+
__decorate([
|
|
51257
|
+
Field(() => Int, { description: `Report version number, sequential per report starting at 1` }),
|
|
51258
|
+
__metadata("design:type", Number)
|
|
51259
|
+
], ReportVersion_.prototype, "VersionNumber", void 0);
|
|
51260
|
+
__decorate([
|
|
51261
|
+
Field({ description: `Name of this report version` }),
|
|
51262
|
+
MaxLength(510),
|
|
51263
|
+
__metadata("design:type", String)
|
|
51264
|
+
], ReportVersion_.prototype, "Name", void 0);
|
|
51265
|
+
__decorate([
|
|
51266
|
+
Field({ nullable: true, description: `Description of this report version` }),
|
|
51267
|
+
__metadata("design:type", String)
|
|
51268
|
+
], ReportVersion_.prototype, "Description", void 0);
|
|
51269
|
+
__decorate([
|
|
51270
|
+
Field({ nullable: true, description: `JSON configuration of report structure, layout and logic` }),
|
|
51271
|
+
__metadata("design:type", String)
|
|
51272
|
+
], ReportVersion_.prototype, "Configuration", void 0);
|
|
51273
|
+
__decorate([
|
|
51274
|
+
Field(() => Boolean, { description: `Indicates if the data context was updated in this version` }),
|
|
51275
|
+
__metadata("design:type", Boolean)
|
|
51276
|
+
], ReportVersion_.prototype, "DataContextUpdated", void 0);
|
|
51277
|
+
__decorate([
|
|
51278
|
+
Field(),
|
|
51279
|
+
MaxLength(10),
|
|
51280
|
+
__metadata("design:type", Date)
|
|
51281
|
+
], ReportVersion_.prototype, "_mj__CreatedAt", void 0);
|
|
51282
|
+
__decorate([
|
|
51283
|
+
Field(),
|
|
51284
|
+
MaxLength(10),
|
|
51285
|
+
__metadata("design:type", Date)
|
|
51286
|
+
], ReportVersion_.prototype, "_mj__UpdatedAt", void 0);
|
|
51287
|
+
__decorate([
|
|
51288
|
+
Field(),
|
|
51289
|
+
MaxLength(510),
|
|
51290
|
+
__metadata("design:type", String)
|
|
51291
|
+
], ReportVersion_.prototype, "Report", void 0);
|
|
51292
|
+
ReportVersion_ = __decorate([
|
|
51293
|
+
ObjectType()
|
|
51294
|
+
], ReportVersion_);
|
|
51295
|
+
export { ReportVersion_ };
|
|
51296
|
+
let CreateReportVersionInput = class CreateReportVersionInput {
|
|
51297
|
+
ReportID;
|
|
51298
|
+
VersionNumber;
|
|
51299
|
+
Name;
|
|
51300
|
+
Description;
|
|
51301
|
+
Configuration;
|
|
51302
|
+
DataContextUpdated;
|
|
51303
|
+
};
|
|
51304
|
+
__decorate([
|
|
51305
|
+
Field({ nullable: true }),
|
|
51306
|
+
__metadata("design:type", String)
|
|
51307
|
+
], CreateReportVersionInput.prototype, "ReportID", void 0);
|
|
51308
|
+
__decorate([
|
|
51309
|
+
Field(() => Int, { nullable: true }),
|
|
51310
|
+
__metadata("design:type", Number)
|
|
51311
|
+
], CreateReportVersionInput.prototype, "VersionNumber", void 0);
|
|
51312
|
+
__decorate([
|
|
51313
|
+
Field({ nullable: true }),
|
|
51314
|
+
__metadata("design:type", String)
|
|
51315
|
+
], CreateReportVersionInput.prototype, "Name", void 0);
|
|
51316
|
+
__decorate([
|
|
51317
|
+
Field({ nullable: true }),
|
|
51318
|
+
__metadata("design:type", String)
|
|
51319
|
+
], CreateReportVersionInput.prototype, "Description", void 0);
|
|
51320
|
+
__decorate([
|
|
51321
|
+
Field({ nullable: true }),
|
|
51322
|
+
__metadata("design:type", String)
|
|
51323
|
+
], CreateReportVersionInput.prototype, "Configuration", void 0);
|
|
51324
|
+
__decorate([
|
|
51325
|
+
Field(() => Boolean, { nullable: true }),
|
|
51326
|
+
__metadata("design:type", Boolean)
|
|
51327
|
+
], CreateReportVersionInput.prototype, "DataContextUpdated", void 0);
|
|
51328
|
+
CreateReportVersionInput = __decorate([
|
|
51329
|
+
InputType()
|
|
51330
|
+
], CreateReportVersionInput);
|
|
51331
|
+
export { CreateReportVersionInput };
|
|
51332
|
+
let UpdateReportVersionInput = class UpdateReportVersionInput {
|
|
51333
|
+
ID;
|
|
51334
|
+
ReportID;
|
|
51335
|
+
VersionNumber;
|
|
51336
|
+
Name;
|
|
51337
|
+
Description;
|
|
51338
|
+
Configuration;
|
|
51339
|
+
DataContextUpdated;
|
|
51340
|
+
OldValues___;
|
|
51341
|
+
};
|
|
51342
|
+
__decorate([
|
|
51343
|
+
Field(),
|
|
51344
|
+
__metadata("design:type", String)
|
|
51345
|
+
], UpdateReportVersionInput.prototype, "ID", void 0);
|
|
51346
|
+
__decorate([
|
|
51347
|
+
Field({ nullable: true }),
|
|
51348
|
+
__metadata("design:type", String)
|
|
51349
|
+
], UpdateReportVersionInput.prototype, "ReportID", void 0);
|
|
51350
|
+
__decorate([
|
|
51351
|
+
Field(() => Int, { nullable: true }),
|
|
51352
|
+
__metadata("design:type", Number)
|
|
51353
|
+
], UpdateReportVersionInput.prototype, "VersionNumber", void 0);
|
|
51354
|
+
__decorate([
|
|
51355
|
+
Field({ nullable: true }),
|
|
51356
|
+
__metadata("design:type", String)
|
|
51357
|
+
], UpdateReportVersionInput.prototype, "Name", void 0);
|
|
51358
|
+
__decorate([
|
|
51359
|
+
Field({ nullable: true }),
|
|
51360
|
+
__metadata("design:type", String)
|
|
51361
|
+
], UpdateReportVersionInput.prototype, "Description", void 0);
|
|
51362
|
+
__decorate([
|
|
51363
|
+
Field({ nullable: true }),
|
|
51364
|
+
__metadata("design:type", String)
|
|
51365
|
+
], UpdateReportVersionInput.prototype, "Configuration", void 0);
|
|
51366
|
+
__decorate([
|
|
51367
|
+
Field(() => Boolean, { nullable: true }),
|
|
51368
|
+
__metadata("design:type", Boolean)
|
|
51369
|
+
], UpdateReportVersionInput.prototype, "DataContextUpdated", void 0);
|
|
51370
|
+
__decorate([
|
|
51371
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
51372
|
+
__metadata("design:type", Array)
|
|
51373
|
+
], UpdateReportVersionInput.prototype, "OldValues___", void 0);
|
|
51374
|
+
UpdateReportVersionInput = __decorate([
|
|
51375
|
+
InputType()
|
|
51376
|
+
], UpdateReportVersionInput);
|
|
51377
|
+
export { UpdateReportVersionInput };
|
|
51378
|
+
let RunReportVersionViewResult = class RunReportVersionViewResult {
|
|
51379
|
+
Results;
|
|
51380
|
+
UserViewRunID;
|
|
51381
|
+
RowCount;
|
|
51382
|
+
TotalRowCount;
|
|
51383
|
+
ExecutionTime;
|
|
51384
|
+
ErrorMessage;
|
|
51385
|
+
Success;
|
|
51386
|
+
};
|
|
51387
|
+
__decorate([
|
|
51388
|
+
Field(() => [ReportVersion_]),
|
|
51389
|
+
__metadata("design:type", Array)
|
|
51390
|
+
], RunReportVersionViewResult.prototype, "Results", void 0);
|
|
51391
|
+
__decorate([
|
|
51392
|
+
Field(() => String, { nullable: true }),
|
|
51393
|
+
__metadata("design:type", String)
|
|
51394
|
+
], RunReportVersionViewResult.prototype, "UserViewRunID", void 0);
|
|
51395
|
+
__decorate([
|
|
51396
|
+
Field(() => Int, { nullable: true }),
|
|
51397
|
+
__metadata("design:type", Number)
|
|
51398
|
+
], RunReportVersionViewResult.prototype, "RowCount", void 0);
|
|
51399
|
+
__decorate([
|
|
51400
|
+
Field(() => Int, { nullable: true }),
|
|
51401
|
+
__metadata("design:type", Number)
|
|
51402
|
+
], RunReportVersionViewResult.prototype, "TotalRowCount", void 0);
|
|
51403
|
+
__decorate([
|
|
51404
|
+
Field(() => Int, { nullable: true }),
|
|
51405
|
+
__metadata("design:type", Number)
|
|
51406
|
+
], RunReportVersionViewResult.prototype, "ExecutionTime", void 0);
|
|
51407
|
+
__decorate([
|
|
51408
|
+
Field({ nullable: true }),
|
|
51409
|
+
__metadata("design:type", String)
|
|
51410
|
+
], RunReportVersionViewResult.prototype, "ErrorMessage", void 0);
|
|
51411
|
+
__decorate([
|
|
51412
|
+
Field(() => Boolean, { nullable: false }),
|
|
51413
|
+
__metadata("design:type", Boolean)
|
|
51414
|
+
], RunReportVersionViewResult.prototype, "Success", void 0);
|
|
51415
|
+
RunReportVersionViewResult = __decorate([
|
|
51416
|
+
ObjectType()
|
|
51417
|
+
], RunReportVersionViewResult);
|
|
51418
|
+
export { RunReportVersionViewResult };
|
|
51419
|
+
let ReportVersionResolver = class ReportVersionResolver extends ResolverBase {
|
|
51420
|
+
async RunReportVersionViewByID(input, { dataSources, userPayload }, pubSub) {
|
|
51421
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51422
|
+
return super.RunViewByIDGeneric(input, dataSource, userPayload, pubSub);
|
|
51423
|
+
}
|
|
51424
|
+
async RunReportVersionViewByName(input, { dataSources, userPayload }, pubSub) {
|
|
51425
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51426
|
+
return super.RunViewByNameGeneric(input, dataSource, userPayload, pubSub);
|
|
51427
|
+
}
|
|
51428
|
+
async RunReportVersionDynamicView(input, { dataSources, userPayload }, pubSub) {
|
|
51429
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51430
|
+
input.EntityName = 'MJ: Report Versions';
|
|
51431
|
+
return super.RunDynamicViewGeneric(input, dataSource, userPayload, pubSub);
|
|
51432
|
+
}
|
|
51433
|
+
async ReportVersion(ID, { dataSources, userPayload }, pubSub) {
|
|
51434
|
+
this.CheckUserReadPermissions('MJ: Report Versions', userPayload);
|
|
51435
|
+
const dataSource = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
51436
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwReportVersions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause('MJ: Report Versions', userPayload, EntityPermissionType.Read, 'AND');
|
|
51437
|
+
const result = this.MapFieldNamesToCodeNames('MJ: Report Versions', await dataSource.query(sSQL).then((r) => r && r.length > 0 ? r[0] : {}));
|
|
51438
|
+
return result;
|
|
51439
|
+
}
|
|
51440
|
+
async CreateReportVersion(input, { dataSources, userPayload }, pubSub) {
|
|
51441
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
51442
|
+
return this.CreateRecord('MJ: Report Versions', input, dataSource, userPayload, pubSub);
|
|
51443
|
+
}
|
|
51444
|
+
async UpdateReportVersion(input, { dataSources, userPayload }, pubSub) {
|
|
51445
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
51446
|
+
return this.UpdateRecord('MJ: Report Versions', input, dataSource, userPayload, pubSub);
|
|
51447
|
+
}
|
|
51448
|
+
async DeleteReportVersion(ID, options, { dataSources, userPayload }, pubSub) {
|
|
51449
|
+
const dataSource = GetReadWriteDataSource(dataSources);
|
|
51450
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
51451
|
+
return this.DeleteRecord('MJ: Report Versions', key, options, dataSource, userPayload, pubSub);
|
|
51452
|
+
}
|
|
51453
|
+
};
|
|
51454
|
+
__decorate([
|
|
51455
|
+
Query(() => RunReportVersionViewResult),
|
|
51456
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
51457
|
+
__param(1, Ctx()),
|
|
51458
|
+
__param(2, PubSub()),
|
|
51459
|
+
__metadata("design:type", Function),
|
|
51460
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
51461
|
+
__metadata("design:returntype", Promise)
|
|
51462
|
+
], ReportVersionResolver.prototype, "RunReportVersionViewByID", null);
|
|
51463
|
+
__decorate([
|
|
51464
|
+
Query(() => RunReportVersionViewResult),
|
|
51465
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
51466
|
+
__param(1, Ctx()),
|
|
51467
|
+
__param(2, PubSub()),
|
|
51468
|
+
__metadata("design:type", Function),
|
|
51469
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
51470
|
+
__metadata("design:returntype", Promise)
|
|
51471
|
+
], ReportVersionResolver.prototype, "RunReportVersionViewByName", null);
|
|
51472
|
+
__decorate([
|
|
51473
|
+
Query(() => RunReportVersionViewResult),
|
|
51474
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
51475
|
+
__param(1, Ctx()),
|
|
51476
|
+
__param(2, PubSub()),
|
|
51477
|
+
__metadata("design:type", Function),
|
|
51478
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
51479
|
+
__metadata("design:returntype", Promise)
|
|
51480
|
+
], ReportVersionResolver.prototype, "RunReportVersionDynamicView", null);
|
|
51481
|
+
__decorate([
|
|
51482
|
+
Query(() => ReportVersion_, { nullable: true }),
|
|
51483
|
+
__param(0, Arg('ID', () => String)),
|
|
51484
|
+
__param(1, Ctx()),
|
|
51485
|
+
__param(2, PubSub()),
|
|
51486
|
+
__metadata("design:type", Function),
|
|
51487
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
51488
|
+
__metadata("design:returntype", Promise)
|
|
51489
|
+
], ReportVersionResolver.prototype, "ReportVersion", null);
|
|
51490
|
+
__decorate([
|
|
51491
|
+
Mutation(() => ReportVersion_),
|
|
51492
|
+
__param(0, Arg('input', () => CreateReportVersionInput)),
|
|
51493
|
+
__param(1, Ctx()),
|
|
51494
|
+
__param(2, PubSub()),
|
|
51495
|
+
__metadata("design:type", Function),
|
|
51496
|
+
__metadata("design:paramtypes", [CreateReportVersionInput, Object, PubSubEngine]),
|
|
51497
|
+
__metadata("design:returntype", Promise)
|
|
51498
|
+
], ReportVersionResolver.prototype, "CreateReportVersion", null);
|
|
51499
|
+
__decorate([
|
|
51500
|
+
Mutation(() => ReportVersion_),
|
|
51501
|
+
__param(0, Arg('input', () => UpdateReportVersionInput)),
|
|
51502
|
+
__param(1, Ctx()),
|
|
51503
|
+
__param(2, PubSub()),
|
|
51504
|
+
__metadata("design:type", Function),
|
|
51505
|
+
__metadata("design:paramtypes", [UpdateReportVersionInput, Object, PubSubEngine]),
|
|
51506
|
+
__metadata("design:returntype", Promise)
|
|
51507
|
+
], ReportVersionResolver.prototype, "UpdateReportVersion", null);
|
|
51508
|
+
__decorate([
|
|
51509
|
+
Mutation(() => ReportVersion_),
|
|
51510
|
+
__param(0, Arg('ID', () => String)),
|
|
51511
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
51512
|
+
__param(2, Ctx()),
|
|
51513
|
+
__param(3, PubSub()),
|
|
51514
|
+
__metadata("design:type", Function),
|
|
51515
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
51516
|
+
__metadata("design:returntype", Promise)
|
|
51517
|
+
], ReportVersionResolver.prototype, "DeleteReportVersion", null);
|
|
51518
|
+
ReportVersionResolver = __decorate([
|
|
51519
|
+
Resolver(ReportVersion_)
|
|
51520
|
+
], ReportVersionResolver);
|
|
51521
|
+
export { ReportVersionResolver };
|
|
50215
51522
|
//# sourceMappingURL=generated.js.map
|