@memberjunction/server 3.3.0 → 3.4.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/README.md +59 -0
- package/dist/auth/BaseAuthProvider.d.ts +1 -0
- package/dist/auth/BaseAuthProvider.d.ts.map +1 -1
- package/dist/auth/BaseAuthProvider.js +2 -0
- package/dist/auth/BaseAuthProvider.js.map +1 -1
- package/dist/auth/IAuthProvider.d.ts +1 -0
- package/dist/auth/IAuthProvider.d.ts.map +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/generated/generated.d.ts +431 -2
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +3052 -379
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/ResolverBase.d.ts +1 -0
- package/dist/generic/ResolverBase.d.ts.map +1 -1
- package/dist/generic/ResolverBase.js +30 -0
- package/dist/generic/ResolverBase.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/resolvers/APIKeyResolver.d.ts +2 -1
- package/dist/resolvers/APIKeyResolver.d.ts.map +1 -1
- package/dist/resolvers/APIKeyResolver.js +4 -1
- package/dist/resolvers/APIKeyResolver.js.map +1 -1
- package/dist/resolvers/ActionResolver.d.ts +2 -1
- package/dist/resolvers/ActionResolver.d.ts.map +1 -1
- package/dist/resolvers/ActionResolver.js +4 -1
- package/dist/resolvers/ActionResolver.js.map +1 -1
- package/dist/resolvers/DatasetResolver.d.ts +5 -4
- package/dist/resolvers/DatasetResolver.d.ts.map +1 -1
- package/dist/resolvers/DatasetResolver.js +7 -4
- package/dist/resolvers/DatasetResolver.js.map +1 -1
- package/dist/resolvers/EntityCommunicationsResolver.d.ts +2 -1
- package/dist/resolvers/EntityCommunicationsResolver.d.ts.map +1 -1
- package/dist/resolvers/EntityCommunicationsResolver.js +3 -1
- package/dist/resolvers/EntityCommunicationsResolver.js.map +1 -1
- package/dist/resolvers/GetDataContextDataResolver.d.ts +2 -1
- package/dist/resolvers/GetDataContextDataResolver.d.ts.map +1 -1
- package/dist/resolvers/GetDataContextDataResolver.js +10 -3
- package/dist/resolvers/GetDataContextDataResolver.js.map +1 -1
- package/dist/resolvers/MCPResolver.d.ts +37 -0
- package/dist/resolvers/MCPResolver.d.ts.map +1 -0
- package/dist/resolvers/MCPResolver.js +363 -0
- package/dist/resolvers/MCPResolver.js.map +1 -0
- package/dist/resolvers/MergeRecordsResolver.d.ts +2 -1
- package/dist/resolvers/MergeRecordsResolver.d.ts.map +1 -1
- package/dist/resolvers/MergeRecordsResolver.js +3 -1
- package/dist/resolvers/MergeRecordsResolver.js.map +1 -1
- package/dist/resolvers/QueryResolver.d.ts +2 -1
- package/dist/resolvers/QueryResolver.d.ts.map +1 -1
- package/dist/resolvers/QueryResolver.js +6 -1
- package/dist/resolvers/QueryResolver.js.map +1 -1
- package/dist/resolvers/ReportResolver.d.ts +2 -1
- package/dist/resolvers/ReportResolver.d.ts.map +1 -1
- package/dist/resolvers/ReportResolver.js +4 -1
- package/dist/resolvers/ReportResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +2 -0
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.js +3 -0
- package/dist/resolvers/RunAIPromptResolver.js.map +1 -1
- package/dist/resolvers/RunTemplateResolver.d.ts.map +1 -1
- package/dist/resolvers/RunTemplateResolver.js +1 -0
- package/dist/resolvers/RunTemplateResolver.js.map +1 -1
- package/dist/resolvers/TaskResolver.d.ts.map +1 -1
- package/dist/resolvers/TaskResolver.js +1 -0
- package/dist/resolvers/TaskResolver.js.map +1 -1
- package/dist/resolvers/UserResolver.d.ts.map +1 -1
- package/dist/resolvers/UserResolver.js +4 -0
- package/dist/resolvers/UserResolver.js.map +1 -1
- package/package.json +47 -46
- package/src/auth/BaseAuthProvider.ts +3 -0
- package/src/auth/IAuthProvider.ts +5 -0
- package/src/config.ts +2 -2
- package/src/generated/generated.ts +2020 -334
- package/src/generic/ResolverBase.ts +89 -3
- package/src/index.ts +10 -2
- package/src/resolvers/APIKeyResolver.ts +8 -1
- package/src/resolvers/ActionResolver.ts +8 -1
- package/src/resolvers/DatasetResolver.ts +11 -4
- package/src/resolvers/EntityCommunicationsResolver.ts +5 -1
- package/src/resolvers/GetDataContextDataResolver.ts +14 -6
- package/src/resolvers/MCPResolver.ts +480 -0
- package/src/resolvers/MergeRecordsResolver.ts +5 -1
- package/src/resolvers/QueryResolver.ts +17 -3
- package/src/resolvers/ReportResolver.ts +8 -1
- package/src/resolvers/RunAIAgentResolver.ts +6 -0
- package/src/resolvers/RunAIPromptResolver.ts +10 -1
- package/src/resolvers/RunTemplateResolver.ts +4 -1
- package/src/resolvers/TaskResolver.ts +3 -0
- package/src/resolvers/UserResolver.ts +15 -3
- package/dist/resolvers/AskSkipResolver.d.ts +0 -123
- package/dist/resolvers/AskSkipResolver.d.ts.map +0 -1
- package/dist/resolvers/AskSkipResolver.js +0 -1788
- package/dist/resolvers/AskSkipResolver.js.map +0 -1
- package/dist/scheduler/LearningCycleScheduler.d.ts +0 -4
- package/dist/scheduler/LearningCycleScheduler.d.ts.map +0 -1
- package/dist/scheduler/LearningCycleScheduler.js +0 -4
- package/dist/scheduler/LearningCycleScheduler.js.map +0 -1
- package/src/resolvers/AskSkipResolver.ts +0 -3446
- package/src/scheduler/LearningCycleScheduler.ts +0 -320
|
@@ -282,6 +282,7 @@ let MJActionCategory_ = class MJActionCategory_ {
|
|
|
282
282
|
RootParentID;
|
|
283
283
|
ActionCategories_ParentIDArray;
|
|
284
284
|
Actions_CategoryIDArray;
|
|
285
|
+
MJ_MCPServerTools_GeneratedActionCategoryIDArray;
|
|
285
286
|
};
|
|
286
287
|
__decorate([
|
|
287
288
|
Field(),
|
|
@@ -335,6 +336,10 @@ __decorate([
|
|
|
335
336
|
Field(() => [MJAction_]),
|
|
336
337
|
__metadata("design:type", Array)
|
|
337
338
|
], MJActionCategory_.prototype, "Actions_CategoryIDArray", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
Field(() => [MJMCPServerTool_]),
|
|
341
|
+
__metadata("design:type", Array)
|
|
342
|
+
], MJActionCategory_.prototype, "MJ_MCPServerTools_GeneratedActionCategoryIDArray", void 0);
|
|
338
343
|
MJActionCategory_ = __decorate([
|
|
339
344
|
ObjectType({ description: `Organizes actions into categories, including name, description, and optional parent category for hierarchy.` })
|
|
340
345
|
], MJActionCategory_);
|
|
@@ -488,6 +493,15 @@ let MJActionCategoryResolver = class MJActionCategoryResolver extends ResolverBa
|
|
|
488
493
|
const result = await this.ArrayMapFieldNamesToCodeNames('Actions', rows, this.GetUserFromPayload(userPayload));
|
|
489
494
|
return result;
|
|
490
495
|
}
|
|
496
|
+
async MJ_MCPServerTools_GeneratedActionCategoryIDArray(mjactioncategory_, { dataSources, userPayload, providers }, pubSub) {
|
|
497
|
+
this.CheckUserReadPermissions('MJ: MCP Server Tools', userPayload);
|
|
498
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
499
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
500
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerTools] WHERE [GeneratedActionCategoryID]='${mjactioncategory_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
501
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
502
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Tools', rows, this.GetUserFromPayload(userPayload));
|
|
503
|
+
return result;
|
|
504
|
+
}
|
|
491
505
|
async CreateMJActionCategory(input, { providers, userPayload }, pubSub) {
|
|
492
506
|
const provider = GetReadWriteProvider(providers);
|
|
493
507
|
return this.CreateRecord('Action Categories', input, provider, userPayload, pubSub);
|
|
@@ -556,6 +570,15 @@ __decorate([
|
|
|
556
570
|
__metadata("design:paramtypes", [MJActionCategory_, Object, PubSubEngine]),
|
|
557
571
|
__metadata("design:returntype", Promise)
|
|
558
572
|
], MJActionCategoryResolver.prototype, "Actions_CategoryIDArray", null);
|
|
573
|
+
__decorate([
|
|
574
|
+
FieldResolver(() => [MJMCPServerTool_]),
|
|
575
|
+
__param(0, Root()),
|
|
576
|
+
__param(1, Ctx()),
|
|
577
|
+
__param(2, PubSub()),
|
|
578
|
+
__metadata("design:type", Function),
|
|
579
|
+
__metadata("design:paramtypes", [MJActionCategory_, Object, PubSubEngine]),
|
|
580
|
+
__metadata("design:returntype", Promise)
|
|
581
|
+
], MJActionCategoryResolver.prototype, "MJ_MCPServerTools_GeneratedActionCategoryIDArray", null);
|
|
559
582
|
__decorate([
|
|
560
583
|
Mutation(() => MJActionCategory_),
|
|
561
584
|
__param(0, Arg('input', () => CreateMJActionCategoryInput)),
|
|
@@ -2654,6 +2677,7 @@ let MJAction_ = class MJAction_ {
|
|
|
2654
2677
|
ActionResultCodes_ActionIDArray;
|
|
2655
2678
|
ScheduledActions_ActionIDArray;
|
|
2656
2679
|
AIAgentActions_ActionIDArray;
|
|
2680
|
+
MJ_MCPServerTools_GeneratedActionIDArray;
|
|
2657
2681
|
ActionContexts_ActionIDArray;
|
|
2658
2682
|
EntityActions_ActionIDArray;
|
|
2659
2683
|
MJ_AIAgentSteps_ActionIDArray;
|
|
@@ -2812,6 +2836,10 @@ __decorate([
|
|
|
2812
2836
|
Field(() => [MJAIAgentAction_]),
|
|
2813
2837
|
__metadata("design:type", Array)
|
|
2814
2838
|
], MJAction_.prototype, "AIAgentActions_ActionIDArray", void 0);
|
|
2839
|
+
__decorate([
|
|
2840
|
+
Field(() => [MJMCPServerTool_]),
|
|
2841
|
+
__metadata("design:type", Array)
|
|
2842
|
+
], MJAction_.prototype, "MJ_MCPServerTools_GeneratedActionIDArray", void 0);
|
|
2815
2843
|
__decorate([
|
|
2816
2844
|
Field(() => [MJActionContext_]),
|
|
2817
2845
|
__metadata("design:type", Array)
|
|
@@ -3176,6 +3204,15 @@ let MJActionResolver = class MJActionResolver extends ResolverBase {
|
|
|
3176
3204
|
const result = await this.ArrayMapFieldNamesToCodeNames('AI Agent Actions', rows, this.GetUserFromPayload(userPayload));
|
|
3177
3205
|
return result;
|
|
3178
3206
|
}
|
|
3207
|
+
async MJ_MCPServerTools_GeneratedActionIDArray(mjaction_, { dataSources, userPayload, providers }, pubSub) {
|
|
3208
|
+
this.CheckUserReadPermissions('MJ: MCP Server Tools', userPayload);
|
|
3209
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
3210
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
3211
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerTools] WHERE [GeneratedActionID]='${mjaction_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
3212
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
3213
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Tools', rows, this.GetUserFromPayload(userPayload));
|
|
3214
|
+
return result;
|
|
3215
|
+
}
|
|
3179
3216
|
async ActionContexts_ActionIDArray(mjaction_, { dataSources, userPayload, providers }, pubSub) {
|
|
3180
3217
|
this.CheckUserReadPermissions('Action Contexts', userPayload);
|
|
3181
3218
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -3325,6 +3362,15 @@ __decorate([
|
|
|
3325
3362
|
__metadata("design:paramtypes", [MJAction_, Object, PubSubEngine]),
|
|
3326
3363
|
__metadata("design:returntype", Promise)
|
|
3327
3364
|
], MJActionResolver.prototype, "AIAgentActions_ActionIDArray", null);
|
|
3365
|
+
__decorate([
|
|
3366
|
+
FieldResolver(() => [MJMCPServerTool_]),
|
|
3367
|
+
__param(0, Root()),
|
|
3368
|
+
__param(1, Ctx()),
|
|
3369
|
+
__param(2, PubSub()),
|
|
3370
|
+
__metadata("design:type", Function),
|
|
3371
|
+
__metadata("design:paramtypes", [MJAction_, Object, PubSubEngine]),
|
|
3372
|
+
__metadata("design:returntype", Promise)
|
|
3373
|
+
], MJActionResolver.prototype, "MJ_MCPServerTools_GeneratedActionIDArray", null);
|
|
3328
3374
|
__decorate([
|
|
3329
3375
|
FieldResolver(() => [MJActionContext_]),
|
|
3330
3376
|
__param(0, Root()),
|
|
@@ -15429,6 +15475,7 @@ let MJCompany_ = class MJCompany_ {
|
|
|
15429
15475
|
Employees_CompanyIDArray;
|
|
15430
15476
|
CompanyIntegrations_CompanyNameArray;
|
|
15431
15477
|
Workflows_CompanyNameArray;
|
|
15478
|
+
MJ_MCPServerConnections_CompanyIDArray;
|
|
15432
15479
|
AIAgentNotes_CompanyIDArray;
|
|
15433
15480
|
MJ_AIAgentExamples_CompanyIDArray;
|
|
15434
15481
|
};
|
|
@@ -15484,6 +15531,10 @@ __decorate([
|
|
|
15484
15531
|
Field(() => [MJWorkflow_]),
|
|
15485
15532
|
__metadata("design:type", Array)
|
|
15486
15533
|
], MJCompany_.prototype, "Workflows_CompanyNameArray", void 0);
|
|
15534
|
+
__decorate([
|
|
15535
|
+
Field(() => [MJMCPServerConnection_]),
|
|
15536
|
+
__metadata("design:type", Array)
|
|
15537
|
+
], MJCompany_.prototype, "MJ_MCPServerConnections_CompanyIDArray", void 0);
|
|
15487
15538
|
__decorate([
|
|
15488
15539
|
Field(() => [MJAIAgentNote_]),
|
|
15489
15540
|
__metadata("design:type", Array)
|
|
@@ -15673,6 +15724,15 @@ let MJCompanyResolver = class MJCompanyResolver extends ResolverBase {
|
|
|
15673
15724
|
const result = await this.ArrayMapFieldNamesToCodeNames('Workflows', rows, this.GetUserFromPayload(userPayload));
|
|
15674
15725
|
return result;
|
|
15675
15726
|
}
|
|
15727
|
+
async MJ_MCPServerConnections_CompanyIDArray(mjcompany_, { dataSources, userPayload, providers }, pubSub) {
|
|
15728
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connections', userPayload);
|
|
15729
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
15730
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
15731
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnections] WHERE [CompanyID]='${mjcompany_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
15732
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
15733
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connections', rows, this.GetUserFromPayload(userPayload));
|
|
15734
|
+
return result;
|
|
15735
|
+
}
|
|
15676
15736
|
async AIAgentNotes_CompanyIDArray(mjcompany_, { dataSources, userPayload, providers }, pubSub) {
|
|
15677
15737
|
this.CheckUserReadPermissions('AI Agent Notes', userPayload);
|
|
15678
15738
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -15776,6 +15836,15 @@ __decorate([
|
|
|
15776
15836
|
__metadata("design:paramtypes", [MJCompany_, Object, PubSubEngine]),
|
|
15777
15837
|
__metadata("design:returntype", Promise)
|
|
15778
15838
|
], MJCompanyResolver.prototype, "Workflows_CompanyNameArray", null);
|
|
15839
|
+
__decorate([
|
|
15840
|
+
FieldResolver(() => [MJMCPServerConnection_]),
|
|
15841
|
+
__param(0, Root()),
|
|
15842
|
+
__param(1, Ctx()),
|
|
15843
|
+
__param(2, PubSub()),
|
|
15844
|
+
__metadata("design:type", Function),
|
|
15845
|
+
__metadata("design:paramtypes", [MJCompany_, Object, PubSubEngine]),
|
|
15846
|
+
__metadata("design:returntype", Promise)
|
|
15847
|
+
], MJCompanyResolver.prototype, "MJ_MCPServerConnections_CompanyIDArray", null);
|
|
15779
15848
|
__decorate([
|
|
15780
15849
|
FieldResolver(() => [MJAIAgentNote_]),
|
|
15781
15850
|
__param(0, Root()),
|
|
@@ -55180,8 +55249,8 @@ let MJAPIApplication_ = class MJAPIApplication_ {
|
|
|
55180
55249
|
IsActive;
|
|
55181
55250
|
_mj__CreatedAt;
|
|
55182
55251
|
_mj__UpdatedAt;
|
|
55183
|
-
MJ_APIApplicationScopes_ApplicationIDArray;
|
|
55184
55252
|
MJ_APIKeyUsageLogs_ApplicationIDArray;
|
|
55253
|
+
MJ_APIApplicationScopes_ApplicationIDArray;
|
|
55185
55254
|
MJ_APIKeyApplications_ApplicationIDArray;
|
|
55186
55255
|
};
|
|
55187
55256
|
__decorate([
|
|
@@ -55213,14 +55282,14 @@ __decorate([
|
|
|
55213
55282
|
MaxLength(10),
|
|
55214
55283
|
__metadata("design:type", Date)
|
|
55215
55284
|
], MJAPIApplication_.prototype, "_mj__UpdatedAt", void 0);
|
|
55216
|
-
__decorate([
|
|
55217
|
-
Field(() => [MJAPIApplicationScope_]),
|
|
55218
|
-
__metadata("design:type", Array)
|
|
55219
|
-
], MJAPIApplication_.prototype, "MJ_APIApplicationScopes_ApplicationIDArray", void 0);
|
|
55220
55285
|
__decorate([
|
|
55221
55286
|
Field(() => [MJAPIKeyUsageLog_]),
|
|
55222
55287
|
__metadata("design:type", Array)
|
|
55223
55288
|
], MJAPIApplication_.prototype, "MJ_APIKeyUsageLogs_ApplicationIDArray", void 0);
|
|
55289
|
+
__decorate([
|
|
55290
|
+
Field(() => [MJAPIApplicationScope_]),
|
|
55291
|
+
__metadata("design:type", Array)
|
|
55292
|
+
], MJAPIApplication_.prototype, "MJ_APIApplicationScopes_ApplicationIDArray", void 0);
|
|
55224
55293
|
__decorate([
|
|
55225
55294
|
Field(() => [MJAPIKeyApplication_]),
|
|
55226
55295
|
__metadata("design:type", Array)
|
|
@@ -55350,22 +55419,22 @@ let MJAPIApplicationResolver = class MJAPIApplicationResolver extends ResolverBa
|
|
|
55350
55419
|
const result = await this.MapFieldNamesToCodeNames('MJ: API Applications', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
55351
55420
|
return result;
|
|
55352
55421
|
}
|
|
55353
|
-
async
|
|
55354
|
-
this.CheckUserReadPermissions('MJ: API
|
|
55422
|
+
async MJ_APIKeyUsageLogs_ApplicationIDArray(mjapiapplication_, { dataSources, userPayload, providers }, pubSub) {
|
|
55423
|
+
this.CheckUserReadPermissions('MJ: API Key Usage Logs', userPayload);
|
|
55355
55424
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55356
55425
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
55357
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
55426
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAPIKeyUsageLogs] WHERE [ApplicationID]='${mjapiapplication_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Key Usage Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
55358
55427
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
55359
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: API
|
|
55428
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: API Key Usage Logs', rows, this.GetUserFromPayload(userPayload));
|
|
55360
55429
|
return result;
|
|
55361
55430
|
}
|
|
55362
|
-
async
|
|
55363
|
-
this.CheckUserReadPermissions('MJ: API
|
|
55431
|
+
async MJ_APIApplicationScopes_ApplicationIDArray(mjapiapplication_, { dataSources, userPayload, providers }, pubSub) {
|
|
55432
|
+
this.CheckUserReadPermissions('MJ: API Application Scopes', userPayload);
|
|
55364
55433
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
55365
55434
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
55366
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
55435
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAPIApplicationScopes] WHERE [ApplicationID]='${mjapiapplication_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: API Application Scopes', userPayload, EntityPermissionType.Read, 'AND');
|
|
55367
55436
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
55368
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: API
|
|
55437
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: API Application Scopes', rows, this.GetUserFromPayload(userPayload));
|
|
55369
55438
|
return result;
|
|
55370
55439
|
}
|
|
55371
55440
|
async MJ_APIKeyApplications_ApplicationIDArray(mjapiapplication_, { dataSources, userPayload, providers }, pubSub) {
|
|
@@ -55428,23 +55497,23 @@ __decorate([
|
|
|
55428
55497
|
__metadata("design:returntype", Promise)
|
|
55429
55498
|
], MJAPIApplicationResolver.prototype, "MJAPIApplication", null);
|
|
55430
55499
|
__decorate([
|
|
55431
|
-
FieldResolver(() => [
|
|
55500
|
+
FieldResolver(() => [MJAPIKeyUsageLog_]),
|
|
55432
55501
|
__param(0, Root()),
|
|
55433
55502
|
__param(1, Ctx()),
|
|
55434
55503
|
__param(2, PubSub()),
|
|
55435
55504
|
__metadata("design:type", Function),
|
|
55436
55505
|
__metadata("design:paramtypes", [MJAPIApplication_, Object, PubSubEngine]),
|
|
55437
55506
|
__metadata("design:returntype", Promise)
|
|
55438
|
-
], MJAPIApplicationResolver.prototype, "
|
|
55507
|
+
], MJAPIApplicationResolver.prototype, "MJ_APIKeyUsageLogs_ApplicationIDArray", null);
|
|
55439
55508
|
__decorate([
|
|
55440
|
-
FieldResolver(() => [
|
|
55509
|
+
FieldResolver(() => [MJAPIApplicationScope_]),
|
|
55441
55510
|
__param(0, Root()),
|
|
55442
55511
|
__param(1, Ctx()),
|
|
55443
55512
|
__param(2, PubSub()),
|
|
55444
55513
|
__metadata("design:type", Function),
|
|
55445
55514
|
__metadata("design:paramtypes", [MJAPIApplication_, Object, PubSubEngine]),
|
|
55446
55515
|
__metadata("design:returntype", Promise)
|
|
55447
|
-
], MJAPIApplicationResolver.prototype, "
|
|
55516
|
+
], MJAPIApplicationResolver.prototype, "MJ_APIApplicationScopes_ApplicationIDArray", null);
|
|
55448
55517
|
__decorate([
|
|
55449
55518
|
FieldResolver(() => [MJAPIKeyApplication_]),
|
|
55450
55519
|
__param(0, Root()),
|
|
@@ -56861,6 +56930,7 @@ let MJAPIScope_ = class MJAPIScope_ {
|
|
|
56861
56930
|
FullPath;
|
|
56862
56931
|
ResourceType;
|
|
56863
56932
|
IsActive;
|
|
56933
|
+
UIConfig;
|
|
56864
56934
|
Parent;
|
|
56865
56935
|
RootParentID;
|
|
56866
56936
|
MJ_APIKeyScopes_ScopeIDArray;
|
|
@@ -56916,6 +56986,10 @@ __decorate([
|
|
|
56916
56986
|
Field(() => Boolean, { description: `Whether this scope is currently active. Inactive scopes are ignored during authorization.` }),
|
|
56917
56987
|
__metadata("design:type", Boolean)
|
|
56918
56988
|
], MJAPIScope_.prototype, "IsActive", void 0);
|
|
56989
|
+
__decorate([
|
|
56990
|
+
Field({ nullable: true, description: `JSON configuration for UI presentation. Schema: { "icon": "fa-solid fa-xxx", "color": "#hexcolor" }. Icon should be a Font Awesome class. Color should be a hex color code.` }),
|
|
56991
|
+
__metadata("design:type", String)
|
|
56992
|
+
], MJAPIScope_.prototype, "UIConfig", void 0);
|
|
56919
56993
|
__decorate([
|
|
56920
56994
|
Field({ nullable: true }),
|
|
56921
56995
|
MaxLength(200),
|
|
@@ -56951,6 +57025,7 @@ let CreateMJAPIScopeInput = class CreateMJAPIScopeInput {
|
|
|
56951
57025
|
FullPath;
|
|
56952
57026
|
ResourceType;
|
|
56953
57027
|
IsActive;
|
|
57028
|
+
UIConfig;
|
|
56954
57029
|
};
|
|
56955
57030
|
__decorate([
|
|
56956
57031
|
Field({ nullable: true }),
|
|
@@ -56984,6 +57059,10 @@ __decorate([
|
|
|
56984
57059
|
Field(() => Boolean, { nullable: true }),
|
|
56985
57060
|
__metadata("design:type", Boolean)
|
|
56986
57061
|
], CreateMJAPIScopeInput.prototype, "IsActive", void 0);
|
|
57062
|
+
__decorate([
|
|
57063
|
+
Field({ nullable: true }),
|
|
57064
|
+
__metadata("design:type", String)
|
|
57065
|
+
], CreateMJAPIScopeInput.prototype, "UIConfig", void 0);
|
|
56987
57066
|
CreateMJAPIScopeInput = __decorate([
|
|
56988
57067
|
InputType()
|
|
56989
57068
|
], CreateMJAPIScopeInput);
|
|
@@ -56997,6 +57076,7 @@ let UpdateMJAPIScopeInput = class UpdateMJAPIScopeInput {
|
|
|
56997
57076
|
FullPath;
|
|
56998
57077
|
ResourceType;
|
|
56999
57078
|
IsActive;
|
|
57079
|
+
UIConfig;
|
|
57000
57080
|
OldValues___;
|
|
57001
57081
|
};
|
|
57002
57082
|
__decorate([
|
|
@@ -57031,6 +57111,10 @@ __decorate([
|
|
|
57031
57111
|
Field(() => Boolean, { nullable: true }),
|
|
57032
57112
|
__metadata("design:type", Boolean)
|
|
57033
57113
|
], UpdateMJAPIScopeInput.prototype, "IsActive", void 0);
|
|
57114
|
+
__decorate([
|
|
57115
|
+
Field({ nullable: true }),
|
|
57116
|
+
__metadata("design:type", String)
|
|
57117
|
+
], UpdateMJAPIScopeInput.prototype, "UIConfig", void 0);
|
|
57034
57118
|
__decorate([
|
|
57035
57119
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
57036
57120
|
__metadata("design:type", Array)
|
|
@@ -64483,6 +64567,7 @@ let MJCredentialType_ = class MJCredentialType_ {
|
|
|
64483
64567
|
_mj__CreatedAt;
|
|
64484
64568
|
_mj__UpdatedAt;
|
|
64485
64569
|
MJ_Credentials_CredentialTypeIDArray;
|
|
64570
|
+
MJ_MCPServers_CredentialTypeIDArray;
|
|
64486
64571
|
MJ_AIVendors_CredentialTypeIDArray;
|
|
64487
64572
|
};
|
|
64488
64573
|
__decorate([
|
|
@@ -64532,6 +64617,10 @@ __decorate([
|
|
|
64532
64617
|
Field(() => [MJCredential_]),
|
|
64533
64618
|
__metadata("design:type", Array)
|
|
64534
64619
|
], MJCredentialType_.prototype, "MJ_Credentials_CredentialTypeIDArray", void 0);
|
|
64620
|
+
__decorate([
|
|
64621
|
+
Field(() => [MJMCPServer_]),
|
|
64622
|
+
__metadata("design:type", Array)
|
|
64623
|
+
], MJCredentialType_.prototype, "MJ_MCPServers_CredentialTypeIDArray", void 0);
|
|
64535
64624
|
__decorate([
|
|
64536
64625
|
Field(() => [MJAIVendor_]),
|
|
64537
64626
|
__metadata("design:type", Array)
|
|
@@ -64700,6 +64789,15 @@ let MJCredentialTypeResolver = class MJCredentialTypeResolver extends ResolverBa
|
|
|
64700
64789
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Credentials', rows, this.GetUserFromPayload(userPayload));
|
|
64701
64790
|
return result;
|
|
64702
64791
|
}
|
|
64792
|
+
async MJ_MCPServers_CredentialTypeIDArray(mjcredentialtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
64793
|
+
this.CheckUserReadPermissions('MJ: MCP Servers', userPayload);
|
|
64794
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
64795
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
64796
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServers] WHERE [CredentialTypeID]='${mjcredentialtype_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Servers', userPayload, EntityPermissionType.Read, 'AND');
|
|
64797
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
64798
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Servers', rows, this.GetUserFromPayload(userPayload));
|
|
64799
|
+
return result;
|
|
64800
|
+
}
|
|
64703
64801
|
async MJ_AIVendors_CredentialTypeIDArray(mjcredentialtype_, { dataSources, userPayload, providers }, pubSub) {
|
|
64704
64802
|
this.CheckUserReadPermissions('MJ: AI Vendors', userPayload);
|
|
64705
64803
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -64768,6 +64866,15 @@ __decorate([
|
|
|
64768
64866
|
__metadata("design:paramtypes", [MJCredentialType_, Object, PubSubEngine]),
|
|
64769
64867
|
__metadata("design:returntype", Promise)
|
|
64770
64868
|
], MJCredentialTypeResolver.prototype, "MJ_Credentials_CredentialTypeIDArray", null);
|
|
64869
|
+
__decorate([
|
|
64870
|
+
FieldResolver(() => [MJMCPServer_]),
|
|
64871
|
+
__param(0, Root()),
|
|
64872
|
+
__param(1, Ctx()),
|
|
64873
|
+
__param(2, PubSub()),
|
|
64874
|
+
__metadata("design:type", Function),
|
|
64875
|
+
__metadata("design:paramtypes", [MJCredentialType_, Object, PubSubEngine]),
|
|
64876
|
+
__metadata("design:returntype", Promise)
|
|
64877
|
+
], MJCredentialTypeResolver.prototype, "MJ_MCPServers_CredentialTypeIDArray", null);
|
|
64771
64878
|
__decorate([
|
|
64772
64879
|
FieldResolver(() => [MJAIVendor_]),
|
|
64773
64880
|
__param(0, Root()),
|
|
@@ -64827,6 +64934,7 @@ let MJCredential_ = class MJCredential_ {
|
|
|
64827
64934
|
CredentialType;
|
|
64828
64935
|
Category;
|
|
64829
64936
|
MJ_FileStorageAccounts_CredentialIDArray;
|
|
64937
|
+
MJ_MCPServerConnections_CredentialIDArray;
|
|
64830
64938
|
MJ_AICredentialBindings_CredentialIDArray;
|
|
64831
64939
|
};
|
|
64832
64940
|
__decorate([
|
|
@@ -64909,6 +65017,10 @@ __decorate([
|
|
|
64909
65017
|
Field(() => [MJFileStorageAccount_]),
|
|
64910
65018
|
__metadata("design:type", Array)
|
|
64911
65019
|
], MJCredential_.prototype, "MJ_FileStorageAccounts_CredentialIDArray", void 0);
|
|
65020
|
+
__decorate([
|
|
65021
|
+
Field(() => [MJMCPServerConnection_]),
|
|
65022
|
+
__metadata("design:type", Array)
|
|
65023
|
+
], MJCredential_.prototype, "MJ_MCPServerConnections_CredentialIDArray", void 0);
|
|
64912
65024
|
__decorate([
|
|
64913
65025
|
Field(() => [MJAICredentialBinding_]),
|
|
64914
65026
|
__metadata("design:type", Array)
|
|
@@ -65127,6 +65239,15 @@ let MJCredentialResolver = class MJCredentialResolver extends ResolverBase {
|
|
|
65127
65239
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: File Storage Accounts', rows, this.GetUserFromPayload(userPayload));
|
|
65128
65240
|
return result;
|
|
65129
65241
|
}
|
|
65242
|
+
async MJ_MCPServerConnections_CredentialIDArray(mjcredential_, { dataSources, userPayload, providers }, pubSub) {
|
|
65243
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connections', userPayload);
|
|
65244
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
65245
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
65246
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnections] WHERE [CredentialID]='${mjcredential_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
65247
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
65248
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connections', rows, this.GetUserFromPayload(userPayload));
|
|
65249
|
+
return result;
|
|
65250
|
+
}
|
|
65130
65251
|
async MJ_AICredentialBindings_CredentialIDArray(mjcredential_, { dataSources, userPayload, providers }, pubSub) {
|
|
65131
65252
|
this.CheckUserReadPermissions('MJ: AI Credential Bindings', userPayload);
|
|
65132
65253
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -65195,6 +65316,15 @@ __decorate([
|
|
|
65195
65316
|
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
65196
65317
|
__metadata("design:returntype", Promise)
|
|
65197
65318
|
], MJCredentialResolver.prototype, "MJ_FileStorageAccounts_CredentialIDArray", null);
|
|
65319
|
+
__decorate([
|
|
65320
|
+
FieldResolver(() => [MJMCPServerConnection_]),
|
|
65321
|
+
__param(0, Root()),
|
|
65322
|
+
__param(1, Ctx()),
|
|
65323
|
+
__param(2, PubSub()),
|
|
65324
|
+
__metadata("design:type", Function),
|
|
65325
|
+
__metadata("design:paramtypes", [MJCredential_, Object, PubSubEngine]),
|
|
65326
|
+
__metadata("design:returntype", Promise)
|
|
65327
|
+
], MJCredentialResolver.prototype, "MJ_MCPServerConnections_CredentialIDArray", null);
|
|
65198
65328
|
__decorate([
|
|
65199
65329
|
FieldResolver(() => [MJAICredentialBinding_]),
|
|
65200
65330
|
__param(0, Root()),
|
|
@@ -69394,201 +69524,169 @@ MJListShareResolver = __decorate([
|
|
|
69394
69524
|
Resolver(MJListShare_)
|
|
69395
69525
|
], MJListShareResolver);
|
|
69396
69526
|
export { MJListShareResolver };
|
|
69397
|
-
let
|
|
69527
|
+
let MJMCPServerConnectionPermission_ = class MJMCPServerConnectionPermission_ {
|
|
69398
69528
|
ID;
|
|
69399
|
-
|
|
69400
|
-
|
|
69401
|
-
|
|
69402
|
-
|
|
69403
|
-
|
|
69404
|
-
|
|
69405
|
-
IsArchived;
|
|
69529
|
+
MCPServerConnectionID;
|
|
69530
|
+
UserID;
|
|
69531
|
+
RoleID;
|
|
69532
|
+
CanExecute;
|
|
69533
|
+
CanModify;
|
|
69534
|
+
CanViewCredentials;
|
|
69406
69535
|
_mj__CreatedAt;
|
|
69407
69536
|
_mj__UpdatedAt;
|
|
69408
|
-
|
|
69409
|
-
|
|
69410
|
-
|
|
69411
|
-
MJ_Projects_ParentIDArray;
|
|
69412
|
-
Conversations_ProjectIDArray;
|
|
69413
|
-
MJ_Tasks_ProjectIDArray;
|
|
69537
|
+
MCPServerConnection;
|
|
69538
|
+
User;
|
|
69539
|
+
Role;
|
|
69414
69540
|
};
|
|
69415
69541
|
__decorate([
|
|
69416
69542
|
Field(),
|
|
69417
69543
|
MaxLength(16),
|
|
69418
69544
|
__metadata("design:type", String)
|
|
69419
|
-
],
|
|
69545
|
+
], MJMCPServerConnectionPermission_.prototype, "ID", void 0);
|
|
69420
69546
|
__decorate([
|
|
69421
69547
|
Field(),
|
|
69422
69548
|
MaxLength(16),
|
|
69423
69549
|
__metadata("design:type", String)
|
|
69424
|
-
],
|
|
69550
|
+
], MJMCPServerConnectionPermission_.prototype, "MCPServerConnectionID", void 0);
|
|
69425
69551
|
__decorate([
|
|
69426
|
-
Field({ nullable: true }),
|
|
69552
|
+
Field({ nullable: true, description: `FK to User (mutually exclusive with RoleID)` }),
|
|
69427
69553
|
MaxLength(16),
|
|
69428
69554
|
__metadata("design:type", String)
|
|
69429
|
-
],
|
|
69430
|
-
__decorate([
|
|
69431
|
-
Field({ description: `Display name for the project` }),
|
|
69432
|
-
MaxLength(510),
|
|
69433
|
-
__metadata("design:type", String)
|
|
69434
|
-
], MJProject_.prototype, "Name", void 0);
|
|
69555
|
+
], MJMCPServerConnectionPermission_.prototype, "UserID", void 0);
|
|
69435
69556
|
__decorate([
|
|
69436
|
-
Field({ nullable: true, description: `
|
|
69557
|
+
Field({ nullable: true, description: `FK to Role (mutually exclusive with UserID)` }),
|
|
69558
|
+
MaxLength(16),
|
|
69437
69559
|
__metadata("design:type", String)
|
|
69438
|
-
],
|
|
69560
|
+
], MJMCPServerConnectionPermission_.prototype, "RoleID", void 0);
|
|
69439
69561
|
__decorate([
|
|
69440
|
-
Field(
|
|
69441
|
-
|
|
69442
|
-
|
|
69443
|
-
], MJProject_.prototype, "Color", void 0);
|
|
69562
|
+
Field(() => Boolean, { description: `Can invoke tools via this connection` }),
|
|
69563
|
+
__metadata("design:type", Boolean)
|
|
69564
|
+
], MJMCPServerConnectionPermission_.prototype, "CanExecute", void 0);
|
|
69444
69565
|
__decorate([
|
|
69445
|
-
Field(
|
|
69446
|
-
|
|
69447
|
-
|
|
69448
|
-
], MJProject_.prototype, "Icon", void 0);
|
|
69566
|
+
Field(() => Boolean, { description: `Can modify connection settings` }),
|
|
69567
|
+
__metadata("design:type", Boolean)
|
|
69568
|
+
], MJMCPServerConnectionPermission_.prototype, "CanModify", void 0);
|
|
69449
69569
|
__decorate([
|
|
69450
|
-
Field(() => Boolean, { description: `
|
|
69570
|
+
Field(() => Boolean, { description: `Can see credential info (but not decrypt)` }),
|
|
69451
69571
|
__metadata("design:type", Boolean)
|
|
69452
|
-
],
|
|
69572
|
+
], MJMCPServerConnectionPermission_.prototype, "CanViewCredentials", void 0);
|
|
69453
69573
|
__decorate([
|
|
69454
69574
|
Field(),
|
|
69455
69575
|
MaxLength(10),
|
|
69456
69576
|
__metadata("design:type", Date)
|
|
69457
|
-
],
|
|
69577
|
+
], MJMCPServerConnectionPermission_.prototype, "_mj__CreatedAt", void 0);
|
|
69458
69578
|
__decorate([
|
|
69459
69579
|
Field(),
|
|
69460
69580
|
MaxLength(10),
|
|
69461
69581
|
__metadata("design:type", Date)
|
|
69462
|
-
],
|
|
69582
|
+
], MJMCPServerConnectionPermission_.prototype, "_mj__UpdatedAt", void 0);
|
|
69463
69583
|
__decorate([
|
|
69464
69584
|
Field(),
|
|
69465
69585
|
MaxLength(510),
|
|
69466
69586
|
__metadata("design:type", String)
|
|
69467
|
-
],
|
|
69587
|
+
], MJMCPServerConnectionPermission_.prototype, "MCPServerConnection", void 0);
|
|
69468
69588
|
__decorate([
|
|
69469
69589
|
Field({ nullable: true }),
|
|
69470
|
-
MaxLength(
|
|
69590
|
+
MaxLength(200),
|
|
69471
69591
|
__metadata("design:type", String)
|
|
69472
|
-
],
|
|
69592
|
+
], MJMCPServerConnectionPermission_.prototype, "User", void 0);
|
|
69473
69593
|
__decorate([
|
|
69474
69594
|
Field({ nullable: true }),
|
|
69475
|
-
MaxLength(
|
|
69595
|
+
MaxLength(100),
|
|
69476
69596
|
__metadata("design:type", String)
|
|
69477
|
-
],
|
|
69478
|
-
__decorate([
|
|
69479
|
-
|
|
69480
|
-
|
|
69481
|
-
|
|
69482
|
-
|
|
69483
|
-
Field(() => [MJConversation_]),
|
|
69484
|
-
__metadata("design:type", Array)
|
|
69485
|
-
], MJProject_.prototype, "Conversations_ProjectIDArray", void 0);
|
|
69486
|
-
__decorate([
|
|
69487
|
-
Field(() => [MJTask_]),
|
|
69488
|
-
__metadata("design:type", Array)
|
|
69489
|
-
], MJProject_.prototype, "MJ_Tasks_ProjectIDArray", void 0);
|
|
69490
|
-
MJProject_ = __decorate([
|
|
69491
|
-
ObjectType({ description: `Container for grouping related conversations around a common topic, client, or initiative. Supports nesting for sub-projects.` })
|
|
69492
|
-
], MJProject_);
|
|
69493
|
-
export { MJProject_ };
|
|
69494
|
-
let CreateMJProjectInput = class CreateMJProjectInput {
|
|
69597
|
+
], MJMCPServerConnectionPermission_.prototype, "Role", void 0);
|
|
69598
|
+
MJMCPServerConnectionPermission_ = __decorate([
|
|
69599
|
+
ObjectType()
|
|
69600
|
+
], MJMCPServerConnectionPermission_);
|
|
69601
|
+
export { MJMCPServerConnectionPermission_ };
|
|
69602
|
+
let CreateMJMCPServerConnectionPermissionInput = class CreateMJMCPServerConnectionPermissionInput {
|
|
69495
69603
|
ID;
|
|
69496
|
-
|
|
69497
|
-
|
|
69498
|
-
|
|
69499
|
-
|
|
69500
|
-
|
|
69501
|
-
|
|
69502
|
-
IsArchived;
|
|
69604
|
+
MCPServerConnectionID;
|
|
69605
|
+
UserID;
|
|
69606
|
+
RoleID;
|
|
69607
|
+
CanExecute;
|
|
69608
|
+
CanModify;
|
|
69609
|
+
CanViewCredentials;
|
|
69503
69610
|
};
|
|
69504
69611
|
__decorate([
|
|
69505
69612
|
Field({ nullable: true }),
|
|
69506
69613
|
__metadata("design:type", String)
|
|
69507
|
-
],
|
|
69508
|
-
__decorate([
|
|
69509
|
-
Field({ nullable: true }),
|
|
69510
|
-
__metadata("design:type", String)
|
|
69511
|
-
], CreateMJProjectInput.prototype, "EnvironmentID", void 0);
|
|
69614
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "ID", void 0);
|
|
69512
69615
|
__decorate([
|
|
69513
69616
|
Field({ nullable: true }),
|
|
69514
69617
|
__metadata("design:type", String)
|
|
69515
|
-
],
|
|
69618
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "MCPServerConnectionID", void 0);
|
|
69516
69619
|
__decorate([
|
|
69517
69620
|
Field({ nullable: true }),
|
|
69518
69621
|
__metadata("design:type", String)
|
|
69519
|
-
],
|
|
69622
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "UserID", void 0);
|
|
69520
69623
|
__decorate([
|
|
69521
69624
|
Field({ nullable: true }),
|
|
69522
69625
|
__metadata("design:type", String)
|
|
69523
|
-
],
|
|
69626
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "RoleID", void 0);
|
|
69524
69627
|
__decorate([
|
|
69525
|
-
Field({ nullable: true }),
|
|
69526
|
-
__metadata("design:type",
|
|
69527
|
-
],
|
|
69628
|
+
Field(() => Boolean, { nullable: true }),
|
|
69629
|
+
__metadata("design:type", Boolean)
|
|
69630
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "CanExecute", void 0);
|
|
69528
69631
|
__decorate([
|
|
69529
|
-
Field({ nullable: true }),
|
|
69530
|
-
__metadata("design:type",
|
|
69531
|
-
],
|
|
69632
|
+
Field(() => Boolean, { nullable: true }),
|
|
69633
|
+
__metadata("design:type", Boolean)
|
|
69634
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "CanModify", void 0);
|
|
69532
69635
|
__decorate([
|
|
69533
69636
|
Field(() => Boolean, { nullable: true }),
|
|
69534
69637
|
__metadata("design:type", Boolean)
|
|
69535
|
-
],
|
|
69536
|
-
|
|
69638
|
+
], CreateMJMCPServerConnectionPermissionInput.prototype, "CanViewCredentials", void 0);
|
|
69639
|
+
CreateMJMCPServerConnectionPermissionInput = __decorate([
|
|
69537
69640
|
InputType()
|
|
69538
|
-
],
|
|
69539
|
-
export {
|
|
69540
|
-
let
|
|
69641
|
+
], CreateMJMCPServerConnectionPermissionInput);
|
|
69642
|
+
export { CreateMJMCPServerConnectionPermissionInput };
|
|
69643
|
+
let UpdateMJMCPServerConnectionPermissionInput = class UpdateMJMCPServerConnectionPermissionInput {
|
|
69541
69644
|
ID;
|
|
69542
|
-
|
|
69543
|
-
|
|
69544
|
-
|
|
69545
|
-
|
|
69546
|
-
|
|
69547
|
-
|
|
69548
|
-
IsArchived;
|
|
69645
|
+
MCPServerConnectionID;
|
|
69646
|
+
UserID;
|
|
69647
|
+
RoleID;
|
|
69648
|
+
CanExecute;
|
|
69649
|
+
CanModify;
|
|
69650
|
+
CanViewCredentials;
|
|
69549
69651
|
OldValues___;
|
|
69550
69652
|
};
|
|
69551
69653
|
__decorate([
|
|
69552
69654
|
Field(),
|
|
69553
69655
|
__metadata("design:type", String)
|
|
69554
|
-
],
|
|
69555
|
-
__decorate([
|
|
69556
|
-
Field({ nullable: true }),
|
|
69557
|
-
__metadata("design:type", String)
|
|
69558
|
-
], UpdateMJProjectInput.prototype, "EnvironmentID", void 0);
|
|
69656
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "ID", void 0);
|
|
69559
69657
|
__decorate([
|
|
69560
69658
|
Field({ nullable: true }),
|
|
69561
69659
|
__metadata("design:type", String)
|
|
69562
|
-
],
|
|
69660
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "MCPServerConnectionID", void 0);
|
|
69563
69661
|
__decorate([
|
|
69564
69662
|
Field({ nullable: true }),
|
|
69565
69663
|
__metadata("design:type", String)
|
|
69566
|
-
],
|
|
69664
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "UserID", void 0);
|
|
69567
69665
|
__decorate([
|
|
69568
69666
|
Field({ nullable: true }),
|
|
69569
69667
|
__metadata("design:type", String)
|
|
69570
|
-
],
|
|
69668
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "RoleID", void 0);
|
|
69571
69669
|
__decorate([
|
|
69572
|
-
Field({ nullable: true }),
|
|
69573
|
-
__metadata("design:type",
|
|
69574
|
-
],
|
|
69670
|
+
Field(() => Boolean, { nullable: true }),
|
|
69671
|
+
__metadata("design:type", Boolean)
|
|
69672
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "CanExecute", void 0);
|
|
69575
69673
|
__decorate([
|
|
69576
|
-
Field({ nullable: true }),
|
|
69577
|
-
__metadata("design:type",
|
|
69578
|
-
],
|
|
69674
|
+
Field(() => Boolean, { nullable: true }),
|
|
69675
|
+
__metadata("design:type", Boolean)
|
|
69676
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "CanModify", void 0);
|
|
69579
69677
|
__decorate([
|
|
69580
69678
|
Field(() => Boolean, { nullable: true }),
|
|
69581
69679
|
__metadata("design:type", Boolean)
|
|
69582
|
-
],
|
|
69680
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "CanViewCredentials", void 0);
|
|
69583
69681
|
__decorate([
|
|
69584
69682
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
69585
69683
|
__metadata("design:type", Array)
|
|
69586
|
-
],
|
|
69587
|
-
|
|
69684
|
+
], UpdateMJMCPServerConnectionPermissionInput.prototype, "OldValues___", void 0);
|
|
69685
|
+
UpdateMJMCPServerConnectionPermissionInput = __decorate([
|
|
69588
69686
|
InputType()
|
|
69589
|
-
],
|
|
69590
|
-
export {
|
|
69591
|
-
let
|
|
69687
|
+
], UpdateMJMCPServerConnectionPermissionInput);
|
|
69688
|
+
export { UpdateMJMCPServerConnectionPermissionInput };
|
|
69689
|
+
let RunMJMCPServerConnectionPermissionViewResult = class RunMJMCPServerConnectionPermissionViewResult {
|
|
69592
69690
|
Results;
|
|
69593
69691
|
UserViewRunID;
|
|
69594
69692
|
RowCount;
|
|
@@ -69598,184 +69696,130 @@ let RunMJProjectViewResult = class RunMJProjectViewResult {
|
|
|
69598
69696
|
Success;
|
|
69599
69697
|
};
|
|
69600
69698
|
__decorate([
|
|
69601
|
-
Field(() => [
|
|
69699
|
+
Field(() => [MJMCPServerConnectionPermission_]),
|
|
69602
69700
|
__metadata("design:type", Array)
|
|
69603
|
-
],
|
|
69701
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "Results", void 0);
|
|
69604
69702
|
__decorate([
|
|
69605
69703
|
Field(() => String, { nullable: true }),
|
|
69606
69704
|
__metadata("design:type", String)
|
|
69607
|
-
],
|
|
69705
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "UserViewRunID", void 0);
|
|
69608
69706
|
__decorate([
|
|
69609
69707
|
Field(() => Int, { nullable: true }),
|
|
69610
69708
|
__metadata("design:type", Number)
|
|
69611
|
-
],
|
|
69709
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "RowCount", void 0);
|
|
69612
69710
|
__decorate([
|
|
69613
69711
|
Field(() => Int, { nullable: true }),
|
|
69614
69712
|
__metadata("design:type", Number)
|
|
69615
|
-
],
|
|
69713
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "TotalRowCount", void 0);
|
|
69616
69714
|
__decorate([
|
|
69617
69715
|
Field(() => Int, { nullable: true }),
|
|
69618
69716
|
__metadata("design:type", Number)
|
|
69619
|
-
],
|
|
69717
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "ExecutionTime", void 0);
|
|
69620
69718
|
__decorate([
|
|
69621
69719
|
Field({ nullable: true }),
|
|
69622
69720
|
__metadata("design:type", String)
|
|
69623
|
-
],
|
|
69721
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "ErrorMessage", void 0);
|
|
69624
69722
|
__decorate([
|
|
69625
69723
|
Field(() => Boolean, { nullable: false }),
|
|
69626
69724
|
__metadata("design:type", Boolean)
|
|
69627
|
-
],
|
|
69628
|
-
|
|
69725
|
+
], RunMJMCPServerConnectionPermissionViewResult.prototype, "Success", void 0);
|
|
69726
|
+
RunMJMCPServerConnectionPermissionViewResult = __decorate([
|
|
69629
69727
|
ObjectType()
|
|
69630
|
-
],
|
|
69631
|
-
export {
|
|
69632
|
-
let
|
|
69633
|
-
async
|
|
69728
|
+
], RunMJMCPServerConnectionPermissionViewResult);
|
|
69729
|
+
export { RunMJMCPServerConnectionPermissionViewResult };
|
|
69730
|
+
let MJMCPServerConnectionPermissionResolver = class MJMCPServerConnectionPermissionResolver extends ResolverBase {
|
|
69731
|
+
async RunMJMCPServerConnectionPermissionViewByID(input, { providers, userPayload }, pubSub) {
|
|
69634
69732
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69635
69733
|
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
69636
69734
|
}
|
|
69637
|
-
async
|
|
69735
|
+
async RunMJMCPServerConnectionPermissionViewByName(input, { providers, userPayload }, pubSub) {
|
|
69638
69736
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69639
69737
|
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
69640
69738
|
}
|
|
69641
|
-
async
|
|
69739
|
+
async RunMJMCPServerConnectionPermissionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
69642
69740
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69643
|
-
input.EntityName = 'MJ:
|
|
69741
|
+
input.EntityName = 'MJ: MCP Server Connection Permissions';
|
|
69644
69742
|
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
69645
69743
|
}
|
|
69646
|
-
async
|
|
69647
|
-
this.CheckUserReadPermissions('MJ:
|
|
69648
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69649
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
69650
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
69651
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
69652
|
-
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
69653
|
-
return result;
|
|
69654
|
-
}
|
|
69655
|
-
async MJ_Projects_ParentIDArray(mjproject_, { dataSources, userPayload, providers }, pubSub) {
|
|
69656
|
-
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
69657
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69658
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
69659
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [ParentID]='${mjproject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
69660
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
69661
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Projects', rows, this.GetUserFromPayload(userPayload));
|
|
69662
|
-
return result;
|
|
69663
|
-
}
|
|
69664
|
-
async Conversations_ProjectIDArray(mjproject_, { dataSources, userPayload, providers }, pubSub) {
|
|
69665
|
-
this.CheckUserReadPermissions('Conversations', userPayload);
|
|
69666
|
-
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69667
|
-
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
69668
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversations] WHERE [ProjectID]='${mjproject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
69669
|
-
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
69670
|
-
const result = await this.ArrayMapFieldNamesToCodeNames('Conversations', rows, this.GetUserFromPayload(userPayload));
|
|
69671
|
-
return result;
|
|
69672
|
-
}
|
|
69673
|
-
async MJ_Tasks_ProjectIDArray(mjproject_, { dataSources, userPayload, providers }, pubSub) {
|
|
69674
|
-
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
69744
|
+
async MJMCPServerConnectionPermission(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
69745
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Permissions', userPayload);
|
|
69675
69746
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
69676
69747
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
69677
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
69748
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionPermissions] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
69678
69749
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
69679
|
-
const result = await this.
|
|
69750
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
69680
69751
|
return result;
|
|
69681
69752
|
}
|
|
69682
|
-
async
|
|
69753
|
+
async CreateMJMCPServerConnectionPermission(input, { providers, userPayload }, pubSub) {
|
|
69683
69754
|
const provider = GetReadWriteProvider(providers);
|
|
69684
|
-
return this.CreateRecord('MJ:
|
|
69755
|
+
return this.CreateRecord('MJ: MCP Server Connection Permissions', input, provider, userPayload, pubSub);
|
|
69685
69756
|
}
|
|
69686
|
-
async
|
|
69757
|
+
async UpdateMJMCPServerConnectionPermission(input, { providers, userPayload }, pubSub) {
|
|
69687
69758
|
const provider = GetReadWriteProvider(providers);
|
|
69688
|
-
return this.UpdateRecord('MJ:
|
|
69759
|
+
return this.UpdateRecord('MJ: MCP Server Connection Permissions', input, provider, userPayload, pubSub);
|
|
69689
69760
|
}
|
|
69690
|
-
async
|
|
69761
|
+
async DeleteMJMCPServerConnectionPermission(ID, options, { providers, userPayload }, pubSub) {
|
|
69691
69762
|
const provider = GetReadWriteProvider(providers);
|
|
69692
69763
|
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
69693
|
-
return this.DeleteRecord('MJ:
|
|
69764
|
+
return this.DeleteRecord('MJ: MCP Server Connection Permissions', key, options, provider, userPayload, pubSub);
|
|
69694
69765
|
}
|
|
69695
69766
|
};
|
|
69696
69767
|
__decorate([
|
|
69697
|
-
Query(() =>
|
|
69768
|
+
Query(() => RunMJMCPServerConnectionPermissionViewResult),
|
|
69698
69769
|
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
69699
69770
|
__param(1, Ctx()),
|
|
69700
69771
|
__param(2, PubSub()),
|
|
69701
69772
|
__metadata("design:type", Function),
|
|
69702
69773
|
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
69703
69774
|
__metadata("design:returntype", Promise)
|
|
69704
|
-
],
|
|
69775
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "RunMJMCPServerConnectionPermissionViewByID", null);
|
|
69705
69776
|
__decorate([
|
|
69706
|
-
Query(() =>
|
|
69777
|
+
Query(() => RunMJMCPServerConnectionPermissionViewResult),
|
|
69707
69778
|
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
69708
69779
|
__param(1, Ctx()),
|
|
69709
69780
|
__param(2, PubSub()),
|
|
69710
69781
|
__metadata("design:type", Function),
|
|
69711
69782
|
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
69712
69783
|
__metadata("design:returntype", Promise)
|
|
69713
|
-
],
|
|
69784
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "RunMJMCPServerConnectionPermissionViewByName", null);
|
|
69714
69785
|
__decorate([
|
|
69715
|
-
Query(() =>
|
|
69786
|
+
Query(() => RunMJMCPServerConnectionPermissionViewResult),
|
|
69716
69787
|
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
69717
69788
|
__param(1, Ctx()),
|
|
69718
69789
|
__param(2, PubSub()),
|
|
69719
69790
|
__metadata("design:type", Function),
|
|
69720
69791
|
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
69721
69792
|
__metadata("design:returntype", Promise)
|
|
69722
|
-
],
|
|
69793
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "RunMJMCPServerConnectionPermissionDynamicView", null);
|
|
69723
69794
|
__decorate([
|
|
69724
|
-
Query(() =>
|
|
69795
|
+
Query(() => MJMCPServerConnectionPermission_, { nullable: true }),
|
|
69725
69796
|
__param(0, Arg('ID', () => String)),
|
|
69726
69797
|
__param(1, Ctx()),
|
|
69727
69798
|
__param(2, PubSub()),
|
|
69728
69799
|
__metadata("design:type", Function),
|
|
69729
69800
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
69730
69801
|
__metadata("design:returntype", Promise)
|
|
69731
|
-
],
|
|
69732
|
-
__decorate([
|
|
69733
|
-
FieldResolver(() => [MJProject_]),
|
|
69734
|
-
__param(0, Root()),
|
|
69735
|
-
__param(1, Ctx()),
|
|
69736
|
-
__param(2, PubSub()),
|
|
69737
|
-
__metadata("design:type", Function),
|
|
69738
|
-
__metadata("design:paramtypes", [MJProject_, Object, PubSubEngine]),
|
|
69739
|
-
__metadata("design:returntype", Promise)
|
|
69740
|
-
], MJProjectResolver.prototype, "MJ_Projects_ParentIDArray", null);
|
|
69741
|
-
__decorate([
|
|
69742
|
-
FieldResolver(() => [MJConversation_]),
|
|
69743
|
-
__param(0, Root()),
|
|
69744
|
-
__param(1, Ctx()),
|
|
69745
|
-
__param(2, PubSub()),
|
|
69746
|
-
__metadata("design:type", Function),
|
|
69747
|
-
__metadata("design:paramtypes", [MJProject_, Object, PubSubEngine]),
|
|
69748
|
-
__metadata("design:returntype", Promise)
|
|
69749
|
-
], MJProjectResolver.prototype, "Conversations_ProjectIDArray", null);
|
|
69750
|
-
__decorate([
|
|
69751
|
-
FieldResolver(() => [MJTask_]),
|
|
69752
|
-
__param(0, Root()),
|
|
69753
|
-
__param(1, Ctx()),
|
|
69754
|
-
__param(2, PubSub()),
|
|
69755
|
-
__metadata("design:type", Function),
|
|
69756
|
-
__metadata("design:paramtypes", [MJProject_, Object, PubSubEngine]),
|
|
69757
|
-
__metadata("design:returntype", Promise)
|
|
69758
|
-
], MJProjectResolver.prototype, "MJ_Tasks_ProjectIDArray", null);
|
|
69802
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "MJMCPServerConnectionPermission", null);
|
|
69759
69803
|
__decorate([
|
|
69760
|
-
Mutation(() =>
|
|
69761
|
-
__param(0, Arg('input', () =>
|
|
69804
|
+
Mutation(() => MJMCPServerConnectionPermission_),
|
|
69805
|
+
__param(0, Arg('input', () => CreateMJMCPServerConnectionPermissionInput)),
|
|
69762
69806
|
__param(1, Ctx()),
|
|
69763
69807
|
__param(2, PubSub()),
|
|
69764
69808
|
__metadata("design:type", Function),
|
|
69765
|
-
__metadata("design:paramtypes", [
|
|
69809
|
+
__metadata("design:paramtypes", [CreateMJMCPServerConnectionPermissionInput, Object, PubSubEngine]),
|
|
69766
69810
|
__metadata("design:returntype", Promise)
|
|
69767
|
-
],
|
|
69811
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "CreateMJMCPServerConnectionPermission", null);
|
|
69768
69812
|
__decorate([
|
|
69769
|
-
Mutation(() =>
|
|
69770
|
-
__param(0, Arg('input', () =>
|
|
69813
|
+
Mutation(() => MJMCPServerConnectionPermission_),
|
|
69814
|
+
__param(0, Arg('input', () => UpdateMJMCPServerConnectionPermissionInput)),
|
|
69771
69815
|
__param(1, Ctx()),
|
|
69772
69816
|
__param(2, PubSub()),
|
|
69773
69817
|
__metadata("design:type", Function),
|
|
69774
|
-
__metadata("design:paramtypes", [
|
|
69818
|
+
__metadata("design:paramtypes", [UpdateMJMCPServerConnectionPermissionInput, Object, PubSubEngine]),
|
|
69775
69819
|
__metadata("design:returntype", Promise)
|
|
69776
|
-
],
|
|
69820
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "UpdateMJMCPServerConnectionPermission", null);
|
|
69777
69821
|
__decorate([
|
|
69778
|
-
Mutation(() =>
|
|
69822
|
+
Mutation(() => MJMCPServerConnectionPermission_),
|
|
69779
69823
|
__param(0, Arg('ID', () => String)),
|
|
69780
69824
|
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
69781
69825
|
__param(2, Ctx()),
|
|
@@ -69783,210 +69827,152 @@ __decorate([
|
|
|
69783
69827
|
__metadata("design:type", Function),
|
|
69784
69828
|
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
69785
69829
|
__metadata("design:returntype", Promise)
|
|
69786
|
-
],
|
|
69787
|
-
|
|
69788
|
-
Resolver(
|
|
69789
|
-
],
|
|
69790
|
-
export {
|
|
69791
|
-
let
|
|
69830
|
+
], MJMCPServerConnectionPermissionResolver.prototype, "DeleteMJMCPServerConnectionPermission", null);
|
|
69831
|
+
MJMCPServerConnectionPermissionResolver = __decorate([
|
|
69832
|
+
Resolver(MJMCPServerConnectionPermission_)
|
|
69833
|
+
], MJMCPServerConnectionPermissionResolver);
|
|
69834
|
+
export { MJMCPServerConnectionPermissionResolver };
|
|
69835
|
+
let MJMCPServerConnectionTool_ = class MJMCPServerConnectionTool_ {
|
|
69792
69836
|
ID;
|
|
69793
|
-
|
|
69794
|
-
|
|
69795
|
-
|
|
69796
|
-
|
|
69797
|
-
|
|
69798
|
-
MaxViews;
|
|
69799
|
-
CurrentViews;
|
|
69800
|
-
UserID;
|
|
69801
|
-
IsActive;
|
|
69837
|
+
MCPServerConnectionID;
|
|
69838
|
+
MCPServerToolID;
|
|
69839
|
+
IsEnabled;
|
|
69840
|
+
DefaultInputValues;
|
|
69841
|
+
MaxCallsPerMinute;
|
|
69802
69842
|
_mj__CreatedAt;
|
|
69803
69843
|
_mj__UpdatedAt;
|
|
69804
|
-
|
|
69844
|
+
MCPServerConnection;
|
|
69845
|
+
MCPServerTool;
|
|
69805
69846
|
};
|
|
69806
69847
|
__decorate([
|
|
69807
69848
|
Field(),
|
|
69808
69849
|
MaxLength(16),
|
|
69809
69850
|
__metadata("design:type", String)
|
|
69810
|
-
],
|
|
69851
|
+
], MJMCPServerConnectionTool_.prototype, "ID", void 0);
|
|
69811
69852
|
__decorate([
|
|
69812
|
-
Field(
|
|
69813
|
-
MaxLength(
|
|
69853
|
+
Field(),
|
|
69854
|
+
MaxLength(16),
|
|
69814
69855
|
__metadata("design:type", String)
|
|
69815
|
-
],
|
|
69856
|
+
], MJMCPServerConnectionTool_.prototype, "MCPServerConnectionID", void 0);
|
|
69816
69857
|
__decorate([
|
|
69817
69858
|
Field(),
|
|
69818
69859
|
MaxLength(16),
|
|
69819
69860
|
__metadata("design:type", String)
|
|
69820
|
-
],
|
|
69861
|
+
], MJMCPServerConnectionTool_.prototype, "MCPServerToolID", void 0);
|
|
69821
69862
|
__decorate([
|
|
69822
|
-
Field({ description: `
|
|
69823
|
-
|
|
69824
|
-
|
|
69825
|
-
], MJPublicLink_.prototype, "Token", void 0);
|
|
69863
|
+
Field(() => Boolean, { description: `Whether this tool is enabled for the connection` }),
|
|
69864
|
+
__metadata("design:type", Boolean)
|
|
69865
|
+
], MJMCPServerConnectionTool_.prototype, "IsEnabled", void 0);
|
|
69826
69866
|
__decorate([
|
|
69827
|
-
Field({ nullable: true, description: `
|
|
69828
|
-
MaxLength(510),
|
|
69867
|
+
Field({ nullable: true, description: `JSON default values for tool inputs` }),
|
|
69829
69868
|
__metadata("design:type", String)
|
|
69830
|
-
],
|
|
69831
|
-
__decorate([
|
|
69832
|
-
Field({ nullable: true, description: `Optional expiration date/time for this public link` }),
|
|
69833
|
-
MaxLength(10),
|
|
69834
|
-
__metadata("design:type", Date)
|
|
69835
|
-
], MJPublicLink_.prototype, "ExpiresAt", void 0);
|
|
69836
|
-
__decorate([
|
|
69837
|
-
Field(() => Int, { nullable: true, description: `Maximum number of times this link can be viewed` }),
|
|
69838
|
-
__metadata("design:type", Number)
|
|
69839
|
-
], MJPublicLink_.prototype, "MaxViews", void 0);
|
|
69869
|
+
], MJMCPServerConnectionTool_.prototype, "DefaultInputValues", void 0);
|
|
69840
69870
|
__decorate([
|
|
69841
|
-
Field(() => Int, { description: `
|
|
69871
|
+
Field(() => Int, { nullable: true, description: `Override rate limit for this specific tool` }),
|
|
69842
69872
|
__metadata("design:type", Number)
|
|
69843
|
-
],
|
|
69844
|
-
__decorate([
|
|
69845
|
-
Field(),
|
|
69846
|
-
MaxLength(16),
|
|
69847
|
-
__metadata("design:type", String)
|
|
69848
|
-
], MJPublicLink_.prototype, "UserID", void 0);
|
|
69849
|
-
__decorate([
|
|
69850
|
-
Field(() => Boolean, { description: `Indicates if this link is currently active and accessible` }),
|
|
69851
|
-
__metadata("design:type", Boolean)
|
|
69852
|
-
], MJPublicLink_.prototype, "IsActive", void 0);
|
|
69873
|
+
], MJMCPServerConnectionTool_.prototype, "MaxCallsPerMinute", void 0);
|
|
69853
69874
|
__decorate([
|
|
69854
69875
|
Field(),
|
|
69855
69876
|
MaxLength(10),
|
|
69856
69877
|
__metadata("design:type", Date)
|
|
69857
|
-
],
|
|
69878
|
+
], MJMCPServerConnectionTool_.prototype, "_mj__CreatedAt", void 0);
|
|
69858
69879
|
__decorate([
|
|
69859
69880
|
Field(),
|
|
69860
69881
|
MaxLength(10),
|
|
69861
69882
|
__metadata("design:type", Date)
|
|
69862
|
-
],
|
|
69883
|
+
], MJMCPServerConnectionTool_.prototype, "_mj__UpdatedAt", void 0);
|
|
69863
69884
|
__decorate([
|
|
69864
69885
|
Field(),
|
|
69865
|
-
MaxLength(
|
|
69886
|
+
MaxLength(510),
|
|
69866
69887
|
__metadata("design:type", String)
|
|
69867
|
-
],
|
|
69868
|
-
MJPublicLink_ = __decorate([
|
|
69869
|
-
ObjectType({ description: `Shareable links for external access to artifacts and other resources. Supports password protection and expiration.` })
|
|
69870
|
-
], MJPublicLink_);
|
|
69871
|
-
export { MJPublicLink_ };
|
|
69872
|
-
let CreateMJPublicLinkInput = class CreateMJPublicLinkInput {
|
|
69873
|
-
ID;
|
|
69874
|
-
ResourceType;
|
|
69875
|
-
ResourceID;
|
|
69876
|
-
Token;
|
|
69877
|
-
PasswordHash;
|
|
69878
|
-
ExpiresAt;
|
|
69879
|
-
MaxViews;
|
|
69880
|
-
CurrentViews;
|
|
69881
|
-
UserID;
|
|
69882
|
-
IsActive;
|
|
69883
|
-
};
|
|
69888
|
+
], MJMCPServerConnectionTool_.prototype, "MCPServerConnection", void 0);
|
|
69884
69889
|
__decorate([
|
|
69885
69890
|
Field({ nullable: true }),
|
|
69891
|
+
MaxLength(510),
|
|
69886
69892
|
__metadata("design:type", String)
|
|
69887
|
-
],
|
|
69893
|
+
], MJMCPServerConnectionTool_.prototype, "MCPServerTool", void 0);
|
|
69894
|
+
MJMCPServerConnectionTool_ = __decorate([
|
|
69895
|
+
ObjectType()
|
|
69896
|
+
], MJMCPServerConnectionTool_);
|
|
69897
|
+
export { MJMCPServerConnectionTool_ };
|
|
69898
|
+
let CreateMJMCPServerConnectionToolInput = class CreateMJMCPServerConnectionToolInput {
|
|
69899
|
+
ID;
|
|
69900
|
+
MCPServerConnectionID;
|
|
69901
|
+
MCPServerToolID;
|
|
69902
|
+
IsEnabled;
|
|
69903
|
+
DefaultInputValues;
|
|
69904
|
+
MaxCallsPerMinute;
|
|
69905
|
+
};
|
|
69888
69906
|
__decorate([
|
|
69889
69907
|
Field({ nullable: true }),
|
|
69890
69908
|
__metadata("design:type", String)
|
|
69891
|
-
],
|
|
69909
|
+
], CreateMJMCPServerConnectionToolInput.prototype, "ID", void 0);
|
|
69892
69910
|
__decorate([
|
|
69893
69911
|
Field({ nullable: true }),
|
|
69894
69912
|
__metadata("design:type", String)
|
|
69895
|
-
],
|
|
69913
|
+
], CreateMJMCPServerConnectionToolInput.prototype, "MCPServerConnectionID", void 0);
|
|
69896
69914
|
__decorate([
|
|
69897
69915
|
Field({ nullable: true }),
|
|
69898
69916
|
__metadata("design:type", String)
|
|
69899
|
-
],
|
|
69917
|
+
], CreateMJMCPServerConnectionToolInput.prototype, "MCPServerToolID", void 0);
|
|
69900
69918
|
__decorate([
|
|
69901
|
-
Field({ nullable: true }),
|
|
69902
|
-
__metadata("design:type",
|
|
69903
|
-
],
|
|
69919
|
+
Field(() => Boolean, { nullable: true }),
|
|
69920
|
+
__metadata("design:type", Boolean)
|
|
69921
|
+
], CreateMJMCPServerConnectionToolInput.prototype, "IsEnabled", void 0);
|
|
69904
69922
|
__decorate([
|
|
69905
69923
|
Field({ nullable: true }),
|
|
69906
|
-
__metadata("design:type",
|
|
69907
|
-
],
|
|
69908
|
-
__decorate([
|
|
69909
|
-
Field(() => Int, { nullable: true }),
|
|
69910
|
-
__metadata("design:type", Number)
|
|
69911
|
-
], CreateMJPublicLinkInput.prototype, "MaxViews", void 0);
|
|
69924
|
+
__metadata("design:type", String)
|
|
69925
|
+
], CreateMJMCPServerConnectionToolInput.prototype, "DefaultInputValues", void 0);
|
|
69912
69926
|
__decorate([
|
|
69913
69927
|
Field(() => Int, { nullable: true }),
|
|
69914
69928
|
__metadata("design:type", Number)
|
|
69915
|
-
],
|
|
69916
|
-
__decorate([
|
|
69917
|
-
Field({ nullable: true }),
|
|
69918
|
-
__metadata("design:type", String)
|
|
69919
|
-
], CreateMJPublicLinkInput.prototype, "UserID", void 0);
|
|
69920
|
-
__decorate([
|
|
69921
|
-
Field(() => Boolean, { nullable: true }),
|
|
69922
|
-
__metadata("design:type", Boolean)
|
|
69923
|
-
], CreateMJPublicLinkInput.prototype, "IsActive", void 0);
|
|
69924
|
-
CreateMJPublicLinkInput = __decorate([
|
|
69929
|
+
], CreateMJMCPServerConnectionToolInput.prototype, "MaxCallsPerMinute", void 0);
|
|
69930
|
+
CreateMJMCPServerConnectionToolInput = __decorate([
|
|
69925
69931
|
InputType()
|
|
69926
|
-
],
|
|
69927
|
-
export {
|
|
69928
|
-
let
|
|
69932
|
+
], CreateMJMCPServerConnectionToolInput);
|
|
69933
|
+
export { CreateMJMCPServerConnectionToolInput };
|
|
69934
|
+
let UpdateMJMCPServerConnectionToolInput = class UpdateMJMCPServerConnectionToolInput {
|
|
69929
69935
|
ID;
|
|
69930
|
-
|
|
69931
|
-
|
|
69932
|
-
|
|
69933
|
-
|
|
69934
|
-
|
|
69935
|
-
MaxViews;
|
|
69936
|
-
CurrentViews;
|
|
69937
|
-
UserID;
|
|
69938
|
-
IsActive;
|
|
69936
|
+
MCPServerConnectionID;
|
|
69937
|
+
MCPServerToolID;
|
|
69938
|
+
IsEnabled;
|
|
69939
|
+
DefaultInputValues;
|
|
69940
|
+
MaxCallsPerMinute;
|
|
69939
69941
|
OldValues___;
|
|
69940
69942
|
};
|
|
69941
69943
|
__decorate([
|
|
69942
69944
|
Field(),
|
|
69943
69945
|
__metadata("design:type", String)
|
|
69944
|
-
],
|
|
69946
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "ID", void 0);
|
|
69945
69947
|
__decorate([
|
|
69946
69948
|
Field({ nullable: true }),
|
|
69947
69949
|
__metadata("design:type", String)
|
|
69948
|
-
],
|
|
69950
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "MCPServerConnectionID", void 0);
|
|
69949
69951
|
__decorate([
|
|
69950
69952
|
Field({ nullable: true }),
|
|
69951
69953
|
__metadata("design:type", String)
|
|
69952
|
-
],
|
|
69954
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "MCPServerToolID", void 0);
|
|
69953
69955
|
__decorate([
|
|
69954
|
-
Field({ nullable: true }),
|
|
69955
|
-
__metadata("design:type",
|
|
69956
|
-
],
|
|
69956
|
+
Field(() => Boolean, { nullable: true }),
|
|
69957
|
+
__metadata("design:type", Boolean)
|
|
69958
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "IsEnabled", void 0);
|
|
69957
69959
|
__decorate([
|
|
69958
69960
|
Field({ nullable: true }),
|
|
69959
69961
|
__metadata("design:type", String)
|
|
69960
|
-
],
|
|
69961
|
-
__decorate([
|
|
69962
|
-
Field({ nullable: true }),
|
|
69963
|
-
__metadata("design:type", Date)
|
|
69964
|
-
], UpdateMJPublicLinkInput.prototype, "ExpiresAt", void 0);
|
|
69965
|
-
__decorate([
|
|
69966
|
-
Field(() => Int, { nullable: true }),
|
|
69967
|
-
__metadata("design:type", Number)
|
|
69968
|
-
], UpdateMJPublicLinkInput.prototype, "MaxViews", void 0);
|
|
69962
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "DefaultInputValues", void 0);
|
|
69969
69963
|
__decorate([
|
|
69970
69964
|
Field(() => Int, { nullable: true }),
|
|
69971
69965
|
__metadata("design:type", Number)
|
|
69972
|
-
],
|
|
69973
|
-
__decorate([
|
|
69974
|
-
Field({ nullable: true }),
|
|
69975
|
-
__metadata("design:type", String)
|
|
69976
|
-
], UpdateMJPublicLinkInput.prototype, "UserID", void 0);
|
|
69977
|
-
__decorate([
|
|
69978
|
-
Field(() => Boolean, { nullable: true }),
|
|
69979
|
-
__metadata("design:type", Boolean)
|
|
69980
|
-
], UpdateMJPublicLinkInput.prototype, "IsActive", void 0);
|
|
69966
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "MaxCallsPerMinute", void 0);
|
|
69981
69967
|
__decorate([
|
|
69982
69968
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
69983
69969
|
__metadata("design:type", Array)
|
|
69984
|
-
],
|
|
69985
|
-
|
|
69970
|
+
], UpdateMJMCPServerConnectionToolInput.prototype, "OldValues___", void 0);
|
|
69971
|
+
UpdateMJMCPServerConnectionToolInput = __decorate([
|
|
69986
69972
|
InputType()
|
|
69987
|
-
],
|
|
69988
|
-
export {
|
|
69989
|
-
let
|
|
69973
|
+
], UpdateMJMCPServerConnectionToolInput);
|
|
69974
|
+
export { UpdateMJMCPServerConnectionToolInput };
|
|
69975
|
+
let RunMJMCPServerConnectionToolViewResult = class RunMJMCPServerConnectionToolViewResult {
|
|
69990
69976
|
Results;
|
|
69991
69977
|
UserViewRunID;
|
|
69992
69978
|
RowCount;
|
|
@@ -69996,61 +69982,2679 @@ let RunMJPublicLinkViewResult = class RunMJPublicLinkViewResult {
|
|
|
69996
69982
|
Success;
|
|
69997
69983
|
};
|
|
69998
69984
|
__decorate([
|
|
69999
|
-
Field(() => [
|
|
69985
|
+
Field(() => [MJMCPServerConnectionTool_]),
|
|
70000
69986
|
__metadata("design:type", Array)
|
|
70001
|
-
],
|
|
69987
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "Results", void 0);
|
|
70002
69988
|
__decorate([
|
|
70003
69989
|
Field(() => String, { nullable: true }),
|
|
70004
69990
|
__metadata("design:type", String)
|
|
70005
|
-
],
|
|
69991
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "UserViewRunID", void 0);
|
|
70006
69992
|
__decorate([
|
|
70007
69993
|
Field(() => Int, { nullable: true }),
|
|
70008
69994
|
__metadata("design:type", Number)
|
|
70009
|
-
],
|
|
69995
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "RowCount", void 0);
|
|
70010
69996
|
__decorate([
|
|
70011
69997
|
Field(() => Int, { nullable: true }),
|
|
70012
69998
|
__metadata("design:type", Number)
|
|
70013
|
-
],
|
|
69999
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "TotalRowCount", void 0);
|
|
70014
70000
|
__decorate([
|
|
70015
70001
|
Field(() => Int, { nullable: true }),
|
|
70016
70002
|
__metadata("design:type", Number)
|
|
70017
|
-
],
|
|
70003
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "ExecutionTime", void 0);
|
|
70018
70004
|
__decorate([
|
|
70019
70005
|
Field({ nullable: true }),
|
|
70020
70006
|
__metadata("design:type", String)
|
|
70021
|
-
],
|
|
70007
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "ErrorMessage", void 0);
|
|
70022
70008
|
__decorate([
|
|
70023
70009
|
Field(() => Boolean, { nullable: false }),
|
|
70024
70010
|
__metadata("design:type", Boolean)
|
|
70025
|
-
],
|
|
70026
|
-
|
|
70011
|
+
], RunMJMCPServerConnectionToolViewResult.prototype, "Success", void 0);
|
|
70012
|
+
RunMJMCPServerConnectionToolViewResult = __decorate([
|
|
70027
70013
|
ObjectType()
|
|
70028
|
-
],
|
|
70029
|
-
export {
|
|
70030
|
-
let
|
|
70031
|
-
async
|
|
70014
|
+
], RunMJMCPServerConnectionToolViewResult);
|
|
70015
|
+
export { RunMJMCPServerConnectionToolViewResult };
|
|
70016
|
+
let MJMCPServerConnectionToolResolver = class MJMCPServerConnectionToolResolver extends ResolverBase {
|
|
70017
|
+
async RunMJMCPServerConnectionToolViewByID(input, { providers, userPayload }, pubSub) {
|
|
70032
70018
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70033
70019
|
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
70034
70020
|
}
|
|
70035
|
-
async
|
|
70021
|
+
async RunMJMCPServerConnectionToolViewByName(input, { providers, userPayload }, pubSub) {
|
|
70036
70022
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70037
70023
|
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
70038
70024
|
}
|
|
70039
|
-
async
|
|
70025
|
+
async RunMJMCPServerConnectionToolDynamicView(input, { providers, userPayload }, pubSub) {
|
|
70040
70026
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70041
|
-
input.EntityName = 'MJ:
|
|
70027
|
+
input.EntityName = 'MJ: MCP Server Connection Tools';
|
|
70042
70028
|
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
70043
70029
|
}
|
|
70044
|
-
async
|
|
70045
|
-
this.CheckUserReadPermissions('MJ:
|
|
70030
|
+
async MJMCPServerConnectionTool(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
70031
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Tools', userPayload);
|
|
70046
70032
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70047
70033
|
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70048
|
-
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[
|
|
70034
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionTools] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
70049
70035
|
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70050
|
-
const result = await this.MapFieldNamesToCodeNames('MJ:
|
|
70036
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
70051
70037
|
return result;
|
|
70052
70038
|
}
|
|
70053
|
-
async
|
|
70039
|
+
async CreateMJMCPServerConnectionTool(input, { providers, userPayload }, pubSub) {
|
|
70040
|
+
const provider = GetReadWriteProvider(providers);
|
|
70041
|
+
return this.CreateRecord('MJ: MCP Server Connection Tools', input, provider, userPayload, pubSub);
|
|
70042
|
+
}
|
|
70043
|
+
async UpdateMJMCPServerConnectionTool(input, { providers, userPayload }, pubSub) {
|
|
70044
|
+
const provider = GetReadWriteProvider(providers);
|
|
70045
|
+
return this.UpdateRecord('MJ: MCP Server Connection Tools', input, provider, userPayload, pubSub);
|
|
70046
|
+
}
|
|
70047
|
+
async DeleteMJMCPServerConnectionTool(ID, options, { providers, userPayload }, pubSub) {
|
|
70048
|
+
const provider = GetReadWriteProvider(providers);
|
|
70049
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
70050
|
+
return this.DeleteRecord('MJ: MCP Server Connection Tools', key, options, provider, userPayload, pubSub);
|
|
70051
|
+
}
|
|
70052
|
+
};
|
|
70053
|
+
__decorate([
|
|
70054
|
+
Query(() => RunMJMCPServerConnectionToolViewResult),
|
|
70055
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
70056
|
+
__param(1, Ctx()),
|
|
70057
|
+
__param(2, PubSub()),
|
|
70058
|
+
__metadata("design:type", Function),
|
|
70059
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
70060
|
+
__metadata("design:returntype", Promise)
|
|
70061
|
+
], MJMCPServerConnectionToolResolver.prototype, "RunMJMCPServerConnectionToolViewByID", null);
|
|
70062
|
+
__decorate([
|
|
70063
|
+
Query(() => RunMJMCPServerConnectionToolViewResult),
|
|
70064
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
70065
|
+
__param(1, Ctx()),
|
|
70066
|
+
__param(2, PubSub()),
|
|
70067
|
+
__metadata("design:type", Function),
|
|
70068
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
70069
|
+
__metadata("design:returntype", Promise)
|
|
70070
|
+
], MJMCPServerConnectionToolResolver.prototype, "RunMJMCPServerConnectionToolViewByName", null);
|
|
70071
|
+
__decorate([
|
|
70072
|
+
Query(() => RunMJMCPServerConnectionToolViewResult),
|
|
70073
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
70074
|
+
__param(1, Ctx()),
|
|
70075
|
+
__param(2, PubSub()),
|
|
70076
|
+
__metadata("design:type", Function),
|
|
70077
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
70078
|
+
__metadata("design:returntype", Promise)
|
|
70079
|
+
], MJMCPServerConnectionToolResolver.prototype, "RunMJMCPServerConnectionToolDynamicView", null);
|
|
70080
|
+
__decorate([
|
|
70081
|
+
Query(() => MJMCPServerConnectionTool_, { nullable: true }),
|
|
70082
|
+
__param(0, Arg('ID', () => String)),
|
|
70083
|
+
__param(1, Ctx()),
|
|
70084
|
+
__param(2, PubSub()),
|
|
70085
|
+
__metadata("design:type", Function),
|
|
70086
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
70087
|
+
__metadata("design:returntype", Promise)
|
|
70088
|
+
], MJMCPServerConnectionToolResolver.prototype, "MJMCPServerConnectionTool", null);
|
|
70089
|
+
__decorate([
|
|
70090
|
+
Mutation(() => MJMCPServerConnectionTool_),
|
|
70091
|
+
__param(0, Arg('input', () => CreateMJMCPServerConnectionToolInput)),
|
|
70092
|
+
__param(1, Ctx()),
|
|
70093
|
+
__param(2, PubSub()),
|
|
70094
|
+
__metadata("design:type", Function),
|
|
70095
|
+
__metadata("design:paramtypes", [CreateMJMCPServerConnectionToolInput, Object, PubSubEngine]),
|
|
70096
|
+
__metadata("design:returntype", Promise)
|
|
70097
|
+
], MJMCPServerConnectionToolResolver.prototype, "CreateMJMCPServerConnectionTool", null);
|
|
70098
|
+
__decorate([
|
|
70099
|
+
Mutation(() => MJMCPServerConnectionTool_),
|
|
70100
|
+
__param(0, Arg('input', () => UpdateMJMCPServerConnectionToolInput)),
|
|
70101
|
+
__param(1, Ctx()),
|
|
70102
|
+
__param(2, PubSub()),
|
|
70103
|
+
__metadata("design:type", Function),
|
|
70104
|
+
__metadata("design:paramtypes", [UpdateMJMCPServerConnectionToolInput, Object, PubSubEngine]),
|
|
70105
|
+
__metadata("design:returntype", Promise)
|
|
70106
|
+
], MJMCPServerConnectionToolResolver.prototype, "UpdateMJMCPServerConnectionTool", null);
|
|
70107
|
+
__decorate([
|
|
70108
|
+
Mutation(() => MJMCPServerConnectionTool_),
|
|
70109
|
+
__param(0, Arg('ID', () => String)),
|
|
70110
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
70111
|
+
__param(2, Ctx()),
|
|
70112
|
+
__param(3, PubSub()),
|
|
70113
|
+
__metadata("design:type", Function),
|
|
70114
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
70115
|
+
__metadata("design:returntype", Promise)
|
|
70116
|
+
], MJMCPServerConnectionToolResolver.prototype, "DeleteMJMCPServerConnectionTool", null);
|
|
70117
|
+
MJMCPServerConnectionToolResolver = __decorate([
|
|
70118
|
+
Resolver(MJMCPServerConnectionTool_)
|
|
70119
|
+
], MJMCPServerConnectionToolResolver);
|
|
70120
|
+
export { MJMCPServerConnectionToolResolver };
|
|
70121
|
+
let MJMCPServerConnection_ = class MJMCPServerConnection_ {
|
|
70122
|
+
ID;
|
|
70123
|
+
MCPServerID;
|
|
70124
|
+
Name;
|
|
70125
|
+
Description;
|
|
70126
|
+
CredentialID;
|
|
70127
|
+
CustomHeaderName;
|
|
70128
|
+
CompanyID;
|
|
70129
|
+
Status;
|
|
70130
|
+
AutoSyncTools;
|
|
70131
|
+
AutoGenerateActions;
|
|
70132
|
+
LogToolCalls;
|
|
70133
|
+
LogInputParameters;
|
|
70134
|
+
LogOutputContent;
|
|
70135
|
+
MaxOutputLogSize;
|
|
70136
|
+
LastConnectedAt;
|
|
70137
|
+
LastErrorMessage;
|
|
70138
|
+
EnvironmentVars;
|
|
70139
|
+
_mj__CreatedAt;
|
|
70140
|
+
_mj__UpdatedAt;
|
|
70141
|
+
MCPServer;
|
|
70142
|
+
Credential;
|
|
70143
|
+
Company;
|
|
70144
|
+
MJ_MCPServerConnectionTools_MCPServerConnectionIDArray;
|
|
70145
|
+
MJ_MCPToolExecutionLogs_MCPServerConnectionIDArray;
|
|
70146
|
+
MJ_MCPServerConnectionPermissions_MCPServerConnectionIDArray;
|
|
70147
|
+
};
|
|
70148
|
+
__decorate([
|
|
70149
|
+
Field(),
|
|
70150
|
+
MaxLength(16),
|
|
70151
|
+
__metadata("design:type", String)
|
|
70152
|
+
], MJMCPServerConnection_.prototype, "ID", void 0);
|
|
70153
|
+
__decorate([
|
|
70154
|
+
Field(),
|
|
70155
|
+
MaxLength(16),
|
|
70156
|
+
__metadata("design:type", String)
|
|
70157
|
+
], MJMCPServerConnection_.prototype, "MCPServerID", void 0);
|
|
70158
|
+
__decorate([
|
|
70159
|
+
Field({ description: `Connection name (unique per company)` }),
|
|
70160
|
+
MaxLength(510),
|
|
70161
|
+
__metadata("design:type", String)
|
|
70162
|
+
], MJMCPServerConnection_.prototype, "Name", void 0);
|
|
70163
|
+
__decorate([
|
|
70164
|
+
Field({ nullable: true }),
|
|
70165
|
+
__metadata("design:type", String)
|
|
70166
|
+
], MJMCPServerConnection_.prototype, "Description", void 0);
|
|
70167
|
+
__decorate([
|
|
70168
|
+
Field({ nullable: true, description: `FK to Credential entity (uses existing credential types)` }),
|
|
70169
|
+
MaxLength(16),
|
|
70170
|
+
__metadata("design:type", String)
|
|
70171
|
+
], MJMCPServerConnection_.prototype, "CredentialID", void 0);
|
|
70172
|
+
__decorate([
|
|
70173
|
+
Field({ nullable: true, description: `Custom header name for API key auth (default: X-API-Key)` }),
|
|
70174
|
+
MaxLength(200),
|
|
70175
|
+
__metadata("design:type", String)
|
|
70176
|
+
], MJMCPServerConnection_.prototype, "CustomHeaderName", void 0);
|
|
70177
|
+
__decorate([
|
|
70178
|
+
Field({ nullable: true, description: `Optional company association. NULL means the connection is global and available to all companies. Non-NULL restricts the connection to that specific company.` }),
|
|
70179
|
+
MaxLength(16),
|
|
70180
|
+
__metadata("design:type", String)
|
|
70181
|
+
], MJMCPServerConnection_.prototype, "CompanyID", void 0);
|
|
70182
|
+
__decorate([
|
|
70183
|
+
Field(),
|
|
70184
|
+
MaxLength(100),
|
|
70185
|
+
__metadata("design:type", String)
|
|
70186
|
+
], MJMCPServerConnection_.prototype, "Status", void 0);
|
|
70187
|
+
__decorate([
|
|
70188
|
+
Field(() => Boolean, { description: `Auto-sync tools when connecting` }),
|
|
70189
|
+
__metadata("design:type", Boolean)
|
|
70190
|
+
], MJMCPServerConnection_.prototype, "AutoSyncTools", void 0);
|
|
70191
|
+
__decorate([
|
|
70192
|
+
Field(() => Boolean, { description: `Auto-generate MJ Actions for discovered tools` }),
|
|
70193
|
+
__metadata("design:type", Boolean)
|
|
70194
|
+
], MJMCPServerConnection_.prototype, "AutoGenerateActions", void 0);
|
|
70195
|
+
__decorate([
|
|
70196
|
+
Field(() => Boolean, { description: `Log all tool calls to execution log` }),
|
|
70197
|
+
__metadata("design:type", Boolean)
|
|
70198
|
+
], MJMCPServerConnection_.prototype, "LogToolCalls", void 0);
|
|
70199
|
+
__decorate([
|
|
70200
|
+
Field(() => Boolean, { description: `Include input parameters in logs` }),
|
|
70201
|
+
__metadata("design:type", Boolean)
|
|
70202
|
+
], MJMCPServerConnection_.prototype, "LogInputParameters", void 0);
|
|
70203
|
+
__decorate([
|
|
70204
|
+
Field(() => Boolean, { description: `Include output content in logs` }),
|
|
70205
|
+
__metadata("design:type", Boolean)
|
|
70206
|
+
], MJMCPServerConnection_.prototype, "LogOutputContent", void 0);
|
|
70207
|
+
__decorate([
|
|
70208
|
+
Field(() => Int, { nullable: true, description: `Max output size to log in bytes (default: 100KB)` }),
|
|
70209
|
+
__metadata("design:type", Number)
|
|
70210
|
+
], MJMCPServerConnection_.prototype, "MaxOutputLogSize", void 0);
|
|
70211
|
+
__decorate([
|
|
70212
|
+
Field({ nullable: true }),
|
|
70213
|
+
MaxLength(10),
|
|
70214
|
+
__metadata("design:type", Date)
|
|
70215
|
+
], MJMCPServerConnection_.prototype, "LastConnectedAt", void 0);
|
|
70216
|
+
__decorate([
|
|
70217
|
+
Field({ nullable: true }),
|
|
70218
|
+
__metadata("design:type", String)
|
|
70219
|
+
], MJMCPServerConnection_.prototype, "LastErrorMessage", void 0);
|
|
70220
|
+
__decorate([
|
|
70221
|
+
Field({ nullable: true, description: `JSON object of environment variables for Stdio transport` }),
|
|
70222
|
+
__metadata("design:type", String)
|
|
70223
|
+
], MJMCPServerConnection_.prototype, "EnvironmentVars", void 0);
|
|
70224
|
+
__decorate([
|
|
70225
|
+
Field(),
|
|
70226
|
+
MaxLength(10),
|
|
70227
|
+
__metadata("design:type", Date)
|
|
70228
|
+
], MJMCPServerConnection_.prototype, "_mj__CreatedAt", void 0);
|
|
70229
|
+
__decorate([
|
|
70230
|
+
Field(),
|
|
70231
|
+
MaxLength(10),
|
|
70232
|
+
__metadata("design:type", Date)
|
|
70233
|
+
], MJMCPServerConnection_.prototype, "_mj__UpdatedAt", void 0);
|
|
70234
|
+
__decorate([
|
|
70235
|
+
Field(),
|
|
70236
|
+
MaxLength(510),
|
|
70237
|
+
__metadata("design:type", String)
|
|
70238
|
+
], MJMCPServerConnection_.prototype, "MCPServer", void 0);
|
|
70239
|
+
__decorate([
|
|
70240
|
+
Field({ nullable: true }),
|
|
70241
|
+
MaxLength(400),
|
|
70242
|
+
__metadata("design:type", String)
|
|
70243
|
+
], MJMCPServerConnection_.prototype, "Credential", void 0);
|
|
70244
|
+
__decorate([
|
|
70245
|
+
Field({ nullable: true }),
|
|
70246
|
+
MaxLength(100),
|
|
70247
|
+
__metadata("design:type", String)
|
|
70248
|
+
], MJMCPServerConnection_.prototype, "Company", void 0);
|
|
70249
|
+
__decorate([
|
|
70250
|
+
Field(() => [MJMCPServerConnectionTool_]),
|
|
70251
|
+
__metadata("design:type", Array)
|
|
70252
|
+
], MJMCPServerConnection_.prototype, "MJ_MCPServerConnectionTools_MCPServerConnectionIDArray", void 0);
|
|
70253
|
+
__decorate([
|
|
70254
|
+
Field(() => [MJMCPToolExecutionLog_]),
|
|
70255
|
+
__metadata("design:type", Array)
|
|
70256
|
+
], MJMCPServerConnection_.prototype, "MJ_MCPToolExecutionLogs_MCPServerConnectionIDArray", void 0);
|
|
70257
|
+
__decorate([
|
|
70258
|
+
Field(() => [MJMCPServerConnectionPermission_]),
|
|
70259
|
+
__metadata("design:type", Array)
|
|
70260
|
+
], MJMCPServerConnection_.prototype, "MJ_MCPServerConnectionPermissions_MCPServerConnectionIDArray", void 0);
|
|
70261
|
+
MJMCPServerConnection_ = __decorate([
|
|
70262
|
+
ObjectType()
|
|
70263
|
+
], MJMCPServerConnection_);
|
|
70264
|
+
export { MJMCPServerConnection_ };
|
|
70265
|
+
let CreateMJMCPServerConnectionInput = class CreateMJMCPServerConnectionInput {
|
|
70266
|
+
ID;
|
|
70267
|
+
MCPServerID;
|
|
70268
|
+
Name;
|
|
70269
|
+
Description;
|
|
70270
|
+
CredentialID;
|
|
70271
|
+
CustomHeaderName;
|
|
70272
|
+
CompanyID;
|
|
70273
|
+
Status;
|
|
70274
|
+
AutoSyncTools;
|
|
70275
|
+
AutoGenerateActions;
|
|
70276
|
+
LogToolCalls;
|
|
70277
|
+
LogInputParameters;
|
|
70278
|
+
LogOutputContent;
|
|
70279
|
+
MaxOutputLogSize;
|
|
70280
|
+
LastConnectedAt;
|
|
70281
|
+
LastErrorMessage;
|
|
70282
|
+
EnvironmentVars;
|
|
70283
|
+
};
|
|
70284
|
+
__decorate([
|
|
70285
|
+
Field({ nullable: true }),
|
|
70286
|
+
__metadata("design:type", String)
|
|
70287
|
+
], CreateMJMCPServerConnectionInput.prototype, "ID", void 0);
|
|
70288
|
+
__decorate([
|
|
70289
|
+
Field({ nullable: true }),
|
|
70290
|
+
__metadata("design:type", String)
|
|
70291
|
+
], CreateMJMCPServerConnectionInput.prototype, "MCPServerID", void 0);
|
|
70292
|
+
__decorate([
|
|
70293
|
+
Field({ nullable: true }),
|
|
70294
|
+
__metadata("design:type", String)
|
|
70295
|
+
], CreateMJMCPServerConnectionInput.prototype, "Name", void 0);
|
|
70296
|
+
__decorate([
|
|
70297
|
+
Field({ nullable: true }),
|
|
70298
|
+
__metadata("design:type", String)
|
|
70299
|
+
], CreateMJMCPServerConnectionInput.prototype, "Description", void 0);
|
|
70300
|
+
__decorate([
|
|
70301
|
+
Field({ nullable: true }),
|
|
70302
|
+
__metadata("design:type", String)
|
|
70303
|
+
], CreateMJMCPServerConnectionInput.prototype, "CredentialID", void 0);
|
|
70304
|
+
__decorate([
|
|
70305
|
+
Field({ nullable: true }),
|
|
70306
|
+
__metadata("design:type", String)
|
|
70307
|
+
], CreateMJMCPServerConnectionInput.prototype, "CustomHeaderName", void 0);
|
|
70308
|
+
__decorate([
|
|
70309
|
+
Field({ nullable: true }),
|
|
70310
|
+
__metadata("design:type", String)
|
|
70311
|
+
], CreateMJMCPServerConnectionInput.prototype, "CompanyID", void 0);
|
|
70312
|
+
__decorate([
|
|
70313
|
+
Field({ nullable: true }),
|
|
70314
|
+
__metadata("design:type", String)
|
|
70315
|
+
], CreateMJMCPServerConnectionInput.prototype, "Status", void 0);
|
|
70316
|
+
__decorate([
|
|
70317
|
+
Field(() => Boolean, { nullable: true }),
|
|
70318
|
+
__metadata("design:type", Boolean)
|
|
70319
|
+
], CreateMJMCPServerConnectionInput.prototype, "AutoSyncTools", void 0);
|
|
70320
|
+
__decorate([
|
|
70321
|
+
Field(() => Boolean, { nullable: true }),
|
|
70322
|
+
__metadata("design:type", Boolean)
|
|
70323
|
+
], CreateMJMCPServerConnectionInput.prototype, "AutoGenerateActions", void 0);
|
|
70324
|
+
__decorate([
|
|
70325
|
+
Field(() => Boolean, { nullable: true }),
|
|
70326
|
+
__metadata("design:type", Boolean)
|
|
70327
|
+
], CreateMJMCPServerConnectionInput.prototype, "LogToolCalls", void 0);
|
|
70328
|
+
__decorate([
|
|
70329
|
+
Field(() => Boolean, { nullable: true }),
|
|
70330
|
+
__metadata("design:type", Boolean)
|
|
70331
|
+
], CreateMJMCPServerConnectionInput.prototype, "LogInputParameters", void 0);
|
|
70332
|
+
__decorate([
|
|
70333
|
+
Field(() => Boolean, { nullable: true }),
|
|
70334
|
+
__metadata("design:type", Boolean)
|
|
70335
|
+
], CreateMJMCPServerConnectionInput.prototype, "LogOutputContent", void 0);
|
|
70336
|
+
__decorate([
|
|
70337
|
+
Field(() => Int, { nullable: true }),
|
|
70338
|
+
__metadata("design:type", Number)
|
|
70339
|
+
], CreateMJMCPServerConnectionInput.prototype, "MaxOutputLogSize", void 0);
|
|
70340
|
+
__decorate([
|
|
70341
|
+
Field({ nullable: true }),
|
|
70342
|
+
__metadata("design:type", Date)
|
|
70343
|
+
], CreateMJMCPServerConnectionInput.prototype, "LastConnectedAt", void 0);
|
|
70344
|
+
__decorate([
|
|
70345
|
+
Field({ nullable: true }),
|
|
70346
|
+
__metadata("design:type", String)
|
|
70347
|
+
], CreateMJMCPServerConnectionInput.prototype, "LastErrorMessage", void 0);
|
|
70348
|
+
__decorate([
|
|
70349
|
+
Field({ nullable: true }),
|
|
70350
|
+
__metadata("design:type", String)
|
|
70351
|
+
], CreateMJMCPServerConnectionInput.prototype, "EnvironmentVars", void 0);
|
|
70352
|
+
CreateMJMCPServerConnectionInput = __decorate([
|
|
70353
|
+
InputType()
|
|
70354
|
+
], CreateMJMCPServerConnectionInput);
|
|
70355
|
+
export { CreateMJMCPServerConnectionInput };
|
|
70356
|
+
let UpdateMJMCPServerConnectionInput = class UpdateMJMCPServerConnectionInput {
|
|
70357
|
+
ID;
|
|
70358
|
+
MCPServerID;
|
|
70359
|
+
Name;
|
|
70360
|
+
Description;
|
|
70361
|
+
CredentialID;
|
|
70362
|
+
CustomHeaderName;
|
|
70363
|
+
CompanyID;
|
|
70364
|
+
Status;
|
|
70365
|
+
AutoSyncTools;
|
|
70366
|
+
AutoGenerateActions;
|
|
70367
|
+
LogToolCalls;
|
|
70368
|
+
LogInputParameters;
|
|
70369
|
+
LogOutputContent;
|
|
70370
|
+
MaxOutputLogSize;
|
|
70371
|
+
LastConnectedAt;
|
|
70372
|
+
LastErrorMessage;
|
|
70373
|
+
EnvironmentVars;
|
|
70374
|
+
OldValues___;
|
|
70375
|
+
};
|
|
70376
|
+
__decorate([
|
|
70377
|
+
Field(),
|
|
70378
|
+
__metadata("design:type", String)
|
|
70379
|
+
], UpdateMJMCPServerConnectionInput.prototype, "ID", void 0);
|
|
70380
|
+
__decorate([
|
|
70381
|
+
Field({ nullable: true }),
|
|
70382
|
+
__metadata("design:type", String)
|
|
70383
|
+
], UpdateMJMCPServerConnectionInput.prototype, "MCPServerID", void 0);
|
|
70384
|
+
__decorate([
|
|
70385
|
+
Field({ nullable: true }),
|
|
70386
|
+
__metadata("design:type", String)
|
|
70387
|
+
], UpdateMJMCPServerConnectionInput.prototype, "Name", void 0);
|
|
70388
|
+
__decorate([
|
|
70389
|
+
Field({ nullable: true }),
|
|
70390
|
+
__metadata("design:type", String)
|
|
70391
|
+
], UpdateMJMCPServerConnectionInput.prototype, "Description", void 0);
|
|
70392
|
+
__decorate([
|
|
70393
|
+
Field({ nullable: true }),
|
|
70394
|
+
__metadata("design:type", String)
|
|
70395
|
+
], UpdateMJMCPServerConnectionInput.prototype, "CredentialID", void 0);
|
|
70396
|
+
__decorate([
|
|
70397
|
+
Field({ nullable: true }),
|
|
70398
|
+
__metadata("design:type", String)
|
|
70399
|
+
], UpdateMJMCPServerConnectionInput.prototype, "CustomHeaderName", void 0);
|
|
70400
|
+
__decorate([
|
|
70401
|
+
Field({ nullable: true }),
|
|
70402
|
+
__metadata("design:type", String)
|
|
70403
|
+
], UpdateMJMCPServerConnectionInput.prototype, "CompanyID", void 0);
|
|
70404
|
+
__decorate([
|
|
70405
|
+
Field({ nullable: true }),
|
|
70406
|
+
__metadata("design:type", String)
|
|
70407
|
+
], UpdateMJMCPServerConnectionInput.prototype, "Status", void 0);
|
|
70408
|
+
__decorate([
|
|
70409
|
+
Field(() => Boolean, { nullable: true }),
|
|
70410
|
+
__metadata("design:type", Boolean)
|
|
70411
|
+
], UpdateMJMCPServerConnectionInput.prototype, "AutoSyncTools", void 0);
|
|
70412
|
+
__decorate([
|
|
70413
|
+
Field(() => Boolean, { nullable: true }),
|
|
70414
|
+
__metadata("design:type", Boolean)
|
|
70415
|
+
], UpdateMJMCPServerConnectionInput.prototype, "AutoGenerateActions", void 0);
|
|
70416
|
+
__decorate([
|
|
70417
|
+
Field(() => Boolean, { nullable: true }),
|
|
70418
|
+
__metadata("design:type", Boolean)
|
|
70419
|
+
], UpdateMJMCPServerConnectionInput.prototype, "LogToolCalls", void 0);
|
|
70420
|
+
__decorate([
|
|
70421
|
+
Field(() => Boolean, { nullable: true }),
|
|
70422
|
+
__metadata("design:type", Boolean)
|
|
70423
|
+
], UpdateMJMCPServerConnectionInput.prototype, "LogInputParameters", void 0);
|
|
70424
|
+
__decorate([
|
|
70425
|
+
Field(() => Boolean, { nullable: true }),
|
|
70426
|
+
__metadata("design:type", Boolean)
|
|
70427
|
+
], UpdateMJMCPServerConnectionInput.prototype, "LogOutputContent", void 0);
|
|
70428
|
+
__decorate([
|
|
70429
|
+
Field(() => Int, { nullable: true }),
|
|
70430
|
+
__metadata("design:type", Number)
|
|
70431
|
+
], UpdateMJMCPServerConnectionInput.prototype, "MaxOutputLogSize", void 0);
|
|
70432
|
+
__decorate([
|
|
70433
|
+
Field({ nullable: true }),
|
|
70434
|
+
__metadata("design:type", Date)
|
|
70435
|
+
], UpdateMJMCPServerConnectionInput.prototype, "LastConnectedAt", void 0);
|
|
70436
|
+
__decorate([
|
|
70437
|
+
Field({ nullable: true }),
|
|
70438
|
+
__metadata("design:type", String)
|
|
70439
|
+
], UpdateMJMCPServerConnectionInput.prototype, "LastErrorMessage", void 0);
|
|
70440
|
+
__decorate([
|
|
70441
|
+
Field({ nullable: true }),
|
|
70442
|
+
__metadata("design:type", String)
|
|
70443
|
+
], UpdateMJMCPServerConnectionInput.prototype, "EnvironmentVars", void 0);
|
|
70444
|
+
__decorate([
|
|
70445
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
70446
|
+
__metadata("design:type", Array)
|
|
70447
|
+
], UpdateMJMCPServerConnectionInput.prototype, "OldValues___", void 0);
|
|
70448
|
+
UpdateMJMCPServerConnectionInput = __decorate([
|
|
70449
|
+
InputType()
|
|
70450
|
+
], UpdateMJMCPServerConnectionInput);
|
|
70451
|
+
export { UpdateMJMCPServerConnectionInput };
|
|
70452
|
+
let RunMJMCPServerConnectionViewResult = class RunMJMCPServerConnectionViewResult {
|
|
70453
|
+
Results;
|
|
70454
|
+
UserViewRunID;
|
|
70455
|
+
RowCount;
|
|
70456
|
+
TotalRowCount;
|
|
70457
|
+
ExecutionTime;
|
|
70458
|
+
ErrorMessage;
|
|
70459
|
+
Success;
|
|
70460
|
+
};
|
|
70461
|
+
__decorate([
|
|
70462
|
+
Field(() => [MJMCPServerConnection_]),
|
|
70463
|
+
__metadata("design:type", Array)
|
|
70464
|
+
], RunMJMCPServerConnectionViewResult.prototype, "Results", void 0);
|
|
70465
|
+
__decorate([
|
|
70466
|
+
Field(() => String, { nullable: true }),
|
|
70467
|
+
__metadata("design:type", String)
|
|
70468
|
+
], RunMJMCPServerConnectionViewResult.prototype, "UserViewRunID", void 0);
|
|
70469
|
+
__decorate([
|
|
70470
|
+
Field(() => Int, { nullable: true }),
|
|
70471
|
+
__metadata("design:type", Number)
|
|
70472
|
+
], RunMJMCPServerConnectionViewResult.prototype, "RowCount", void 0);
|
|
70473
|
+
__decorate([
|
|
70474
|
+
Field(() => Int, { nullable: true }),
|
|
70475
|
+
__metadata("design:type", Number)
|
|
70476
|
+
], RunMJMCPServerConnectionViewResult.prototype, "TotalRowCount", void 0);
|
|
70477
|
+
__decorate([
|
|
70478
|
+
Field(() => Int, { nullable: true }),
|
|
70479
|
+
__metadata("design:type", Number)
|
|
70480
|
+
], RunMJMCPServerConnectionViewResult.prototype, "ExecutionTime", void 0);
|
|
70481
|
+
__decorate([
|
|
70482
|
+
Field({ nullable: true }),
|
|
70483
|
+
__metadata("design:type", String)
|
|
70484
|
+
], RunMJMCPServerConnectionViewResult.prototype, "ErrorMessage", void 0);
|
|
70485
|
+
__decorate([
|
|
70486
|
+
Field(() => Boolean, { nullable: false }),
|
|
70487
|
+
__metadata("design:type", Boolean)
|
|
70488
|
+
], RunMJMCPServerConnectionViewResult.prototype, "Success", void 0);
|
|
70489
|
+
RunMJMCPServerConnectionViewResult = __decorate([
|
|
70490
|
+
ObjectType()
|
|
70491
|
+
], RunMJMCPServerConnectionViewResult);
|
|
70492
|
+
export { RunMJMCPServerConnectionViewResult };
|
|
70493
|
+
let MJMCPServerConnectionResolver = class MJMCPServerConnectionResolver extends ResolverBase {
|
|
70494
|
+
async RunMJMCPServerConnectionViewByID(input, { providers, userPayload }, pubSub) {
|
|
70495
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70496
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
70497
|
+
}
|
|
70498
|
+
async RunMJMCPServerConnectionViewByName(input, { providers, userPayload }, pubSub) {
|
|
70499
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70500
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
70501
|
+
}
|
|
70502
|
+
async RunMJMCPServerConnectionDynamicView(input, { providers, userPayload }, pubSub) {
|
|
70503
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70504
|
+
input.EntityName = 'MJ: MCP Server Connections';
|
|
70505
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
70506
|
+
}
|
|
70507
|
+
async MJMCPServerConnection(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
70508
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connections', userPayload);
|
|
70509
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70510
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70511
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnections] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
70512
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70513
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Connections', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
70514
|
+
return result;
|
|
70515
|
+
}
|
|
70516
|
+
async MJ_MCPServerConnectionTools_MCPServerConnectionIDArray(mjmcpserverconnection_, { dataSources, userPayload, providers }, pubSub) {
|
|
70517
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Tools', userPayload);
|
|
70518
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70519
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70520
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionTools] WHERE [MCPServerConnectionID]='${mjmcpserverconnection_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
70521
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70522
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows, this.GetUserFromPayload(userPayload));
|
|
70523
|
+
return result;
|
|
70524
|
+
}
|
|
70525
|
+
async MJ_MCPToolExecutionLogs_MCPServerConnectionIDArray(mjmcpserverconnection_, { dataSources, userPayload, providers }, pubSub) {
|
|
70526
|
+
this.CheckUserReadPermissions('MJ: MCP Tool Execution Logs', userPayload);
|
|
70527
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70528
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70529
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPToolExecutionLogs] WHERE [MCPServerConnectionID]='${mjmcpserverconnection_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
70530
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70531
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows, this.GetUserFromPayload(userPayload));
|
|
70532
|
+
return result;
|
|
70533
|
+
}
|
|
70534
|
+
async MJ_MCPServerConnectionPermissions_MCPServerConnectionIDArray(mjmcpserverconnection_, { dataSources, userPayload, providers }, pubSub) {
|
|
70535
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Permissions', userPayload);
|
|
70536
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70537
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70538
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionPermissions] WHERE [MCPServerConnectionID]='${mjmcpserverconnection_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
70539
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70540
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
70541
|
+
return result;
|
|
70542
|
+
}
|
|
70543
|
+
async CreateMJMCPServerConnection(input, { providers, userPayload }, pubSub) {
|
|
70544
|
+
const provider = GetReadWriteProvider(providers);
|
|
70545
|
+
return this.CreateRecord('MJ: MCP Server Connections', input, provider, userPayload, pubSub);
|
|
70546
|
+
}
|
|
70547
|
+
async UpdateMJMCPServerConnection(input, { providers, userPayload }, pubSub) {
|
|
70548
|
+
const provider = GetReadWriteProvider(providers);
|
|
70549
|
+
return this.UpdateRecord('MJ: MCP Server Connections', input, provider, userPayload, pubSub);
|
|
70550
|
+
}
|
|
70551
|
+
async DeleteMJMCPServerConnection(ID, options, { providers, userPayload }, pubSub) {
|
|
70552
|
+
const provider = GetReadWriteProvider(providers);
|
|
70553
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
70554
|
+
return this.DeleteRecord('MJ: MCP Server Connections', key, options, provider, userPayload, pubSub);
|
|
70555
|
+
}
|
|
70556
|
+
};
|
|
70557
|
+
__decorate([
|
|
70558
|
+
Query(() => RunMJMCPServerConnectionViewResult),
|
|
70559
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
70560
|
+
__param(1, Ctx()),
|
|
70561
|
+
__param(2, PubSub()),
|
|
70562
|
+
__metadata("design:type", Function),
|
|
70563
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
70564
|
+
__metadata("design:returntype", Promise)
|
|
70565
|
+
], MJMCPServerConnectionResolver.prototype, "RunMJMCPServerConnectionViewByID", null);
|
|
70566
|
+
__decorate([
|
|
70567
|
+
Query(() => RunMJMCPServerConnectionViewResult),
|
|
70568
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
70569
|
+
__param(1, Ctx()),
|
|
70570
|
+
__param(2, PubSub()),
|
|
70571
|
+
__metadata("design:type", Function),
|
|
70572
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
70573
|
+
__metadata("design:returntype", Promise)
|
|
70574
|
+
], MJMCPServerConnectionResolver.prototype, "RunMJMCPServerConnectionViewByName", null);
|
|
70575
|
+
__decorate([
|
|
70576
|
+
Query(() => RunMJMCPServerConnectionViewResult),
|
|
70577
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
70578
|
+
__param(1, Ctx()),
|
|
70579
|
+
__param(2, PubSub()),
|
|
70580
|
+
__metadata("design:type", Function),
|
|
70581
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
70582
|
+
__metadata("design:returntype", Promise)
|
|
70583
|
+
], MJMCPServerConnectionResolver.prototype, "RunMJMCPServerConnectionDynamicView", null);
|
|
70584
|
+
__decorate([
|
|
70585
|
+
Query(() => MJMCPServerConnection_, { nullable: true }),
|
|
70586
|
+
__param(0, Arg('ID', () => String)),
|
|
70587
|
+
__param(1, Ctx()),
|
|
70588
|
+
__param(2, PubSub()),
|
|
70589
|
+
__metadata("design:type", Function),
|
|
70590
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
70591
|
+
__metadata("design:returntype", Promise)
|
|
70592
|
+
], MJMCPServerConnectionResolver.prototype, "MJMCPServerConnection", null);
|
|
70593
|
+
__decorate([
|
|
70594
|
+
FieldResolver(() => [MJMCPServerConnectionTool_]),
|
|
70595
|
+
__param(0, Root()),
|
|
70596
|
+
__param(1, Ctx()),
|
|
70597
|
+
__param(2, PubSub()),
|
|
70598
|
+
__metadata("design:type", Function),
|
|
70599
|
+
__metadata("design:paramtypes", [MJMCPServerConnection_, Object, PubSubEngine]),
|
|
70600
|
+
__metadata("design:returntype", Promise)
|
|
70601
|
+
], MJMCPServerConnectionResolver.prototype, "MJ_MCPServerConnectionTools_MCPServerConnectionIDArray", null);
|
|
70602
|
+
__decorate([
|
|
70603
|
+
FieldResolver(() => [MJMCPToolExecutionLog_]),
|
|
70604
|
+
__param(0, Root()),
|
|
70605
|
+
__param(1, Ctx()),
|
|
70606
|
+
__param(2, PubSub()),
|
|
70607
|
+
__metadata("design:type", Function),
|
|
70608
|
+
__metadata("design:paramtypes", [MJMCPServerConnection_, Object, PubSubEngine]),
|
|
70609
|
+
__metadata("design:returntype", Promise)
|
|
70610
|
+
], MJMCPServerConnectionResolver.prototype, "MJ_MCPToolExecutionLogs_MCPServerConnectionIDArray", null);
|
|
70611
|
+
__decorate([
|
|
70612
|
+
FieldResolver(() => [MJMCPServerConnectionPermission_]),
|
|
70613
|
+
__param(0, Root()),
|
|
70614
|
+
__param(1, Ctx()),
|
|
70615
|
+
__param(2, PubSub()),
|
|
70616
|
+
__metadata("design:type", Function),
|
|
70617
|
+
__metadata("design:paramtypes", [MJMCPServerConnection_, Object, PubSubEngine]),
|
|
70618
|
+
__metadata("design:returntype", Promise)
|
|
70619
|
+
], MJMCPServerConnectionResolver.prototype, "MJ_MCPServerConnectionPermissions_MCPServerConnectionIDArray", null);
|
|
70620
|
+
__decorate([
|
|
70621
|
+
Mutation(() => MJMCPServerConnection_),
|
|
70622
|
+
__param(0, Arg('input', () => CreateMJMCPServerConnectionInput)),
|
|
70623
|
+
__param(1, Ctx()),
|
|
70624
|
+
__param(2, PubSub()),
|
|
70625
|
+
__metadata("design:type", Function),
|
|
70626
|
+
__metadata("design:paramtypes", [CreateMJMCPServerConnectionInput, Object, PubSubEngine]),
|
|
70627
|
+
__metadata("design:returntype", Promise)
|
|
70628
|
+
], MJMCPServerConnectionResolver.prototype, "CreateMJMCPServerConnection", null);
|
|
70629
|
+
__decorate([
|
|
70630
|
+
Mutation(() => MJMCPServerConnection_),
|
|
70631
|
+
__param(0, Arg('input', () => UpdateMJMCPServerConnectionInput)),
|
|
70632
|
+
__param(1, Ctx()),
|
|
70633
|
+
__param(2, PubSub()),
|
|
70634
|
+
__metadata("design:type", Function),
|
|
70635
|
+
__metadata("design:paramtypes", [UpdateMJMCPServerConnectionInput, Object, PubSubEngine]),
|
|
70636
|
+
__metadata("design:returntype", Promise)
|
|
70637
|
+
], MJMCPServerConnectionResolver.prototype, "UpdateMJMCPServerConnection", null);
|
|
70638
|
+
__decorate([
|
|
70639
|
+
Mutation(() => MJMCPServerConnection_),
|
|
70640
|
+
__param(0, Arg('ID', () => String)),
|
|
70641
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
70642
|
+
__param(2, Ctx()),
|
|
70643
|
+
__param(3, PubSub()),
|
|
70644
|
+
__metadata("design:type", Function),
|
|
70645
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
70646
|
+
__metadata("design:returntype", Promise)
|
|
70647
|
+
], MJMCPServerConnectionResolver.prototype, "DeleteMJMCPServerConnection", null);
|
|
70648
|
+
MJMCPServerConnectionResolver = __decorate([
|
|
70649
|
+
Resolver(MJMCPServerConnection_)
|
|
70650
|
+
], MJMCPServerConnectionResolver);
|
|
70651
|
+
export { MJMCPServerConnectionResolver };
|
|
70652
|
+
let MJMCPServerTool_ = class MJMCPServerTool_ {
|
|
70653
|
+
ID;
|
|
70654
|
+
MCPServerID;
|
|
70655
|
+
ToolName;
|
|
70656
|
+
ToolTitle;
|
|
70657
|
+
ToolDescription;
|
|
70658
|
+
InputSchema;
|
|
70659
|
+
OutputSchema;
|
|
70660
|
+
Annotations;
|
|
70661
|
+
Status;
|
|
70662
|
+
DiscoveredAt;
|
|
70663
|
+
LastSeenAt;
|
|
70664
|
+
GeneratedActionID;
|
|
70665
|
+
GeneratedActionCategoryID;
|
|
70666
|
+
_mj__CreatedAt;
|
|
70667
|
+
_mj__UpdatedAt;
|
|
70668
|
+
MCPServer;
|
|
70669
|
+
GeneratedAction;
|
|
70670
|
+
GeneratedActionCategory;
|
|
70671
|
+
MJ_MCPServerConnectionTools_MCPServerToolIDArray;
|
|
70672
|
+
MJ_MCPToolExecutionLogs_MCPServerToolIDArray;
|
|
70673
|
+
};
|
|
70674
|
+
__decorate([
|
|
70675
|
+
Field(),
|
|
70676
|
+
MaxLength(16),
|
|
70677
|
+
__metadata("design:type", String)
|
|
70678
|
+
], MJMCPServerTool_.prototype, "ID", void 0);
|
|
70679
|
+
__decorate([
|
|
70680
|
+
Field(),
|
|
70681
|
+
MaxLength(16),
|
|
70682
|
+
__metadata("design:type", String)
|
|
70683
|
+
], MJMCPServerTool_.prototype, "MCPServerID", void 0);
|
|
70684
|
+
__decorate([
|
|
70685
|
+
Field({ description: `Tool identifier from the MCP server` }),
|
|
70686
|
+
MaxLength(510),
|
|
70687
|
+
__metadata("design:type", String)
|
|
70688
|
+
], MJMCPServerTool_.prototype, "ToolName", void 0);
|
|
70689
|
+
__decorate([
|
|
70690
|
+
Field({ nullable: true, description: `Human-readable title for the tool` }),
|
|
70691
|
+
MaxLength(510),
|
|
70692
|
+
__metadata("design:type", String)
|
|
70693
|
+
], MJMCPServerTool_.prototype, "ToolTitle", void 0);
|
|
70694
|
+
__decorate([
|
|
70695
|
+
Field({ nullable: true }),
|
|
70696
|
+
__metadata("design:type", String)
|
|
70697
|
+
], MJMCPServerTool_.prototype, "ToolDescription", void 0);
|
|
70698
|
+
__decorate([
|
|
70699
|
+
Field({ description: `JSON Schema for tool input parameters` }),
|
|
70700
|
+
__metadata("design:type", String)
|
|
70701
|
+
], MJMCPServerTool_.prototype, "InputSchema", void 0);
|
|
70702
|
+
__decorate([
|
|
70703
|
+
Field({ nullable: true, description: `JSON Schema for tool output (if provided)` }),
|
|
70704
|
+
__metadata("design:type", String)
|
|
70705
|
+
], MJMCPServerTool_.prototype, "OutputSchema", void 0);
|
|
70706
|
+
__decorate([
|
|
70707
|
+
Field({ nullable: true, description: `JSON with tool hints (readOnlyHint, destructiveHint, etc.)` }),
|
|
70708
|
+
__metadata("design:type", String)
|
|
70709
|
+
], MJMCPServerTool_.prototype, "Annotations", void 0);
|
|
70710
|
+
__decorate([
|
|
70711
|
+
Field({ description: `Tool status: Active, Inactive, or Deprecated` }),
|
|
70712
|
+
MaxLength(100),
|
|
70713
|
+
__metadata("design:type", String)
|
|
70714
|
+
], MJMCPServerTool_.prototype, "Status", void 0);
|
|
70715
|
+
__decorate([
|
|
70716
|
+
Field(),
|
|
70717
|
+
MaxLength(10),
|
|
70718
|
+
__metadata("design:type", Date)
|
|
70719
|
+
], MJMCPServerTool_.prototype, "DiscoveredAt", void 0);
|
|
70720
|
+
__decorate([
|
|
70721
|
+
Field(),
|
|
70722
|
+
MaxLength(10),
|
|
70723
|
+
__metadata("design:type", Date)
|
|
70724
|
+
], MJMCPServerTool_.prototype, "LastSeenAt", void 0);
|
|
70725
|
+
__decorate([
|
|
70726
|
+
Field({ nullable: true, description: `FK to auto-generated Action (if promoted)` }),
|
|
70727
|
+
MaxLength(16),
|
|
70728
|
+
__metadata("design:type", String)
|
|
70729
|
+
], MJMCPServerTool_.prototype, "GeneratedActionID", void 0);
|
|
70730
|
+
__decorate([
|
|
70731
|
+
Field({ nullable: true }),
|
|
70732
|
+
MaxLength(16),
|
|
70733
|
+
__metadata("design:type", String)
|
|
70734
|
+
], MJMCPServerTool_.prototype, "GeneratedActionCategoryID", void 0);
|
|
70735
|
+
__decorate([
|
|
70736
|
+
Field(),
|
|
70737
|
+
MaxLength(10),
|
|
70738
|
+
__metadata("design:type", Date)
|
|
70739
|
+
], MJMCPServerTool_.prototype, "_mj__CreatedAt", void 0);
|
|
70740
|
+
__decorate([
|
|
70741
|
+
Field(),
|
|
70742
|
+
MaxLength(10),
|
|
70743
|
+
__metadata("design:type", Date)
|
|
70744
|
+
], MJMCPServerTool_.prototype, "_mj__UpdatedAt", void 0);
|
|
70745
|
+
__decorate([
|
|
70746
|
+
Field(),
|
|
70747
|
+
MaxLength(510),
|
|
70748
|
+
__metadata("design:type", String)
|
|
70749
|
+
], MJMCPServerTool_.prototype, "MCPServer", void 0);
|
|
70750
|
+
__decorate([
|
|
70751
|
+
Field({ nullable: true }),
|
|
70752
|
+
MaxLength(850),
|
|
70753
|
+
__metadata("design:type", String)
|
|
70754
|
+
], MJMCPServerTool_.prototype, "GeneratedAction", void 0);
|
|
70755
|
+
__decorate([
|
|
70756
|
+
Field({ nullable: true }),
|
|
70757
|
+
MaxLength(510),
|
|
70758
|
+
__metadata("design:type", String)
|
|
70759
|
+
], MJMCPServerTool_.prototype, "GeneratedActionCategory", void 0);
|
|
70760
|
+
__decorate([
|
|
70761
|
+
Field(() => [MJMCPServerConnectionTool_]),
|
|
70762
|
+
__metadata("design:type", Array)
|
|
70763
|
+
], MJMCPServerTool_.prototype, "MJ_MCPServerConnectionTools_MCPServerToolIDArray", void 0);
|
|
70764
|
+
__decorate([
|
|
70765
|
+
Field(() => [MJMCPToolExecutionLog_]),
|
|
70766
|
+
__metadata("design:type", Array)
|
|
70767
|
+
], MJMCPServerTool_.prototype, "MJ_MCPToolExecutionLogs_MCPServerToolIDArray", void 0);
|
|
70768
|
+
MJMCPServerTool_ = __decorate([
|
|
70769
|
+
ObjectType()
|
|
70770
|
+
], MJMCPServerTool_);
|
|
70771
|
+
export { MJMCPServerTool_ };
|
|
70772
|
+
let CreateMJMCPServerToolInput = class CreateMJMCPServerToolInput {
|
|
70773
|
+
ID;
|
|
70774
|
+
MCPServerID;
|
|
70775
|
+
ToolName;
|
|
70776
|
+
ToolTitle;
|
|
70777
|
+
ToolDescription;
|
|
70778
|
+
InputSchema;
|
|
70779
|
+
OutputSchema;
|
|
70780
|
+
Annotations;
|
|
70781
|
+
Status;
|
|
70782
|
+
DiscoveredAt;
|
|
70783
|
+
LastSeenAt;
|
|
70784
|
+
GeneratedActionID;
|
|
70785
|
+
GeneratedActionCategoryID;
|
|
70786
|
+
};
|
|
70787
|
+
__decorate([
|
|
70788
|
+
Field({ nullable: true }),
|
|
70789
|
+
__metadata("design:type", String)
|
|
70790
|
+
], CreateMJMCPServerToolInput.prototype, "ID", void 0);
|
|
70791
|
+
__decorate([
|
|
70792
|
+
Field({ nullable: true }),
|
|
70793
|
+
__metadata("design:type", String)
|
|
70794
|
+
], CreateMJMCPServerToolInput.prototype, "MCPServerID", void 0);
|
|
70795
|
+
__decorate([
|
|
70796
|
+
Field({ nullable: true }),
|
|
70797
|
+
__metadata("design:type", String)
|
|
70798
|
+
], CreateMJMCPServerToolInput.prototype, "ToolName", void 0);
|
|
70799
|
+
__decorate([
|
|
70800
|
+
Field({ nullable: true }),
|
|
70801
|
+
__metadata("design:type", String)
|
|
70802
|
+
], CreateMJMCPServerToolInput.prototype, "ToolTitle", void 0);
|
|
70803
|
+
__decorate([
|
|
70804
|
+
Field({ nullable: true }),
|
|
70805
|
+
__metadata("design:type", String)
|
|
70806
|
+
], CreateMJMCPServerToolInput.prototype, "ToolDescription", void 0);
|
|
70807
|
+
__decorate([
|
|
70808
|
+
Field({ nullable: true }),
|
|
70809
|
+
__metadata("design:type", String)
|
|
70810
|
+
], CreateMJMCPServerToolInput.prototype, "InputSchema", void 0);
|
|
70811
|
+
__decorate([
|
|
70812
|
+
Field({ nullable: true }),
|
|
70813
|
+
__metadata("design:type", String)
|
|
70814
|
+
], CreateMJMCPServerToolInput.prototype, "OutputSchema", void 0);
|
|
70815
|
+
__decorate([
|
|
70816
|
+
Field({ nullable: true }),
|
|
70817
|
+
__metadata("design:type", String)
|
|
70818
|
+
], CreateMJMCPServerToolInput.prototype, "Annotations", void 0);
|
|
70819
|
+
__decorate([
|
|
70820
|
+
Field({ nullable: true }),
|
|
70821
|
+
__metadata("design:type", String)
|
|
70822
|
+
], CreateMJMCPServerToolInput.prototype, "Status", void 0);
|
|
70823
|
+
__decorate([
|
|
70824
|
+
Field({ nullable: true }),
|
|
70825
|
+
__metadata("design:type", Date)
|
|
70826
|
+
], CreateMJMCPServerToolInput.prototype, "DiscoveredAt", void 0);
|
|
70827
|
+
__decorate([
|
|
70828
|
+
Field({ nullable: true }),
|
|
70829
|
+
__metadata("design:type", Date)
|
|
70830
|
+
], CreateMJMCPServerToolInput.prototype, "LastSeenAt", void 0);
|
|
70831
|
+
__decorate([
|
|
70832
|
+
Field({ nullable: true }),
|
|
70833
|
+
__metadata("design:type", String)
|
|
70834
|
+
], CreateMJMCPServerToolInput.prototype, "GeneratedActionID", void 0);
|
|
70835
|
+
__decorate([
|
|
70836
|
+
Field({ nullable: true }),
|
|
70837
|
+
__metadata("design:type", String)
|
|
70838
|
+
], CreateMJMCPServerToolInput.prototype, "GeneratedActionCategoryID", void 0);
|
|
70839
|
+
CreateMJMCPServerToolInput = __decorate([
|
|
70840
|
+
InputType()
|
|
70841
|
+
], CreateMJMCPServerToolInput);
|
|
70842
|
+
export { CreateMJMCPServerToolInput };
|
|
70843
|
+
let UpdateMJMCPServerToolInput = class UpdateMJMCPServerToolInput {
|
|
70844
|
+
ID;
|
|
70845
|
+
MCPServerID;
|
|
70846
|
+
ToolName;
|
|
70847
|
+
ToolTitle;
|
|
70848
|
+
ToolDescription;
|
|
70849
|
+
InputSchema;
|
|
70850
|
+
OutputSchema;
|
|
70851
|
+
Annotations;
|
|
70852
|
+
Status;
|
|
70853
|
+
DiscoveredAt;
|
|
70854
|
+
LastSeenAt;
|
|
70855
|
+
GeneratedActionID;
|
|
70856
|
+
GeneratedActionCategoryID;
|
|
70857
|
+
OldValues___;
|
|
70858
|
+
};
|
|
70859
|
+
__decorate([
|
|
70860
|
+
Field(),
|
|
70861
|
+
__metadata("design:type", String)
|
|
70862
|
+
], UpdateMJMCPServerToolInput.prototype, "ID", void 0);
|
|
70863
|
+
__decorate([
|
|
70864
|
+
Field({ nullable: true }),
|
|
70865
|
+
__metadata("design:type", String)
|
|
70866
|
+
], UpdateMJMCPServerToolInput.prototype, "MCPServerID", void 0);
|
|
70867
|
+
__decorate([
|
|
70868
|
+
Field({ nullable: true }),
|
|
70869
|
+
__metadata("design:type", String)
|
|
70870
|
+
], UpdateMJMCPServerToolInput.prototype, "ToolName", void 0);
|
|
70871
|
+
__decorate([
|
|
70872
|
+
Field({ nullable: true }),
|
|
70873
|
+
__metadata("design:type", String)
|
|
70874
|
+
], UpdateMJMCPServerToolInput.prototype, "ToolTitle", void 0);
|
|
70875
|
+
__decorate([
|
|
70876
|
+
Field({ nullable: true }),
|
|
70877
|
+
__metadata("design:type", String)
|
|
70878
|
+
], UpdateMJMCPServerToolInput.prototype, "ToolDescription", void 0);
|
|
70879
|
+
__decorate([
|
|
70880
|
+
Field({ nullable: true }),
|
|
70881
|
+
__metadata("design:type", String)
|
|
70882
|
+
], UpdateMJMCPServerToolInput.prototype, "InputSchema", void 0);
|
|
70883
|
+
__decorate([
|
|
70884
|
+
Field({ nullable: true }),
|
|
70885
|
+
__metadata("design:type", String)
|
|
70886
|
+
], UpdateMJMCPServerToolInput.prototype, "OutputSchema", void 0);
|
|
70887
|
+
__decorate([
|
|
70888
|
+
Field({ nullable: true }),
|
|
70889
|
+
__metadata("design:type", String)
|
|
70890
|
+
], UpdateMJMCPServerToolInput.prototype, "Annotations", void 0);
|
|
70891
|
+
__decorate([
|
|
70892
|
+
Field({ nullable: true }),
|
|
70893
|
+
__metadata("design:type", String)
|
|
70894
|
+
], UpdateMJMCPServerToolInput.prototype, "Status", void 0);
|
|
70895
|
+
__decorate([
|
|
70896
|
+
Field({ nullable: true }),
|
|
70897
|
+
__metadata("design:type", Date)
|
|
70898
|
+
], UpdateMJMCPServerToolInput.prototype, "DiscoveredAt", void 0);
|
|
70899
|
+
__decorate([
|
|
70900
|
+
Field({ nullable: true }),
|
|
70901
|
+
__metadata("design:type", Date)
|
|
70902
|
+
], UpdateMJMCPServerToolInput.prototype, "LastSeenAt", void 0);
|
|
70903
|
+
__decorate([
|
|
70904
|
+
Field({ nullable: true }),
|
|
70905
|
+
__metadata("design:type", String)
|
|
70906
|
+
], UpdateMJMCPServerToolInput.prototype, "GeneratedActionID", void 0);
|
|
70907
|
+
__decorate([
|
|
70908
|
+
Field({ nullable: true }),
|
|
70909
|
+
__metadata("design:type", String)
|
|
70910
|
+
], UpdateMJMCPServerToolInput.prototype, "GeneratedActionCategoryID", void 0);
|
|
70911
|
+
__decorate([
|
|
70912
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
70913
|
+
__metadata("design:type", Array)
|
|
70914
|
+
], UpdateMJMCPServerToolInput.prototype, "OldValues___", void 0);
|
|
70915
|
+
UpdateMJMCPServerToolInput = __decorate([
|
|
70916
|
+
InputType()
|
|
70917
|
+
], UpdateMJMCPServerToolInput);
|
|
70918
|
+
export { UpdateMJMCPServerToolInput };
|
|
70919
|
+
let RunMJMCPServerToolViewResult = class RunMJMCPServerToolViewResult {
|
|
70920
|
+
Results;
|
|
70921
|
+
UserViewRunID;
|
|
70922
|
+
RowCount;
|
|
70923
|
+
TotalRowCount;
|
|
70924
|
+
ExecutionTime;
|
|
70925
|
+
ErrorMessage;
|
|
70926
|
+
Success;
|
|
70927
|
+
};
|
|
70928
|
+
__decorate([
|
|
70929
|
+
Field(() => [MJMCPServerTool_]),
|
|
70930
|
+
__metadata("design:type", Array)
|
|
70931
|
+
], RunMJMCPServerToolViewResult.prototype, "Results", void 0);
|
|
70932
|
+
__decorate([
|
|
70933
|
+
Field(() => String, { nullable: true }),
|
|
70934
|
+
__metadata("design:type", String)
|
|
70935
|
+
], RunMJMCPServerToolViewResult.prototype, "UserViewRunID", void 0);
|
|
70936
|
+
__decorate([
|
|
70937
|
+
Field(() => Int, { nullable: true }),
|
|
70938
|
+
__metadata("design:type", Number)
|
|
70939
|
+
], RunMJMCPServerToolViewResult.prototype, "RowCount", void 0);
|
|
70940
|
+
__decorate([
|
|
70941
|
+
Field(() => Int, { nullable: true }),
|
|
70942
|
+
__metadata("design:type", Number)
|
|
70943
|
+
], RunMJMCPServerToolViewResult.prototype, "TotalRowCount", void 0);
|
|
70944
|
+
__decorate([
|
|
70945
|
+
Field(() => Int, { nullable: true }),
|
|
70946
|
+
__metadata("design:type", Number)
|
|
70947
|
+
], RunMJMCPServerToolViewResult.prototype, "ExecutionTime", void 0);
|
|
70948
|
+
__decorate([
|
|
70949
|
+
Field({ nullable: true }),
|
|
70950
|
+
__metadata("design:type", String)
|
|
70951
|
+
], RunMJMCPServerToolViewResult.prototype, "ErrorMessage", void 0);
|
|
70952
|
+
__decorate([
|
|
70953
|
+
Field(() => Boolean, { nullable: false }),
|
|
70954
|
+
__metadata("design:type", Boolean)
|
|
70955
|
+
], RunMJMCPServerToolViewResult.prototype, "Success", void 0);
|
|
70956
|
+
RunMJMCPServerToolViewResult = __decorate([
|
|
70957
|
+
ObjectType()
|
|
70958
|
+
], RunMJMCPServerToolViewResult);
|
|
70959
|
+
export { RunMJMCPServerToolViewResult };
|
|
70960
|
+
let MJMCPServerToolResolver = class MJMCPServerToolResolver extends ResolverBase {
|
|
70961
|
+
async RunMJMCPServerToolViewByID(input, { providers, userPayload }, pubSub) {
|
|
70962
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70963
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
70964
|
+
}
|
|
70965
|
+
async RunMJMCPServerToolViewByName(input, { providers, userPayload }, pubSub) {
|
|
70966
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70967
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
70968
|
+
}
|
|
70969
|
+
async RunMJMCPServerToolDynamicView(input, { providers, userPayload }, pubSub) {
|
|
70970
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70971
|
+
input.EntityName = 'MJ: MCP Server Tools';
|
|
70972
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
70973
|
+
}
|
|
70974
|
+
async MJMCPServerTool(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
70975
|
+
this.CheckUserReadPermissions('MJ: MCP Server Tools', userPayload);
|
|
70976
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70977
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70978
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerTools] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
70979
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70980
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Server Tools', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
70981
|
+
return result;
|
|
70982
|
+
}
|
|
70983
|
+
async MJ_MCPServerConnectionTools_MCPServerToolIDArray(mjmcpservertool_, { dataSources, userPayload, providers }, pubSub) {
|
|
70984
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Tools', userPayload);
|
|
70985
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70986
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70987
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionTools] WHERE [MCPServerToolID]='${mjmcpservertool_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
70988
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70989
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Tools', rows, this.GetUserFromPayload(userPayload));
|
|
70990
|
+
return result;
|
|
70991
|
+
}
|
|
70992
|
+
async MJ_MCPToolExecutionLogs_MCPServerToolIDArray(mjmcpservertool_, { dataSources, userPayload, providers }, pubSub) {
|
|
70993
|
+
this.CheckUserReadPermissions('MJ: MCP Tool Execution Logs', userPayload);
|
|
70994
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
70995
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
70996
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPToolExecutionLogs] WHERE [MCPServerToolID]='${mjmcpservertool_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
70997
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
70998
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows, this.GetUserFromPayload(userPayload));
|
|
70999
|
+
return result;
|
|
71000
|
+
}
|
|
71001
|
+
async CreateMJMCPServerTool(input, { providers, userPayload }, pubSub) {
|
|
71002
|
+
const provider = GetReadWriteProvider(providers);
|
|
71003
|
+
return this.CreateRecord('MJ: MCP Server Tools', input, provider, userPayload, pubSub);
|
|
71004
|
+
}
|
|
71005
|
+
async UpdateMJMCPServerTool(input, { providers, userPayload }, pubSub) {
|
|
71006
|
+
const provider = GetReadWriteProvider(providers);
|
|
71007
|
+
return this.UpdateRecord('MJ: MCP Server Tools', input, provider, userPayload, pubSub);
|
|
71008
|
+
}
|
|
71009
|
+
async DeleteMJMCPServerTool(ID, options, { providers, userPayload }, pubSub) {
|
|
71010
|
+
const provider = GetReadWriteProvider(providers);
|
|
71011
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
71012
|
+
return this.DeleteRecord('MJ: MCP Server Tools', key, options, provider, userPayload, pubSub);
|
|
71013
|
+
}
|
|
71014
|
+
};
|
|
71015
|
+
__decorate([
|
|
71016
|
+
Query(() => RunMJMCPServerToolViewResult),
|
|
71017
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
71018
|
+
__param(1, Ctx()),
|
|
71019
|
+
__param(2, PubSub()),
|
|
71020
|
+
__metadata("design:type", Function),
|
|
71021
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
71022
|
+
__metadata("design:returntype", Promise)
|
|
71023
|
+
], MJMCPServerToolResolver.prototype, "RunMJMCPServerToolViewByID", null);
|
|
71024
|
+
__decorate([
|
|
71025
|
+
Query(() => RunMJMCPServerToolViewResult),
|
|
71026
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
71027
|
+
__param(1, Ctx()),
|
|
71028
|
+
__param(2, PubSub()),
|
|
71029
|
+
__metadata("design:type", Function),
|
|
71030
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
71031
|
+
__metadata("design:returntype", Promise)
|
|
71032
|
+
], MJMCPServerToolResolver.prototype, "RunMJMCPServerToolViewByName", null);
|
|
71033
|
+
__decorate([
|
|
71034
|
+
Query(() => RunMJMCPServerToolViewResult),
|
|
71035
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
71036
|
+
__param(1, Ctx()),
|
|
71037
|
+
__param(2, PubSub()),
|
|
71038
|
+
__metadata("design:type", Function),
|
|
71039
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
71040
|
+
__metadata("design:returntype", Promise)
|
|
71041
|
+
], MJMCPServerToolResolver.prototype, "RunMJMCPServerToolDynamicView", null);
|
|
71042
|
+
__decorate([
|
|
71043
|
+
Query(() => MJMCPServerTool_, { nullable: true }),
|
|
71044
|
+
__param(0, Arg('ID', () => String)),
|
|
71045
|
+
__param(1, Ctx()),
|
|
71046
|
+
__param(2, PubSub()),
|
|
71047
|
+
__metadata("design:type", Function),
|
|
71048
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
71049
|
+
__metadata("design:returntype", Promise)
|
|
71050
|
+
], MJMCPServerToolResolver.prototype, "MJMCPServerTool", null);
|
|
71051
|
+
__decorate([
|
|
71052
|
+
FieldResolver(() => [MJMCPServerConnectionTool_]),
|
|
71053
|
+
__param(0, Root()),
|
|
71054
|
+
__param(1, Ctx()),
|
|
71055
|
+
__param(2, PubSub()),
|
|
71056
|
+
__metadata("design:type", Function),
|
|
71057
|
+
__metadata("design:paramtypes", [MJMCPServerTool_, Object, PubSubEngine]),
|
|
71058
|
+
__metadata("design:returntype", Promise)
|
|
71059
|
+
], MJMCPServerToolResolver.prototype, "MJ_MCPServerConnectionTools_MCPServerToolIDArray", null);
|
|
71060
|
+
__decorate([
|
|
71061
|
+
FieldResolver(() => [MJMCPToolExecutionLog_]),
|
|
71062
|
+
__param(0, Root()),
|
|
71063
|
+
__param(1, Ctx()),
|
|
71064
|
+
__param(2, PubSub()),
|
|
71065
|
+
__metadata("design:type", Function),
|
|
71066
|
+
__metadata("design:paramtypes", [MJMCPServerTool_, Object, PubSubEngine]),
|
|
71067
|
+
__metadata("design:returntype", Promise)
|
|
71068
|
+
], MJMCPServerToolResolver.prototype, "MJ_MCPToolExecutionLogs_MCPServerToolIDArray", null);
|
|
71069
|
+
__decorate([
|
|
71070
|
+
Mutation(() => MJMCPServerTool_),
|
|
71071
|
+
__param(0, Arg('input', () => CreateMJMCPServerToolInput)),
|
|
71072
|
+
__param(1, Ctx()),
|
|
71073
|
+
__param(2, PubSub()),
|
|
71074
|
+
__metadata("design:type", Function),
|
|
71075
|
+
__metadata("design:paramtypes", [CreateMJMCPServerToolInput, Object, PubSubEngine]),
|
|
71076
|
+
__metadata("design:returntype", Promise)
|
|
71077
|
+
], MJMCPServerToolResolver.prototype, "CreateMJMCPServerTool", null);
|
|
71078
|
+
__decorate([
|
|
71079
|
+
Mutation(() => MJMCPServerTool_),
|
|
71080
|
+
__param(0, Arg('input', () => UpdateMJMCPServerToolInput)),
|
|
71081
|
+
__param(1, Ctx()),
|
|
71082
|
+
__param(2, PubSub()),
|
|
71083
|
+
__metadata("design:type", Function),
|
|
71084
|
+
__metadata("design:paramtypes", [UpdateMJMCPServerToolInput, Object, PubSubEngine]),
|
|
71085
|
+
__metadata("design:returntype", Promise)
|
|
71086
|
+
], MJMCPServerToolResolver.prototype, "UpdateMJMCPServerTool", null);
|
|
71087
|
+
__decorate([
|
|
71088
|
+
Mutation(() => MJMCPServerTool_),
|
|
71089
|
+
__param(0, Arg('ID', () => String)),
|
|
71090
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
71091
|
+
__param(2, Ctx()),
|
|
71092
|
+
__param(3, PubSub()),
|
|
71093
|
+
__metadata("design:type", Function),
|
|
71094
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
71095
|
+
__metadata("design:returntype", Promise)
|
|
71096
|
+
], MJMCPServerToolResolver.prototype, "DeleteMJMCPServerTool", null);
|
|
71097
|
+
MJMCPServerToolResolver = __decorate([
|
|
71098
|
+
Resolver(MJMCPServerTool_)
|
|
71099
|
+
], MJMCPServerToolResolver);
|
|
71100
|
+
export { MJMCPServerToolResolver };
|
|
71101
|
+
let MJMCPServer_ = class MJMCPServer_ {
|
|
71102
|
+
ID;
|
|
71103
|
+
Name;
|
|
71104
|
+
Description;
|
|
71105
|
+
ServerURL;
|
|
71106
|
+
Command;
|
|
71107
|
+
CommandArgs;
|
|
71108
|
+
TransportType;
|
|
71109
|
+
DefaultAuthType;
|
|
71110
|
+
CredentialTypeID;
|
|
71111
|
+
Status;
|
|
71112
|
+
LastSyncAt;
|
|
71113
|
+
RateLimitPerMinute;
|
|
71114
|
+
RateLimitPerHour;
|
|
71115
|
+
ConnectionTimeoutMs;
|
|
71116
|
+
RequestTimeoutMs;
|
|
71117
|
+
DocumentationURL;
|
|
71118
|
+
IconClass;
|
|
71119
|
+
_mj__CreatedAt;
|
|
71120
|
+
_mj__UpdatedAt;
|
|
71121
|
+
CredentialType;
|
|
71122
|
+
MJ_MCPServerConnections_MCPServerIDArray;
|
|
71123
|
+
MJ_MCPServerTools_MCPServerIDArray;
|
|
71124
|
+
};
|
|
71125
|
+
__decorate([
|
|
71126
|
+
Field(),
|
|
71127
|
+
MaxLength(16),
|
|
71128
|
+
__metadata("design:type", String)
|
|
71129
|
+
], MJMCPServer_.prototype, "ID", void 0);
|
|
71130
|
+
__decorate([
|
|
71131
|
+
Field({ description: `Unique display name for the MCP server` }),
|
|
71132
|
+
MaxLength(510),
|
|
71133
|
+
__metadata("design:type", String)
|
|
71134
|
+
], MJMCPServer_.prototype, "Name", void 0);
|
|
71135
|
+
__decorate([
|
|
71136
|
+
Field({ nullable: true }),
|
|
71137
|
+
__metadata("design:type", String)
|
|
71138
|
+
], MJMCPServer_.prototype, "Description", void 0);
|
|
71139
|
+
__decorate([
|
|
71140
|
+
Field({ nullable: true, description: `Server endpoint URL for HTTP/SSE/WebSocket transports` }),
|
|
71141
|
+
MaxLength(2000),
|
|
71142
|
+
__metadata("design:type", String)
|
|
71143
|
+
], MJMCPServer_.prototype, "ServerURL", void 0);
|
|
71144
|
+
__decorate([
|
|
71145
|
+
Field({ nullable: true, description: `Executable path for Stdio transport` }),
|
|
71146
|
+
MaxLength(1000),
|
|
71147
|
+
__metadata("design:type", String)
|
|
71148
|
+
], MJMCPServer_.prototype, "Command", void 0);
|
|
71149
|
+
__decorate([
|
|
71150
|
+
Field({ nullable: true, description: `JSON array of command arguments for Stdio transport` }),
|
|
71151
|
+
__metadata("design:type", String)
|
|
71152
|
+
], MJMCPServer_.prototype, "CommandArgs", void 0);
|
|
71153
|
+
__decorate([
|
|
71154
|
+
Field({ description: `Transport type: StreamableHTTP, SSE, Stdio, or WebSocket` }),
|
|
71155
|
+
MaxLength(100),
|
|
71156
|
+
__metadata("design:type", String)
|
|
71157
|
+
], MJMCPServer_.prototype, "TransportType", void 0);
|
|
71158
|
+
__decorate([
|
|
71159
|
+
Field({ description: `Default auth type: None, Bearer, APIKey, OAuth2, Basic, or Custom` }),
|
|
71160
|
+
MaxLength(100),
|
|
71161
|
+
__metadata("design:type", String)
|
|
71162
|
+
], MJMCPServer_.prototype, "DefaultAuthType", void 0);
|
|
71163
|
+
__decorate([
|
|
71164
|
+
Field({ nullable: true, description: `Expected credential type for this server` }),
|
|
71165
|
+
MaxLength(16),
|
|
71166
|
+
__metadata("design:type", String)
|
|
71167
|
+
], MJMCPServer_.prototype, "CredentialTypeID", void 0);
|
|
71168
|
+
__decorate([
|
|
71169
|
+
Field({ description: `Server status: Active, Inactive, or Deprecated` }),
|
|
71170
|
+
MaxLength(100),
|
|
71171
|
+
__metadata("design:type", String)
|
|
71172
|
+
], MJMCPServer_.prototype, "Status", void 0);
|
|
71173
|
+
__decorate([
|
|
71174
|
+
Field({ nullable: true }),
|
|
71175
|
+
MaxLength(10),
|
|
71176
|
+
__metadata("design:type", Date)
|
|
71177
|
+
], MJMCPServer_.prototype, "LastSyncAt", void 0);
|
|
71178
|
+
__decorate([
|
|
71179
|
+
Field(() => Int, { nullable: true }),
|
|
71180
|
+
__metadata("design:type", Number)
|
|
71181
|
+
], MJMCPServer_.prototype, "RateLimitPerMinute", void 0);
|
|
71182
|
+
__decorate([
|
|
71183
|
+
Field(() => Int, { nullable: true }),
|
|
71184
|
+
__metadata("design:type", Number)
|
|
71185
|
+
], MJMCPServer_.prototype, "RateLimitPerHour", void 0);
|
|
71186
|
+
__decorate([
|
|
71187
|
+
Field(() => Int, { nullable: true }),
|
|
71188
|
+
__metadata("design:type", Number)
|
|
71189
|
+
], MJMCPServer_.prototype, "ConnectionTimeoutMs", void 0);
|
|
71190
|
+
__decorate([
|
|
71191
|
+
Field(() => Int, { nullable: true }),
|
|
71192
|
+
__metadata("design:type", Number)
|
|
71193
|
+
], MJMCPServer_.prototype, "RequestTimeoutMs", void 0);
|
|
71194
|
+
__decorate([
|
|
71195
|
+
Field({ nullable: true }),
|
|
71196
|
+
MaxLength(2000),
|
|
71197
|
+
__metadata("design:type", String)
|
|
71198
|
+
], MJMCPServer_.prototype, "DocumentationURL", void 0);
|
|
71199
|
+
__decorate([
|
|
71200
|
+
Field({ nullable: true }),
|
|
71201
|
+
MaxLength(200),
|
|
71202
|
+
__metadata("design:type", String)
|
|
71203
|
+
], MJMCPServer_.prototype, "IconClass", void 0);
|
|
71204
|
+
__decorate([
|
|
71205
|
+
Field(),
|
|
71206
|
+
MaxLength(10),
|
|
71207
|
+
__metadata("design:type", Date)
|
|
71208
|
+
], MJMCPServer_.prototype, "_mj__CreatedAt", void 0);
|
|
71209
|
+
__decorate([
|
|
71210
|
+
Field(),
|
|
71211
|
+
MaxLength(10),
|
|
71212
|
+
__metadata("design:type", Date)
|
|
71213
|
+
], MJMCPServer_.prototype, "_mj__UpdatedAt", void 0);
|
|
71214
|
+
__decorate([
|
|
71215
|
+
Field({ nullable: true }),
|
|
71216
|
+
MaxLength(200),
|
|
71217
|
+
__metadata("design:type", String)
|
|
71218
|
+
], MJMCPServer_.prototype, "CredentialType", void 0);
|
|
71219
|
+
__decorate([
|
|
71220
|
+
Field(() => [MJMCPServerConnection_]),
|
|
71221
|
+
__metadata("design:type", Array)
|
|
71222
|
+
], MJMCPServer_.prototype, "MJ_MCPServerConnections_MCPServerIDArray", void 0);
|
|
71223
|
+
__decorate([
|
|
71224
|
+
Field(() => [MJMCPServerTool_]),
|
|
71225
|
+
__metadata("design:type", Array)
|
|
71226
|
+
], MJMCPServer_.prototype, "MJ_MCPServerTools_MCPServerIDArray", void 0);
|
|
71227
|
+
MJMCPServer_ = __decorate([
|
|
71228
|
+
ObjectType()
|
|
71229
|
+
], MJMCPServer_);
|
|
71230
|
+
export { MJMCPServer_ };
|
|
71231
|
+
let CreateMJMCPServerInput = class CreateMJMCPServerInput {
|
|
71232
|
+
ID;
|
|
71233
|
+
Name;
|
|
71234
|
+
Description;
|
|
71235
|
+
ServerURL;
|
|
71236
|
+
Command;
|
|
71237
|
+
CommandArgs;
|
|
71238
|
+
TransportType;
|
|
71239
|
+
DefaultAuthType;
|
|
71240
|
+
CredentialTypeID;
|
|
71241
|
+
Status;
|
|
71242
|
+
LastSyncAt;
|
|
71243
|
+
RateLimitPerMinute;
|
|
71244
|
+
RateLimitPerHour;
|
|
71245
|
+
ConnectionTimeoutMs;
|
|
71246
|
+
RequestTimeoutMs;
|
|
71247
|
+
DocumentationURL;
|
|
71248
|
+
IconClass;
|
|
71249
|
+
};
|
|
71250
|
+
__decorate([
|
|
71251
|
+
Field({ nullable: true }),
|
|
71252
|
+
__metadata("design:type", String)
|
|
71253
|
+
], CreateMJMCPServerInput.prototype, "ID", void 0);
|
|
71254
|
+
__decorate([
|
|
71255
|
+
Field({ nullable: true }),
|
|
71256
|
+
__metadata("design:type", String)
|
|
71257
|
+
], CreateMJMCPServerInput.prototype, "Name", void 0);
|
|
71258
|
+
__decorate([
|
|
71259
|
+
Field({ nullable: true }),
|
|
71260
|
+
__metadata("design:type", String)
|
|
71261
|
+
], CreateMJMCPServerInput.prototype, "Description", void 0);
|
|
71262
|
+
__decorate([
|
|
71263
|
+
Field({ nullable: true }),
|
|
71264
|
+
__metadata("design:type", String)
|
|
71265
|
+
], CreateMJMCPServerInput.prototype, "ServerURL", void 0);
|
|
71266
|
+
__decorate([
|
|
71267
|
+
Field({ nullable: true }),
|
|
71268
|
+
__metadata("design:type", String)
|
|
71269
|
+
], CreateMJMCPServerInput.prototype, "Command", void 0);
|
|
71270
|
+
__decorate([
|
|
71271
|
+
Field({ nullable: true }),
|
|
71272
|
+
__metadata("design:type", String)
|
|
71273
|
+
], CreateMJMCPServerInput.prototype, "CommandArgs", void 0);
|
|
71274
|
+
__decorate([
|
|
71275
|
+
Field({ nullable: true }),
|
|
71276
|
+
__metadata("design:type", String)
|
|
71277
|
+
], CreateMJMCPServerInput.prototype, "TransportType", void 0);
|
|
71278
|
+
__decorate([
|
|
71279
|
+
Field({ nullable: true }),
|
|
71280
|
+
__metadata("design:type", String)
|
|
71281
|
+
], CreateMJMCPServerInput.prototype, "DefaultAuthType", void 0);
|
|
71282
|
+
__decorate([
|
|
71283
|
+
Field({ nullable: true }),
|
|
71284
|
+
__metadata("design:type", String)
|
|
71285
|
+
], CreateMJMCPServerInput.prototype, "CredentialTypeID", void 0);
|
|
71286
|
+
__decorate([
|
|
71287
|
+
Field({ nullable: true }),
|
|
71288
|
+
__metadata("design:type", String)
|
|
71289
|
+
], CreateMJMCPServerInput.prototype, "Status", void 0);
|
|
71290
|
+
__decorate([
|
|
71291
|
+
Field({ nullable: true }),
|
|
71292
|
+
__metadata("design:type", Date)
|
|
71293
|
+
], CreateMJMCPServerInput.prototype, "LastSyncAt", void 0);
|
|
71294
|
+
__decorate([
|
|
71295
|
+
Field(() => Int, { nullable: true }),
|
|
71296
|
+
__metadata("design:type", Number)
|
|
71297
|
+
], CreateMJMCPServerInput.prototype, "RateLimitPerMinute", void 0);
|
|
71298
|
+
__decorate([
|
|
71299
|
+
Field(() => Int, { nullable: true }),
|
|
71300
|
+
__metadata("design:type", Number)
|
|
71301
|
+
], CreateMJMCPServerInput.prototype, "RateLimitPerHour", void 0);
|
|
71302
|
+
__decorate([
|
|
71303
|
+
Field(() => Int, { nullable: true }),
|
|
71304
|
+
__metadata("design:type", Number)
|
|
71305
|
+
], CreateMJMCPServerInput.prototype, "ConnectionTimeoutMs", void 0);
|
|
71306
|
+
__decorate([
|
|
71307
|
+
Field(() => Int, { nullable: true }),
|
|
71308
|
+
__metadata("design:type", Number)
|
|
71309
|
+
], CreateMJMCPServerInput.prototype, "RequestTimeoutMs", void 0);
|
|
71310
|
+
__decorate([
|
|
71311
|
+
Field({ nullable: true }),
|
|
71312
|
+
__metadata("design:type", String)
|
|
71313
|
+
], CreateMJMCPServerInput.prototype, "DocumentationURL", void 0);
|
|
71314
|
+
__decorate([
|
|
71315
|
+
Field({ nullable: true }),
|
|
71316
|
+
__metadata("design:type", String)
|
|
71317
|
+
], CreateMJMCPServerInput.prototype, "IconClass", void 0);
|
|
71318
|
+
CreateMJMCPServerInput = __decorate([
|
|
71319
|
+
InputType()
|
|
71320
|
+
], CreateMJMCPServerInput);
|
|
71321
|
+
export { CreateMJMCPServerInput };
|
|
71322
|
+
let UpdateMJMCPServerInput = class UpdateMJMCPServerInput {
|
|
71323
|
+
ID;
|
|
71324
|
+
Name;
|
|
71325
|
+
Description;
|
|
71326
|
+
ServerURL;
|
|
71327
|
+
Command;
|
|
71328
|
+
CommandArgs;
|
|
71329
|
+
TransportType;
|
|
71330
|
+
DefaultAuthType;
|
|
71331
|
+
CredentialTypeID;
|
|
71332
|
+
Status;
|
|
71333
|
+
LastSyncAt;
|
|
71334
|
+
RateLimitPerMinute;
|
|
71335
|
+
RateLimitPerHour;
|
|
71336
|
+
ConnectionTimeoutMs;
|
|
71337
|
+
RequestTimeoutMs;
|
|
71338
|
+
DocumentationURL;
|
|
71339
|
+
IconClass;
|
|
71340
|
+
OldValues___;
|
|
71341
|
+
};
|
|
71342
|
+
__decorate([
|
|
71343
|
+
Field(),
|
|
71344
|
+
__metadata("design:type", String)
|
|
71345
|
+
], UpdateMJMCPServerInput.prototype, "ID", void 0);
|
|
71346
|
+
__decorate([
|
|
71347
|
+
Field({ nullable: true }),
|
|
71348
|
+
__metadata("design:type", String)
|
|
71349
|
+
], UpdateMJMCPServerInput.prototype, "Name", void 0);
|
|
71350
|
+
__decorate([
|
|
71351
|
+
Field({ nullable: true }),
|
|
71352
|
+
__metadata("design:type", String)
|
|
71353
|
+
], UpdateMJMCPServerInput.prototype, "Description", void 0);
|
|
71354
|
+
__decorate([
|
|
71355
|
+
Field({ nullable: true }),
|
|
71356
|
+
__metadata("design:type", String)
|
|
71357
|
+
], UpdateMJMCPServerInput.prototype, "ServerURL", void 0);
|
|
71358
|
+
__decorate([
|
|
71359
|
+
Field({ nullable: true }),
|
|
71360
|
+
__metadata("design:type", String)
|
|
71361
|
+
], UpdateMJMCPServerInput.prototype, "Command", void 0);
|
|
71362
|
+
__decorate([
|
|
71363
|
+
Field({ nullable: true }),
|
|
71364
|
+
__metadata("design:type", String)
|
|
71365
|
+
], UpdateMJMCPServerInput.prototype, "CommandArgs", void 0);
|
|
71366
|
+
__decorate([
|
|
71367
|
+
Field({ nullable: true }),
|
|
71368
|
+
__metadata("design:type", String)
|
|
71369
|
+
], UpdateMJMCPServerInput.prototype, "TransportType", void 0);
|
|
71370
|
+
__decorate([
|
|
71371
|
+
Field({ nullable: true }),
|
|
71372
|
+
__metadata("design:type", String)
|
|
71373
|
+
], UpdateMJMCPServerInput.prototype, "DefaultAuthType", void 0);
|
|
71374
|
+
__decorate([
|
|
71375
|
+
Field({ nullable: true }),
|
|
71376
|
+
__metadata("design:type", String)
|
|
71377
|
+
], UpdateMJMCPServerInput.prototype, "CredentialTypeID", void 0);
|
|
71378
|
+
__decorate([
|
|
71379
|
+
Field({ nullable: true }),
|
|
71380
|
+
__metadata("design:type", String)
|
|
71381
|
+
], UpdateMJMCPServerInput.prototype, "Status", void 0);
|
|
71382
|
+
__decorate([
|
|
71383
|
+
Field({ nullable: true }),
|
|
71384
|
+
__metadata("design:type", Date)
|
|
71385
|
+
], UpdateMJMCPServerInput.prototype, "LastSyncAt", void 0);
|
|
71386
|
+
__decorate([
|
|
71387
|
+
Field(() => Int, { nullable: true }),
|
|
71388
|
+
__metadata("design:type", Number)
|
|
71389
|
+
], UpdateMJMCPServerInput.prototype, "RateLimitPerMinute", void 0);
|
|
71390
|
+
__decorate([
|
|
71391
|
+
Field(() => Int, { nullable: true }),
|
|
71392
|
+
__metadata("design:type", Number)
|
|
71393
|
+
], UpdateMJMCPServerInput.prototype, "RateLimitPerHour", void 0);
|
|
71394
|
+
__decorate([
|
|
71395
|
+
Field(() => Int, { nullable: true }),
|
|
71396
|
+
__metadata("design:type", Number)
|
|
71397
|
+
], UpdateMJMCPServerInput.prototype, "ConnectionTimeoutMs", void 0);
|
|
71398
|
+
__decorate([
|
|
71399
|
+
Field(() => Int, { nullable: true }),
|
|
71400
|
+
__metadata("design:type", Number)
|
|
71401
|
+
], UpdateMJMCPServerInput.prototype, "RequestTimeoutMs", void 0);
|
|
71402
|
+
__decorate([
|
|
71403
|
+
Field({ nullable: true }),
|
|
71404
|
+
__metadata("design:type", String)
|
|
71405
|
+
], UpdateMJMCPServerInput.prototype, "DocumentationURL", void 0);
|
|
71406
|
+
__decorate([
|
|
71407
|
+
Field({ nullable: true }),
|
|
71408
|
+
__metadata("design:type", String)
|
|
71409
|
+
], UpdateMJMCPServerInput.prototype, "IconClass", void 0);
|
|
71410
|
+
__decorate([
|
|
71411
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
71412
|
+
__metadata("design:type", Array)
|
|
71413
|
+
], UpdateMJMCPServerInput.prototype, "OldValues___", void 0);
|
|
71414
|
+
UpdateMJMCPServerInput = __decorate([
|
|
71415
|
+
InputType()
|
|
71416
|
+
], UpdateMJMCPServerInput);
|
|
71417
|
+
export { UpdateMJMCPServerInput };
|
|
71418
|
+
let RunMJMCPServerViewResult = class RunMJMCPServerViewResult {
|
|
71419
|
+
Results;
|
|
71420
|
+
UserViewRunID;
|
|
71421
|
+
RowCount;
|
|
71422
|
+
TotalRowCount;
|
|
71423
|
+
ExecutionTime;
|
|
71424
|
+
ErrorMessage;
|
|
71425
|
+
Success;
|
|
71426
|
+
};
|
|
71427
|
+
__decorate([
|
|
71428
|
+
Field(() => [MJMCPServer_]),
|
|
71429
|
+
__metadata("design:type", Array)
|
|
71430
|
+
], RunMJMCPServerViewResult.prototype, "Results", void 0);
|
|
71431
|
+
__decorate([
|
|
71432
|
+
Field(() => String, { nullable: true }),
|
|
71433
|
+
__metadata("design:type", String)
|
|
71434
|
+
], RunMJMCPServerViewResult.prototype, "UserViewRunID", void 0);
|
|
71435
|
+
__decorate([
|
|
71436
|
+
Field(() => Int, { nullable: true }),
|
|
71437
|
+
__metadata("design:type", Number)
|
|
71438
|
+
], RunMJMCPServerViewResult.prototype, "RowCount", void 0);
|
|
71439
|
+
__decorate([
|
|
71440
|
+
Field(() => Int, { nullable: true }),
|
|
71441
|
+
__metadata("design:type", Number)
|
|
71442
|
+
], RunMJMCPServerViewResult.prototype, "TotalRowCount", void 0);
|
|
71443
|
+
__decorate([
|
|
71444
|
+
Field(() => Int, { nullable: true }),
|
|
71445
|
+
__metadata("design:type", Number)
|
|
71446
|
+
], RunMJMCPServerViewResult.prototype, "ExecutionTime", void 0);
|
|
71447
|
+
__decorate([
|
|
71448
|
+
Field({ nullable: true }),
|
|
71449
|
+
__metadata("design:type", String)
|
|
71450
|
+
], RunMJMCPServerViewResult.prototype, "ErrorMessage", void 0);
|
|
71451
|
+
__decorate([
|
|
71452
|
+
Field(() => Boolean, { nullable: false }),
|
|
71453
|
+
__metadata("design:type", Boolean)
|
|
71454
|
+
], RunMJMCPServerViewResult.prototype, "Success", void 0);
|
|
71455
|
+
RunMJMCPServerViewResult = __decorate([
|
|
71456
|
+
ObjectType()
|
|
71457
|
+
], RunMJMCPServerViewResult);
|
|
71458
|
+
export { RunMJMCPServerViewResult };
|
|
71459
|
+
let MJMCPServerResolver = class MJMCPServerResolver extends ResolverBase {
|
|
71460
|
+
async RunMJMCPServerViewByID(input, { providers, userPayload }, pubSub) {
|
|
71461
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71462
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
71463
|
+
}
|
|
71464
|
+
async RunMJMCPServerViewByName(input, { providers, userPayload }, pubSub) {
|
|
71465
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71466
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
71467
|
+
}
|
|
71468
|
+
async RunMJMCPServerDynamicView(input, { providers, userPayload }, pubSub) {
|
|
71469
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71470
|
+
input.EntityName = 'MJ: MCP Servers';
|
|
71471
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
71472
|
+
}
|
|
71473
|
+
async MJMCPServer(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
71474
|
+
this.CheckUserReadPermissions('MJ: MCP Servers', userPayload);
|
|
71475
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71476
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
71477
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServers] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Servers', userPayload, EntityPermissionType.Read, 'AND');
|
|
71478
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
71479
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Servers', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
71480
|
+
return result;
|
|
71481
|
+
}
|
|
71482
|
+
async MJ_MCPServerConnections_MCPServerIDArray(mjmcpserver_, { dataSources, userPayload, providers }, pubSub) {
|
|
71483
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connections', userPayload);
|
|
71484
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71485
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
71486
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnections] WHERE [MCPServerID]='${mjmcpserver_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connections', userPayload, EntityPermissionType.Read, 'AND');
|
|
71487
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
71488
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connections', rows, this.GetUserFromPayload(userPayload));
|
|
71489
|
+
return result;
|
|
71490
|
+
}
|
|
71491
|
+
async MJ_MCPServerTools_MCPServerIDArray(mjmcpserver_, { dataSources, userPayload, providers }, pubSub) {
|
|
71492
|
+
this.CheckUserReadPermissions('MJ: MCP Server Tools', userPayload);
|
|
71493
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71494
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
71495
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerTools] WHERE [MCPServerID]='${mjmcpserver_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Tools', userPayload, EntityPermissionType.Read, 'AND');
|
|
71496
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
71497
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Tools', rows, this.GetUserFromPayload(userPayload));
|
|
71498
|
+
return result;
|
|
71499
|
+
}
|
|
71500
|
+
async CreateMJMCPServer(input, { providers, userPayload }, pubSub) {
|
|
71501
|
+
const provider = GetReadWriteProvider(providers);
|
|
71502
|
+
return this.CreateRecord('MJ: MCP Servers', input, provider, userPayload, pubSub);
|
|
71503
|
+
}
|
|
71504
|
+
async UpdateMJMCPServer(input, { providers, userPayload }, pubSub) {
|
|
71505
|
+
const provider = GetReadWriteProvider(providers);
|
|
71506
|
+
return this.UpdateRecord('MJ: MCP Servers', input, provider, userPayload, pubSub);
|
|
71507
|
+
}
|
|
71508
|
+
async DeleteMJMCPServer(ID, options, { providers, userPayload }, pubSub) {
|
|
71509
|
+
const provider = GetReadWriteProvider(providers);
|
|
71510
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
71511
|
+
return this.DeleteRecord('MJ: MCP Servers', key, options, provider, userPayload, pubSub);
|
|
71512
|
+
}
|
|
71513
|
+
};
|
|
71514
|
+
__decorate([
|
|
71515
|
+
Query(() => RunMJMCPServerViewResult),
|
|
71516
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
71517
|
+
__param(1, Ctx()),
|
|
71518
|
+
__param(2, PubSub()),
|
|
71519
|
+
__metadata("design:type", Function),
|
|
71520
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
71521
|
+
__metadata("design:returntype", Promise)
|
|
71522
|
+
], MJMCPServerResolver.prototype, "RunMJMCPServerViewByID", null);
|
|
71523
|
+
__decorate([
|
|
71524
|
+
Query(() => RunMJMCPServerViewResult),
|
|
71525
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
71526
|
+
__param(1, Ctx()),
|
|
71527
|
+
__param(2, PubSub()),
|
|
71528
|
+
__metadata("design:type", Function),
|
|
71529
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
71530
|
+
__metadata("design:returntype", Promise)
|
|
71531
|
+
], MJMCPServerResolver.prototype, "RunMJMCPServerViewByName", null);
|
|
71532
|
+
__decorate([
|
|
71533
|
+
Query(() => RunMJMCPServerViewResult),
|
|
71534
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
71535
|
+
__param(1, Ctx()),
|
|
71536
|
+
__param(2, PubSub()),
|
|
71537
|
+
__metadata("design:type", Function),
|
|
71538
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
71539
|
+
__metadata("design:returntype", Promise)
|
|
71540
|
+
], MJMCPServerResolver.prototype, "RunMJMCPServerDynamicView", null);
|
|
71541
|
+
__decorate([
|
|
71542
|
+
Query(() => MJMCPServer_, { nullable: true }),
|
|
71543
|
+
__param(0, Arg('ID', () => String)),
|
|
71544
|
+
__param(1, Ctx()),
|
|
71545
|
+
__param(2, PubSub()),
|
|
71546
|
+
__metadata("design:type", Function),
|
|
71547
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
71548
|
+
__metadata("design:returntype", Promise)
|
|
71549
|
+
], MJMCPServerResolver.prototype, "MJMCPServer", null);
|
|
71550
|
+
__decorate([
|
|
71551
|
+
FieldResolver(() => [MJMCPServerConnection_]),
|
|
71552
|
+
__param(0, Root()),
|
|
71553
|
+
__param(1, Ctx()),
|
|
71554
|
+
__param(2, PubSub()),
|
|
71555
|
+
__metadata("design:type", Function),
|
|
71556
|
+
__metadata("design:paramtypes", [MJMCPServer_, Object, PubSubEngine]),
|
|
71557
|
+
__metadata("design:returntype", Promise)
|
|
71558
|
+
], MJMCPServerResolver.prototype, "MJ_MCPServerConnections_MCPServerIDArray", null);
|
|
71559
|
+
__decorate([
|
|
71560
|
+
FieldResolver(() => [MJMCPServerTool_]),
|
|
71561
|
+
__param(0, Root()),
|
|
71562
|
+
__param(1, Ctx()),
|
|
71563
|
+
__param(2, PubSub()),
|
|
71564
|
+
__metadata("design:type", Function),
|
|
71565
|
+
__metadata("design:paramtypes", [MJMCPServer_, Object, PubSubEngine]),
|
|
71566
|
+
__metadata("design:returntype", Promise)
|
|
71567
|
+
], MJMCPServerResolver.prototype, "MJ_MCPServerTools_MCPServerIDArray", null);
|
|
71568
|
+
__decorate([
|
|
71569
|
+
Mutation(() => MJMCPServer_),
|
|
71570
|
+
__param(0, Arg('input', () => CreateMJMCPServerInput)),
|
|
71571
|
+
__param(1, Ctx()),
|
|
71572
|
+
__param(2, PubSub()),
|
|
71573
|
+
__metadata("design:type", Function),
|
|
71574
|
+
__metadata("design:paramtypes", [CreateMJMCPServerInput, Object, PubSubEngine]),
|
|
71575
|
+
__metadata("design:returntype", Promise)
|
|
71576
|
+
], MJMCPServerResolver.prototype, "CreateMJMCPServer", null);
|
|
71577
|
+
__decorate([
|
|
71578
|
+
Mutation(() => MJMCPServer_),
|
|
71579
|
+
__param(0, Arg('input', () => UpdateMJMCPServerInput)),
|
|
71580
|
+
__param(1, Ctx()),
|
|
71581
|
+
__param(2, PubSub()),
|
|
71582
|
+
__metadata("design:type", Function),
|
|
71583
|
+
__metadata("design:paramtypes", [UpdateMJMCPServerInput, Object, PubSubEngine]),
|
|
71584
|
+
__metadata("design:returntype", Promise)
|
|
71585
|
+
], MJMCPServerResolver.prototype, "UpdateMJMCPServer", null);
|
|
71586
|
+
__decorate([
|
|
71587
|
+
Mutation(() => MJMCPServer_),
|
|
71588
|
+
__param(0, Arg('ID', () => String)),
|
|
71589
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
71590
|
+
__param(2, Ctx()),
|
|
71591
|
+
__param(3, PubSub()),
|
|
71592
|
+
__metadata("design:type", Function),
|
|
71593
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
71594
|
+
__metadata("design:returntype", Promise)
|
|
71595
|
+
], MJMCPServerResolver.prototype, "DeleteMJMCPServer", null);
|
|
71596
|
+
MJMCPServerResolver = __decorate([
|
|
71597
|
+
Resolver(MJMCPServer_)
|
|
71598
|
+
], MJMCPServerResolver);
|
|
71599
|
+
export { MJMCPServerResolver };
|
|
71600
|
+
let MJMCPToolExecutionLog_ = class MJMCPToolExecutionLog_ {
|
|
71601
|
+
ID;
|
|
71602
|
+
MCPServerConnectionID;
|
|
71603
|
+
MCPServerToolID;
|
|
71604
|
+
ToolName;
|
|
71605
|
+
UserID;
|
|
71606
|
+
StartedAt;
|
|
71607
|
+
EndedAt;
|
|
71608
|
+
DurationMs;
|
|
71609
|
+
Success;
|
|
71610
|
+
ErrorMessage;
|
|
71611
|
+
InputParameters;
|
|
71612
|
+
OutputContent;
|
|
71613
|
+
OutputTruncated;
|
|
71614
|
+
_mj__CreatedAt;
|
|
71615
|
+
_mj__UpdatedAt;
|
|
71616
|
+
MCPServerConnection;
|
|
71617
|
+
MCPServerTool;
|
|
71618
|
+
User;
|
|
71619
|
+
};
|
|
71620
|
+
__decorate([
|
|
71621
|
+
Field(),
|
|
71622
|
+
MaxLength(16),
|
|
71623
|
+
__metadata("design:type", String)
|
|
71624
|
+
], MJMCPToolExecutionLog_.prototype, "ID", void 0);
|
|
71625
|
+
__decorate([
|
|
71626
|
+
Field(),
|
|
71627
|
+
MaxLength(16),
|
|
71628
|
+
__metadata("design:type", String)
|
|
71629
|
+
], MJMCPToolExecutionLog_.prototype, "MCPServerConnectionID", void 0);
|
|
71630
|
+
__decorate([
|
|
71631
|
+
Field({ nullable: true, description: `FK to MCP Server Tool (null if tool not cached)` }),
|
|
71632
|
+
MaxLength(16),
|
|
71633
|
+
__metadata("design:type", String)
|
|
71634
|
+
], MJMCPToolExecutionLog_.prototype, "MCPServerToolID", void 0);
|
|
71635
|
+
__decorate([
|
|
71636
|
+
Field({ description: `Tool name (stored directly for resilience)` }),
|
|
71637
|
+
MaxLength(510),
|
|
71638
|
+
__metadata("design:type", String)
|
|
71639
|
+
], MJMCPToolExecutionLog_.prototype, "ToolName", void 0);
|
|
71640
|
+
__decorate([
|
|
71641
|
+
Field({ description: `FK to User who initiated the call` }),
|
|
71642
|
+
MaxLength(16),
|
|
71643
|
+
__metadata("design:type", String)
|
|
71644
|
+
], MJMCPToolExecutionLog_.prototype, "UserID", void 0);
|
|
71645
|
+
__decorate([
|
|
71646
|
+
Field(),
|
|
71647
|
+
MaxLength(10),
|
|
71648
|
+
__metadata("design:type", Date)
|
|
71649
|
+
], MJMCPToolExecutionLog_.prototype, "StartedAt", void 0);
|
|
71650
|
+
__decorate([
|
|
71651
|
+
Field({ nullable: true }),
|
|
71652
|
+
MaxLength(10),
|
|
71653
|
+
__metadata("design:type", Date)
|
|
71654
|
+
], MJMCPToolExecutionLog_.prototype, "EndedAt", void 0);
|
|
71655
|
+
__decorate([
|
|
71656
|
+
Field(() => Int, { nullable: true, description: `Execution duration in milliseconds` }),
|
|
71657
|
+
__metadata("design:type", Number)
|
|
71658
|
+
], MJMCPToolExecutionLog_.prototype, "DurationMs", void 0);
|
|
71659
|
+
__decorate([
|
|
71660
|
+
Field(() => Boolean),
|
|
71661
|
+
__metadata("design:type", Boolean)
|
|
71662
|
+
], MJMCPToolExecutionLog_.prototype, "Success", void 0);
|
|
71663
|
+
__decorate([
|
|
71664
|
+
Field({ nullable: true }),
|
|
71665
|
+
__metadata("design:type", String)
|
|
71666
|
+
], MJMCPToolExecutionLog_.prototype, "ErrorMessage", void 0);
|
|
71667
|
+
__decorate([
|
|
71668
|
+
Field({ nullable: true, description: `JSON of input parameters (if logging enabled)` }),
|
|
71669
|
+
__metadata("design:type", String)
|
|
71670
|
+
], MJMCPToolExecutionLog_.prototype, "InputParameters", void 0);
|
|
71671
|
+
__decorate([
|
|
71672
|
+
Field({ nullable: true, description: `JSON of output content (if logging enabled)` }),
|
|
71673
|
+
__metadata("design:type", String)
|
|
71674
|
+
], MJMCPToolExecutionLog_.prototype, "OutputContent", void 0);
|
|
71675
|
+
__decorate([
|
|
71676
|
+
Field(() => Boolean, { description: `Whether output was truncated due to size` }),
|
|
71677
|
+
__metadata("design:type", Boolean)
|
|
71678
|
+
], MJMCPToolExecutionLog_.prototype, "OutputTruncated", void 0);
|
|
71679
|
+
__decorate([
|
|
71680
|
+
Field(),
|
|
71681
|
+
MaxLength(10),
|
|
71682
|
+
__metadata("design:type", Date)
|
|
71683
|
+
], MJMCPToolExecutionLog_.prototype, "_mj__CreatedAt", void 0);
|
|
71684
|
+
__decorate([
|
|
71685
|
+
Field(),
|
|
71686
|
+
MaxLength(10),
|
|
71687
|
+
__metadata("design:type", Date)
|
|
71688
|
+
], MJMCPToolExecutionLog_.prototype, "_mj__UpdatedAt", void 0);
|
|
71689
|
+
__decorate([
|
|
71690
|
+
Field(),
|
|
71691
|
+
MaxLength(510),
|
|
71692
|
+
__metadata("design:type", String)
|
|
71693
|
+
], MJMCPToolExecutionLog_.prototype, "MCPServerConnection", void 0);
|
|
71694
|
+
__decorate([
|
|
71695
|
+
Field({ nullable: true }),
|
|
71696
|
+
MaxLength(510),
|
|
71697
|
+
__metadata("design:type", String)
|
|
71698
|
+
], MJMCPToolExecutionLog_.prototype, "MCPServerTool", void 0);
|
|
71699
|
+
__decorate([
|
|
71700
|
+
Field(),
|
|
71701
|
+
MaxLength(200),
|
|
71702
|
+
__metadata("design:type", String)
|
|
71703
|
+
], MJMCPToolExecutionLog_.prototype, "User", void 0);
|
|
71704
|
+
MJMCPToolExecutionLog_ = __decorate([
|
|
71705
|
+
ObjectType()
|
|
71706
|
+
], MJMCPToolExecutionLog_);
|
|
71707
|
+
export { MJMCPToolExecutionLog_ };
|
|
71708
|
+
let CreateMJMCPToolExecutionLogInput = class CreateMJMCPToolExecutionLogInput {
|
|
71709
|
+
ID;
|
|
71710
|
+
MCPServerConnectionID;
|
|
71711
|
+
MCPServerToolID;
|
|
71712
|
+
ToolName;
|
|
71713
|
+
UserID;
|
|
71714
|
+
StartedAt;
|
|
71715
|
+
EndedAt;
|
|
71716
|
+
DurationMs;
|
|
71717
|
+
Success;
|
|
71718
|
+
ErrorMessage;
|
|
71719
|
+
InputParameters;
|
|
71720
|
+
OutputContent;
|
|
71721
|
+
OutputTruncated;
|
|
71722
|
+
};
|
|
71723
|
+
__decorate([
|
|
71724
|
+
Field({ nullable: true }),
|
|
71725
|
+
__metadata("design:type", String)
|
|
71726
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "ID", void 0);
|
|
71727
|
+
__decorate([
|
|
71728
|
+
Field({ nullable: true }),
|
|
71729
|
+
__metadata("design:type", String)
|
|
71730
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "MCPServerConnectionID", void 0);
|
|
71731
|
+
__decorate([
|
|
71732
|
+
Field({ nullable: true }),
|
|
71733
|
+
__metadata("design:type", String)
|
|
71734
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "MCPServerToolID", void 0);
|
|
71735
|
+
__decorate([
|
|
71736
|
+
Field({ nullable: true }),
|
|
71737
|
+
__metadata("design:type", String)
|
|
71738
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "ToolName", void 0);
|
|
71739
|
+
__decorate([
|
|
71740
|
+
Field({ nullable: true }),
|
|
71741
|
+
__metadata("design:type", String)
|
|
71742
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "UserID", void 0);
|
|
71743
|
+
__decorate([
|
|
71744
|
+
Field({ nullable: true }),
|
|
71745
|
+
__metadata("design:type", Date)
|
|
71746
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "StartedAt", void 0);
|
|
71747
|
+
__decorate([
|
|
71748
|
+
Field({ nullable: true }),
|
|
71749
|
+
__metadata("design:type", Date)
|
|
71750
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "EndedAt", void 0);
|
|
71751
|
+
__decorate([
|
|
71752
|
+
Field(() => Int, { nullable: true }),
|
|
71753
|
+
__metadata("design:type", Number)
|
|
71754
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "DurationMs", void 0);
|
|
71755
|
+
__decorate([
|
|
71756
|
+
Field(() => Boolean, { nullable: true }),
|
|
71757
|
+
__metadata("design:type", Boolean)
|
|
71758
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "Success", void 0);
|
|
71759
|
+
__decorate([
|
|
71760
|
+
Field({ nullable: true }),
|
|
71761
|
+
__metadata("design:type", String)
|
|
71762
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "ErrorMessage", void 0);
|
|
71763
|
+
__decorate([
|
|
71764
|
+
Field({ nullable: true }),
|
|
71765
|
+
__metadata("design:type", String)
|
|
71766
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "InputParameters", void 0);
|
|
71767
|
+
__decorate([
|
|
71768
|
+
Field({ nullable: true }),
|
|
71769
|
+
__metadata("design:type", String)
|
|
71770
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "OutputContent", void 0);
|
|
71771
|
+
__decorate([
|
|
71772
|
+
Field(() => Boolean, { nullable: true }),
|
|
71773
|
+
__metadata("design:type", Boolean)
|
|
71774
|
+
], CreateMJMCPToolExecutionLogInput.prototype, "OutputTruncated", void 0);
|
|
71775
|
+
CreateMJMCPToolExecutionLogInput = __decorate([
|
|
71776
|
+
InputType()
|
|
71777
|
+
], CreateMJMCPToolExecutionLogInput);
|
|
71778
|
+
export { CreateMJMCPToolExecutionLogInput };
|
|
71779
|
+
let UpdateMJMCPToolExecutionLogInput = class UpdateMJMCPToolExecutionLogInput {
|
|
71780
|
+
ID;
|
|
71781
|
+
MCPServerConnectionID;
|
|
71782
|
+
MCPServerToolID;
|
|
71783
|
+
ToolName;
|
|
71784
|
+
UserID;
|
|
71785
|
+
StartedAt;
|
|
71786
|
+
EndedAt;
|
|
71787
|
+
DurationMs;
|
|
71788
|
+
Success;
|
|
71789
|
+
ErrorMessage;
|
|
71790
|
+
InputParameters;
|
|
71791
|
+
OutputContent;
|
|
71792
|
+
OutputTruncated;
|
|
71793
|
+
OldValues___;
|
|
71794
|
+
};
|
|
71795
|
+
__decorate([
|
|
71796
|
+
Field(),
|
|
71797
|
+
__metadata("design:type", String)
|
|
71798
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "ID", void 0);
|
|
71799
|
+
__decorate([
|
|
71800
|
+
Field({ nullable: true }),
|
|
71801
|
+
__metadata("design:type", String)
|
|
71802
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "MCPServerConnectionID", void 0);
|
|
71803
|
+
__decorate([
|
|
71804
|
+
Field({ nullable: true }),
|
|
71805
|
+
__metadata("design:type", String)
|
|
71806
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "MCPServerToolID", void 0);
|
|
71807
|
+
__decorate([
|
|
71808
|
+
Field({ nullable: true }),
|
|
71809
|
+
__metadata("design:type", String)
|
|
71810
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "ToolName", void 0);
|
|
71811
|
+
__decorate([
|
|
71812
|
+
Field({ nullable: true }),
|
|
71813
|
+
__metadata("design:type", String)
|
|
71814
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "UserID", void 0);
|
|
71815
|
+
__decorate([
|
|
71816
|
+
Field({ nullable: true }),
|
|
71817
|
+
__metadata("design:type", Date)
|
|
71818
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "StartedAt", void 0);
|
|
71819
|
+
__decorate([
|
|
71820
|
+
Field({ nullable: true }),
|
|
71821
|
+
__metadata("design:type", Date)
|
|
71822
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "EndedAt", void 0);
|
|
71823
|
+
__decorate([
|
|
71824
|
+
Field(() => Int, { nullable: true }),
|
|
71825
|
+
__metadata("design:type", Number)
|
|
71826
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "DurationMs", void 0);
|
|
71827
|
+
__decorate([
|
|
71828
|
+
Field(() => Boolean, { nullable: true }),
|
|
71829
|
+
__metadata("design:type", Boolean)
|
|
71830
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "Success", void 0);
|
|
71831
|
+
__decorate([
|
|
71832
|
+
Field({ nullable: true }),
|
|
71833
|
+
__metadata("design:type", String)
|
|
71834
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "ErrorMessage", void 0);
|
|
71835
|
+
__decorate([
|
|
71836
|
+
Field({ nullable: true }),
|
|
71837
|
+
__metadata("design:type", String)
|
|
71838
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "InputParameters", void 0);
|
|
71839
|
+
__decorate([
|
|
71840
|
+
Field({ nullable: true }),
|
|
71841
|
+
__metadata("design:type", String)
|
|
71842
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "OutputContent", void 0);
|
|
71843
|
+
__decorate([
|
|
71844
|
+
Field(() => Boolean, { nullable: true }),
|
|
71845
|
+
__metadata("design:type", Boolean)
|
|
71846
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "OutputTruncated", void 0);
|
|
71847
|
+
__decorate([
|
|
71848
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
71849
|
+
__metadata("design:type", Array)
|
|
71850
|
+
], UpdateMJMCPToolExecutionLogInput.prototype, "OldValues___", void 0);
|
|
71851
|
+
UpdateMJMCPToolExecutionLogInput = __decorate([
|
|
71852
|
+
InputType()
|
|
71853
|
+
], UpdateMJMCPToolExecutionLogInput);
|
|
71854
|
+
export { UpdateMJMCPToolExecutionLogInput };
|
|
71855
|
+
let RunMJMCPToolExecutionLogViewResult = class RunMJMCPToolExecutionLogViewResult {
|
|
71856
|
+
Results;
|
|
71857
|
+
UserViewRunID;
|
|
71858
|
+
RowCount;
|
|
71859
|
+
TotalRowCount;
|
|
71860
|
+
ExecutionTime;
|
|
71861
|
+
ErrorMessage;
|
|
71862
|
+
Success;
|
|
71863
|
+
};
|
|
71864
|
+
__decorate([
|
|
71865
|
+
Field(() => [MJMCPToolExecutionLog_]),
|
|
71866
|
+
__metadata("design:type", Array)
|
|
71867
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "Results", void 0);
|
|
71868
|
+
__decorate([
|
|
71869
|
+
Field(() => String, { nullable: true }),
|
|
71870
|
+
__metadata("design:type", String)
|
|
71871
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "UserViewRunID", void 0);
|
|
71872
|
+
__decorate([
|
|
71873
|
+
Field(() => Int, { nullable: true }),
|
|
71874
|
+
__metadata("design:type", Number)
|
|
71875
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "RowCount", void 0);
|
|
71876
|
+
__decorate([
|
|
71877
|
+
Field(() => Int, { nullable: true }),
|
|
71878
|
+
__metadata("design:type", Number)
|
|
71879
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "TotalRowCount", void 0);
|
|
71880
|
+
__decorate([
|
|
71881
|
+
Field(() => Int, { nullable: true }),
|
|
71882
|
+
__metadata("design:type", Number)
|
|
71883
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "ExecutionTime", void 0);
|
|
71884
|
+
__decorate([
|
|
71885
|
+
Field({ nullable: true }),
|
|
71886
|
+
__metadata("design:type", String)
|
|
71887
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "ErrorMessage", void 0);
|
|
71888
|
+
__decorate([
|
|
71889
|
+
Field(() => Boolean, { nullable: false }),
|
|
71890
|
+
__metadata("design:type", Boolean)
|
|
71891
|
+
], RunMJMCPToolExecutionLogViewResult.prototype, "Success", void 0);
|
|
71892
|
+
RunMJMCPToolExecutionLogViewResult = __decorate([
|
|
71893
|
+
ObjectType()
|
|
71894
|
+
], RunMJMCPToolExecutionLogViewResult);
|
|
71895
|
+
export { RunMJMCPToolExecutionLogViewResult };
|
|
71896
|
+
let MJMCPToolExecutionLogResolver = class MJMCPToolExecutionLogResolver extends ResolverBase {
|
|
71897
|
+
async RunMJMCPToolExecutionLogViewByID(input, { providers, userPayload }, pubSub) {
|
|
71898
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71899
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
71900
|
+
}
|
|
71901
|
+
async RunMJMCPToolExecutionLogViewByName(input, { providers, userPayload }, pubSub) {
|
|
71902
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71903
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
71904
|
+
}
|
|
71905
|
+
async RunMJMCPToolExecutionLogDynamicView(input, { providers, userPayload }, pubSub) {
|
|
71906
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71907
|
+
input.EntityName = 'MJ: MCP Tool Execution Logs';
|
|
71908
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
71909
|
+
}
|
|
71910
|
+
async MJMCPToolExecutionLog(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
71911
|
+
this.CheckUserReadPermissions('MJ: MCP Tool Execution Logs', userPayload);
|
|
71912
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
71913
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
71914
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPToolExecutionLogs] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
71915
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
71916
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
71917
|
+
return result;
|
|
71918
|
+
}
|
|
71919
|
+
async CreateMJMCPToolExecutionLog(input, { providers, userPayload }, pubSub) {
|
|
71920
|
+
const provider = GetReadWriteProvider(providers);
|
|
71921
|
+
return this.CreateRecord('MJ: MCP Tool Execution Logs', input, provider, userPayload, pubSub);
|
|
71922
|
+
}
|
|
71923
|
+
async UpdateMJMCPToolExecutionLog(input, { providers, userPayload }, pubSub) {
|
|
71924
|
+
const provider = GetReadWriteProvider(providers);
|
|
71925
|
+
return this.UpdateRecord('MJ: MCP Tool Execution Logs', input, provider, userPayload, pubSub);
|
|
71926
|
+
}
|
|
71927
|
+
async DeleteMJMCPToolExecutionLog(ID, options, { providers, userPayload }, pubSub) {
|
|
71928
|
+
const provider = GetReadWriteProvider(providers);
|
|
71929
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
71930
|
+
return this.DeleteRecord('MJ: MCP Tool Execution Logs', key, options, provider, userPayload, pubSub);
|
|
71931
|
+
}
|
|
71932
|
+
};
|
|
71933
|
+
__decorate([
|
|
71934
|
+
Query(() => RunMJMCPToolExecutionLogViewResult),
|
|
71935
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
71936
|
+
__param(1, Ctx()),
|
|
71937
|
+
__param(2, PubSub()),
|
|
71938
|
+
__metadata("design:type", Function),
|
|
71939
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
71940
|
+
__metadata("design:returntype", Promise)
|
|
71941
|
+
], MJMCPToolExecutionLogResolver.prototype, "RunMJMCPToolExecutionLogViewByID", null);
|
|
71942
|
+
__decorate([
|
|
71943
|
+
Query(() => RunMJMCPToolExecutionLogViewResult),
|
|
71944
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
71945
|
+
__param(1, Ctx()),
|
|
71946
|
+
__param(2, PubSub()),
|
|
71947
|
+
__metadata("design:type", Function),
|
|
71948
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
71949
|
+
__metadata("design:returntype", Promise)
|
|
71950
|
+
], MJMCPToolExecutionLogResolver.prototype, "RunMJMCPToolExecutionLogViewByName", null);
|
|
71951
|
+
__decorate([
|
|
71952
|
+
Query(() => RunMJMCPToolExecutionLogViewResult),
|
|
71953
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
71954
|
+
__param(1, Ctx()),
|
|
71955
|
+
__param(2, PubSub()),
|
|
71956
|
+
__metadata("design:type", Function),
|
|
71957
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
71958
|
+
__metadata("design:returntype", Promise)
|
|
71959
|
+
], MJMCPToolExecutionLogResolver.prototype, "RunMJMCPToolExecutionLogDynamicView", null);
|
|
71960
|
+
__decorate([
|
|
71961
|
+
Query(() => MJMCPToolExecutionLog_, { nullable: true }),
|
|
71962
|
+
__param(0, Arg('ID', () => String)),
|
|
71963
|
+
__param(1, Ctx()),
|
|
71964
|
+
__param(2, PubSub()),
|
|
71965
|
+
__metadata("design:type", Function),
|
|
71966
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
71967
|
+
__metadata("design:returntype", Promise)
|
|
71968
|
+
], MJMCPToolExecutionLogResolver.prototype, "MJMCPToolExecutionLog", null);
|
|
71969
|
+
__decorate([
|
|
71970
|
+
Mutation(() => MJMCPToolExecutionLog_),
|
|
71971
|
+
__param(0, Arg('input', () => CreateMJMCPToolExecutionLogInput)),
|
|
71972
|
+
__param(1, Ctx()),
|
|
71973
|
+
__param(2, PubSub()),
|
|
71974
|
+
__metadata("design:type", Function),
|
|
71975
|
+
__metadata("design:paramtypes", [CreateMJMCPToolExecutionLogInput, Object, PubSubEngine]),
|
|
71976
|
+
__metadata("design:returntype", Promise)
|
|
71977
|
+
], MJMCPToolExecutionLogResolver.prototype, "CreateMJMCPToolExecutionLog", null);
|
|
71978
|
+
__decorate([
|
|
71979
|
+
Mutation(() => MJMCPToolExecutionLog_),
|
|
71980
|
+
__param(0, Arg('input', () => UpdateMJMCPToolExecutionLogInput)),
|
|
71981
|
+
__param(1, Ctx()),
|
|
71982
|
+
__param(2, PubSub()),
|
|
71983
|
+
__metadata("design:type", Function),
|
|
71984
|
+
__metadata("design:paramtypes", [UpdateMJMCPToolExecutionLogInput, Object, PubSubEngine]),
|
|
71985
|
+
__metadata("design:returntype", Promise)
|
|
71986
|
+
], MJMCPToolExecutionLogResolver.prototype, "UpdateMJMCPToolExecutionLog", null);
|
|
71987
|
+
__decorate([
|
|
71988
|
+
Mutation(() => MJMCPToolExecutionLog_),
|
|
71989
|
+
__param(0, Arg('ID', () => String)),
|
|
71990
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
71991
|
+
__param(2, Ctx()),
|
|
71992
|
+
__param(3, PubSub()),
|
|
71993
|
+
__metadata("design:type", Function),
|
|
71994
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
71995
|
+
__metadata("design:returntype", Promise)
|
|
71996
|
+
], MJMCPToolExecutionLogResolver.prototype, "DeleteMJMCPToolExecutionLog", null);
|
|
71997
|
+
MJMCPToolExecutionLogResolver = __decorate([
|
|
71998
|
+
Resolver(MJMCPToolExecutionLog_)
|
|
71999
|
+
], MJMCPToolExecutionLogResolver);
|
|
72000
|
+
export { MJMCPToolExecutionLogResolver };
|
|
72001
|
+
let MJProject_ = class MJProject_ {
|
|
72002
|
+
ID;
|
|
72003
|
+
EnvironmentID;
|
|
72004
|
+
ParentID;
|
|
72005
|
+
Name;
|
|
72006
|
+
Description;
|
|
72007
|
+
Color;
|
|
72008
|
+
Icon;
|
|
72009
|
+
IsArchived;
|
|
72010
|
+
_mj__CreatedAt;
|
|
72011
|
+
_mj__UpdatedAt;
|
|
72012
|
+
Environment;
|
|
72013
|
+
Parent;
|
|
72014
|
+
RootParentID;
|
|
72015
|
+
MJ_Projects_ParentIDArray;
|
|
72016
|
+
Conversations_ProjectIDArray;
|
|
72017
|
+
MJ_Tasks_ProjectIDArray;
|
|
72018
|
+
};
|
|
72019
|
+
__decorate([
|
|
72020
|
+
Field(),
|
|
72021
|
+
MaxLength(16),
|
|
72022
|
+
__metadata("design:type", String)
|
|
72023
|
+
], MJProject_.prototype, "ID", void 0);
|
|
72024
|
+
__decorate([
|
|
72025
|
+
Field(),
|
|
72026
|
+
MaxLength(16),
|
|
72027
|
+
__metadata("design:type", String)
|
|
72028
|
+
], MJProject_.prototype, "EnvironmentID", void 0);
|
|
72029
|
+
__decorate([
|
|
72030
|
+
Field({ nullable: true }),
|
|
72031
|
+
MaxLength(16),
|
|
72032
|
+
__metadata("design:type", String)
|
|
72033
|
+
], MJProject_.prototype, "ParentID", void 0);
|
|
72034
|
+
__decorate([
|
|
72035
|
+
Field({ description: `Display name for the project` }),
|
|
72036
|
+
MaxLength(510),
|
|
72037
|
+
__metadata("design:type", String)
|
|
72038
|
+
], MJProject_.prototype, "Name", void 0);
|
|
72039
|
+
__decorate([
|
|
72040
|
+
Field({ nullable: true, description: `Detailed description of the project goals and scope` }),
|
|
72041
|
+
__metadata("design:type", String)
|
|
72042
|
+
], MJProject_.prototype, "Description", void 0);
|
|
72043
|
+
__decorate([
|
|
72044
|
+
Field({ nullable: true, description: `Hex color code for project badges in UI (#RRGGBB format)` }),
|
|
72045
|
+
MaxLength(14),
|
|
72046
|
+
__metadata("design:type", String)
|
|
72047
|
+
], MJProject_.prototype, "Color", void 0);
|
|
72048
|
+
__decorate([
|
|
72049
|
+
Field({ nullable: true, description: `Font Awesome icon class for UI display` }),
|
|
72050
|
+
MaxLength(100),
|
|
72051
|
+
__metadata("design:type", String)
|
|
72052
|
+
], MJProject_.prototype, "Icon", void 0);
|
|
72053
|
+
__decorate([
|
|
72054
|
+
Field(() => Boolean, { description: `Indicates if this project is archived and should be hidden from active lists` }),
|
|
72055
|
+
__metadata("design:type", Boolean)
|
|
72056
|
+
], MJProject_.prototype, "IsArchived", void 0);
|
|
72057
|
+
__decorate([
|
|
72058
|
+
Field(),
|
|
72059
|
+
MaxLength(10),
|
|
72060
|
+
__metadata("design:type", Date)
|
|
72061
|
+
], MJProject_.prototype, "_mj__CreatedAt", void 0);
|
|
72062
|
+
__decorate([
|
|
72063
|
+
Field(),
|
|
72064
|
+
MaxLength(10),
|
|
72065
|
+
__metadata("design:type", Date)
|
|
72066
|
+
], MJProject_.prototype, "_mj__UpdatedAt", void 0);
|
|
72067
|
+
__decorate([
|
|
72068
|
+
Field(),
|
|
72069
|
+
MaxLength(510),
|
|
72070
|
+
__metadata("design:type", String)
|
|
72071
|
+
], MJProject_.prototype, "Environment", void 0);
|
|
72072
|
+
__decorate([
|
|
72073
|
+
Field({ nullable: true }),
|
|
72074
|
+
MaxLength(510),
|
|
72075
|
+
__metadata("design:type", String)
|
|
72076
|
+
], MJProject_.prototype, "Parent", void 0);
|
|
72077
|
+
__decorate([
|
|
72078
|
+
Field({ nullable: true }),
|
|
72079
|
+
MaxLength(16),
|
|
72080
|
+
__metadata("design:type", String)
|
|
72081
|
+
], MJProject_.prototype, "RootParentID", void 0);
|
|
72082
|
+
__decorate([
|
|
72083
|
+
Field(() => [MJProject_]),
|
|
72084
|
+
__metadata("design:type", Array)
|
|
72085
|
+
], MJProject_.prototype, "MJ_Projects_ParentIDArray", void 0);
|
|
72086
|
+
__decorate([
|
|
72087
|
+
Field(() => [MJConversation_]),
|
|
72088
|
+
__metadata("design:type", Array)
|
|
72089
|
+
], MJProject_.prototype, "Conversations_ProjectIDArray", void 0);
|
|
72090
|
+
__decorate([
|
|
72091
|
+
Field(() => [MJTask_]),
|
|
72092
|
+
__metadata("design:type", Array)
|
|
72093
|
+
], MJProject_.prototype, "MJ_Tasks_ProjectIDArray", void 0);
|
|
72094
|
+
MJProject_ = __decorate([
|
|
72095
|
+
ObjectType({ description: `Container for grouping related conversations around a common topic, client, or initiative. Supports nesting for sub-projects.` })
|
|
72096
|
+
], MJProject_);
|
|
72097
|
+
export { MJProject_ };
|
|
72098
|
+
let CreateMJProjectInput = class CreateMJProjectInput {
|
|
72099
|
+
ID;
|
|
72100
|
+
EnvironmentID;
|
|
72101
|
+
ParentID;
|
|
72102
|
+
Name;
|
|
72103
|
+
Description;
|
|
72104
|
+
Color;
|
|
72105
|
+
Icon;
|
|
72106
|
+
IsArchived;
|
|
72107
|
+
};
|
|
72108
|
+
__decorate([
|
|
72109
|
+
Field({ nullable: true }),
|
|
72110
|
+
__metadata("design:type", String)
|
|
72111
|
+
], CreateMJProjectInput.prototype, "ID", void 0);
|
|
72112
|
+
__decorate([
|
|
72113
|
+
Field({ nullable: true }),
|
|
72114
|
+
__metadata("design:type", String)
|
|
72115
|
+
], CreateMJProjectInput.prototype, "EnvironmentID", void 0);
|
|
72116
|
+
__decorate([
|
|
72117
|
+
Field({ nullable: true }),
|
|
72118
|
+
__metadata("design:type", String)
|
|
72119
|
+
], CreateMJProjectInput.prototype, "ParentID", void 0);
|
|
72120
|
+
__decorate([
|
|
72121
|
+
Field({ nullable: true }),
|
|
72122
|
+
__metadata("design:type", String)
|
|
72123
|
+
], CreateMJProjectInput.prototype, "Name", void 0);
|
|
72124
|
+
__decorate([
|
|
72125
|
+
Field({ nullable: true }),
|
|
72126
|
+
__metadata("design:type", String)
|
|
72127
|
+
], CreateMJProjectInput.prototype, "Description", void 0);
|
|
72128
|
+
__decorate([
|
|
72129
|
+
Field({ nullable: true }),
|
|
72130
|
+
__metadata("design:type", String)
|
|
72131
|
+
], CreateMJProjectInput.prototype, "Color", void 0);
|
|
72132
|
+
__decorate([
|
|
72133
|
+
Field({ nullable: true }),
|
|
72134
|
+
__metadata("design:type", String)
|
|
72135
|
+
], CreateMJProjectInput.prototype, "Icon", void 0);
|
|
72136
|
+
__decorate([
|
|
72137
|
+
Field(() => Boolean, { nullable: true }),
|
|
72138
|
+
__metadata("design:type", Boolean)
|
|
72139
|
+
], CreateMJProjectInput.prototype, "IsArchived", void 0);
|
|
72140
|
+
CreateMJProjectInput = __decorate([
|
|
72141
|
+
InputType()
|
|
72142
|
+
], CreateMJProjectInput);
|
|
72143
|
+
export { CreateMJProjectInput };
|
|
72144
|
+
let UpdateMJProjectInput = class UpdateMJProjectInput {
|
|
72145
|
+
ID;
|
|
72146
|
+
EnvironmentID;
|
|
72147
|
+
ParentID;
|
|
72148
|
+
Name;
|
|
72149
|
+
Description;
|
|
72150
|
+
Color;
|
|
72151
|
+
Icon;
|
|
72152
|
+
IsArchived;
|
|
72153
|
+
OldValues___;
|
|
72154
|
+
};
|
|
72155
|
+
__decorate([
|
|
72156
|
+
Field(),
|
|
72157
|
+
__metadata("design:type", String)
|
|
72158
|
+
], UpdateMJProjectInput.prototype, "ID", void 0);
|
|
72159
|
+
__decorate([
|
|
72160
|
+
Field({ nullable: true }),
|
|
72161
|
+
__metadata("design:type", String)
|
|
72162
|
+
], UpdateMJProjectInput.prototype, "EnvironmentID", void 0);
|
|
72163
|
+
__decorate([
|
|
72164
|
+
Field({ nullable: true }),
|
|
72165
|
+
__metadata("design:type", String)
|
|
72166
|
+
], UpdateMJProjectInput.prototype, "ParentID", void 0);
|
|
72167
|
+
__decorate([
|
|
72168
|
+
Field({ nullable: true }),
|
|
72169
|
+
__metadata("design:type", String)
|
|
72170
|
+
], UpdateMJProjectInput.prototype, "Name", void 0);
|
|
72171
|
+
__decorate([
|
|
72172
|
+
Field({ nullable: true }),
|
|
72173
|
+
__metadata("design:type", String)
|
|
72174
|
+
], UpdateMJProjectInput.prototype, "Description", void 0);
|
|
72175
|
+
__decorate([
|
|
72176
|
+
Field({ nullable: true }),
|
|
72177
|
+
__metadata("design:type", String)
|
|
72178
|
+
], UpdateMJProjectInput.prototype, "Color", void 0);
|
|
72179
|
+
__decorate([
|
|
72180
|
+
Field({ nullable: true }),
|
|
72181
|
+
__metadata("design:type", String)
|
|
72182
|
+
], UpdateMJProjectInput.prototype, "Icon", void 0);
|
|
72183
|
+
__decorate([
|
|
72184
|
+
Field(() => Boolean, { nullable: true }),
|
|
72185
|
+
__metadata("design:type", Boolean)
|
|
72186
|
+
], UpdateMJProjectInput.prototype, "IsArchived", void 0);
|
|
72187
|
+
__decorate([
|
|
72188
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
72189
|
+
__metadata("design:type", Array)
|
|
72190
|
+
], UpdateMJProjectInput.prototype, "OldValues___", void 0);
|
|
72191
|
+
UpdateMJProjectInput = __decorate([
|
|
72192
|
+
InputType()
|
|
72193
|
+
], UpdateMJProjectInput);
|
|
72194
|
+
export { UpdateMJProjectInput };
|
|
72195
|
+
let RunMJProjectViewResult = class RunMJProjectViewResult {
|
|
72196
|
+
Results;
|
|
72197
|
+
UserViewRunID;
|
|
72198
|
+
RowCount;
|
|
72199
|
+
TotalRowCount;
|
|
72200
|
+
ExecutionTime;
|
|
72201
|
+
ErrorMessage;
|
|
72202
|
+
Success;
|
|
72203
|
+
};
|
|
72204
|
+
__decorate([
|
|
72205
|
+
Field(() => [MJProject_]),
|
|
72206
|
+
__metadata("design:type", Array)
|
|
72207
|
+
], RunMJProjectViewResult.prototype, "Results", void 0);
|
|
72208
|
+
__decorate([
|
|
72209
|
+
Field(() => String, { nullable: true }),
|
|
72210
|
+
__metadata("design:type", String)
|
|
72211
|
+
], RunMJProjectViewResult.prototype, "UserViewRunID", void 0);
|
|
72212
|
+
__decorate([
|
|
72213
|
+
Field(() => Int, { nullable: true }),
|
|
72214
|
+
__metadata("design:type", Number)
|
|
72215
|
+
], RunMJProjectViewResult.prototype, "RowCount", void 0);
|
|
72216
|
+
__decorate([
|
|
72217
|
+
Field(() => Int, { nullable: true }),
|
|
72218
|
+
__metadata("design:type", Number)
|
|
72219
|
+
], RunMJProjectViewResult.prototype, "TotalRowCount", void 0);
|
|
72220
|
+
__decorate([
|
|
72221
|
+
Field(() => Int, { nullable: true }),
|
|
72222
|
+
__metadata("design:type", Number)
|
|
72223
|
+
], RunMJProjectViewResult.prototype, "ExecutionTime", void 0);
|
|
72224
|
+
__decorate([
|
|
72225
|
+
Field({ nullable: true }),
|
|
72226
|
+
__metadata("design:type", String)
|
|
72227
|
+
], RunMJProjectViewResult.prototype, "ErrorMessage", void 0);
|
|
72228
|
+
__decorate([
|
|
72229
|
+
Field(() => Boolean, { nullable: false }),
|
|
72230
|
+
__metadata("design:type", Boolean)
|
|
72231
|
+
], RunMJProjectViewResult.prototype, "Success", void 0);
|
|
72232
|
+
RunMJProjectViewResult = __decorate([
|
|
72233
|
+
ObjectType()
|
|
72234
|
+
], RunMJProjectViewResult);
|
|
72235
|
+
export { RunMJProjectViewResult };
|
|
72236
|
+
let MJProjectResolver = class MJProjectResolver extends ResolverBase {
|
|
72237
|
+
async RunMJProjectViewByID(input, { providers, userPayload }, pubSub) {
|
|
72238
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72239
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
72240
|
+
}
|
|
72241
|
+
async RunMJProjectViewByName(input, { providers, userPayload }, pubSub) {
|
|
72242
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72243
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
72244
|
+
}
|
|
72245
|
+
async RunMJProjectDynamicView(input, { providers, userPayload }, pubSub) {
|
|
72246
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72247
|
+
input.EntityName = 'MJ: Projects';
|
|
72248
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
72249
|
+
}
|
|
72250
|
+
async MJProject(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
72251
|
+
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
72252
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72253
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
72254
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
72255
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
72256
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Projects', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
72257
|
+
return result;
|
|
72258
|
+
}
|
|
72259
|
+
async MJ_Projects_ParentIDArray(mjproject_, { dataSources, userPayload, providers }, pubSub) {
|
|
72260
|
+
this.CheckUserReadPermissions('MJ: Projects', userPayload);
|
|
72261
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72262
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
72263
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwProjects] WHERE [ParentID]='${mjproject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Projects', userPayload, EntityPermissionType.Read, 'AND');
|
|
72264
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
72265
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Projects', rows, this.GetUserFromPayload(userPayload));
|
|
72266
|
+
return result;
|
|
72267
|
+
}
|
|
72268
|
+
async Conversations_ProjectIDArray(mjproject_, { dataSources, userPayload, providers }, pubSub) {
|
|
72269
|
+
this.CheckUserReadPermissions('Conversations', userPayload);
|
|
72270
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72271
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
72272
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwConversations] WHERE [ProjectID]='${mjproject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'Conversations', userPayload, EntityPermissionType.Read, 'AND');
|
|
72273
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
72274
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('Conversations', rows, this.GetUserFromPayload(userPayload));
|
|
72275
|
+
return result;
|
|
72276
|
+
}
|
|
72277
|
+
async MJ_Tasks_ProjectIDArray(mjproject_, { dataSources, userPayload, providers }, pubSub) {
|
|
72278
|
+
this.CheckUserReadPermissions('MJ: Tasks', userPayload);
|
|
72279
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72280
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
72281
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwTasks] WHERE [ProjectID]='${mjproject_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tasks', userPayload, EntityPermissionType.Read, 'AND');
|
|
72282
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
72283
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tasks', rows, this.GetUserFromPayload(userPayload));
|
|
72284
|
+
return result;
|
|
72285
|
+
}
|
|
72286
|
+
async CreateMJProject(input, { providers, userPayload }, pubSub) {
|
|
72287
|
+
const provider = GetReadWriteProvider(providers);
|
|
72288
|
+
return this.CreateRecord('MJ: Projects', input, provider, userPayload, pubSub);
|
|
72289
|
+
}
|
|
72290
|
+
async UpdateMJProject(input, { providers, userPayload }, pubSub) {
|
|
72291
|
+
const provider = GetReadWriteProvider(providers);
|
|
72292
|
+
return this.UpdateRecord('MJ: Projects', input, provider, userPayload, pubSub);
|
|
72293
|
+
}
|
|
72294
|
+
async DeleteMJProject(ID, options, { providers, userPayload }, pubSub) {
|
|
72295
|
+
const provider = GetReadWriteProvider(providers);
|
|
72296
|
+
const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
|
|
72297
|
+
return this.DeleteRecord('MJ: Projects', key, options, provider, userPayload, pubSub);
|
|
72298
|
+
}
|
|
72299
|
+
};
|
|
72300
|
+
__decorate([
|
|
72301
|
+
Query(() => RunMJProjectViewResult),
|
|
72302
|
+
__param(0, Arg('input', () => RunViewByIDInput)),
|
|
72303
|
+
__param(1, Ctx()),
|
|
72304
|
+
__param(2, PubSub()),
|
|
72305
|
+
__metadata("design:type", Function),
|
|
72306
|
+
__metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
|
|
72307
|
+
__metadata("design:returntype", Promise)
|
|
72308
|
+
], MJProjectResolver.prototype, "RunMJProjectViewByID", null);
|
|
72309
|
+
__decorate([
|
|
72310
|
+
Query(() => RunMJProjectViewResult),
|
|
72311
|
+
__param(0, Arg('input', () => RunViewByNameInput)),
|
|
72312
|
+
__param(1, Ctx()),
|
|
72313
|
+
__param(2, PubSub()),
|
|
72314
|
+
__metadata("design:type", Function),
|
|
72315
|
+
__metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
|
|
72316
|
+
__metadata("design:returntype", Promise)
|
|
72317
|
+
], MJProjectResolver.prototype, "RunMJProjectViewByName", null);
|
|
72318
|
+
__decorate([
|
|
72319
|
+
Query(() => RunMJProjectViewResult),
|
|
72320
|
+
__param(0, Arg('input', () => RunDynamicViewInput)),
|
|
72321
|
+
__param(1, Ctx()),
|
|
72322
|
+
__param(2, PubSub()),
|
|
72323
|
+
__metadata("design:type", Function),
|
|
72324
|
+
__metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
|
|
72325
|
+
__metadata("design:returntype", Promise)
|
|
72326
|
+
], MJProjectResolver.prototype, "RunMJProjectDynamicView", null);
|
|
72327
|
+
__decorate([
|
|
72328
|
+
Query(() => MJProject_, { nullable: true }),
|
|
72329
|
+
__param(0, Arg('ID', () => String)),
|
|
72330
|
+
__param(1, Ctx()),
|
|
72331
|
+
__param(2, PubSub()),
|
|
72332
|
+
__metadata("design:type", Function),
|
|
72333
|
+
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
72334
|
+
__metadata("design:returntype", Promise)
|
|
72335
|
+
], MJProjectResolver.prototype, "MJProject", null);
|
|
72336
|
+
__decorate([
|
|
72337
|
+
FieldResolver(() => [MJProject_]),
|
|
72338
|
+
__param(0, Root()),
|
|
72339
|
+
__param(1, Ctx()),
|
|
72340
|
+
__param(2, PubSub()),
|
|
72341
|
+
__metadata("design:type", Function),
|
|
72342
|
+
__metadata("design:paramtypes", [MJProject_, Object, PubSubEngine]),
|
|
72343
|
+
__metadata("design:returntype", Promise)
|
|
72344
|
+
], MJProjectResolver.prototype, "MJ_Projects_ParentIDArray", null);
|
|
72345
|
+
__decorate([
|
|
72346
|
+
FieldResolver(() => [MJConversation_]),
|
|
72347
|
+
__param(0, Root()),
|
|
72348
|
+
__param(1, Ctx()),
|
|
72349
|
+
__param(2, PubSub()),
|
|
72350
|
+
__metadata("design:type", Function),
|
|
72351
|
+
__metadata("design:paramtypes", [MJProject_, Object, PubSubEngine]),
|
|
72352
|
+
__metadata("design:returntype", Promise)
|
|
72353
|
+
], MJProjectResolver.prototype, "Conversations_ProjectIDArray", null);
|
|
72354
|
+
__decorate([
|
|
72355
|
+
FieldResolver(() => [MJTask_]),
|
|
72356
|
+
__param(0, Root()),
|
|
72357
|
+
__param(1, Ctx()),
|
|
72358
|
+
__param(2, PubSub()),
|
|
72359
|
+
__metadata("design:type", Function),
|
|
72360
|
+
__metadata("design:paramtypes", [MJProject_, Object, PubSubEngine]),
|
|
72361
|
+
__metadata("design:returntype", Promise)
|
|
72362
|
+
], MJProjectResolver.prototype, "MJ_Tasks_ProjectIDArray", null);
|
|
72363
|
+
__decorate([
|
|
72364
|
+
Mutation(() => MJProject_),
|
|
72365
|
+
__param(0, Arg('input', () => CreateMJProjectInput)),
|
|
72366
|
+
__param(1, Ctx()),
|
|
72367
|
+
__param(2, PubSub()),
|
|
72368
|
+
__metadata("design:type", Function),
|
|
72369
|
+
__metadata("design:paramtypes", [CreateMJProjectInput, Object, PubSubEngine]),
|
|
72370
|
+
__metadata("design:returntype", Promise)
|
|
72371
|
+
], MJProjectResolver.prototype, "CreateMJProject", null);
|
|
72372
|
+
__decorate([
|
|
72373
|
+
Mutation(() => MJProject_),
|
|
72374
|
+
__param(0, Arg('input', () => UpdateMJProjectInput)),
|
|
72375
|
+
__param(1, Ctx()),
|
|
72376
|
+
__param(2, PubSub()),
|
|
72377
|
+
__metadata("design:type", Function),
|
|
72378
|
+
__metadata("design:paramtypes", [UpdateMJProjectInput, Object, PubSubEngine]),
|
|
72379
|
+
__metadata("design:returntype", Promise)
|
|
72380
|
+
], MJProjectResolver.prototype, "UpdateMJProject", null);
|
|
72381
|
+
__decorate([
|
|
72382
|
+
Mutation(() => MJProject_),
|
|
72383
|
+
__param(0, Arg('ID', () => String)),
|
|
72384
|
+
__param(1, Arg('options___', () => DeleteOptionsInput)),
|
|
72385
|
+
__param(2, Ctx()),
|
|
72386
|
+
__param(3, PubSub()),
|
|
72387
|
+
__metadata("design:type", Function),
|
|
72388
|
+
__metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
|
|
72389
|
+
__metadata("design:returntype", Promise)
|
|
72390
|
+
], MJProjectResolver.prototype, "DeleteMJProject", null);
|
|
72391
|
+
MJProjectResolver = __decorate([
|
|
72392
|
+
Resolver(MJProject_)
|
|
72393
|
+
], MJProjectResolver);
|
|
72394
|
+
export { MJProjectResolver };
|
|
72395
|
+
let MJPublicLink_ = class MJPublicLink_ {
|
|
72396
|
+
ID;
|
|
72397
|
+
ResourceType;
|
|
72398
|
+
ResourceID;
|
|
72399
|
+
Token;
|
|
72400
|
+
PasswordHash;
|
|
72401
|
+
ExpiresAt;
|
|
72402
|
+
MaxViews;
|
|
72403
|
+
CurrentViews;
|
|
72404
|
+
UserID;
|
|
72405
|
+
IsActive;
|
|
72406
|
+
_mj__CreatedAt;
|
|
72407
|
+
_mj__UpdatedAt;
|
|
72408
|
+
User;
|
|
72409
|
+
};
|
|
72410
|
+
__decorate([
|
|
72411
|
+
Field(),
|
|
72412
|
+
MaxLength(16),
|
|
72413
|
+
__metadata("design:type", String)
|
|
72414
|
+
], MJPublicLink_.prototype, "ID", void 0);
|
|
72415
|
+
__decorate([
|
|
72416
|
+
Field({ description: `Type of resource being shared (Artifact, Conversation, Collection)` }),
|
|
72417
|
+
MaxLength(100),
|
|
72418
|
+
__metadata("design:type", String)
|
|
72419
|
+
], MJPublicLink_.prototype, "ResourceType", void 0);
|
|
72420
|
+
__decorate([
|
|
72421
|
+
Field(),
|
|
72422
|
+
MaxLength(16),
|
|
72423
|
+
__metadata("design:type", String)
|
|
72424
|
+
], MJPublicLink_.prototype, "ResourceID", void 0);
|
|
72425
|
+
__decorate([
|
|
72426
|
+
Field({ description: `Unique token for accessing the shared resource via URL` }),
|
|
72427
|
+
MaxLength(510),
|
|
72428
|
+
__metadata("design:type", String)
|
|
72429
|
+
], MJPublicLink_.prototype, "Token", void 0);
|
|
72430
|
+
__decorate([
|
|
72431
|
+
Field({ nullable: true, description: `SHA256 hash of optional password for additional security` }),
|
|
72432
|
+
MaxLength(510),
|
|
72433
|
+
__metadata("design:type", String)
|
|
72434
|
+
], MJPublicLink_.prototype, "PasswordHash", void 0);
|
|
72435
|
+
__decorate([
|
|
72436
|
+
Field({ nullable: true, description: `Optional expiration date/time for this public link` }),
|
|
72437
|
+
MaxLength(10),
|
|
72438
|
+
__metadata("design:type", Date)
|
|
72439
|
+
], MJPublicLink_.prototype, "ExpiresAt", void 0);
|
|
72440
|
+
__decorate([
|
|
72441
|
+
Field(() => Int, { nullable: true, description: `Maximum number of times this link can be viewed` }),
|
|
72442
|
+
__metadata("design:type", Number)
|
|
72443
|
+
], MJPublicLink_.prototype, "MaxViews", void 0);
|
|
72444
|
+
__decorate([
|
|
72445
|
+
Field(() => Int, { description: `Current count of how many times this link has been viewed` }),
|
|
72446
|
+
__metadata("design:type", Number)
|
|
72447
|
+
], MJPublicLink_.prototype, "CurrentViews", void 0);
|
|
72448
|
+
__decorate([
|
|
72449
|
+
Field(),
|
|
72450
|
+
MaxLength(16),
|
|
72451
|
+
__metadata("design:type", String)
|
|
72452
|
+
], MJPublicLink_.prototype, "UserID", void 0);
|
|
72453
|
+
__decorate([
|
|
72454
|
+
Field(() => Boolean, { description: `Indicates if this link is currently active and accessible` }),
|
|
72455
|
+
__metadata("design:type", Boolean)
|
|
72456
|
+
], MJPublicLink_.prototype, "IsActive", void 0);
|
|
72457
|
+
__decorate([
|
|
72458
|
+
Field(),
|
|
72459
|
+
MaxLength(10),
|
|
72460
|
+
__metadata("design:type", Date)
|
|
72461
|
+
], MJPublicLink_.prototype, "_mj__CreatedAt", void 0);
|
|
72462
|
+
__decorate([
|
|
72463
|
+
Field(),
|
|
72464
|
+
MaxLength(10),
|
|
72465
|
+
__metadata("design:type", Date)
|
|
72466
|
+
], MJPublicLink_.prototype, "_mj__UpdatedAt", void 0);
|
|
72467
|
+
__decorate([
|
|
72468
|
+
Field(),
|
|
72469
|
+
MaxLength(200),
|
|
72470
|
+
__metadata("design:type", String)
|
|
72471
|
+
], MJPublicLink_.prototype, "User", void 0);
|
|
72472
|
+
MJPublicLink_ = __decorate([
|
|
72473
|
+
ObjectType({ description: `Shareable links for external access to artifacts and other resources. Supports password protection and expiration.` })
|
|
72474
|
+
], MJPublicLink_);
|
|
72475
|
+
export { MJPublicLink_ };
|
|
72476
|
+
let CreateMJPublicLinkInput = class CreateMJPublicLinkInput {
|
|
72477
|
+
ID;
|
|
72478
|
+
ResourceType;
|
|
72479
|
+
ResourceID;
|
|
72480
|
+
Token;
|
|
72481
|
+
PasswordHash;
|
|
72482
|
+
ExpiresAt;
|
|
72483
|
+
MaxViews;
|
|
72484
|
+
CurrentViews;
|
|
72485
|
+
UserID;
|
|
72486
|
+
IsActive;
|
|
72487
|
+
};
|
|
72488
|
+
__decorate([
|
|
72489
|
+
Field({ nullable: true }),
|
|
72490
|
+
__metadata("design:type", String)
|
|
72491
|
+
], CreateMJPublicLinkInput.prototype, "ID", void 0);
|
|
72492
|
+
__decorate([
|
|
72493
|
+
Field({ nullable: true }),
|
|
72494
|
+
__metadata("design:type", String)
|
|
72495
|
+
], CreateMJPublicLinkInput.prototype, "ResourceType", void 0);
|
|
72496
|
+
__decorate([
|
|
72497
|
+
Field({ nullable: true }),
|
|
72498
|
+
__metadata("design:type", String)
|
|
72499
|
+
], CreateMJPublicLinkInput.prototype, "ResourceID", void 0);
|
|
72500
|
+
__decorate([
|
|
72501
|
+
Field({ nullable: true }),
|
|
72502
|
+
__metadata("design:type", String)
|
|
72503
|
+
], CreateMJPublicLinkInput.prototype, "Token", void 0);
|
|
72504
|
+
__decorate([
|
|
72505
|
+
Field({ nullable: true }),
|
|
72506
|
+
__metadata("design:type", String)
|
|
72507
|
+
], CreateMJPublicLinkInput.prototype, "PasswordHash", void 0);
|
|
72508
|
+
__decorate([
|
|
72509
|
+
Field({ nullable: true }),
|
|
72510
|
+
__metadata("design:type", Date)
|
|
72511
|
+
], CreateMJPublicLinkInput.prototype, "ExpiresAt", void 0);
|
|
72512
|
+
__decorate([
|
|
72513
|
+
Field(() => Int, { nullable: true }),
|
|
72514
|
+
__metadata("design:type", Number)
|
|
72515
|
+
], CreateMJPublicLinkInput.prototype, "MaxViews", void 0);
|
|
72516
|
+
__decorate([
|
|
72517
|
+
Field(() => Int, { nullable: true }),
|
|
72518
|
+
__metadata("design:type", Number)
|
|
72519
|
+
], CreateMJPublicLinkInput.prototype, "CurrentViews", void 0);
|
|
72520
|
+
__decorate([
|
|
72521
|
+
Field({ nullable: true }),
|
|
72522
|
+
__metadata("design:type", String)
|
|
72523
|
+
], CreateMJPublicLinkInput.prototype, "UserID", void 0);
|
|
72524
|
+
__decorate([
|
|
72525
|
+
Field(() => Boolean, { nullable: true }),
|
|
72526
|
+
__metadata("design:type", Boolean)
|
|
72527
|
+
], CreateMJPublicLinkInput.prototype, "IsActive", void 0);
|
|
72528
|
+
CreateMJPublicLinkInput = __decorate([
|
|
72529
|
+
InputType()
|
|
72530
|
+
], CreateMJPublicLinkInput);
|
|
72531
|
+
export { CreateMJPublicLinkInput };
|
|
72532
|
+
let UpdateMJPublicLinkInput = class UpdateMJPublicLinkInput {
|
|
72533
|
+
ID;
|
|
72534
|
+
ResourceType;
|
|
72535
|
+
ResourceID;
|
|
72536
|
+
Token;
|
|
72537
|
+
PasswordHash;
|
|
72538
|
+
ExpiresAt;
|
|
72539
|
+
MaxViews;
|
|
72540
|
+
CurrentViews;
|
|
72541
|
+
UserID;
|
|
72542
|
+
IsActive;
|
|
72543
|
+
OldValues___;
|
|
72544
|
+
};
|
|
72545
|
+
__decorate([
|
|
72546
|
+
Field(),
|
|
72547
|
+
__metadata("design:type", String)
|
|
72548
|
+
], UpdateMJPublicLinkInput.prototype, "ID", void 0);
|
|
72549
|
+
__decorate([
|
|
72550
|
+
Field({ nullable: true }),
|
|
72551
|
+
__metadata("design:type", String)
|
|
72552
|
+
], UpdateMJPublicLinkInput.prototype, "ResourceType", void 0);
|
|
72553
|
+
__decorate([
|
|
72554
|
+
Field({ nullable: true }),
|
|
72555
|
+
__metadata("design:type", String)
|
|
72556
|
+
], UpdateMJPublicLinkInput.prototype, "ResourceID", void 0);
|
|
72557
|
+
__decorate([
|
|
72558
|
+
Field({ nullable: true }),
|
|
72559
|
+
__metadata("design:type", String)
|
|
72560
|
+
], UpdateMJPublicLinkInput.prototype, "Token", void 0);
|
|
72561
|
+
__decorate([
|
|
72562
|
+
Field({ nullable: true }),
|
|
72563
|
+
__metadata("design:type", String)
|
|
72564
|
+
], UpdateMJPublicLinkInput.prototype, "PasswordHash", void 0);
|
|
72565
|
+
__decorate([
|
|
72566
|
+
Field({ nullable: true }),
|
|
72567
|
+
__metadata("design:type", Date)
|
|
72568
|
+
], UpdateMJPublicLinkInput.prototype, "ExpiresAt", void 0);
|
|
72569
|
+
__decorate([
|
|
72570
|
+
Field(() => Int, { nullable: true }),
|
|
72571
|
+
__metadata("design:type", Number)
|
|
72572
|
+
], UpdateMJPublicLinkInput.prototype, "MaxViews", void 0);
|
|
72573
|
+
__decorate([
|
|
72574
|
+
Field(() => Int, { nullable: true }),
|
|
72575
|
+
__metadata("design:type", Number)
|
|
72576
|
+
], UpdateMJPublicLinkInput.prototype, "CurrentViews", void 0);
|
|
72577
|
+
__decorate([
|
|
72578
|
+
Field({ nullable: true }),
|
|
72579
|
+
__metadata("design:type", String)
|
|
72580
|
+
], UpdateMJPublicLinkInput.prototype, "UserID", void 0);
|
|
72581
|
+
__decorate([
|
|
72582
|
+
Field(() => Boolean, { nullable: true }),
|
|
72583
|
+
__metadata("design:type", Boolean)
|
|
72584
|
+
], UpdateMJPublicLinkInput.prototype, "IsActive", void 0);
|
|
72585
|
+
__decorate([
|
|
72586
|
+
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
72587
|
+
__metadata("design:type", Array)
|
|
72588
|
+
], UpdateMJPublicLinkInput.prototype, "OldValues___", void 0);
|
|
72589
|
+
UpdateMJPublicLinkInput = __decorate([
|
|
72590
|
+
InputType()
|
|
72591
|
+
], UpdateMJPublicLinkInput);
|
|
72592
|
+
export { UpdateMJPublicLinkInput };
|
|
72593
|
+
let RunMJPublicLinkViewResult = class RunMJPublicLinkViewResult {
|
|
72594
|
+
Results;
|
|
72595
|
+
UserViewRunID;
|
|
72596
|
+
RowCount;
|
|
72597
|
+
TotalRowCount;
|
|
72598
|
+
ExecutionTime;
|
|
72599
|
+
ErrorMessage;
|
|
72600
|
+
Success;
|
|
72601
|
+
};
|
|
72602
|
+
__decorate([
|
|
72603
|
+
Field(() => [MJPublicLink_]),
|
|
72604
|
+
__metadata("design:type", Array)
|
|
72605
|
+
], RunMJPublicLinkViewResult.prototype, "Results", void 0);
|
|
72606
|
+
__decorate([
|
|
72607
|
+
Field(() => String, { nullable: true }),
|
|
72608
|
+
__metadata("design:type", String)
|
|
72609
|
+
], RunMJPublicLinkViewResult.prototype, "UserViewRunID", void 0);
|
|
72610
|
+
__decorate([
|
|
72611
|
+
Field(() => Int, { nullable: true }),
|
|
72612
|
+
__metadata("design:type", Number)
|
|
72613
|
+
], RunMJPublicLinkViewResult.prototype, "RowCount", void 0);
|
|
72614
|
+
__decorate([
|
|
72615
|
+
Field(() => Int, { nullable: true }),
|
|
72616
|
+
__metadata("design:type", Number)
|
|
72617
|
+
], RunMJPublicLinkViewResult.prototype, "TotalRowCount", void 0);
|
|
72618
|
+
__decorate([
|
|
72619
|
+
Field(() => Int, { nullable: true }),
|
|
72620
|
+
__metadata("design:type", Number)
|
|
72621
|
+
], RunMJPublicLinkViewResult.prototype, "ExecutionTime", void 0);
|
|
72622
|
+
__decorate([
|
|
72623
|
+
Field({ nullable: true }),
|
|
72624
|
+
__metadata("design:type", String)
|
|
72625
|
+
], RunMJPublicLinkViewResult.prototype, "ErrorMessage", void 0);
|
|
72626
|
+
__decorate([
|
|
72627
|
+
Field(() => Boolean, { nullable: false }),
|
|
72628
|
+
__metadata("design:type", Boolean)
|
|
72629
|
+
], RunMJPublicLinkViewResult.prototype, "Success", void 0);
|
|
72630
|
+
RunMJPublicLinkViewResult = __decorate([
|
|
72631
|
+
ObjectType()
|
|
72632
|
+
], RunMJPublicLinkViewResult);
|
|
72633
|
+
export { RunMJPublicLinkViewResult };
|
|
72634
|
+
let MJPublicLinkResolver = class MJPublicLinkResolver extends ResolverBase {
|
|
72635
|
+
async RunMJPublicLinkViewByID(input, { providers, userPayload }, pubSub) {
|
|
72636
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72637
|
+
return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
|
|
72638
|
+
}
|
|
72639
|
+
async RunMJPublicLinkViewByName(input, { providers, userPayload }, pubSub) {
|
|
72640
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72641
|
+
return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
|
|
72642
|
+
}
|
|
72643
|
+
async RunMJPublicLinkDynamicView(input, { providers, userPayload }, pubSub) {
|
|
72644
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72645
|
+
input.EntityName = 'MJ: Public Links';
|
|
72646
|
+
return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
|
|
72647
|
+
}
|
|
72648
|
+
async MJPublicLink(ID, { dataSources, userPayload, providers }, pubSub) {
|
|
72649
|
+
this.CheckUserReadPermissions('MJ: Public Links', userPayload);
|
|
72650
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
72651
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
72652
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwPublicLinks] WHERE [ID]='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Public Links', userPayload, EntityPermissionType.Read, 'AND');
|
|
72653
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
72654
|
+
const result = await this.MapFieldNamesToCodeNames('MJ: Public Links', rows && rows.length > 0 ? rows[0] : {}, this.GetUserFromPayload(userPayload));
|
|
72655
|
+
return result;
|
|
72656
|
+
}
|
|
72657
|
+
async CreateMJPublicLink(input, { providers, userPayload }, pubSub) {
|
|
70054
72658
|
const provider = GetReadWriteProvider(providers);
|
|
70055
72659
|
return this.CreateRecord('MJ: Public Links', input, provider, userPayload, pubSub);
|
|
70056
72660
|
}
|
|
@@ -86827,6 +89431,7 @@ let MJRole_ = class MJRole_ {
|
|
|
86827
89431
|
AuthorizationRoles_RoleNameArray;
|
|
86828
89432
|
QueryPermissions_RoleNameArray;
|
|
86829
89433
|
ResourcePermissions_RoleIDArray;
|
|
89434
|
+
MJ_MCPServerConnectionPermissions_RoleIDArray;
|
|
86830
89435
|
MJ_AIAgentPermissions_RoleIDArray;
|
|
86831
89436
|
};
|
|
86832
89437
|
__decorate([
|
|
@@ -86887,6 +89492,10 @@ __decorate([
|
|
|
86887
89492
|
Field(() => [MJResourcePermission_]),
|
|
86888
89493
|
__metadata("design:type", Array)
|
|
86889
89494
|
], MJRole_.prototype, "ResourcePermissions_RoleIDArray", void 0);
|
|
89495
|
+
__decorate([
|
|
89496
|
+
Field(() => [MJMCPServerConnectionPermission_]),
|
|
89497
|
+
__metadata("design:type", Array)
|
|
89498
|
+
], MJRole_.prototype, "MJ_MCPServerConnectionPermissions_RoleIDArray", void 0);
|
|
86890
89499
|
__decorate([
|
|
86891
89500
|
Field(() => [MJAIAgentPermission_]),
|
|
86892
89501
|
__metadata("design:type", Array)
|
|
@@ -87089,6 +89698,15 @@ let MJRoleResolver = class MJRoleResolver extends ResolverBase {
|
|
|
87089
89698
|
const result = await this.ArrayMapFieldNamesToCodeNames('Resource Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
87090
89699
|
return result;
|
|
87091
89700
|
}
|
|
89701
|
+
async MJ_MCPServerConnectionPermissions_RoleIDArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
|
|
89702
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Permissions', userPayload);
|
|
89703
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
89704
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
89705
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionPermissions] WHERE [RoleID]='${mjrole_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
89706
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
89707
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
89708
|
+
return result;
|
|
89709
|
+
}
|
|
87092
89710
|
async MJ_AIAgentPermissions_RoleIDArray(mjrole_, { dataSources, userPayload, providers }, pubSub) {
|
|
87093
89711
|
this.CheckUserReadPermissions('MJ: AI Agent Permissions', userPayload);
|
|
87094
89712
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -87210,6 +89828,15 @@ __decorate([
|
|
|
87210
89828
|
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
87211
89829
|
__metadata("design:returntype", Promise)
|
|
87212
89830
|
], MJRoleResolver.prototype, "ResourcePermissions_RoleIDArray", null);
|
|
89831
|
+
__decorate([
|
|
89832
|
+
FieldResolver(() => [MJMCPServerConnectionPermission_]),
|
|
89833
|
+
__param(0, Root()),
|
|
89834
|
+
__param(1, Ctx()),
|
|
89835
|
+
__param(2, PubSub()),
|
|
89836
|
+
__metadata("design:type", Function),
|
|
89837
|
+
__metadata("design:paramtypes", [MJRole_, Object, PubSubEngine]),
|
|
89838
|
+
__metadata("design:returntype", Promise)
|
|
89839
|
+
], MJRoleResolver.prototype, "MJ_MCPServerConnectionPermissions_RoleIDArray", null);
|
|
87213
89840
|
__decorate([
|
|
87214
89841
|
FieldResolver(() => [MJAIAgentPermission_]),
|
|
87215
89842
|
__param(0, Root()),
|
|
@@ -94529,6 +97156,7 @@ let MJUser_ = class MJUser_ {
|
|
|
94529
97156
|
MJ_DashboardPermissions_SharedByUserIDArray;
|
|
94530
97157
|
MJ_APIKeys_UserIDArray;
|
|
94531
97158
|
MJ_UserNotificationPreferences_UserIDArray;
|
|
97159
|
+
MJ_MCPToolExecutionLogs_UserIDArray;
|
|
94532
97160
|
ResourcePermissions_UserIDArray;
|
|
94533
97161
|
AIAgentRequests_RequestForUserIDArray;
|
|
94534
97162
|
ConversationDetails_UserIDArray;
|
|
@@ -94541,6 +97169,7 @@ let MJUser_ = class MJUser_ {
|
|
|
94541
97169
|
MJ_DashboardPermissions_UserIDArray;
|
|
94542
97170
|
MJ_DashboardCategoryPermissions_SharedByUserIDArray;
|
|
94543
97171
|
MJ_APIKeys_CreatedByUserIDArray;
|
|
97172
|
+
MJ_MCPServerConnectionPermissions_UserIDArray;
|
|
94544
97173
|
MJ_AIAgentRuns_UserIDArray;
|
|
94545
97174
|
MJ_AIAgentPermissions_UserIDArray;
|
|
94546
97175
|
MJ_Collections_OwnerIDArray;
|
|
@@ -94877,6 +97506,10 @@ __decorate([
|
|
|
94877
97506
|
Field(() => [MJUserNotificationPreference_]),
|
|
94878
97507
|
__metadata("design:type", Array)
|
|
94879
97508
|
], MJUser_.prototype, "MJ_UserNotificationPreferences_UserIDArray", void 0);
|
|
97509
|
+
__decorate([
|
|
97510
|
+
Field(() => [MJMCPToolExecutionLog_]),
|
|
97511
|
+
__metadata("design:type", Array)
|
|
97512
|
+
], MJUser_.prototype, "MJ_MCPToolExecutionLogs_UserIDArray", void 0);
|
|
94880
97513
|
__decorate([
|
|
94881
97514
|
Field(() => [MJResourcePermission_]),
|
|
94882
97515
|
__metadata("design:type", Array)
|
|
@@ -94925,6 +97558,10 @@ __decorate([
|
|
|
94925
97558
|
Field(() => [MJAPIKey_]),
|
|
94926
97559
|
__metadata("design:type", Array)
|
|
94927
97560
|
], MJUser_.prototype, "MJ_APIKeys_CreatedByUserIDArray", void 0);
|
|
97561
|
+
__decorate([
|
|
97562
|
+
Field(() => [MJMCPServerConnectionPermission_]),
|
|
97563
|
+
__metadata("design:type", Array)
|
|
97564
|
+
], MJUser_.prototype, "MJ_MCPServerConnectionPermissions_UserIDArray", void 0);
|
|
94928
97565
|
__decorate([
|
|
94929
97566
|
Field(() => [MJAIAgentRun_]),
|
|
94930
97567
|
__metadata("design:type", Array)
|
|
@@ -95682,6 +98319,15 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
95682
98319
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: User Notification Preferences', rows, this.GetUserFromPayload(userPayload));
|
|
95683
98320
|
return result;
|
|
95684
98321
|
}
|
|
98322
|
+
async MJ_MCPToolExecutionLogs_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
98323
|
+
this.CheckUserReadPermissions('MJ: MCP Tool Execution Logs', userPayload);
|
|
98324
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
98325
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
98326
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPToolExecutionLogs] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Execution Logs', userPayload, EntityPermissionType.Read, 'AND');
|
|
98327
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
98328
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Tool Execution Logs', rows, this.GetUserFromPayload(userPayload));
|
|
98329
|
+
return result;
|
|
98330
|
+
}
|
|
95685
98331
|
async ResourcePermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
95686
98332
|
this.CheckUserReadPermissions('Resource Permissions', userPayload);
|
|
95687
98333
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -95790,6 +98436,15 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
|
|
|
95790
98436
|
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: API Keys', rows, this.GetUserFromPayload(userPayload));
|
|
95791
98437
|
return result;
|
|
95792
98438
|
}
|
|
98439
|
+
async MJ_MCPServerConnectionPermissions_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
98440
|
+
this.CheckUserReadPermissions('MJ: MCP Server Connection Permissions', userPayload);
|
|
98441
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
98442
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
98443
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwMCPServerConnectionPermissions] WHERE [UserID]='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Server Connection Permissions', userPayload, EntityPermissionType.Read, 'AND');
|
|
98444
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
98445
|
+
const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Server Connection Permissions', rows, this.GetUserFromPayload(userPayload));
|
|
98446
|
+
return result;
|
|
98447
|
+
}
|
|
95793
98448
|
async MJ_AIAgentRuns_UserIDArray(mjuser_, { dataSources, userPayload, providers }, pubSub) {
|
|
95794
98449
|
this.CheckUserReadPermissions('MJ: AI Agent Runs', userPayload);
|
|
95795
98450
|
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
@@ -96406,6 +99061,15 @@ __decorate([
|
|
|
96406
99061
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
96407
99062
|
__metadata("design:returntype", Promise)
|
|
96408
99063
|
], MJUserResolverBase.prototype, "MJ_UserNotificationPreferences_UserIDArray", null);
|
|
99064
|
+
__decorate([
|
|
99065
|
+
FieldResolver(() => [MJMCPToolExecutionLog_]),
|
|
99066
|
+
__param(0, Root()),
|
|
99067
|
+
__param(1, Ctx()),
|
|
99068
|
+
__param(2, PubSub()),
|
|
99069
|
+
__metadata("design:type", Function),
|
|
99070
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
99071
|
+
__metadata("design:returntype", Promise)
|
|
99072
|
+
], MJUserResolverBase.prototype, "MJ_MCPToolExecutionLogs_UserIDArray", null);
|
|
96409
99073
|
__decorate([
|
|
96410
99074
|
FieldResolver(() => [MJResourcePermission_]),
|
|
96411
99075
|
__param(0, Root()),
|
|
@@ -96514,6 +99178,15 @@ __decorate([
|
|
|
96514
99178
|
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
96515
99179
|
__metadata("design:returntype", Promise)
|
|
96516
99180
|
], MJUserResolverBase.prototype, "MJ_APIKeys_CreatedByUserIDArray", null);
|
|
99181
|
+
__decorate([
|
|
99182
|
+
FieldResolver(() => [MJMCPServerConnectionPermission_]),
|
|
99183
|
+
__param(0, Root()),
|
|
99184
|
+
__param(1, Ctx()),
|
|
99185
|
+
__param(2, PubSub()),
|
|
99186
|
+
__metadata("design:type", Function),
|
|
99187
|
+
__metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
|
|
99188
|
+
__metadata("design:returntype", Promise)
|
|
99189
|
+
], MJUserResolverBase.prototype, "MJ_MCPServerConnectionPermissions_UserIDArray", null);
|
|
96517
99190
|
__decorate([
|
|
96518
99191
|
FieldResolver(() => [MJAIAgentRun_]),
|
|
96519
99192
|
__param(0, Root()),
|